{"version":3,"sources":["views/Components/Generic.jsx","components/CustomButtons/Button.jsx","assets/img/BitvoLoginPageBackground.webp","assets/img/BitvoLogo.png","assets/img/BitvoLogo_.jpg","assets/img/BitvoUpp_Main.png","assets/img/BitvouppApp.png","assets/img/Google-Authenticator-icon.png","assets/img/UPP_OTP.png","assets/img/Upp_Login.png","assets/img/Upp_Main.png","assets/img/apple-icon.png","assets/img/bitvoUppLogin.png","assets/img/cheque.jpg","assets/img/contactless.png","assets/img/contactlessWhite.png","assets/img/dcbank-feature-use.svg","assets/img/dcbgnew.webp","assets/img/favicon.png","assets/img/fcLogin.png","assets/img/h&rblock.png","assets/img/loginPageBackground.webp","assets/img/logo.svg","assets/img/logo_.jpeg","assets/img/mastercard.png","assets/img/twilio-mark-red.png","assets/img/uppApp.png","assets/img/uppLogin.png","assets/img/visaimg.png","assets/img/vrtbck.png","assets/jss/Client/bankAccountDashStyle.jsx","assets/jss/Client/portalPageStyle.jsx","assets/jss/material-dashboard-pro-react/cardImagesStyles.jsx","assets/jss/material-dashboard-pro-react/components/pagesHeaderStyle.jsx","assets/jss/material-dashboard-pro-react/components/tableStyle.jsx","assets/jss/material-dashboard-pro-react/hoverCardStyle.jsx","assets/jss/material-dashboard-pro-react/views/CDICListStyle.jsx","assets/jss/material-dashboard-pro-react/views/PageFooterCardStyle.jsx","assets/jss/material-dashboard-pro-react/views/WireTransferDashboardStyle.jsx","assets/jss/material-dashboard-pro-react/views/amlKycBlacklistStyle.jsx","assets/jss/material-dashboard-pro-react/views/backoffice/backofficeStyle.jsx","assets/jss/material-dashboard-pro-react/views/buttonsStyle.jsx","assets/jss/material-dashboard-pro-react/views/chartsStyle.jsx","assets/jss/material-dashboard-pro-react/views/constantToolbarTextStyle.jsx","assets/jss/material-dashboard-pro-react/views/eftStyle.jsx","assets/jss/material-dashboard-pro-react/views/extendedTablesStyle.jsx","assets/jss/material-dashboard-pro-react/views/gridSystemStyle.jsx","assets/jss/material-dashboard-pro-react/views/iconsStyle.jsx","assets/jss/material-dashboard-pro-react/views/languageSelectorStyle.jsx","assets/jss/material-dashboard-pro-react/views/lockScreenPageStyle.jsx","assets/jss/material-dashboard-pro-react/views/manageCardTabStyle.jsx","assets/jss/material-dashboard-pro-react/views/merchantProfileStyle.jsx","assets/jss/material-dashboard-pro-react/views/notificationsStyle.jsx","assets/jss/material-dashboard-pro-react/views/parameterStyle.jsx","assets/jss/material-dashboard-pro-react/views/prepaidBINDefinitionStyle.jsx","assets/jss/material-dashboard-pro-react/views/prepaidCardGroupDefinitionStyle.jsx","assets/jss/material-dashboard-pro-react/views/prepaidInventoryPersonalizedTabStyle.jsx","assets/jss/material-dashboard-pro-react/views/prepaidInventoryPlasticNonameTabStyle.jsx","assets/jss/material-dashboard-pro-react/views/prepaidInventoryStyle.jsx","assets/jss/material-dashboard-pro-react/views/prepaidInventoryVirtualTabStyle.jsx","assets/jss/material-dashboard-pro-react/views/prepaidPortalStyle.jsx","assets/jss/material-dashboard-pro-react/views/prepaidTransactionSearchStyle.jsx","assets/jss/material-dashboard-pro-react/views/pricingPageStyle.jsx","assets/jss/material-dashboard-pro-react/views/registerPageStyle.jsx","assets/jss/material-dashboard-pro-react/views/swiftBeneficiaryComponentStyle.jsx","assets/jss/material-dashboard-pro-react/views/userProfileStyles.jsx","assets/jss/material-dashboard-pro-react/views/validationFormsStyle.jsx","components/Card/CardAvatar.jsx","components/Card/CardText.jsx","components/CustomButtons/RButton.jsx","components/Typography/Danger.jsx","components/Typography/Gray.jsx","components/Typography/Info.jsx","components/Typography/Muted.jsx","components/Typography/Primary.jsx","components/Typography/Quote.jsx","components/Typography/Success.jsx","components/Typography/Warning.jsx","core/ArrayHelper.js","assets/jss/material-dashboard-pro-react/views/DDTListStyle.jsx","assets/jss/material-dashboard-pro-react/views/createWireTransferStyle.jsx","views/WireTransfer/CreateWireTransfer/BeneficiaryDetail.jsx","views/Components/DynamicToolbar.jsx","views/AmlKyc/AmlKycAlert/AmlKycAlert.jsx","views/AmlKyc/AmlKycScenario/AmlKycScenario.jsx","views/AmlKyc/AmlScenarioBlacklist/AmlScenarioBlacklist.jsx","views/AmlKyc/CanadaPostVerification/CanadaPostRequestReport.jsx","views/AmlKyc/CanadaPostVerification/CanadaPostVerification.jsx","views/AmlKyc/CanadaPostVerification/CanadaPostVerificationStatusControlLog.jsx","views/AmlKyc/DigitalVerification/DigitalVerificationIdentityType.jsx","views/AmlKyc/DigitalVerification/DigitalVerificationIdentityTypeMap.jsx","views/AmlKyc/DigitalVerification/IdIntroduction.jsx","views/AmlKyc/FeeProfile/FeeProfile.jsx","views/AmlKyc/FinScan/FinScanScheduledWatchlistControl.jsx","views/AmlKyc/FinScan/FinScanWatchlistControl.jsx","views/AmlKyc/FinScan/FinScanWatchlistFile.jsx","views/AmlKyc/InternalBlacklist/InternalBlacklist.jsx","views/AmlKyc/Kyc/KycReviewNumber.jsx","views/AmlKyc/KycScenarioMenuActionDefinition/KycScenarioMenuActionDefinition.jsx","views/AmlKyc/ManualKycApplication/CardDesignTool.jsx","views/AmlKyc/ManualKycApplication/CardDesignold.jsx","views/AmlKyc/ManualKycApplication/KycManualPhotoDefinition.jsx","views/AmlKyc/ManualKycApplication/ManualKycApplicationList.jsx","views/AmlKyc/ManualKycApplication/ManualKycVerificationDefinition.jsx","views/AmlKyc/TransUnion/TransUnionIdVerification.jsx","views/AmlKyc/TransUnion/TransUnionVerificationReport.jsx","views/AmlKyc/WatchList/ManuelWatchlistCheck.jsx","views/AmlKyc/WatchList/UnverifiedCustomerCreateCardTry.jsx","views/AmlKyc/WatchList/UnverifiedCustomerList.jsx","views/Atm/Location/AtmLocationInfo.jsx","views/Backoffice/AccountNotification/AccountNotification.jsx","views/Backoffice/AgentEarnings/AgentEarnings.jsx","views/Backoffice/AgentStatement/AgentStatement.jsx","views/Backoffice/BankingClientSetup/ClientSetup.jsx","views/Backoffice/BankingClientSetup/ClientSteps/Programs.jsx","views/Backoffice/BankingClientSetup/CommissionProfile/CommissionProfile.jsx","views/Backoffice/BankingClientSetup/CommissionProfile/Detail/CommissionProfileDetail.jsx","views/Backoffice/BankingClientSetup/NotificationSettings/NotificationSettings.jsx","views/Backoffice/BankingClientSetup/Reports/ClientSetupIdExpireDateList.jsx","views/Backoffice/BankingClientSetup/Reports/ClientSetupIdLetterofGuaranteeList.jsx","views/Backoffice/BankingClientSetup/Reports/CustomerIdExpireDateList.jsx","views/Backoffice/BankingClientSetup/SiteVisit/SiteVisit.jsx","views/Backoffice/CRARegister/CRARegister.jsx","views/Backoffice/ClearingSettlement/BillPayment/BillPaymentSettlementTelpay.jsx","views/Backoffice/ClearingSettlement/BillPayment/BillPaymentTransactionsSettlement.jsx","views/Backoffice/ClearingSettlement/ChequeClearingSummary.jsx","views/Backoffice/ClearingSettlement/ChequeFacs.jsx","views/Backoffice/ClearingSettlement/ChequeIncomingFile.jsx","views/Backoffice/ClearingSettlement/ChequeOutgoingFile.jsx","views/Backoffice/ClearingSettlement/ClientReconciliation.jsx","views/Components/LoadingComponent.jsx","views/Backoffice/ClearingSettlement/EFT/CATMResponseFile.jsx","views/Backoffice/ClearingSettlement/MatchingCriteriaDefinition.jsx","views/Backoffice/ClearingSettlement/OfflineEtransferForReconciliation.jsx","views/Backoffice/ClearingSettlement/PendingBalanceTransaction.jsx","views/Backoffice/ClearingSettlement/Reconciliation.jsx","views/Backoffice/ClearingSettlement/WireTransfer/CreatreIncomingWireTransfers.jsx","views/Backoffice/ClearingSettlement/WireTransfer/IncomingWireTransfers.jsx","views/Backoffice/ClearingSettlement/WireTransfer/MSBSubTransactionsDetail.jsx","views/Backoffice/ClearingSettlement/WireTransfer/OutgoingWireTransfers.jsx","views/Backoffice/ClearingSettlement/eTransfer/CreateBulkFile.jsx","views/Backoffice/ClearingSettlement/eTransfer/InteracStatusInquriy.jsx","views/Backoffice/ClearingSettlement/eTransfer/OutgoingCreateBulkFile.jsx","views/Backoffice/ClearingSettlement/eTransfer/OutgoingSendBulkFile.jsx","views/Backoffice/ClearingSettlement/eTransfer/eTransferIncomingTransactions.jsx","views/Backoffice/ClearingSettlement/eTransfer/eTransferIntegrationErrors.jsx","views/Backoffice/ClearingSettlement/eTransfer/eTransferLegacyClients.jsx","views/Backoffice/ClearingSettlement/eTransfer/eTransferReconciliationFile.jsx","views/Backoffice/ClearingSettlement/eTransfer/eTransferTraceTransactions.jsx","views/Backoffice/ClearingSettlement/eTransferCompletedTransfers.jsx","views/Backoffice/ClearingSettlement/eTransferOutgoingTransfers.jsx","views/Backoffice/ClearingSettlement/eTransferSettledTransactionsByClient.jsx","views/Backoffice/ClearingSettlement/eTransferSettlementErrors.jsx","views/Backoffice/ClearingSettlement/eTransferSettlementFile.jsx","views/Backoffice/ClearingSettlement/eTransferSettlementFileByClient.jsx","views/Backoffice/ClearingSettlement/eTransferTransactionsLogByClients.jsx","views/Backoffice/ClearingSettlement/eTransferTransactionsSettlementByFI.jsx","views/Backoffice/ClearingSettlement/eTransferUnmatchedTransactions.jsx","views/Backoffice/ClearingSettlement/eftDailySettledItems.jsx","views/Backoffice/ClearingSettlement/eftIncomingFile.jsx","views/Backoffice/ClearingSettlement/eftOutgoingFile.jsx","views/Backoffice/ClearingSettlement/eftReturnedItemList.jsx","views/Backoffice/ClearingSettlement/eftTraceTransactions.jsx","views/Backoffice/ClientAccountList/ClientAccountList.jsx","views/Backoffice/ClientAutoDepositProfileDefinition.jsx","views/Backoffice/Components/Workflow/ContractApprove.jsx","views/Backoffice/Components/Workflow/DCBankAccountApprove.jsx","views/Backoffice/ContractList/ContractList.jsx","views/Backoffice/CustomerContactList/CustomerContactList.jsx","views/Backoffice/EmptyFile.jsx","views/Backoffice/Lender/FundsTransferFromSubAccountToDCBank.jsx","views/Backoffice/Lender/WaitingPaymentList.jsx","views/Backoffice/RestrictedClient/RestrictedClient.jsx","views/Backoffice/TransactionAdjustment/RefundAdjustment.jsx","views/Backoffice/TransactionAdjustment/TransactionAdjustment.jsx","views/Backoffice/Wallet/ExpiredTransactionsManualRelease.jsx","views/BankAccount/AccountMovements/AccountMovements.jsx","views/BankAccount/AutoLoadingInstruction/AutoLoadingInstruction.jsx","views/BankAccount/BillPayment/BillDefinition/BillDefinition.jsx","views/BankAccount/BillPayment/BillDefinition/BillPaymentOutgoingFile.jsx","views/BankAccount/BillPayment/BillDefinition/BillTransactionList.jsx","views/Components/Generic/GenericCardMedia.jsx","views/BankAccount/BillPayment/BillDefinition/BillTransactionSearch.jsx","views/BankAccount/BillPayment/BillDefinition/Biller.jsx","views/BankAccount/BillPayment/BillDefinition/ClientBillDefinition.jsx","views/BankAccount/BillPayment/BillIndividualList/BillIndividualList.jsx","views/BankAccount/BillPayment/BillRecurringList/BillRecurringList.jsx","views/BankAccount/BillPayment/BillerList/BillerList.jsx","views/BankAccount/ClientAccountSetProgram/ClientAccountSetProgram.jsx","views/BankAccount/ClientContactList/ClientContactList.jsx","views/BankAccount/CustomerAccount/CustomerAcvitiviteAccounts.jsx","views/BankAccount/DdtManagement/DdtMoneyTransfer.jsx","assets/jss/material-dashboard-pro-react/views/kycManualPhotoDefinitionStyle.jsx","views/BankAccount/FeeTransactionSearch/FeeTransactionSearch.jsx","views/BankAccount/InteracApprove/InteracApproveRequest.jsx","views/BankAccount/InteracEtransferUser/CreateInteracETransferUser.jsx","views/BankAccount/LinkedAccounts/LinkedAccounts.jsx","views/BankAccount/MyAccounts/AccountBalanceSummary.jsx","views/BankAccount/MyAccounts/AllAccountMovements.jsx","views/BankAccount/MyAccounts/AllAccountMovementsPerformance.jsx","views/BankAccount/MyAccounts/AllAggregateTransactionGroupReport.jsx","views/BankAccount/MyAccounts/BalanceAccount.jsx","views/BankAccount/MyAccounts/BalanceAccountMST.jsx","views/BankAccount/MyAccounts/BalanceAccountPerformance.jsx","views/BankAccount/MyAccounts/ChequeTransactionImageDetail.jsx","views/BankAccount/MyAccounts/ClientAccountBalanceList.jsx","views/BankAccount/MyAccounts/ClientActivities.jsx","views/BankAccount/MyAccounts/ClientSubAccountList.jsx","views/BankAccount/MyAccounts/CloseAccountApprove.jsx","views/BankAccount/MyAccounts/FromToAccountingTransaction.jsx","views/BankAccount/MyAccounts/MinusWalletBalance.jsx","views/BankAccount/MyAccounts/MyAccounts.jsx","views/BankAccount/MyAccounts/MyAggregateTransactionGroupReport.jsx","views/Components/DownloadButton.jsx","views/BankAccount/MyAccounts/SearchAccount.jsx","views/BankAccount/OtherTransfers/EtransferFromAccount.jsx","views/BankAccount/OtherTransfers/TransferToLinkedAccount.jsx","views/BankAccount/Profile/DDTCDICSettlementAccount.jsx","views/BankAccount/Profile/EFTSettlementAccount.jsx","views/BankAccount/Profile/ETransferSettlementAccount.jsx","views/BankAccount/Profile/Profile.jsx","views/BankAccount/TransferBetweenClients/AutoLoadingToSubAccount.jsx","views/BankAccount/TransferBetweenClients/TransferBetweenClientAccounts.jsx","views/BankAccount/TransferBetweenClients/TransferToClientAccountReport.jsx","views/BankAccount/TransferBetweenMyAccounts/Transfer.jsx","views/BankProfiles/AgentCommission/AgentCommissionDefinition.jsx","views/BankProfiles/FeeDemands/FeeDemands.jsx","views/BankProfiles/FeeProfile/AllFeeProfileList.jsx","views/BankProfiles/FeeProfile/FeeProfile.jsx","views/BankProfiles/LimitProfile/ClientLimitProfile.jsx","views/BankProfiles/LimitProfile/UserLimitProfile.jsx","views/BankProfiles/NotificationSettings/NotificationSettings.jsx","views/BankProfiles/ReferralFee/ReferralFee.jsx","views/BulkFile/BulkFileUpload/BulkFileUpload.jsx","views/Components/ButtonToolbar.jsx","views/Campaign/CampaignNotification/CampaignNotificationProfile.jsx","views/Campaign/CampaignPartner/CampaignPartner.jsx","views/Campaign/CampaignProfile/CampaignEvaulate.jsx","views/Campaign/CampaignProfile/CampaignProfile.jsx","views/Campaign/CouponHistory/CouponHistory.jsx","views/Campaign/Dashboard/CampaignDashboard.jsx","views/Campaign/FreeProduct/FreeProductProfile.jsx","views/Campaign/ICouponProfile/ICouponProfile.jsx","views/Campaign/NotificationHistory/NotificationHistory.jsx","views/Campaign/PromotionStatus/PromotionStatus.jsx","views/Cheque/CHQTransactionSearch.jsx","views/Cheque/ChequeManagement/ChequeManagement.jsx","views/Cheque/ChequeOrder/ChequeOrder.jsx","views/Cheque/CreateCheque/CreateCheque.jsx","views/Components/ClientComponent.jsx","views/Components/CreditCardComponent.jsx","views/Components/DDTTitleBar.jsx","views/Components/NotificationBar.jsx","views/Components/PhoneInputComponent.jsx","layouts/ExternalContainer.jsx","views/Constants/Constant.Lender.js","views/Core/ApiUser.jsx","views/Core/HolidayDefinition.jsx","views/Core/SFTPUser.jsx","views/Customer/CaaS.jsx","views/Customer/CustomerList.jsx","views/Customer/CustomerRightsList.jsx","views/Customer/NotificationSettings/NotificationSettings.jsx","views/DDT/CDICAccounts.jsx","views/DDT/DDTAccounts.jsx","views/DDT/DDTIncomingEtransferTransactions.jsx","views/DDT/DDTReturnAccount.jsx","views/DDT/DDTTransactionSearch.jsx","views/DDT/DdtAccountActivities.jsx","views/DDT/SearchTabs/DDTList.jsx","views/DDT/TransactionSearch.jsx","views/DDT/Workflow/CDICSuspiciousApprove.jsx","views/DDT/Workflow/DDTSuspiciousApprove.jsx","views/DigitalWallet/CardTspInformationList.jsx","views/DigitalWallet/ClientBaseTransactionSearch.jsx","views/EFT/Central1OutgoingResponseReport/Central1OutgoingResponseReport.jsx","views/EFT/CreateEFT/CreateEFT.jsx","views/EFT/EftClearingTransactionSearch/EftClearingTransactionSearch.jsx","views/EFT/Errors/Errors.jsx","views/EFT/ExternalBankSettlementInstruction/ExternalBankSettlementInstruction.jsx","views/EFT/Profile/CorporateAccountDetail.jsx","views/EFT/RbcOutgoingResponseReport/RbcOutgoingResponseReport.jsx","views/EFT/Returns/Returns.jsx","views/EFT/Transactions/BulkFiles.jsx","views/EFT/Transactions/EftIncomingTransactions.jsx","views/EFT/Transactions/EftOutgoingTransactions.jsx","views/EFT/Transactions/EftPendingBalanceSearch.jsx","views/EFT/Transactions/Recurring/Transactions.jsx","views/EFT/Transactions/Transactions.jsx","views/EFT/UnSettleds/UnSettleds.jsx","views/EFT/Workflow/EftIncomingApprove.jsx","views/EFT/Workflow/EftSubmitApprove.jsx","views/EFT/Workflow/EftSuspiciousApprove.jsx","views/EFT/Workflow/EftTraceApprove.jsx","views/FX/CountryLimits.jsx","views/FX/FeeProfiles.jsx","views/FX/LimitProfiles.jsx","views/Favorites/UserMenuFavorite/UserMenuFavorite.jsx","views/Fee/AggregatedFeeByClient.jsx","views/GenericScreen/GenericScreenDefinition.jsx","views/InteracConfirm/InteracConfirmLogin.jsx","views/InteracConfirm/InteracConfirmOtp.jsx","views/InteracConfirm/InteracConfirmPaymentOperation.jsx","views/InteracConfirm/InteracConfirmPaymentResult.jsx","views/InteracConfirm/InteracConfirmPaymentReview.jsx","core/withArtifex.js","views/InteracConfirm/InteracConfirmSecurityQuestion.jsx","views/InteraceTransfer/CreateEtransfer/CreateEtransfer.jsx","views/InteraceTransfer/Errors/Errors.jsx","views/InteraceTransfer/Profile/CorporateAccountDetail.jsx","views/InteraceTransfer/Transactions/BulkFiles.jsx","views/InteraceTransfer/Transactions/FraudCheckResults.jsx","views/InteraceTransfer/Transactions/InteracUrl.jsx","views/InteraceTransfer/Transactions/Recurring/Transactions.jsx","views/InteraceTransfer/Transactions/Transactions.jsx","views/InteraceTransfer/UnSettleds/UnSettleds.jsx","components/CustomInput/CustomInput.jsx","views/InteraceTransfer/Workflow/EtransferSubmitApprove.jsx","views/InteraceTransfer/Workflow/EtransferSuspiciousApprove.jsx","views/InteraceTransfer/Workflow/EtransferTraceApprove.jsx","views/LMS/AutomatedCollectionParameter/AutomatedCollectionParameter.jsx","views/LMS/BorrowerList/BorrowerList.jsx","views/LMS/BulkApplicationDelivery/BulkApplicationDelivery.jsx","views/LMS/CardFinancialAdjustment/CardFinancialAdjustment.jsx","views/LMS/CardOwingBalance/CardOwingBalanceReport.jsx","views/LMS/CardTransaction/CardTransaction.jsx","views/LMS/CreditBureauReporting/CreditBureauReporting.jsx","assets/jss/material-dashboard-pro-react/views/ChequeManagementStyle.jsx","views/LMS/FundingSummary/FundingSummary.jsx","views/LMS/LimitAdjustmentHistory/LimitAdjustmentForWorkflow.jsx","views/LMS/LimitAdjustmentHistory/LimitAdjustmentHistory.jsx","views/LMS/LoanNotificationTemplateDefinition/LoanNotificationTemplateDefinition.jsx","views/LMS/PaymentManagement/PaymentManagement.jsx","views/LMS/PortfolioPerformance/PortfolioPerformance.jsx","views/LMS/Report/FeeBasedTransactionReport.jsx","views/LMS/Report/FeeReport.jsx","views/LMS/Report/FeeRevenueReport.jsx","views/LMS/Report/TransactionNameBasedFeeReport.jsx","views/Components/CanadaPostAddressComponent.jsx","views/LMS/Report/UserLogReport.jsx","views/LOS/AgreementTemplate/AgreementTemplate.jsx","views/LOS/ApplicantDefinition/UncompletedApplicantList.jsx","views/LOS/ApplicationBorrowerReview/ApplicationBorrowerReview.jsx","views/LOS/ApplicationResultLetter/ApplicationResultLetterApplicantMap.jsx","views/LOS/ApplicationResultLetter/ApplicationResultLetterTemplate.jsx","views/LOS/ApprovalParameter/ApprovalParameter.jsx","views/LOS/ClientPartner/ClientPartner.jsx","views/LOS/ClientPartner/ClientPartnerAccountDefinitionAndDetails.jsx","views/LOS/ClientPartner/ClientPartnerDdtList.jsx","views/Customer/CustomerDefinition.jsx","views/LOS/CollectionPool/CollectionPool.jsx","views/LOS/CollectionReport/GetCollectionReport.jsx","views/LOS/CollectionReport/LegalFollowUpThirdPartyTransfer.jsx","views/LOS/CollectionReport/LoanAgingAndDelinquentPayment.jsx","views/LOS/CollectionReport/LoanAgingAndDelinquentPayment2.jsx","views/LOS/CreateApplication/CreateApplication.jsx","views/LOS/CreateApplication/LoanApplicationDocument.jsx","views/LOS/CreateApplication/LoanApplicationOtherFinancial.jsx","views/LOS/FeeDefinition/FeeDefinition.jsx","views/LOS/IdVerificationTracking/IdVerificationTracking.jsx","views/LOS/ApplicantDefinition/ApplicantDefinition.jsx","views/LOS/LedgerCard/BorrowerPaymentPlan/BorrowerPaymentPlan.jsx","views/LOS/LedgerCard/LedgerCardCompanyIcon.jsx","views/LOS/LoanApplications/LoanApplications.jsx","views/LOS/LoanApproval/LoanApproval.jsx","views/LOS/LoanApproval/LoanApprovalDocuments.jsx","views/LOS/PartnerCommissionSummaryReport/PartnerCommissionSummaryReport.jsx","views/LOS/Scorecard/InternalScorecard.jsx","views/LOS/Statement/DailyInterestPoolMonitoring.jsx","views/LOS/Statement/DailyInterestTransactions.jsx","views/LOS/Statement/PaymentInterestTransactions.jsx","components/Typography/Black.jsx","views/LOS/Statement/SecureCardCollection.jsx","views/LOS/Statement/SecureCardFeeCollection.jsx","views/LOS/Statement/SecureCardInterestCollection.jsx","views/LOS/Statement/SecureCardTermFeeCollection.jsx","views/LOS/Statement/StatementListNew.jsx","views/LOS/Statement/StatementManualProcess.jsx","views/LOS/Statement/StatementMessageDisclosure.jsx","views/LOS/Statement/StatementV3List.jsx","views/LOS/Statement/UnpaidFeeAndInterest.jsx","views/LOS/TransUnionSummaryReport/TransUnionSummaryReport.jsx","views/MastercardSend/MastercardCreateCardTransfer.jsx","views/MastercardSend/MastercardTransactionSearch.jsx","views/MyProfile/Profile.jsx","views/Notification/Announcement/AnnouncementDefinition.jsx","views/Notification/Notification/NotificationDefinition.jsx","views/Notification/Template/EmailSignature.jsx","views/Notification/Template/TemplateDefinition.jsx","views/PPaid/BulkUpload/CreateAccountWithBulkUpload.jsx","views/PPaid/BulkUpload/CreateClientCustomerWithFileUpload.jsx","views/PPaid/BulkUpload/MoneyTransaferWithFileUpload.jsx","views/PPaid/Card/AssignAccount.jsx","views/PPaid/Card/AssignCDIC.jsx","views/PPaid/Card/AssignCard.jsx","views/PPaid/Card/AssignDDT.jsx","views/PPaid/Card/CardEmbossRequest.jsx","views/PPaid/Card/CardListReport.jsx","views/PPaid/Card/CardRenawalRequestList.jsx","views/PPaid/Card/CardRenewal.jsx","views/PPaid/Card/CardStatus.jsx","views/PPaid/Card/ClearCardNumberSearch.jsx","views/PPaid/Card/CreateCorporateCard.jsx","views/PPaid/Card/CreateMainCard.jsx","views/PPaid/Card/CreateSupplementaryCard.jsx","views/PPaid/Card/CreditCardBucketCloseLog.jsx","views/PPaid/Card/CreditCardBuckets.jsx","views/PPaid/Card/CreditCardFinancialInfo.jsx","views/PPaid/Card/CreditCardInterests.jsx","views/PPaid/Card/CreditCardPayments.jsx","views/PPaid/Card/CreditCardTransactions.jsx","views/PPaid/Card/CustomerCreditLimit.jsx","views/PPaid/Card/IncorrectEmbossCards.jsx","views/PPaid/Card/MCCGroup.jsx","views/PPaid/Card/MCCPermission.jsx","views/PPaid/Card/PrePersonCardOrder.jsx","views/PPaid/Card/SimulationCreditCardBucketCloseLog.jsx","views/PPaid/Card/SimulationCreditCardBuckets.jsx","views/PPaid/Card/SimulationCreditCardFinancialInfo.jsx","views/PPaid/Card/SimulationCreditCardInterests.jsx","views/PPaid/Card/SimulationCreditCardPayments.jsx","views/PPaid/Card/SimulationCreditCardTransactions.jsx","components/Card/CardHeader.jsx","views/PPaid/Clearing/Dispute/ClientDispute.jsx","views/PPaid/Clearing/Dispute/ClientDisputeReport.jsx","views/PPaid/Clearing/Dispute/DisputeReport.jsx","views/PPaid/Clearing/FileReject/MastercardFileReject.jsx","views/PPaid/Clearing/FileReject/MastercardFileRejectDetail.jsx","views/PPaid/Clearing/IncomingBatchCorrection.jsx","views/PPaid/Clearing/ManuelProvisionMatching.jsx","views/PPaid/Clearing/Mastercard/MastercardSettlementReport.jsx","views/PPaid/Clearing/MastercardClearingTransaction.jsx","views/PPaid/Clearing/MastercardMessageException.jsx","views/PPaid/Clearing/Moneris/MonerisSettlementReport.jsx","views/PPaid/Clearing/RefundReversalTransactions.jsx","views/PPaid/Clearing/Visa/DebitAdjustmentReport.jsx","views/PPaid/Clearing/Visa/VisaClearingTransaction.jsx","views/PPaid/Clearing/Visa/VisaDirectSettlementReport.jsx","views/PPaid/Clearing/Visa/VisaSettlementRefundsReport.jsx","views/PPaid/Clearing/Visa/VisaSettlementReport.jsx","views/PPaid/ClearingAndSettlement/CardAuthorizationMatching.jsx","views/PPaid/ClearingAndSettlement/CardEmbossBillingList.jsx","views/PPaid/ClearingAndSettlement/ExportCardEmbossFileList.jsx","views/PPaid/ClearingAndSettlement/ImportCardEmbossFileList.jsx","views/PPaid/ClearingAndSettlement/SwitchSettlementAggregateReportHundredList.jsx","views/PPaid/ClearingAndSettlement/SwitchSettlementAggregateReportList.jsx","views/PPaid/ClearingAndSettlement/VisaSettlementReportList.jsx","views/PPaid/ClearingAndSettlement/WireTransfer/BAI2File.jsx","views/PPaid/ClearingAndSettlement/WireTransfer/WireReconciliation.jsx","views/PPaid/ClientProfile/ClientFeeProfile/ClientCardHolderTransactionFee.jsx","views/PPaid/CustomerDefinition/PpCustomerDefinition.jsx","views/PPaid/Emv/EmvScriptPool.jsx","views/PPaid/Emv/EmvScriptQueue.jsx","views/PPaid/Emv/EmvScriptTemplate.jsx","views/PPaid/Fee/CardFeeProfileDefination.jsx","views/PPaid/Fee/CardholderTransactionFee.jsx","views/PPaid/Fee/FxProfile.jsx","views/PPaid/Fee/InterestProfile.jsx","views/PPaid/Inventory/AlertSettings.jsx","views/PPaid/Inventory/InventoryManagement.jsx","views/PPaid/Inventory/InventorySafeDetail.jsx","views/PPaid/Inventory/InventorySafeManagement.jsx","views/PPaid/Inventory/LimitDefinition.jsx","views/PPaid/Inventory/NewCardOrder.jsx","views/PPaid/Inventory/ReceivedCardConfirmation.jsx","views/PPaid/Limit/CardholderTransactionLimit.jsx","views/PPaid/MoneyTransferToCardHolher/MoneyTransferToCardholder.jsx","views/PPaid/MoneyTransferToCardHolher/UserFundsActivities.jsx","views/PPaid/Parameter/CardKeyProfile.jsx","views/PPaid/Parameter/ClientForthLineDefinition.jsx","views/PPaid/Parameter/OnusBinDefinition.jsx","views/PPaid/PlasticType/PlasticTypeDefinition.jsx","views/PPaid/Product/ClientProductManagement.jsx","views/PPaid/Product/CorporateSummaryReportbyProduct.jsx","views/PPaid/Product/ProductDefinition.jsx","views/PPaid/Profile/BinRangeProfile.jsx","views/PPaid/Profile/CardEmbossingFileProfile.jsx","views/PPaid/Profile/PayClientProvisionProfile.jsx","views/PPaid/Profile/ProductRestrictionProfileDefinition.jsx","views/PPaid/Reports/CardBrandStaticsReport.jsx","views/PPaid/Reports/CardDailyReport.jsx","views/PPaid/Reports/CardMonitoring.jsx","views/PPaid/Reports/CardStatementReport.jsx","views/PPaid/Reports/CardStatusReport.jsx","views/PPaid/Reports/CardSystemManagement/ActiveCardandRevenueReport.jsx","views/PPaid/Reports/CardSystemManagement/CardExpireDate.jsx","views/PPaid/Reports/CardSystemManagement/CardReport.jsx","views/PPaid/Reports/CardSystemManagement/ChannelandSettlementReport.jsx","views/PPaid/Reports/CardSystemManagement/DomesticAndInternationalReport.jsx","views/PPaid/Reports/CardSystemManagement/FeeCollection.jsx","views/PPaid/Reports/CardSystemManagement/PrepaidCardFreeRevenue.jsx","views/PPaid/Reports/CardSystemManagement/SwitchReport.jsx","views/PPaid/Reports/SetPinOp.jsx","views/PPaid/Reports/Settlement/MastercardFinancialPosDetail.jsx","views/PPaid/Reports/Settlement/MastercardSettlementPositionDetail.jsx","views/PPaid/Template/TemplateDefinition.jsx","views/PPaid/Wallet/Wallet.jsx","views/PPaid/WalletList/ActiveWalletList.jsx","views/PPaid/WalletTransaction/CardSwitchTransaction.jsx","views/PPaid/WalletTransaction/CardTransaction.jsx","views/PPaid/WalletTransaction/OverlimitCardList.jsx","views/PPaid/WalletTransaction/SwitchTransaction.jsx","views/PPaid/WalletTransaction/UnprocessedPaymentTransaction.jsx","views/PPaid/WalletTransaction/WalletTransaction.jsx","views/Parameter/ClientHighApiProfileDefinition.jsx","views/Parameter/ClientWebhookProfileDefinition.jsx","views/Parameter/IframeKeyDefinition.jsx","views/Reports/AccountActivityReport.jsx","views/Reports/AccountStatementReport.jsx","views/Reports/BankActivity.jsx","views/Reports/EftMontlyVolumeReport.jsx","views/Reports/ExecutiveSummary/ExecutiveSummary.jsx","views/Reports/FundsMovement.jsx","views/Reports/IvrCallerHistoryReport.jsx","views/Reports/IvrCardActivationReport.jsx","views/Reports/RiskRating.jsx","views/Reports/VolumeAnalysis.jsx","views/Reports/WalletStatement.jsx","views/Support/FeeManage/FeeManage.jsx","views/Support/FrequentlyAskedQuestion/FrequentlyAskedQuestionManage.jsx","views/Support/FrequentlyAskedQuestion/FrequentlyAskedQuestionView.jsx","core/Formatter.js","components/Card/CardFooter.jsx","views/Support/Legal/LegalManage.jsx","views/Support/OnlineSupport/OnlineSupport.jsx","views/Support/UserGuide/UserGuideManage.jsx","views/Support/UserGuide/UserGuideView.jsx","views/SystemAdmin/AccountReportType.jsx","views/SystemAdmin/CFIF/UploadCfifFile.jsx","views/SystemAdmin/ClientAuditLog.jsx","views/SystemAdmin/ClientUserAuthorization.jsx","views/SystemAdmin/FinancialInstitution.jsx","views/SystemAdmin/FinancialInstitutionBranchList.jsx","assets/jss/material-dashboard-pro-react/views/createReportStyle.jsx","views/SystemAdmin/InteracUrls/ManageInteracCustomIntegrationUrls.jsx","views/SystemAdmin/PrepaidStatementCallNumber.jsx","views/SystemAdmin/SchedulerHistory.jsx","views/SystemAdmin/SecurityQuestion.jsx","views/SystemAdmin/Switch/TransactionCodeMap.jsx","views/SystemAdmin/Token/GenerateApiToken.jsx","views/SystemAdmin/TransferDescription.jsx","views/SystemAdmin/TransferToClientAccountDismiss.jsx","views/Tsp/Mdes/TspRequest.jsx","views/Tsp/Mdes/TspToken.jsx","views/EFT/CreateEFT/CreateEFTIndividual.jsx","views/Tsp/Mdes/TspTokenRequestor.jsx","views/UserAdmin/ChangeOrResetPassword/ChangeOrResetPassword.jsx","views/UserAdmin/EftRoutingRule/EftRoutingRule.jsx","views/UserAdmin/RoleDefinition/Action/Action.jsx","views/UserAdmin/RoleDefinition/Menu/Menu.jsx","views/UserAdmin/RoleDefinition/MenuAction/MenuAction.jsx","views/UserAdmin/RoleDefinition/MenuActionRight/MenuActionRight.jsx","views/UserAdmin/RoleDefinition/MenuAuthorityRight/MenuAuthorityRight.jsx","views/UserAdmin/RoleDefinition/MenuProgramMap/MenuProgramMap.jsx","views/UserAdmin/RoleDefinition/RoleLevelMenuMap/RoleLevelMenuMap.jsx","views/InteraceTransfer/CreateEtransfer/CreateEtransferIndividual.jsx","views/UserAdmin/RoleDefinition/UserAuthorityDefinition/UserAuthorityDefinition.jsx","views/UserAdmin/RoleDefinition/UserRoleCopy/UserRoleCopy.jsx","views/UserAdmin/RoleDefinition/UserRoleDefinition/UserRoleDefinition.jsx","views/UserAdmin/Scheduler/Scheduler.jsx","views/UserAdmin/Scheduler/SchedulerQueue.jsx","views/UserAdmin/UserDetail/UserDetail.jsx","views/VisaDirect/ClientPortal/CardTransferMemoDefinition.jsx","views/VisaDirect/ClientPortal/ClientApiKeyDefinition.jsx","views/VisaDirect/ClientPortal/CreateCardTransfer.jsx","views/VisaDirect/ClientPortal/InstrumentList.jsx","views/PPaid/Clearing/MastercardClearingDetail.jsx","views/VisaDirect/ClientPortal/VisaDirect.jsx","views/VisaDirect/VisaDirectThirdPartyAddNewCustomer.jsx","views/VisaDirect/VisaDirectTransactionSearch.jsx","views/WireTransfer/Address/CityReport.jsx","views/WireTransfer/BeneficiaryReport/WireTransferBeneficiaryReport.jsx","views/WireTransfer/ChequeWireIncoming/ChequeWireIncoming.jsx","views/WireTransfer/ChequeWireOutgoing/ChequeWireOutgoing.jsx","views/WireTransfer/ChequeWireTransactions/ChequeWireTransactions.jsx","views/WireTransfer/ClientReport/WireTransferClientReport.jsx","views/WireTransfer/CountryReport/WireTransferCountryReport.jsx","views/WireTransfer/CreateIncomingWireTransfer.jsx","views/WireTransfer/CreateWireTransfer.jsx","views/WireTransfer/MsbFileList.jsx","views/WireTransfer/OverlimitTransactionTrail/OverlimitTransactionTrail.jsx","views/WireTransfer/RestrictedCountries/WireTransferRestrictedCountries.jsx","views/WireTransfer/RestrictedCountries/WireTransferRestrictedCountriesTransactionTrail.jsx","views/WireTransfer/SettledTransactionReport/WireTransferSettledTransactionReport.jsx","views/WireTransfer/StraightThroughTransactions/StraightThroughTransactions.jsx","views/WireTransfer/TransactionSearchWireTransfer.jsx","views/WireTransfer/UnSettledWireTransfer.jsx","views/WireTransfer/WireBeneficiaryTemplate/CreateWireBeneficiaryTemplate.jsx","views/WireTransfer/WireEftTransactionSearch.jsx","views/WireTransfer/WireTraceTransactionSearch.jsx","views/WireTransfer/WireTransferApprovalList.jsx","views/WireTransfer/WireTransferDashboard/WireTransferDashboard.jsx","views/Workflow/WorkflowManagement.jsx","views/Workflow/WorkflowStepDefinition.jsx","views/Workflow/WorkflowUserGroupDefinition.jsx","assets/jss/material-dashboard-pro-react.jsx","assets/img/logo.png","views/LOS/Scorecard/InternalScorecardTab.jsx","core/Icons.js","views/Components/Generic/GenericTextInput.jsx","views/Components/ParameterComponent.jsx","assets/jss/generic/genericRadioInputStyle.jsx","core/DashboardHelper.js","views/BankAccount/LinkedAccounts/FlinksAccountPreviewCard.jsx","core/TransactionTraceHelper.js","views/WireTransfer/CreateWireTransfer/MessageDetail.jsx","views/Cheque/ChequeOrder/ChequeOrderDetailInfo.jsx","views/BankAccount/BillPayment/BillDefinition/BillIndividual.jsx","components/Grid/GridItem.jsx","views/Components/GridButton.jsx","assets/img/galerydefault-image.png","views/Components/Generic/GenericNumberInput.jsx","views/Components/Generic/GenericSelectInput.jsx","views/Customer/CustomerColumns.jsx","layouts/ExternalPage.jsx","core/RouteHelper.js","views/Components/Generic/GenericCheckInput.jsx","views/Components/Generic/GenericDateFilterInput.jsx","views/Components/Generic/GenericDateInput.jsx","views/Components/Generic/GenericEmailInput.jsx","views/Components/Generic/GenericFilterSelectInput.jsx","views/Components/Generic/GenericRadioInput.jsx","routes/index.jsx","views/LOS/LoanApproval/LoanApprovalDetails/LoanDetails.jsx","views/LOS/LoanApproval/LoanApprovalDetails/LocDetails.jsx","views/LOS/LoanApproval/LoanApprovalDetails/SecureCardDetails.jsx","error/ErrorBoundary.jsx","assets/jss/material-dashboard-pro-react/components/buttonStyle.jsx","assets/jss/generic/genericTextInputStyle.jsx","assets/jss/material-dashboard-pro-react/views/genericExpansionPanelStyle.jsx","assets/jss/generic/genericSelectInputStyle.jsx","assets/jss/generic/genericNumberInputStyle.jsx","assets/jss/material-dashboard-pro-react/views/buttonToolbarStyle.jsx","assets/jss/material-dashboard-pro-react/views/tabComponentStyle.jsx","assets/jss/material-dashboard-pro-react/buttonGroupStyle.jsx","assets/jss/material-dashboard-pro-react/views/dynamicToolBarStyle.jsx","assets/jss/material-dashboard-pro-react/views/riskRatingStyle.jsx","views/AmlKyc/DigitalVerification/DigitalVerificationPanel.jsx","views/Backoffice/BankingClientSetup/ClientSteps/ClientSummaryTab.jsx","views/Backoffice/BankingClientSetup/ClientSteps/KeyContact.jsx","views/Backoffice/ClearingSettlement/ChequeImageDetail.jsx","views/Backoffice/ClearingSettlement/ReconciliationTabs/ReconciliationCDICTab.jsx","views/Backoffice/ClearingSettlement/ReconciliationTabs/ReconciliationDDTTab.jsx","views/Backoffice/ClearingSettlement/ReconciliationTabs/ReconciliationEFTTab.jsx","views/Components/CustomerComponent.jsx","views/Backoffice/ClearingSettlement/ReconciliationTabs/ReconciliationeTransferTab.jsx","views/WireTransfer/CreateIncomingWireTransfer/OrderingClientDetail.jsx","views/WireTransfer/CreateIncomingWireTransfer/OrderingAmountDetail.jsx","views/BankAccount/BillPayment/BillDefinition/BillRecurring.jsx","views/Components/AssignDDTAccountComponent.jsx","views/Components/BeneficiaryComponent.jsx","views/Components/CustomerInformationComponent.jsx","views/Components/AddNewPayee.jsx","views/Campaign/Components/CampaignCouponTemplate.jsx","views/Components/LoanCalculator.jsx","views/DDT/SearchTabs/DDTCustomerInfo.jsx","views/EFT/AddNewCustomerEFT.jsx","views/InteraceTransfer/AddNewCustomereTransfer.jsx","views/LOS/LedgerCard/LedgerCard.jsx","views/PPaid/Clearing/Dispute/Dispute.jsx","views/PPaid/Inventory/InventoryCheckin.jsx","views/PPaid/Inventory/OrderCard.jsx","views/PPaid/Inventory/Receive.jsx","views/PPaid/Inventory/Transfer.jsx","views/WireTransfer/CreateWireTransfer/BeneficiaryAmountDetail.jsx","views/Constants/Constant.js","core/ExportFileHelper.js","views/LOS/LoanApproval/LoanApprovalFundingMethod.jsx","assets/img/profile-female.png","assets/img/profile-male.png","core/AlertHelper.js","assets/img/qr.png","views/Backoffice/BankingClientSetup/ClientSteps/RiskRating.jsx","views/BankAccount/BillPayment/BillDefinition/BillFromFile.jsx","views/LOS/CreateApplication/LoanApplicationScoringInfo.jsx","views/Reports/ExecutiveSummary/ExecutiveSummaryTab.jsx","index.js","core/DynamicComponent.js","views/Constants/Constant.AmlKyc.js","views/Components/Generic/GenericAlert.jsx","views/Components/Generic/GenericCircularProgress.jsx","views/Components/Generic/GenericColorInput.jsx","assets/jss/material-dashboard-pro-react/views/sweetAlertStyle.jsx","core/ResourceHelper.js","views/Components/Generic/GenericDialog.jsx","views/Components/Generic/GenericDialogActions.jsx","views/Components/Generic/GenericExpansionPanel.jsx","views/Components/Generic/GenericExpansionPanelCustomHeader.jsx","views/Components/Generic/GenericGrid.jsx","views/Components/Generic/GenericInput.jsx","core/StringHelper.js","views/Components/Generic/GenericLabel.jsx","views/Components/Generic/GenericLinearProgress.jsx","views/Components/Generic/GenericMultipleSelectInput.jsx","views/Components/Generic/GenericPage.jsx","views/Components/Generic/GenericTextAutoInput.jsx","components/Grid/GridContainer.jsx","views/Components/Generic/GenericTitle.jsx","views/Components/Generic/GenericMapContainer.jsx","views/Components/Generic/GenericMapMarker.jsx","views/Components/Generic/GenericMapSearchbox.jsx","views/Components/Generic/GenericCamera.jsx","views/Components/Generic/GenericFlipContainer.jsx","views/Components/Generic/GenericStepper.jsx","views/Components/Generic/GenericVerificationComponent.jsx","assets/img/actionIcons/approve.png","assets/img/actionIcons/copyimg.png","assets/img/actionIcons/credential.png","assets/img/actionIcons/delete.png","assets/img/actionIcons/detail.png","assets/img/actionIcons/document.png","assets/img/actionIcons/download.png","core/TaskPool.js","assets/img/actionIcons/edit.png","assets/img/actionIcons/eft.png","assets/img/actionIcons/email.png","assets/img/actionIcons/etransfer.png","assets/img/actionIcons/explanantion.png","assets/img/actionIcons/information.png","assets/img/actionIcons/movetolegal.png","assets/img/actionIcons/pay.png","assets/img/actionIcons/print.png","assets/img/actionIcons/profile.png","assets/img/actionIcons/qrCode.png","assets/img/actionIcons/rowdetail.png","assets/img/actionIcons/signout.png","assets/img/actionIcons/submitorsend.png","assets/img/actionIcons/suspicious.png","assets/img/actionIcons/swift.png","assets/img/actionIcons/trace.png","assets/img/actionIcons/undo4.png","assets/img/actionIcons/unlock1.png","assets/img/actionIcons/unlock2.png","views/Constants/Constant.Sorted.js","assets/img/actionIcons/upload.png","assets/img/actionIcons/verification.png","assets/img/actionIcons/wallet.png","assets/img/face-template.png","assets/img/id-card-back.png","assets/img/id-card.png","store/store.js","views/Components/AccountLimitToolbar.jsx","core/PrivateRoute.js","core/Proxy.js","views/Components/ToolbarButton.jsx","core/withRedux.js","views/LOS/LoanApproval/LoanApprovalDetails/index.jsx","views/Report/index.jsx","views/Report/CreateReport.jsx","views/Report/ReportDownload.jsx","views/Components/Generic/GenericScreen.jsx","assets/jss/material-dashboard-pro-react/components/cardStyle.jsx","assets/jss/material-dashboard-pro-react/components/cardBodyStyle.jsx","core/HtmlEditorHelper.js","error/ErrorPage.jsx","assets/jss/generic/genericAlertStyle.jsx","assets/jss/generic/buttonStyle.jsx","assets/jss/generic/genericCheckInputStyle.jsx","assets/jss/generic/genericDateInputStyle.jsx","assets/jss/generic/genericDialogStyle.jsx","assets/jss/material-dashboard-pro-react/components/customInputStyle.jsx","assets/jss/material-dashboard-pro-react/components/cardHeaderStyle.jsx","core/MenuAuthorityRightHelper.js","assets/jss/generic/genericGridStyle.jsx","views/Components/CustomerStoreComponent.jsx","core/TextFormats.js","views/Components/Generic/GenericSelectInput/GenericVirtualizedMenuList.jsx","assets/jss/generic/genericLabelStyle.jsx","assets/jss/generic/genericMultipleSelectInputStyle.jsx","assets/jss/generic/genericMapSearchboxStyle.jsx","assets/jss/generic/genericCardMediaStyle.jsx","core/index.js","assets/jss/generic/genericVerificationComponentStyle.jsx","assets/img/baseline-notifications_none-24px.svg","assets/img/logo-white.svg","assets/img/los-scorecard-value-table.png","views/Components/Generic/GenericFormScreen.jsx","views/Components/Generic/GenericListScreen.jsx","App.js","assets/jss/material-dashboard-pro-react/views/regularFormsStyle.jsx","layouts/Dashboard.jsx","assets/jss/material-dashboard-pro-react/layouts/dashboardStyle.jsx","components/Footer/Footer.jsx","assets/jss/material-dashboard-pro-react/components/footerStyle.jsx","components/Header/Header.jsx","assets/jss/material-dashboard-pro-react/components/headerStyle.jsx","components/Sidebar/Sidebar.jsx","assets/jss/material-dashboard-pro-react/components/sidebarStyle.jsx","views/Components/AppTitleBar.jsx","assets/jss/material-dashboard-pro-react/views/appTitleBarStyle.jsx","assets/jss/material-dashboard-pro-react/components/customDropdownStyle.jsx","views/Components/IdleComponent.jsx","views/Components/MenuBar.jsx","assets/jss/material-dashboard-pro-react/views/menuBarStyle.jsx","views/Dashboard/Portal.jsx","assets/jss/material-dashboard-pro-react/views/dashboardStyle.jsx","views/Constants/Constant.MaxLength.js","assets/jss/material-dashboard-pro-react/components/cardIconStyle.jsx","routes/externalPage.jsx","views/ExternalPages/CanadaPostTest.jsx","assets/jss/material-dashboard-pro-react/components/headingStyle.jsx","views/ExternalPages/ApiModelTest.jsx","views/ExternalPages/ApiRequestTest.jsx","views/AmlKyc/ManualKycApplication/CardDesign.jsx","views/Atm/Location/AtmLocator.jsx","assets/jss/material-dashboard-pro-react/views/atmLocatorStyle.jsx","views/InteracConfirm/InteracRedirectPage.jsx","views/AmlKyc/ManualKycApplication/KycPhotoUpload.jsx","assets/jss/material-dashboard-pro-react/views/kycPhotoUploadStyle.jsx","views/InteracConfirm/InteracCardHolderPage.jsx","views/AmlKyc/ManualKycApplication/KycAccountVerification.jsx","views/InteracConfirm/InteracInboundLogin.jsx","views/InteracConfirm/InteracInboundPage.jsx","views/VisaDirect/VisaDirectThirdPartyIframe.jsx","views/VisaDirect/VirtualCardIframe.jsx","layouts/HeartBeat.jsx","layouts/Pages.jsx","assets/jss/material-dashboard-pro-react/customCheckboxRadioSwitch.jsx","assets/jss/material-dashboard-pro-react/layouts/pagesStyle.jsx","routes/pages.jsx","views/ExternalPages/ResetPassword.jsx","assets/jss/material-dashboard-pro-react/components/cardFooterStyle.jsx","views/Pages/LoginPage.jsx","views/Pages/OTPPage.jsx","assets/jss/material-dashboard-pro-react/components/cardAvatarStyle.jsx","assets/jss/material-dashboard-pro-react/components/cardTextStyle.jsx","assets/jss/material-dashboard-pro-react/components/notificationStyle.jsx","assets/jss/material-dashboard-pro-react/modalStyle.jsx","assets/jss/material-dashboard-pro-react/views/CreateWireBeneficiaryTemplateStyle.jsx","assets/jss/material-dashboard-pro-react/views/atmLocationInfoStyle.jsx","assets/jss/material-dashboard-pro-react/views/cardDetailStyle.jsx","assets/jss/material-dashboard-pro-react/views/createEFTFromFileStyle.jsx","assets/jss/material-dashboard-pro-react/views/createEFTIndividualStyle.jsx","assets/jss/material-dashboard-pro-react/views/createEFTRecurringStyle.jsx","assets/jss/material-dashboard-pro-react/views/createEftStyle.jsx","assets/jss/material-dashboard-pro-react/views/createEtransferFromFileStyle.jsx","assets/jss/material-dashboard-pro-react/views/createEtransferIndividualStyle.jsx","assets/jss/material-dashboard-pro-react/views/createEtransferRecurringStyle.jsx","views/Constants/Constant.Parameter.js","assets/jss/material-dashboard-pro-react/views/createEtransferStyle.jsx","assets/jss/material-dashboard-pro-react/views/digitalVerificationPanelStyle.jsx","assets/jss/material-dashboard-pro-react/views/eftEtransferTitleBarStyle.jsx","assets/jss/material-dashboard-pro-react/views/extendedFormsStyle.jsx","assets/jss/material-dashboard-pro-react/views/iframeKeyDefinitionStyle.jsx","assets/jss/material-dashboard-pro-react/views/kycManualDigitalVerificationStatusPanelStyle.jsx","assets/jss/material-dashboard-pro-react/views/parameterComponentStyle.jsx","assets/jss/material-dashboard-pro-react/views/prepaidInventoryTransferBetweenStoresStyle.jsx","assets/jss/material-dashboard-pro-react/views/productRestrictionProfileStyle.jsx","assets/jss/material-dashboard-pro-react/views/userDefinitionStyle.jsx","assets/jss/material-dashboard-pro-react/views/workflowManagementStyle.jsx","views/Components/TraceTransactionAlert.jsx","views/AmlKyc/AmlKycAlert/AmlKycAlertChart.jsx","views/UserAdmin/UserDefinition.jsx","views/AmlKyc/ManualKycApplication/KycManualDigitalVerificationStatusPanel.jsx","views/AmlKyc/ManualKycApplication/KycManualCreditValidation.jsx","views/AmlKyc/ManualKycApplication/ManualKycApplication.jsx","views/AmlKyc/ManualKycApplication/ManualKycApplicationDocument.jsx","views/Backoffice/BankingClientSetup/ClientSteps/ClientSummary.jsx","views/Backoffice/BankingClientSetup/ClientSteps/ContractDetails.jsx","assets/jss/material-dashboard-pro-react/customSelectStyle.jsx","views/WireTransfer/Sender/WireSenderInformation.jsx","views/Backoffice/BankingClientSetup/ClientSteps/CustomerDetails.jsx","views/Backoffice/BankingClientSetup/ClientSteps/CustomerDetailStep/Address.jsx","views/Backoffice/BankingClientSetup/ClientSteps/CustomerDetailStep/Corporate.jsx","views/Backoffice/BankingClientSetup/ClientSteps/CustomerDetailStep/CorporateAuthOwner.jsx","views/Backoffice/BankingClientSetup/ClientSteps/CustomerDetailStep/CorporateAuthPerson.jsx","views/Backoffice/BankingClientSetup/ClientSteps/CustomerDetailStep/CorporateDetails.jsx","views/Backoffice/BankingClientSetup/ClientSteps/RegulatoryLicenses.jsx","views/Backoffice/BankingClientSetup/ClientSteps/Directors.jsx","views/Backoffice/BankingClientSetup/ClientSteps/CustomerDetailStep/Personal.jsx","components/Card/CardBody.jsx","views/Backoffice/BankingClientSetup/ClientSteps/Memo.jsx","views/Backoffice/BankingClientSetup/ClientSteps/KYCStatus.jsx","views/Backoffice/BankingClientSetup/ClientSteps/RiskRatingTabs.jsx","views/Backoffice/BankingClientSetup/ClientSteps/RiskRatingQuestionaries.jsx","views/Backoffice/BankingClientSetup/ClientSteps/Security.jsx","views/Backoffice/BankingClientSetup/ClientSteps/Settlement.jsx","views/Backoffice/BankingClientSetup/ClientSteps/SettlementStep/DcBank.jsx","views/Backoffice/BankingClientSetup/ClientSteps/SettlementStep/External.jsx","views/Backoffice/BankingClientSetup/CommissionProfile/CommissionProfileAddOrUpdate.jsx","views/Backoffice/BankingClientSetup/CommissionProfile/CommissionProfileDataTable.jsx","views/Backoffice/BankingClientSetup/CommissionProfile/Detail/CommissionProfileDetailAddOrUpdate.jsx","views/Components/CommissionProfileComponent.jsx","views/Backoffice/BankingClientSetup/CommissionProfile/Detail/CommissionProfileDetailDataTable.jsx","views/Backoffice/BankingClientSetup/SiteVisit/SiteVisitAddOrUpdate.jsx","views/Backoffice/BankingClientSetup/SiteVisit/SiteVisitDataTable.jsx","views/Customer/BenificialOwner.jsx","views/BankAccount/Profile/CorporateAccount.jsx","views/BankAccount/Profile/CustomerContact.jsx","views/BankAccount/Profile/KeyContactDataTable.jsx","views/BankAccount/Profile/ETransferInformation.jsx","views/BankAccount/Profile/MyProfileAccounts.jsx","views/BankAccount/Profile/MyProfileAddresses.jsx","views/BankAccount/Profile/PersonalAccount.jsx","views/BankProfiles/ReferralFee/CommissionProfileSearchComonent.jsx","views/Campaign/CampaignEvaulate/CampaignEvaulate.jsx","views/Cheque/ChequeOrder/ChequeOrderDataTable.jsx","views/Components/FileUpload.jsx","views/Components/TreeComponent.jsx","views/Customer/WalletCustomerDetails.jsx","views/DDT/SearchTabs/CDICList.jsx","views/DDT/SearchTabs/CDICCorporateAccount.jsx","views/DDT/SearchTabs/CDICPersonalAccount.jsx","views/EFT/CreateEFT/CreateEFTRecurring.jsx","views/GenericScreen/Tabs/ButtonOverride.jsx","views/GenericScreen/Tabs/General.jsx","views/GenericScreen/Tabs/GridColumns.jsx","views/GenericScreen/Tabs/Include.jsx","views/GenericScreen/Tabs/Input.jsx","views/InteraceTransfer/CreateEtransfer/CreateEtransferFromFile.jsx","views/InteraceTransfer/CreateEtransfer/CreateEtransferRecurring.jsx","views/Components/CardComponent.jsx","views/LOS/CreateApplication/LoanApplicationCreditValidation.jsx","views/LMS/FundingSummary/FundingSummaryChart.jsx","views/LMS/LoanChart/LoanCircleChart.jsx","views/LMS/PortfolioPerformance/PortfolioPerformanceChart.jsx","views/LOS/Statement/Statement.jsx","views/LOS/ApplicationResultLetter/ResultLetterTemplatePreview.jsx","views/LOS/ClientPartner/ClientPartnerAddress.jsx","views/LOS/ClientPartner/ClientPartnerContractDetails.jsx","views/LOS/ClientPartner/ClientPartnerInformation.jsx","views/LOS/CreateApplication/LoanApplicantInformation.jsx","views/Components/TabsComponent.jsx","views/LOS/CreateApplication/LoanApplicationBorrowerReview.jsx","views/LOS/CreateApplication/LoanApplicationCreditScore.jsx","views/LOS/CreateApplication/LoanApplicationNetworth.jsx","views/LOS/CreateApplication/LoanApplicationSecurityInformation.jsx","views/LOS/LedgerCard/LedgerCardCompanyIconDetail.jsx","views/LOS/LoanApplications/LoanApplicationsChart.jsx","views/LOS/LoanApplications/LoanApprovalStatusChart.jsx","views/LOS/LoanApproval/LoanApprovalInformation.jsx","views/LOS/LoanApproval/LoanApprovalOnHold.jsx","views/LOS/LoanApproval/LoanApprovalRejected.jsx","views/LOS/LoanApproval/PaymentAdminAccountCreate.jsx","views/LOS/LoanApproval/PaymentAdminApplicationNoteHistory.jsx","views/LOS/LoanApproval/PaymentAdminCardAction.jsx","views/LOS/LoanApproval/PaymentAdminDocument.jsx","views/LOS/Scorecard/InternalScorecardLoan.jsx","views/LOS/Scorecard/InternalScorecardVerification.jsx","views/MyProfile/CorporateAccount.jsx","views/MyProfile/PersonalAccount.jsx","views/Notification/Notification/NotificationDefinitionAddOrUpdate.jsx","views/Notification/Notification/NotificationDefinitionDataTable.jsx","views/PPaid/Clearing/ClearingTransactionData.jsx","views/PPaid/Clearing/Dispute/ClientDisputeAction.jsx","views/PPaid/Clearing/Dispute/ClientDisputeReportAction.jsx","views/PPaid/Clearing/Dispute/DisputeAction.jsx","views/PPaid/Clearing/Dispute/DisputeFeeDetail.jsx","views/PPaid/Clearing/Visa/TransactionDetails/Tcr0.jsx","views/PPaid/Clearing/Visa/TransactionDetails/Tcr1.jsx","views/PPaid/Clearing/Visa/TransactionDetails/Tcr4.jsx","views/PPaid/Clearing/Visa/TransactionDetails/Tcr5.jsx","views/PPaid/Clearing/Visa/TransactionDetails/Tcr7.jsx","views/PPaid/Clearing/Visa/TransactionDetails/VisaClearingTransactionDetail.jsx","views/PPaid/Reports/Step/CustomerCardInformation.jsx","views/PPaid/Reports/Step/QrCode.jsx","views/PPaid/Reports/Step/EmbossInfo.jsx","views/PPaid/Reports/Step/GeneralInfo.jsx","views/PPaid/Reports/Step/Statistics.jsx","views/PPaid/Reports/Step/Transactions.jsx","views/PPaid/Template/TemplatePreview.jsx","views/PPaid/Wallet/Steps/WalletAccount.jsx","views/UserAdmin/RoleDefinition/UserAuthorityDefinition/UserAuthorityDefinitionTreeAndDataTable.jsx","core/ImageHelper.js","views/VisaDirect/ClientPortal/AddNewCustomer.jsx","views/VisaDirect/ClientPortal/PaymentCard.jsx","views/WireTransfer/Address/City.jsx","views/WireTransfer/Address/Country.jsx","views/WireTransfer/Address/Province.jsx","views/WireTransfer/ChequeWireTransactions/ChequeWireTransactionsDataTable.jsx","views/WireTransfer/CreateWireTransfer/SaveConfirmDialog.jsx","views/WireTransfer/CreateWireTransfer/FileResultDialog.jsx","views/Workflow/Components/SelectUserComponent.jsx","components/Card/Card.jsx","../src eager /^/.*$/ groupOptions: {} namespace object","assets/jss/material-dashboard-pro-react/views/loginPageStyle.jsx","components/Card/CardIcon.jsx","assets/jss/generic/default.jsx","core/DateHelper.js","assets/img/atm-edit.png","assets/img/atm-new.png","assets/img/atm.png","assets/img/id-template.png","assets/img/interac.png","assets/img/logo-login.svg","assets/img/mastercardBrand.png","assets/img/visaBrand.png","store/index.js","components/Heading/Heading.jsx","views/Components/EftOrETransferAddNewCustomerComponent.jsx","core/FileHelper.js","views/EFT/CreateEFT/CreateEFTFromFile.jsx","views/Components/AccountComponent.jsx","assets/img sync /^/.*$","assets/jss/material-dashboard-pro-react/layouts/externalContainerStyle.jsx","core/ClientHelper.js","assets/jss/material-dashboard-pro-react/components/typographyStyle.jsx","views/Components/TabsComponentPagination.jsx","views/Components/Generic/GenericIcon.jsx"],"names":["RegularButton","_ref","props","classes","color","round","children","fullWidth","disabled","simple","size","block","link","justIcon","className","muiClasses","rest","btnClasses","classNames","button","React","createElement","Button","Object","assign","defaultProps","withStyles","buttonStyle","module","exports","style","customCheckboxRadioSwitch","customSelectStyle","sweetAlertStyle","cardBackground","background","cardTitle","cardTitleWhite","marginTop","textTransform","cardCategoryWhite","margin","fontSize","fontWeight","cardCategory","icon","width","height","border","borderRadius","lineHeight","iconRose","primaryColor","marginTop30","testimonialIcon","cardTestimonialDescription","fontStyle","cardIconTitle","marginBottom","legendTitle","grayColor","display","primary","warning","warningColor","danger","dangerColor","success","successColor","info","infoColor","rose","roseColor","gray","cardFooter","chartItem","dominantBaseline","textAnchor","portalPageStyle","paddingTop","tableHeader","textAlign","paddingLeft","borderColor","borderStyle","borderWidth","borderRadiusInputTopLeft","borderRadiusInputTopRight","borderRadiusInputBottomLeft","borderRadiusInputBottomRight","tableTextRight","paddingBottom","paddingRight","tableTextRightFix","tableTextLeft","tableTh","tableOutStyle","borderLeft","borderBottom","cardBackGround","tableFix","borderTop","borderRight","cardImagesStyles","cardImgTop","borderTopLeftRadius","borderTopRightRadius","cardImgBottom","borderBottomRightRadius","borderBottomLeftRadius","cardImgOverlay","position","top","right","bottom","left","padding","cardImg","pagesHeaderStyle","theme","appBar","backgroundColor","boxShadow","zIndex","transition","minHeight","container","flex","title","defaultFont","appResponsive","defaultBoxShadow","list","marginRight","listStyle","listItem","float","breakpoints","down","navLink","textDecoration","listItemIcon","verticalAlign","listItemText","minWidth","whiteSpace","navLinkActive","drawerPaper","transitionProperty","transitionDuration","transitionTimingFunction","drawerWidth","visibility","overflowY","content","opacity","sidebarButton","tableStyle","table","maxWidth","borderSpacing","borderCollapse","overflow","tableShoppingHead","tableHeadFontSize","tableHeadCell","tableCell","tableCellTotal","tableCellAmount","tableResponsive","overflowX","tableStripedRow","tableRowHover","warningRow","dangerRow","successRow","infoRow","hoverCardStyle","cardHover","transform","cardHeaderHover","cardHoverUnder","CDICListStyle","bgPrimary","PageFooterCardStyle","gridBorder","gridTextBold","gridTextCenter","containerHeight","pt","WireTransferDashboardStyle","amlKycBlacklistStyle","iconbuttoncolor","tabsHeader","root","flexGrow","bankingTitle","textStyle","buttonsStyle","cardHeader","cardContentLeft","cardContentRight","cardContentBottom","icons","buttonGroupStyle","socialButtonsIcons","chartsStyle","constantToolbarTextStyle","appbar","appbarleft","marginLeft","appbarmiddle","appbarright","appbaritemright","appbaritemleft","appbar2","eftStyle","extendedTablesStyle","center","description","actionButton","imgContainer","maxHeight","img","tdName","tdNameAnchor","tdNameSmall","tdNumber","tdNumberSmall","tdNumberAndButtonGroup","positionAbsolute","customFont","actionButtonRound","gridSystemStyle","iconsStyle","iframe","iframeContainer","languageSelectorStyle","selectFormControl","borderBottomWidth","borderBottomColor","lockScreenPageStyle","customCardClass","cardHidden","cardAvatar","customCardFooterClass","justifyContentCenter","justifyContent","manageCardTabStyle","merchantProfileStyle","notificationsStyle","cardSubtitle","modalSectionTitle","modalStyle","parameterStyle","prepaidBINDefinitionStyle","prepaidCardGroupDefinitionStyle","prepaidInventoryPersonalizedTabStyle","prepaidInventoryPlasticNonameTabStyle","prepaidInventoryStyle","prepaidInventoryVirtualTabStyle","prepaidPortalStyle","prepaidTransactionSearchStyle","pricingPageStyle","iconWhite","registerPageStyle","cardSignup","form","socialTitle","inputAdornment","inputAdornmentIcon","customFormControlClasses","checkboxLabelControl","checkboxLabel","swiftBeneficiaryComponentStyle","userProfileStyles","updateProfileButton","validationFormsStyle","formCategory","registerButton","cardAvatarStyle","plain","profile","testimonial","testimonialFooter","cardAvatarClasses","cardAvatarProfile","cardAvatarPlain","cardAvatarTestimonial","cardAvatarTestimonialFooter","undefined","cardTextStyle","cardTextClasses","cardText","RButton","Component","constructor","super","render","this","loading","typographyStyle","defaultFontStyle","dangerText","grayText","infoText","mutedText","primaryText","text","author","quote","quoteText","quoteAuthor","successText","warningText","ArrayHelper","SortArray","array","sortingCriteria","isDesc","arguments","length","sort","a","b","nameA","toUpperCase","nameB","reverse","IsArraysEqual","array1","array2","Array","isArray","arr1","concat","arr2","i","DDTListStyle","createWireTransferStyle","BeneficiaryDetail","MaxLen","maxLength","ParameterCountrySortOrderIndex","Member","EmptyObj","CountryObject","ISO2","SortedCountry","SortedCityProvince","RenderCountry","d","Name","Disabled","CompanyName","MiddleName","LastName","AddressLine1","AddressLine2","ZipCode","CityId","ProvinceId","CountryId","IsDomestic","BankCountryId","BankFinInsId","BankName","BankBranchId","BankTransitNumber","AccountNumber","BankSwiftCode","BankAddressLine1","BankAddressLine2","BankZipCode","BankCityId","BankProvinceId","BankInstitution","CurrencyId","IsCurrencyVisible","Alias","ValueChanged","MenuCode","IsAsianCountry","PhoneNumber","GridContainer","GridItem","xs","GenericTextInput","LabelText","Value","inputProps","Id","GenericSelectInput","Method","Url","Parameter","DataRoot","KeyValueMember","TextValueMember","Sorted","RenderItem","key","IsCanada","VirtualizedList","Format","DisableStateAdornment","FinancialInstitutionId","GenericNumberInput","NoFormatting","MaxLength","DefaultIndex","Code","Description","withArtifex","DynamicToolbar","ItemList","IsPopUp","normal","fixed","main","justify","map","item","index","Label","Typography","variant","Formatter","FormatMoney","eftEtransferTitleBarStyle","Transition","Slide","direction","AmlKycAlert","_this","name","value","data","setState","state","model","IsAml","GetColumnsKycDetail","searchDetail","graphicDetail","transactionDetail","chartDataTotal","chartDataContentTotal","chartDataProgram1","chartDataContentProgram1","chartDataProgram2","chartDataContentProgram2","chartDataProgram3","chartDataContentProgram3","chartDataOther","chartDataContentOther","selected","ParameterValue","ClientType","Corporate","RowSelected","TransactionDetail","GetColumnsSearchDetail","history","columnSearchDetail","Header","accessor","Cell","row","GridButton","tooltip","Icon","DetailIcon","OnClick","RouteHelper","Push","ScenarioCode","original","forceUpdate","columnsKycDetail","ApproveIcon","KycApproveDialogOpen","KycScenarioLog","CanadaPostVerification","DeleteIcon","KycRejectConfirm","KycDetailDialogOpen","sortable","filterable","ResourceHelper","GetForMenu","type","GridColumnType","DateTime","GetRenderItemUniqueClient","x","UniqueClientId","kycScenarioLogData","canadaPostVerification","VerificationStatus","CanadaPostIdVerificationStatus","Cleared","CanadaPostVerificationId","CanadaPostVerificationScreenDialogOpen","ApprovalData","JsonData","MenuAction","Action","Menu","MenuId","Path","ScreenId","isKycApproveDialogOpen","async","ExecuteApiPost","result","KycScenarioLogId","kycScenarioLogId","kycScenarioLogDetail","isKycDetailDialogOpen","isCanadaPostVerificationScreenDialogOpen","UserDetailDialogOpen","userId","isUserDetailDialogOpen","KycApproveDialogClose","Search","KycDetailDialogClose","CanadaPostVerificationScreenDialogClose","UserDetailDialogClose","showConfirmMessage","CanadaPostVerificationScreenOpen","Validate","SearchDetail","GraphicDetail","arrayData1","arrayData2","arrayData3","arrayData4","arrayData5","arrayLabel1","arrayLabel2","arrayLabel3","arrayLabel4","arrayLabel5","arrayColor1","arrayColor2","arrayColor3","arrayColor4","arrayColor5","colorNames","keys","chartColors","colorName","newColor","push","TransactionCount","labels","datasets","hoverBackgroundColor","Program","titleChartProgram1","titleChartProgram2","titleChartProgram3","Clear","clickClearButton","AmlKycId","showValidationErrors","errors","ClientTypeId","LastPeriodId","FromDate","ToDate","chartOptions","maintainAspectRatio","responsive","legend","cutoutPercentage","animation","duration","columnsAmlDetail","ProfileIcon","UserId","componentDidMount","setAppCenterTitle","setAppLeftTitle","originalDoughnutDraw","Chart","controllers","doughnut","prototype","draw","helpers","extend","apply","chart","ctx","font","textBaseline","fillStyle","config","textX","Math","measureText","textY","fillText","kycDetailIndex","ButtonToolbar","ButtonList","menuId","After","GenericDialog","open","fullScreen","onBackdropClick","TransitionComponent","DialogContent","DynamicComponent","route","screenId","GenericDialogActions","onClick","DialogTitle","GenericLabel","Bold","Text","FontSize","TextColor","DetailItem","DetailItemStatus","UserDefinition","spacing","Card","CardBody","Required","IsStatic","IsInvalid","IsAmlKycId","StaticData","GenericExpansionPanel","ParameterComponent","IsClientTypeId","ParameterCode","ParameterValue2","All","ParameterEmptyObject","SortedName","GenericDateInput","IncludeTime","alignItems","AmlKycAlertChart","CardHeader","GenericTitle","GenericGrid","Data","Columns","SelectedIndex","circleBox","circleBoxGrid","AmlKycScenario","callerModuleList","CallerModuleId","callerModule","filter","ProgramId","ClassDefinitionId","ReviewTypeId","criteriaList","ReviewTypeIsPeriodic","AmlReviewType","Periodic","GetPropertyDefinition","VerificationList","IsSelected","ValueChangedDeleteButton","splice","ValueChangedCriteria","PropertyType","showMessage","PropertyDependencyId","PropertyDefinitionId","PropertyDependency","propertyDefinitionList","DataModelProperty","ViewData","GenerateViewData","ExpressionTypeId","PropertyName","Key","parameter","ValueCheckChanged","includes","SetDataFromOtherScreen","isAml","VerificationListAll","AmlKycScenarioId","FormatDateUtc","FromTime","DateHelper","ToMoment","format","ToTime","Verify","CriteriaList","AmlKycScenarioCriteriaId","VerificationUniqueClientId","GetRenderItemClient","GetRenderItemPropertyDefinition","PropertyPath","GetParameterCallerModuleId","GetParameterClassDefinitionId","GetParameterProgramIdAndCallerModuleId","GetCriteriaIndex","criteriaListFromApi","propertyType","propertyData","PropertyData","Select","temp","JSON","parse","dependencyProperty","propertyName","InputType","CanClear","Decimal","Prefix","Date","Utc","IsFormatDate","Int","Number","classDefinitonId","GetCallerModule","GetExpressionType","expressionTypeList","expressionTypeEqualList","ExpressionType","Equal","Like","GetKycVerificationMethodDefinitions","verificationList","GetByScenarioCode","scenarioCode","AddCriteria","validateSearchProperties","IsProgramId","IsClassDefinitionId","IsDescription","IsReviewTypeId","IsUniqueClientId","IsLastPeriodId","message","WarningMessage","Empty","columnsAml","DateUtc","Time","columnsKyc","amlKycScenarioScenarioDetail","ReadAndClear","SubmitOrUpdate","actionName","request","showConfirmMessageInDelete","IsFuture","LabelMd","MinDate","MaxLength500","DateFormat","ViewMode","SortedPropertyName","SortedParameterValue","GenericInput","Model","GenericCheckInput","Index","MethodDefinition","IsSorted","AmlScenarioBlacklist","List","columns","AmlScenarioCode","CanadaPostRequestReport","Month","isBackOffice","ClientHelper","IsBackOffice","initialModel","IsClient","GetClientRowId","show","vModel","Title","ToDateInputValue","MaxDate","GetDateTimeLocal","LoadCanadaPost","getappCenterTitle","getappLeftTitle","canadaPostVerificationFromAmlKycAlert","OpenFromOtherScreen","canadaPostVerificationFromStatusControlLog","parent","pca","apikey","ParameterDesc","path","window","CanadaPostAddressCompleteUrl","CanadaPostRequest","SubmitCanadaPostRequest","script","document","src","head","appendChild","onload","fields","element","field","mode","fieldMode","SEARCH","POPULATE","options","control","Address","listen","address","AddressLine","Line1","Line2","PostalCode","Province","ProvinceCode","City","requestdata","AppCenterTitle","AppLeftTitle","Proxy","POST","responseData","Item","GetById","canadaPostVerificationId","e","indexOf","IdentityTypeParameterValue2","ProofOfResidenceCredentialId","IsValid","isClient","activeClient","CredentialParameterValue2","SendEmaiDialogOpen","isSendEmailDialogOpen","SendEmaiDialogClose","EmailAddress","DateOfBirth","FormatDate","SendEmail","EmailAddressIsValid","FirstName","GetDate","diff","CredentialId","IdentityType","OnePoR","RenderItemUniqueClient","ValueChangedForReportType","ExportClick","cpverColumns","cpverTable","current","forEach","c","columntype","ColumnType","isDownloadDialogOpen","GridKeyValueList","ExportSelectedColumns","ExcelDownload","ExportReportType","jsonColList","jsonFile","colmns","isLoading","DownloadGeneratedFile","IsSucceeded","ErrorDescription","errorMessage","showLoading","hideLoading","showDetail","responseDetail","isDetailDialogOpen","DetailDialogClose","IsHaveResponse","zIndex10","parameterUniqueClientId","GetClientId","createRef","ExecuteApiFileDownloadWithGenericResponse","LoadingComponent","Show","VerificationStatusId","VerificationStatusParameterValue","None","BarcodeData","GenericRadioInput","onChange","isMulti","getOptionLabel","classNamePrefix","GenericEmailInput","MaxLength128","IsFirstName","IsLastName","IsDateOfBirth","IsAddressLine","Tooltip","styles","blackColor","IsProvince","IsCity","IsPostalCode","IsCredentialId","IsProofOfResidenceCredentialId","PageSize","ShowPagination","ref","ResponseFirstName","ResponseLastName","DeliveryType","ResponseAddressLine","ResponseCity","ResponseProvince","ResponsePostalCode","CustomerRequestId","DateOfCheck","DocumentType","DocumentNumber","PlaceOfIssue","ProofId","StatusCode","StatusReason","TransactionSource","ExpiryDate","ApplicantId","CustomFieldName","CustomFieldValue","CardMedia","component","Base64Signature","externalContainerStyle","CanadaPostVerificationStatusControlLog","cpvslogColumns","cpvslogTable","IdIntroduction","newValue","HandleSearch","filterModel","modelList","HandleClear","defaultState","initialState","ValueChangedFilter","HandleEditDigitalIdentityType","identityTypeModel","RenderIdentityTypeList","HasRecognized","visibilityModel","isOpenkycUploadWindow","isIdentityTypeAddOpen","InsertedIdentityType","verificationResultModel","identityTypeList","tempIdentityTypeList","emptyObject","gridSortParameter","id","desc","placeholderNA","columnsData","Fragment","IsActive","DigitalIdentityTypeId","HideButton","ApiUrlBase","ApiUrl","Update","Delete","DigitalVerificationIdentityTypeMap","ValueChangedIdentityType","SelectedRowChange","tempModelList","GetVouchedIdIdentityTypeList","vouchedIdIdentityTypeList","GetIdentityTypeList","HandleSubmit","ParameterIdentityTypeId","HandleUpdate","HandleDelete","AddOrUpdateDigitalIdentityVerificationIdentityType","isUpdate","OperationCheck","resultId","InsertIdentityType","DigitalIdentityVerificationIdentityTypeId","ClearDigitalIdentityVerificationIdentityType","RenderVouchedIdIdentityType","RenderIdentityType","sortedParameterDesc","identityDialogButtonStyle","flexDirection","uniqueClientId","find","GetVerificationResult","RoleGroup","Client","GetDigitalIdentityInfo","HandlePopupManualUpload","DigitalVerificationPopupUploadCode","localStorage","setItem","DigitalVerificationAction","PopupUpload","stringify","popupUploadWindow","popupCloseAwaiter","Promise","resolve","onunload","_this$popupUploadWind","location","href","parsed","getItem","closed","removeItem","GetRenderItemClientSelect","IdIntroductionId","IdentityPhotoId","IdentityPhotoBackId","IsRoleGroupBackoffice","_row$value$Country","_row$value","_row$value$Province","_row$value2","_row$value2$Province","Country","styleUploadButton","_model$DigitalIdentit","_model$DigitalIdentit2","DefaultParamValue","RoleGroupId","DigitalVerificationPanel","DigitalIdentityVerification","DigitalIdentityVerificationInfo","Image","VerificationModel","ShowOnlyCard","ScoreOnly","FeeProfile","replace","FeeAmount","Cost","ValidFrom","ValidTo","ExecuteApiGet","feeProfiles","tempArray","Firm","FinScanScheduledWatchlistControl","listSchedulePeriodWeeklyList","listSchedulePeriodMonthlyList","GetSchedulePeriodList","Year","PeriodNumber","SearchTypeParameterValue","Personal","SearchTypeId","GetColumnsList","SetList","searchResult","columnsList","JsonDataParsed","split","join","GetColumnsRowStyleColor","SearchStatusParameterValue","WeeklyLists","MonthlyLists","SetYearList","currentYear","parseInt","GetYear","listYear","IsScheduled","columnsScheduleList","status","columnsRowStyleColor","FinScanSearchStatus","ManualVerification","Unverified","Quarter","sty","SortedPeriodNumberAsc","FinScanWatchlistControl","Verified","Rejected","VerificationIcon","MemoVerifyDialogOpen","VerifyDialogOpen","MemoRejectDialogOpen","SearchResultParameterValue","FinScanSearchResultType","ListExactMatch","DetailUnverifiedDialogOpen","DetailManualVerificationDialogOpen","GetColumnsDetail","columnsDetail","ApiPartialMatches","JsonResultDataParsed","finScanSearchLogId","FinScanSearchLogId","SearchStatusUpdateId","isVerifyDialogOpen","isMemoVerifyDialogOpen","isMemoRejectDialogOpen","GetFinScanSearchLogDetailManualVerification","isDetailManualVerificationDialogOpen","GetFinScanSearchLogDetailUnverified","isDetailUnverifiedDialogOpen","VerifyDialogClose","MemoVerifyDialogClose","MemoRejectDialogClose","DetailManualVerificationDialogClose","DetailUnverifiedDialogClose","SetListPartialMatches","listListPartialMatches","UpdateFinScanSearchLogStatus","SearchStatusId","UpdateFinScanSearchLogStatusForUnverified","ApproveReason","UpdateFinScanSearchLogStatusToRejected","GetLocalDateAsUtc","finScaColumns","finScaTable","console","log","maxLength40","TextInfo","MultiLine","Nationality","Gender","FinScanWatchlistFile","FileId","FileName","FileExtension","InternalBlacklist","corporateId","personalId","msbCorporateId","msbPersonalId","GetProvince","GetCity","selectedModel","isCorporate","isPersonal","isMsbCorporate","isMsbPersonal","SigningAuthorityCountryId","SigningAuthorityProvinceId","DirectorCountryId","DirectorProvinceId","GetClientTypeList","clientTypeList","clientTypeCorporate","clientTypePersonal","clientTypeMsbCorporate","WireTransferMSBCorparate","clientTypeMsbPersonal","WireTransferMSBIndividual","action","RenderOrganizationUniqueIdSelect","OrganizationUniqueId","OrganizationName","ProvinceList","CityList","SigningAuthorityProvinceList","SigningAuthorityCityList","DirectorProvinceList","DirectorCityList","MenuCodes","AML_KYC_DCBankBlacklistPool","AML_KYC_ClientBlacklistPool","BlacklistStatusId","OrganizationId","interval","IdTypeId1","IdNumber1","IdTypeId2","IdNumber2","IsClientComponent","BlacklistReasonId","AccountOpeningDate","ToDateInputValueAsUtc","AccountClosingDate","CompanyLegalName","SigningAuthorityName","SigningAuthorityDateOfBirth","SigningAuthorityAddress","SigningAuthorityCityId","DirectorName","DirectorDateOfBirth","DirectorAddress","DirectorCityId","MaxLength30","SortedParameterDesc","MaxLength20","KycReviewNumber","newModel","subtract","Detail","KycScenarioMenuActionDefinition","GetSubMenuParameter","ParentMenuId","GetRenderItemAction","ValidateSearch","SubMenuId","ActionId","GetMenuName","menu","menuName","IsParentMenuId","IsSubMenuId","IsActionId","SortedCode","galerydefault","require","CardDesignTool","OpenFileSelectDialog","fileInputRef1","click","HandleChange","HandleFileChange","fileInfoModel","ShowImage","selectedRow","selectedItem","getElementById","textContent","CardChipTypeId","CardBrandId","CardContactlessColorTypeId","BackgroundColorId","StoredImage","rowIndex","parsedId","handleUpdate","ChangeStatus","CardImageCode","openDialog","handleFileinfoChange","error","HandleChangeActiveStatus","DialogClose","HandleClearCancel","showDesign","imgSrc","OpenAutodepositInsert","customer","autoDepositInsertDialogOpen","selectedCustomer","image","photoBase64","ParameterCardBrand","ParameterCardChipType","ParameterCardContactless","ParameterStatus","maxLength5","trxTable","onTodoChange","Status","IsText","RowCount","CardBrand","CardChipType","CardContactlessColorType","BackgroundColor","PlasticName","GenericCardMedia","imageProfile","ImageFileId","ImagePlaceholder","kycManualPhotoDefinitionStyle","CardDesign","cameraLabel","ProfileMale","ProfileFemale","FaceTemplate","KycManualPhotoDefinition","PureComponent","handleOnCameraStart","stream","handleTakePhoto","dataUri","base64","rawFile","FileHelper","DataURLtoFile","blob","ImageHelper","CompressImage","compressedBase64","BlobToBase64","compressedFile","File","handleClose","handleCameraError","genderValue","genderList","GenderId","ExecuteApiFileUpload","kycManualApplicationId","kycManualApplicationUserPhotoId","UserPhotoId","formData","FormData","append","FileCode","KycManualPhoto","FileType","Base64","CrudType","Insert","fileId","requestModel","KycManualApplicationId","ImageId","handleOpenCamera","GetGenderList","HandleFileSelect","preventDefault","file1","target","files","imageObj","GetImageObjectFromBase64","TempFileId","FileSelect","handleRotateImage","imageBase64","GenerateImageFromRawBase64","rotatedBase64","Rotate","rotatedFile","parameterIdentificationMethod","sortName","gridSortParam","ColumnsData","activeOverlay","GenericCamera","OverlayRatio","OverlayImage","Open","OnCameraStart","OnTakePhoto","OnCameraError","StartDate","EndDate","Width","mediaProfile","accept","OnClickRotate","InPersonIDVerificationEnable","CanadaPostVerificationEnable","ExternalAccount","FinancialInstitutionBranchId","CustomerId","CustomerNumber","stickyContent","manualKycModel","IsActiveLoanPurposeDescription","IdVerificationTypeList","hasChanged","isKycManualDialogOpen","reasonTypeList","ManualKycApplicationList","GetReasonTypeList","KycManualApplicationReasonType","CODE","GetReasonTypeParameterById","IdentityVerifiedPersonId","IdentityVerifiedPerson","GetUser","IdentificationMethod","InPersonIDVerification","IdentityVerificationType","ExternalAccountNumber","appliedForModel","ApplicantAppliedFor","LoanPurpose","loadTaskPool","AppendTask","ShowMessage","modellist","GetFullName","fullName","SubmitCanadaPostAddressModel","ErrorCallback","alert","GenericAlert","Message","Type","OnConfirm","ShowQuestionMessage","ShowCancel","OnCancel","HideAlert","DeleteModel","showBasicAlert","ShowMessageNode","MessageNode","ShowConfirmMessage","onConfirm","ShowMessageAndRefresh","hideAlertAndRefresh","KycManualDialogClose","reload","SetStickContent","reRender","GetIdentityVerificationType","bind","TaskPool","handleLoadTaskPoolAppend","handleLoadTaskPoolCompleted","_row$original","DigitalIdentityVerificationId","_row$original2","CustomerLinkedAccountId","_this$GetReasonTypePa","MobilePhoneNumber","KYCManualApplicationStatus","OnHold","CanadaPostSubmit","Address1","Address2","ManualKycApplication","taskPool","ManualKycModel","onStickContent","ManualKycVerificationDefinition","GetClientList","apiList","ClientSearch","clientList","GetFilteredClientList","renderItemUniqueClient","HandleChangeFilter","InsertOrUpdate","messages","isNaN","showMessageNode","sortedName","Grid","apiUrlBase","VerifyInternalBlacklist","VerifyExternalBlacklist","VerifyTransUnion","VerifyCanadaPost","VerifyDocuments","VerifyAccountVerification","VerifyDigitalId","VerifyInPersonId","TransUnionIdVerification","Street","Civic","Phone","recordKeeping","RecordKeepings","columnsRecordKeeping","IsMiddleName","IsStreet","BureauHit","FraudFlag","UniqueID","Bureau","Dirserv","FirstNameSpecified","MiddleNameSpecified","LastNameSpecified","BureauHitSpecified","FraudFlagSpecified","CivicSpecified","StreetSpecified","CitySpecified","ProvSpecified","PostalSpecified","DOBSpecified","TransUnionVerificationReport","ManuelWatchListCheck","Submit","validate","GET","handleChange","FullName","Notionaly","Personel","WatchListStatus","UnverifiedCustomerCreateCardTry","handleGetList","trxGridToken","handleClear","hideAlert","GetClientParameter","parameterClient","handlePaginationData","loadingCompleted","IsUniqueDataSearchMode","ServerSide","PaginationFetchDataCallback","LoadAtStartup","RequestUrl","RequestMethod","PrepareRequest","UnverifiedCustomerList","ValueChangedForPopup","slice","customerId","parameterClientType","ClientCustomerNumber","CustomerName","StringHelper","Capitalize","String","toLowerCase","Atm","AtmEdit","AtmNew","AtmLocationInfo","Latitude","LocationRange","latitudeMax","latitudeMin","Longitude","LongitudeMax","LongitudeMin","AtmCode","SiteName","PostCode","FilterValidate","vFilterModel","tempData","IsOpen","isEditMode","Locations","FocusLocation","X","Y","locations","focusedLocation","lat","lng","mapZoom","IsDraggable","_model$Id","handleChangeFilter","isUniqueDataSearch","handleEditLocation","tempLocation","modifiedData","handleEditSubmitLocation","EditMode","markerPos","markerRef","getPosition","pos","getPlace","handleEditCancelLocation","getHandleMarkerClick","handleMarkerClick","markedIndex","handleMarkerDoubleClick","latLng","handleMapClick","tempModel","getMarkerPopup","Town","getMarkerPosition","latLngList","markerLatLngList","newLatLng","getMarkerList","GenericMapMarker","MarkerRef","draggable","OpenPopup","PopupComponent","getParameterProvinceFilterSelect","param","parameterProvinceFilterSelect","getParameterCityFilterSelect","parameterCityFilterSelect","getParameterProvinceSelect","parameterProvinceSelect","getParameterCitySelect","parameterCitySelect","googleMapRef","tableColumns","mapDefaultCenter","mapDefaultOptions","scrollwheel","disableDefaultUI","zoomControl","mapPlaceholder","mapContainer","emptyArray","GenericMapContainer","onRightClick","defaultZoom","zoom","ApiKey","GoogleMapApiKey","defaultOptions","defaultCenter","loadingElement","mapElement","containerElement","markerContainer","markerBody","atmLocationInfoStyle","AccountNotification","FillCustomer","FillCard","card","selectedNotificationChannelType","NotificationChannelTypeList","NotificationAccountChannelTypeId","Email","MobileNumber","MobilePhoneCountryCodeId","ClientCustomerId","CardId","NotificationThreshHold","SelectedTemplateChange","Template","htmlState","RenderNotificationTemplate","Subject","NotificationList","CardTokenNumber","NotificationTemplateId","NotificationChannelType","propertyList","ParameterMaxLength64","marginLeft2","Money","ClearClick","_responseData$Item","NotificationTemplateList","_model$NotificationAc","requestNotificationTemplate","_responseData$Item2","searchModel","isBackoffice","_responseData$Item3","CustomerComponent","FillCallback","Programs","ProgramCodes","Prepaid","CardComponent","TitleLabel","IsPhone","InputStyle","editor","HtmlEditorHelper","HtmlContentToReact","AgentEarnings","GetMemo","Memo","getSalesAgent","salesAgent","SalesAgentUniqueClientId","IsSalesPerson","isSalesPerson","TaskPoolDomain","ClientTypes","TotalAmount","EftAmount","DdtAmount","EtransferAmount","SwiftAmount","BillAmount","PrepaidAmount","LenderAmount","BankAccountAmount","AgentStatement","SalesAgentPersonal","SalesAgentCorporate","paramGlobalModel","paramCustomerProfile","paramBankCustomerCorporate","paramBankCustomerKeyContactList","paramBankCustomerDirectorsList","paramBankCustomerRegulatoryLicenseList","paramBankCustomerContractList","paramBankCustomerAddressList","paramBankCustomerMemoList","paramBankCustomerInternalAccountList","paramBankCustomerExternalAccountList","paramBankCustomerCorporateAuthOwnerList","paramBankCustomerCorporateAuthPersonList","paramIdentificationMethot1","paramIdentificationMethot2","paramCustomerMobilePhone","paramCustomerPrimaryPhone","paramCorporateBussinesPhone","paramCorporateFaxPhone","paramCustomerAlternativePhone","paramBankCustomerKYCStatus","paramBankCustomerSecurityList","ParentTabIndex","ChildTabIndex","CustomDisabled","ClientSetup","RenderClientNameSelect","IsProfileCompleted","RenderUniqueClientSelect","ClearAllCustomerData","FetchClientLimitedAuthority","ActionCode","ResultFunc","Backoffice_ClientSetup","Backoffice_SalesAgentSetup","user","rightList","y","RoleIds","RoleId","GetMemoTypeIds","clientMemo","riskRatingMemo","ClientMemoTypeId","RiskRatingMemoTypeId","handleChangeGlobal","showClearMeesage","GetAllCustomerModels","handleChangePersonal","handleChangeCorporate","LicenseRegistrationEntity","Other","LicenseRegistrationEntityOther","LicenseRegistrationEntityOther2","LicenseRegistrationEntityOther3","handleChangeIdentification1","IsIdVerification","IdentityTypeIdStr","IdentityNumber","ProofOfResidenceId","identification","CustomerIdentification1","handleChangeIdentification2","CustomerIdentification2","handleChangePhone1","phone","phoneModel","PrimaryPhone","handleChangePhone2","AlternativePhone","handleChangePhone3","MobilePhone","handleChangeCorporatePhoneFax","FaxPhone","handleChangeCorporatePhoneBuss","BusinessPhone","setCustomerState","temp1","IdentityExpireDate","temp2","BirthDate","UniqueClient","setCorporateState","LegalName","setIdentificationState","ValidateClientSubmit","ErrorList","global","toString","BankingAccountType","BankingAccountTypes","PrimaryAccount","Currency","CurrencyType","CAD","AddressType","MainAddress","corp","indv","SurName","Backoffice_SalesPersonClientMonitoring","Location","IdentityTypeId","GenerateCompleteProfileRequest","CompleteClientProfile","workflowId","after","ShowMessageConfirm","PerformProfileCompleted","ClearAllCustomerDataCancel","CheckNewClient","GetCustomerProfile","GetCorporateProfile","GetCustomerAddressModels","GetCustomerContractModels","GetCustomerDirectorsModels","GetCustomerKeyContactModels","GetCustomerRegulatoryLicenses","GetCustomerMemoModels","GetCustomerSecurityModels","GetCustomerExternalBankAccountModels","GetCustomerDCBankAccountModels","GetCustomerCorporateAuthOwnerModels","GetCustomerCorporateAuthPersonModels","GetCustomerKYCStatusModels","GetAllCustomerModelsPreLoad","ClientTypeStr","handleChangeParentTab","event","active","tab","handleChangeChildTab","confirm","ParameterClientTypeC","ParameterClientTypeSA","ParameterClientSearchCS","ParameterClientSearchSA","ParameterSortName","ParameterSortUniqueClientId","ParameterUniqueClientId","reset","CallCenterClientMonitor","code","IsExceptClientSetup","CSLimitedClientSearch","ActionCodes","res","RowId","ModelFunction","FillDataFromModel","ValidationFunction","IsTextBold","TabsComponent","TabIndex","tabList","tabButton","tabContent","CustomerDetails","isSalesAgentPersonel","hideSidebar","ContractDetails","Settlement","Security","Hidden","RiskRatingTabs","MemoTypeId","memoTypeId","ClientSummary","KYCStatus","checkModels","paramBankCustomerProgramList","LoadProgramsForUi","CSLimitedPrograms","allPrograms","BankProgramId","obj","HasAuth","prevState","UpdatePrograms","ShowMessageSuccess","GetCustomerProgramModels","ClearData","DisabledProp","md","sm","lg","IsService","ProgramCode","SubList","subParent","subList","ProfileId","ProfileName","CommissionFeeProfile","operationType","OperationType","DEFAULT","handleOperationType","successListCallback","errorListCallback","showSuccessMessage","showErrorMessage","AlertHelper","CreateAlert","CommissionProfileDataTable","CommissionProfileAddOrUpdate","UseStandartRate","FirstMonthCommissionRate","FollowingCommissionRate","CommissionFeeProfileDetail","CommissionProfileDetailDataTable","CommissionProfileDetailAddOrUpdate","NotificationSettings","EmailMapList","PhoneMapList","UserMapList","n","v","HandleChangeEmail","sel","HandleChangePhone","HandleChangeUser","IsRecordValid","EventNotificationId","SendSms","SendApplication","q","PhoneId","notExistChannelList","notifications","EventNotification","NotificationTemplateType","smsList","emailList","userList","countModel","isSmsDialogOpen","isEmailDialogOpen","isPortalDialogOpen","sortListName","ReactTable","foundRecord","PhoneCountryCode","defaultPageSize","showPaginationTop","showPaginationBottom","minRows","User","UserName","ProgramType","ToolbarButton","CheckImg","nativeColor","SMSFee","EmailFee","ApplicationFee","ClientSetupIdExpireDateList","showCancel","ParameterValue3","parameterCustomerName","renderItemClientCustomer","ReadOnly","NumberOfRemainingDays","ClientSetupIdLetterofGuaranteeList","UniqueClientName","ClientName","AccountId","Account","AccountName","TransitNumber","Branch","SecurityTypeId","SecurityType","AvailableLimit","LastLoadingDate","SecureAmount","InsertDateTime","CustomerIdExpireDateList","GetCustomerNameParameter","RenderItemClientCustomer","SiteVisit","HandleSelectModel","reader","FileReader","file","onloadend","Photo","fileModel","readAsDataURL","UploadClick","fileInputRef","HandleGetList","IsPhotoTakenCompleted","FileUpload","StartDateOfVisit","EndDateOfVisit","FetchCanadaPost","CpTemp","AddressHandle","addressComplete","COUNTRY","ProvinceName","CountryName","UniqueClientId2","DateOfVisit","VisitCompletionDate","VisitCompletionStatusId","SiteVisitAddOrUpdate","fileSelect","uploadClick","SiteVisitDataTable","handleSelectModel","CRARegister","GetDefaultModel","ApplicationChannelId","GetDefaultPhoneModel","PhoneCountryCodeId","HandleChangeModel","HandleChangeAddress","HandleRowSelect","HandleRowDelete","VerifyEmail","SIN","WalletNumber","GetGridButtonsRight","gridButtonRightDetail","MenuAuthorityRightHelper","RightCheckList","ShowConfirmDelete","ApplicationStatusId","CanadaPostAddressComponent","addressModel","GridXs","GridCount","isAddressOptional","isCityOptional","isProvinceOptional","isCountryOptional","zipCodeLabelText","_gridButtonRightDetai","_gridButtonRightDetai2","EditIcon","HasAuthority","TelpaySettlementFile","GetDailyFileList","onDialogValidate","successDailyFileList","dialogModel","SettlementDate","SourceOfRecordsId","_responseData$Item4","_responseData$Item5","fileInfo","BillPaymentNumber","BillPaymentReportNumber","NumberOfPayments","AmountOfPayments","AmountOfServiceCharges","TelPayPaymentDetails","legth","BillerCode","BillerName","Amount","TelPayTransactionReferenceNumber","TransactionReferenceNumber","SettlementStatus","SourceOfRecords","ClearModel","SettlementFileDate","SettlementFileReferenceNumber","headerModel","BillPaymentSettlement","TelpayReferenceNumber","SettlementStatusId","IsTelpaySend","TotalCount","refreshGridToken","legacyGridRefreshToken","GetTransactionList","transactionList","BillPaymentTransactions","TransactionDate","TelpaySendDate","TelPayReferenceNumber","TransactionStatus","IsEditable","IsRejected","setExportSelection","exportSelectedColumns","getSelectedExportColumns","isExportRequestValid","openExportDialog","closeExportDialog","dataRangeResultsCard","AllowNegative","DecimalScale","onExport","_this$getSelectedExpo","exportReportType","model2","exportModel","exportColumns","setValueToState","getRejectedDialog","isRejectedDialogOpen","selectedRejectedModelRow","datePickerClassName","rejectedModel","isRejectedModelValid","saveRejectedTransaction","closeRejectedDialog","saveUndoRejectedTransaction","initTransactionDetailColumns","initExportColumns","legacyGridLoadAtStartup","datasource","TransactionStatusId","BillTransactionId","isUndoRejectedDialogOpen","selectedUndoRejectedModelRow","getToolbarButtons","transactionDetailColumns","openRejectedDialog","UndoIcon","exportColumn","chartStyles","ChequeClearningSummary","chartData","chartDataContent","programCount","first","second","Actions","chqimage","ChequeAccount","DepositAccount","ECEInstitutionItemSequenceNumber","PostingAccountRoutingNumber","ChequeSerialNumber","totalchqinfomodel","ChequeClearingSummaryCalculation","tooltips","callbacks","label","tooltipItem","dataset","datasetIndex","total","reduce","previousValue","currentValue","currentIndex","floor","moreWarn","chartDataWithoutEmptyLength","chartKey","login","ImageFrontData","ImageRearData","DoughnutChart","FormatNumber","ChequeManagementStyle","ChequeFacs","GettingMoneyFromAccount","DeleteConfirm","Send","HandleCheck","checkedValues","DirectionParameterValue","Direction","Incoming","sortedCustomerName","isOpenDialog","ChequeStatus","DestinitionAccountId","SourceAccountId","ChequeIncomingFile","totalvisible","ClientId","successDailyDetailFileList","errorCallback","dailyFileDetailList","GetCHQIncomingDailyDetailFileList","CHQ","OpenEditModal","FileInformationId","FileDate","FileSource","SendStatus","RecordType","RecordCount","InstitutionNumber","TraceNumber","MICRAccountNumber","OriginDataCentre","TransactionCode","totalchqdetailinfomodel","GetCHQIncomingDetailDailyFileCalculation","TypeName","itemId","Titlerecord","FileChequeDetail","FileCredit","chqinfomodel","GetChequeDetail","dailyFileList","GetCHQIncomingDailyFileList","FileCreationNumber","CreditDebitTotalAmount","CreditDebitTotalCount","GetCHQIncomingDailyFileCalculation","ChequeImageDetail","zerMarPad","ChequeTotalAmount","ChequeTotalCount","TotalDepositAmount","TotalDepositCount","ChequeOutgoingFile","GetCHQOutgoingDailyDetailFileList","FileHeaderRecordType","FileHeader","RecordName","FileHeaderStandardLevel","StandardLevel","FileHeaderTestFileIndicator","TestFileIndicator","FileHeaderImmediateDestinationRoutingNumber","ImmediateDestinationRoutingNumber","FileHeaderImmediateOriginRoutingNumber","ImmediateOriginRoutingNumber","FileHeaderFileCreationDate","FileCreationDate","FileHeaderFileCreationTime","FileCreationTime","FileHeaderResendIndicator","ResendIndicator","FileHeaderFileIdModifier","FileIdModifier","FileCashLetterHeaderRecordType","FileCashLetterHeader","FileCashLetterHeaderCollectionTypeIndicator","CollectionTypeIndicator","FileCashLetterHeaderDestinationRoutingNumber","DestinationRoutingNumber","FileCashLetterHeaderECEInstitutionRoutingNumber","ECEInstitutionRoutingNumber","FileCashLetterHeaderCashLetterBusinessDate","CashLetterBusinessDate","FileCashLetterHeaderCashLetterCreationDate","CashLetterCreationDate","FileCashLetterHeaderCashLetterCreationTime","CashLetterCreationTime","FileCashLetterHeaderCashLetterRecordTypeIndicator","CashLetterRecordTypeIndicator","FileCashLetterHeaderCashLetterDocumentationTypeIndicator","CashLetterDocumentationTypeIndicator","FileCashLetterHeaderCashLetterId","CashLetterId","FileBundleHeaderRecordType","FileBundleHeader","FileBundleHeaderBundleBusinessDate","BundleBusinessDate","FileBundleHeaderBundleCreationDate","BundleCreationDate","FileBundleHeaderBundleId","BundleId","FileBundleHeaderBundleSequenceNumber","BundleSequenceNumber","FileCreditRecordType","FileCreditAuxiliaryOnUs","AuxiliaryOnUs","FileCreditPostingAccountRoutingNumber","FileCreditOnUsAccount","OnUsAccount","FileCreditItemAmount","ItemAmount","FileCreditECEInstitutionItemSequenceNumber","FileCreditDocumentationTypeIndicator","DocumentationTypeIndicator","FileCreditDebitCreditIndicator","DebitCreditIndicator","FileChequeDetailRecordType","FileChequeDetailAuxiliaryOnUs","FileChequeDetailPayorBankRoutingNumber","PayorBankRoutingNumber","FileChequeDetailPayorBankRoutingCheckDigit","PayorBankRoutingCheckDigit","FileChequeDetailOnUsAccount","FileChequeDetailItemAmount","FileChequeDetailECEInstitutionItemSequenceNumber","FileChequeDetailDocumentationTypeIndicator","FileChequeDetailBOFDIndicator","BOFDIndicator","FileChequeDetailChequeDetailRecordAddendumCount","ChequeDetailRecordAddendumCount","FileBundleControlRecordType","FileBundleControl","FileBundleControlItemsWithinBundleCount","ItemsWithinBundleCount","FileBundleControlBundleTotalAmount","BundleTotalAmount","FileBundleControlImagesWithinBundleCount","ImagesWithinBundleCount","FileCashLetterControlRecordType","FileCashLetterControl","FileCashLetterControlBundleCount","BundleCount","FileCashLetterControlItemsWithinCashLetterCount","ItemsWithinCashLetterCount","FileCashLetterControlImagesWithinBundleCount","FileControlRecordType","FileControl","FileControlCashLetterCount","CashLetterCount","FileControlTotalRecordCount","TotalRecordCount","FileControlTotalItemCount","TotalItemCount","FileControlFileTotalAmount","FileTotalAmount","GetCHQOutgoingDetailDailyFileCalculation","GetCHQOutgoingDailyFileList","FileCrationNumber","RejectedCount","GetCHQOutgoingDailyFileCalculation","Outgoing","DebitCreditTotalAmount","DebitCreditTotalCount","ClientReconciliation","SumValues","_len","arr","_key","handleClickOpen","program","GapList","GapProgramCode","Bank_Programs_EFT","EFTIncomingSummary","EFTOutgoingSummary","Bank_Programs_e_Transfer","ETransferIncomingSummary","ETransferOutgoingSummary","Bank_Programs_DDT","DDTSummary","Bank_Programs_CDIC","CDICSummary","HandleChangeFilterPanel","expanded","panel1Active","GetData","successSummaryCallback","ProgramName","PayeeName","AccountNumberStr","TransactionType","TransactionAmount","TransferMemo","SourceAccFIID","SourceAccTransit","SourceAccNumber","DestAccFIID","DestAccTransit","SDestAccTransit","DestAccNumber","EFT","ETransfer","DDT","CDIC","Dialog","dialogContentStyle","GenericCircularProgress","CATMResponseFile","GetNewCATMFileFromSFTP","GetFileList","FileStatus","FileStatusParamValue","selectList","showConfirmAlert","SubmitAccept","CatmBmoClearingTransactionIds","getTransactionByFileIdModel","trans","t","BankFileStatus","Waiting","MatchingCriteriaDefinition","columnListBoxOnChange","columnListBoxSelected","getDataList","summaryModel","columnListBoxOption","ReceivedDate","summaryItemResponse","DailySettledItems","ValueDate","PayeeAccountNo","PayeeAccountNumber","CrossReferenceNumber","PayeeDraweeName","TransactionId","DualListBox","createReportStyle","OfflineEtransferForReconciliation","cancelOfflineETransfer","response","initColumns","isRowActionDisabled","DateTimeUtc","_row$original3","CanBeCancelled","gridRefreshToken","handleChangeDialog","clear","onValidate","TransactionDateFrom","TransactionDateTo","TransactionTypeId","onSubmit","defaultModel","MoneyTransferDate","ClientReferenceNumber","isCreateDialogOpen","approvalAlert","onCreate","closeCreateDialog","createDialog","EntryType","GetDateTime","isStatic","TransferTypeId","approvalAlertOnCancel","CreateQuestionAlert","isApprovalAlertOpen","loadAtStartup","settlementErrorsGridRef","ValidateRequest","PendinBalanceTransaction","getProgram","check","ParameterYesNo","Reconciliation","EFTGapList","eTransferGapList","DDTGapList","CDICGapList","EFTSummary","eTransferSummary","CreatreIncomingWireTransfersCS","GenericPage","GetRenderItemAccount","renderItemAccount","OnlyLetterAndDigit","str","VerifiyDigitAndLetterForWire","VerifiyLine","VerifiyWireLine","defaultBeneficiaryModel","IsCorporate","CityName","Accounts","WireTransactionDate","WirePurpose","WireReferenceNumber","WireIncomingBeneficiaryId","OrderingClientName","OrderingCountryId","OrderingProvinceId","OrderingCityId","OrderingAddressLine1","OrderingAddressLine2","OrderingZipCode","OrderingSourceAccountNumber","InternationalBankCountryId","SendingFI","SendingFISwiftCode","SendingFICountryId","SendingFIAddress","defaultClientModel","defaultReceiverModel","SWIFT","FI","FITransitNum","FIAddress1","FIAddress2","FICity","FIProvince","FICountry","FIPostalCode","defaultStatusModel","IsClearDialogOpen","SaveConfirmDialog","IsSubmitTemplate","Alert","AcceptTerms","AmountPrefix","AcceptTermText","StatusModel","BeneficiaryInfo","ReceiverModel","ReceiverInfo","ClientInfo","setPortal","Portals","WireTransfer","ClientsInfo","continueWith","ExecutePostRequest","ClearBenefReceivInfo","isCompletelyClear","ClearReceivInfo","updatedOrderingModel","OrderingModel","updatedStatusModel","updatedReceiverModel","ReceiverName","ReceiverAddress1","ReceiverAddress2","ReceiverCity","ReceiverProvince","ReceiverCountry","ReceiverPostalCode","ReceiverAccountNumber","ReceiverSWIFT","ReceiverFI","ReceiverFITransitNumber","ReceiverFIAddress1","ReceiverFIAddress2","ReceiverFICity","ReceiverFIProvince","ReceiverFICountry","ReceiverFIPostalCode","HandleCreateOrUpdate","createResponseData","ErrorCode","ShowGenericMessage","ClearScreen","ShowClearMessage","HandleClearConfirm","IsLoading","OrderingClientDetail","OrderingAmountDetail","alignSelf","IsTextLeft","propTypes","PropTypes","object","isRequired","bool","func","OutgoingWireTransfers","HandleMatchDialog","matchDialog","defaultMessageModel","DateOfRequest","CreationDate","BeneficiaryCompanyName","BeneficiaryFirstName","BeneficiaryLastName","BeneficiaryAddress","BeneficiaryAddress2","CustomerAddress","BeneficiaryCountry","BeneficiaryCity","BeneficiaryProvince","BeneficiaryPostalCode","BeneficiaryBankCountry","BeneficiaryBankPostalCode","BeneficiaryBankInstitution","Remittance","BeneficiaryAccountNumber","IntermediarySwiftCode","PurposeOfWire","Reference","BeneficiaryBank","BeneficiaryBankAddress","BeneficiaryBankAddress2","BeneficiaryBankCity","BeneficiaryBankProvince","DirectionParamValue","MessageTypeId","SubStatusId","StatusId","AmountFrom","AmountTo","StatusParamCode","SwiftReferenceNumber","subStatusList","tempSubStatusList","approvalTransactionList","messageDetailModel","detailDialog","approvalDialog","Bind","HandleMessageChange","IsApproval","clientId","HandleApproval","TransactionWireTransferId","TransferId","TransferMessage","CloseDialog","HandleReject","IsCatmData","HandleUnSettled","HandleClose","HandleOpenDetail","templateId","transferId","isApproval","TempOrderingInstitutionSwiftCode","OrderingInstitutionSwiftCode","renderColumns","MessageId","WireTransferId","renderTransactionColumns","MessageDetail","BeneficiaryName","BeneficiaryIdentifier","BeneficiaryBankPartyIdentifier","SenderName","SenderAccountNumber","SenderSwiftCode","SenderAddress","SenderAdditionalInformation","OrderingInstitutionPartyIdentifier","OrderingInstitutionAddress","LastUser","SubStatus","dialog","Bank_Programs_Bank_Account","showQuestionMessage","MSBSubTransactionsDetail","TotalTransactionAmount","SubTransactionsTotal","MainTransactionAmount","defaultHeader","PendingList","NonPendingList","DetailList","TransactionInfo","MsbStatusValue","WireMsbStatusValue","Pending","InitialModel","ShowFileDetail","FileDetail","approveModel","WireTransferMSBFileDetail","ApprovalModel","HandleOpenEdit","templateDetailModel","WireBeneficiaryTemplate","HandleRejectStatus","transactionRequest","StatusType","Reject","HandleApproveStatus","Approve","MainTransactionId","detailColumns","subTransactionColumns","showSummary","BankCountry","SenderBirthDate","IdCountry","SenderInternalBlackList","SenderWacthList","SenderLimit","SenderLimitResult","BeneficaryName","BeneficaryBirthDate","DestCountry","BeneficiaryInternalBlackList","BeneficaryWatchList","BeneficiaryLimit","BeneficiaryLimitResult","ReceivingInstitution","CorparateInternalBlackList","CorparateWatchList","wireTransferId","isCaptured","wireTransferIdForWatchlist","IsCaptured","watchlistModel","ApproveWatchlistStatus","EftWireId","RejectWatchlistStatus","YesNo","defaultTemplateModel","IsTemplate","TemplateName","BankBranchName","BankFinIns","BankBranch","BankCity","BankProvince","BankCityName","BankProvinceName","HasChange","BeneficiaryTemplate","TemplateValueChanged","isTemplate","TemplateId","DocumentIcon","Channel","CreateBulkFile","SettlementType","ClearingFileHeaderDetail","FileHeaderInfo","FileTransactons","CreateFile","successCreateFile","SuccessCount","ErrorCount","successCount","errorCount","TransactionColumns","eTransferTypeId","FileFromDate","FileToDate","FileStatusId","ReceiveDate","TransactionETransferId","ClientNumber","NotificationStatus","PriorityType","PayeeEmail","SourceAccountTransit","SourceAccountNumber","InteracStatusInquriy","ValidateSearchRequest","InteracReferenceNumber","responseModel","handleSearch","ColumnsdailyFileList","EtransferTransactionTypes","Credit","MoneyRequestAmount","FulfillAmount","OutgoingCreateBulkFile","CheckAllTransactions","Footer","OutgoingSendBulkFile","sendrollbackstatus","SendStatusParamValue","Error","RollBack","FileColumns","eTransferIncomingTransactions","RefreshToolBar","LimitToken","searchIsNotSpecific","RefNo","InteracRefNo","validateStatus","SearchStartDate","SearchEndDate","diffMonths","GetSummaryData","GetHandleTrace","traceHelper","InsertTransactionTraceWithAlert","ShowErrorMessage","trxColumns","isAvailableForTraceTransaction","availableForTrace","BankTransactionStatusParamValue","BankTransactionStatus","Cancelled","TransactionTraceId","getInfoDialogData","isInfoDialogOpen","payload","TransactionEtransferId","TransferReferenceNumber","infoDialogData","handleAmountInput","num","_num$toString","_this$state$infoDialo","ReferredDocumentRemittedCurrency","showInfoDialog","_this$state$infoDialo2","_this$state$infoDialo3","_this$state$infoDialo4","_this$state$infoDialo5","_this$state$infoDialo6","_this$state$infoDialo7","_this$state$infoDialo8","_this$state$infoDialo9","_this$state$infoDialo10","_this$state$infoDialo11","_this$state$infoDialo12","_this$state$infoDialo13","_this$state$infoDialo14","_this$state$infoDialo15","_this$state$infoDialo16","_this$state$infoDialo17","_this$state$infoDialo18","_this$state$infoDialo19","_this$state$infoDialo20","_this$state$infoDialo21","_this$state$infoDialo22","_this$state$infoDialo23","_this$state$infoDialo24","_this$state$infoDialo25","_this$state$infoDialo26","_this$state$infoDialo27","_this$state$infoDialo28","_this$state$infoDialo29","_this$state$infoDialo30","_this$state$infoDialo31","_this$state$infoDialo32","_this$state$infoDialo33","_this$state$infoDialo34","_this$state$infoDialo35","_this$state$infoDialo36","_this$state$infoDialo37","_this$state$infoDialo38","_this$state$infoDialo39","_this$state$infoDialo40","_this$state$infoDialo41","_this$state$infoDialo42","_this$state$infoDialo43","_this$state$infoDialo44","_this$state$infoDialo45","_this$state$infoDialo46","_this$state$infoDialo47","_this$state$infoDialo48","_this$state$infoDialo49","_this$state$infoDialo50","_this$state$infoDialo51","_this$state$infoDialo52","_this$state$infoDialo53","_this$state$infoDialo54","_this$state$infoDialo55","_this$state$infoDialo56","_this$state$infoDialo57","_this$state$infoDialo58","_this$state$infoDialo59","_this$state$infoDialo60","_this$state$infoDialo61","_this$state$infoDialo62","_this$state$infoDialo63","_this$state$infoDialo64","_this$state$infoDialo65","_this$state$infoDialo66","_this$state$infoDialo67","_this$state$infoDialo68","_this$state$infoDialo69","_this$state$infoDialo70","_this$state$infoDialo71","_this$state$infoDialo72","_this$state$infoDialo73","_this$state$infoDialo74","_this$state$infoDialo75","_this$state$infoDialo76","_this$state$infoDialo77","_this$state$infoDialo78","_this$state$infoDialo79","_this$state$infoDialo80","_this$state$infoDialo81","_this$state$infoDialo82","_this$state$infoDialo83","_this$state$infoDialo84","_this$state$infoDialo85","_this$state$infoDialo86","_this$state$infoDialo87","_this$state$infoDialo88","_this$state$infoDialo89","_this$state$infoDialo90","_this$state$infoDialo91","_this$state$infoDialo92","_this$state$infoDialo93","_this$state$infoDialo94","_this$state$infoDialo95","_this$state$infoDialo96","_this$state$infoDialo97","_this$state$infoDialo98","_this$state$infoDialo99","_this$state$infoDialo100","_this$state$infoDialo101","_this$state$infoDialo102","_this$state$infoDialo103","_this$state$infoDialo104","_this$state$infoDialo105","_this$state$infoDialo106","_this$state$infoDialo107","_this$state$infoDialo108","_this$state$infoDialo109","_this$state$infoDialo110","_this$state$infoDialo111","_this$state$infoDialo112","_this$state$infoDialo113","_this$state$infoDialo114","_this$state$infoDialo115","_this$state$infoDialo116","_this$state$infoDialo117","Logo","alt","DateReceived","TransactionDirection","InteracStatus","UltimateDebtorPartyData","Identification","CountryOfResidence","DebtorPartyData","InitiatingPartyData","AgentNumber","CreditorPartyData","UltimateCreditorPartyData","TransferMemo1","TransferMemo2","TransferMemo3","ReferredDocumentCode","InvoiceeName","InvoiceeContactName","InvoiceeEmail","InvoiceeIdentificationCode","InvoiceePhoneNumber","InvoiceeIdentification","InvoiceeMobileNumber","InvoiceeCountryOfResidence","InvoiceeFaxNumber","InvoiceePostalCode","InvoiceeDepartment","InvoiceeSubDepartment","InvoiceeStreetName","InvoiceeBuildingNumber","InvoiceePostCode","InvoiceeTownName","InvoiceeCountrySubDivision","InvoiceeCountry","InvoiceeAddressLine","InvoicerName","InvoicerContactName","InvoicerEmail","InvoicerFaxNumber","InvoicerPhoneNumber","InvoicerIdentificationCode","InvoicerMobileNumber","InvoicerIdentification","InvoicerPostalCode","InvoicerDepartment","InvoicerSubDepartment","InvoicerStreetName","InvoicerBuildingNumber","InvoicerPostCode","InvoicerTownName","InvoicerCountrySubDivision","InvoicerCountry","InvoicerAddressLine","ReferredDocumentNumber","ReferredDocumentRelatedDate","ReferredDocumentDuePayableAmount","ReferredDocumentCreditDebitIndicator","ReferredDocumentRemittedAmount","CreditorInformationReferenceCode","ReferredDocumentAdjusmentAmount","CreditorInformationReference","ReferredDocumentReason","ReferredDocumentAdditionalInformation","AdditionalRemittanceInformation","IsBankingScreen","InformationIcon","isCallCenter","_this$state$gridButto","TraceIcon","rowValue","EtransferApplicationTypes","sortedByDate","TransactionList","SummaryItems","AccountLimitToolbar","IsUseDisableDebitLimit","PriorityTypeId","NotificationStatusId","ApplicationId","TotalNoOfCredit","TotalNoOfDebit","CreditTotal","DebitTotal","eTransferIntegrationErrors","NowDate","ETransferBatchIntegrationErrorTypeId","eTransferLegacyClients","onClear","selectedRowIndex","onSearch","refreshLegacyGrid","validateSubmitProperties","onUpdate","onDelete","onValueChange","onRowSelect","initlegacyGridColumns","CustomerInteractId","LegacyClientId","LegacyClientName","isLoadingShow","legacyGridColums","eTransferReconciliationFile","DownloadButtonControl","ReconciliationFileDetail","summaryInteracModel","ReconciliationInteracSummary","summaryFiModel","ReconciliationFiSummary","vmodel","ReconciliationDate","fiTransactionList","interacTransactionList","Clicked","mytitle","contentType","apiUrl","ContentType","ColumnsInitiatedByInteracPaymentsFile","ColumnsInitiatedByFiPaymentsFile","DownloadButton","ParticipantId","FormatDateTimeUtc","RunDate","BeginDate","TotalRecord","RunNo","Version","TotalRequestOrSendTransferCount","TotalRequestOrSendTransferAmount","TotalRequestOrSendTransferFixCount","TotalRequestOrSendTransferFixAmount","TotalCompleteTransferCount","TotalCompleteTransferAmount","TotalCompleteTransferFixCount","TotalCompleteTransferFixAmount","TotalCancelTransferCount","TotalCancelTransferAmount","TotalCancelTransferFixCount","TotalCancelTransferFixAmount","TotalDirectDepositTransferCount","TotalDirectDepositTransferAmount","TotalDirectDepositTransferFixCount","TotalDirectDepositTransferFixAmount","TotalDirectWithDrawalTransferCount","TotalDirectWithDrawalTransferAmount","TotalDirectWithDrawalTransferFixCount","TotalDirectWithDrawalTransferFixAmount","TotalAutoCancelledTransferCount","TotalAutoCancelledTransferAmount","TotalAutoCancelledTransferFixCount","TotalAutoCancelledTransferFixAmount","eTransferTraceTransactions","GetExportButtonDialog","eTransferCompletedTransfers","Completed","GetDateLocal","TransRefNoId","ResponseCode","TransferType","RequestDate","SenderRegistrationName","ParticipantReferenceName","ParticipantReferenceNumber","TransferStatus","FiAccountId","FiAccountNumber","AccountHolderName","eTransferOutgoingTransfers","handleChangeCancelModel","cancelRequestModel","cancellationReason","cancelDialog","remindDialog","hideDialog","handleCancel","eTransfer","selectTransfer","SelectedETransfer","Sent","confirmCancel","IsConfirm","handleRemind","remindModel","confirmRemind","RenderItemStoreName","renderItemStoreName","StoreName","StoreCode","vIndividualModel","maxLength400","isBankingScreen","InteracStatusParamValue","ETransferMoneySendStatus","TransferAvailable","TransferInitiated","ETransferMoneyRequestStatus","Available","UploadIcon","SettlementEtransferFileByClient","tabIndex","requetModel","settlementStatusId","DirectionId","TimezoneOffset","settlementListBySettTransactionDate","EtransferSettledTransactionsSummaryByClients","GrandTotalCreditBalance","GrandTotalCreditNumber","GrandTotalDebitBalance","GrandTotalDebitNumber","GrandTotalDifference","TotalSettledBalance","TotalCanceledBalance","TotalOutstandingBalance","TotalUnmatchedBalance","NetTotalBalanceChange","TotalUnSettledBalance","settlementListBySettlementDate","handleChangeTab","filterName","closeTransactionDetailDialog","isTransactionDetailDialogOpen","headerName","requestData","CreditTransactionTypeId","DebitTransactionTypeId","getTransactionDetailDialog","getColumns","clientNameColumnColor","settlementStatusColumnColor","totalCreditNumberColumnColor","totalDebitNumberColumnColor","cursor","openTransactionDetailDialog","onMouseEnter","onMouseLeave","TotalCreditNumber","TotalDebitNumber","setValueToModel","gridTransactionDetailRefreshToken","getDataSource","directionDataSource","transactionDetailGridRef","eTransferSettlementErrors","clearSearchCriteria","saveMatchingModel","matchingModel","isMatchingModelValid","closeMatchingDialog","isMatchingDialogOpen","SourceIdentifierId","CustomerInteracId","selectedMatchingModelRow","openMatchingDialog","eTransferSettlementFile","SettlementFileDetail","SettlmentSummaryDetails","lenght","settlementSummaryDetailList","settlementDetailList","orginationColumns","destinationColumns","outStandingColumns","updateLegacyClients","settlementDate","PmtRefNo","CpTransactionDate","PmtAmount","PmtStatus","OrginatingRequestFiUserId","OrginatingRequestAccountNumber","OrginatingRequestFiRefNo","OrginatingRequestTranDate","OrginatingRequestLocalTranDate","OrginatingRequestInitiatedBy","OrginatingRequestChannelIndicator","DestinationRequestFiId","DestinationRequestFiRefNo","DestinationRequestTranDate","DestinationRequestLocalTranDate","DestinationRequestInitiatedBy","DestinationRequestChannelIndicator","DestinationRequestAccountHolderName","DestinationRequestAccountType","DestinationRequestAccountNumber","DestinationRequestClientID","DestinationRequestClientName","Source","Destination","DestinationCompleteFiUserId","DestinationCompleteFiRefNo","DestinationCompleteTranDate","DestinationCompleteLocalTranDate","DestinationCompleteInitiatedBy","DestinationCompleteChannelIndicator","OrginationgCompleteFiId","OrginationgCompleteFiRefNo","OrginationgCompleteTranDate","OrginationgCompleteLocalTranDate","OrginationgCompleteAccountHolderName","OrginationgCompleteAccountNumber","FiRefNo","InitiatedBy","ChannelIndicator","TotalNumberCredit","TotalNumberDebit","TotalNumberCancel","TotalAmounCredit","TotalAmountDebit","TotalAmountCancel","eTransferSettlementFileByClient","SettlementDateFrom","SettlementDateTo","EtransferTransactionsSummaryByClients","SettlementFromDate","SettlementToDate","EtransferSettlementSummaryByClients","filterBySettlementDate","filterByTransactionDate","GetEtransferTransactionsSummaryByClients","getTabList","getTotalDetailPanel","tabIndexChanged","EtransferTransactionsLogSummaryByClients","eTransferTransactionsSettlementByFI","getMainMenuTransactionList","mainMenuTransactionList","FIID","isSettlementDetailDialogOpen","isPayRowActionDisabled","IsTransferEnabled","isSettlementDetailRowActionDisabled","IsReviewRequired","openSettlementDetailDialog","gridSettlementDetailRefreshToken","closeSettlementDetailDialog","getSettlementDetailDialog","settlementDetailGridRef","settlementDetailColumns","HideLoadMore","FundDirection","initSettlementDetailColumns","isPayRedirect","loadAtStartupForTransaction","selectedRowForTransaction","creditBalanceColumnColor","debitBalanceColumnColor","PayIcon","Intl","NumberFormat","currency","CreditBalance","DebitBalance","eTransferUnmatchedTransactions","FundDirectionId","eftDailySettledItems","eftIncomingFile","hideIsLoading","successTransactionListCallback","EFTClearingFileDetail","EFTTypeId","TotalNumbeCredit","OriginatorId","TotalAmountCredit","eftOutgoingFile","GenerateEftOutgoingFileResponseItemList","EftProcessor","FileEFTTypeId","EftProcessorFileId","EftProcessorId","FormatTime","eftReturnedItemList","Return","SelectedList","handleCheck","handleDelete","handleDeleteOk","successDeleteCallback","handleReSubmit","handleReSubmitOk","successReSubmitCallback","DeleteList","ReSubmitList","ReturnType","ReasonCode","DestinationInstance","EMail","ItemTraceNo","eftTraceTransactions","GetHandleTraceApprove","TraceStatusParameterValue","TransactionTraceStatus","CardTransaction","RenderAccountTypeParameter","FilterIdentityNumber","number","regexp","RegExp","exec","kModel","IsUniqueDataSearch","moment","asDays","Customer","DefaultAccount","DefaultCard","ReferenceNumber","CloumnsData","Balance","PendingBalance","IsExistingSystemAccount","IsChequingAccount","store","LimitBalanceData","AvailableCreditLimit","AvailableDebitLimit","AvailableBalance","ClientAutoDepositProfileDefinition","isEdit","CurrencyCode","DestinationAccount","operation","dataModel","DestinationAccountId","MondayLimit","TuesdayLimit","WednesdayLimit","ThursdayLimit","FridayLimit","SaturdayLimit","SundayLimit","ContractApprove","SalesChannel","SalesPerson","IsSalesChannel","SalesChannelTypeId","LimitProfileId","FeeProfileId","CommissionFeeProfileId","FeeProfileType","UnWeighed","IsUnWeighedFeeProfile","CombineUnWeighted","IsCombineUnWeighedFeeProfile","AggrementPriorityTransactionCount","AggrementRegularTransactionCount","AggrementTransactionCount","updateCustomerContract","accessToken","WorkflowUniqueClientId","WorkflowClientName","WorkflowClientType","AgreementStartDate","AgreementEndDate","NotificationPeriod","RenewalTypeId","LastRenewalDate","SalesChannelType","SalesPersonUniqueClientId","ContractStatusId","DCBankAccountApprove","branch","branchModel","FinancialInstitutionDescription","BankNumber","FinancialInstitutionBranchDescription","FinancialInstitutionBranchAddress1","FinancialInstitutionBranchAddress2","BranchNumber","FeeAccount","IsFeeAccount","updateAccount","BankingAccountTypeId","LabelStyle","SelectStyle","ThousandSeparator","AccountStatusId","IntendUseOfAccountId","FeeAccountMinBalanceId","ContractList","GetCustomerContractModel","contract","isConfirmDialogOpen","accountModel","acc","val","SecurityAccount","AdditionalAccount","StoreAccount","TotalContract","TotalBalance","AccountBalance","ContractId","ClientSummaryTab","CustomerContactList","ContactPopUpCallback","IsContactPopUpOpen","ContactSelectKey","TradeName","CountryCode","IsoCode2","CheckOld","Cancel","asYears","GetCanadaCountry","IsoCode","MustBeCountryCanada","CanadaId","RenderItemPhoneCode","renderItemPhoneCode","GetCountryParameter","parameterCountry","GetProvinceParameter","parameterProvince","IsClientCustomerPayee","UserContext","maxLength20","maxLength30","maxLength64","maxLength100","parameterLanguage","sortedOrderIndex","isShowCancel","PreferedLanguageId","IsPast","EmptyFile","FundsTransferFromSubAccountToDCBank","CustomerModelChange","CustomerModel","SelectedCustomerItem","IsCustomerAccountSelected","CardDisactive","CustomerDisactive","Lender","CardModel","searchRequest","ProgramCOde","vCustomerModel","vCardModel","_vCustomerModel$Descr","_vCardModel$Descripti","GetMainCardParameter","parameterMainCard","CardSearchCriteria","FillMainCard","cardList","RenderItemAccount","FillCustomerForCustomer","maxLenght","bankAccounts","CustomerBankAccountId","AccountShortName","BankAccountId","AccountTypeId","AccountType","AccountCode","ParameterValue4","WaitingPaymentList","handleChangeForCustomer","RestrictedClients","EmptyParameter","BlockNonDdtDebit","BlockNonDdtCredit","BlockDdtDebit","BlockDdtCredit","UseCorporateAccount","RefundAdjustment","Isworkflow","GetRefundAdjustmentTransction","transactionlist","checkedAccounts","FilterStatus","ids","TransactionIds","GetDestinationAccountParameter","parameterDestAcc","ToClientId","HandleCheckCustomerAccounts","RenderStyle","column","condition","prefix","tempworkflow","FillData","findIndex","IsRefundAdjustmentStatus","maxLength10","sortedList","TransactionDesc","GridDataList","AP","ToAccountName","ToAccountNumber","FromAccountName","FromAccountNumber","CurrencySymbol","CheckAllAccounts","TransactionAdjustment","sourceAccountName","destinationAccountName","transactionTypeName","SelectedTransfer","DateFilter","IsManualTransactionEntry","isManualTransactionEntryMenu","_d$BankingAccountType","getTransactionMessage","amount","toFixed","ManualTransactionEntry","SettlementAccountType","GenericDateFilterInput","IsCheque","ExpiredTransactionsManualRelease","TransactionReleaseConfirm","transactionId","validateProperties","AccountMovements","ChannelType","AutoLoadingInstruction","MinimumBalance","IsExternalAccount","ExternalSourceAccountId","ExternalDestinationAccountId","IsPeriodic","PeriodId","IsClientInstruct","parameterPeriod","IsStatusCheck","BillDefinition","BillIndividualModel","BillRecurringModel","BillFromFileModel","vRecurringModel","vFromFileModel","billMessages","BillPayType","Individual","BillPayTypeId","Recurring","startOf","IsUpdate","FreezeStartDate","FreezeEndDate","PaymentCount","RecurringAmount","PeriodCode","PeriodCodes","Weekly","WeeklyNumber","BiWeekly","BiWeeklyNumber","Monthly","MonthlyNumber","Quarterly","QuarterlyNumber","FillLastData","BillIndividual","any","FirstDueDateOptionId","WeeklyId","PeriodWeeklyId","PeriodWeekly","BiWeeklyId","PeriodBiWeeklyId","PeriodBiWeekly","MonthlyId","PeriodMonthlyId","PeriodMonthly","QuarterlyId","PeriodQuarterlyId","PeriodQuarterly","defaultIndividualModel","defaultRecurringModel","GetLastBill","CancelModel","isRecurringDialogOpen","IsDisable","ClearDialog","showClearQuestionMessage","UpdateDialog","isIndividualDialogOpen","isFileDialogOpen","IsCustomerPopupOpen","isCustomerAdded","customertoken","IsPayIndivudalPassive","IsPayRecurringPassive","GetBiller","ClientCustomerName","NewCustomer","BillerModel","BillPayTypeValue","BillerId","BillAccountNumber","BillDescription","BillId","AutoPayAmount","IsPayed","IsHaveTransaction","PayIndex","FromFileModelChange","defaultFromFileModel","IndividualModelChange","RecurringModelChange","BillerModelChange","defaultBillerModel","isClearDialogOpen","SubmitDialog","BillList","recurringRequest","individualRequest","SubmitFileClick","AutoApprove","fileResponseData","FileResultList","isFileResultDialogOpen","IsCustomer","BillerList","StaticBillerList","GetAllBiller","GetTelpayBiller","billerName","BillerNameChange","GetModel","BillFromFile","BillerCodeDisable","GetRenderItemBiller","renderItemBiller","TransactionTypeCode","IsNewBiller","IsAgainNewBiller","NewBiller","IsPayFromFilePassive","idIndividualClientWarningOpen","isBillerDialogOpen","addCustomerDialogClose","addCustomerSaved","modelFunction","TransactionModelChange","IsIndividual","tempmodel","errorDefinitionCallback","customerData","newCustomerToken","customerToken","GetModelId","Bank_Programs_BILL","OnLoad","Labelmd","InputValueChanged","onModelChange","parentModel","BillRecurring","IconButton","GenericIcon","CustomerDefinition","ForInsert","CustomerSaved","BillPaymentOutgoingFile","BillFileHeaderDetail","BillFileDetail","TotalNumber","BillTransactionList","CancelBill","CancelDialog","showQuestionCancelMessage","RejectedDialog","showQuestionRejectMessage","RejectBill","BillStatusTypeId","isBackOff","BillCustomerTransactionList","BillPayment","BillClientTransactionList","showCancelMessage","LimitMainType","BillStatusValue","BillStatusType","Canceled","Payed","IsFileWrite","BillerTypeName","BillerGroupName","AutoPayInstructions","IsAutoPayPeriod","AutoPayPeriod","BillerProvinceName","LastPayment","LastPaymentDate","TelpaySend","Fee","UpdateImages","ImageFileIdPlaceholder","OnLoaded","imageBase64Placeholder","downloadImageFromFileId","then","Heigth","Stretch","OnFetch","getImageFromFile","FileDataBase64","handleOnClick","WhiteDot1x1","componentDidUpdate","prevProps","CardMediaProps","showingBase64Data","containerStyle","cx","rotateButton","genericCardMediaStyle","BillTransactionSearch","GetBillList","rowindex","SentDate","OutgoingFileName","SettlementFileName","Biller","PayeerFinancialInstitutionRowId","FinancialInstitutionRowId","PayeerFinancialInstitutionBranchRowId","FinancialInstitutionBranchRowId","PayeerFinancialInstitutionId","PadLeft","PayeerTransitNumber","PayeerAccountNumber","GroupId","TypeId","TransferMemoId","ClientBillDefinition","IsPayIndivudalActive","IsPayRecurringActive","ClientCustomer","BillPayTyeId","NewClient","toDate","OnlineBillerList","BillProfile","customerAccountProfile","ValidationMessage","IsOpenPayeeDefinitionDialog","readOnlyData","GetClientType","BillIndividualList","GetBillIndividualList","BillRecurringList","GetBillRecurringList","TransactionOrderStatusId","ClientBillRecurringList","CustomerBillRecurringList","OrderStatusValue","TransactionOrderStatus","Finished","PaymentPeriod","LastCheckDate","CreateDate","OrderStatusDesc","GetBillerList","DeleteDialog","biller","IsAvailable","ParameterMaxLength7","IsDelete","ClientAccountSetProgram","HandleDeleteButton","getClientRowId","getClientId","IsCallCenter","ClientAccountActivities","AliasName","CustomerAcvitiviteAccounts","TrxFunc","Debit","ClientTypeParameter","handleChangeSearchModel","customerAccountList","GetCustomerBankAccounts","customerTransactions","StatementPeriod","StatementControl","IsRequiredStatementPeriod","IsRequiredDate","DateControl","IsInvalidFromDate","IsInvalidToDate","PerformSearch","BankAccountTransactions","req","AccountIds","SendToWorkflow","jsonData","CloseAccount","IsRequiredUniqueClientId","IsTxnDetailOpen","TxnDetail","handleChangeFilterPanel","panel","keyValueObject","keyvalueList","gridColumnElement","IsSettlement","Backoffice_Accounts","IsInvalidStatementPeriod","_row$value3","_row$value4","endDate","clone","GridDataAccounts","AccountType4","AccountType6","CurrencyDesc","AmountDisplay","ParameterValue2Excludes","ShortType","AlignToRight","DebitCreditId","MinAmount","MaxAmount","add","Explanation","FormatMoneySpecial","EtransferType","SourceAccountName","DestinationAccountName","DestinationAccountNumber","DdtMoneyTransfer","handleChangeDepositModel","depositModel","handleChangeWithDrawalModel","withDrawalModel","CalculateDdtTotalInfo","Active","Inactive","Total","newData","DdtTotalInfo","GetToolbarData","successCallback","openDepositModal","selectedDDT","ddtModel","DDTId","openDepositDialog","openWithDrawalModal","openWithDrawalDialog","IsValidDepositModel","errorMessages","IsValidWithDrawalModel","toolBarModel","poolModel","GetAllData","DownloadIcon","BranchId","PrimaryBranchId","DDTPoolAccountInfo","PrimaryAccountNumber","TotalDDTNumber","TotalDDTBalance","TotalCDICNumber","TotalCDICBalance","CDICPoolAccountInfo","DDTList","ToolBar","IsNumber","DefaultBankInformation","FinInsId","AccNumber","AccountOwnerName","FinInsBranchId","profileHeader","previewTitle","FeeTransactionSearch","IsFeeTrx","Fee_Transaction","GetFeeGroupValue","parameterFeeTypeValueTemp","FeeGroupValue","RenderItemFeeGroup","renderItemFeeGroup","parameterValueTemp","ParamterValue","IsFeeTransaction","FeeTypeValue","InteracApproveRequest","CheckIncomingData","interacData","Read","InteracRedirectURL","LocalStorageKey","IsValidUrl","IsMoneySend","ETID","IsMoneyRequest","RQETID","GetManualTransactionDetails","isManualTransactionEntry","ManualReferanceNumber","ManualTransactionType","ParseIncomingData","GetInteracDefaultEmail","FetchRequest","email","_this$state$model","ValidateEmail","GetReferenceNumber","GetIncomingTransfer","GetIncomingMoneyRequests","IncomingResponse","AuthenticateTransfer","_this$state$IncomingR","_this$state$IncomingR2","SecurityAnswer","HashSalt","incomingTransfer","hashSalt","authTransferStatus","CompleteTransfer","GetIncomingTransferResponse","DeclineTransfer","DeclineReason","DeclineMoneyRequest","CompleteMoneyRequest","IncomingRequest","RenderClientAccountSelect","test","GetRequestStatus","GetTransferStatus","FillApproveGridData","_IncomingResponse$inc","_IncomingResponse$inc2","_IncomingResponse$inc3","_IncomingResponse$inc4","_IncomingResponse$inc5","_IncomingResponse$inc6","_IncomingResponse$inc7","_IncomingResponse$inc8","_IncomingResponse$inc9","_IncomingResponse$inc10","_IncomingResponse$inc11","_IncomingResponse$inc12","_IncomingResponse$inc13","transferReferenceNumber","currencyCode","expiryDate","senderMemo","senderRegistrationName","incomingRequest","customerName","registrationName","moneyRequestAmount","moneyRequestExpiryDate","requestReferenceNumber","isDeclineDialogOpen","_IncomingResponse$inc14","_IncomingResponse$inc15","_IncomingResponse$inc16","_IncomingResponse$inc17","_IncomingResponse$inc18","_IncomingResponse$inc19","_IncomingResponse$inc20","_IncomingResponse$inc21","_IncomingResponse$inc22","_IncomingResponse$inc23","_IncomingResponse$inc24","_IncomingResponse$inc25","_IncomingResponse$inc26","_IncomingResponse$inc27","_IncomingResponse$inc28","_IncomingResponse$inc29","_IncomingResponse$inc30","_IncomingResponse$inc31","_IncomingResponse$inc32","_IncomingResponse$inc33","_IncomingResponse$inc34","_IncomingResponse$inc35","_IncomingResponse$inc36","_IncomingResponse$inc37","_IncomingResponse$inc38","_IncomingResponse$inc39","_IncomingResponse$inc40","securityQuestion","transferStatus","authenticationRequired","moneyRequestStatus","participantId","CreateInteracETransferUser","GetInteracUserDetail","accountSelectKey","storeList","clientSettings","ClientSettings","_responseData$Item$Cu","_responseData$Item$Cu2","_responseData$Item$St","_responseData$Item$St2","MainUserEmail","CustomerETransfer","GatewayUrlTurnedOff","FulFillDelayTurnedOn","FulFillDelayMaxWait","FulFillDelayAutoReject","DdrList","StoreList","IsClientMainAccount","BulkTemplateId","InsertOrUpdateIntearacMainUserValidate","MainUserEmailValid","isConfirmMainUserDialogOpen","InsertOrUpdateMainUser","isConfirmAdrDialogOpen","IsMainUser","InteracType","InsertOrUpdateIntearacUserValidate","InteracEMail","ServiceType","InteracEMailValid","existEmailControl","some","k","DeleteStatus","existPhoneControl","InteracPhone","isConfirmAdrDialogOpenUpdate","InsertOrUpdateeTransferClientSettings","gatewayUrlTurnedOff","InsertOrUpdateIntearacUser","StoreId","isConfirmDeleteDialogOpen","directDepositRegistrationId","confirmDelete","confirmSetForDcRequestMoney","autoDepositAccountIdForDcRequestMoney","handleDeleteStore","isConfirmDeleteStoreDialogOpen","storeId","confirmDeleteStore","isConfirmStoreDialogOpen","InsertInteracStoreValidate","Store","InsertInteracStore","ValueChangedForServiceType","ValueChangedForGatewayUrl","UpdateBulkEmailTemplate","_this$state$storeList","_this$state$storeList2","body","CustomerETransferId","isConfirmDcRequestMoneyDialogOpen","gatewayUrl","fulFillDelayTurnedOn","fulFillDelayMaxWait","fulFillDelayAutoReject","parameterYesNo","Backoffice_ClientSetupAutoDeposit","IsDcMoneyRequest","IsFormControl","flexWrap","alignContent","IsRegisteredToDirectDeposit","DirectDepositReferenceNumber","IsDirectDepositRegistrationDeletion","DirectDepositRegistrationDate","DirectDepositRegistrationStatus","WalletAccount","LinkedAccounts","HandleFlinksIframeResponse","institution","loginId","requestId","flinksLoginModel","isFlinksLoginDialog","FlinksAccountSummaryRequest","SaveFlinksModel","FlinksDataModelParse","flinksAccountModel","GetLinkedAccounts","flinks","flinksResponse","HttpStatusCode","Institution","RequestId","Tag","Login","Username","LastRefresh","LoginId","Category","CurrentBalance","Current","Limit","Holder","CivicAddress","Pobox","POBox","flinksAccounts","handleChangeFlinksLogin","customerLinkedAccounts","DeleteLinkedAccount","handleKeyPress","HandleClickConnect","linkedModel","flinksHandle","addEventListener","FlinksAccountPreviewCard","OnClickButton","FlinksIframeUrl","AccountBalanceSummary","SearchDate","BalanceRenderStyle","tempDefaultModel","AllAccountMovements","newColumn","newColumn2","newColumn3","newColumn4","newColumn5","_model$ReferenceNumbe","hasReferenceNumberSearch","SettlementAccountStatus","GetAccountList","HandleGetListMst","timezone","SubAccountList","MSTOffset","GetDateTimeMst","UseMstTimezone","_row$value5","ED","EftIcon","ETransferIcon","isSpecialPDF","SenderBank","isClearable","isDisabled","AllAggregateTransactionGroupReport","BalanceAccount","ChequeTransactionImageDetail","successImageData","chqtransaction","ClientAccountBalanceList","IsClientBalanceScreen","HandleValueChanged","ClientActivities","txnDateRenderStyle","balanceDateRenderStyle","SearchClick","TransactionBeginDate","TransactionEndDate","ClientSubAccountList","AccountStatusUpdate","AccountStatus","confirmAccountPassiveStatus","confirmAccountActiveStatus","validata","SubAccountNumber","initalModel","statusAccountDialog","statusAccountModel","CloseAccountApprove","accountData","accountId","GetAccountInfo","FromToAccountingTransaction","GetParameterUniqueClientId","sortedFullName","MinusWalletBalance","ValueChangedForExport","FormatDateTimeEst","MyAccounts","IsClientAcvitivies","o","MyAggregateTransactionGroupReport","TextAlign","SearchAccount","ClientParamObj","EtransferFromAccount","GetEtransferForLosInfo","LosDisabled","GetTransactionTypeCreditId","txnType","TransactionTypeStr","PerformTransaction","isLOSMenuActive","PayeeId","DateOfFunds","NotificationTypeId","ddrEmail","ddrPhone","MoneyRequestExpiryDate","InteracCustomerGetTransferOptions","IsHaveQuestion","SecurityQuestionId","SecurityQuestion","SecurityQuestionAnswer","SecurityQuestionText","FetchInteracGetTransferOptions","eMail","phoneNumber","serviceType","DirectDepositHandle","HasDdr","GetMaxExpireDate","maxExpireDate","SendTransaction","IsClientcustomerTxn","EmailValid","ReceiverMail","AddNewPayee","payee","hasChangedPayee","PayeePopUpCallback","IsPayeePopUpOpen","GetLocalDateTimeAsUtc","reloadData","RenderClientSelect","IBAN","Menu_LmsETransfer","etransferData","Transaction","NotificationType","Payee","GetClientParamObj","getAppLeftTitle","getAppCenterTitle","getMenuCode","IsApplicantCustomer","TransferToLinkedAccount","DestName","SourceBalance","SourceName","SourceType","DestinationBalance","DestinationName","DestinationType","DisplayName","DestAccountNumber","DestInstitutionNumber","DestTransitNumber","DestTitle","DestBalance","RenderItemSelect","textColor","DDTCDICSettlementAccount","propDDTModel","propCDICModel","EFTSettlementAccount","eftModel","ETransferSettlementAccount","eTransferModel","Profile","GetProfileInfo","handleCustomerProfileInfo","personalModel","corporateModel","accounts","eTransferInfos","addressList","clientType","InteractCustomersInfos","CustomerAddressList","programs","GetPrograms","PersonalAccount","CorporateAccount","MyProfileAddresses","ETransferInformation","CustomerContact","MyProfileAccounts","nModel","TransferBetweenClientAccounts","_this$state$readOnlyD","_this$state$readOnlyD2","_this$state$readOnlyD3","FetchClientAccount","transactionResponse","isResponseDialogOpen","destinationAccount","sourceAccount","SourceAccountType","PoolAccountId","_readOnlyData$Destina","_readOnlyData$Destina2","_readOnlyData$Destina3","_readOnlyData$Destina4","UniqieClientId","SourceAccount","DestinationClient","TransferToClientAccountReport","Transfer","PooledAccount","IncludeTrustAccount","AgentCommissionDefinition","ProfileModel","PaymentMethodId","CommissionStartDate","CommissionEndDate","FirstMonthAgreementRevenue","NextMonthAgreementRevenue","SubmitProfile","MaxPaymentRevenue","FetchDefinedProfiles","DeleteProfile","DefinedProfiles","FetchDataFixedFee","FeeProfileModel","FixedPropList","PeriodicPropList","FixedModelList","PeriodicModelList","WeightedModelList","Fixed","Scale","FetchPropFromParameter","handleChangeProfile","profileId","showDeleteMessage","IsCommissionCalculation","FFF","FeeType","PPP","CM1","LevelId","IsCombineScale","CM2","CM3","CM4","CM5","RG1","PriorityRegularType","Regular","RG2","RG3","RG4","RG5","PR1","Priority","PR2","PR3","PR4","PR5","programId","Max","MaxValue","LevelFrom","LevelTo","FeeDemands","GetFeeDemands","HandleColumnSubmit","FeeDemandId","SaleTypesId","SubmitOrSendIcon","AllFeeProfileList","reject","Fetcth","FeeProfileList","fee","_this$state$gridButto2","pageSelect","RowDetailIcon","feeId","profileType","isOnlyMonitor","MonitorMode","localDateUtc","FeeProfileTypeId","IsOrganizationUniqueId","filterMethod","startsWith","successGetByIdCallback","FeeProfileTypeStr","IsSupportWeighted","ca","Set","FeeTypes","UpdateRecord","handleListItemChangeFixed","feetype","handleListItemChangePeriodic","handleListItemChangeScaled","level","priority","TxnEffect","handleListItemChangeCombined","ReadOnlyData","TransactionFeeLabelTitleParameter","TransactionFeeParameterValue5","DeleteRecord","FetchData","handleResponse","routeObject","monitorMode","CombineWeighted","Weighed","header","DisabledProb","DisableWorkflow","borderRadiud","marginBlockEnd","endsWith","ClientLimitProfile","LimitPropList","FetchAllLimitProfile","LimitProfiles","LimitProfileType","handleListItemChangeLimit","LimitModelList","LimitType","dataLimit","propsLimit","ParameterValue6","LimitCount","ParameterValue5","LimitAmount","UserLimitProfile","HandleTransactionChange","HandleAccountChange","accountList","baseState","SuccessListCallback","ErrorListCallback","BankingNotification","TransactionAlertGroupList","BankAccountList","initialTransactionList","initialAccountList","SuccessSubmitCallback","ErrorSubmitCallback","TransactionAlert","transaction","AlertLimit","GroupName","KeyContactId","account","Notification","ReferralFee","modelArray","modelStandart","handleResponseStandartRate","handleChangeHeader","selectProfileSearchCallback","standart","AgreementType","AgreementTypeId","AgreementSignDate","actions","SearchComponent","nameTextSearchProp","nameIdSearchProp","fillCallback","DefineCustomizedDate","getTrProps","rowInfo","BulkFileUpload","listDetail","FileFormatId","AutoGenerateCustomer","Notify","UploadResponseToSftp","Upload","ReProcess","DemandStatusValue","ContainsRejectedRows","BulkFileDemandId","IsFileFormatId","WorkflowData","MenuActionRights","MenuActions","AllActions","rejectReasonDialogOpen","LoadAllActions","LoadButtons","LoadMenuActionRights","LoadMenuActions","LoadRejectComment","LoadModel","SetStatus","StepUp","OnButtonClick","RejectClick","CancelRejectClick","ButtonClickAsSender","RejectComment","actionCode","KycId","buttonData","menuActionRight","_menuActionRight$Menu","_menuActionRight$Menu2","actionId","sendToWorkflowFunction","noApprove","ButtonLog","IsWorkflowAction","MenuActionId","Result","Reason","ApprovalStatusCode","ApprovalStatus","approveFunc","Approved","CurrentStep","DirectComplete","CanceledbyUser","KYC","menuActionList","menuAllActionList","Order","clearAction","s","mActnlst","m","statusCode","RejectReason","Comment","WorkflowId","DCBankAccessToken","NoApprove","RejectFunction","setReject","DisableButtonLog","IsPopup","isRejected","isPopup","CampaignNotificationProfile","ExecutionTypeId","editorModelEmail","MailContent","EditorContentToHtml","MailSubject","sms","editorModelSms","SmsContent","EditorContentToText","UpdateModel","GetAllDataModelProperty","SearchNotificationProfiles","ResponseParser","ProfileList","GetProfileById","HtmlToEditorContent","EmptyEditorContent","PropertyDescription","PropertyList","EditorStateChangeEmail","EditorStateChangeSms","EsTemp","ToHtml","ToEditor","html","editorState","onerror","EditorState","createEmpty","emptyState","Editor","toolbarClassName","wrapperClassName","editorClassName","onEditorStateChange","mention","separator","trigger","suggestions","toolbar","CampaignPartner","phone1","phone2","PartnerName","BussinessIdNumber","handleChangeCP","Phone1","Phone2","SearchCampaignPartners","partnerList","ParameterMaxLen30","ParameterMaxLen64","CampaignPartnerUniqueId","CampaignEvaulate","ReturnHtml","htmlInput","ReactDOMServer","reactElement","HtmlToReactParser","Parser","renderToStaticMarkup","CampaignCriteriaList","CampaignMethodList","CampaignSimulates","isMessageDetailDialogOpen","CustomerActionModel","ColumnsDataCriteria","ColumnsDataMethod","ColumnsDataAppliedCustomer","TotalCustomer","TotalAction","TotalCriteria","NoticationType","HtmlContentRender","EmailContent","CampaignProfile","CheckCriteriaList","CheckActionList","GridRowCount","DataModelPropertyId","RightValue","isValid","IsContinuousEvent","IsCustomEvent","StartDateTime","ExpireDateTime","IsOneTimeEvent","ExecutionTypeStr","IsDaysOfMonth","DaysOfMonthList","IsDaysOfWeek","DaysOfWeekList","handleListItemChange","ObjectName","MonthsOfYearList","ActionList","DaysOfWeek","DaysOfMonth","MonthsOfYear","SearchCampaignProfileModel","EvaluateCampaign","ExecutionType","CampaignProfileList","IsRequired","AddSingleCriteria","AddSingleAction","handleChangeCriteria","handleChangeAction","isSimulateDialogOpen","count","GetSelectParamMethodProfile","CampaignEngineMethodId","CampaignMethodProfileParameter","RemoveSingleCriteria","RemoveSingleAction","ParameterExecutionType","FormatDateTime","CampaignCode","CampaignExecutionType","Batch","Online","IsMonthsOfYear","MethodProfileId","CouponHistory","ParameterEmpty","ColumnsCouponHistory","CouponProfileId","EndDateTime","CampaignDashboard","RenderChartData","LoadChartData","ParseChartData","ChartColors","arrayData","arrayLabel","arrayColor","EmailList","emailChartObj","j","SmsList","smsChartObj","CouponList","couponChartObj","CampaignList","campaignChartObj","CouponProfileList","CampaignCouponProfileList","GetGradientList","dataList","gradientList","getContext","gradient","createLinearGradient","chartGradientColors","addColorStop","begin","end","ChartOptions","red","orange","yellow","green","blue","purple","grey","IsFreeGift","IsDiscount","trxGradientList","trxBackground","feeGradientList","feeBackground","holdGradientList","holdBackground","returnedGradientList","returnedBackground","FreeProductProfile","SearchProfiles","profileList","ParameterTransactionType","ParameterDiscountPercentage","ParameterMaxLen50","ProfileCode","DiscountPercentageId","NumberOfTransaction","UniqueOperationCodeId","ICouponProfile","CouponDefinitionId","CampaignPartnerId","HandleChageTemp","PreconditionId","Reward","SerachICouponProfiles","couponProfileList","isCouponDialogOpen","ParameterMaxLength40","ParameterMaxLength300","ParameterPreconditionType","ParameterCouponDefinitionType","fileInputRef2","fileInputRef3","GenericColorInput","Logo1Name","Logo2Name","ImageName","CampaignCouponTemplate","NotificationHistory","ColumnsNotificationHistory","NotificationProfileId","PromotionStatus","UploadFileContent","Binary","uploadedList","MarkAsUsed","CouponCode","ParameterCouponStatus","ColumnsUploadCodes","CHQTransactionSearch","handleChangeTempModel","IsSettled","ChqStatus","ChqStatusCode","TransactionSourceId","ChequeManagement","pricetxt","IsSubmit","ChequeTypeId","Price","QuantityTypeId","ShipAttentionToId","SignatureTypeId","ChequeOrderList","ChequeDetailInfo","UniqClntId","chequemodel","GetParameter","prmList","mapData","ChequeOrderDetailInfo","OrderStatusType","TotalWaiting","TotalApproved","TotalQuantity","TotalPrice","ChequeOrder","ApprovedDate","ChequeOrderDate","totalresult","ErrorSendCallback","isActionCodeUnique","isActionOrderUnique","ChequeOrderDataTable","CreateCheque","list1","RoutingTransit","PayToTheOrderOf","BOFDRoutingNumber","EndorsingBankRoutingNumber","ItemSequenceNumber","ChqueAuxiliary","ChequeAccountOnUs","ChequeAmount","CreditAuxiliary","CreditAccountOnUs","CreditAmount","DebitCreditInd","ImageCreatorRoutingNumber","UploadClick1","ImageData","FileSelect1","reader1","ImageData1","fileModel1","FileName1","File1","placeholder","pictureSrc","ClientComponent","isOpen","dialogData","handleClickByKeyPressed","handleClick","handleClickInside","getCustomerCallback","getCustomerCallbackByKeyPressed","selectCustomerCallback","cancelSelectCustomerCallback","nameInputName","numberInputName","KeyPressed","Blur","EndIconName","IconOnClick","SearchImg","resizable","CreditCardComponent","handleBlur","FormControl","InputLabel","htmlFor","bankCode","MenuItem","TextField","secCode","thiCode","lastCode","DDTTitleBar","TotalNumberDDT","TotalNumberCDIC","DDTAccountBalance","CDICAccountBalance","NotificationBar","iconName","cardBodyColor","iconCss","cardListLabel","logo","notificationStyle","PhoneInputComponent","countryCodeCallBack","tempParamCountryCodeList","ParameterList","elem","paramCountryCodeList","valueCountryCode","valueAreaCode","valuePhoneNumber","areaCodeCallBack","tempParamAreaCodeList","paramAreaCodeList","value1","selectLabel","MenuProps","selectMenu","select","valueWhichPhone","selectMenuItem","cou","selectMenuItemSelected","are","CustomInput","labelText","inputPlaceHolder","formControlProps","cardsDetailStyle","ExternalContainer","getdrawerClasses","drawerClasses","paper","drawer","handleDrawerToggle","OnClickMenu","mobileOpen","setDrawerState","drawerModalProps","keepMounted","OnDrawerChanged","LeftSideItem","HeaderItem","FooterItem","HalfWidth","Base64Logo","Subtitle","smUp","implementation","Drawer","anchor","onClose","ModalProps","closeMenuButton","containerHalf","headerMenu","menuButton","mediaForLogo","headerTitle","headerSubtitle","footer","ParameterLOSPaymentFrequency","ParameterLOSPaymentMethod","ParameterPaymentOptionFee","ParameterLoanPurpose","ParameterLOSRateOption","ParameterDocumentVerifiedStatusType","VerifyingPersonParameterCode","ParameterDocumentType","ApiUser","api","UserListValue","ParentUserId","BankCustomer","isPasswordDisabled","GetCustomerList","uid","customerList","FilterUsers","uniqId","userLists","newList","filteredUserList","GetApiList","uId","GetCountry","GetUserList","syncCounter","pureValue","NotificationAddress","Password","Password2","errorState","NewPassword","NewPassword2","errorState2","handleSendOk","maskStatus","showQuestionAlert","handleClickSendOk","ApiUsername","PureNumber","successSendCallback","handleSubmit","openNewInsertSendCredentials","handleEdit","OldPassword","handleSend","openSendCredentials","handleSubmitOk","openChangePassword","handleClickSaveOk","ApiUserName","successSaveCallback","handleClickEditOk","params","successEditCallback","handleClickDeleteOk","handleClickClearOk","_this$state$apiList","aria-label","CloseIcon","isAccount","IsCompleted","IsPassword","IsError","columnTitle1","HolidayDefinition","MonthId","HolidayYear","GetAllHolidayDefinition","holidayList","SubmitClick","UpdateClick","FilterDate","FilterExplanation","closeSaveConfirmDialog","saveConfirmDialog","hideCreateTemplate","isCreateTemplate","AnnualRecurring","SFTPUser","sftp","sftpList","UserList","GetSftpList","FilterUserList","filteredUserLists","SftpUsername","finally","SftpUserId","SftpPassword","insertSuccessCallback","newSftpPassword","openPassword","handleBooleanChange","handleSendClick","promiseList","promises","all","_model$PhoneCountryCo","_model$PhoneNumber","_item$User$FirstName","_item$User$LastName","_item$User$UserEmail","_item$UserName","_item$ServerFullPath","UserEmail","ServerFullPath","CaaS","IsInsertOp","CaaSLinkProd","maxLength1","RedirectToCaas","url","GetRedirectLinkForCaaS","CustomerList","HandleRowChange","rowModel","ValueChangedForAutodeposit","ForWallet","HandleCustomerWalletDialogOpen","customerDetail","AccountList","CardList","isWalletCustomerDetailDialogOpen","CustomerStatus","HandleSendUserCredentialEmail","HandleReSendWalletAccountEmail","HandleSendSecurityAccountEmail","ToggleEditUserModel","isUpdateUserDialogOpen","HandleEditUser","UserStatusId","ExpDateOfId","ToggleCustomerDetail","isCustomerDetailDialogOpen","ExportDownload","GetWalletGridButtonsRight","GetGridButtonDisabled","_this$state$gridButto3","_this$state$gridButto4","_this$state$gridButto5","_this$state$gridButto6","_this$state$gridButto7","_this$state$gridButto8","_this$state$gridButto9","_this$state$gridButto10","_this$state$gridButto11","_this$state$gridButto12","_this$state$gridButto13","_this$state$gridButto14","CallCenter_CustomerList","ScreenParameter","menuCode","Bill_CustomerList","ForBillPayment","InsertOrUpdateInteracUser","InteracEmail","DirectDepositInteracEmail","IsDdrActive","WalletAccountId","DirectDepositSourceAccountId","WalletCustomerDetail","isCustomerWalletDetailDialogOpen","parameterUserStatus","DefinitionColumns","GetColumns","ListColumns","WalletIcon","CredentialIcon","DirectDepositRegistrationId","WalletCustomerDetails","InteracAccount","ForUpdate","CallCenter","DocumentTitle","CustomerRightsList","GridItemFreePadding","CDICAccounts","CDICList","CdicTotalInfo","successCdicCallback","CdicAccountList","NameAccountOwner","propIsBackoffice","propCDICList","propCDICTotalInfo","propGetAllData","DDTAccounts","openEditDialog","EditDDT","successEditCallBack","IsEmailValid","DDTStatus","handleEditChange","FormatYesNo","PrimaryAccountId","propFinInsId","DetailId","DDTCustomerInfo","DDTModel","PhoneModel","propModel","GridItemTextFreePadding","DDTIncomingEtransferTransactions","_model$AccountNumber","handleTrace","handleTraceOk","IdList","TransactionEFTIds","StatusParamValue","Traced","DdtReturnAccount","ReturnAccountId","ReturnAccountNumber","ReturnAccountName","ReturnAccountOwnerName","HandleInsert","DDTTransactionSearch","HandleSuspicious","sdTransactionId","suspiciousDialog","HandleSuspiciousConfirm","sdCancelMemo","sdCancelReasonId","CancelReasonId","CancelMemo","Ddt_SuspiciousApprove","ddtTraColumns","ddtTraTable","Backoffice_SalesPersonDdtTransactionSearch","CallCenterDDTTransactions","ClientUniqueClientId","DDTNumber","DDTStatusCode","SuspiciousIcon","DdtAccountActivities","cId","channelNameParemeter","ChannelNameTypeId","propDDTTotalInfo","propDDTList","TransactionSearch","Cdic_SuspiciousApprove","Backoffice_SalesPersonCdicTransactionSearch","CallCenterCDICTransactions","CDICNumber","CDICStatus","CDICStatusCode","CustomerBusinessTypeId","CDICSuspiciousApprove","ReasonId","cdicData","SenderAccount","ReceiverAccount","DDTSuspiciousApprove","ddtData","CardTspInformationList","LimitDataLoad","CorrelationId","ExecuteGeneral","tspInformationColumns","tspInformationList","Datetime","ClientBaseTransactionSearch","CardLevelCriteria","addDays","date","days","returnDate","setDate","getDate","Criteria","Central1OutgoingResponseReport","Central1ClearingReportFileHeaderDetail","EftCentral1ClearingReportFileDetail","ColumnstransactionList","PaymentType","FormatTimeUtc","CreateEFT","GetCustomerStore","CustomerStoreList","EntryCode","EFTType","BeneficiaryId","FromFileModel","IndividualModel","RecurringModel","addNewCustomerMenuId","ClearDialogConfirm","SubmitIndividualClick","SubmitRecurringClick","RecurringId","eftData","EntryTypeId","EFTEntryType","EFTTransactionTypeId","CustomerStoreId","EFTTransactionTypes","CustomerPayee","StartingFromDate","EndOfDate","FreezeFromDate","FreezeToDate","FirstDueDateOption","FromFile","individualMessages","recurringMessages","isFreezeStartDateDefined","CreateEFTIndividual","CreateEFTRecurring","FinancialInstitution","createEftStyle","EftClearingTransactionSearch","Menu_Client_EftClearingTransactionDdt","EftClearingTransactionEftClient","ClearingStarDate","ClearingEndDate","parameterSearch","LogicalRecord","LogicalRecordType","returnInsert","StoredTransactionType","sortParamValue","_row$original$Process","_row$original$Directi","_row$original$Directi2","ProcessStatus","Menu_Backoffice_EftClearingTransactionDdt","isTemplateCreate","RenderTransactionCode","_fileInfoModel$Direct","_fileInfoModel$Direct2","ProcessStatusId","GenericMultipleSelectInput","Loading","SelectValue","LogicalRecordId","TransactionCodeId","Errors","PayeeAccount","TransactinDateFrom","TransactinDateTo","MainSearchItemId","EftTypeId","ReturnReasonId","clientRowId","sortParamDesc","HandleChangeItemCount","GetItemCountCallback","SuccessItemCountCallback","ErrorItemCountCallback","Menu_Backoffice_RejectedReturnTransactionsDdt","Menu_Client_RejectedReturnTransactionsDdt","RejectedFiles","ReturnCount","RenderParam","_d$FinancialInstituti","padStart","_d$TransitNumber","IsUniqueClientRowId","ExternalBankSettlementInstruction","Validatecheck","FinancialAccountId","SettlementTransactionTypeId","EftTransactionTypeId","_row$original$Benefic","_row$original$Benefic2","_row$original2$Benefi","Beneficiary","CorporateAccountDetail","BusinessIdNumber","QuebecEntNumber","IncorporationCountryId","Provience","RbcOutgoingResponseReport","RbcClearingReportFileHeaderDetail","EftRbcClearingReportFileDetail","errorList","ColumnserrorFileList","Returns","HandleSend","SuccessSendCallback","TransactionNumber","TotalCreditAmount","TotalDebitAmount","TxnCode","TxnName","BulkFiles","fileList","HandleRowSelectedBulkFile","bulkFilesColumns","transactionColumns","sortedFilesByDate","sortedTransactionsByDate","genericSelectFileStatusParameter","EftIncomingTransactions","trxSorted","Eft_BackofficeEftIncoming","Eft_Transaction_Incoming","Menu_Backoffice_DDT_Transactions_IncomingEftTransactions","Menu_Client_DDT_Transactions_IncomingEftTransactions","Menu_SubClientIncomingEftTransactions","TransactionEftId","_row$value6","_row$value7","_row$value8","_row$value9","_row$value10","_row$value11","_row$value12","_row$value13","_row$value14","_row$value15","EftOutgoingTransactions","TransactionTraceHelper","RenderStore","storeName","EftPendingBalanceSearch","ClearSuspiciousDialog","mainSearchItem","MainSearchItem","CallCenterEFTTransactions","ParameterValueExcludes","Transactions","SelectedRowIndex","SelectedRow","HandleCancel","Working","Eft_SubmitApprove","HandleApproveOrDeny","isApproved","HandleTrace","Eft_TraceApprove","Eft_SuspiciousApprove","Backoffice_SalesPersonEftTransactionSearch","parameterCode","parameterValue","AwaitingApproval","_gridButtonRightDetai3","_gridButtonRightDetai4","Unapproved","SuspiciousStatus","_row$value16","_row$value17","_row$value18","_row$value19","_row$value20","_row$value21","_row$value22","_row$value23","_row$value24","_row$value25","_row$value26","_row$value27","_row$value28","_row$value29","_row$value30","_row$value31","_row$value32","_row$value33","_row$value34","_row$value35","_row$value36","_row$value37","_row$value38","_row$value39","_row$value40","_row$value41","_row$value42","_row$value43","_row$value44","_row$value45","_row$value46","_row$value47","_row$value48","_row$value49","_row$value50","_row$value51","_row$value52","_row$value53","_row$value54","_row$value55","_row$value56","_row$value57","_row$value58","_row$value59","_row$value60","_row$value61","_row$value62","_row$value63","_row$value64","_row$value65","_row$value66","_row$value67","_row$value68","CacheGuid","transactionStatusId","UnSettleds","handleApproved","approvedList","handleApprovedOK","deleteList","handleDeleteOK","BankTransactionStatusParameterDesc","TransactionEFTId","IsWithButton","EftIncomingApprove","showIsLoading","fileInfomodel","ScreenDisabled","SourceAccountModel","DestinationAccountModel","substring","PerTransactionIncomingCreditLimit","PerTransactionIncomingDebitLimit","AccountComponent","IsDCBankAccount","EftSubmitApprove","Nothing","EftSuspiciousApprove","transactionData","_transactionData$Entr","_eftData$FinancialIns","_eftData$FinancialIns2","_transactionData$Tran","FinIns","FinancialInstitutionBranch","TransitNo","EftTraceApprove","CountryLimits","emptyLimitModel","handleSelect","clonedData","FeeProfiles","toArray","returnList","hasOwnProperty","emptyProfile","SelectedFeeProfile","SelectedTransactionFee","SupplierId","Supplier","FeeMarkup","SupplierFee","FxMarkup","TransferMethodId","TransferMethod","TransferSourceTypeId","TransferSourceType","emptyDetail","executeSearch","handleSelectProfile","feeProfile","feeItemList","handleSelectDetail","handleAddDetail","newItem","validateNewDetail","temporary","CardTransactionFeeProfile","handleDeleteDetail","handleClearDetail","executeSubmit","validateSubmit","callUrl","requestList","originalDetail","originalDetailList","deletedItem","executeDelete","allDetail","feeProfileColumns","feeItemColumns","SelectedLimitProfile","SelectedTransactionLimit","TransactionLimit","AccountLimit","ReviewDailyLimit","HourlyLimit","WeeklyLimit","WeekendLimit","MonthlyLimit","NonReviewDailyLimit","limitProfile","limitItemList","CardTransactionLimitProfile","limitProfileColumns","limitItemColumns","UserMenuFavorite","OrderChange","orderList","GetByUserId","MenuName","favoriteOrderList","AfterSubmitOrDelete","IsFavorite","setTimeout","isEmpty","AggregatedFeeByClient","FeeTypeId","GenericScreenDefinition","Include","Inputs","GridColumns","DocumentButtons","ButtonOverrides","initialSelectInputModel","includeModel","inputModel","parameterModel","gridColumnsModel","buttonModel","tempParameters","isPreviewDialogOpen","HandleChangeScreen","HandleChangeScreenSelect","HandleChangeInclude","HandleChangeInput","HandleChangeParameter","HandleChangeGridColumns","HandleChangeButton","HandleBooleanChange","HandleBooleanChangeInput","HandleBooleanChangeParam","HandleBooleanChangeButton","AddInclude","DeleteInclude","AddInput","UpdateInput","DeleteInput","ClearInputs","SelectInputModel","AddParameter","DeleteParameter","AddGridColumns","DeleteGridColumns","SelectGridColumn","AddButton","UpdateButton","DeleteButton","ClearButtons","SelectButton","ShowPreview","Inner","paramModel","isDeleted","input","entries","entry","IsValidJson","json","HeaderText","LeftTitle","CenterTitle","view","FilterParameter","ColumnName","Desc","General","handleChangeScreen","jsonModel","handleAdd","Input","handleChangeParam","handleAddParam","handleDeleteParam","handleBooleanChangeParam","handleSelectInput","handleSelectGridColumn","ButtonOverride","handleSelectButton","InteracConfirmLogin","RecaptchaVerify","RecaptchaLoadCallBack","captchaLoaded","PerformLogin","IsCaptchaVerified","trim","SessionId","ForceTwoFactorAuth","SessionStatus","MustChangePwd","CanBeClient","dispatch","UserConstants","LOGIN_SUCCESS","PerformGetUser","userInfo","pID","GetParameterByName","rID","fiID","cuID","lang","results","decodeURIComponent","initialize","LoginLogo","textCenter","media","backgroundSize","FloatRight","AutoFocus","Recaptcha","sitekey","verifyCallback","onloadCallback","withRedux","loginPageStyle","InteracConfirmOtp","HandleChangeAuthMethod","authMethod","AuthenticationMethod","Google","SendSMSOTP","VerificationCode","Routing","GetQRCode","AuthenticatorQrLink","QRCode","isShowQRCode","MethodName","OtpId","AuthenticatorVerify","TwilioVerify","Otp","OtpMethod","HandleKeyPress","rememberAuthValue","Twilio","OtpLogo","googleLogo","OtpGoogleLogo","twilioLogo","OtpTwilio","data-url","Black","FormControlLabel","Radio","checked","radio","radioLabel","defStyles","divBorder","CardFooter","Link","to","InteracConfirmPaymentOperation","FetchGetIncomingTransfers","participantUserId","GetIncomingTransfersResponse","FetchAuthenticateTransfer","securityAnswer","AuthenticateTransferResponse","FetchDeclineTransfer","declineReason","DeclineTransferResponse","InteracConfirmPaymentResult","LogOutUser","ParameterMaxLength100","ConfirmationNumber","SubmitPayment","InteracConfirmPaymentReview","FetchCompleteTransfer","HocComponent","ErrorBoundary","InteracConfirmSecurityQuestion","CreateEtransfer","maxExpDate","MoneyReqExpDate","HasDDR","IsDcbMoneyRequest","FrequencyType","FrequencyCode","PeriodType","DayOfWeekId","DayOfWeekNumber","DayOfMonthTypeId","DayOfMonthTypeNumber","DayOfMonthId","DayOfMonthNumber","WeekOfMonthTypeId","WeekOfMonthTypeNumber","WeekOfMonthId","WeekOfMonthNumber","UpdateRefreshIndividual","UpdateRefreshRecurring","EtransferEntryType","EtransfertypeParamValue","StartingFrom","FrequencyTypeId","PeriodTypeId","DayOfWeek","DayOfMonthType","DayOfMonth","WeekOfMonthType","WeekOfMonth","_IndividualModel$Secu3","_IndividualModel$Secu4","_IndividualModel$Secu5","DcbETransferType","AccountDeposit","_IndividualModel$Secu","_IndividualModel$Secu2","isTooShortSecurityQuestionAnswer","_IndividualModel$Secu6","_IndividualModel$Secu7","_RecurringModel$Secur3","_RecurringModel$Secur4","_RecurringModel$Secur5","EtransferFrequencyCodes","EtransferPeriodCodes","ETransferDayOfMonthTypes","SelectedDay","_RecurringModel$Secur","_RecurringModel$Secur2","_RecurringModel$Secur6","_RecurringModel$Secur7","RealTime","CreateEtransferFromFile","CreateEtransferIndividual","CreateEtransferRecurring","createEtransferStyle","FraudCheckResults","hileCancelDialog","InteracUrl","Menu_SwitchReport","PaymentStatusId","panelTransactionIsActive","Transactions_BackofficeEtransferRecurringTransactionSearch","TransactionOrderStatusValue","ResponseReferenceNumber","Etransfer_SubmitApprove","Etransfer_TraceApprove","Etransfer_SuspiciousApprove","HandleRemind","EtransferId","CallCenterEtransferTransactions","sortedByFileDate","Backoffice_SalesPersonETransferTransactionSearch","_gridButtonRightDetai5","_gridButtonRightDetai6","SubmitStatus","reSubmitSelectList","InsufficientBalance","BlockedLimit","selectedRowChange","transList","alllist","selectFile","fileTransactions","handleReSubmitApprove","TransactionEtransferIds","hideCancelDialog","customInputStyle","labelProps","white","inputRootCustomClasses","helpText","floatRight","onInput","labelClasses","labelRootError","labelRootSuccess","underlineClasses","underlineError","underlineSuccess","underline","whiteUnderline","inputClasses","whiteInput","formControlClasses","formControl","helpTextClasses","InvalidFieldColor","RequiredFieldColor","labelRoot","autoComplete","FormHelperText","EtransferSubmitApprove","IsBanking","isBanking","EtransferSuspiciousApprove","EtransferTraceApprove","isBrowse","parameterDatalist","paramDetailList","AutomatedCollectionParameter","GetAutoCollectionParamDetails","Post","LoanTypeId","LoanPurposeId","AutoCollectionProfileId","paramDetails","NumberOfDelayDay","AutoCollectionParamActionId","AutoCollectionParamAction","LoanNotificationTemplateId","ActionUpdate","ActionSubmit","AutoCollectionParam","AutoCollectionParamDetailList","ActionSearch","ActionDelete","ScoreCardValueId","ActionClear","methodName","AutomatedCollectionParameterId","RemoveSelectedCriteria","LoanTypeParameterCode","LoanPurposeParameterCode","LMSAutoCLCParamAction","LMSAutoCollectionParamProfileFlexSet","FlexType","FlexCode","LabelText2","ComboStyle","BorrowerList","openDetailModel","MobilePhoneCountryCode","urlApplicant","unshift","ValueChangedCustomer","ApplicantDefinition","ShowCustomerProgram","BulkApplicationDelivery","SubmitDetailDialogOpen","isSubmitDetailDialogOpen","SubmitDetailDialogClose","listSubmitDetail","columnsSubmitDetail","fileCode","isSucceeded","CardFinancialAdjustment","CardFinancialId","CatmCardId","RenderItemApplication","renderItemApplication","ApplicationNumber","GetParameterApplicantId","parameterApplicantId","SubmitConfirm","IsCashAdvance","IsCardId","IsApplicantId","IsTransactionCode","IsApplicationId","IsAmount","CardOwingBalanceReport","CatmTransactionCodeId","CmsTransactionCodeId","cardTrxColumns","cardTrxTable","parameterIsCatmTrue","IsCatm","parameterIsCatmFalse","modelFillData","CreditBureauReporting","openDetailDialog","customerNumber","addToReport","AddToReport","checkStyle","linkDivStyle","LMSPaymentStatus","FundingSummary","Top","OutstandingData","TotalLoanData","PastdueData","InterestData","PaymentsData","FundedLoans","LoanType","FileTypeParameterCode","unFundedApprovedChartData","approvedFundedOneMonthChartData","approvedFundedTwoMonthsChartData","pieChartData","InterestTypeParameterCode","PeriodParameterCode","PayOptionParameterCode","YesNoParameterCode","unFundedApprovedChartDataObj","UnFundedChartData","approvedFundedOneMonthChartDataObj","FundedOneMonthChartData","approvedFundedTwoMonthsChartDataObj","FundedTwoMonthsChartData","pieChartObj","FundingStatusChartData","ClientPartnerId","CardIcon","Suffix","Count","FundingSummaryChart","cardTopMargin","LOSLoanType","LimitAdjustmentForWorkflow","GetApplicantList","parameterCodeList","applicantList","ApplicantList","feeProfileList","parameterList","AdditionalSecurityAmount","requestUpdateCardLimit","NewCardLimit","ApplicationCardId","StatusParameterValue","LmsLimitAdjustmentHistoryStatus","IsLimitAdjustment","requestUpdateApplication","NewSecurityAmount","NeedsSecurityAmount","rejectReason","isApprovedPeriodDisabled","loanApprovalFeeList","parameterLOSPaymentFrequency","parameterLOSPaymentMethod","LimitAdjustmentHistoryId","RequestedAmount","LoanFeeDefinitionId","IsAgreementSigned","prm","RequestedPaymentFrequencyId","ApprovedAmount","SecurityAmount","ApprovedPaymentFrequencyId","RequestedPaymentPeriod","ApprovedPaymentMethodId","ApprovedSecurityAmount","ApprovedPaymentPeriod","SecurityBalance","CurrentCardLimit","LimitAdjustmentHistory","lmAdjHisColumns","lmAdjHisTable","AddedSecurityAmount","resultLetterTempList","LoanNotificationTemplateDefinition","IsStringNullOrEmptyOrWhiteSpace","letterContent","Content","notificationTempList","contentBlock","htmlToDraft","contentState","ContentState","createFromBlockArray","contentBlocks","createWithContent","draftToHtml","convertToRaw","getCurrentContent","tmp","innerHTML","innerText","GetFileBase64","callback","ImageUploadCallback","ParamLOSLoanType","ParamLOSLoanPurpose","ParamLMSAutoCLCParamAction","urlEnabled","uploadEnabled","uploadCallback","previewImage","defaultChartDataSet","initialChartContract","paymentTransactionList","chartList","PaymentManagement","formatNumber","GetChartColor","returnColor","GetChartDataSource","chartDataItem","dataSource","RequestAmount","RequestAmountCount","GetChartText","chartText","PaymentTransactionDataList","SetPaymentChartData","paymentChartData","CurrentChartData","ThirtyDaysChartData","SixtyDaysChartData","NinetyDaysChartData","NinetyDaysPlusChartData","TotalInterestFeeChartData","LoanCircleChart","leftTitle","centerTitle","mainTitle","itemList","PortfolioPerformance","DialogBorrowerDetailOpen","applicantId","isBorrowerDetailDialogOpen","DialogBorrowerDetailClose","PortfolioPerformanceList","ApplicationDetailList","abs","LedgerCardDialogOpenOrClose","isLedgerCardDialogOpen","StatementDialogOpenOrClose","isStatementDialogOpen","HandleClickClearOk","ApplicationsList","modelrow","programList","totalLoansChartData","outStandingChartData","currentChartData","pastDueChartData","writeOffsChartData","interestChartData","feesChartData","Application","Loan","ApplicationCardStatus","LOSApplicationCardStatus","Passive","LOSPaymentFrequency","arrayData6","arrayData7","arrayLabel6","arrayLabel7","arrayColor6","arrayColor7","TotalLoansChartData","TotalRequestAmount","totalLoanString","totalLoansChartDataObj","OutstandingChartData","WaitingRequestAmount","WaitingTotalPerson","outStandingString","outStandingChartDataObj","PaidRequestAmount","PaidTotalPerson","currentString","currentChartDataObj","PastdueChartData","UnPaidRequestAmount","UnPaidTotalPerson","pastDueString","pastDueChartDataObj","WriteOffsChartData","writeOffsString","writeOffsChartDataObj","InterestChartData","InterestBalance","interestString","interestChartDataObj","FeesChartData","TotalSetupAmount","feesString","feesChartDataObj","WriteoffsChartData","ApplicantModel","Statement","PortfolioPerformanceChart","TitleChart","TitleChart2","TitleChart3","TitleChart4","TitleChart5","TitleChart6","TitleChart7","FeeBasedTransactionReport","FeeReport","IsMainCard","maxLength6","parameterProduct","FeeRevenueReport","TransactionNameBasedFeeReport","modelUpdate","getProvince","getCity","RenderLeftSide","lengthAddress","RenderRightSide","NewProvince","NewCity","lengthZipCode","isZipCodeOptional","ParameterAddressType","ParameterAddressTypeIndv","UserLogReport","OriginalValue","IsUserId","NewValue","FileTypeId","VersionNumber","agreementList","AgreementTemplate","DownloadModel","FileDownloadWithGenericResponse","ValidateSubmit","UpdateFile","documentId","SetFile","ISO_8601","documentModel","FileNameValue","isGenerateNew","uniq","UncompletedApplicantList","isApplicantDetailDialogOpen","ApplicantDetaiDialogClose","appListColumns","appListTable","ApplicationBorrowerReview","ReviewPeriodId","ReviewStatusId","ReviewAlertTimeId","LoanResultLetterTypeId","applicantModel","resultLetterMapList","applicationList","isLetterTempActive","ApplicationResultLetterApplicantMap","ApplicationResultLetterTemplateId","actionSearch","letterTempList","getResultLetterTempList","HandleGetApplicant","GetApplicationList","HandleGetApplication","ParamLOSResultLetterType","ApplicationResultLetterTemplate","contentText","HtmlEditor","renderToString","GetHTMLLetterContent","ContentText","LoanResultLetterContent","GetDataModelPropertyList","editorPropertyList","isPreview","LogoImage","HeaderImage","isTempPreviewDialogOpen","ResultLetterTemplatePreview","ApprovalParameter","LoanActionId","CollectionProfileId","LoanCollectionProfileIdActionId","GetRenderItemScorecardValue","LOSScoreCardValuesFlexSet","LOSScoreCardValuesActionsFlexSet","LOSScoreCardValuesProfilesFlexSet","ScorcardTableImage","paramClientPartnerAddressList","paramClientPartnerContractDetailsList","paramClientPartnerAccountDefinitionAndDetailsList","ClientPartner","GetClientPartnerAddressModels","LegalNameOfBusiness","BusinessPhoneCountryCodeId","BusinessPhoneNumber","GetClientPartnerContractDetailsModels","HandleCustomerSelect","GetClientPartnerAccountDefinitionAndDetailsModels","HandleGetClientPartner","HandleCreateNew","ClientPartnerAddressList","ClientPartnerContractDetailsList","ClientPartnerAccountDefinitionAndDetailsList","newState","PartnerUniqueId","ClientPartnerInformation","handleAddressModel","ClientPartnerAddress","ClientPartnerModel","ClientPartnerContractDetails","ClientPartnerAccountDefinitionAndDetails","AccountDefinitionModel","ClientAccountFinancialInstitutionId","ClientAccountFinancialInstitutionBranchId","ClientAccountAccountNumber","PartnerFinancialInstitutionId","PartnerFinancialInstitutionBranchId","PartnerAccountNumber","tempPartner","partnerModel","tempAccount","handleChange2","SalesChannelarameterCode","PartnerFeeTypeParameterCode","IntendUseOfAccountParameterCode","AccountTypeParameterCode","Parameterwidth33","Parameterwidth65","TitleLabelBranch","ClientPartnerDdtList","ClientPartnerDdtListModel","DdtOwnerName","customerDefinitionStyle","employer","employerControl","EmployerAddress","EmployerZipCode","EmployerCountryId","EmployerProvinceId","EmployerCityId","services","BusinessName","RegistrationName","RetailName","OccupationId","PriorOccupationId","IdentificationMethodId","CustomerStatusId","DefaultCustomerStatusId","IdentityVerifiedBy","IdentityVerificationDate","SecondaryIdentityVerifiedBy","SecondaryIdentityVerificationDate","PrimaryDocumentReviewedBy","PrimaryDocumentVerificationDate","SecondaryDocumentReviewedBy","SecondaryDocumentVerificationDate","MustFillIdVerification","IdentityVerifyingPersonId","DualMethodId","PrimaryProvincialIdentityTypeId","IdentityPlaceOfIssue","SecondaryIdentityTypeId","SecondaryProvincialIdentityTypeId","SecondaryIdentityPlaceOfIssue","SecondaryIdentityNumber","SecondaryIdentityExpireDate","CreditAgencyId","CreditFileNumber","CreditFileCompletionDate","InPersonMethodId","PrimaryDocumentId","PrimaryDocumentNumber","SecondaryDocumentId","SecondaryDocumentNumber","CreditFileMethodId","SecondaryVerifiedBy","SecondaryVerificationDate","personalType","customerTypes","retiredOrUnemployedOccupationIds","HandleChangeCustomer","ClientCustomerList","LoadCustomerData","HandleChangeTempModel","HandleChangeDDRRegistration","ddrModel","HandleToggle","newChecked","GetDCAccountList","HandleChangeAccount","HandleChangeDCAccount","DCAccountModel","wCheckModel","finScanSearchData","FinScanSearchData","IsIncludePrepaid","IsIncludeLender","GetWatchListCheckModel","IsDdrActiveId","isDDRInquiryOpen","HandleSubmitOk","IsIncludeEFT","IsIncludeET","IsIncludeCDIC","IsFilledPhoneNumber","requireds","IsAutoGenerateCustomerNumber","maxLengthCustomerNumber","DontCheckCustomerInformation","Occupation","PriorOccupation","CreditAgency","CreditFile","PrimaryDocument","ProvincialIdentityType","specificIdentityTypesIds","ValidationIdentityFields","msg","IsValidatePhone","ProvincialIdentityTypeId","HandleClickDeleteOk","SuccessDeleteCallback","WalletAccounts","HandleNext","handledByNext","isNewCustomer","curFinScanSearchData","newFinScanSearchData","IsFinScanCheckRequired","SuccessSaveCallback","isFinScanCheckRequired","isErrorDialogOpen","HandleDDRInquiry","DDRInquiryResult","HandleDDR","AddAccount","hasChangedAccount","DeleteAccount","SelectedRowChangeAccount","ClearAccount","GetWalletAccountParameter","parameteWalletAccount","Headline","AfterFetchCallback","WatchListStatusId","WatchListStatusDescription","SearchResult","LastReviewDate","isEditAccount","identificationMethodIds","customerModel","GetDefaultCustomerStatusId","OnDefaultStatusLoaded","GetIdentificationMethodIds","GetRetiredOrUnemployedOccupationIds","GetSpecificIdentityTypesIds","responseItem","clientCustomerId","GetTooltip","BeginText","Zoom","GenericExpansionPanelCustomHeader","CustomerInformationComponent","handleNext","BeneficiaryComponent","handleAddAccount","handleDeleteAccount","BenificialOwner","AssignDDTAccountComponent","GetCDICAccountColumns","CollectionPool","GetUnpaidAmountColumns","unpaidAmountColumns","FlexValue4","FlexDesc","CollectionPoolCall","writeOffDelayDay","HandleChangeCollector","collectorModel","HandleChangeCallInfo","callInfoModel","HandleChangePayment","paymentModel","GetCollectionParameter","IsAdmin","Applicant","CollectionParameterId","CollectionParameter","CollectionPoolCallId","LatePaymentPeriodId","NumberOfDelayDays","PrincipalAmount","WaitingAmount","TotalWaitingAmount","DelayDayAmounts","delayDayAmount","OnClickAssignCaseToCollector","CollectionPoolId","parameterCollector","isAssignCollectorDialogOpen","OnClickCallInfo","CallStatusId","IntervieweeId","InterviewResultId","RequestedCallDate","PersonName","PromiseDate","CollectorNote","isCallInfoEntryDialogOpen","OnClickMoveLegalFollowUp","isPaymentDialogOpen","DialogAssignCollectorSubmit","AssignCollectorValidate","DialogAssignCollectorClose","DialogCallInfoSubmit","CallInfoSubmitValidate","DialogCallInfoClose","DialogPaymentCloseCase","DialogPaymentMoveLegalUp","DialogPaymentClose","RenderItemCollectionUser","renderItemCollectionUser","RenderItemUser","renderItemUser","GetCollectorParameter","LedgerCardList","sortedNumber","parameterCallStatus","parameterInterviewee","parameterInterviewResult","parameterPayOption","parameterUser","maxLength26","maxLength128","SignOutIcon","MoveToLegalIcon","LedgerCard","PaymentAmount","PaymentOptionFeeId","SavingsPlanId","OfficePhoneCountryCodeId","OfficePhoneNumber","TotalPayment","TotalPaymentPeriod","RemainingLatePaymentAmount","RemainingPenaltyAmount","RemainingWaitingInstallmentAmount","RemainingPayment","RemainingPeriod","EarlyPaymentAmount","EarlyPaymentDiscount","TotalEarlyPayment","GetCollectionReport","LegalFollowUpThirdPartyTransfer","fPaymentHistory","fCommentHistory","TransferList","paymentHistory","PaymentHistoryList","commentHistory","CommentHistoryList","ColumnsDataPaymentHistory","ColumnsDataCommentHistory","LoanAgingAndDelinquentPayment","columnHeaders","LoanAgingAndDelinquentPayment2","ReportDate","reportDate","LosQuestionnaireQuestionType","ConstLoanType","panelActivationStatus","panelFilterActive","panelAppliedForActive","panelApplicantInformationActive","panelAdditionalInformationActive","panelAdditionalInformationOptionalActive","panelSecurityInformationActive","panelScoreActive","panelNetworthActive","panelBorrowerReviewActive","panelQuestionnaireActive","OtherSecurityInfoEnable","LoanPurposeDescription","clientPartnerModel","paramApplicationProfile","paramApplicationAddressList","isPeriodDisable","isCreateApplicantDialogOpen","applicantDefinitionMenuId","IsAppliedForCardReadOnly","EnableApplicantUpdate","RequestedLengthOfTermSource","termDataList","GetAppliedForRequestedLengthOfTerm","CreateApplication","clientpartner","GetCreditHistory","PrepareQuestionnaireGridList","ApplicationQuestionnaireList","HandleCreateNewApplicant","AfterApplicantSearchCallBack","CreditHistory","CreditHistoryDetails","SecurityInfoType","ReviewAlertNotificationId","ReviewResultNotificationId","PreviousReviewDate","appFeeProfileList","ApplicationLoanFeeDefinitionList","ApplicationAddressList","GetPanelActivationStatus","ApplicantDefinitionDiologOpenOrClose","IdVerification","LOSApplicationStatus","Saved","_responseData$Item$Ap","HandleAppliedForUpdateAction","GetApplicationAddressModels","InserUpdatePanelActivationStatus","PanelFilterActiveNextClicked","PanelAppliedForActiveNextClicked","PanelApplicantInformationActiveNextClicked","panelAdditionalInformationActiveNextClicked","panelAdditionalInformationOptionalActiveNextClicked","panelSecurityInformationActiveNextClicked","panelScoreActiveNextClicked","panelNetworthActiveNextClicked","panelBorrowerReviewActiveNextClicked","panelQuestionnaireActiveNextClicked","SavePanelAfterInsert","HandleQuestionnaireValueChange","IdentityVerifyingPersonParameterCode","sortedApplicantFullName","Lms_LoanDetail","applicationData","applicantIdAndAddNewApplication","method","GetApplicationQuestionnaire","userJson","DataId","ScreenCode","LOS_CreateApplication","PanelInfo","currentPanelActivation","changedItem","QuestionnaireId","GivenValue","tastPool","QuestionnaireGridItemList","Questionnaire","QuestionType","QuestionTitle","textInput","numberInput","Lms_ApplicantDetails","isCreateNewApplicant","ApplicantUniqueId","WatchListVerification","IdentityVerificationTypeValue","AddressVerification","CreditHistoryVerification","LoanApplicantInformation","NextClicked","RetiredOrUnemployedIDs","IdentificationMethodIds","SpecificIdentityTypesIds","LoanApplicationScoringInfo","ApplicationModel","IsOptional","LoanApplicationSecurityInformation","LoanApplicationCreditScore","LoanApplicationNetworth","LoanApplicationBorrowerReview","LoanApplicationDocument","DocumentTypeId","VerifiedPersonId","AddDocumentToTempList","GetApplicationDocumentModels","TaskPoolFunc","DeleteTempDocument","TempApplicationDocumentList","ApplicationDocumentList","VerifiedPerson","DownloadFile","documentList","LoanApplicationOtherFinancial","otherFinancialModel","LOSDepositInParameterCode","LOSHousholdInParameterCode","DepositSavingInterbankId","DepositSavingUsId","OtherCreditCardHeldId","BorrowerOtherLoanId","RemainingLoanAmount","MonthlyApplicantNetIncomeId","MonthlyHousholdNetIncomeId","MonthlyTotalPaymentId","HousholdIncomeId","LoanTypeStr","CashAdvanceLimitUsageType","CashAdvanceLimitUsageTypeStr","FeeLoanSetupProfileList","FeeLoanSetupProfileKeyValueList","FeeLoanSetupProfileValueList","FeeMonthlyRateProfileList","FeeMonthlyRateProfileKeyValueList","FeeMonthlyRateProfileValueList","isFeeCalculateDilogOpen","FeeDefinition","DormantCardDuration","InactivityFeeApplyPeriod","LOC","SecureCard","PersonalizedExpDate","HandleSetupFeeChange","valueList","newKeyValueList","HandleMonthlyFeeChange","PurposeOfLoanParamList","getFeeDefinitionList","FeeCalculatorDialogOpenOrClose","getFeeProfileDetail","CashLimitUsageType","IsDeletable","loanFeeDefinitionId","FeeLoanSetupProfile","FeeMonthlyRateProfile","LoanCalculator","CloseLoanCalculator","isRateFeeCalculator","FeeLoanSetupProfileModel","PenaltyRate","UsingInterestRate","CashAdvanceInterestRate","MinumumPenaltyAmount","CashGracePeriodDay","SaleGracePeriodDay","AnnualCardFee","OverdraftFee","IsApplyDailyInterestPerTransaction","ATMDomesticTransactionFee","ATMInternationalTransactionFee","ForeignExchangeFee","BillPaymentFee","POSDomesticTransactionFee","POSInternationalTransactionFee","DeclineFee","AdministrationFeeRate","RealTimeMoneySendFee","RealTimeMoneyRequestFee","InactivityFee","CardActivationFee","ReplacementCardFee","DeactivationCardFee","LoadHupFee","MonthlyCardFee","MonthlyCardFeeApplyDay","IsApplyMonthlyCardFeeAfterFirstTransaction","MinumumLoanAmount","MaximumLoanAmount","MinimumPaymentPercentage","MinumumPrePayAmount","MinimumAmountForStatementGeneration","MinimumAmountForInterestCalculation","PaymentRateToAssumeMinPaymentPaid","PaymentAmountToAssumeMinPaymentPaid","CashAdvanceLimitUsageTypeId","Ratio","CashAdvanceLimitRatio","CashAdvanceLimit","setupFee","LOSSetupFee","LOSSetupFeeId","monthlyFee","LOSMonthlyRate","Display","LOSMonthlyRateId","IdVerificationTracking","listVerificationType","EmailAddressListDialogOpen","listEmailAddress","isEmailAddressListDialogOpen","EmailAddressListDialogClose","EmailAddressAddToListAndInsert","emailAddressObject","IsEmailAddressValid","EmailAddressRemoveFromList","emailAddressId","emailAddress","EmailAddressId","newlistEmailAddress","idVerTraColumns","idVerTraTable","VerificationTypeId","AmPmId","ValidateUpdateReportTime","ReportTimeHour","ReportTimeMinute","columnsEmail","panelVerificationActive","panelCreditValidationStatusActive","panelApplicantListActive","OtherVerificationTypeEnable","appliedForData","creditHistoryModel","IsPersonVerified","CanadaPostBarcode","ApplicantSearchForLoanApproval","_model$IdentityType","isInquiryClicked","isCompleteApplicationClicked","dataAppliedFor","IntendedUseId","IntendedUse","LOSApplicantStatus","TransUnionIdVerificationStatus","InternalBlacklistStatus","WatchListVerificationStatus","IdVerificationStatus","ShowMessageNodeDisable","CreditValidationStatusNextCliecked","dualMethodId","inPersonMethodId","creditFileMethodId","HandleAppliedForInfoChanged","tempIdVerificationTypeList","HandleCanadaPostCode","SendEmailForInPersonIdVerificationStatus","LanguageParameterCode","AppliedForNextCliecked","ApplicantInformationNextCliecked","VerificationActiveNextCliecked","ParameterMaxLength30","parameterIdentityType","CountryParameterCode","OccupationParameterCode","ParameterOccupation","ParameterApplicantStatus","ParameterDefaultApplicantStatus","ParameterIntendedUse","ParameterDefaultIdentificationMethod","ParameterIdentityType","ParameterIdentitySecondary","ParameterPrimarySourceForDualProcessId","ParameterSecondarySourceForDualProcessId","ParameterProvincialGovermentPhotoId","ParameterCreditAgency","previousUrl","Lms_BorrowerDetail","GetDefaultApplicantStatus","GetDefaultIdentificationMethod","componentWillMount","IsNullOrEmpty","currentModel","methods","OnLoadedIDMethods","LOS_ApplicantDefinition","HandleOperationCheckAfterPanelStatus","GetUserName","SetTrProps","AddressVerificationStatus","ApprovalDisabled","IsVerificationTypeActive","IsNextPassive","CountryOfCitizenShipId","CountryOfBirthId","CountryOfResidentId","HomePhoneCountryCodeId","HomePhoneNumber","HasEmailNotificationId","HasTextNotificationId","LanguageId","EmployerName","EmployerPhoneCountryCodeId","EmployerPhoneNumber","IdentityVerificationTypeId","SaveCanadaPostRequest","IdentityVerificationTypeDesc","InPersonIdVerificationStatus","VerificationDate","LoanApplicationCreditValidation","Lms_PortfolioPerformance","BorrowerPaymentPlan","NewApplicationValueChanged","PaymentPeriodChange","NewApplication","DialogMakeCollection","ProcessDate","isMakeCollectionDialogOpen","DialogCollectionClose","DialogAdjustmentAdjust","isAdjustmentAdjustDialogOpen","DialogAdjustmentCancel","isAdjustmentDialogOpen","DialogAdjustmentAdjustReCalculate","AdjustedApplicationId","AdjustmentApplicationDetail","AddFeeAmount","DialogAdjustmentAdjustCancel","LOCTransactionId","Payment","Adjustment","MakeColletion","RenderItemLOCTransaction","renderItemLOCTransaction","InterestRate","sortedInstallmentDate","onBlurevent","defaultValue","ApplicationApprovedFeeList","TotalInterestAmount","TotalApprovedFeeAmount","TotalPaybackAmount","TotalCurrentFeeAmount","FirstPaymentDate","LastPaymentDateAfter","PartnerId","LedgerCardCompanyIcon","AddLogoDialogOpen","isAddLogoDialogOpen","AddLogoDialogClose","IsFileChangedToFalse","isFileChanged","LedgerCardCompanyIconDetail","LoanLedgerCardIconId","LoanApplications","ProfileOnClick","applicationId","assignUserId","ApprovalOnClick","AssigneeControl","Applications","profileGreenColor","ProfileGreenColor","profileYellowColor","ProfileYellowColor","profileRedColor","ProfileRedColor","SelectedColumnChange","columnInfo","AssignUserId","DialogAssignOpen","isClientStandartUser","assignUserList","assignUserIndex","isAssignDialogOpen","DialogAssignClose","defaultFirstDate","defaultEndDate","profileBlackColor","testDataLoan","merchantList","activeIndex","trxChartData","creditDebitChartData","loanChartData","feeChartData","onHoldChartData","approvedChartData","rejectedChartData","TransUnionCreditScore","IconSrcBase64","ApprovalParameterCode","LoanTermParameterCode","ClientPartnerParameterCode","SalesChannelParameterCode","LoanTypeParameters","GetAllClient","AssignApplicantToUser","UserStatusList","UserStatus","Ok","Role","RoleLevel","ClientStandardUser","ClientAdmin","LoanChartData","loanString","trxChartObj","LocChartData","lineOfCreditString","creditDebitChartDataObj","SecuredCardChartData","securedCardString","feeChartDataObj","OnHoldChartData","onHoldString","onHoldChartDataObj","ApprovedChartData","approvedString","approvedChartDataObj","RejectedChartData","rejectedString","rejectedChartDataObj","SaleChannelId","LOSLoanTermId","ApprovalStatusId","LoanApplicationsChart","transactionChartData","LoanApprovalStatusChart","ColumnSelected","ConstVerification","isIdVerification","isAddressVerification","isCreditHistoryVerification","isBlackListVerification","isDocumentVerification","isInPersonVerification","isSecurityAccountHaveBalance","isWatchListVerification","ConstAccountModel","LoanTypeTitle","panelInformationActive","panelLoanDetailActive","panelApprovalDocumentActive","panelAccountDetailActive","panelCardActionActive","panelApplicationNoteActive","panelStatementActive","panelCurrentTermTransactionActive","LoanApproval","GenerateStatementPdfFile","random","GetFixedId","_responseData$Item$","FixedId","LoanApprovalApprove","ApplicationFeeList","LoanApprovalFeeList","LoanApprovalReject","LoanApprovalOnHold","FeeProfileChange","GetLoanApprovalParameterList","EmbossType","InstantId","IsMass","InstantEmbossBranchId","Score","SystemResult","Verification","uniqueClientIdForBackoffice","UniqueClientIdForBackoffice","ApplicationCardStatusDesc","WalletBalance","ApplicationCardParameterValue","CardEmbossName","MovedSecurityAmount","score","InternalScore","LoanApprovalParameter","LOSApprovalStatus","ApprovalFeeList","AddressVerificationResult","IdVerificationResult","isTransUnionIdVerification","InternalBlacklistResult","DocumentStatus","CreditHistoryVerificationResult","InPersonVerificationResult","ApprovedInternalScore","ApprovedDocumentStatus","ApprovedInternalBlacklistStatus","ApprovedIdVerificationStatus","ApprovedAddressVerificationStatus","ApprovedInPersonVerificationStatus","FeeProfileListFiltered","_model$LoanType","LoanTypeParameterValue","LoanApprovalDocumentsList","paramApplicationDocumentList","LOCTransactions","StatementList","StatementListResponse","LoanLedgerCardResponse","CurrentTermTransactionList","CurrentTermTransactions","applicant","ApplicantHasUser","modelFromState","isUserAdmin","Lms_PaymentAdmin","isLoanApprovalScreen","LOS_LoanApproval","AccountModel","isMainSubmitDisabled","RejectedDialogOpenOrClose","OnHoldDialogOpenOrClose","isOnHoldDialogOpen","LoanCalculatorDialogOpenOrClose","isLoanCalculatorDialogOpen","ApplicantDialogOpenOrClose","isApplicantDialogOpen","TransferLoanOp","refNum","GetLOCTransaction","SubmitApprovalStatusDialog","ApprovalSubStatusId","LoanTransferTypeId","StatementDayId","DebtInquiryDialogOpen","DebtInquiry","BucketBalance","isDebtInquiryDialogOpen","DebtInquiryDialogClose","AdjustLimitDialogOpen","isAdjustLimitDialogOpen","AdjustLimitDialogClose","AdjustLimitConfirm","ValidateAdjustLimit","LimitAdjustmentHistoryEntity","PreviousCardLimit","PreviousSecurityAmount","InsertWorkflowRequest","Lms_LimitAdjustmentForWorkflow","addBalance","UpdateLoanDetails","UpdateLocDetails","UpdateSecureCardDetails","CreateCustomer","CreateSecurityAccount","CreateWalletAccount","CreateCard","ActivateCard","ColumnsDataLOCTrx","columnsCurrentTermTransactionList","ParameterCodeList","sortedClient","CountryList","grandtotal","checkerDisabled","secureCardDisabled","loanDisabled","locDisabled","modelRow","statemetColumns","LedgerCardColumns","GetUserRole","PaymentAdminLenderProgram","PaymentAdminCallCenter","ApplicationStatusDialogOpenOrClose","SecurityAccountId","Emboss4thLine","CardNumber","CardLimit","CATMCardId","IsCardActive","CardEmbosName","_model$LoanType2","LoanApprovalRejected","LoanApprovalInformation","IsUserAdmin","SecureCardDetails","IsCalculatorVisible","GrandTotal","AdjustLimit","LoanApprovalFundingMethod","CheckerDisabled","LocDetails","LoanDetails","LedgerCardDialog","LoanCalculatorDialog","PaymentAdminDocument","PaymentAdminAccountCreate","PaymentAdminCardAction","CancelProduct","PaymentAdminApplicationNoteHistory","LoanApprovalDocuments","PartnerCommissionSummaryReport","scorecardProfileList","personalTabQuestionList","incomeTabQuestionList","networthTabQuestionList","loanTabQuestionList","otherTabQuestionList","answerValueList","otherScorecardAnswerValueList","QuestionAnswerKeyValueList","OtherScorecardKeyValueList","ScorecardProfileDocumentList","ScorecardVendorList","ScorecardVendorLevelList","LoanOtherCrediscorerows","InternalScorecard","getScorecardProfileDetail","getLoanScorecardProfileDetail","handleGenerateNew","handleAnswerChange","handleOtherScorecardAnswerChange","getLoanScorecardDocumentModels","handleDocumentAdd","getCreditScoreVendorLevelList","getCreditScoreVendorList","MakeGridArray","ScorecardProfileTemplateId","PersonalTabMaxPoint","IncomeTabMaxPoint","NetworthTabMaxPoint","OtherTabMaxPoint","LoanTabMaxPoint","personalScore","getTotalScoreFromTab","incomeScore","networthScore","otherScore","loanScore","otherVendorMaxScore","getTotalScoreFromOtherVendor","questionList","answerKeyValueList","totalScore","questionItem","maxPoint","AnswerList","answerItem","QuestionId","max1","max2","max3","loanscorecardid","personalTabList","QuestionAnswerList","word","ScorecardTab","incomeTabList","networthTabList","loanTabList","otherTabList","LoanScorecardProfileId","rows","vendor","InternalScorecardTab","QuestionList","HandleAnswerChange","AnswerValueList","InternalScorecardLoan","HandleOtherScorecardAnswerChange","OtherScorecardAnswerValueList","InternalScorecardVerification","GetLoanScorecardDocumentModels","LoanScorecardDocumentList","LoanScorecardProfileModel","HandleDocumentAdd","DailyInterestPoolMonitoring","StatementId","maxLength19","DailyInterestTransactions","PaymentInterestTransactions","LMSDailyTransactionType","blackText","SecureCardCollection","SecureCardFeeCollection","SecureCardInterestCollection","SecureCardTermFeeCollection","StatementListNew","currentTermTransactionList","CurrentTermTransaction","StatementDate","StatementBeginDate","FormattedCardLimit","WalletAccountBalance","panelCurrentTermIsActive","GetStatementTransaction","statementId","MakeCardTransaction","MakeDailyStatementProcess","ProcessLocalDate","MakeDailySettlementProcess","columnsStatement","columnsStatementTransaction","sortedTranDate","Environment","StatementManualProcess","IsStartDate","IsEndDate","StatementMessageDisclosure","IsCode","IsOrder","ClearDisclosure","Disclosure","ClearMessage","maxLength1000","IsExpiryDate","IsDisclosure","IsMessage","StatementV3List","UnpaidFeeAndInterest","TransUnionSummaryReport","MastercardCreateCardTransfer","isB2P","LoadReceiverInfo","BidRate","RateTierBidRate","originalAmount","PaymentTransferTypeId","ReceivingBankName","BankCode","RecipientCompanyName","ReceiverAddressLine1","ReceiverCityName","ReceiverZipCode","ReceiverProvinceName","ReceiverCountryName","SourceOfIncome","PurposeOfTransaction","PayerPayeeRelationship","RecipientBankAccountType","CloseFile","RenderCurrencySelect","RenderTransactionTypeSelect","MaxLen35","DateRequest","ValueEffective","HasSubSender","SendEmailAddress","IsSendEmailAddressValid","defaultStateModel","FileResultDialog","IsMsbClient","defaultFileModel","trxResponse","StateModel","OriginalAmount","LoadTemplateList","LoadClientInfo","LoadCustomerContract","FillBankAddressFields","FillBeneficiaryAddressFields","fields2","CountryIso2","TemplateList","ExecuteGetRequest","isSmbClient","BANK_PROGRAMS_Card_Transfers","CardTransferType","CardTransferTypes","MastercardSend","cardTransferType","MastercardTransactionSearch","isRetrievePaymentDialogOpen","cancelPayment","openRetrievePaymentDialog","responseForRetrievePayment","RetrievePayment","responseForCancelPayment","PaymentId","handleCustomerBankAccount","TotalEftAccountBalance","TotalEtransferAccountBalance","TotalAccountBalance","PendingTransactions","AnnouncementDefinition","HandleGetMerchantList","ColumnListBoxOnChange","bankCustomerListSelected","userListOption","u","ColumnListBoxOnChange2","userListSelected","imagePreviewUrl","ProgramTypeId","bankCustomerListOption","BankCustomerList","IsValidForAllCustomer","IsValidForAllUser","defaultImage","maxLength250","sortedDescription","picture","prop","canFilter","objectFit","NotificationDefinition","NotificationTemplate","ErrorDeleteCallback","NotificationTemplateTypeId","NotificationDefinitionAddOrUpdate","handleToggle","NotificationDefinitionDataTable","EmailSignature","isActive","IsBackoffice","GetContent","__html","dangerouslySetInnerHTML","TemplateDefinition","NotificationSendType","IsVisibleMailEditor","SignatureContent","HandleToggleSignature","IsEmailSignatureOpen","HandleTogglePreview","IsPreviewOpen","NotificationSendTypeId","mailContent","smsContent","GetSignatureContent","Preview","UseSignature","parameterTemplate","parameterSendType","EmailSignatureId","IsDefaultTemplate","SendGridTemplateId","CreateAccountWithBulkUpload","HandleSubmitDialog","IsResponseDialog","responseList","CreateClientCustomerWithFileUpload","MoneyTransaferWithFileUpload","TransactionMoneyTransferType","fileUrl","AssignAccount","emptyModel","SelectedAccount","HasCardUsageLimit","CardUsagePeriodId","CardUsageLimit","loadAccount","validateSearch","search","lastFilterModel","validateUpdate","SelectedCard","CardUsageLimitPeriodId","initialDialogModel","IsDialogOpen","CardUsagePeriod","AssignDDTAccount","SelectedCardId","SelectedAccountId","EmbossName1","AssignCard","CardFindType","ClearCardNumber","IsNoNameCard","IsClientCustomerIdAssigned","types","DdtFindType","SelectedFindType","SelectedFindValue","DDTFindType","CardEmbossRequest","IsExported","CardListReport","CardRenewalRequestList","reEmbossList","ShowQrCode","QrCode","isDialogOpen","EmbossName","RenderItemCard","renderItemCard","MaskedCardNumber","CardRequestId","GetProductParameter","IsNoNameProduct","CancelSelectCallback","isDisputeDialogOpen","isReEmbossDialogOpen","isReasonReEmbossDialogOpen","ReEmbossConfirm","CardRequestDataList","reReasonEmbosList","HandleReEmboss","parameterEmbossType","CardIssuingReasonTypeId","EmbossStatusId","ProductId","ReasonEmbossColumns","DetailColumns","IsAvailableCenterCode","IsAvailableEmbossStatus","HasAddress","Menu_LmsCardRenewalList","EmbossFileCreateDate","maxLength21","CardRenewal","CardIssuingReasonType","CardStatus","FromCardStatusId","ToCardStatusId","IsAllowed","RenderItemStatus","renderItemStatus","ClearCardNumberSearch","GetClearCardNumber","ParameterMaxLength16","CreateCorporateCard","RenderItemProduct","renderItemProduct","FillCompanyName","Emboss4thLineType","ValidateForCompanyName","companyNameResult","EmbossForthLine","IsDateFilterDisabled","HasMCCRestriction","MCCList","Mcc","DefaultAccountId","HasCardUsageLimitPeriod","HasCardUsageLimitAmount","LimitStartEndDate","LimitUsageStartDate","LimitUsageEndDate","MccCount","NickName","AvsZipCode","ClientReference","CreditLimit","maxLength50","CreateMainCard","cardNumberValue","cardNameValue","documentryValue","cardDateValue","documentry2Value","documentry3Value","cardChipTypeValue","cardBrandIdValue","colorTypeValue","ProductType","GetDefaultAccountParameter","parameterDefaultAccount","CreateSupplementaryCard","EmbossTypeId","CountryCodeId","MainCardId","SortedProductName","SortedOrderIndex","CreditCardBucketCloseLog","hasReferenceNumber","parameterBucketType","BucketTypeId","CreditCardBuckets","parameterLMSPaymentStatus","TotalPaymentStatusId","CreditCardFinancialInfo","ShowLastFinancialInfo","CreditCardInterests","Percent","CreditCardPayments","ShowRemPayment","CreditCardTransactions","CustomerCreditClimit","arg0","arg1","UpdateValidate","DailyPreAuthLimit","DailyPreAuthWarningLimit","DailySettledAuthLimit","DailySettledAuthWarningLimit","IncorrectEmbossCards","MccGroup","MccCode","isSubmit","NewGroupName","rowSelected","MCC","maxLength4","PrePersonCardOrder","LoadClientAddress","NumberOfCard","CardSendAddress","GetCardList","CardOrderId","ColumnsCardList","SimulationCreditCardBucketCloseLog","SimulationCreditCardBuckets","SimulationCreditCardFinancialInfo","SimulationCreditCardInterests","SimulationCreditCardPayments","SimulationCreditCardTransactions","cardHeaderStyle","contact","signup","stats","cardHeaderClasses","cardHeaderPlain","cardHeaderImage","cardHeaderContact","cardHeaderSignup","cardHeaderStats","cardHeaderIcon","cardHeaderText","ClientDipsute","transactions","TabIndexChanged","HandleDispute","TransactionDataId","isDisputeActionDialogOpen","disputeModel","ClientDispute","InitialDisputeModel","HandleActionDialogClose","DisputeModelChange","DisputeCurrencyId","generalModel","BankAccount","embossModel","statisticModel","ClientDisputeAction","onActionModelClose","ClientDipsuteReport","disputeData","ClientDisputeReportAction","ClientDisputeStatusId","DisputeReport","DetailsModelChange","detailModel","maxLength12","IssuerAcquirerFlagId","PgmCodeId","ARN","MastercardFileReject","MastercardClearingTransaction","De024","De072","Mti","Pds0005","Pds0105","Pds0280","ClearingDate","Pds0138","DialogModelChange","HandleClickUpdate","MastercardClearingDetail","MastercardFileRejectDetail","PdsData","ChipData","isPdsDialogOpen","isChipDialogOpen","maxLength17","maxLength3","maxLength22","maxLength16","maxLength45","maxLength13","maxLength256","maxLength11","maxLength999","maxLength25","maxLength8","maxLength140","IncomingBatchCorrection","IsPostAvailable","CellValueChanged","isRole","PostRequest","removeIndex","NetworkType","NetworkId","IncomingValidationCodeId","SwitchNetworkType","MasterCard","parameterNetworkId","ManuelProvisionMatching","HandleDeleteMatch","match","MatchingList","IsShow","Moneris","ProcessingCode","RRN","IssuerAcqueirerFlag","Visa","ClearingModel","OrginalAmount","SettlementAmount","ValidationStatus","TransactionDataCloseDialog","FillTransactionData","ClearingTransactionData","onStateChange","ClearingData","MastercardSettlementReport","CardLastFourDigit","HandleGetDispute","ProcessStatusParams","DirectionParams","ValidationStatusParams","IssuerFlagParams","IsReversal","DisputeModel","HandleClickDispute","ValidateDispute","PgmCode","PgmCodeType","ClearingDataTableId","HandleClickReverse","ReverseControl","ClearingProcessStatus","ReadyToSend","ClearingDirection","ClearingIssuerFlag","Acquirer","DisputeFeeModelChange","disputeFeeModel","DisputeFeeModelDelete","ClearingDisputeFeeData","DisputeFeeModelClear","DisputeFeeModelEdit","DisputeFeeModelPush","ChargebackStatusId","ChargebackReasonCodeId","RepresentmentStatusId","RepresentmentReasonCodeId","SecondChargebackStatusId","SecondChargebackReasonCodeId","HandleDisputeAction","DisputeId","DisputeActionData","HandleActionDialogOpen","Dispute","ActionData","isActionDialogOpen","onFeeModelPush","onFeeModelChange","onFeeModelDelete","onFeeModelClear","onFeeModelEdit","onActionsList","ValidationStatusId","DE037","MastercardMessageException","Pds0025","Pds0261","MonerisSettlementReport","AccountNumber1","RefundReversalTransactions","DebitAdjustmentReport","VisaClearingTransaction","transactionmodel","chipdatamodel","VisaChipData","paymentservicemodel","VisaPaymentServiceData","smsdatamodel","VisaSmsData","SmsDataModelChange","PaymentServiceModelChange","ChipDataModelChange","VisaClearingTransactionDetail","onSmsDataChange","onPaymentServiceModelChange","onChipDataModelChange","VisaDirectSettlementReport","VisaSettlementRefundsReport","VisaSettlementReport","CardAuthorizationMatching","IsHasCustomer","MatchStatus","CardEmbossBillingList","cardEmbossColumns","cardEmbossTable","ExportCardEmbossFileList","CardEmbossHeaderDetail","IsImportScreen","IsExportScreen","HeaderColumns","ImportCardEmbossFileList","GetImportFile","SwitchSettlementAggregateReportHundredList","SwitchSettlementAggregateReportList","VisaSettlementReportList","BAI2File","settlementFileList","GetSettlementFileList","successSettlementFileList","FileCreationDateTime","SummaryTotalCredits","SummaryTotalCreditsAmount","TotalNumberOfCredits","SummaryTotalDebits","SummaryTotalDebitsAmount","TotalNumberOfDebits","WireReconciliation","handleChangeForEdit","editModel","vostroList","VostroList","bridgeList","BridgeList","CategoryId","openEditWireDialog","BAI2Id","isEditWireDialogOpen","handleEditWire","handleUndoChanges","UndoAllChanges","FromSettlementDate","ToSettlementDate","BAI2DateFrom","BAI2DateTo","AdjustmentDate","BAI2Description","TotalCredit","TotalDebit","VostroTotalCredit","VostroTotalDebit","VostroTotalCount","ClientCardholderTransactionFee","ProvisionSourceId","ProvisionSource","FlatAmount","FeeRate","FeeList","errorCallBack","vModelDetail","IsDefaultProfile","parameterProvisionSource","FormatPercentFee","PpCustomerDefinition","GetCreateCustomerMenuId","EmvScriptPool","FileModelValueChanged","FileModel","SingleModelValueChanged","SingleModel","ModelValueChanged","EmvScriptPoolInsertType","Single","IsSingleCardActive","IsFileCardActive","FileCardData","MaskedCardList","UniquClientId","IsFileCaCardActive","IsFileCardListDialogOpen","EmvScriptQueue","FilterValueChanged","FilterModel","filePostCardList","View","SubmitFileCardDataCheck","cardMessages","EmvScriptStatusId","FillCustomerSingle","FillCustomerFile","FillCustomerFilter","EmvScriptPollType","EmvScriptTemplate","AddScriptTemplate","tempCard","handleList","templateModel","TagName","TagValue","deleteTagList","emvScriptTemplates","deleteScriptTemplates","HandleGetAllTagList","HandleAddTemplate","HandleGetAllTemplate","templateList","isTemplateExpansionPanelActive","HandleDeleteTemplate","deleteData","TemplateTagId","HandleClearTemplate","isEditTemplate","TemplateRowSelected","fullTag","fullTagList","isTagExpansionPanelActive","HandleChanged","TemplateHandleChange","tempTemplate","CardFeeProfileDefination","AnnuelFeeChargeTypeValue","DayCount","Messages","vProfileName","vMainCardIssuingFee","MainCardIssuingFee","vSuppCardIssuingFee","SuppCardIssuingFee","vMainCardAnnualFee","MainCardAnnualFee","vSuppCardAnnualFee","SuppCardAnnualFee","vMainCardRenewalFee","MainCardRenewalFee","vSuppCardRenewalFee","SuppCardRenewalFee","vCardReembossFee","CardReembossFee","vSuppCardReEmbossFee","SuppCardReEmbossFee","vTokenGenerationFee","TokenGenerationFee","vInstantPersonalizationFee","InstantPersonalizationFee","vTokenStatusUpdateFee","TokenStatusUpdateFee","vUniqueClientId","Menu_BackOfficeCardFeeProfile","Menu_CardFeeProfile","Menu_ClientCardFeeProfile","FreeReEmbossCount","vFreeReEmbossCount","AnnualFeePeriodId","AnnuelFeeChargeTypeId","vDayCount","CardholderTransactionFee","HandleSelectProfile","HandleSelectDetail","HandleAddDetail","ValidateNewDetail","HandleDeleteDetail","HandleClearDetail","Menu_BackofficeTransactionFeeProfile","Menu_TransactionFeeProfile","Menu_ClientCardHolderFee","FXFeeProfile","onlyLetterAndDigit","VerifiyDigitAndLetter","vFxUpsellRate","FxUpsellRate","vDcShare","DcShare","vClientShare","ClientShare","HandleShareChange","InterestFeeProfile","vInterestRate","vMinimumAmount","MinimumAmount","AlertSettings","alertsettinglist","GetParameterCustomerStore","parameterCustomerStore","GetRenderItemPhoneCountryCode","renderItemPhoneCountryCode","openCheckinDialog","openTransferDialog","openReceiveDialog","openOrderDialog","alertsettingcolumns","sortedCustomerStore","DefinitionTypeId","NotificationChannelTypeId","EMailforNotification","InventoryManagement","Columnlist","safedetailscolumns","inventorydetailscolumns","inventorycolumns","safeactivitycolumns","tempsamecolumns","OpenCheckOutModal","checkmodel","PlasticTypeName","InventoryOrder","Product","PlasticType","ProductName","CustomerStoreSafeName","InventorySafeDefinition","SafeName","CustomerStore","PackageNo","OrderDate","OrderReceiveDate","ReceiveRecordType","CheckType","CheckOut","CheckTypeId","CheckOutId","SafeDetailActivityModal","e1","ColumnData","e2","storelist","safelist","safedetailslist","safeactivitylist","StoreDetailRowSelected","tlist","SafeDetailRowSelected","SafeDetailListFnc","SafeActivityDetailListFnc","inventorylist","OrderEvent","StoreSafeClear","ReceiveEvent","TransferEvent","InventorySafeDefinitionId","transferitem","CheckinEvent","CheckIn","CheckInId","isInventorydetail","isSafedetail","isSafeactivity","checkinitem","safedetailmodel","IsStore","OrderPackageNo","OrderCard","ordermodel","clearlist","Receive","transfermodel","InventoryCheckin","InventorySafeDetail","StoreSummaryId","SafeSummaryId","Last4Digit","maxLenght4","CustomerStoreSafe","InventorySafeManagement","GetStoreId","safecolumns","LimitDefinition","limitdefinationcolumns","LimitLevelTypeId","ProductBasedMaximumOrder","SafeLevelLimit","MaximumOrderWeekly","MaximumOrderDaily","MaximumPackageSize","NewCardOrder","PlasticTypeId","Quantity","OrderCardConfrim","OrderStatusName","InventoryOrderStatusType","Created","cardorderlist","QuantityId","OrderStatus","InvertoryOrder","ReceivedCardConfirmation","OpenReceiveModal","ReceiceConfrim","OldQuantity","Ordered","receivelist","CardIdGet","EndToNumber","StartingFromNumber","tempomodel","Productd","CardholderTransactionLimit","TransactionGroupId","TransactionGroup","OneTimeMaxAmount","HasDailyLimit","DailyLimitAmount","DailyLimitCount","HasWeeklyLimit","WeeklyLimitAmount","WeeklyLimitCount","HasMonthlyLimit","MonthlyLimitAmount","MonthlyLimitCount","LimitProfile","LimitItemList","LimitList","LimitItemColumns","Menu_ClientTransactionLimitProfile","Menu_LimitProfile","Menu_DCLimitProfile","FixedDecimalScale","MoneyTransferToCardholder","CardModelChange","IsTrxDisabled","FillCustomerForCard","LOS_QuickFundsTransfer","Menu_MoneyTransferToCardHolder","sourcePrimaryAccountData","space","UserFundsActivities","userParameter","userSort","ClientUserId","CardKeyProfile","DcvvKeyUnderLmk","DcvvKeyKcv","CvkKeyUnderLmk","CvkKeyKcv","CavvkKeyUnderLmk","CavvkKeyKcv","ZekAcUnderLmk","ZekAcKcv","PgkUnderLmk","PgkKcv","maxLength49","AcKeyUnderLmk","AcKeyKcv","EncKeyUnderLmk","EncKeyKcv","MacKeyUnderLmk","MacKeyKcv","ArpcKeyUnderLmk","ArpcKeyKcv","ClientForthLineDefinition","OnusBinDefiniton","Bin","KeyProfileId","InstantEmvProfileCode","InstantChipProfileCode","brandParameterTemplete","PlasticTypeDefinition","PlasticCode","CardType","ServiceCode","ExpiryPeriod","ReturnAddress1","ReturnCity","ReturnCountryCode","ReturnPostCode","ReturnProvienceCode","PlasticLanguage","BulkDeliveryLocationId","CardEmbossCenterCode","CustomerServicePhoneNumber","maxLength2","maxLength14","renderSwitch","ReturnAddress2","InstantArtWorkCode","InstantCardIssuanceEmbossCode","IsEmv","IsContactless","HasBulkDelivery","HasQrCode","ClientProductManagement","RestrictionProfileId","CardFeeProfileId","ClientRestrictionProfileId","ClientFeeProfileId","ClientCardFeeProfileId","AutoRenewCard","AutoRenewalPeriodMonth","NoNameEmbossName","GetClientProfileParameter","parameterDCBankProfileParameter","parameterClientProfileParameter","ClientLimitProfileId","CorporateSummaryReportbyProduct","ProductDefinition","ProductBrandId","ProductTypeId","hasChandedFromList","BinRangeProfileId","CardPhysicalTypeId","GetDCBankProfileParameter","parameterClientProfile","parameterDCBankProfile","parameterProductBrandId","parameterPhysicalTypeId","InterestProfileId","FxProfileId","IsCreateBlockedCard","BinRangeProfile","GetColumnsProfile","ColumnsDataProfile","ColumnsDataDetail","HandleChangeProfile","profileModel","HandleChangeDetail","profileIndex","VerifyDigit","RangeFrom","RangeTo","BinName","detailIndex","isEditProfile","isEditDetail","HandleClearProfile","BinRangeProfileList","fullDetailList","BinRangeProfileDetailList","isEquivalent","detailList","AddProfile","hasChangedProfile","AddProfileValidate","AddDetail","hasChangedDetail","HasBinRange","BinId","detail","DeleteDetail","RowSelectedProfile","RowSelectedDetail","aProps","getOwnPropertyNames","bProps","propName","initialProfileModel","CardEmbossingFileProfile","EmbossFileExportPeriodId","IsAutomaticGenerateFile","MinimumRecordCount","PayClientProvisionProfile","modelv2","GetRenderItemClientV2","ValueChangedv2","deleteConfirm","HandleEditButton","ApproveFailedAvs","ProductRestrictionProfileDefinition","GetMerchantOptions","merchantOptions","LoadOptionList","MccOptions","TranslateToLabelValue","TxnCodeOptions","CountryOptions","labelPath","valuePath","returnObject","HandleChangeMerchant","merchantModel","HandleSearchByProfileName","MerchantOptions","AddMerchant","ColumnListBoxOnChangeMerchant","MerchantValues","ColumnListBoxOnChangeMCC","MCCValues","ColumnListBoxOnChangeTxnCode","TxnCodeValues","ColumnListBoxOnChangeCountry","CountryValues","MerchantRestrictionCheckType","MccRestrictionCheckType","TransactionRestrictionCheckType","CountryRestrictionCheckType","HasECommerceUsage","HasInternationalUsage","DCBankProductRestrictionProfile","parameterRestrictionCheckType","MerchantName","CardBrandStaticsReport","HandleClickSearch","HandleRequest","doughnutHeight","doughnutWidth","CreateDateTime","cardBrand","initialDoughnutDataModel","cardTransaction","totalOnhold","totalReturned","totalRejected","enabled","doughnutRef","timer","setInterval","getGradientList","SummaryGridData","GenerateDoughnutData","BrandCountSummaryChartDatas","totalCardBrandDataObj","TransactionCodeCountSummaryChartDatas","totalCardTransactionCodeObj","item1","item2","GetElementValue","brandGradientList","txtBrand","carTransactionGradientList","txtCardTransaction","BrandId","circleBoxMain","Bar","CardDailyReport","CardMonitoring","isDisableCustomerCardInfoTab","CallCenter_CardMonitoring","isDisableGeneralInfoTab","isDisableEmbossInfoTab","isDisableStatisticsTab","isDisableTransactionsTab","isDisableQrCodeTab","HandleGetCardList","IsCorporateCard","CardInfo","responseQr","EmbossInfo","StatisticInfo","CardTransactions","customerInfo","CustomerInfo","Menu_CorporateCard","ActiveIndex","CustomerCardInformation","HandleCardList","disabed","GeneralInfo","Statistics","CardStatementReport","ValidateTransactionSearch","StatementStart","StatementEnd","HandleCardTransactionSearch","cardlist","CardColumns","TransactionCurrency","BillingAmount","CardholderCurrency","SettlementCurrency","substr","CardStatusReport","FilterBy","handleShowDialog","handleCancelDialog","handleSubmitDialog","CardStatusId","showMessgae","lastModel","ActiveCardandRevenueReport","listAge","listMonth","Menu_ActiveCardReport","listActiveCard","ActiveCardResponse","listFundstransfer","FundsTransferResponse","result1","listRevenue","RevenueResponse","columnsRevenue","columnsFundsTransfer","columnsActiveCard","sortedCode","IsActiveCardReport","YearNumber","TransactionCodeType","CardTransactionSourceId","CardExpireDate","ResultMessage","IsRenewed","CardReport","Menu_CardReport","IsCardReport","Age","ChannelandSettlementReport","Menu_ChannelReport","IsChannelReport","OnusBinId","TranasctionEntryTypeId","DomesticAndInternationalReport","Menu_DomesticAndInternationalReport","IsDomesticAndInternationalReport","FeeCollection","SwitchReport","IsSwitchReport","SetPinLogOp","UniqueId","fromDate","MastercardFinancialPosDetail","MastercardSettlementPositionDetail","TemplateType","getFileBase64","imageUploadCallback","GetHTMLTemplateContent","HideAlertAndRefresh","TemplateTypeId","CMSTemplateType","parameterTemplateType","TemplatePreview","Wallet","SelectedRowChangeCustomer","HandleChangeLinkedAccount","linkedAccountModel","ReportType","ReportableReadOnly","AutoLoadType","IsFromMyAccount","WalletAutoLoadType","IsFromEFT","IsFromETransfer","ClientCustomerPayeeId","HandleClearLinkedAccount","initialGeneralModel","HandleClearAccount","initialCustomerModel","KnownCustomer","AddLinkedAccount","hasChangedLinkedAccount","SelectedRowChangeLinkedAccount","accountIndex","SelectedRowLinkedChangeAccount","_model","isPanelActive","customerAddress","ColumnsCard","isWalletDialogOpen","CardholderName","beneficiaryList","ActiveWalletList","getListByCustomerNo","HasDetail","ApplicationType","MaxWalletBalance","WalletBalanceMax","MinWalletBalance","WalletBalanceMin","MaxCardBalance","CardBalanceMax","MinCardBalance","CardBalanceMin","Initial","dialogBorderStyle","DialogActions","CardSwitchTransaction","AuthorzationCode","CallCenter_CardTransaction","OverlimitCardList","UnprocessedPaymentList","WalletAccountNumber","WalletTransaction","kmodel","CallCenter_WalletTransaction","ClientHighApiProfileDefinition","HandleInsertOrUpdate","RealTimeIntervalInMinute","PriorityIntervalInMinute","ClientWebhookProfileDefinition","groupTypeCode","groupDetailTypeCode","GroupTypes","GroupTypeCode","GroupDetailTypeCode","GroupTypeList","groupList","option","WebHookTypeId","WebHookUrl","WebHookApiPath","EncryptedApiKey","GroupTypeDetailCode","IsRedisActive","ApiKeyName","IsGroupTypeActive","GroupDetailTypeId","LogoHere","IframeKeyDefinition","mediaProfileForLogo","iframeKeyDefinitionStyle","AccountActivityReport","Menu_MyAccountActivityReport","MyAccountTrxResponseReportList","AccountActivityResponseReportList","Print","tempurl","MonthlyFilter","MonthlyFilterMonth","MonthlyFilterYear","columns1","IsMyAccountTrxReportList","AnnualFilter","IsFromDate","IsToDate","IsMonthlyFilterMonth","IsMonthlyFilterYear","AccountStatementReport","StatementAccountTrxResponseReportList","BankActivity","listElement","valueItem","download","DebitCount","CreditCount","EftMontlyVolumeReport","columnsEft","columnsBill","columnsEtr","ExecutiveSummary","TransactionChartData","txnCountChartObj","CreditDebitChartData","txnTypeChartObj","TotalFeeChartData","feeChartObj","ProgramTransactionList","MerchantTransactionList","txnCountChartData1","txnCountChartData","txnCountChartData2","txnTypeChartData1","txnTypeChartData","txnTypeChartData2","feeChartData1","feeChartData2","FormatPercent","TransactionErrorCountPercent","DebitErrorCountPercent","CreditErrorCountPercent","TotalFeeAmount","txt","ExecutiveSummaryTab","grayRatingStyle","orangeRatingStyle","FundsMovement","AnnualFilterFromYear","AnnualFilterFromMonth","AnnualFilterToYear","AnnualFilterToMonth","cashPercentList","CashMovementPercentList","cashTotalList","CashMovementTotalList","GetElementPercentValue","GetElementAmountValue","PrintFundMovementList","PrintCashPercentList","PrintCashTotalList","FromMonth","FromYear","ToMonth","ToYear","CashIn","CashOut","TotalCashVolume","Onhold","Fees","ClosingBalance","IvrCallerHistory","IvrCardActivationReport","RiskRating","perAccList","PersonalAccountList","corpAccList","CorporateAccountList","PrintPersonalAccountList","GetPersonalColumns","PrintCorporateAccountList","GetCorporateColumns","QuarterFilter","Quarter1","Quarter2","Quarter3","Quarter4","Q1RatingCount","Q1RatingCountPercent","Q2RatingCount","CumulativeQuarter2","Q2RatingCountPercent","Q3RatingCount","CumulativeQuarter3","Q3RatingCountPercent","Q4RatingCount","CumulativeQuarter4","Q4RatingCountPercent","RatingCount","RatingCountPercent","getTheadTrProps","getTfootTrProps","VolumeAnalysis","Year1Desc","Year1","Y1Quarter1","Y1Quarter2","Y1Quarter3","Y1Quarter4","Year2Desc","Year2","Y2Quarter1","Y2Quarter2","Y2Quarter3","Y2Quarter4","Year3Desc","Year3","Y3Quarter1","Y3Quarter2","Y3Quarter3","Y3Quarter4","revenueList","RevenueList","PrintTransactionList","isExist","GetTransactionColumns","PrintRevenueList","GetRevenueColumns","Y1Quarter","Y2Quarter","Y3Quarter","columnsY1","columnsY2","columnsY3","Y1Q1IsTransaction","Y1Q1TransactionCount","Y2Q1IsTransaction","Y2Q1TransactionCount","Y3Q1IsTransaction","Y3Q1TransactionCount","Y1Q2IsTransaction","Y1Q2TransactionCount","Y2Q2IsTransaction","Y2Q2TransactionCount","Y3Q2IsTransaction","Y3Q2TransactionCount","Y1Q3IsTransaction","Y1Q3TransactionCount","Y2Q3IsTransaction","Y2Q3TransactionCount","Y3Q3IsTransaction","Y3Q3TransactionCount","Y1Q4IsTransaction","Y1Q4TransactionCount","Y2Q4IsTransaction","Y2Q4TransactionCount","Y3Q4IsTransaction","Y3Q4TransactionCount","IsTransaction","getTheadGroupTrProps","WalletStatement","ValueChangedRadio","FeeManage","FrequentlyAskedQuestionManage","IsQuestion","IsAnswer","Question","Answer","FrequentlyAskedQuestionView","ProgramChanged","symbol","thousandSeparator","decimalScale","fixedDecimalScale","displayType","FormatDateUtcLocal","local","FormatDecimal","FormatTxnDate","padNumber","padItem","PadRight","padEnd","suffix","FormatEstToUtc","utc","tz","cardFooterStyle","pricing","product","cardFooterClasses","cardFooterPlain","cardFooterProfile","cardFooterPricing","cardFooterTestimonial","cardFooterStats","cardFooterChart","LegalManage","Legal","OnlineSupport","MailAddressIsValid","CustomerUniqueClientId","GetRenderItemOfficePhone","GetRenderItemMobilePhone","IsProblemGroupId","IsPriorityId","IsMailAddress","IsOfficePhoneCountryCodeId","IsOfficePhonePhoneNumber","IsMobilePhoneCountryCodeId","IsMobilePhonePhoneNumber","IsProblemDescription","customerUniqueClientId","ProblemGroupId","PriorityId","MailAddress","OfficePhonePhoneNumber","MobilePhonePhoneNumber","ProblemDescription","IsCustomerUniqueClientId","SortedStoreName","MaxLength150","UserGuideManage","UserGuide","IsHeader","MaxLength50","UserGuideView","AccountReportType","parameterAccountType","UploadCfifFile","ProcessedItemCount","ModifiedInstitution","AddedInstitution","ModifiedInstitutionBranch","AddedInstitutionBranch","inst","brach","FinancialInstitutionList","FinancialInstitutionBranchList","cf","ColumnsDataInst","ColumnsDataInstBranch","ClientAuditLog","calogColumns","calogTable","InsertStartDate","InsertEndDate","MainParentMenuName","ClientUserAuthorization","HandleLoadTaskPoolCompleted","HandleLoadTaskPoolAppend","UserIds","BackofficeUserId","HandleClientList","isFromWorkflow","IsFinancialInstitutionId","GetRenderFinancialInstitution","StateCode","IsTransitNumber","IsAddress1","IsCityName","IsZipCode","dualListBoxStyle","ManageInteracCustomIntegrationUrls","ApiUserId","SessionTimeInMinutes","ParentUserParameter","ApiUserParameter","RenderUserNameSelect","RenderApiUserNameSelect","Token","PrepaidStatementCallNumber","CallNumber","SchedulerHistory","JobHistoryDialogOpen","SchedulerInfoId","schedulerInfoId","listJobHistory","isJobHistoryDialogOpen","JobHistoryDialogClose","columnsJobHistory","IsSuccess","isSuccess","keepUniqueClientId","forSearch","validKeys","vProgramId","vSecurityQuestion","TransactionCodeMap","Network","GenerateApiToken","_temp$Channel","GetUserParameterUniqueClientId","GetCustomerParameterUniqueClientId","_model$Channel","ParameterChannel","ChannelId","TransferDescription","softClear","NoteTypeId","HandleSubmitOrUpdate","vNoteTypeId","Note","vNote","TransferToClientAccountDismiss","TspRequest","SearchStartUpdateDate","SearchEndUpdateDate","SearchEndInsertDate","SearchStartInsertDate","MdesTokenDefinitionId","MdesRequestsId","MdesRequestTypeDefinitionId","MdesRequestTypeDefinition","Tsp","TspTokenPage","sortAccountName","RenderBeneficiarySelect","RenderAccountSelect","accountNumber","accountName","storeCode","Selected","IsHaveMemo","AddNewCustomerEFT","createEFTIndividualStyle","TspTokenRequestor","MdesWalletDefinitionId","MdesWalletDefinition","TokenRequestorId","MdesTokenRequestorDefinition","ChangeOrResetPassword","ChangePasswordCallback","ChangePasswordErrorCallback","ConfirmNewPassword","LOGOUT","AuthMethodDivStyle","googleImageStyle","twilioImageStyle","UserRole","genericRadioInputStyle","EftRoutingRule","EftRoutingRuleId","PriorityOrder","EftRoutingRuleCriteriaId","callerModuleEftCoreId","GetCallerModuleEftCore","GetProgramEftId","BankProgramType","programEftId","listProgram","IsEftProcessorId","IsPriorityOrder","parameterProgramCodeEft","ParentId","IsProgramMenu","GetMenuListForParentMenu","menuList","FullPath","ShowInMenu","IsBaseMenu","IsGenericScreen","styleCheckInput","IsParentId","IsName","MaxLength6","IsIcon","IsScreenId","actionDetails","isAction","WorkflowAction","GetParameterSubMenu","GetActionList","actionList","workflowAction","MenuActionList","MenuActionRight","roleDetails","RoleRight","WorkflowRoleRight","GetRoleList","roleList","roleRight","workflowRoleRight","WorkflowRoleIds","RoleName","RoleGroupParameterDesc","RoleLevelParameterDesc","WorkflowAndMenuActionRightList","isClientStandardUserOpen","SortedFullPath","MenuAuthorityRight","GetMenuAuthorityDefinitionParameter","parameterMenuAuthorityDefinition","MenuAuthorityDefinitionId","MenuAuthorityRightList","IsMenuAuthorityDefinitionId","IsMenuId","IsTypeId","MenuProgramMap","menuDetails","GetMenuList","isSelected","SortedDescription","RoleLevelMenuMap","listRoleLevel","GetRoleLevel","GetRenderItemMenu","roleGroupId","RoleLevelId","IsRoleGroupId","IsRoleLevelId","SortedMenuName","sortMemo","lengthSecurityAnswer","ParameterMaxLength400","ParameterMaxLengthSecurityQuestion","InteracCustomerTrsnaferOprion","FetchInteracGetTransferTypes","payeeId","_responseData$Item$fi","transferMethod","tt","Default","TransferTypes","IsDcbRequestMoney","DCRM","transferType","BenficiaryId","RenderTransferMethod","transferTypeDescription","TransferTypeDescription","ETransactionTypesSource","AddNewCustomereTransfer","createEtransferIndividualStyle","UserAuthorityDefinition","listRole","GetRole","GetParameterRole","GetRoleGroupClientId","MenuList","ParentMenuList","SubMenuList","FlatRoutes","GetMenuRightList","RoleLevelDesc","parentMenuList","subMenuList","menuRightList","modelForTreeAndDataTable","openCloseIcons","viewDeniedIcons","subMenusFiltered","GetMenusFilteredByParentId","subMenusForTree","GetMenusForTree","menusOrderFromTree","GetMenusOrderFromTree","OC","VM","isAdded","indexForMenuRight","menuRight","LockOpen","GetDefaultOpenCloseIcon","HasRead","GetDefaultViewDeniedIcon","subMenus","selectedParentMenuId","selectedRoleLevelId","selectedRoleId","UserAuthorityDefinitionTreeAndDataTable","onRef","child","roleLevelId","GetAuthories","parentId","toggled","menuIds","menuIndex","allMenu","resultFilterByParentId","orderedLikeTree","Lock","Close","UserRoleCopy","listSourceRole","listDestinationRole","RoleGroupParameterValue","Backoffice","roleGroup","listSourceRoleLevel","listDestinationRoleLevel","isSource","SourceRoleLevelId","DestinationRoleLevelId","IsSourceRoleLevelId","IsDestinationRoleLevelId","IsSourceRoleId","SourceRoleId","IsDestinationRoleId","DestinationRoleId","UserRoleDefinition","GetRoleListByRoleGroupId","GetRoleGroupClientRoleLevel","roleLevelBackofficeSuperAdminId","BackofficeSuperAdmin","roleLevelClientAdminId","roleLevelClientStandartUserId","isBackofficeSuperAdmin","isClientAdmin","GetRoleClientAdmin","listRoleLevelClientAdmin","IsRoleName","ValidateParentForBackofficeSuperAdmin","Scheduler","ApplicationPath","ApplicationName","FullClassName","RecurringWeekDays","SchedulerType","RecurringType","RecurringEvery","RecurringLevel","recurringHourList","RecurringHour","valueChangedRecurringHour","handleChangeCheck","Days","isSame","SchedulerId","OrderId","LastRunDate","LastRunStatus","ApplicationParameter","MarginRight","SchedulerQueue","endOf","staticSelectSchedulerType","SchedulerDetailId","RunStatus","UserDetail","parameterRole","CellEditButtonClick","ResetPasswordConfirm","GetRoleLevelClientAdmin","roleLevelIdClientAdmin","CardTransferMemoDefinition","TransactionDescription","vTransactionDescription","CardTransferMemoDefinitionAnswer","ClientApiKeyDefinition","GetClientKeys","UrlKey","UserKey","PasswordKey","CreateCardTransfer","transfer","NewEndUser","SelectedCardRowChange","VisaDirect","UpdateDateTime","TransactionUniqueId","InstrumentList","HandleClickByKeyPressed","HandleClick","HandleClearClick","HandleChip","HandlePds","CloseSelectCallback","maxLength15","ColumnsPds","ColumnsIpt","De002","De003","De004","De005","De014","De023","De025","De026","De030_1","De030_2","tooltipProps","De031_1","De031_2","De031_3","De031_4","De031_5","De032","De033","De037","De038","De041","De042","De043_1","De043_2","De043_3","De043_4","De043_5","De049","De050","De055","De063","De071","De073","De093","De094","De095","De100","EodStatusId","ClearingStatusId","ValidationDescription","EodDate","ValidateCard","cardModel","ExpirationMonth","ExpirationYear","SecurityCode","DeleteCustomer","InsertCustomer","CardTransferTypeId","BirthDateValue","IdType","IdNumber","IdExpireDateValue","GetVerfy","SearchCustomer","UpdateCustomer","WatchListVerificationResult","HandleChangeCard","InsertCard","EncryptedPan","EncryptedVerificationCode","CurrenyId","ClearCard","GetCard","UpdateCard","ClearCustomer","RegExpression","Menucode","ColumnsCardData","_customerModel$Addres","_customerModel$Addres2","_customerModel$EMail","AddNewCustomer","customermodel","PaymentCard","VisaDirectThirdPartyAddNewCustomer","appSettings","HandleChangeCustomerModel","IsModifyAllowed","TrackingID","hidden","HandleCustomerClear","IsCustomerExists","VisaDirectTransactionSearch","BinNumber","CityReport","OnModelChange","WireTransferBeneficiaryReport","TrxDirection","MessageType","FromAmount","ToAmount","defaultSummary","TotalOutgoingTransactionAmount","TotalIncomingTransactionAmount","TotalTransactionFee","clientColumn","summary","EmptyObject","ChequeWireIncoming","HandleChangeParentTab","ChequeWireOutgoing","ChequeWireTransactions","listItems","WireTransactionsList","WireTransactionsDetailInfo","ChequeWireTransactionsDataTable","Handle","WireTransferClientReport","WireTransferCountryReport","CreateIncomingWireTransfer","updatedModel","CreateWireTransfer","RemoveAddressLineFields","isBeneficiaryInformation","SendReceiptPDF","DownloadReceiptPDF","TemplateColumns","IsRestrictedClient","GetClientInternationalRestriction","newProps","asianCountries","SetAsianCountries","IsRestricted","isAsian","HandleConfirm","CloseSaveConfirmDialog","validateResponseData","DownloadPdf","HandleFileConfirm","HandleFileCancel","transactionSwiftId","AccountNumberInputId","ExecuteUploadRequest","fileUploadResponse","FileUploadResponse","wireSubSenderFileRecords","WireSubSenderFileRecords","RejectedItemCount","SubmitTemplate","HandleTemplateConfirm","HandleTemplateCancel","HandleConfirmDelete","accountIsEmpty","ibanIsEmpty","buttonProps","onFileChange","BeneficiaryAmountDetail","ShowResult","MsbFileList","msbFileList","HandleView","OverlimitTransactionTrail","WireTransferRestrictedCountries","emptyCountryBlacklistData","HandleSubmitClick","HandleSearchClick","fcont","HandleUpdateClick","HandleDeleteClick","WireTransferRestrictedCountriesTransactionTrail","WireTransferSettledTransactionReport","StraightThroughTransactions","TotalTransactionCount","TransactionSearchWireTransfer","DetailButtonDisable","Menu_CallCenterWireTransferTransactionSearch","tswTraColumns","tswTraTable","HandleOpenIncomingDetail","incomingdetailDialog","IsPending","DenyPopup","DenyPopupClose","HandleDisApproval","UnSettledWireTransfer","CreateWireBeneficiaryTemplate","BankCountryName","control2","InsertUpdateClick","DeleteClick","DeleteItem","canDelete","WireEftTransactionSearch","WireTraceTransactionSearch","TraceStatusId","requestObj","TracedTransactionOnly","WireTransferApprovalList","wireTransferWhiteListId","IsApproved","WireTransferDashboard","totalWire","totalFee","ClientParameter","SortedClient","TotalWireChartData","TotalReturnedChartData","TotalRejectionChartData","TotalOnholdChartData","TotalFeeCollectedChartData","tableData","statisticData","PerTransactionFeeCount","rejectionGradientList","rejectionBackground","onholdGradientList","onholdBackground","WorkflowManagement","CreationStartDate","CreationEndDate","InboxData","OutboxData","isApprovalDialogOpen","isApproveUsersDialogOpen","GetClick","approvalDialogClose","GetMenuNameLabel","Backoffice_TransactionApproval","LastUpdateStartDate","LastUpdateEndDate","mainData","approvalData","MenuNameCode","GetActionName","ActionName","ApproveUsers","Get","_original","approverList","MenuPath","WorkflowStepDefinition","StepName","StepNr","MethodId","StepList","sortedGrid","LoadStepList","WorkflowMethodId","WorkflowUserGroupId","menuActionId","WorkflowUserGroupDefinition","isSelectUserDialogOpen","SelectToken","AddUserClick","AddUser","CloseSelectDialog","IsUserExists","RefreshSelect","RemoveUser","canAddUser","SelectUserComponent","SelectUser","LeftRightMargin","drawerMiniWidth","containerFluid","cardBoxShadow","fontFamily","PageMainColor","whiteColor","hexToRgb","hex","r","g","primaryBoxShadow","infoBoxShadow","successBoxShadow","warningBoxShadow","dangerBoxShadow","roseBoxShadow","whiteBoxShadow","orangeCardHeader","greenCardHeader","redCardHeader","blueCardHeader","purpleCardHeader","warningCardHeader","successCardHeader","dangerCardHeader","infoCardHeader","primaryCardHeader","lightenDarkenColor","col","amt","usePound","roseCardHeader","whiteCardHeader","blackCardHeader","cardActions","textShadow","letterSpacing","wordBreak","wordSpacing","wordWrap","lineBreak","cardLink","red1","orange1","yellow1","green1","blue1","purple1","grey1","red3","orange3","yellow3","green3","blue3","purple3","grey3","red4","orange4","yellow4","green4","blue4","purple4","grey4","question","answer","endAdornmentStyle","fullWidthStyle","maskState","specialRegex","isInvalid","handleIsText","handleMask","escapeRegExp","getRawInput","verifyWord","OnChange","tempFormat","inputText","start","selectionStart","newText","counter","Placeholder","letter","shift","selectionEnd","string","regexs","numberRex","alphanumericRex","Regex","BeginIconName","KeyUp","KeyDown","EndText","haveStartIcon","haveEndIcon","multiline","startAdornment","InputAdornment","endAdornment","autoFocus","onKeyPress","onKeyUp","onKeyDown","onBlur","genericTextInputStyle","ParamObj","ParameterValueIncludes","ParameterValue2Includes","ParameterValue3Includes","ParameterValue3Excludes","ParameterValue4Includes","ParameterValue4Excludes","ParameterValue5Includes","ParameterValue5Excludes","ParameterValue6Includes","ParameterValue6Excludes","_","remove","parameterComponentStyle","radioChecked","radioUnchecked","FormControlRadio","DashboardHelper","handleAlertChange","taskpoolDomain","ExecuteApiFileDownload","fileName","fileExtension","FileDownload","taskpool","ShowValidationErrors","ShowMessageAfterOperation","ShowConfirmMessageInDelete","ExecuteApiImageUpload","validateObject","validateFunction","afterMethods","showSuccessfulMessage","wrappedHideAlert","moreWarning","GetBody","_flinks$Login$Usernam","_flinks$Login","_flinks$Login$LastRef","_flinks$Login2","_flinks$Login$Type","_flinks$Login3","_flinks$Login$Id","_flinks$Login4","_flinks$AccountNumber","_flinks$Category","_flinks$Currency","_flinks$Id","_flinks$Balance$Avail","_flinks$Balance","_flinks$Balance$Curre","_flinks$Balance2","_flinks$Balance$Limit","_flinks$Balance3","_flinks$Holder$Name","_flinks$Holder","_flinks$Holder$Email","_flinks$Holder2","_flinks$Holder$PhoneN","_flinks$Holder3","_flinks$Holder$Addres","_flinks$Holder4","_flinks$Holder4$Addre","_flinks$Holder$Addres2","_flinks$Holder5","_flinks$Holder5$Addre","_flinks$Holder$Addres3","_flinks$Holder6","_flinks$Holder6$Addre","_flinks$Holder$Addres4","_flinks$Holder7","_flinks$Holder7$Addre","_flinks$Holder$Addres5","_flinks$Holder8","_flinks$Holder8$Addre","_flinks$Holder$Addres6","_flinks$Holder9","_flinks$Holder9$Addre","ButtonText","GenericExpansionPanelProps","Bottom","thisRef","forWorkflow","thiz","hasTraced","showAlert","TraceTransactionAlert","OnTrace","PromiseResolve","ForWorkflow","HasTraced","TraceReason","InsertTransactionTraceForWorkflow","reason","programCode","Wire_TraceApprove","InsertTransactionTrace","TransactionIdList","RenderUser","ChequeLogo","ClientAdress","ClientCity","BankAdress","InstutionNumber","grid","tooltipOpen","handleOpen","placement","tooltipDisabled","imgDisable","imgNormal","NumberFormatCustom","inputRef","noFormatting","other","Formats","getInputRef","values","floatValue","ClearOnClick","ClearIconName","DecimalSeparator","ClearText","haveClearIcon","endActions","endText","clearText","inputComponent","decimalSeparator","allowNegative","isAllowed","genericNumberInputStyle","groupStyles","customSelectComponents","GenericVirtualizedMenuList","MappedData","isCancelled","FetchDataCallback","isFunction","isObject","FilterData","handleInputChange","selectProps","dataContainer","placeHolderText","selectedOption","FilterPredicate","mappedData","Map","ReloadEnabled","isChanged","LoadData","componentWillUnmount","predicates","MultiLanguage","returnData","GetStyles","base","valueContainer","indicatorsContainer","singleValue","styleObj","titleLabel","tempSelectedOption","lastData","groupedItem","groupedOptions","labelMd","selectMd","components","selectLabelBold","onInputChange","formatGroupLabel","colors","primary25","primary50","primary75","genericSelectInputStyle","GetFormatPhoneText","ExternalPage","getExternalRoutes","externalPagesRoutes","collapse","redirect","Redirect","from","pathTo","Comp","Route","showMessageAfterOperation","dashboardHelper","Switch","checkboxStyle","Checkbox","checkedIcon","Check","uncheckedIcon","labelBold","genericCheckInputStyle","isValidDate","_Model$EndDate","_Model$BeginDate","maximumForBeginDate","minimumForEndDate","timeFormat","IsValidDate","returnValue","isMoment","minDate","maxDate","today","isSameOrBefore","isSameOrAfter","dateFormat","viewMode","closeOnSelect","displayTimeZone","GetTimeZone","genericDateInputStyle","emailState","GenericFilterSelectInput","DataMap","FiberManualRecord","CaseWhenNotFormControl","CaseWhenFormControl","indexRoutes","HeartBeat","private","Pages","Dashboard","SendAgreementDocuSign","applicationModel","SendAgreement","parameterPaymentOptionFee","parameterLoanPurpose","parameterLOSRateOption","RateOptionId","hasError","componentDidCatch","componentStack","ErrorPage","pathname","createStyles","willChange","touchAction","black","twitter","facebook","google","linkedin","pinterest","youtube","tumblr","github","behance","dribbble","reddit","transparent","pointerEvents","genericExpansionPanelStyle","expansionPanel","expansionPanelExpanded","expansionPanelSummary","expansionPanelSummaryExpaned","up","expansionPanelSummaryContent","expansionPanelSummaryExpandIcon","expansionPanelSummaryExpandIconExpanded","expansionPanelDetails","margintop","menuItem","isLeftMenu","MenuBar","common","buttonToolbarStyle","tabComponentStyle","flexContainer","displayNone","pills","pillsWithIcons","tabIcon","labelContainer","contentWrapper","alignCenter","buttonGroup","firstButton","middleButton","lastButton","dynamicToolBarStyle","noRatingBoxStyle","greenRatingBoxStyle","yellowRatingBoxStyle","redRatingBoxStyle","blackRatingBoxStyle","greenRatingStyle","yellowRatingStyle","redRatingStyle","blackRatingStyle","noRatingStyle","card2","goToButton","GetTabList","VerificationPanelIdInformationTab","VerificationPanelAddressInformation","VerificationPanelScore","VerificationPanelOtherInformation","VerificationTitleText","titleText","statusLabel","VerificationStatusBox","statusBox","statusBoxStyle","GetColorAndTextByRatio","ratio","defaultMessage","VerificationResultComponent","customMessage","colorAndMsg","statusWrapperStyle","tempObject","statusGridItemContainerStyle","checkBoxGroupStyle","styleMargin10","VerificationPanel","VerificationPanelScoreOnly","avgScore","remoteAvgScore","AvgScore","IdQuality","resultScore","comp","verificationPanelScoreOnly","CardIdType","CardIdNumber","CardIdExpDate","CardPlaceOfIssue","CardCountry","CardProvince","tabPageContainer","statusContainer","CardIssueDate","CardBirthDate","_VerificationModel$Id","_VerificationModel$Id2","_VerificationModel$Id3","addressLine1","IdStreet","IdStreetNumber","addressLine2","IdUnit","GetSimilarity","IdPostalCode","IdProvince","IdCity","propertyCount","idQualityScore","photoQualityScore","PhotoQuality","idFacePhotoMatchScore","IdFacePhotoMatch","nameScore","NameConfidence","birtdateScore","BirthdateMatch","addressScore","CanadaPostScore","AddressConfidence","IpAddress","IpCountry","IpProvince","IpCity","IpPostalCode","Referer","UserAgent","UserType","Isp","Organization","IpLocationLatitude","IpLocationLongitude","IsAnonymous","IsAnonymousVpn","IsAnonymousHosting","KycManualDigitalVerificationStatusPanel","IdentityBackPhotoId","ProfilePhotoId","digitalVerificationPanelStyle","FetchFeeProfile","FetchLimitProfile","LimitProfileModel","FetchFixedFeePropFromParameter","FetchLimitPropFromParameter","LimitTypes","ProfileType","PA","CA","FA","EA","KeyContact","keyContactModel","PrimaryPhoneModel","MobilePhoneModel","ServiceMapModel","handleChangePrimaryPhone","handleChangeMobilePhone","handleChangeServiceMap","CustomerKeyContactServiceMap","ParameterPosition","ParameterTitle","KeyServiceContactData","FraudService","NewProductService","SystemMaintenanceService","InvoiceSettlementService","ContractService","AccountAccessService","ComplianceService","RenderCountrySelect","CSLimitedKeyContact","PositionId","TitleId","MidName","ImageViewData","ReconciliationCDICTab","ResponseTotalAmountCredit","ResponseTotalAmountDebit","ResponseTotalAmountRejected","ResponseTotalAmountError","ResponseTotalAmountPending","TotalResponseFileAmount","TotalResponseAmount","NumberCreditTransaction","NumberDebitTransaction","ResponseNumberCreditTransaction","ResponseNumberDebitTransaction","ResponseNumberRejectedTransaction","ResponseNumberErrorTransaction","ResponseNumberPendingTransaction","TotalNumberTransaction","TotalResponseNumberTransaction","TotalResponseNumber","ReconciliationDDTTab","ReconciliationEFTTab","HandleClickInside","showColumns","ReconciliationeTransferTab","ResponseTotalAmount","ResponseTotalNumber","CheckComponentDisable","FreezePaymentCount","TotalAmountChanged","CalculateForFreezeDate","momentStartDate","momentEndDate","dayDif","d1","nd","monthDif","d2","getFullYear","getMonth","asMonths","lastDayOfMonth","firstWeekPayDate","getDay","firstBiWeekPayDate","SemiMonthly","sMonthDiff","mMonthDiff","MonthlyMonthEnd","meMonthDiff","meLastMonthDay","qbStartDate","qStartNewMonth","qStartDate","qaEndDate","qEndNewMonth","QuarterlyMonthEnd","qeStartDate","qeaEndDate","qeGetEndMonth","FPC","HandleAssign","AccountNumer","VModel","ParameterClientType","ParameterIdentificationMethod","ParameterResidencyCountry","ParameterLanguage","ParameterGender","ParameterCustomerStatus","disabledIdVerification","ToMomentWithFormat","CreditFileMethod","DualProcessMethod","GenerateRandomHash","chars","CouponSampleCode","sample","Logo1","Logo2","QrImage","colSpan","GetLOSMaxFee","FeeProfileCalculateRate","Calculate","ValidateCalculate","rateOfInterest","MonthlyInterestRate","monthlyPayment","LoanAmount","pow","Period","MonthlyPayment","TotalInterest","MaxFee","isCalculationResultOpen","DialogCalculationResultClose","FeeTotalSetupAmount","TotalSetupFeeCalculate","statusIdParameter","TotalPaymentAmount","FromattedTotalPayment","HandleDocument","BorrowerName","HandleSendMail","TransferDate","PrintIcon","EmailIcon","Issuer","IssuerAcquirerFlag","isAddDisputeFee","selectedFeeIndex","AddOrUpdateDisputeFee","isDisputeFeeDialogOpen","ClearDisputeFee","DeleteDispute","HandleClickFeeDispute","ValidateFeeModel","feeModel","CheckDisableParameter","RepresentmentReasonDisable","RepresentmentStatusDisable","SecondChargebackReasonDisable","SecondChargebackStatusDisable","FeeStatusId","FeeReasonCodeId","FeeReturnStatusId","FeeReturnReasonCodeId","FeeResubmissionStatusId","FeeResubmissionReasonCodeId","FeeArbitrationStatusId","FeeArbitrationReasonCodeId","feeList","RetriavalRequestReasonDisable","retriavalRequestStatusDisable","RetriavalResponseReasonDisable","RetriavalResponseStatusDisable","ChargebackReasonDisable","ChargebackStatusDisable","DisputeFeeDetail","DisputeAction","DisputeStatusId","DisputeAmount","StartUser","ResolveDate","ResolveUser","RetrievalRequestId","RetrievalRequestDate","RetrievalRequestReasonCodeId","ClearingDisputeStatus","ClearingDisputeSenderStatus","ClearingDisputeReceiverStatus","RetrievalRequestStatusId","RetrievalResponseId","RetrievalResponseDate","RetrievalResponseStatusId","ChargebackId","ChargebackDate","ChargeBack","FunctionCodeFirstChargeBack","RepresentmentId","RepresentmentDate","SecondChargebackId","SecondChargebackDate","FunctionCodeSecondChargeBack","FraudId","FraudDate","FraudStatusId","ClientCustomerGet","modelprops","CheckinConfirm","CustomerValueChanged","checksalestatus","saleStatus","CheckReasonTypeId","Salestatus","CardOrder","FromCase","ToCase","ToInventorySafeDefinitionName","FromInventorySafeDefinitionId","ToInventorySafeDefinitionId","transferlist","TransferConfrim","INSERT","UPDATE","DELETE","GetType","ALL","BYPARAMETER","AuthenticatorStatus","UnRegistered","WaitingForVerification","Closed","Expired","ManuelClosed","Banned","CSV","Excel","PDF","MainSearchItems","Returned","UnSettledUnProcessed","UnSettledMainSearchItem","UnSettledTransactions","UnProcessedTransactions","UnSettledFile","UnProcessedFiles","ACQUIRING","ACQUIRING_Atm_Acquiring","ACQUIRING_Credit","ACQUIRING_Debit","ACQUIRING_Prepaid","Atm_Acquiring_Interac","Atm_Acquiring_Mastercard","Atm_Acquiring_Mastercard_Cirrus","Atm_Acquiring_Visa","Atm_Acquiring_Visa_Plus","BANK_PROGRAMS","Bank_Programs_Agent","Bank_Programs_Bank_Account_Corporate","Bank_Programs_Bank_Account_Personal","BANK_PROGRAMS_Bank_Programs","Bank_Programs_MSB","Bank_Programs_Sponsorship","Bank_Programs_Swift","Card_Transfers_Mastercard_Moneysend","Card_Transfers_Visa_Direct","Credit_Amex","Credit_Mastercard","Credit_Visa","Debit_Interac","Debit_Interac_Debit","Debit_Mastercard","Debit_Mastercard_Debit","Debit_Visa","Debit_Visa_Debit","ISSUING","ISSUING_Debit","ISSUING_Prepaid","Prepaid_Interac","Prepaid_Mastercard","Prepaid_Mastercard_Prepaid","Prepaid_Visa","Prepaid_Visa_Prepaid","DigitalIdVerification","WeekDays","DateHomePageFilter","SelectNextDayList","PersonalizedExpDateList","Reportable","NonReportable","DynamicReportType","ReportTypeForWalletAccounts","NotificationUsageType","LoginUserType","BackOffice","DCBankVisitorUser","EFTPriorityTypes","BulkRegular","BulkPriority","OneTime","Daily","FirstDay","LastDay","DCBankAccount","DDTAccount","DdtPoolAccount","CDICPoolAccount","ETransferMainAccount","SecondaryAccount","Suspended","Deactivated","Notified","ReSend","Settled","ReadToSend","Defered","ETransferWeekOfMonthTypes","First","Second","Third","Fourth","Last","AmlKycRiskLevel","High","Medium","Low","CustomerBusinessType","Business","ApprovalRequest","PortalProgram","DCBankRowId","FixedCash","LetterofGuarantee","TransactionLimitDaily","PrepaidAccountFundsTransferLimitDaily","TransactionBasedLimit","FileTotalUploadLimitPerFile","PhoneType","Primary","Alternative","Fax","PortalType","MonthlyProgramFeeEft","MonthlySftpFeeEft","MonthlyDueDeligenceFeeEft","MonthlyApiFeeEft","MiscDebitRegularRvsTxnFee","MiscDebitRegularFilePrcFee","MiscDebitRegularDisputeFee","MiscDebitPriorityRvsTxnFee","MiscDebitPriorityFilePrcFee","MiscDebitPriorityDisputeFee","MiscCreditRegularTxnFee","MiscCreditRegularRvsTxnFee","MiscCreditRegularFilePrcFee","MiscCreditRegularDisputeFee","MiscCreditPriorityTxnFee","MiscCreditPriorityRvsTxnFee","MiscCreditPriorityFilePrcFee","MiscCreditPriorityDisputeFee","MonthlyProgramFeeEtransfer","MonthlySftpFeeEtransfer","MonthlyDueDeligenceFeeEtransfer","MonthlyApiFeeEtransfer","RealTimeETCancelledTxnFee","RealTimeETFileProcFee","RealTimeETDisputeFee","RealTimeETMinTxnFee","BulkRegularETCancelledTxnFee","BulkRegularETFileProcFee","BulkRegularETDisputeFee","BulkRegularETMinTxnFee","BulkPriorityETCancelledTxnFee","BulkPriorityETFileProcFee","BulkPriorityETDisputeFee","BulkPriorityETMinTxnFee","BulkRegularMRCancelledTxnFee","BulkRegularMRFileProcFee","BulkRegularMRDisputeFee","BulkRegularMRMinTxnFee","BulkPriorityMRCancelledTxnFee","BulkPriorityMRFileProcFee","BulkPriorityMRDisputeFee","BulkPriorityMRMinTxnFee","TransferToExtAccountFee","TransferToDcbPrepaidCard","TransferToETransferFee","DormantFee","PerDepositFee","MinNumOfDdtFee","YearlyAccountFee","SMSNotificationFee","EmailNotificationFee","ApplicationNotificationFee","Sms","BranchAddress","Home","StoreAdress","HeadOffice","Documents","AccountVerification","RiskLightRating","Green","Yellow","Red","DirectSales","MassId","CampaignEngineMethodType","ICoupon","FreeProduct","ONDriversLicence","QCDriversLicence","ABDriversLicence","BCDriversLicence","MBDriversLicence","NUDriversLicence","NBDriversLicence","NSDriversLicence","NLDriversLicence","NTDriversLicence","PEDriversLicence","SKDriversLicence","YTDriversLicence","DriversLicenceForeign","CanadaPassport","ForeignPassport","USAPassport","CertificateofIndianStatusCard","CanadaPermanentResidentCard","CanadianForcesID","ONProvincialPhotoID","MBProvincialPhotoID","PEProvincialPhotoID","QCProvincialHealthCard","ABProvincialPhotoID","BCProvincialPhotoID","NBProvincialPhotoID","NLProvincialPhotoID","NSProvincialPhotoID","SKProvincialPhotoID","YTProvincialPhotoID","NUProvincialPhotoID","NTProvincialPhotoID","FirearmsPossessionandAcquisitionLicense","CanadaVeteransHealthCardNoPhoto","BCComboCard","ZeroPoR","ViewSourceType","Announcement","AmlKycInternalBlacklist","Contract","LedgerCardLogo","IframeHeaderLogo","JPG","PNG","XLSX","XML","LoanLedgerCardIconType","CompanyLogo","StatementLogo","UserLimitType","UserCreditTransactionLimitDaily","UserDebitTransactionLimitDaily","UserPrepaidAccountFundsTransferLimitDaily","UserTransactionBasedLimit","UserCreditFileTotalUploadLimitEachFile","UserDebitFileTotalUploadLimitEachFile","UserMaxNumberOfTransactionOneTimeUpload","UserNumberOfTransacionDailyUpload","UserMaxLimit","TrueFalse","True","False","KRW","AFA","DZD","ADP","AOK","ARS","AMD","AWG","AUD","BSD","BHD","BDT","BBD","BZD","BMD","BTN","BOB","BWP","BRL","GBP","BND","BGN","BUK","BIF","CVE","KYD","CLP","CLF","COP","XOF","XAF","KMF","XPF","CRC","CUP","CYP","CZK","DKK","YDD","DOP","XCD","TPE","ECS","EGP","SVC","EEK","ETB","EUR","FKP","FJD","GMD","GHC","GIP","XAU","GTQ","GNF","GWP","GYD","HTG","HNL","HKD","HUF","INR","IDR","XDR","IRR","IQD","IEP","ILS","JMD","JPY","JOD","KHR","KES","KWD","LAK","LBP","LSL","LRD","LYD","MOP","MGF","MWK","MYR","MVR","MTL","MRO","MUR","MXP","MNT","MAD","MZM","NAD","NPR","ANG","YUD","NZD","NIO","NGN","KPW","NOK","OMR","PKR","XPD","PAB","PGK","PYG","PEN","PHP","XPT","PLN","QAR","RON","RUB","RWF","WST","STD","SAR","SCR","SLL","XAG","SGD","SKK","SBD","SOS","ZAR","LKR","SHP","SDP","SRG","SZL","SEK","CHF","SYP","TWD","TZS","THB","TOP","TTD","TND","TRY","UGX","AED","UYU","USD","VUV","VEF","VND","YER","CNY","ZRZ","ZMK","ZWD","CampaignCouponStatus","Burned","CSLimitedClientSummary","CSLimitedIndividual","CSLimitedAddress","CSLimitedSigningOfficer","CSLimitedDcAccounts","CSLimitedCorporate","CSLimitedBeneficiaryOwner","CSLimitedExternalAccount","CSLimitedRiskRating","CSLimitedContracts","CSLimitedMemo","CSLimitedKYCStatus","CSLimitedSecurity","DCBankAccount_Approve","Contract_Approve","Parameter_ParameterDefinition","Prepaid_Card_Application","Prepaid_Prepaid_Group_Definition","Prepaid_MyProfile","Prepaid_BinDefinition","Prepaid_ReportGenerator","Prepaid_ListGenerator","RoleDefinition_Menu","Eft","UserAdmin","Eft_CreateEFT","Prepaid_AddOrUpdateContact","Backoffice_SiteVisit","Prepaid_AddOrUpdateAddress","Backoffice_Backoffice","Eft_AddNewCustomerEFT","ETransfer_AddNewCustomereTransfer","Transactions_RejectedReturnTransactions","Parameter_RiskQuestion","SystemAdministration","Parameter_BMOOriginator","Parameter_RiskQuestionType","ClearingSettlement","Eft_EftRejectedDailySettledItems","Parameter_AreaCodeDefinition","Parameter_CountryCodeDefinition","Parameter_CurrencyCodeParameters","Parameter_EndDayStepDefinition","Parameter_HolidayDaysDefinition","Parameter_EFTTransactionTypes","Parameter_EFTReturnedReasonCodes","Parameter_CanadaFinancialInstitutionsList","ETransfer_eTransferSettlementFiles","ETransfer_eTransferOutgoingTransfers","ETransfer_eTransferCompletedTransfers","Eft_EFTRetunedItemList","SEARCH_EtransferTransactionSearch","Transactions_ErrorTransactions","Transactions_PendingTransactions","Transactions_EtransferUnSettledUnProcessedTransactions","Eft_NotificationSettings","CardTransfer","Swift","MoneyTransfer","Banking","ATM","Banking_Cheque","AML_KYC","Support","Banking_BankAccountDashboard","Eft_EFTDailySettledItems","Profiles","ClearingSettlement_Reconciliation","Transactions_EftUnSettledUnProcessedTransactions","SEARCH_EftTransactionSearch","Parameter_DataModelDefinition","Parameter_ReportDataModelDefinition","Parameter_ReportPropertyDefinition","DDT_DDTList","ETransfer_NotificationSettings","DDT_NotificationSettings","Reports_CreateReport","Notification_AnnouncementDefinition","ETransfer_CreateEtransfer","Notification_NotificationDefinition","FeeProfiles_DdtFeeProfile","FeeProfiles_ReferralFeeProfile","SystemAdministration_Test","Banking_AccountSummary","Banking_TransferBetweenMyAccounts","SEARCH_CDICTransactionSearch","Banking_EftTransferLinkedAccount","Banking_LinkedAccounts","SystemAdministration_CharacterMaksing","Transactions_EftRecurringTransactionSearch","Transactions_EtransferRecurringTransactionSearch","AML_KYC_AMLKYCBlacklist","Eft_EftOutgoingFile","SystemAdministration_AuditLog","SystemAdministration_TestUser","Reports_TransactionDetailSearch","UserAdmin_ChangeOrResetPassword","UserAdmin_NewUserDefinition","ExecutiveReports_FundsMovement","Reports","RoleDefinition_Action","RoleDefinition_MenuAction","ExecutiveReports_RiskRatingSummary","RoleDefinition_MenuActionRight","RoleDefinition_UserAuthorityDefinition","ExecutiveReports_VolumeAnalysis","ExecutiveReports_ExecutiveSummary","DDT_CDICAccounts","LimitProfileMenu_ClientLimitProfile","ClearingSettlement_Eft","ClearingSettlement_ETransfer","Profiles_FeeProfiles","DDT_CDIC","Eft_Transactions","ETransfer_Transactions","Eft_Reports","Reports_ExecutiveReports","UserAdmin_UserDetail","Notification_NotificationTemplate","NotificationTemplate_TemplateTypeDefinition","NotificationTemplate_TemplateDefinition","RoleDefinition_UserRoleDefinition","Favorites","MONITORING","Reports_Merchant","Reports_Merchant_Reports_EFT","Reports_Merchant_Reports_ETransfer","Reports_Merchant_Reports_DDT","FeeProfiles_FeeProfileList","Header_MyProfileHeader","FeeProfiles_FixedFeeProfile","FeeProfiles_WeightedFeeProfile","UserAdmin_RoleDefinition","Header_ApiSandBox","ClearingSettlement_MatchingCriteriaDefinition","AppTitleBar","AppTitleBar_Gavel","AppTitleBar_AttachMoney","AppTitleBar_Notifications","AppTitleBar_VolumeUp","ClearingSettlement_ClientReconciliation","Banking_NotificationSettings","Profiles_LimitProfileMenu","LimitProfileMenu_UserLimitProfile","Favorites_ManageFavoriteUserMenu","SEARCH_DDTTransactionSearch","Loyalty_Manage_Card_Loyalty_Card_Detail","Prepaid_LoyaltyTerminal","Prepaid_ProductDetail","Loyalty_Manage_Card_Loyalty_AssignedCard","Prepaid_ManageRisk","Prepaid_PosTransaction","Loyalty_Manage_Card_Loyalty_Transaction","Loyalty_Manage_Card_Loyalty_AutoLoad","AlertReports_ContractDeadlineAlert","Prepaid_LoyaltyXUsage","Prepaid_Loyalty_Manage_Card","ETransfer_Reports","Reports_AdHocReports","Prepaid_LoyaltyUpgParam","Prepaid_LoyaltyCatalogUsg","Prepaid_LoyaltyMerchantLst","DDT_Reports","Reports_ListGenerator","Parameter_AuditLog","Prepaid_KadirTestName","Prepaid_ConversionParameter","Parameter_GenericScreenDefinition","Program_DDTCDIC","DDTCDIC_DDTList","DDTCDIC_ListGenerator","DDTCDIC_CDICAccounts","Backoffice_ContractList","Backoffice_AgentEarnings","Backoffice_AgentStatement","Backoffice_AlertReports","AlertReports_ClientRiskReviewAlert","FeeProfiles_AgentCommissionDefinition","WireTransfer_CreateWireTransfer","BaseTest","Parameter_GenericScreenTest","Support_OnlineSupport","Support_FAQManage","Support_FAQView","Support_UserGuideManage","Support_UserGuideView","SystemAdministration_Resource","SystemAdministration_ClientUserAuthorization","LENDING","LENDING_Performance","Performance_PortfolioPerformance","LENDING_PaymentAdmin","LENDING_BorrowerAdmin","LENDING_PartnerAdmin","Program_Eft","Eft_UnSettledUnProcessedTransactions","Eft_EftIncoming","Reports_Report_20190225124243","Banking_AutoLoadingInstruction","Backoffice_FeeProfileList","Reports_Report_20190226114936","Banking_EtransferTransferLinkedAccount","Cheque_ChequeOrder","Reports_Report_20190227092635","Cheque_ChequeManagement","SystemAdministration_name","EftTransactionSearch_TestName","Eft_EftIncomingWorkflow","AML_KYC_TransactionAlert","AML_KYC_KycAlert","AML_KYC_ClientDetail","AML_KYC_CaseTransactionHistory","AML_KYC_TransactionAlertScenarioDefinition","AML_KYC_KycVerificationScenarioDefinition","AML_KYC_DownJonesBlacklist","AML_KYC_InternalBlacklist","AML_KYC_VerificationPriority","SystemAdministration_Ufuk_Test","Reports_Report_20190304094411","Reports_Report_20190304094528","EFTPredefinedReports","EFTAdHocReports","ETransferPredefinedReports","ETransferAdHocReports","DDTPredefinedReports","DDTAdHocReports","LMSPredefinedReports","LMSAdHocReports","LOSPredefinedReports","LOSAdHocReports","BillPaymentPredefinedReports","BillPaymentAdHocReports","BankingPredefinedReports","BankingAdHocReports","PrepaidAdHocReports","ClientProductRestrictionProfile","Menu_CollectionParameter","Menu_AdminCollectionPool","Menu_WalletCardRenawalList","Menu_CardRenawalList","Menu_ClientWireTransferTransactionSearch","Menu_BackOfficeTransactionSearchWireTransfer","DDT_Transactions","DDT_Transactions_DdtRejectedReturnedTransactions","DDT_Transactions_DdtClearingTransactionSearch","DDT_DdtAccountActivities","DDT_Transactions_DdtTransactions","DDT_Transactions_IncomingETransferTransactions","DDT_ETransfer_Incoming_TransactionSearch","DDT_CDIC_Etransfer_Incoming_TransactionSearch","Menu_ClientProductManagement","CMS_TransactionManagement_WalletTransaction","CMS_TransactionManagement_CardTransaction","Menu_ExportCardEmbossFile","Menu_ImportCardEmbossFile","Menu_CardMonitoring","Menu_BackofficeCardMonitoring","Menu_CallCenterCardMonitoring","Menu_FrozenCardDetails","Menu_CaaSLinks","Create","Refresh","Rollback","ReSubmit","CreateReport","EtransferRequestType","Request","Success","InProgress","FINTRAC","AMF","FcRole","Merchant","FcGender","Male","Female","FcCountry","Canada","Turkey","FcCity","Konya","Toronto","WireStatus","Successfull","DCRejection","SwiftRejection","AutoRejection","WireSubStatus","LimitException","InsufficentFunds","ResourceType","Others","TransactionBased","CardLevel","MainCard","SupplementaryCard","Freezed","Received","ProfileStatus","KycVerificationType","SentApproval","LOSIdenticationMethod","TelpayAccess","Interact","AuthenticationFailure","AuthenticationSuccessful","Declined","DepositMechanismSpecified","DepositMechanismFailed","DepositMechanismCorrected","DepositMechanismDeclined","InSettlement","ListPartialMatch","ListNotMatch","Denied","Initiated","Fulfilled","DepositFailed","DepositeComplete","ClearingFeeFunctionCode","FunctionCodeFee","FunctionCodeFeeReturn","FunctionCodeFeeResubmission","FunctionCodeFeeArbitrationReturn","FunctionCodeSystemFee","ClearingFeeType","Funds","SystemFee","BackofficeAdmin","BackofficeStandardUser","PasswordLocked","Blocked","longitudeMax","longitudeMin","MenuAuthorityDefinitionCode","CardApplication","CustomerCreation","MoneyDeposit","SettlementCode","SecurityNumber","SettlementAccount","TelpaySettlementAccount","WalletChequeAccount","PrepaidCardAccount","CustomerMainAccount","MainAccountSummaryType","IsClientCustomer","TspTokenStatus","MdesTokenStatusDefinition","MdesTokenTypeDefinition","MdesTokenSourceDefinition","MdesRequestsStatusDefinition","DueTermOfStatement","EndOfDayPageFilter","ExportToCsv","ws","json_to_sheet","csvString","sheet_to_csv","Blob","FileSaver","ExportToExcel","wb","Sheets","SheetNames","excelBuffer","bookType","ExportToPdf","pdfMake","vfs","pdfFonts","docDefinition","widths","fill","buildTableBody","layout","fillColor","node","columnIndex","tableExample","bold","createPdf","getBlob","dataRow","LOSLoanTranferType","HandleChangeLoanTransfer","loanTransferTypeParam","isSwfit","isETransfer","isLinkedAccount","localModel","TransferService","HandleTransferLoan","vLocalModel","parameterLoanTransferType","LMSPaymentDayParameterCode","LoanTransferType","RequestedTransferDate","PaybackMethodId","SwiftComponent","changeEvent","ETransferComponent","getClientParamObj","UpdateStatementDayofMonth","BankSwiftName","BankSwiftBranch","BankSwiftAccount","_ref2","CreateGenericAlert","onCancel","HandleOperationType","ReviewDate","RatingSummaryList","ratingSummaryInfo","RatingSummaryInfo","callbackFromParent","HandleChangeComment","commentModel","ClearComment","OperationCheckComment","MemoRiskLevel","InsertOrUpdateComment","MemoDate","HandleDeleteComment","SelectedRowChangeComment","BankCustomerData","currentRisk","Level","Style","ParameterRiskLevel","HandleGetInspector","HandleGetDataAndRisk","firstMemo","UpdateUser","InsertUser","InsertUserId","RiskRatingQuestionaries","customerRiskRatingAgreementId","CustomerRiskRatingAgreementId","reviewDate","MediumOverrideFactor","HighOverrideFactor","StopOverrideFactor","MaritalStatusParameterCode","LOSPhoneGivenParameterCode","LOSDownpaymentParameterCode","LOSInterbankTimeParameterCode","LOSSalaryParameterCode","LOSEmplTimeParameterCode","LOSTimePerParameterCode","LOSAddrTimeParameterCode","LOSResidentalStatusParameterCode","LOSEduLevelParameterCode","sortedParameterValue","ResidentalStatusId","EducationLevelId","TimeInterbankId","TimeUsId","HouseOwnershipId","CarOwnershipId","LOSDownpaymentId","TelephoneGivenId","MaritalStatusId","TimeInCurrentJobId","TimePresentAddressId","TimeInJobId","MonthlySalaryId","MonthlyOtherIncomeId","transactionGradientList","transactionBackground","creditDebitGradientList","creditDebitBackground","createHashHistory","ReactDOM","Provider","App","Any","SetLanguage","C","default","catch","GenericScreen","withRouter","CanadaPost","MissingDocument","ManualKycEmailLink","ManualKyc","IdentitySourceType","ParameterDefinition","DigitalIdentityVerificationIdentityType","LinkRequestType","KYCVerifiedStatus","UnVerified","ManualKycAppMenuAuthority","WatchList","TransUnion","TransUnionId","InPerson","handleButtonCancel","handleButtonOk","getIconStyle","nextProps","iconStyle","iconColor","dashboardStyleZIndex","dashboardDiv","componentWillUpdate","dialogTitle","dialogTitleText","dialogContent","alertButton","genericAlertStyle","overlayStyle","staticLoad","percent","pool","taskCount","CircularProgress","displayColorPicker","DefaultValue","swatch","popover","cover","zs","SketchPicker","IsValidColor","presetColors","GetAll","loc","GetAllForMenu","languageId","afterLanguageSet","GetCodeByName","dialogStyle","genericDialogStyle","Overflow","overflowVisible","createMuiTheme","overrides","MuiCollapse","entered","palette","typography","useNextVariants","MuiThemeProvider","ExpansionPanel","ExpansionPanelSummary","expandIcon","ExpansionPanelDetails","selectedOptions","SelectedGridKeyValueList","OpenDialog","ExcludedColumns","isColumnSelectDialogOpen","GetDataToDownload","ResolveData","newObject","propertyKey","ClearUp","minimumFractionDigits","maximumFractionDigits","GetTrProps","GetTdProps","DefaultFilter","pivotId","GetCellDate","GetCellDateTime","GetCellDateUtc","GetCellDateTimeUtc","GetCellMoney","GetCelPercent","GetCellTime","GetCellYesNo","LoadMoreClick","tableInstance","LoadMoreClicked","OnFetchData","instance","loadMore","PageNumber","page","pageSize","FetchSuccess","pageNumber","pageCount","TotalPages","PageCount","PropData","SetTdProps","StateData","finalColumns","defaultFilterMethod","sorted","resolveData","getTdProps","manual","onFetchData","pages","genericGridStyle","GenerateInput","inputData","IsReport","CustomerStoreComponent","LevenshteinDistance","s1","s2","caseSensitive","matrix","charAt","min","allWords","parameters","ReplaceAll","max","levDistance","ceil","digits","output","g1","g2","g3","paddingChar","VerifiyAdressLineWire","IsPointer","PaddingLeft","PaddingTop","genericLabelStyle","GenericLinearProgress","LinearProgress","dropdownButton","HandleMenu","HandleChangeMenu","DisableGroup","selectWidth","ReactMultiSelectCheckboxes","onMenuOpen","onMenuClose","targetChild","genericMultipleSelectInputStyle","protoType","Reflect","getPrototypeOf","ownKeys","descriptor","getOwnPropertyDescriptor","ShowLoadingSync","HideLoadingSync","ExecuteDownloadRequest","fail","extension","GenericTextAutoInput","AutoCompleteDisable","MaxOptions","Options","RequestOnlyIfNoOptions","SpaceRemovers","Spacer","Trigger","OnRequestOptions","TextInput","maxOptions","regex","requestOnlyIfNoOptions","spaceRemovers","spacer","onRequestOptions","loadingPlaceholder","containerPlaceholder","MapHoc","withScriptjs","withGoogleMap","MapContainerRef","others","GoogleMap","mapTypeId","googleMapURL","HidePopup","infoWindowProps","Marker","InfoWindow","compose","withProps","StandaloneSearchBox","GenericMapSearchboxHoc","memo","MapSearchboxRef","otherProps","data-standalone-searchbox","genericMapSearchboxStyle","handleOrientationChange","injectOverlay","getVideoElement","getElementsByTagName","getVideoContainer","getElementsByClassName","frameCount","video","progressCount","layerTrigger","removeEventListener","doInject","imgRatio","clientWidth","clientHeight","insertBefore","firstChild","rearrange","getAttribute","tempImg","parentNode","removeChild","closeStream","getTracks","track","stop","CustomOnCameraStart","ImageType","CustomOnTakePhoto","pop","IdealResolution","OnCameraStop","IsImageMirror","IdealFacingMode","ImageCompression","IsMaxResolution","IsSilentMode","IsDisplayStartCameraError","SizeFactor","facingModes","FACING_MODES","ENVIRONMENT","USER","imageType","IMAGE_TYPES","Camera","onCameraStart","onCameraStop","isImageMirror","onTakePhotoAnimationDone","onCameraError","idealFacingMode","imageCompression","isMaxResolution","isSilentMode","isDisplayStartCameraError","sizeFactor","idealResolution","GenericFlipContainer","Front","Back","GenericStepper","Steps","ActiveStep","Stepper","alternativeLabel","activeStep","StepProps","StepLabelProps","Step","StepLabel","GenericVerificationComponent","getIcon","statusStr","verificationBase","verificationFalse","verificationTrue","verificationWarning","verificationEmpty","genericVerificationComponentStyle","TasksCompleted","SetBusy","handleAppendTask","SetDone","handleDoneTask","promise","rand","rnd","openConsoleLog","isRunningAnyTask","allTaskStatus","SortedFullName","SortedId","LOGIN_REQUEST","LOGIN_FAILURE","CHANGE_LANGUAGE","loggedIn","rootReducer","combineReducers","loggingIn","createStore","applyMiddleware","thunkMiddleware","isStore","FundingAccountBalance","FeeAccountBalance","AvailableStoreCreditLimit","AvailableStoreDebitLimit","PrivateRoute","UtcOffset","utcOffset","ProxyTimeOut","_window$ProxyTimeOut","IsProxyErrorDetailActive","ProxyUrl","ProxyUrl2","timeout","ms","URL","Params","customTimeout","fetch","GetEnvironmentUrl","headers","getSessionId","ok","statusText","StackTrace","ToErrorString","FileUrl","Callback","aElement","createObjectURL","revokeObjectURL","binary","atob","charCodeAt","Uint8Array","alertFunc","newSuccessCallback","IsPooled","FileGuid","DownloadFileTimeout","BaseUrl","TypeError","connectedPage","connect","ReportDataModelDefinitionId","ShowMessageWithCallback","args","FilterColumnId","GetProperties","parameterListBoxOnChange","parameterListBoxSelected","emailModel","HandleToggleEmail","HandleAddEmail","initialEmailModel","filterList","columnList","newListBoxOptionColumn","newListBoxOptionColumnSelected","newListBoxOptionFilter","newListBoxOptionFilterSelected","IsFilter","IsColumn","parameterListBoxOption","selectedItemId","ReportDataModelDefinition","DefinedFilterColumn","DefinedColumn","GetReportDataModelDefinitionParameter","parameterReportDataModelDefinition","ColumnProperty","FilterProperty","IsSchedule","parameterScheduleType","parameterDocumentType","sortedDefinitionName","sortedParameters","disableLike","filterColumnList","ReportDownload","clients","modelTmp","selectedClient","ValueChecked","viewData","ValidateForSearch","ScreenCallback","isColumnsLoaded","HaveDefaultValue","initialViewData","HandleCustomClick","CustomListCallback","isReport","IsAutoFill","IsNotFillFromGrid","firtRoot","HandleGetDocument","DocumentCallback","CancelClick","GetButtonList","searchButton","IsInputRequired","o2","IsBulkOperation","SetButton","HandleExport","genericColumns","exportDataURL","buttonCode","ButtonObj","IsFilterPanelHidden","GenericFormScreen","GenericListScreen","handleDocument","cardStyle","cardPlain","cardProfile","cardBlog","cardRaised","backgroundPosition","cardPricing","cardPricingColor","cardProduct","cardChart","cardLogin","cardBodyStyle","cardBody","WebkitBoxFlex","cardBodyBackground","cardBodyPlain","cardBodyFormHorizontal","cardBodyProfile","cardBodyCalendar","ReportClick","cardMediaStyle","MainLogo","labelRootDisabled","menuAuthorityDefinitionCode","menuAuthorityDefinitionCodes","MenuAuthorityDefinitionCodes","MenuListStyle","_props$children$","listCompProps","selectOneLabelComp","groupStyle","getStyles","groupHeadingStyle","rowHeight","rowCount","rowRenderer","isScrolling","isVisible","boxSizing","outline","textOverflow","IsHidden","ColumnDefinitions","_obj$Title","Resizable","Sortable","Filterable","HeaderTableText","toJSON","HashRouter","samplePageStyles","regularFormsStyle","staticFormGroup","staticFormControl","inputAdornmentIconSuccess","inputAdornmentIconError","flatRoutes","searchMenuList","dashboardRoutes","Portal","headerMenuRightList","isChangeUserDialogOpen","LogInDisabled","userName","mainPanelRef","handleLogout","ChangeOpacity","MenuValueChanged","LoginCallback","SetUser","OnChangeUserClick","LoadMenu","LoadMenuProcess","GetMenuRightByParentMenuCode","GetSearchMenuList","GetIsMenuFavorited","Parent","visibilityState","intData","menuData","menuDataJson","scrollTop","open2","ShadowLogin","menuUrl","MenuUrl","isFavorited","mainPanel","wrapper","IdleComponent","ClientUser","onChangeUserClick","logout","Sidebar","routes","bgColor","IsFavorited","exact","fluid","appStyle","overflowScrolling","mainPanelSidebarMini","mainPanelWithPerfectScrollbar","footerStyle","inlineBlock","_userInfo$FirstName","_userInfo$LastName","_userInfo$ClientName","_userInfo$CustomerSto","_userInfo$CustomerSto2","_userInfo$CustomerSto3","_userInfo$CustomerSto4","Timezone","EstTimeZone","GetDateTimeEst","storeArea","appBarClasses","logoClasses","whiteAfter","mainLogo","brand","logoNormal","myProfileHeaderIsShow","headerMenuRight","AppBar","Toolbar","headerText","smDown","smallFont","gridItem","help","headerStyle","sidebarMinimize","sidebarMinimizeRTL","sidebarMiniIcon","minimizeButton","logoMini","logoMiniRTL","logoNormalRTL","logoNormalSidebarMini","logoNormalSidebarMiniRTL","activeRoute","routeName","handler","rtlActive","Collapse","itemText","itemTextMini","miniActive","itemTextMiniRTL","itemTextRTL","ListItem","ListItemText","disableTypography","ExpandLess","ExpandMore","in","unmountOnExit","collapseList","Views","navLinkClasses","itemLink","NavLink","drawerPaperMini","drawerPaperRTL","sidebarWrapper","sidebarStyle","blackBackground","blueBackground","whiteBackground","userItem","itemIcon","itemIconRTL","userItemText","collapseItem","collapseActive","collapseItemLink","collapseItemMini","collapseItemMiniRTL","collapseItemText","collapseItemTextRTL","collapseItemTextMiniRTL","collapseItemTextMini","caret","userCaret","caretRTL","caretActive","sidebarWrapperWithPerfectScrollbar","photo","photoRTL","avatarImg","userCollapseButton","userCollapseLinks","LegalClick","openLegal","LegalClose","FeeClick","openFee","FeeClose","NotificationClick","listNotification","openNotification","initialListNotification","SourceId","SourceTypeId","NotificationClose","GetNotificationList","AnnouncementClick","listAnnouncement","openAnnouncement","initialListAnnouncement","IsRead","AnnouncementClose","GetAnnouncementList","FavoriteClick","listHeaderMenuRight","GetLegalList","listLegal","GetFeeList","listFee","openHelpDialog","helpContent","isHelpDialogOpen","closeHelpDialog","viewSourceTypeIds","dropdownItem","primaryHover","managerClasses","favoriteIsShow","gavelIsShow","attachMoneyIsShow","notificationsIsShow","volumeUpIsShow","favoriteIcon","only","aria-owns","aria-haspopup","buttonRef","anchorEl","Popper","disablePortal","popperClose","pooperResponsive","pooperNav","TransitionProps","Grow","transformOrigin","Paper","dropdown","ClickAwayListener","onClickAway","role","ProgramDescription","_ref3","circleText","circleAfterText","announcements","_ref4","appTitleBarStyle","customDropdownStyle","linkText","links","legals","fees","backgroundClip","dropdownItemRTL","blackHover","dropdownDividerItem","buttonIcon","caretDropup","dropdownHeader","currentCount","IdleTimeOutCountDownSecond","intervalHandle","OnAction","OnActive","OnIdle","CountBack","Logout","UpdateUserLastActiveDate","lastActiveDateIso","lastActiveDate","IdleTimeOutMilliSecond","toISOString","clearInterval","IdleTimer","onActive","onIdle","onAction","debounce","PopulateMenu","SubMenu","subMenu","popupClassName","popupMenu","openAnimation","overflowedIndicator","selectable","menuBarStyle","lineChartData","HandleGetChart","chartModel","panel2Active","HandleGetChartList","chartListModel","HandleGetAccount","HandleChangeLimit","limitModel","HandleGetLimit","HandleChangeTransaction","transactionModel","HandleGetTransactionDetail","HandleChangeGrid","gridUniqueClientId","HandleChangeSettlement","settlementModel","HandleGetSettlementSummaryList","HandleChangeChart","HandleChangeChartList","SuccessAccountCallback","ErrorAccountCallback","totalBalance","CountTotal","pendingbalance","CountPending","SuccessLimitCallback","ErrorLimitCallback","TotalAvailableLimit","SuccessTransactionDetailCallback","ErrorTransactionDetailCallback","getAllProgramTransactionSum","totalMonthly","Etransfer","Lending","Wire","DateFilterId","SuccessSettlementSummaryListCallback","ErrorSettlementSummaryListCallback","_responseData$Item6","_responseData$Item7","_responseData$Item8","_responseData$Item9","_responseData$Item10","_responseData$Item11","_responseData$Item12","numberOfDebitTransaction","NumberOfDebitTransaction","numberOfCreditTransaction","NumberOfCreditTransaction","amountOfDebitTransaction","AmountOfDebitTransaction","amountOfCreditTransaction","AmountOfCreditTransaction","SuccessChartCallback","ErrorChartCallback","SuccessChartListCallback","ErrorChartListCallback","PieChartData","ReturnRoutes","RenderAccountLimitProgram","typeChartData","settlementSummaryList","isFetchingAccount","isFetchingLimit","isFetchingTransactionDetail","isFetchingSettlementSummary","isFetchingLineChart","isFetchingPieChart","selectedSettled","promisePool","lineChartOptions","hover","displayColors","bodyFontSize","bodyFontColor","yPadding","xPadding","cornerRadius","bodyFontStyle","scales","xAxes","scaleLabel","yAxes","labelString","ticks","beginAtZero","pieChartOptions","horizontalAlign","boxWidth","totalGradient","totalBackground","Gradientpending","pendingBackground","GradientnumberOfDebit","numberOfDebitBackground","GradientnumberOfCredit","numberOfCreditBackground","amountdebit","backamountdebit","amountcredit","backamountcredit","CheckBox","dashboardStyle","MaxLength10","cardIconStyle","cardIcon","externalPageRoutes","VirtualCardIframe","VisaDirectThirdPartyIframe","InteracInboundLogin","InteracInboundPage","InteracCardHolderPage","InteracRedirectPage","AtmLocator","KycPhotoUpload","KycAccountVerification","ApiModelTest","ApiRequestTest","CanadaPostTest","dt","UtcDate","UtcDateValue","UtcResponseDate","UtcResponseDateList","headingStyle","heading","rightTextAlign","leftTextAlign","centerTextAlign","category","tempList","FilterErrors","FilterSuccess","FilterWarning","FilterAll","GetColor","Namespace","TableName","ErrorDetail","FetchDataProxyGet","FetchDataProxyPost","VogConnectApiTestLogin","VogConnectApiTestOtp","FetchDataAxiosGet","axios","get","FetchDataAxiosPost","post","LanguageFetchDataProxyPost","LanguageFetchDataAxiosPost","ImageBase64","CardImageCodeTypeId","characters","charactersLength","generateString","handleCloseTab","close","IsSuccessed","classses","CardImageCodeType","routedModel","AtmComponent","locationBox","locationBoxSelected","infoBox","infoBoxDescription","distanceStyle","Distance","prev","next","itemDiff","rowIndexDiff","oldRowIndexDiff","AtmListComponent","MapMarkerPopupComponent","infoBoxTitleClassName","setLocation","coords","latitude","longitude","myLocation","loadGoogleApiKey","googleApiKey","getClientLocation","navigator","geolocation","getCurrentPosition","atmListComponent","getMapZoom","zoomLevel","parseFloat","atmContainerDiv","atmContainerMobileDiv","hasSearched","googleMap","searchedViewport","fitBounds","handleMarkerClickList","hasMobileOpen","externalContainerRef","handleOnPlacesChanged","places","mapSearchboxRef","getPlaces","firstPlace","bound","maps","LatLngBounds","union","geometry","viewport","vicinity","disableSearch","getPopupComponent","generateMarkerList","markerList","isFirstSearch","markerInfoWindowProps","infoBoxTitle","getAtmListComponentClasses","atmListComponentClasses","LeftSideComponent","handleDrawerChanged","defaultMapOptions","mapPlaceholderComponent","mapContainerComponent","genericMapSearchboxInputProps","onCloseClick","OpenDrawer","innerRef","searchBox","GenericMapSearchbox","onPlacesChanged","locationBoxWrapper","initialMsg","atmLocatorStyle","mixins","unit","FetchUrl","etid","rqetid","InteracUrlData","DefaultImageClick","urldata","uri","GetDefaultButtons","DC","DefaultName","HR","CH","ET","EP","OL","PTN","PET","DCP","DCPET","PrP","PbP","LT","DCLogo","HRLogo","CardHolderLogo","EtransferLogo","EPFinancialLogo","DcOldLogo","PTNLogo","PatenoEtransferLogo","DCPLogo","DCPEtransferLogo","PrepaidPortal","PersonalBanking","LibertyTax","gridItemCenterStyle","imageStyle2","imageStyle1","buttonStyleLibertyTax","IsVisible","RedirectUrl","RedirectUrlName","IdCardImage","IdCardBackImage","IdTemplate","0","1","2","accessKey","rotateCounter","hasTimeout","timeoutWarn","steps","linkRequestTypeId","AccessKeyExpireInterval","requestDateTime","RequestDateTime","minutesDiff","setStateAsync","GetLinkRequestTypeList","_result$find","kycLinkRequestTypeId","getKycManualByAccessKey","HasUserPhoto","fileModifiedStatus","HasIdentityPhoto","HasIdentityPhotoBack","closeLoading","rawBase64","onabort","RemoveBase64MimeTag","rotatedCount","isModifiedStatus","handlePrevious","AccessKey","ExecuteApiPostForImage","photoId","getActivePhotoId","UserPhoto","IdentityPhoto","IdentityPhotoBack","getPlaceholderImage","step","GenderValue","customActiveStep","userPhotoId","identityPhotoId","identityPhotoBackId","activePhotoId","handleMediaLoaded","UploadForManualKyc","UploadForIdIntroduction","KycManualId","LinkRequestTypeId","uploadResult","_routedModel$Code","facingMode","activeBase64","modifiedStep","mediaClassNames","mediaCard","mediaCardPlaceholder","isProfile","stepper","innerContainer","buttonContainer","kycPhotoUploadStyle","PerformSubmitAction","isFinished","isSandbox","IsSandbox","_result$Accounts","HandleCloseTab","HandleClickSave","iFrameStyle","hasAnyAccount","flinksUrl","FetchIncomingTransfers","isAuthenticated","FetchIncomingMoneyRequests","SenderMemo","CompleteRequest","initialized","GetDefaultCustomerModel","GetDefaultNewCardModel","ExpireDate","CVV","GetCustomerModel","searchList","GetCustomerCards","paymentInstruments","cards","cardsList","pan","Last4Digits","PaymentInstrumentId","HandleChangeNewCardModel","newCardModel","paymentInstrumentId","HandleNewCardClear","ValidateCustomer","ValidateNewCard","IsVisa","postMessage","TargetOrigin","SubmitCard","GenerateRsaKey","rsaKeyId","rsaKey","OnRsaKeyLoad","selectedCardId","GetColumnsRowStyle","columnsRowStyle","crypt","JSEncrypt","setPublicKey","encryptedVerificationCode","encrypt","encryptedPan","replaceAll","newCard","month","year","JavascriptgetURLParameterValues","parameterName","loginWithTrackingId","getBase64Logo","trackingId","appSett","VisaImage","InteracImage","MastercardImage","deleteCardInformation","cardDetail","cardCVV","cardbrand","cardVisible","buttonTimer","isBtnTimerRunning","timeoutId","isCvvBtnDisabled","isCardBtnDisabled","cardId","onlyImage","trackingID","sessionID","TrackingId","OnlyImage","styleInt","backgroundImage","backgroundRepeat","styleMasterCard","styleVisa","GetCVV","cvvVisible","cardid","EncCvv","GetCardShow","resizeTo","clearTimeout","CardNickName","CardImageBase64","CardFontColor","CardHolderName","FileCopyOutlinedIcon","_window$ReactNativeWe","cardNumberFormated","ReactNativeWebView","clipboard","writeText","_window$ReactNativeWe2","fullPage","pagesRoutes","pagesStyle","checkboxAndRadio","checkboxAndRadioHorizontal","disabledCheckboxAndRadio","labelHorizontal","labelHorizontalRadioCheckbox","labelLeftHorizontal","labelError","inlineChecks","iconCheckbox","iconCheckboxChecked","iconCheckboxIcon","switchBase","switchIcon","switchIconChecked","switchBar","switchChecked","imagine","LoginPageBackground","OTPPage","LoginPage","ResetPassword","HandleVerify","handleChangeAuthMethod","HandleLogout","IsRestrictedAccess","linkStyle","lastGridItemStyle","performLogin","RecaptchaExpiredCallBack","_data$IsValid","CaptchaCode","grecaptcha","getResponse","expiredCallback","codeBorderStyle","mainGridItemStyle","imageHeightStyle","gridItemButtonStyle","HandleChangeCheckBox","AuthenticatorVerifyCallback","ErrorAuthenticatorVerifyCallback","TwilioVerifyCallback","ErrorTwilioVerifyCallback","GetQRCodeCallback","ErrorGetQRCodeCallback","SendSMSOTPCallback","ErrorSendSMSOTPCallback","modalRoot","modal","modalHeader","modalTitle","modalCloseButton","WebkitAppearance","modalClose","modalBody","modalFooter","modalFooterCenter","instructionNoticeModal","imageNoticeModal","modalSmall","modalSmallBody","modalSmallFooterFirstButton","modalSmallFooterSecondButton","CreateWireBeneficiaryTemplateStyle","cardDetailStyle","zeroMarPad","inputfontsize","createEFTFromFileStyle","createEFTRecurringStyle","createEtransferFromFileStyle","createEtransferRecurringStyle","extendedFormsStyle","kycManualDigitalVerificationStatusPanelStyle","mainWrapper","mediaCardScoreOnly","mediaPreview","prepaidInventoryTransferBetweenStoresStyle","productRestrictionProfileStyle","userDefinitionStyle","workflowManagementStyle","marginTop5Style","titleStyle","disab","chartDataTotalGradientList","chartDataTotalBackground","chartDataProgram1GradientList","chartDataProgram1Background","chartDataProgram2GradientList","chartDataProgram2Background","chartDataProgram3GradientList","chartDataProgram3Background","chartDataOtherGradientList","chartDataOtherBackground","sortOrderIndex","sortStoreName","RoleObj","Position","ResidentCountry","CellNoFor2FACountryId","CellNoFor2FAPhoneNumber","UserTypeId","ExpDateOfUser","SendTempPasswordByEmail","SendTempPasswordByText","IsUserNameValid","IdFormat","IdLength","GetRoleParameter","IdTypeId","IdTypeCode","ResidentCountryId","CellFor2FA","UserExpDate","dir","UserRoleId","SendTempPassword","RoleGroupCode","isClientUser","RoleLevelCode","handleImageOnClick","base64Front","base64Back","base64Profile","profileImage","previewImages","handleImageOnLoaded","frontLoaded","backLoaded","handleImageOnFetch","handleDialogClose","ImagePreviewComponent","GetCardFront","mediaCardFrontStyle","GetCardBack","mediaCardBackStyle","KycManualCreditValidation","sortedType","HandleInguiryAction","Bankruptcies","BankingClosedForCause","CollectionInquiries","TradeLastOpened","IdMismatchAlertId","Factors","LegalItems","RegisteredItems","InquiriesWithinSixMonths","CurrentNegativeTrade","HighRiskFraudAlertId","Collections","Inquiries","TradeFirstOpened","PaidTrade","CreditVisionRiskScore","mt","panelDigitalVerificationActive","panelManualKycApplicationDocumentActive","panelAccountVerificationActive","manualKycDocumentList","KycApiUrl","GetVerificationDefinitionFromMenuAuthority","GetMenuAuthorityRightList","MapMenuAuthorityDefinitionToVerificationDefinition","HasMenuAuthorityRight","menuAuthorityList","menuAuthorityCode","_menuAuthorityList$fi","GetDigitalIdFeeProfileFromContact","isFeeProfileDefinedForDigitalId","_item$Program","hasFeeProfile","GetIdentityDocumentList","identityDocumentList","GetVerificationDefinition","definition","GetMultiCheckSelectedValue","discardIdentityVerificationTypeIdList","IdentityVerificationTypeIdList","GetIdVerificationTypeListForMultipleSelect","_this$state$IdVerific","_this$state$IdVerific2","_this$state$IdVerific3","_this$state$IdVerific4","_this$state$IdVerific5","IdVerificationTypeListForMultipleSelect","inPersonIDVerificationId","digitalVerificationTypeId","documentsVerificationTypeId","accountVerificationTypeId","verificationSelects","isSelectedCanadaPostVerification","isSelectedDigitalVerificationTypeId","isSelectedInPersonIDVerificationId","isSelectedDocumentsVerificationId","isSelectedAccountVerificationId","selectedIdentityTypeParameter","GetFilteredIdTypeListByLocation","_model$IdentitySource","isNotSupportedDigitalVerification","verificationDefinition","clientUser","idVerificationTypeResponse","SelectedIdentityVerificationType","_this$state$IdVerific6","_model$IdentitySource2","_model$IdentitySource3","IsRequiredProofOfResidence","ProofOfResidence","IdentitySourceTypeId","multipleSelectDataResponse","canadaPostProofAndDigitalIdMsg","canadaPostProofAndDigitalIdMsgContainer","DigitalIdentityVerificationStatus","affectedValidations","canadaPostVerificationTypeId","multiSelectExcludeList","IsNotSupportedDigitalVerification","_this$GetVerification","DigitalIdentityVerificationEnable","GetVerificationTypeParameterByParamValue","isModifiedInformationCard","IsChangedIdPanelInformations","IdentityCountryId","IdentityProvinceId","_model$IdentitySource4","_model$IdentitySource5","_model$SelectedIdenti","ManualKycApplicationDocumentEnable","AccountVerificationEnable","panelclose","UpdateSelectedVerificationMethodList","GetVerificationTypeParameterById","_this$state","_this$state$IdVerific7","_this$state2","_this$state2$IdVerifi","_customIdentityType$I","_model$IdentitySource7","customIdentityType","_model$IdentitySource6","IdentityTypeIndex","Isupdate","_this$GetVerification2","_this$GetVerification3","_this$GetVerification4","_this$GetVerification5","_this$GetVerification6","rendererNumber","GetManualKycDocumentModels","expandDigitalVerification","disablePanelClose","_verificationDefiniti","_verificationDefiniti2","_verificationDefiniti3","_verificationDefiniti4","_verificationDefiniti5","GetPropertyComponent","propertyBadge","GetPropertyContainer","properties","propertyContainer","ShowFeeValidationMessage","stepIndex","saveModelAfterCheck","disableAlert","customModel","feeWarning","_this$GetVerification7","internalProps","CheckAndGetModifiedPropsInternalBlacklist","watchListProps","CheckAndGetModifiedPropsWatchList","transUnionProps","CheckAndGetModifiedPropsTransUnion","OperationStep1","isModified","_this$state$IdVerific8","inPersonIdVerificationTypeId","OperationStep2","OperationStep3","OperationStep4","CanadaPostVerificationStatus","panelActivationStatustemp","GetHandleCanadaPostCodeFunc","VerifyDigitalIdentity","CompleteDigitalIdentityVerified","RenderMultiSelect","DigitalVerificationResetWrapper","hasWarnedOnce","LastDigitalVerificationLinkId","DigitalIdentityVerificationRequestStatus","SendDigitalIdentityRequest","IdVerificationEmailStatus","CreditHistoryVerificationStatus","skipWarning","GetIdTypeList","mappedList","idTypeList","RenderIdentityTypeSelect","availableIdentityDocumentList","GetFilteredIdTypeListForSelect","_identityDocumentList","canadaCountryId","CountryValue","GetIdentitySourceTypeList","identitySourceTypeList","inPersonVerifyOnClick","multiSelectResponse","oldSelected","newSelected","stateModel","GetStickyVerificationPanel","_IdVerificationTypeLi","internalBlacklistStatus","watchListStatus","transUnionStatus","creditHistoryVerificationStatus","digitalIdVerificationStatus","accountVerificationStatus","AccountVerificationStatus","documentsVerifyStatus","every","_a$VerificationStatus","canadaPostVerifyStatus","InPersonIDVerificationTypeId","hasSelectedInPersonVerificationType","inPersonIdVerifyStatus","verificationPanelPopupStyle","verificationPanelStyle","verificationContainer","reRenderStickyPanel","GetFinishAction","statusType","rejectParameter","ReasonTypeId","reasonDialogType","isReasonDialogOpen","HandleClickStatusSubmit","OperationCheckReason","_model$ReasonTypeId","statusParameterValue","ReasonComment","ReasonDialogAction","model1","CreditValidationStatus","inquiryValidationStatus","openOrClose","GetReasonTypePopupComponent","reasonType","filteredReasonTypeList","overflowVisibleStyle","AccountVerificationResetWrapper","LastAccountVerificationLinkId","AccountVerificationRequestStatus","CustomerLinkedAccount","SendAccountVerificationLinkRequest","GetAccountVerificationComponent","disabledProp","originalModel","CanadapostCntrl","tempdata","_this$GetReasonTypePa2","statusGridContainerStyle","_this$props$ManualKyc","tasks","updateResultOnly","modelId","_this$GetReasonTypePa3","canadaPostHasFinished","isExpiredCanadaPostVerification","ManualKycApplicationDocument","ManualKycDocumentList","GetDocumentFunc","HandleDownloadButton","_result","ManualKycId","now","client","verifiedPersonIdParameter","GetRenderItemClientUserSelect","_this$client","PrintOut","alingn","el","componentRef","ParameterProgramIdFunction","ParameterProgramId","contractModel","ParameterIdFunction","ParameterId","ParameterFeeProfileFunction","ParameterFee","ProgramTypeStr","IsETransferActive","ContractFile","ContractFileId","responseData2","HandleGetWireSenderInfo","addWireSenderDialogClose","IsWireSenderPopupOpen","RenderWirePopup","wireSenderModel","HasWireSender","isWireSenderPopupOpen","ParameterSalesPerson","ParameterSalesChannel","ParameterSalesChannelDirect","ParameterNotificationPeriod","ParameterRenewalType","ParameterContractStatus","ParameterIntendUseOfAccount","ParameterFeeAccountMinBalance","ParameterMaxLength50","WireSenderInformation","SenderModel","selectMenuItemSelectedMultiple","selectPaper","FillAddressFields","FillSenderAddressFields","senderModel","storeModel","AddressTypeId","InteracErrorList","operationResult","handleChangeStore","CorporateDetails","Directors","CorporateAuthOwner","CorporateAuthPerson","RegulatoryLicenses","vModel2","corporateAuthOwnerModel","OwnerShipPercentage","AuthOwnerTypeId","AuthOwnerTypeStr","IsIdVerification1","IdentificationMethodId1","IdentityVerifyingPersonId1","IdentityTypeId1","InsertCanadaPost","TreeDisplay","record","currentNodePrimaryId","PrimaryID","repeat","NameOfBusiness","IdentificationMethod1","IsIdVerification2","IdentityVerifyingPersonId2","IdentificationMethod2","IdentityTypeIdStr1","IdentityNumber1","IdentityTypeIdStr2","IdentityNumber2","insertModel","IdentityType1","IdentityType2","AuthOwnerType","ParameterMaxLength20","ParameterMaxLength200","ParameterIdentityVerifyingPerson","_this$state$corporate","DisabledForCorporate","PrimaryId","CUID","BusinessType","DateOfBith","DetailedOccupation","BusinessRegistrationDate","IdentityPlaceOfIssue1","IdentityProvinceOfIssue1","IdentityExpireDate1","IdentificationMethodId2","IdentityTypeId2","IdentityPlaceOfIssue2","IdentityProvinceOfIssue2","IdentityExpireDate2","corporateAuthPersonModel","VerifyingPersonId","handleChangePhone","CustomerCAPersonAddress","ParameterMaxLength15","IdentityProvinceOfIssue","CustomHandleChange","IsPhoneNumber","LastEffectivenessDate","LastFintracDate","ClientStatusId","ResidencyForTaxCountryId","ResidencyForTaxStateId","EntityTypeId","NAICId","PublicityTradeEntity","WebSite","PciCertification","HandleIsCertificateExpired","PciIssuanceDate","EntityType","CountryOfIncorporation","ProvinceOfIncorporation","IncorporationNumber","IncorporationIdentifierType","CountryOfRegistration","ProvinceOfRegistration","UnincorporationIdentifierType","UpdateCorporate","FilterEntityType","PspClientFlag","ParameterClientStatus","ParameterMaxLength60","ParameterMaxLength10","ParameterMaxLength9","ParameterProvince","ParameterLicenseRegistrationType","ParameterLicenseRegistrationEntity","ParameterEntityType","ParameterBusinessNature","ParameterIndustryOfEntity","ParameterFATCA","snapshot","_this$props$paramBank","_this$props$paramBank2","compareDate","oneYearAgo","isBefore","DoingBusiness","LicenseRegistrationTypeId","LicenseRegistrationEntityId","LicenseRegistrationNumber","LicenseRegistrationTypeId2","LicenseRegistrationEntityId2","LicenseRegistrationNumber2","LicenseRegistrationTypeId3","LicenseRegistrationEntityId3","LicenseRegistrationNumber3","ClosureDate","IsAccountUsedByTp","AccountRiskRating","FatcaId","SearchRefID","AOBCustomer","TypeOfEntity","regulatoryLicense","LicenseStatusId","LicenseStatus","ExpirationDate","LicenseRegistrationType","LicenseNumber","ParameterLicenseStatus","_this$state$keyContac","IsMobilePhoneNumber","IsAlternativePhoneNumber","PoliticalExposed","ProofOfResidenceId1","ProofOfResidenceId2","ParameterMaxLength25","ParameterMaxLength1","IdentityFormat","formHorizontal","calendar","cardBodyClasses","memoModel","updateModel","kycModel","SetListCallback","successSubmitCallback","errorSubmitCallback","cv","IsYes","CustomerRiskRatings","QuestionTypeId","LightRatingId","LightRating","QuestionTypeName","QuestionDescription","paramBankCustomerInternalAccountList1","securityModel","isFixed","isLetter","isPrepaid","SecurityTypeParamValue","handleAddOrUpdate","IsValidate","SaveOrUpdateInit","isSave","handleAddOrUpdateOK","scrtyDescRecord","SecurityTransactions","securityAccounts","DcBank","External","RenderAccountTypeSelect","FilterTrustAccount","internalModel","BankingAccountTypeStr","FeeAccountMinBalance","GetRender","renderItemBranch","BranchName","ParameterBankingAccountFunding","ParameterBankingAccount","ParameterBankingAccountOnly","ParameterAccountStatus","ParameterMaxLength80","_internalModel$Bankin","clientPrograms","ParameterFinancialInstitutionBranchFnc","ParameterFinancialInstitutionBranch","externalModel","ParameterFinancialInstitutionId","CommissionFeeProfileAddOrUpdate","handleAddToGrid","selectProfileCallback","CommissionFeeProfileDataTable","CommissionProfileComponent","profileName","getCommissionProfileCallback","selectCommissionProfileCallback","cancelSelectCommissionProfileCallback","commissionProfile","CommissionFeeProfileDetailDataTable","RateType","CommissionMonth","CommissionRate","ComissionRate","CommissionFeeAmount","CommissionProfileDetail","isPhotoDialogOpen","Dba","DcbRepresentInAttandance","AccountRepresentInAttandance","IsHeadOfficeInspectedCompleted","IsPoPBusinessOpInspectedCompleted","IsAgentLocationInspectedCompleted","IsBankingPartnerInspectedCompleted","IsOtherInspectedCompleted","SiteVisitNote","OtherDescription","VisitCompletionName","VisitCompletionTitle","IdentityFormat1","IdentityLength1","AddBenificialOwnerInfo","AddBenificialOwnerInfoOK","DeleteBenificialOwnerInfo","DeleteBenificialOwnerInfoOK","ClearBenificialOwnerInfo","parameterIdentityVerifyingPerson","handleCustomerKeyContactResponse","KeyContactDataTable","Surname","AccountCreateDate","CommissionProfileSearchComonent","getProfileSearchCallback","getProfileSearchCallbackByKeyPressed","cancelSelectProfileSearchCallback","SearchType","FetchProfile","AppiledActionList","AppiledCustomerList","EvaulateCampaignDateInterval","IsRealTimeData","ColumnsDataAppliedActions","ParameterEvaulateCampaignDateInterval","MethodType","CouponData","QuantityType","SignatureType","ShipAttentionTo","ChequeType","fileInput","CustomContainer","decorators","Container","Toggle","toggle","TreeComponent","defaultTheme","tree","Treebeard","cdicModel","successIndividualCallBack","successCorporateCallBack","CdicId","CdicIndividualInfo","CdicCorporateInfo","CustomerType","CustomerBusinessTypeDesc","IssuedDate","AccountStatusDesc","AccountOwner","NameofAccountOwner","CDICPersonalAccount","CDICCorporateAccount","handleChangeBenificialOwnerInfoModel","benificialOwnerInfoModel","handleChangeauthorizedSigningOfficerInfoModel","authorizedSigningOfficerInfoModel","successGetOwnerCallback","benificialOwnerInfoList","owner","OwnerPercentage","PlaceOfIssueId","CustomerCdicCorpDetailId","successOwnerCallback","GetOwner","successDeleteOwnerCallback","GetOfficer","officerTableLoading","successGetOfficerCallback","authorizedSigningOfficerInfoList","officer","AddAuthorizedSigningOfficerInfo","AddAuthorizedSigningOfficerInfoOK","ClearAuthorizedSigningOfficerInfo","successOfficerCallback","DeleteAuthorizedSigningOfficerInfo","DeleteAuthorizedSigningOfficerInfoOK","successDeleteOfficerCallback","ownerTableLoading","LegalNameOfCompany","EstablishedDate","MartialStatus","CountryOfCitizenShip","CountryOfBirth","CountryOfResident","sortParamValue2","netCount","GetPaymentCount","startDate","getTimezoneOffset","d1Start","d2Start","getTime","mMonthlyNumber","ShowNewCustomer","DataModel","_data$ParameterValue3","_data$ParameterValue5","_data$ParameterValue6","_data$ParameterValue7","_data$ParameterValue","_data$ParameterValue2","_data$ParameterValue4","_data$Name","_data$PayeeEmail","_data$Memo","_data$ParameterValue8","womCalc","day","lastDate","firstDate","resultDate","mDayOfMonthNumber","mStartDom","mEndDom","mfirstWeekPayDate","woMonthDiff","weekNum","woStartDom","woEndDom","periodParamValue2","cardLast4Digit","cardEmbossName","unFundedGradientList","unFundedBackground","fundedOneMonthGradientList","fundedOneMonthBackground","fundedTwoMonthsGradientList","fundedTwoMonthsBackground","PieChart","getCircleItemList","circleList","backGround","totalLoansGradientList","totalLoansBackground","outStandingGradientList","outStandingBackground","pastDueGradientList","pastDueBackground","writeOffsGradientList","writeOffsBackground","interestGradientList","interestBackground","feesGradientList","feesBackground","ParameterAddressVerifiedStatusType","ParameterAddressVerifiedMethodType","contractDetailModel","partnerFeeTypeParam","PartnerFeeType","PartnerFeeMarginLoan","InterestLoan","PartnerFeeMarginLoc","InterestLoc","PartnerFeeMarginSecureCard","InterestSecureCard","EnableOrDisable","loanTypeParam","LoanTypeDisabled","LOSPaymentCalculationTypeParameterCode","parameterData","disabledModel","OngoingFeeMargin","SetupFeeMargin","InterestFeeMargin","SalesChannelId","PaymentCalculationTypeId","parameterEntityType","parameterBusinessNature","parameterFatca","parameterResidency","parameterLicenseRegistrationEntity","parameterLicenseRegistrationType","AccountStatusParameterCode","FatcaParameterCode","BusinessIdentityNr","QuabecEnterpNr","ResidencyForTaxId","CountryIncorporationId","LicenceRegistrationEntityId","Query","BusinessFaxCountryCodeId","BusinessFaxNumber","HasTextSmsNotificationId","TypeOfEntityId","NatureOfBusiness","IndustryOfEntityId","HasAccountUsedByTpId","IsPublicityTradeEntityId","DateOfLastEffectivenessRev","DateOfLastFintracRev","_model$IdentityExpire","_model$IdentityVerifi","_model$SecondaryIdent","_model$SecondaryIdent2","_model$CreditFileComp","_model$PrimaryDocumen","_model$SecondaryDocum","tabButtons","TabList","Tab","TabPanel","Tabs","selectedIndex","onSelect","LOSReviewPeriodParameterCode","LOSReviewTypeParameterCode","LOSReviewAlertTimeParameterCode","ParameterPaymentRate","OtherCreditScore","CreditscoreProposedDate1","CreditscoreProposedDate3","NetworthAsset1","NetworthAsset2","NetworthAsset3","NetworthLiability1","NetworthLiability2","NetworthLiability3","NetworthEstimatedValue1","NetworthEstimatedValue2","NetworthEstimatedValue3","NetworthOwnershipDate1","NetworthOwnershipDate2","NetworthOwnershipDate3","LOSSecurityInfoTypeParameterCode","LengthDocNumber","LengthYear","SecurityInfoTypeId","SecurityInformationOtherDesc","SecurityNo","ReminedAmountFromLoan","SecurityValue","SerialDocumentNumber","ProductionYear","IconTypeValue","ValidateAndCheckBeforeSubmitAndUpdate","LoanLedgerCardIconDetailId","IconTypeId","ColorOfLine1","requestOfCheck","IsStatementLogo","IsIconTypeId","onHoldGradientList","onHoldBackground","approvedGradientList","approvedBackground","declinedGradientList","declinedBackground","VerificationStyle","VerificationTrue","VerificationFalse","VerificationDocument","VerificationEmpty","OfficeNumber","HomeNumber","parameterPaymentFrequency","parameterPaymentMethod","VerificationComponent","verification","ScoreComponent","CheckerNote","paramApprovalSubStatus","ApprovalSubStatusComment","_ApplicationModel$App","_ApplicationModel$App2","IsDisabledForCustomer","changedDate","asMinutes","openCustomDialogForCloseBalance","modalModel","IsBalanceClosed","CancelProductModel","NewCardRequestId","NewCardRequest","NewCardCreationTimeId","renderItem","OpenETransferPage","UniqueClientIdForOffice","IsCardCanceled","CancelCard","CloseBalance","SwapCard","_this$props$Applicati","DisableCard","IsCardDisabled","EnableCard","IsAccountClosed","dModel","isCardDisabled","CardAccountClosedDate","CardBalanceClosedDate","SelectMd","InternalScoreCardVerification","MandatoryStatusId","DocumentTypeParameterCode","DocumentMandatoryStatusParameterCode","UsageType","usageType","clearingData","ClearingId","NetworkValue","IsSucceded","cardData","HandleClickReject","HandleClickSubmit","ClientDocumentStatusId","ClientDisputeReasonCodeId","maxLength150","IsOnus","FileExtensionDesc","ResolveExplanation","isEditDisputeFee","FeeId","FeeDate","DirectionValue","FeeReturnId","FeeReturnDate","FeeResubmissionId","FeeResubmissionDate","FeeArbitrationId","FeeArbitrationDate","Tcr0","FloorLimitIndicator","ChargebackReferenceNumber","CrbExceptionFileIndicator","PossitiveChAuthServiceInd","SpecialConditionIndicators","ArnFormatCode","ArnBin","ArnDate","ArnFilmLocator","CentralProcessingDate","ReimbursementAttribute","ArnCheckDigit","AcquirerBusinessId","PurchaseDate","DestinationAmount","DestinationCurrencyCode","SourceAmount","SourceCurrencyCode","MerchantCity","CardholderIdMethod","CollectionOnlyFlag","PosEntryMode","MerchantCountryCode","MerchantCategoryCode","MerchantZipCode","MerchantState","RequestedPaymentService","UsageCode","SettlementFlag","AuthCharacteristicsInd","AuthorizationCode","PosTerminalCapability","InternationalFeeIndicator","Tcr1","IssuerWorkstationBin","AcquirerWorkstationBin","DocumentIndicator","MemberMessageText","FeeProgramIndicator","IssuerCharge","CardAcceptorId","TerminalId","NationalReimbursementFee","MailPhoneEcommPayInd","SpecialChargebackIndicator","InterfaceTraceNumber","AccountSelection","Cashback","ChipConditionCode","PosEnvironment","UnattendedAcceptTermInd","PrepaidCardIndicator","ServiceDevelopmentField","AvsResponseCode","AuthorizationSourceCode","PurchaseIdentifierFormat","InstallmentPaymentCount","PurchaseIdentifier","Tcr4","BusinessFormatCode","DebitProductCode","ContactForInformation","AdjustmentProcessingIndicator","MessageReasonCode","SurchargeAmount","SurchargeCreditDebitIndicator","SurchargeAmountInChBillingCurrency","Tcr5","TransactionIdentifier","AuthorizedAmount","AuthorizationCurrencyCode","AuthorizationResponseCode","ValidationCode","ExcludedTransactionIdentifierReason","CRSProcessingCode","ChargebackRightsIndicator","MultipleClearingSequenceCount","MultipleClearingSequenceNumber","MarketSpecificAuthDataIndicator","TotalAuthorizedAmount","InformationIndicator","MerchantTelephoneNumber","AdditionalDataIndicator","MerchantVolumeIndicator","ElectronicCommerceGoodsIndicator","MerchantVerificationValue","InterchangeFeeAmount","InterchangeFeeSign","SourceToBaseExchangeRate","BaseToDestinationExchangeRate","OptionalIssuerISAAmount","ProductID","ProgramID","CVV2ResultCode","Tcr7","CardSequenceNumber","TerminalTransactionDate","TerminalCapabilityProfile","TerminalCountryCode","TerminalSerialNumber","UnpredictableNumber","AppTransactionCounter","AppInterchangeProfile","Cryptogram","IssuerApplicationData2","IssuerApplicationData3","TerminalVerificationResults","IssuerApplicationData4","CryptogramAmount","IssuerApplicationData8","IssuerApplicationData9","IssuerApplicationData1","IssuerApplicationData17","IssuerApplicationData18","FormFactorIndicator","IssuerScript1Results","FileData","FileDetailsData","RenderItemOnusBin","renderItemOnusBin","RenderItemCardStatus","renderItemCardStatus","OldCardStatus","IsDialogOpen2","IsDialogOpen3","handleShowDialog2","handleSubmitDialog2","handleShowDialog3","handleSubmitDialog3","SelectedCard2","OldCardStatus2","SelectedCard3","OldCardStatus3","parameterCardPhysicalType","parameterCardStatus","CVVRetryIcon","PinRetryIcon","WalletAvailableBalance","TotalCurrentTermCardTransaction","TotalPendingCardTrasaction","isEmailDisable","isPrintDisable","GetQrCode","MailSend","parameterEmbossStatus","EmbossName2","IsEmbossFinished","IsEmbossSucceded","IsLastCard","MainCardTokenNumber","ClientCustomerIdAssignDate","HasAutoLoadInstruct","CardBinId","IsEmvCard","IsContactlessCard","IsMagneticCard","PanSequenceNumber","CardStatChangeDate","OldCardStatusId","OldCardStatChangeDate","ConversionDateTime","IsConversionCard","CashLimit","FirstCardEmbossDate","FirstCardUsedDateTime","FirstUsageDateTime","FirstApprovedDateTime","LastTransactionDateTime","LastTransactionMerchant","LastTransactionAmount","ReportTypeId","AutoLoadTypeId","HasAutoLoad","parameterAutoLoadType","parameterClientCustomerPayee","GridCellClicked","vd","oc","styleMarginBottom15","styleMarginTop5","styleMarginTop_10","OpenOrClose","ViewOrDenied","MenuRightList","SelectedRoleLevelId","SelectedRoleId","GetReactTableStyle","GetRowGroupProps","GetCellProps","pRight0","Fontsize","Textcolor","pLeft0","showPagination","getTableProps","getTrGroupProps","imageBase64Signature","getExifOrientation","webkitSlice","DataView","getUint16","byteLength","offset","marker","getUint32","little","tags","readAsArrayBuffer","imgToCanvasWithOrientation","rawWidth","rawHeight","orientation","canvas","drawImage","HTMLCanvasElement","toBlob","defineProperty","quality","binStr","toDataURL","len","webkitURL","srcBase64","degrees","translate","rotate","PI","dataUrl","base64Data","acceptFileSize","Infinity","w","h","scale","maxcardnumberLength11","maxLength60","maxlenght4","cityList","countryList","provinceList","wiretrsmodel","FundingAccount","RequestFrom","BeneFiciaryName","hasAction","RoleGroupParamObj","GetRoleGroupObj","DefaultUserControl","_id","CanAddUser","blog","raised","cardClasses","fakeMap","webpackAsyncContext","webpackAsyncContextResolve","__webpack_require__","customButtonClass","socialLine","cardIconClasses","dateTime","guess","EftOrETransferAddNewCustomerComponent","fetchCanadaPost","addressHandle","GetPayeeList","PageSelect","payeeList","ClientTypeName","isCorparate","handleChangeState","checkOld","isEFT","columnTitle2","customerPayeeCallback","successSearchCallback","tempuniq","BankingAccountTypeCode","Zipcode","RegistrationStatus","FinancialInstitutionName","PayeeNumber","dataurl","filename","mime","bstr","u8arr","base64data","CreateEFTFromFile","GetFinancialInstitutionBranchParameter","parameterFinancialInstitutionBranch","RenderItemFinancialInstitution","DigitEdit","digitNumber","RenderItemFinancialInstitutionBranch","sortedTransitNumber","Md","NumberMd","BranchMd","labelStyle","fiidStyle","webpackContext","webpackContextResolve","justifyItems","defaultHeaderMargins","TabsComponentPagination"],"mappings":";kJAAA,s0E,gCCAA,wFAOA,SAASA,EAAaC,GAAgB,OAAVC,GAAOD,EAClC,MAAM,QACLE,EAAO,MACPC,EAAK,MACLC,EAAK,SACLC,EAAQ,UACRC,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sCAAuC,KACvC,0CAA2C,KAC3C,0CAA2C,KAC3C,8CAA+C,KAC/C,+CAAgD,KAChD,mDAAoD,MAEjDo7Y,EAAU,CACb,EAAK,EACL,EAAK,EACL,EAAK,EACL,EAAK,EACL,EAAK,EACL,EAAK,EACL,EAAK,EACL,EAAK,EACL,EAAK,EACL,GAAM,EACN,GAAM,EACN,GAAM,EACN,GAAM,EACN,GAAM,EACN,GAAM,EACN,GAAM,EACN,GAAM,EACN,GAAM,EACN,GAAM,EACN,GAAM,EACN,GAAM,EACN,GAAM,EACN,GAAM,EACN,GAAM,EACN,GAAM,EACN,GAAM,EACN,GAAM,EACN,GAAM,EACN,GAAM,EACN,GAAM,EACN,GAAM,EACN,GAAM,EACN,GAAM,EACN,GAAM,EACN,GAAM,EACN,GAAM,EACN,GAAM,EACN,GAAM,EACN,GAAM,EACN,GAAM,EACN,GAAM,EACN,GAAM,EACN,GAAM,EACN,GAAM,EACN,GAAM,EACN,GAAM,EACN,GAAM,EACN,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO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AM1rN,IAEzC7X,IAAAC,cAAC88Y,IAAQ,CAACllY,IAAKA,GACb0rN,EAAK1wK,cAMX,OACC7yD,IAAAC,cAAC+8Y,IAAI,CACJC,cAAevqV,EACfwqV,SAAUz8S,GAAY5jD,EAAa,KAAM4jD,IAExCm8S,EACA/pV,IAWUvyD,cAAWsyS,UAAXtyS,CAA8Bm3Z,I,gCCtD7C,mCAGA,MAAMp0S,UAAoBnzE,gBACzB5+B,SACC,MAAM,UAAE5R,EAAS,SAAER,KAAaU,GAAS2R,KAAKzS,MAC9C,IAAIkT,EAAO9S,EAASuvD,WACpB,OAAIz8C,GAAQA,EAAK+9H,WAAW,OACpB/vI,IAAAC,cAAA,OAAKP,UAAWA,GAAYM,IAAAC,cAAA,IAAAE,OAAAC,OAAA,GAAOR,EAAI,CAAEF,UAAW,MAAQsS,MAE7DhS,IAAAC,cAACkc,IAAS5K,KAAKzS,QAITukH,c","file":"static/js/main.f696582a.chunk.js","sourcesContent":["import GenericAlert from \"views/Components/Generic/GenericAlert.jsx\";\r\nimport GenericCheckInput from \"views/Components/Generic/GenericCheckInput.jsx\";\r\nimport GenericCircularProgress from \"views/Components/Generic/GenericCircularProgress.jsx\";\r\nimport GenericColorInput from \"views/Components/Generic/GenericColorInput.jsx\";\r\nimport GenericDateFilterInput from \"views/Components/Generic/GenericDateFilterInput.jsx\";\r\nimport GenericDateInput from \"views/Components/Generic/GenericDateInput.jsx\";\r\nimport GenericDialog from \"views/Components/Generic/GenericDialog.jsx\";\r\nimport GenericDialogActions from \"views/Components/Generic/GenericDialogActions\";\r\nimport GenericEmailInput from \"views/Components/Generic/GenericEmailInput.jsx\";\r\nimport GenericExpansionPanel from \"views/Components/Generic/GenericExpansionPanel.jsx\";\r\nimport GenericExpansionPanelCustomHeader from \"views/Components/Generic/GenericExpansionPanelCustomHeader.jsx\";\r\nimport GenericFilterSelectInput from \"views/Components/Generic/GenericFilterSelectInput.jsx\";\r\nimport GenericGrid from \"views/Components/Generic/GenericGrid.jsx\";\r\nimport GenericIcon from \"views/Components/Generic/GenericIcon.jsx\";\r\nimport GenericInput from \"views/Components/Generic/GenericInput.jsx\";\r\nimport GenericLabel from \"views/Components/Generic/GenericLabel.jsx\";\r\nimport GenericLinearProgress from \"views/Components/Generic/GenericLinearProgress.jsx\";\r\nimport GenericMultipleSelectInput from \"views/Components/Generic/GenericMultipleSelectInput.jsx\";\r\nimport GenericNumberInput from \"views/Components/Generic/GenericNumberInput.jsx\";\r\nimport GenericPage from \"views/Components/Generic/GenericPage.jsx\";\r\nimport GenericRadioInput from \"views/Components/Generic/GenericRadioInput.jsx\";\r\nimport GenericSelectInput from \"views/Components/Generic/GenericSelectInput.jsx\";\r\nimport GenericTextAutoInput from \"views/Components/Generic/GenericTextAutoInput.jsx\";\r\nimport GenericTextInput from \"views/Components/Generic/GenericTextInput.jsx\";\r\nimport GenericTitle from \"views/Components/Generic/GenericTitle.jsx\";\r\nimport GenericMapContainer from \"views/Components/Generic/GenericMapContainer.jsx\";\r\nimport GenericMapMarker from \"views/Components/Generic/GenericMapMarker.jsx\";\r\nimport GenericMapSearchbox from \"views/Components/Generic/GenericMapSearchbox.jsx\";\r\nimport GenericCardMedia from \"views/Components/Generic/GenericCardMedia.jsx\";\r\nimport GenericCamera from \"views/Components/Generic/GenericCamera.jsx\";\r\nimport GenericFlipContainer from \"views/Components/Generic/GenericFlipContainer.jsx\";\r\nimport GenericStepper from \"views/Components/Generic/GenericStepper.jsx\";\r\nimport GenericVerificationComponent from \"views/Components/Generic/GenericVerificationComponent.jsx\";\r\n\r\n\r\nexport {\r\n\tGenericStepper,\r\n\tGenericMapSearchbox,\r\n\tGenericMapMarker,\r\n\tGenericTitle,\r\n\tGenericTextAutoInput,\r\n\tGenericColorInput,\r\n\tGenericAlert,\r\n\tGenericCheckInput,\r\n\tGenericDateInput,\r\n\tGenericDateFilterInput,\r\n\tGenericDialog,\r\n\tGenericDialogActions,\r\n\tGenericEmailInput,\r\n\tGenericGrid,\r\n\tGenericNumberInput,\r\n\tGenericRadioInput,\r\n\tGenericSelectInput,\r\n\tGenericTextInput,\r\n\tGenericFilterSelectInput,\r\n\tGenericLabel,\r\n\tGenericLinearProgress,\r\n\tGenericCircularProgress,\r\n\tGenericInput,\r\n\tGenericIcon,\r\n\tGenericExpansionPanel,\r\n\tGenericExpansionPanelCustomHeader,\r\n\tGenericMultipleSelectInput,\r\n\tGenericPage,\r\n\tGenericMapContainer,\r\n\tGenericFlipContainer,\r\n\tGenericCardMedia,\r\n\tGenericCamera,\r\n\tGenericVerificationComponent\r\n};\r\n","import Button from \"@material-ui/core/Button\";\r\nimport withStyles from \"@material-ui/core/styles/withStyles\";\r\nimport buttonStyle from \"assets/jss/material-dashboard-pro-react/components/buttonStyle.jsx\";\r\nimport classNames from \"classnames\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\n\r\nfunction RegularButton({ ...props }) {\r\n\tconst {\r\n\t\tclasses,\r\n\t\tcolor,\r\n\t\tround,\r\n\t\tchildren,\r\n\t\tfullWidth,\r\n\t\tdisabled,\r\n\t\tsimple,\r\n\t\tsize,\r\n\t\tblock,\r\n\t\tlink,\r\n\t\tjustIcon,\r\n\t\tclassName,\r\n\t\tmuiClasses,\r\n\t\t...rest\r\n\t} = props;\r\n\tconst btnClasses = classNames({\r\n\t\t[classes.button]: true,\r\n\t\t[classes[size]]: size,\r\n\t\t[classes[color]]: color,\r\n\t\t[classes.round]: round,\r\n\t\t[classes.fullWidth]: fullWidth,\r\n\t\t[classes.disabled]: disabled,\r\n\t\t[classes.simple]: simple,\r\n\t\t[classes.block]: block,\r\n\t\t[classes.link]: link,\r\n\t\t[classes.justIcon]: justIcon,\r\n\t\t[className]: className\r\n\t});\r\n\treturn (\r\n\t\t\r\n\t);\r\n}\r\n\r\nRegularButton.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tchildren: PropTypes.node,\r\n\tcolor: PropTypes.oneOf([\r\n\t\t\"primary\",\r\n\t\t\"black\",\r\n\t\t\"info\",\r\n\t\t\"success\",\r\n\t\t\"warning\",\r\n\t\t\"danger\",\r\n\t\t\"rose\",\r\n\t\t\"white\",\r\n\t\t\"twitter\",\r\n\t\t\"facebook\",\r\n\t\t\"google\",\r\n\t\t\"linkedin\",\r\n\t\t\"pinterest\",\r\n\t\t\"youtube\",\r\n\t\t\"tumblr\",\r\n\t\t\"github\",\r\n\t\t\"behance\",\r\n\t\t\"dribbble\",\r\n\t\t\"reddit\",\r\n\t\t\"transparent\"\r\n\t]),\r\n\tsize: PropTypes.oneOf([\"sm\", \"lg\",\"md\"]),\r\n\tsimple: PropTypes.bool,\r\n\tround: PropTypes.bool,\r\n\tfullWidth: PropTypes.bool,\r\n\tdisabled: PropTypes.bool,\r\n\tblock: PropTypes.bool,\r\n\tlink: PropTypes.bool,\r\n\tjustIcon: PropTypes.bool,\r\n\tclassName: PropTypes.string,\r\n\tmuiClasses: PropTypes.object\r\n};\r\n\r\nRegularButton.defaultProps = {\r\n\tcolor: \"black\"\r\n};\r\n\r\nexport default withStyles(buttonStyle)(RegularButton);\r\n","module.exports = __webpack_public_path__ + \"static/media/BitvoLoginPageBackground.5cb474b1.webp\";","module.exports = __webpack_public_path__ + \"static/media/BitvoLogo.b07832f8.png\";","module.exports = __webpack_public_path__ + \"static/media/BitvoLogo_.ea6a6248.jpg\";","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAiCAYAAACp43wlAAAACXBIWXMAAB2GAAAdhgFdohOBAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jk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Se+UEW0Io5tRVAyiBBW1uIEly/6Nzwj2vqpZSDjSGEhhMRSIVZuGKa0NFL0/CccDvHi15ezeE0XtlWaXUtmSkAYpLCwVISSEoutj1zk2ee38lGIuJ1/VXz371uIx7wRppqpV5H3zZABgaYkmqKiOkXjskpWr23Esqyi504t59v5yffSGNycpu98ooSGxvpxfTvau/nvH7fSctolnbCRlsOCxWHWbgyyafOqol8kAXzvlWP0Xi7D4KGk4oHHbRY3zr/pt3Jv/vwI7//So6ctgJMMgDSESmMsWgFbH6hm5Z0NNz2p/XUP/cT0X1+mvkx/ZjwN0rRMg/T/RP5vAD8gjsh7x8sFAAAAAElFTkSuQmCC\"","module.exports = __webpack_public_path__ + \"static/media/Google-Authenticator-icon.65aec51e.png\";","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3RpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDcuMC1jMDAwIDc5LmRhYmFjYmIsIDIwMjEvMDQvMTQtMDA6Mzk6NDQgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1sbnM6eG1wPSJodHRw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wA6Be1J6zrlvzHOYNfwKATVD7WdnamwN3Lo7L4rMDgLat9hx16ZrnrNqPN79tJAKAT6Z2t6zzi2On4tizISsuGJTZ6Z170jn/nsYsMiGgxdSec2rPPb1zd2rPRcVzUu35acSa56gL4g5/deH/CTAADAuMa9urijwAAAAASUVORK5CYII=\"","module.exports = __webpack_public_path__ + \"static/media/Upp_Login.eea9e5a5.png\";","module.exports = __webpack_public_path__ + \"static/media/Upp_Main.3b44523d.png\";","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEwAAABMCAMAAADwSaEZAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAArtQTFRFAAAAAwMDBgYGAQEBAgICAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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OTIPAHKFAAAAF3RFWHRUaHVtYjo6SW1hZ2U6OldpZHRoADE5MtOsIQgAAAAZdEVYdFRodW1iOjpNaW1ldHlwZQBpbWFnZS9wbmc/slZOAAAAF3RFWHRUaHVtYjo6TVRpbWUAMTQ0MzE4NzM1OI5KIXEAAAAPdEVYdFRodW1iOjpTaXplADBCQpSiPuwAAABWdEVYdFRodW1iOjpVUkkAZmlsZTovLy9tbnRsb2cvZmF2aWNvbnMvMjAxNS0wOS0yNS9kNDhkMjAzMmYzYmI5MTRhZDg5NGZhZTMwMmJjNmEzYy5pY28ucG5nSykjdgAAAABJRU5ErkJggg==\"","module.exports = __webpack_public_path__ + \"static/media/bitvoUppLogin.4e4ef5a8.png\";","module.exports = __webpack_public_path__ + \"static/media/cheque.3b1c24f2.jpg\";","module.exports = __webpack_public_path__ + \"static/media/contactless.d8363e0f.png\";","module.exports = __webpack_public_path__ + \"static/media/contactlessWhite.6b403686.png\";","module.exports = __webpack_public_path__ + \"static/media/dcbank-feature-use.698949a9.svg\";","module.exports = __webpack_public_path__ + \"static/media/dcbgnew.3f7eb88b.webp\";","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAACDxJREFUeNrtnPtvHFcVxz931utX4rhO82jiphRKGkOgBMpDtFSFoopKSCDxA69KVVXgV/gf+BkhISQQIIQAVYiHCgiQQEDKq6UIpS1NkzRpIIE6bdKkzcN27LV3Z/jhe289Gc/s2vvu6nykke3M7Oydc+553DPnBgzDMAzDMAzDMAzDMAzDMAzDMAzDMAzDMAaRUq8HMKCUAQckjS40BbSHIWALsAN4I/AO/++vrOeDRYwCO4ExYNEfV/0R9/qJe0wEbEJCnwJuAt6O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"","module.exports = __webpack_public_path__ + \"static/media/fcLogin.c15111b0.png\";","module.exports = __webpack_public_path__ + \"static/media/h&rblock.c99024ec.png\";","module.exports = __webpack_public_path__ + \"static/media/loginPageBackground.83fd02aa.webp\";","module.exports = __webpack_public_path__ + \"static/media/logo.323e98b8.svg\";","module.exports = __webpack_public_path__ + \"static/media/logo_.ecf868bf.jpeg\";","module.exports = __webpack_public_path__ + \"static/media/mastercard.b1393bee.png\";","module.exports = __webpack_public_path__ + \"static/media/twilio-mark-red.a06174e2.png\";","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGkAAAAjCAYAAACXQSQwAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAAdhgAAHYYBXaITgQAAAAZiS0dEAP8A/wD/oL2nkwAAAGJ0RVh0Y29tbWVudABib3JkZXIgYnM6MCBiYzojMDAwMDAwIHBzOjAgcGM6I2VlZWVlZSBlczowIGVjOiMwMDAwMDAgY2s6NTAwZDAyYTRmMWYxZDc0OTczNDBjYzU4Njg5NmJmMTGEn9AAAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE5LTAxLTE1VDE4OjQ1OjA0KzAwOjAwm7wlzAAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxOS0wMS0xNVQxODo0NTowNCswMDowMOrhnXAAABUmSURBVGhD3VsJWBZV275nXnYQEUEQE7dEJFfcDZdMzczU1LRQcg/3NTWlkjJLc6uvNDM1KvUzt1w+ccklydzNDRdEREBk39d3m/M/58wgoKiA+l/f9d1e4ztnnZnzbPdzZpAYAU8Bc8pRsCvBgDEbsLAFrD0ASUctitrhkaDL0qUlz3egqz2IxkhafeVQqNdDlmRYWVlqNYDBaITRaIK9Hd3XI6A3GLBheyjOXroB/wG90LltC62lNPQGI0xmM+xtrakkIezkeYSduYgZ7w+Dnah7fpC138qh4B5wYQ5k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byIrIwvf0QJbWFph4YfjcfTkeew5GIZXO7VFl3a+8KrvKQhM66aNBTlIJwVJI6ucPPodEqQjVv2yHbfu3EXtF9yEpXJ3WNWRv28rB7TY9NQwx+1kppMBzHxpnpqgmgqZ6dwUkXwqOVH8WxGmGAvKd9Bw8dHL7rrMdHYcn+2JyMzKYbl5+VpJRXJaOssvKNRKKshS2NWIKK1UDFpAFhEVQ/eppteR0XEsnPoVFBaPvx4ZzeLuJYvzgkI9u0IJMU+kiaaLfukZWXQPeaKd1+fk5rHT/1xloUf+EkSB30vo4b9Y694BLCklXfQrDypFwcuCmIRTcZ09WYNqyuaI5eS2FpD76i3qxbbQk1wxvx0+nuKZEkdkwnsa5Cbl+Rr2vxO7/wjDkHHzMHfycPg2aYygr1aiASXSO35covV4Mp6ZkMqCQkkti/iG3OAuom88gSxvsKTgy/mGW3fovKYRSSmnW/gvBXeNC79Zj/SMHPTr3RkfjB362L8+LA3g/wAQKWZ+bjuFuQAAAABJRU5ErkJggg==\"","module.exports = __webpack_public_path__ + \"static/media/uppLogin.d9c1aff3.png\";","module.exports = __webpack_public_path__ + \"static/media/visaimg.97666ef1.png\";","module.exports = __webpack_public_path__ + \"static/media/vrtbck.7e9ba301.png\";","import {\r\n\tprimaryColor,\r\n\twarningColor,\r\n\tdangerColor,\r\n\tsuccessColor,\r\n\tinfoColor,\r\n\troseColor,\r\n\tgrayColor,\r\n\tcardTitle\r\n} from \"assets/jss/material-dashboard-pro-react.jsx\";\r\n\r\nimport customCheckboxRadioSwitch from \"assets/jss/material-dashboard-pro-react/customCheckboxRadioSwitch.jsx\";\r\nimport customSelectStyle from \"assets/jss/material-dashboard-pro-react/customSelectStyle.jsx\";\r\nimport sweetAlertStyle from \"assets/jss/material-dashboard-pro-react/views/sweetAlertStyle.jsx\";\r\n\r\nconst style = {\r\n\t...customCheckboxRadioSwitch,\r\n\t...customSelectStyle,\r\n\t...sweetAlertStyle,\r\n\tcardBackground: {\r\n\t\tbackground: \"#efefef\"\r\n\t},\r\n\tcardTitle,\r\n\tcardTitleWhite: {\r\n\t\t...cardTitle,\r\n\t\tcolor: \"#FFFFFF\",\r\n\t\tmarginTop: \"0\",\r\n\t\ttextTransform: \"none !important\"\r\n\t},\r\n\tcardCategoryWhite: {\r\n\t\tmargin: \"0\",\r\n\t\tcolor: \"rgba(255, 255, 255, 0.8)\",\r\n\t\tfontSize: \"1.2em\",\r\n\t\tfontWeight: \"bold\",\r\n\t\ttextTransform: \"none !important\"\r\n\t},\r\n\tcardCategory: {\r\n\t\tcolor: \"#999999\",\r\n\t\tmarginTop: \"10px\",\r\n\t\tfontSize: \"1.2em\",\r\n\t\tfontWeight: \"bold\",\r\n\t\ttextTransform: \"none !important\"\r\n\t},\r\n\ticon: {\r\n\t\tcolor: \"#333333\",\r\n\t\tmargin: \"10px auto 0\",\r\n\t\twidth: \"130px\",\r\n\t\theight: \"130px\",\r\n\t\tborder: \"3px solid #E5E5E5\",\r\n\t\tborderRadius: \"50%\",\r\n\t\tlineHeight: \"174px\",\r\n\t\t\"& svg\": {\r\n\t\t\twidth: \"55px\",\r\n\t\t\theight: \"55px\"\r\n\t\t},\r\n\t\t\"& .fab,& .fas,& .far,& .fal,& .material-icons\": {\r\n\t\t\twidth: \"55px\",\r\n\t\t\tfontSize: \"55px\"\r\n\t\t}\r\n\t},\r\n\ticonRose: {\r\n\t\tcolor: primaryColor\r\n\t},\r\n\tmarginTop30: {\r\n\t\tmarginTop: \"30px\"\r\n\t},\r\n\ttestimonialIcon: {\r\n\t\tmarginTop: \"30px\",\r\n\t\t\"& svg\": {\r\n\t\t\twidth: \"40px\",\r\n\t\t\theight: \"40px\"\r\n\t\t}\r\n\t},\r\n\tcardTestimonialDescription: {\r\n\t\tfontStyle: \"italic\",\r\n\t\tcolor: \"#999999\"\r\n\t},\r\n\tcardIconTitle: {\r\n\t\t...cardTitle,\r\n\t\tmarginTop: \"15px\",\r\n\t\tmarginBottom: \"0px\"\r\n\t},\r\n\tlegendTitle: {\r\n\t\tcolor: grayColor,\r\n\t\tmargin: \"10px 0 !important\",\r\n\t\tdisplay: \"flex\"\r\n\t},\r\n\tprimary: {\r\n\t\tcolor: primaryColor\r\n\t},\r\n\twarning: {\r\n\t\tcolor: warningColor\r\n\t},\r\n\tdanger: {\r\n\t\tcolor: dangerColor\r\n\t},\r\n\tsuccess: {\r\n\t\tcolor: successColor\r\n\t},\r\n\tinfo: {\r\n\t\tcolor: infoColor\r\n\t},\r\n\trose: {\r\n\t\tcolor: roseColor\r\n\t},\r\n\tgray: {\r\n\t\tcolor: grayColor\r\n\t},\r\n\tcardFooter: {\r\n\t\tdisplay: \"block\"\r\n\t},\r\n\tchartItem: {\r\n\t\tfontSize: \"14px\",\r\n\t\tdominantBaseline: \"central\",\r\n\t\ttextAnchor: \"middle\",\r\n\t\tfontWeight : 800\r\n\t}\r\n};\r\n\r\nexport default style;\r\n","import sweetAlertStyle from \"assets/jss/material-dashboard-pro-react/views/sweetAlertStyle.jsx\";\r\nimport {\r\n\tprimaryColor\r\n} from \"assets/jss/material-dashboard-pro-react.jsx\";\r\n\r\nconst portalPageStyle = {\r\n\t...sweetAlertStyle,\r\n\tmargin: \"0px\", paddingTop: \"15px\",\r\n\ttableHeader: {\r\n\t\tfontSize: \"0.9em\",\r\n\t\tlineHeight: \"2\",\r\n\t\tfontWeight: \"400\",\r\n\t\ttextAlign: \"center\",\r\n\t\tpaddingLeft: \"10px\",\r\n\t\tborderColor: primaryColor,\r\n\t\tborderStyle: \"solid\",\r\n\t\tborderWidth: \"1px\",\r\n\t\tborderRadiusInputTopLeft: 2,\r\n\t\tborderRadiusInputTopRight: 2,\r\n\t\tborderRadiusInputBottomLeft: 2,\r\n\t\tborderRadiusInputBottomRight: 2,\r\n\t},\r\n\ttableTextRight: {\r\n\t\twidth: \"150xp\",\r\n\t\ttextAlign: \"left\",\r\n\t\tbackground: \"#ffffff\",\r\n\t\tborderRadius: 2,\r\n\t\tborderRadiusInputTopLeft: 2,\r\n\t\tborderRadiusInputTopRight: 2,\r\n\t\tborderRadiusInputBottomLeft: 2,\r\n\t\tborderRadiusInputBottomRight: 2,\r\n\t\tcolor: \"#2e333a\",\r\n\t\tfontSize: \"0.9em\",\r\n\t\tlineHeight: \"1.428571429\",\r\n\t\tfontWeight: \"400\",\r\n\t\tborderColor: primaryColor,\r\n\t\tborderStyle: \"solid\",\r\n\t\tborderWidth: \"1px\",\r\n\t\tpaddingTop: \"1px\",\r\n\t\tpaddingBottom: \"1px\",\r\n\t\tpaddingLeft: \"10px\",\r\n\t\tpaddingRight: \"30px\",\r\n\t\tmarginTop: \"9px\"\r\n\t},\r\n\ttableTextRightFix: {\r\n\t\twidth: \"150xp\",\r\n\t\ttextAlign: \"left\",\r\n\t\tbackground: \"#ffffff\",\r\n\t\tborderRadius: 2,\r\n\t\tborderRadiusInputTopLeft: 2,\r\n\t\tborderRadiusInputTopRight: 2,\r\n\t\tborderRadiusInputBottomLeft: 2,\r\n\t\tborderRadiusInputBottomRight: 2,\r\n\t\tcolor: \"#2e333a\",\r\n\t\tfontSize: \"0.8em\",\r\n\t\tlineHeight: \"1.428571429\",\r\n\t\tfontWeight: \"400\",\r\n\t\tborderColor: primaryColor,\r\n\t\tborderStyle: \"solid\",\r\n\t\tborderWidth: \"1px\",\r\n\t\tpaddingTop: \"1px\",\r\n\t\tpaddingBottom: \"1px\",\r\n\t\tpaddingLeft: \"10px\",\r\n\t\tpaddingRight: \"10px\"\r\n\t},\r\n\ttableTextLeft: {\r\n\t\twidth: \"150xp\",\r\n\t\ttextAlign: \"left\",\r\n\t\tcolor: \"#2e333a\",\r\n\t\tfontSize: \"0.8em\",\r\n\t\tlineHeight: \"1.428571429\",\r\n\t\tfontWeight: \"400\",\r\n\t\tpaddingTop: \"1px\",\r\n\t\tpaddingBottom: \"1px\",\r\n\t\tpaddingLeft: \"5px\",\r\n\t\tpaddingRight: \"5px\",\r\n\t\tmarginTop: \"9px\"\r\n\t},\r\n\ttableTh: {\r\n\t\tmarginTop: \"5px\"\r\n\t},\r\n\ttableOutStyle: {\r\n\t\tborderLeft: \"1px solid \" + primaryColor,\r\n\t\tborderBottom: \"1px solid \" + primaryColor,\r\n\t\tmarginBottom: \"5px\"\r\n\t},\r\n\tcardBackGround: {\r\n\t\tbackground: \"#efefef\"\r\n\t},\r\n\ttableFix: {\r\n\t\tborderLeft: \"1px solid \" + primaryColor,\r\n\t\tborderBottom: \"1px solid \" + primaryColor,\r\n\t\tborderTop: \"1px solid \" + primaryColor,\r\n\t\tborderRight: \"1px solid \" + primaryColor,\r\n\t}\r\n\r\n};\r\n\r\nexport default portalPageStyle;","const cardImagesStyles = {\r\n cardImgTop: {\r\n width: \"100%\",\r\n borderTopLeftRadius: \"calc(.25rem - 1px)\",\r\n borderTopRightRadius: \"calc(.25rem - 1px)\"\r\n },\r\n cardImgBottom: {\r\n width: \"100%\",\r\n borderBottomRightRadius: \"calc(.25rem - 1px)\",\r\n borderBottomLeftRadius: \"calc(.25rem - 1px)\"\r\n },\r\n cardImgOverlay: {\r\n position: \"absolute\",\r\n top: \"0\",\r\n right: \"0\",\r\n bottom: \"0\",\r\n left: \"0\",\r\n padding: \"1.25rem\"\r\n },\r\n cardImg: {\r\n width: \"100%\",\r\n borderRadius: \"calc(.25rem - 1px)\"\r\n }\r\n};\r\n\r\nexport default cardImagesStyles;\r\n","// ##############################\r\n// // // Pages Header styles\r\n// #############################\r\n\r\nimport {\r\n container,\r\n defaultFont,\r\n primaryColor,\r\n defaultBoxShadow,\r\n infoColor,\r\n successColor,\r\n warningColor,\r\n dangerColor,\r\n boxShadow,\r\n drawerWidth,\r\n transition\r\n} from \"assets/jss/material-dashboard-pro-react.jsx\";\r\n\r\nconst pagesHeaderStyle = theme => ({\r\n appBar: {\r\n backgroundColor: \"transparent\",\r\n boxShadow: \"none\",\r\n borderBottom: \"0\",\r\n marginBottom: \"0\",\r\n position: \"absolute\",\r\n width: \"100%\",\r\n paddingTop: \"10px\",\r\n zIndex: \"1029\",\r\n color: \"#555555\",\r\n border: \"0\",\r\n borderRadius: \"3px\",\r\n padding: \"10px 0\",\r\n transition: \"all 150ms ease 0s\",\r\n minHeight: \"50px\",\r\n display: \"block\"\r\n },\r\n container: {\r\n ...container,\r\n minHeight: \"50px\"\r\n },\r\n flex: {\r\n flex: 1\r\n },\r\n title: {\r\n ...defaultFont,\r\n lineHeight: \"30px\",\r\n fontSize: \"18px\",\r\n borderRadius: \"3px\",\r\n textTransform: \"none\",\r\n color: \"#FFFFFF\",\r\n \"&:hover,&:focus\": {\r\n background: \"transparent\",\r\n color: \"#FFFFFF\"\r\n }\r\n },\r\n appResponsive: {\r\n top: \"8px\"\r\n },\r\n primary: {\r\n backgroundColor: primaryColor,\r\n color: \"#FFFFFF\",\r\n ...defaultBoxShadow\r\n },\r\n info: {\r\n backgroundColor: infoColor,\r\n color: \"#FFFFFF\",\r\n ...defaultBoxShadow\r\n },\r\n success: {\r\n backgroundColor: successColor,\r\n color: \"#FFFFFF\",\r\n ...defaultBoxShadow\r\n },\r\n warning: {\r\n backgroundColor: warningColor,\r\n color: \"#FFFFFF\",\r\n ...defaultBoxShadow\r\n },\r\n danger: {\r\n backgroundColor: dangerColor,\r\n color: \"#FFFFFF\",\r\n ...defaultBoxShadow\r\n },\r\n list: {\r\n ...defaultFont,\r\n fontSize: \"14px\",\r\n margin: 0,\r\n marginRight: \"-15px\",\r\n paddingLeft: \"0\",\r\n listStyle: \"none\",\r\n color: \"#FFFFFF\",\r\n paddingTop: \"0\",\r\n paddingBottom: \"0\"\r\n },\r\n listItem: {\r\n float: \"left\",\r\n position: \"relative\",\r\n display: \"block\",\r\n width: \"auto\",\r\n margin: \"0\",\r\n padding: \"0\",\r\n [theme.breakpoints.down(\"sm\")]: {\r\n zIndex: \"999\",\r\n width: \"100%\",\r\n paddingRight: \"15px\"\r\n }\r\n },\r\n navLink: {\r\n color: \"#FFFFFF\",\r\n margin: \"0 5px\",\r\n paddingTop: \"15px\",\r\n paddingBottom: \"15px\",\r\n fontWeight: \"500\",\r\n fontSize: \"12px\",\r\n textTransform: \"uppercase\",\r\n borderRadius: \"3px\",\r\n lineHeight: \"20px\",\r\n position: \"relative\",\r\n display: \"block\",\r\n padding: \"10px 15px\",\r\n textDecoration: \"none\",\r\n \"&:hover,&:focus\": {\r\n color: \"#FFFFFF\",\r\n background: \"rgba(200, 200, 200, 0.2)\"\r\n }\r\n },\r\n listItemIcon: {\r\n marginTop: \"-3px\",\r\n top: \"0px\",\r\n position: \"relative\",\r\n marginRight: \"3px\",\r\n width: \"20px\",\r\n height: \"20px\",\r\n verticalAlign: \"middle\",\r\n color: \"inherit\",\r\n display: \"inline-block\"\r\n },\r\n listItemText: {\r\n flex: \"none\",\r\n padding: \"0\",\r\n minWidth: \"0\",\r\n margin: 0,\r\n display: \"inline-block\",\r\n position: \"relative\",\r\n whiteSpace: \"nowrap\"\r\n },\r\n navLinkActive: {\r\n backgroundColor: \"rgba(255, 255, 255, 0.1)\"\r\n },\r\n drawerPaper: {\r\n border: \"none\",\r\n bottom: \"0\",\r\n transitionProperty: \"top, bottom, width\",\r\n transitionDuration: \".2s, .2s, .35s\",\r\n transitionTimingFunction: \"linear, linear, ease\",\r\n ...boxShadow,\r\n width: drawerWidth,\r\n ...boxShadow,\r\n position: \"fixed\",\r\n display: \"block\",\r\n top: \"0\",\r\n height: \"100vh\",\r\n right: \"0\",\r\n left: \"auto\",\r\n visibility: \"visible\",\r\n overflowY: \"visible\",\r\n borderTop: \"none\",\r\n textAlign: \"left\",\r\n paddingRight: \"0px\",\r\n paddingLeft: \"0\",\r\n ...transition,\r\n \"&:before,&:after\": {\r\n position: \"absolute\",\r\n zIndex: \"3\",\r\n width: \"100%\",\r\n height: \"100%\",\r\n content: '\"\"',\r\n display: \"block\",\r\n top: \"0\"\r\n },\r\n \"&:after\": {\r\n background: \"#000\",\r\n opacity: \".8\"\r\n }\r\n },\r\n sidebarButton: {\r\n \"&,&:hover,&:focus\": {\r\n color: \"#FFFFFF\"\r\n },\r\n top: \"-2px\"\r\n }\r\n});\r\n\r\nexport default pagesHeaderStyle;\r\n","// ##############################\r\n// // // Table styles\r\n// #############################\r\n\r\nimport {\r\n warningColor,\r\n primaryColor,\r\n dangerColor,\r\n successColor,\r\n infoColor,\r\n roseColor,\r\n grayColor,\r\n defaultFont\r\n} from \"assets/jss/material-dashboard-pro-react.jsx\";\r\n\r\nconst tableStyle = theme => ({\r\n warning: {\r\n color: warningColor\r\n },\r\n primary: {\r\n color: primaryColor\r\n },\r\n danger: {\r\n color: dangerColor\r\n },\r\n success: {\r\n color: successColor\r\n },\r\n info: {\r\n color: infoColor\r\n },\r\n rose: {\r\n color: roseColor\r\n },\r\n gray: {\r\n color: grayColor\r\n },\r\n right: {\r\n textAlign: \"right\"\r\n },\r\n table: {\r\n marginBottom: \"0\",\r\n width: \"100%\",\r\n maxWidth: \"100%\",\r\n backgroundColor: \"transparent\",\r\n borderSpacing: \"0\",\r\n borderCollapse: \"collapse\",\r\n overflow: \"auto\"\r\n },\r\n tableShoppingHead: {\r\n fontSize: \"0.9em !important\",\r\n textTransform: \"uppercase !important\"\r\n },\r\n tableHeadFontSize: {\r\n fontSize: \"1.25em !important\"\r\n },\r\n tableHeadCell: {\r\n\tcolor: \"rgba(0, 0, 0, 1)\",\r\n border: \"none !important\"\r\n },\r\n tableCell: {\r\n ...defaultFont,\r\n lineHeight: \"1.42857143\",\r\n padding: \"0px 8px!important\",\r\n verticalAlign: \"middle\",\r\n fontSize: \"1em\",\r\n borderBottom: \"none\",\r\n borderTop: \"1px solid #ddd\",\r\n position: \"relative\",\r\n [theme.breakpoints.down(\"sm\")]: {\r\n minHeight: \"24px\",\r\n minWidth: \"32px\"\r\n }\r\n },\r\n tableCellTotal: {\r\n fontWeight: \"500\",\r\n fontSize: \"1.25em\",\r\n paddingTop: \"14px\",\r\n textAlign: \"right\"\r\n },\r\n tableCellAmount: {\r\n fontSize: \"26px\",\r\n fontWeight: \"300\",\r\n marginTop: \"5px\",\r\n textAlign: \"right\"\r\n },\r\n tableResponsive: {\r\n // width: \"100%\",\r\n minHeight: \"0.1%\",\r\n overflowX: \"auto\"\r\n },\r\n tableStripedRow: {\r\n backgroundColor: \"#f9f9f9\"\r\n },\r\n tableRowHover: {\r\n \"&:hover\": {\r\n backgroundColor: \"#f5f5f5\"\r\n }\r\n },\r\n warningRow: {\r\n backgroundColor: \"#fcf8e3\",\r\n \"&:hover\": {\r\n backgroundColor: \"#faf2cc\"\r\n }\r\n },\r\n dangerRow: {\r\n backgroundColor: \"#f2dede\",\r\n \"&:hover\": {\r\n backgroundColor: \"#ebcccc\"\r\n }\r\n },\r\n successRow: {\r\n backgroundColor: \"#dff0d8\",\r\n \"&:hover\": {\r\n backgroundColor: \"#d0e9c6\"\r\n }\r\n },\r\n infoRow: {\r\n backgroundColor: \"#d9edf7\",\r\n \"&:hover\": {\r\n backgroundColor: \"#c4e3f3\"\r\n }\r\n }\r\n});\r\n\r\nexport default tableStyle;\r\n","const hoverCardStyle = {\r\n cardHover: {\r\n \"&:hover\": {\r\n \"& $cardHeaderHover\": {\r\n transform: \"translate3d(0, -50px, 0)\"\r\n }\r\n }\r\n },\r\n cardHeaderHover: {\r\n transition: \"all 300ms cubic-bezier(0.34, 1.61, 0.7, 1)\"\r\n },\r\n cardHoverUnder: {\r\n position: \"absolute\",\r\n zIndex: \"1\",\r\n top: \"-50px\",\r\n width: \"calc(100% - 30px)\",\r\n left: \"17px\",\r\n right: \"17px\",\r\n textAlign: \"center\"\r\n }\r\n};\r\n\r\nexport default hoverCardStyle;\r\n","import { primaryColor } from \"assets/jss/material-dashboard-pro-react.jsx\";\r\nconst CDICListStyle = {\t\r\n\t\r\n\tbgPrimary :{\r\n\t\tbackground:primaryColor,\r\n\t\tcolor: \"#ffffff\",\r\n\t}\r\n};\r\n\r\nexport default CDICListStyle;","const PageFooterCardStyle = {\t\r\n\tgridBorder: {\r\n\t\tborderLeft: \"1px solid #808080\",\r\n\t\tborderBottom: \"1px solid #808080\",\r\n\t\tborderTop: \"1px solid #808080\",\r\n\t\tborderRight: \"1px solid #808080\"\r\n\t},\r\n\tgridTextBold: {\r\n\t\tfontWeight:\"bold\"\r\n\t},\r\n\tgridTextCenter: {\r\n\t\ttextAlign:\"center\"\r\n\t},\r\n\tcontainerHeight:{\r\n\t\theight:\"50px\",\r\n\t\t\r\n\t},\r\n\tpt :{\r\n\t\tpaddingTop:\"15px !important\"\r\n\t}\r\n};\r\n\r\nexport default PageFooterCardStyle;","const WireTransferDashboardStyle = {\r\n\t\r\n};\r\n\r\nexport default WireTransferDashboardStyle;\r\n","const amlKycBlacklistStyle = {\r\n\t\r\n};\r\n\r\nexport default amlKycBlacklistStyle;\r\n","import { warningColor } from \"assets/jss/material-dashboard-pro-react.jsx\";\r\nimport customSelectStyle from \"assets/jss/material-dashboard-pro-react/customSelectStyle.jsx\";\r\nimport sweetAlertStyle from \"assets/jss/material-dashboard-pro-react/views/sweetAlertStyle.jsx\";\r\nimport customCheckboxRadioSwitch from \"assets/jss/material-dashboard-pro-react/customCheckboxRadioSwitch.jsx\";\r\n\r\nconst style = {\r\n\ticonbuttoncolor: {\r\n\t\tcolor: warningColor\r\n\t},\r\n\ttabsHeader: {\r\n\t\tbackground: warningColor\r\n\t},\r\n\troot: {\r\n\t\tflexGrow: 1,\r\n\t},\r\n\t...customSelectStyle,\r\n\t...sweetAlertStyle,\r\n\t...customCheckboxRadioSwitch,\r\n\t...warningColor,\r\n\tbankingTitle:{\r\n\t\tcolor: \"#2e333a\",\r\n\t\tfontSize: \"1.25em !important\",\r\n\t\tlineHeight: \"1.428571429\",\r\n\t\tfontWeight: \"400\",\r\n\t\ttextAlign: \"center\",\r\n\t\tfloat: \"center\",\r\n\t\tbackground: \"#d3d3d3\",\r\n\t\tborderRadius: 4,\r\n\t\tborderRadiusInputTopLeft: 7,\r\n\t\tborderRadiusInputTopRight: 7,\r\n\t\tborderRadiusInputBottomLeft: 7,\r\n\t\tborderRadiusInputBottomRight: 7,\r\n\t\tborderColor: \"#707070\"\r\n\t},\r\n\ttextStyle :{\r\n\t\ttextAlign : \"center\"\r\n\t}\r\n};\r\n\r\nexport default style;","// ##############################\r\n// // // Buttons view styles\r\n// #############################\r\n\r\nimport buttonGroupStyle from \"assets/jss/material-dashboard-pro-react/buttonGroupStyle.jsx\";\r\n\r\nconst buttonsStyle = {\r\n cardTitle: {\r\n marginTop: \"0\",\r\n marginBottom: \"3px\",\r\n color: \"#3C4858\",\r\n fontSize: \"18px\"\r\n },\r\n cardHeader: {\r\n zIndex: \"3\"\r\n },\r\n cardContentLeft: {\r\n padding: \"15px 20px 15px 0px\",\r\n position: \"relative\"\r\n },\r\n cardContentRight: {\r\n padding: \"15px 20px 15px 0px\",\r\n position: \"relative\"\r\n },\r\n cardContentBottom: {\r\n padding: \"15px 0px 0px 0px\",\r\n position: \"relative\"\r\n },\r\n marginRight: {\r\n marginRight: \"5px\"\r\n },\r\n icons: {\r\n width: \"17px\",\r\n height: \"17px\"\r\n },\r\n ...buttonGroupStyle,\r\n socialButtonsIcons: {\r\n fontSize: \"18px\",\r\n marginTop: \"-2px\",\r\n position: \"relative\"\r\n }\r\n};\r\n\r\nexport default buttonsStyle;\r\n","// ##############################\r\n// // // IconCard styles\r\n// #############################\r\n\r\nimport {\r\n\tprimaryColor,\r\n\twarningColor,\r\n\tdangerColor,\r\n\tsuccessColor,\r\n\tinfoColor,\r\n\troseColor,\r\n\tgrayColor,\r\n\tcardTitle\r\n} from \"assets/jss/material-dashboard-pro-react.jsx\";\r\n\r\nconst chartsStyle = {\r\n\tcardTitle,\r\n\tcardCategory: {\r\n\t\tmargin: \"0\",\r\n\t\tcolor: \"#999999\"\r\n\t},\r\n\tcardIconTitle: {\r\n\t\t...cardTitle,\r\n\t\tmarginTop: \"15px\",\r\n\t\tmarginBottom: \"0px\"\r\n\t},\r\n\tlegendTitle: {\r\n\t\tcolor: grayColor,\r\n\t\tmargin: \"10px 0 !important\",\r\n\t\tdisplay: \"flex\"\r\n\t},\r\n\tprimary: {\r\n\t\tcolor: primaryColor\r\n\t},\r\n\twarning: {\r\n\t\tcolor: warningColor\r\n\t},\r\n\tdanger: {\r\n\t\tcolor: dangerColor\r\n\t},\r\n\tsuccess: {\r\n\t\tcolor: successColor\r\n\t},\r\n\tinfo: {\r\n\t\tcolor: infoColor\r\n\t},\r\n\trose: {\r\n\t\tcolor: roseColor\r\n\t},\r\n\tgray: {\r\n\t\tcolor: grayColor\r\n\t},\r\n\tcardFooter: {\r\n\t\tdisplay: \"block\"\r\n\t}\r\n};\r\n\r\nexport default chartsStyle;\r\n","// ##############################\r\n// // // Standart Appbar View styles\r\n// #############################\r\n\r\n const constantToolbarTextStyle = {\t\r\n\tappbar:{\r\n\t\tpadding:\"0px\",\r\n\t\theight:\"50px\",\r\n\t\tbackground: \"#d3d3d3\",\r\n\t\tborderRadius:4,\r\n borderRadiusInputTopLeft:7,\r\n borderRadiusInputTopRight:7,\r\n borderRadiusInputBottomLeft:7,\r\n\t\tborderRadiusInputBottomRight:7\t\t\r\n\t},\r\n\tappbarleft:{\r\n\t\tmarginLeft:\"10px\",\r\n\t\tmargin: \"0\",\r\n\t\tpadding:\"0\",\r\n\t\ttextAlign:\"left\",\r\n\t\tcolor:\"#2e333a\",\r\n\t\tfontSize: \"14px !important\",\r\n\t\tlineHeight: \"1.428571429\",\r\n\t\tfontWeight: \"400\",\r\n\t\tdisplay: \"inline-flex\"\r\n\t},\r\n\tappbarmiddle:{\r\n\t\tmargin: \"0\",\r\n\t\tpadding:\"0\",\r\n\t\ttextAlign:\"center\",\r\n\t\tcolor:\"#2e333a\",\r\n\t\tfontSize: \"17px !important\",\r\n\t\tlineHeight: \"1.428571429\",\r\n\t\tfontWeight: \"400\",\r\n\t\tdisplay: \"inline-flex\"\r\n\t},\r\n\tappbarright:{\r\n\t\tmarginRight:\"4px\",\r\n\t\tmargin: \"0\",\r\n\t\tpadding:\"0\",\r\n\t\ttextAlign:\"right\",\r\n\t\tcolor:\"#2e333a\",\r\n\t\tfontSize: \"11px !important\",\r\n\t\tlineHeight: \"1.428571429\",\r\n\t\tfontWeight: \"400\"\r\n\t},\r\n\tappbaritemright:{\r\n\t\tbackground: \"#fcfcfc\",\r\n\t\tborderRadius:4,\r\n borderRadiusInputTopLeft:7,\r\n borderRadiusInputTopRight:7,\r\n borderRadiusInputBottomLeft:7,\r\n\t\tborderRadiusInputBottomRight:7,\r\n\t\tcolor:\"#2e333a\",\r\n\t\tfontSize: \"1em\",\r\n\t\tlineHeight: \"1.428571429\",\r\n\t\tfontWeight: \"400\",\r\n\t\tborderColor:\"#707070\",\r\n\t\ttextAlign:\"center\"\r\n\t},\r\n\tappbaritemleft:{\r\n\t\tfontSize: \"1em\",\r\n\t\ttextAlign:\"right\"\r\n\t},\r\n\tappbar2:{\r\n\t\theight:\"50px\",\r\n\t\tmarginTop:\"10px\",\r\n\t\tbackground: \"#d3d3d3\",\r\n\t\tborderRadius:4,\r\n borderRadiusInputTopLeft:7,\r\n borderRadiusInputTopRight:7,\r\n borderRadiusInputBottomLeft:7,\r\n\t\tborderRadiusInputBottomRight:7,\r\n\t\tcolor:\"#2e333a\",\r\n\t\tfontSize: \"0.8em\",\r\n\t\tlineHeight: \"1.428571429\",\r\n\t\tfontWeight: \"400\",\r\n\t\ttextAlign:\"left\"\r\n\t}\r\n };\r\n \r\n export default constantToolbarTextStyle;\r\n ","const eftStyle = {\r\n\t\r\n};\r\n\r\nexport default eftStyle;\r\n","import buttonGroupStyle from \"assets/jss/material-dashboard-pro-react/buttonGroupStyle.jsx\";\r\nimport customCheckboxRadioSwitch from \"assets/jss/material-dashboard-pro-react/customCheckboxRadioSwitch.jsx\";\r\nimport { cardTitle } from \"assets/jss/material-dashboard-pro-react.jsx\";\r\n\r\nconst extendedTablesStyle = {\r\n ...customCheckboxRadioSwitch,\r\n ...buttonGroupStyle,\r\n right: {\r\n textAlign: \"right\"\r\n },\r\n center: {\r\n textAlign: \"center\"\r\n },\r\n description: {\r\n maxWidth: \"150px\"\r\n },\r\n actionButton: {\r\n margin: \"0 0 0 5px\",\r\n padding: \"5px\",\r\n \"& svg,& .fab,& .fas,& .far,& .fal,& .material-icons\": {\r\n marginRight: \"0px\"\r\n }\r\n },\r\n icon: {\r\n verticalAlign: \"middle\",\r\n width: \"17px\",\r\n height: \"17px\",\r\n top: \"-1px\",\r\n position: \"relative\"\r\n },\r\n imgContainer: {\r\n width: \"120px\",\r\n maxHeight: \"160px\",\r\n overflow: \"hidden\",\r\n display: \"block\"\r\n },\r\n img: {\r\n width: \"100%\",\r\n height: \"auto\",\r\n verticalAlign: \"middle\",\r\n border: \"0\"\r\n },\r\n tdName: {\r\n minWidth: \"200px\",\r\n fontWeight: \"400\",\r\n fontSize: \"1.5em\"\r\n },\r\n tdNameAnchor: {\r\n color: \"#3C4858\"\r\n },\r\n tdNameSmall: {\r\n color: \"#999999\",\r\n fontSize: \"0.75em\",\r\n fontWeight: \"300\"\r\n },\r\n tdNumber: {\r\n textAlign: \"right\",\r\n minWidth: \"145px\",\r\n fontWeight: \"300\",\r\n fontSize: \"1.3em !important\"\r\n },\r\n tdNumberSmall: {\r\n marginRight: \"3px\"\r\n },\r\n tdNumberAndButtonGroup: {\r\n lineHeight: \"1 !important\"\r\n },\r\n positionAbsolute: {\r\n position: \"absolute\",\r\n right: \"0\",\r\n top: \"0\"\r\n },\r\n customFont: {\r\n fontSize: \"16px !important\"\r\n },\r\n actionButtonRound: {\r\n width: \"auto\",\r\n height: \"auto\",\r\n minWidth: \"auto\"\r\n },\r\n cardIconTitle: {\r\n ...cardTitle,\r\n marginTop: \"15px\",\r\n marginBottom: \"0px\"\r\n }\r\n};\r\n\r\nexport default extendedTablesStyle;\r\n","// ##############################\r\n// // // GridSystem view styles\r\n// #############################\r\n\r\nconst gridSystemStyle = {\r\n title: {\r\n color: \"#3C4858\",\r\n textDecoration: \"none\"\r\n }\r\n};\r\n\r\nexport default gridSystemStyle;\r\n","// ##############################\r\n// // // Icons styles\r\n// #############################\r\n\r\nimport { boxShadow } from \"assets/jss/material-dashboard-pro-react.jsx\";\r\n\r\nconst iconsStyle = {\r\n iframe: {\r\n width: \"100%\",\r\n height: \"500px\",\r\n border: \"0\",\r\n ...boxShadow\r\n },\r\n iframeContainer: {\r\n margin: \"0 -20px 0\"\r\n }\r\n};\r\n\r\nexport default iconsStyle;\r\n","import { primaryColor } from \"assets/jss/material-dashboard-pro-react.jsx\";\r\n\r\nconst languageSelectorStyle = {\r\n\tselectFormControl: {\r\n\t\tmargin: \"1px 1px 1px 0px !important\",\r\n\t\t\"& > div\": {\r\n\t\t\t\"&:before\": {\r\n\t\t\t\tborderBottomWidth: \"1px !important\",\r\n\t\t\t\tborderBottomColor: \"#D2D2D2 !important\"\r\n\t\t\t},\r\n\t\t\tmarginTop: \"0px\",\r\n\t\t\tfontSize: \"0.6rem\",\r\n\t\t\t\"&:after\": {\r\n\t\t\t\tborderBottomColor: primaryColor + \"!important\"\r\n\t\t\t},\r\n\t\t\t\"& > div\": {\r\n\t\t\t\t\"& > svg\": {\r\n\t\t\t\t\tcolor: \"white\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\n\r\nexport default languageSelectorStyle;","// ##############################\r\n// // // LockScreenPage view styles\r\n// #############################\r\n\r\nimport {\r\n cardTitle,\r\n container\r\n} from \"assets/jss/material-dashboard-pro-react.jsx\";\r\n\r\nconst lockScreenPageStyle = theme => ({\r\n cardTitle,\r\n container: {\r\n ...container,\r\n zIndex: \"4\",\r\n [theme.breakpoints.down(\"sm\")]: {\r\n paddingBottom: \"100px\"\r\n },\r\n },\r\n customCardClass: {\r\n width: \"240px\",\r\n margin: \"60px auto 0\",\r\n color: \"#FFFFFF\",\r\n display: \"block\",\r\n transform: \"translate3d(0, 0, 0)\",\r\n transition: \"all 300ms linear\"\r\n },\r\n cardHidden: {\r\n opacity: \"0\",\r\n transform: \"translate3d(0, -60px, 0)\"\r\n },\r\n cardAvatar: {\r\n maxWidth: \"90px\",\r\n maxHeight: \"90px\",\r\n marginTop: \"-45px\"\r\n },\r\n customCardFooterClass: {\r\n border: \"none\",\r\n paddingTop: \"0\"\r\n },\r\n justifyContentCenter: {\r\n justifyContent: \"center !important\"\r\n }\r\n});\r\n\r\nexport default lockScreenPageStyle;\r\n","// ##############################\r\n// // // Manage Cards Tabs View styles\r\n// #############################\r\n\r\nconst manageCardTabStyle = {\t\r\n\ttable:{\r\n\t\tmargin:\"0px 0px !important\",\r\n\t\tpadding: \"0x 8px !important\",\r\n\t\tposition: \"relative\",\r\n\t\tfontSize: \"12px !important\",\r\n\t\tcolor:\"#2e333a\",lineHeight: \"1.42857143\",\r\n\t\tborderBottom: \"none\",\r\n\t\tverticalAlign: \"center\"\r\n\t}\r\n };\r\n \r\n export default manageCardTabStyle;\r\n ","import { warningColor } from \"assets/jss/material-dashboard-pro-react.jsx\";\r\nimport customSelectStyle from \"assets/jss/material-dashboard-pro-react/customSelectStyle.jsx\";\r\nimport sweetAlertStyle from \"assets/jss/material-dashboard-pro-react/views/sweetAlertStyle.jsx\";\r\nimport customCheckboxRadioSwitch from \"assets/jss/material-dashboard-pro-react/customCheckboxRadioSwitch.jsx\";\r\n\r\nconst merchantProfileStyle = {\r\n\ticonbuttoncolor: {\r\n\t\tcolor: warningColor\r\n\t},\r\n\ttabsHeader: {\r\n\t\tbackground: warningColor\r\n\t},\r\n\troot: {\r\n\t\tflexGrow: 1,\r\n\t},\r\n\t...customSelectStyle,\r\n\t...sweetAlertStyle,\r\n\t...customCheckboxRadioSwitch\r\n};\r\n\r\nexport default merchantProfileStyle;\r\n","// ##############################\r\n// // // Notifications view styles\r\n// #############################\r\n\r\nimport { defaultFont } from \"assets/jss/material-dashboard-pro-react.jsx\";\r\nimport modalStyle from \"assets/jss/material-dashboard-pro-react/modalStyle.jsx\";\r\n\r\nconst notificationsStyle = theme => ({\r\n cardTitle: {\r\n marginTop: \"0\",\r\n marginBottom: \"3px\",\r\n color: \"#3C4858\",\r\n fontSize: \"18px\"\r\n },\r\n cardHeader: {\r\n zIndex: \"3\"\r\n },\r\n cardSubtitle: {\r\n ...defaultFont,\r\n color: \"#999999\",\r\n fontSize: \"14px\",\r\n margin: \"0 0 10px\"\r\n },\r\n center: {\r\n textAlign: \"center\"\r\n },\r\n right: {\r\n textAlign: \"right\"\r\n },\r\n left: {\r\n textAlign: \"left\"\r\n },\r\n marginRight: {\r\n marginRight: \"5px\"\r\n },\r\n modalSectionTitle: {\r\n marginTop: \"30px\"\r\n },\r\n ...modalStyle(theme)\r\n});\r\n\r\nexport default notificationsStyle;\r\n","const parameterStyle = {\r\n\r\n};\r\n\r\nexport default parameterStyle;","import customSelectStyle from \"assets/jss/material-dashboard-pro-react/customSelectStyle.jsx\";\r\nimport sweetAlertStyle from \"assets/jss/material-dashboard-pro-react/views/sweetAlertStyle.jsx\";\r\nimport customCheckboxRadioSwitch from \"assets/jss/material-dashboard-pro-react/customCheckboxRadioSwitch.jsx\";\r\n\r\nconst prepaidBINDefinitionStyle = {\r\n\t...customSelectStyle,\r\n\t...sweetAlertStyle,\r\n\t...customCheckboxRadioSwitch\r\n};\r\n\r\nexport default prepaidBINDefinitionStyle;\r\n","import customCheckboxRadioSwitch from \"assets/jss/material-dashboard-pro-react/customCheckboxRadioSwitch.jsx\";\r\n\r\nconst prepaidCardGroupDefinitionStyle = {\r\n\t...customCheckboxRadioSwitch\r\n};\r\n\r\nexport default prepaidCardGroupDefinitionStyle;\r\n","const prepaidInventoryPersonalizedTabStyle = {\r\n\r\n};\r\n\r\nexport default prepaidInventoryPersonalizedTabStyle;\r\n","const prepaidInventoryPlasticNonameTabStyle = {\r\n\t\r\n};\r\n\r\nexport default prepaidInventoryPlasticNonameTabStyle;\r\n","import sweetAlertStyle from \"assets/jss/material-dashboard-pro-react/views/sweetAlertStyle.jsx\";\r\n\r\nconst prepaidInventoryStyle = {\r\n\t...sweetAlertStyle\r\n};\r\n\r\nexport default prepaidInventoryStyle;\r\n","const prepaidInventoryVirtualTabStyle = {\r\n\r\n};\r\n\r\nexport default prepaidInventoryVirtualTabStyle;\r\n","const prepaidPortalStyle = {\r\n\t\r\n};\r\n\r\nexport default prepaidPortalStyle;\r\n","import customSelectStyle from \"assets/jss/material-dashboard-pro-react/customSelectStyle.jsx\";\r\n\r\nconst prepaidTransactionSearchStyle = {\r\n\t...customSelectStyle\r\n};\r\n\r\nexport default prepaidTransactionSearchStyle;\r\n","// ##############################\r\n// // // PricingPage Pages View styles\r\n// #############################\r\n\r\nimport {\r\n container,\r\n defaultFont,\r\n cardTitle,\r\n roseColor\r\n} from \"assets/jss/material-dashboard-pro-react.jsx\";\r\n\r\nconst pricingPageStyle = theme => ({\r\n container: {\r\n ...container,\r\n zIndex: \"4\",\r\n [theme.breakpoints.down(\"sm\")]: {\r\n paddingBottom: \"100px\"\r\n },\r\n },\r\n title: {\r\n ...defaultFont,\r\n color: \"#FFFFFF\",\r\n marginTop: \"5vh\",\r\n marginBottom: \"30px\",\r\n textAlign: \"center\"\r\n },\r\n description: {\r\n fontSize: \"18px\",\r\n color: \"#FFFFFF\",\r\n textAlign: \"center\"\r\n },\r\n cardTitleWhite: {\r\n ...cardTitle,\r\n color: \"#FFFFFF !important\"\r\n },\r\n cardCategory: {\r\n color: \"#999999\",\r\n marginTop: \"10px\"\r\n },\r\n cardCategoryWhite: {\r\n color: \"#FFFFFF\",\r\n marginTop: \"10px\"\r\n },\r\n icon: {\r\n color: \"rgba(255, 255, 255, 0.76)\",\r\n margin: \"10px auto 0\",\r\n width: \"130px\",\r\n height: \"130px\",\r\n border: \"1px solid #E5E5E5\",\r\n borderRadius: \"50%\",\r\n lineHeight: \"174px\",\r\n \"& svg\": {\r\n width: \"55px\",\r\n height: \"55px\"\r\n },\r\n \"& .fab,& .fas,& .far,& .fal,& .material-icons\": {\r\n width: \"55px\",\r\n fontSize: \"55px\"\r\n }\r\n },\r\n iconWhite: {\r\n color: \"#FFFFFF\"\r\n },\r\n iconRose: {\r\n color: roseColor\r\n },\r\n marginTop30: {\r\n marginTop: \"30px\"\r\n }\r\n});\r\n\r\nexport default pricingPageStyle;\r\n","// ##############################\r\n// // // RegisterPage view styles\r\n// #############################\r\n\r\nimport {\r\n container,\r\n cardTitle\r\n} from \"assets/jss/material-dashboard-pro-react.jsx\";\r\n\r\nimport customCheckboxRadioSwitch from \"assets/jss/material-dashboard-pro-react/customCheckboxRadioSwitch.jsx\";\r\n\r\nconst registerPageStyle = {\r\n ...customCheckboxRadioSwitch,\r\n cardTitle: {\r\n ...cardTitle,\r\n textAlign: \"center\"\r\n },\r\n container: {\r\n ...container,\r\n position: \"relative\",\r\n zIndex: \"3\"\r\n // paddingTop: \"23vh\"\r\n },\r\n cardSignup: {\r\n borderRadius: \"6px\",\r\n boxShadow:\r\n \"0 16px 24px 2px rgba(0, 0, 0, 0.14), 0 6px 30px 5px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2)\",\r\n marginBottom: \"100px\",\r\n padding: \"40px 0px\",\r\n marginTop: \"15vh\"\r\n },\r\n center: {\r\n textAlign: \"center\"\r\n },\r\n right: {\r\n textAlign: \"right\"\r\n },\r\n left: {\r\n textAlign: \"left\"\r\n },\r\n form: {\r\n padding: \"0 20px\",\r\n position: \"relative\"\r\n },\r\n socialTitle: {\r\n fontSize: \"18px\"\r\n },\r\n inputAdornment: {\r\n marginRight: \"18px\",\r\n position: \"relative\"\r\n },\r\n inputAdornmentIcon: {\r\n color: \"#555\"\r\n },\r\n customFormControlClasses: {\r\n margin: \"0 12px\"\r\n },\r\n checkboxLabelControl: {\r\n margin: \"0\"\r\n },\r\n checkboxLabel: {\r\n marginLeft: \"6px\",\r\n color: \"rgba(0, 0, 0, 0.26)\"\r\n }\r\n};\r\n\r\nexport default registerPageStyle;\r\n","const swiftBeneficiaryComponentStyle = {\r\n\t\r\n};\r\n\r\nexport default swiftBeneficiaryComponentStyle;\r\n","import { cardTitle } from \"assets/jss/material-dashboard-pro-react.jsx\";\r\nconst userProfileStyles = {\r\n cardTitle,\r\n cardIconTitle: {\r\n ...cardTitle,\r\n marginTop: \"15px\",\r\n marginBottom: \"0px\",\r\n \"& small\": {\r\n fontSize: \"80%\",\r\n fontWeight: \"400\"\r\n }\r\n },\r\n cardCategory: {\r\n marginTop: \"10px\",\r\n color: \"#999999 !important\",\r\n textAlign: \"center\"\r\n },\r\n description: {\r\n color: \"#999999\"\r\n },\r\n updateProfileButton: {\r\n float: \"right\"\r\n }\r\n};\r\nexport default userProfileStyles;\r\n","// ##############################\r\n// // // ValidationForms view styles\r\n// #############################\r\n\r\nimport { cardTitle } from \"assets/jss/material-dashboard-pro-react.jsx\";\r\nimport customCheckboxRadioSwitch from \"assets/jss/material-dashboard-pro-react/customCheckboxRadioSwitch.jsx\";\r\n\r\nconst validationFormsStyle = {\r\n ...customCheckboxRadioSwitch,\r\n cardTitle: {\r\n ...cardTitle,\r\n color: \"#FFFFFF\"\r\n },\r\n cardIconTitle: {\r\n ...cardTitle,\r\n marginTop: \"15px\",\r\n marginBottom: \"0px\"\r\n },\r\n formCategory: {\r\n marginBottom: \"0\",\r\n color: \"#999999\",\r\n fontSize: \"14px\",\r\n padding: \"10px 0 10px\"\r\n },\r\n center: {\r\n textAlign: \"center\"\r\n },\r\n justifyContentCenter: {\r\n justifyContent: \"center\"\r\n },\r\n registerButton: {\r\n float: \"right\"\r\n }\r\n};\r\n\r\nexport default validationFormsStyle;\r\n","import React from \"react\";\r\n// nodejs library that concatenates classes\r\nimport classNames from \"classnames\";\r\n// nodejs library to set properties for components\r\nimport PropTypes from \"prop-types\";\r\n// @material-ui/core components\r\nimport withStyles from \"@material-ui/core/styles/withStyles\";\r\n// @material-ui/icons\r\n// core components\r\n\r\nimport cardAvatarStyle from \"assets/jss/material-dashboard-pro-react/components/cardAvatarStyle.jsx\";\r\n\r\nfunction CardAvatar({ ...props }) {\r\n const {\r\n classes,\r\n children,\r\n className,\r\n plain,\r\n profile,\r\n testimonial,\r\n testimonialFooter,\r\n ...rest\r\n } = props;\r\n const cardAvatarClasses = classNames({\r\n [classes.cardAvatar]: true,\r\n [classes.cardAvatarProfile]: profile,\r\n [classes.cardAvatarPlain]: plain,\r\n [classes.cardAvatarTestimonial]: testimonial,\r\n [classes.cardAvatarTestimonialFooter]: testimonialFooter,\r\n [className]: className !== undefined\r\n });\r\n return (\r\n
\r\n {children}\r\n
\r\n );\r\n}\r\n\r\nCardAvatar.propTypes = {\r\n children: PropTypes.node.isRequired,\r\n className: PropTypes.string,\r\n profile: PropTypes.bool,\r\n plain: PropTypes.bool,\r\n testimonial: PropTypes.bool,\r\n testimonialFooter: PropTypes.bool\r\n};\r\n\r\nexport default withStyles(cardAvatarStyle)(CardAvatar);\r\n","import React from \"react\";\r\n// nodejs library that concatenates classes\r\nimport classNames from \"classnames\";\r\n// nodejs library to set properties for components\r\nimport PropTypes from \"prop-types\";\r\n// @material-ui/core components\r\nimport withStyles from \"@material-ui/core/styles/withStyles\";\r\n// @material-ui/icons\r\n\r\n// core components\r\nimport cardTextStyle from \"assets/jss/material-dashboard-pro-react/components/cardTextStyle.jsx\";\r\n\r\nfunction CardText({ ...props }) {\r\n const { classes, className, children, color, ...rest } = props;\r\n const cardTextClasses = classNames({\r\n [classes.cardText]: true,\r\n [classes[color + \"CardHeader\"]]: color,\r\n [className]: className !== undefined\r\n });\r\n return (\r\n
\r\n {children}\r\n
\r\n );\r\n}\r\n\r\nCardText.propTypes = {\r\n classes: PropTypes.object.isRequired,\r\n className: PropTypes.string,\r\n color: PropTypes.oneOf([\r\n \"warning\",\r\n \"success\",\r\n \"danger\",\r\n \"info\",\r\n \"primary\",\r\n \"rose\"\r\n ])\r\n};\r\n\r\nexport default withStyles(cardTextStyle)(CardText);\r\n","import React from 'react';\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\n\r\n\r\nclass RButton extends React.Component\r\n{\r\n constructor(props)\r\n {\r\n super(props);\r\n }\r\n render(){\r\n return();\r\n }\r\n}\r\nexport default RButton;","import React from \"react\";\r\nimport PropTypes from \"prop-types\";\r\n\r\n// @material-ui/core components\r\nimport withStyles from \"@material-ui/core/styles/withStyles\";\r\n\r\nimport typographyStyle from \"assets/jss/material-dashboard-pro-react/components/typographyStyle.jsx\";\r\n\r\nfunction Danger({ ...props }) {\r\n const { classes, children } = props;\r\n return (\r\n
\r\n {children}\r\n
\r\n );\r\n}\r\n\r\nDanger.propTypes = {\r\n classes: PropTypes.object.isRequired\r\n};\r\n\r\nexport default withStyles(typographyStyle)(Danger);\r\n","import React from \"react\";\r\nimport PropTypes from \"prop-types\";\r\n\r\n// @material-ui/core components\r\nimport withStyles from \"@material-ui/core/styles/withStyles\";\r\n\r\nimport typographyStyle from \"assets/jss/material-dashboard-pro-react/components/typographyStyle.jsx\";\r\n\r\nfunction Gray({ ...props }) {\r\n const { classes, children } = props;\r\n return (\r\n
\r\n {children}\r\n
\r\n );\r\n}\r\n\r\nGray.propTypes = {\r\n classes: PropTypes.object.isRequired\r\n};\r\n\r\nexport default withStyles(typographyStyle)(Gray);\r\n","import React from \"react\";\r\nimport PropTypes from \"prop-types\";\r\n\r\n// @material-ui/core components\r\nimport withStyles from \"@material-ui/core/styles/withStyles\";\r\n\r\nimport typographyStyle from \"assets/jss/material-dashboard-pro-react/components/typographyStyle.jsx\";\r\n\r\nfunction Info({ ...props }) {\r\n const { classes, children } = props;\r\n return (\r\n
\r\n {children}\r\n
\r\n );\r\n}\r\n\r\nInfo.propTypes = {\r\n classes: PropTypes.object.isRequired\r\n};\r\n\r\nexport default withStyles(typographyStyle)(Info);\r\n","import React from \"react\";\r\nimport PropTypes from \"prop-types\";\r\n\r\n// @material-ui/core components\r\nimport withStyles from \"@material-ui/core/styles/withStyles\";\r\n\r\nimport typographyStyle from \"assets/jss/material-dashboard-pro-react/components/typographyStyle.jsx\";\r\n\r\nfunction Muted({ ...props }) {\r\n const { classes, children } = props;\r\n return (\r\n
\r\n {children}\r\n
\r\n );\r\n}\r\n\r\nMuted.propTypes = {\r\n classes: PropTypes.object.isRequired\r\n};\r\n\r\nexport default withStyles(typographyStyle)(Muted);\r\n","import React from \"react\";\r\nimport PropTypes from \"prop-types\";\r\n\r\n// @material-ui/core components\r\nimport withStyles from \"@material-ui/core/styles/withStyles\";\r\n\r\nimport typographyStyle from \"assets/jss/material-dashboard-pro-react/components/typographyStyle.jsx\";\r\n\r\nfunction Primary({ ...props }) {\r\n const { classes, children } = props;\r\n return (\r\n
\r\n {children}\r\n
\r\n );\r\n}\r\n\r\nPrimary.propTypes = {\r\n classes: PropTypes.object.isRequired\r\n};\r\n\r\nexport default withStyles(typographyStyle)(Primary);\r\n","import React from \"react\";\r\nimport PropTypes from \"prop-types\";\r\n\r\n// @material-ui/core components\r\nimport withStyles from \"@material-ui/core/styles/withStyles\";\r\n\r\nimport typographyStyle from \"assets/jss/material-dashboard-pro-react/components/typographyStyle.jsx\";\r\n\r\nfunction Quote({ ...props }) {\r\n const { classes, text, author } = props;\r\n return (\r\n
\r\n

{text}

\r\n {author}\r\n
\r\n );\r\n}\r\n\r\nQuote.propTypes = {\r\n classes: PropTypes.object.isRequired,\r\n text: PropTypes.node,\r\n author: PropTypes.node\r\n};\r\n\r\nexport default withStyles(typographyStyle)(Quote);\r\n","import React from \"react\";\r\nimport PropTypes from \"prop-types\";\r\n\r\n// @material-ui/core components\r\nimport withStyles from \"@material-ui/core/styles/withStyles\";\r\n\r\nimport typographyStyle from \"assets/jss/material-dashboard-pro-react/components/typographyStyle.jsx\";\r\n\r\nfunction Success({ ...props }) {\r\n const { classes, children } = props;\r\n return (\r\n
\r\n {children}\r\n
\r\n );\r\n}\r\n\r\nSuccess.propTypes = {\r\n classes: PropTypes.object.isRequired\r\n};\r\n\r\nexport default withStyles(typographyStyle)(Success);\r\n","import React from \"react\";\r\nimport PropTypes from \"prop-types\";\r\n\r\n// @material-ui/core components\r\nimport withStyles from \"@material-ui/core/styles/withStyles\";\r\n\r\nimport typographyStyle from \"assets/jss/material-dashboard-pro-react/components/typographyStyle.jsx\";\r\n\r\nfunction Warning({ ...props }) {\r\n const { classes, children } = props;\r\n return (\r\n
\r\n {children}\r\n
\r\n );\r\n}\r\n\r\nWarning.propTypes = {\r\n classes: PropTypes.object.isRequired\r\n};\r\n\r\nexport default withStyles(typographyStyle)(Warning);\r\n","/**\r\n * \r\n * @param {Array} array \r\n * @param {string} sortingCriteria \r\n * \r\n */\r\nfunction SortArray(array, sortingCriteria, isDesc = null) {\r\n\tarray.sort((a, b) => {\r\n\t\tvar nameA = a[sortingCriteria];\r\n\t\tif (nameA && nameA.toUpperCase) {\r\n\t\t\tnameA = nameA.toUpperCase();\r\n\t\t}\r\n\r\n\t\tvar nameB = b[sortingCriteria];\r\n\t\tif (nameB && nameB.toUpperCase) {\r\n\t\t\tnameB = nameB.toUpperCase();\r\n\t\t}\r\n\r\n\t\tif (nameA < nameB) {\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\tif (nameA > nameB) {\r\n\t\t\treturn 1;\r\n\t\t}\r\n\r\n\t\treturn 0;\r\n\t});\r\n\r\n\tif (isDesc) array.reverse();\r\n}\r\nfunction IsArraysEqual(array1, array2) {\r\n\r\n\tif (!Array.isArray(array1) || !Array.isArray(array2) || array1.length !== array2.length)\r\n\t\treturn false;\r\n\r\n\tvar arr1 = array1.concat().sort();\r\n\tvar arr2 = array2.concat().sort();\r\n\r\n\tfor (var i = 0; i < arr1.length; i++) {\r\n\t\tif (\r\n\t\t\t(Array.isArray(arr1[i]) && Array.isArray(arr2[i]) && !IsArraysEqual(arr1[i], arr2[i]))\r\n\t\t\t||\r\n\t\t\t(arr1[i] !== arr2[i])\r\n\t\t)\r\n\t\t\treturn false;\r\n\t}\r\n\treturn true;\r\n}\r\n\r\nconst ArrayHelper = {\r\n\tSortArray,\r\n\tIsArraysEqual\r\n};\r\n\r\nexport default ArrayHelper;","const DDTListStyle = {\t\r\n\tgridBorder: {\r\n\t\tborderLeft: \"1px solid #808080\",\r\n\t\tborderBottom: \"1px solid #808080\",\r\n\t\tborderTop: \"1px solid #808080\",\r\n\t\tborderRight: \"1px solid #808080\"\r\n\t},\r\n\tgridTextBold: {\r\n\t\tfontWeight:\"bold\"\r\n\t},\r\n\tgridTextCenter: {\r\n\t\ttextAlign:\"center\"\r\n\t},\r\n\tcontainerHeight:{\r\n\t\theight:\"50px\",\r\n\t\t\r\n\t},\r\n\tpt :{\r\n\t\tpaddingTop:\"15px !important\"\r\n\t}\r\n};\r\n\r\nexport default DDTListStyle;\r\n","const createWireTransferStyle = {\r\n\t\r\n};\r\n\r\nexport default createWireTransferStyle;\r\n","import style from \"assets/jss/material-dashboard-pro-react/views/createWireTransferStyle.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { withArtifex } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport { GenericNumberInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\n\r\nclass BeneficiaryDetail extends Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.MaxLen = { maxLength: 30 };\r\n\t\tthis.ParameterCountrySortOrderIndex = { Member: \"OrderIndex\" };\r\n\t\tthis.EmptyObj = {};\r\n\t\tthis.CountryObject = { ISO2: \"CA\" };\r\n\t\tthis.SortedCountry = { Member: \"OrderIndex\" };\r\n\t\tthis.SortedCityProvince = { Member: \"ParameterDesc\" };\r\n\t}\r\n\r\n\tRenderCountry(d) {\r\n\t\treturn d.ISO2 + \" - \" + d.Name;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled,\r\n\t\t\tCompanyName,\r\n\t\t\tName,\r\n\t\t\tMiddleName,\r\n\t\t\tLastName,\r\n\t\t\tAddressLine1,\r\n\t\t\tAddressLine2,\r\n\t\t\tZipCode,\r\n\t\t\tCityId,\r\n\t\t\tProvinceId,\r\n\t\t\tCountryId,\r\n\t\t\tIsDomestic,\r\n\t\t\tBankCountryId,\r\n\t\t\tBankFinInsId,\r\n\t\t\tBankName,\r\n\t\t\tBankBranchId,\r\n\t\t\tBankTransitNumber,\r\n\t\t\tAccountNumber,\r\n\t\t\tBankSwiftCode,\r\n\t\t\tBankAddressLine1,\r\n\t\t\tBankAddressLine2,\r\n\t\t\tBankZipCode,\r\n\t\t\tBankCityId,\r\n\t\t\tBankProvinceId,\r\n\t\t\tBankInstitution,\r\n\t\t\tCurrencyId,\r\n\t\t\tIsCurrencyVisible,\r\n\t\t\tAlias,\r\n\t\t\tValueChanged,\r\n\t\t\tMenuCode,\r\n\t\t\tIsAsianCountry,\r\n\t\t\tPhoneNumber\r\n\t\t} = this.props;\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\tBeneficiary Information\r\n\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{!MenuCode ?\r\n\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{MenuCode ?\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t:\r\n\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\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{MenuCode ?\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{MenuCode ?\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{!MenuCode ?\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t : \"\"}\r\n\t\t\t\t\t\t\t{IsAsianCountry || PhoneNumber != null ?\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t : \"\"}\r\n\t\t\t\t\t\t{IsCurrencyVisible &&\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t d.Code + \" - \" + d.Description}\r\n\t\t\t\t\t\t\t\t\tValueChanged={ValueChanged}\r\n\t\t\t\t\t\t\t\t\tDataRoot=\"Item\" />\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nBeneficiaryDetail.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool,\r\n\tValueChanged: PropTypes.func,\r\n\tCompanyName: PropTypes.string,\r\n\tName: PropTypes.string,\r\n\tMiddleName: PropTypes.string,\r\n\tLastName: PropTypes.string,\r\n\tAddressLine1: PropTypes.string,\r\n\tAddressLine2: PropTypes.string,\r\n\tZipCode: PropTypes.string,\r\n\tCityId: PropTypes.number,\r\n\tProvinceId: PropTypes.number,\r\n\tCountryId: PropTypes.number,\r\n\tIsDomestic: PropTypes.bool,\r\n\tBankCountryId: PropTypes.number,\r\n\tBankFinInsId: PropTypes.number,\r\n\tBankName: PropTypes.string,\r\n\tBankBranchId: PropTypes.number,\r\n\tBankTransitNumber: PropTypes.string,\r\n\tAccountNumber: PropTypes.string,\r\n\tBankSwiftCode: PropTypes.string,\r\n\tBankAddressLine1: PropTypes.string,\r\n\tBankAddressLine2: PropTypes.string,\r\n\tBankZipCode: PropTypes.string,\r\n\tBankCityId: PropTypes.number,\r\n\tBankInstitution: PropTypes.string,\r\n\tBankProvinceId: PropTypes.number,\r\n\tCurrencyId: PropTypes.number,\r\n\tIsCurrencyVisible: PropTypes.bool,\r\n\tAlias: PropTypes.string,\r\n};\r\n\r\nexport default withArtifex(BeneficiaryDetail, style);","import { withStyles } from \"@material-ui/core\";\r\nimport Typography from \"@material-ui/core/Typography\";\r\nimport eftEtransferTitleBarStyle from \"assets/jss/material-dashboard-pro-react/views/dynamicToolBarStyle.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\n\r\nclass DynamicToolbar extends Component {\r\n\r\n\trender() {\r\n\t\tconst { classes, ItemList, IsPopUp } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{ItemList.length == 0 ?
: ItemList.map((item, index) => (\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{item.Label}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t{Formatter.FormatMoney(item.Value)}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nDynamicToolbar.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tItemList: PropTypes.array.isRequired,\r\n\tIsPopUp: PropTypes.bool\r\n};\r\n\r\nexport default withStyles(eftEtransferTitleBarStyle)(DynamicToolbar);","import { DialogContent, DialogTitle, Slide } from \"@material-ui/core\";\r\nimport withStyles from \"@material-ui/core/styles/withStyles\";\r\nimport { chartColors } from \"assets/jss/material-dashboard-pro-react.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { DynamicComponent } from \"core\";\r\nimport { ApproveIcon, DeleteIcon, DetailIcon, ProfileIcon } from \"core/Icons\";\r\nimport ResourceHelper from \"core/ResourceHelper\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport { Chart } from \"react-chartjs-2\";\r\nimport AmlKycAlertChart from \"views/AmlKyc/AmlKycAlert/AmlKycAlertChart.jsx\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { CanadaPostIdVerificationStatus, ClientType, GridColumnType } from \"views/Constants/Constant\";\r\nimport { ParameterEmptyObject } from \"views/Constants/Constant.Parameter\";\r\nimport { SortedName } from \"views/Constants/Constant.Sorted\";\r\nimport UserDefinition from \"views/UserAdmin/UserDefinition\";\r\n\r\nfunction Transition(props) {\r\n\treturn ;\r\n}\r\n\r\nconst chartStyles = ({\r\n\tcircleBox: {\r\n\t\tdisplay: \"inline-block\",\r\n\t\tmarginTop: \"24px\",\r\n\t\tmarginLeft: \"auto\",\r\n\t\tmarginRight: \"auto\",\r\n\t\tmarginBottom: \"24px\"\r\n\t},\r\n\tcircleBoxGrid: {\r\n\t\twidth: \"14%\",\r\n\t\ttextAlign: \"center\"\r\n\t}\r\n});\r\n\r\nclass AmlKycAlert extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.chartDataContentTotal = {\r\n\t\t\tlabels: [\"Total Issues\"],\r\n\t\t\tdatasets: [\r\n\t\t\t\t{\r\n\t\t\t\t\tdata: [100],\r\n\t\t\t\t\tbackgroundColor: \"rgb(255, 159, 64)\",\r\n\t\t\t\t\thoverBackgroundColor: \"rgb(255, 159, 64)\"\r\n\t\t\t\t}\r\n\t\t\t],\r\n\t\t\ttext: \"\"\r\n\t\t};\r\n\t\tthis.chartDataContentProgram1 = {\r\n\t\t\tlabels: [\"Program 1\"],\r\n\t\t\tdatasets: [\r\n\t\t\t\t{\r\n\t\t\t\t\tdata: [100],\r\n\t\t\t\t\tbackgroundColor: \"rgb(255, 159, 64)\",\r\n\t\t\t\t\thoverBackgroundColor: \"rgb(255, 159, 64)\"\r\n\t\t\t\t}\r\n\t\t\t],\r\n\t\t\ttext: \"\"\r\n\t\t};\r\n\t\tthis.chartDataContentProgram2 = {\r\n\t\t\tlabels: [\"Program 2\"],\r\n\t\t\tdatasets: [\r\n\t\t\t\t{\r\n\t\t\t\t\tdata: [100],\r\n\t\t\t\t\tbackgroundColor: \"rgb(255, 159, 64)\",\r\n\t\t\t\t\thoverBackgroundColor: \"rgb(255, 159, 64)\"\r\n\t\t\t\t}\r\n\t\t\t],\r\n\t\t\ttext: \"\"\r\n\t\t};\r\n\t\tthis.chartDataContentProgram3 = {\r\n\t\t\tlabels: [\"Program 3\"],\r\n\t\t\tdatasets: [\r\n\t\t\t\t{\r\n\t\t\t\t\tdata: [100],\r\n\t\t\t\t\tbackgroundColor: \"rgb(255, 159, 64)\",\r\n\t\t\t\t\thoverBackgroundColor: \"rgb(255, 159, 64)\"\r\n\t\t\t\t}\r\n\t\t\t],\r\n\t\t\ttext: \"\"\r\n\t\t};\r\n\t\tthis.chartDataContentOther = {\r\n\t\t\tlabels: [\"Other Issues\"],\r\n\t\t\tdatasets: [\r\n\t\t\t\t{\r\n\t\t\t\t\tdata: [100],\r\n\t\t\t\t\tbackgroundColor: \"rgb(255, 159, 64)\",\r\n\t\t\t\t\thoverBackgroundColor: \"rgb(255, 159, 64)\"\r\n\t\t\t\t}\r\n\t\t\t],\r\n\t\t\ttext: \"\"\r\n\t\t};\r\n\t\tthis.chartOptions = {\r\n\t\t\tmaintainAspectRatio: false,\r\n\t\t\tresponsive: false,\r\n\t\t\tlegend: {\r\n\t\t\t\tdisplay: false\r\n\t\t\t},\r\n\t\t\tcutoutPercentage: 90,\r\n\t\t\tanimation: {\r\n\t\t\t\tduration: 2000\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tthis.columnSearchDetail = [];\r\n\t\tthis.columnsAmlDetail = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t this.UserDetailDialogOpen(row.original.UserId)} />\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\twidth: 50\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"CustomerName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Date Time\",\r\n\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t}\r\n\t\t];\r\n\t\tthis.columnsKycDetail = [];\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\tkycScenarioLogData: {\r\n\t\t\t\tMenuAction: {\r\n\t\t\t\t\tMenu: {\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tsearchDetail: [],\r\n\t\t\tgraphicDetail: [],\r\n\t\t\ttransactionDetail: [],\r\n\t\t\tkycScenarioLogDetail: [],\r\n\t\t\tchartDataTotal: this.chartDataContentTotal,\r\n\t\t\tchartDataProgram1: this.chartDataContentProgram1,\r\n\t\t\tchartDataProgram2: this.chartDataContentProgram2,\r\n\t\t\tchartDataProgram3: this.chartDataContentProgram3,\r\n\t\t\tchartDataOther: this.chartDataContentOther,\r\n\t\t\ttitleChartProgram1: \"\",\r\n\t\t\ttitleChartProgram2: \"\",\r\n\t\t\ttitleChartProgram3: \"\",\r\n\t\t\tselected: null,\r\n\t\t\tisKycApproveDialogOpen: false,\r\n\t\t\tisKycDetailDialogOpen: false,\r\n\t\t\tisCanadaPostVerificationScreenDialogOpen: false\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"AML & KYC\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Alert Management\");\r\n\t\t}\r\n\r\n\t\tvar originalDoughnutDraw = Chart.controllers.doughnut.prototype.draw;\r\n\t\tChart.helpers.extend(Chart.controllers.doughnut.prototype, {\r\n\t\t\tdraw: function () {\r\n\t\t\t\toriginalDoughnutDraw.apply(this, arguments);\r\n\r\n\t\t\t\tvar chart = this.chart;\r\n\t\t\t\tvar width = chart.chart.width,\r\n\t\t\t\t\theight = chart.chart.height,\r\n\t\t\t\t\tctx = chart.chart.ctx;\r\n\r\n\t\t\t\tvar fontSize = 1.5;\r\n\t\t\t\tctx.font = fontSize + \"em sans-serif\";\r\n\t\t\t\tctx.textBaseline = \"middle\";\r\n\t\t\t\tctx.fillStyle = \"#000\";\r\n\r\n\t\t\t\tvar text = chart.config.data.text,\r\n\t\t\t\t\ttextX = Math.round((width - ctx.measureText(text).width) / 2),\r\n\t\t\t\t\ttextY = height / 2;\r\n\r\n\t\t\t\tctx.fillText(text, textX, textY);\r\n\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tthis.GetColumnsSearchDetail();\r\n\t}\r\n\r\n\tValueChanged = (name, value, data) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = {};\r\n\r\n\t\t\tif (name == \"AmlKycId\") {\r\n\t\t\t\tmodel[name] = value;\r\n\t\t\t\tmodel[\"IsAml\"] = value != null\r\n\t\t\t\t\t? value == \"Aml\"\r\n\t\t\t\t\t: undefined;\r\n\r\n\t\t\t\tif (model.IsAml == false) {\r\n\t\t\t\t\tthis.GetColumnsKycDetail();\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn {\r\n\t\t\t\t\tmodel, searchDetail: [], graphicDetail: [], transactionDetail: [],\r\n\t\t\t\t\tchartDataTotal: this.chartDataContentTotal,\r\n\t\t\t\t\tchartDataProgram1: this.chartDataContentProgram1,\r\n\t\t\t\t\tchartDataProgram2: this.chartDataContentProgram2,\r\n\t\t\t\t\tchartDataProgram3: this.chartDataContentProgram3,\r\n\t\t\t\t\tchartDataOther: this.chartDataContentOther,\r\n\t\t\t\t\tselected: null\r\n\t\t\t\t};\r\n\t\t\t}\r\n\r\n\t\t\tmodel = state.model;\r\n\t\t\tmodel[name] = value;\r\n\t\t\tif (name === \"ClientTypeId\") {\r\n\t\t\t\tmodel[\"IsCorporate\"] = data != null\r\n\t\t\t\t\t? data.ParameterValue == ClientType.Corporate\r\n\t\t\t\t\t: undefined;\r\n\t\t\t}\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tconst { searchDetail } = this.state;\r\n\r\n\t\tthis.setState({ transactionDetail: searchDetail[index].TransactionDetail, selected: index });\r\n\t}\r\n\r\n\tGetColumnsSearchDetail = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { history } = this.props;\r\n\r\n\t\tthis.columnSearchDetail = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tRouteHelper.Push(history, \"/AMLKYCScenario\", \"AmlKycScenarioScenarioDetail\", {\r\n\t\t\t\t\t\t\t\t\tIsAml: model.IsAml,\r\n\t\t\t\t\t\t\t\t\tScenarioCode: row.original.Code\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t}} />\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\twidth: 50\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Scenario Description\",\r\n\t\t\t\taccessor: \"Description\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Program\",\r\n\t\t\t\taccessor: \"Program\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Number of Transaction\",\r\n\t\t\t\taccessor: \"TransactionCount\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.forceUpdate();\r\n\t}\r\n\r\n\tGetColumnsKycDetail = () => {\r\n\t\tthis.columnsKycDetail = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t this.KycApproveDialogOpen(row.original.KycScenarioLog, row.original.CanadaPostVerification)} />\r\n\t\t\t\t\t\t this.KycRejectConfirm(row.original.KycScenarioLog.Id)} />\r\n\t\t\t\t\t\t this.KycDetailDialogOpen(row.original.KycScenarioLog.Id)} />\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\twidth: 150,\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Menu\",\r\n\t\t\t\taccessor: \"KycScenarioLog.MenuAction.Menu.Name\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{ResourceHelper.GetForMenu(row.value)}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Action\",\r\n\t\t\t\taccessor: \"KycScenarioLog.MenuAction.Action.Description\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Insert Date Time\",\r\n\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t}\r\n\t\t];\r\n\t}\r\n\r\n\tGetRenderItemUniqueClient = (x) => {\r\n\t\tvar render = `${x.Name} - ${x.UniqueClientId}`;\r\n\r\n\t\treturn render;\r\n\t}\r\n\r\n\tKycApproveDialogOpen = (kycScenarioLogData, canadaPostVerification) => {\r\n\t\tif (canadaPostVerification != null\r\n\t\t\t&& canadaPostVerification.VerificationStatus != null\r\n\t\t\t&& canadaPostVerification.VerificationStatus.ParameterValue != CanadaPostIdVerificationStatus.Cleared) {\r\n\t\t\tvar { model } = this.state;\r\n\r\n\t\t\tmodel.CanadaPostVerificationId = canadaPostVerification.Id;\r\n\r\n\t\t\tthis.setState({ model });\r\n\t\t\tthis.CanadaPostVerificationScreenDialogOpen();\r\n\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tkycScenarioLogData.ApprovalData = {\r\n\t\t\t\"JsonData\": kycScenarioLogData.JsonData,\r\n\t\t\t\"ActionCode\": kycScenarioLogData.MenuAction.Action.Code,\r\n\t\t\t\"ActionName\": kycScenarioLogData.MenuAction.Action.Description,\r\n\t\t\t\"ApprovalStatus\": \"KYC\",\r\n\t\t\t\"ApprovalStatusCode\": \"KYC\",\r\n\t\t\t\"CurrentStep\": null,\r\n\t\t\t\"KycId\": 0,\r\n\t\t\t\"MenuCode\": kycScenarioLogData.MenuAction.Menu.Code,\r\n\t\t\t\"MenuId\": kycScenarioLogData.MenuAction.MenuId,\r\n\t\t\t\"MenuNameCode\": kycScenarioLogData.MenuAction.Menu.Name,\r\n\t\t\t\"MenuPath\": kycScenarioLogData.MenuAction.Menu.Path,\r\n\t\t\t\"ScreenId\": kycScenarioLogData.MenuAction.Menu.ScreenId,\r\n\t\t\t\"SubStatus\": \"\"\r\n\t\t};\r\n\r\n\t\tthis.setState({ kycScenarioLogData, isKycApproveDialogOpen: true });\r\n\t}\r\n\r\n\tKycDetailDialogOpen = async (kycScenarioLogId) => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/amlkycapi/v1.0/KycScenarioLog/GetDetailById\", { KycScenarioLogId: kycScenarioLogId });\r\n\r\n\t\tif (result != null) {\r\n\t\t\tthis.setState({ kycScenarioLogDetail: result, isKycDetailDialogOpen: true });\r\n\t\t}\r\n\t}\r\n\r\n\tCanadaPostVerificationScreenDialogOpen = () => {\r\n\t\tthis.setState({ isCanadaPostVerificationScreenDialogOpen: true });\r\n\t}\r\n\r\n\tUserDetailDialogOpen = (userId) => {\r\n\t\tthis.setState({ userId, isUserDetailDialogOpen: true });\r\n\t}\r\n\r\n\tKycApproveDialogClose = () => {\r\n\t\tthis.setState({ isKycApproveDialogOpen: false });\r\n\t\tthis.Search();\r\n\t}\r\n\r\n\tKycDetailDialogClose = () => {\r\n\t\tthis.setState({ isKycDetailDialogOpen: false });\r\n\t}\r\n\r\n\tCanadaPostVerificationScreenDialogClose = () => {\r\n\t\tthis.setState({ isCanadaPostVerificationScreenDialogOpen: false });\r\n\t}\r\n\r\n\tUserDetailDialogClose = () => {\r\n\t\tthis.setState({ isUserDetailDialogOpen: false });\r\n\t}\r\n\r\n\tKycRejectConfirm = (kycScenarioLogId) => {\r\n\t\tconst { ExecuteApiPost, showConfirmMessage } = this.props;\r\n\r\n\t\tshowConfirmMessage(\"warning\", \"Warning\", \"Are you sure want to reject ?\", () => ExecuteApiPost(\"/amlkycapi/v1.0/KycScenarioLog/Delete\", { Id: kycScenarioLogId }, null, null, null, [this.Search], true));\r\n\t}\r\n\r\n\tCanadaPostVerificationScreenOpen = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { history } = this.props;\r\n\r\n\t\tRouteHelper.Push(history, \"/CanadaPostVerification\", \"CanadaPostVerificationFromAmlKycAlert\", {\r\n\t\t\tCanadaPostVerificationId: model.CanadaPostVerificationId\r\n\t\t});\r\n\t}\r\n\r\n\r\n\tSearch = async () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(`${model.IsAml ? \"/amlkycapi/v1.0/AmlScenarioLog/Search\" : \"/amlkycapi/v1.0/KycScenarioLog/Search\"}`, model);\r\n\t\tvar searchDetail = [], graphicDetail = [];\r\n\r\n\t\tif (result != null) {\r\n\t\t\tsearchDetail = result.SearchDetail || [];\r\n\t\t\tgraphicDetail = result.GraphicDetail || [];\r\n\r\n\t\t\tvar arrayData1 = [];\r\n\t\t\tvar arrayData2 = [];\r\n\t\t\tvar arrayData3 = [];\r\n\t\t\tvar arrayData4 = [];\r\n\t\t\tvar arrayData5 = [];\r\n\t\t\tvar arrayLabel1 = [];\r\n\t\t\tvar arrayLabel2 = [];\r\n\t\t\tvar arrayLabel3 = [];\r\n\t\t\tvar arrayLabel4 = [];\r\n\t\t\tvar arrayLabel5 = [];\r\n\t\t\tvar arrayColor1 = [];\r\n\t\t\tvar arrayColor2 = [];\r\n\t\t\tvar arrayColor3 = [];\r\n\t\t\tvar arrayColor4 = [];\r\n\t\t\tvar arrayColor5 = [];\r\n\t\t\tvar colorNames = Object.keys(chartColors);\r\n\t\t\tvar i = 0;\r\n\t\t\tvar colorName = colorNames[i % colorNames.length];\r\n\t\t\tvar newColor = chartColors[colorName];\r\n\r\n\t\t\tarrayColor1.push(newColor);\r\n\t\t\tarrayData1.push(graphicDetail[0].TransactionCount);\r\n\t\t\tarrayLabel1.push(\"Total Issues\");\r\n\r\n\t\t\tvar chartDataTotal = {\r\n\t\t\t\tlabels: arrayLabel1,\r\n\t\t\t\tdatasets: [\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdata: arrayData1,\r\n\t\t\t\t\t\thoverBackgroundColor: arrayColor1,\r\n\t\t\t\t\t\tbackgroundColor: arrayColor1\r\n\t\t\t\t\t}\r\n\t\t\t\t],\r\n\t\t\t\ttext: graphicDetail[0].TransactionCount\r\n\t\t\t};\r\n\r\n\t\t\tarrayColor2.push(newColor);\r\n\t\t\tarrayData2.push(graphicDetail[0].TransactionCount - graphicDetail[1].TransactionCount);\r\n\t\t\tarrayData2.push(graphicDetail[1].TransactionCount);\r\n\r\n\t\t\tarrayLabel2.push(\"Other Issues\");\r\n\t\t\tarrayLabel2.push(graphicDetail[1].Program);\r\n\r\n\t\t\tvar chartDataProgram1 = {\r\n\t\t\t\tlabels: arrayLabel2,\r\n\t\t\t\tdatasets: [\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdata: arrayData2,\r\n\t\t\t\t\t\thoverBackgroundColor: arrayColor2,\r\n\t\t\t\t\t\tbackgroundColor: arrayColor2\r\n\t\t\t\t\t}\r\n\t\t\t\t],\r\n\t\t\t\ttext: graphicDetail[1].TransactionCount\r\n\t\t\t};\r\n\t\t\tvar titleChartProgram1 = graphicDetail[1].Program;\r\n\r\n\t\t\tarrayColor3.push(newColor);\r\n\t\t\tarrayData3.push(graphicDetail[0].TransactionCount - graphicDetail[2].TransactionCount);\r\n\t\t\tarrayData3.push(graphicDetail[2].TransactionCount);\r\n\r\n\t\t\tarrayLabel3.push(\"Other Issues\");\r\n\t\t\tarrayLabel3.push(graphicDetail[2].Program);\r\n\r\n\t\t\tvar chartDataProgram2 = {\r\n\t\t\t\tlabels: arrayLabel3,\r\n\t\t\t\tdatasets: [\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdata: arrayData3,\r\n\t\t\t\t\t\thoverBackgroundColor: arrayColor3,\r\n\t\t\t\t\t\tbackgroundColor: arrayColor3\r\n\t\t\t\t\t}\r\n\t\t\t\t],\r\n\t\t\t\ttext: graphicDetail[2].TransactionCount\r\n\t\t\t};\r\n\t\t\tvar titleChartProgram2 = graphicDetail[2].Program;\r\n\r\n\t\t\tarrayColor4.push(newColor);\r\n\t\t\tarrayData4.push(graphicDetail[0].TransactionCount - graphicDetail[3].TransactionCount);\r\n\t\t\tarrayData4.push(graphicDetail[3].TransactionCount);\r\n\r\n\t\t\tarrayLabel4.push(\"Other Issues\");\r\n\t\t\tarrayLabel4.push(graphicDetail[3].Program);\r\n\r\n\t\t\tvar chartDataProgram3 = {\r\n\t\t\t\tlabels: arrayLabel4,\r\n\t\t\t\tdatasets: [\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdata: arrayData4,\r\n\t\t\t\t\t\thoverBackgroundColor: arrayColor4,\r\n\t\t\t\t\t\tbackgroundColor: arrayColor4\r\n\t\t\t\t\t}\r\n\t\t\t\t],\r\n\t\t\t\ttext: graphicDetail[3].TransactionCount\r\n\t\t\t};\r\n\t\t\tvar titleChartProgram3 = graphicDetail[3].Program;\r\n\r\n\t\t\tarrayColor5.push(newColor);\r\n\t\t\tarrayData5.push(graphicDetail[4].TransactionCount == 0 ? 100 : graphicDetail[4].TransactionCount);\r\n\t\t\tarrayLabel5.push(\"Other Issues\");\r\n\r\n\t\t\tvar chartDataOther = {\r\n\t\t\t\tlabels: arrayLabel5,\r\n\t\t\t\tdatasets: [\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdata: arrayData5,\r\n\t\t\t\t\t\thoverBackgroundColor: arrayColor5,\r\n\t\t\t\t\t\tbackgroundColor: arrayColor5\r\n\t\t\t\t\t}\r\n\t\t\t\t],\r\n\t\t\t\ttext: graphicDetail[4].TransactionCount\r\n\t\t\t};\r\n\t\t}\r\n\r\n\t\tthis.setState({\r\n\t\t\tsearchDetail, graphicDetail, transactionDetail: [],\r\n\t\t\tchartDataTotal, chartDataProgram1, chartDataProgram2, chartDataProgram3, chartDataOther,\r\n\t\t\ttitleChartProgram1, titleChartProgram2, titleChartProgram3, selected: null\r\n\t\t});\r\n\t\tthis.GetColumnsSearchDetail();\r\n\t}\r\n\r\n\tClear = (clickClearButton = false) => {\r\n\t\tvar model = {};\r\n\r\n\t\tif (!clickClearButton) {\r\n\t\t\tconst { AmlKycId, IsAml } = this.state.model;\r\n\r\n\t\t\tmodel.AmlKycId = AmlKycId;\r\n\t\t\tmodel.IsAml = IsAml;\r\n\t\t}\r\n\r\n\t\tthis.setState({\r\n\t\t\tmodel, searchDetail: [], graphicDetail: [], transactionDetail: [],\r\n\t\t\tselected: null\r\n\t\t});\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tvar { model } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errors = [];\r\n\r\n\t\tif (!model.AmlKycId) {\r\n\t\t\terrors.push(\"AML or KYC can not be null.\");\r\n\t\t}\r\n\t\tif (model.IsAml == true\r\n\t\t\t&& !model.ClientTypeId) {\r\n\t\t\terrors.push(\"Client type can not be null.\");\r\n\t\t}\r\n\t\tif (model.LastPeriodId\r\n\t\t\t&& (model.FromDate || model.ToDate)) {\r\n\t\t\terrors.push(\"You can choose last or date filter same time.\");\r\n\t\t}\r\n\r\n\t\tmodel[\"IsAmlKycId\"] = !model.AmlKycId;\r\n\t\tmodel[\"IsClientTypeId\"] = model.IsAml == true && !model.ClientTypeId;\r\n\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, kycScenarioLogData, searchDetail, transactionDetail, graphicDetail, kycScenarioLogDetail,\r\n\t\t\tchartDataTotal, chartDataProgram1, chartDataProgram2, chartDataProgram3, chartDataOther,\r\n\t\t\ttitleChartProgram1, titleChartProgram2, titleChartProgram3, selected, userId,\r\n\t\t\tisKycApproveDialogOpen, isKycDetailDialogOpen, isCanadaPostVerificationScreenDialogOpen, isUserDetailDialogOpen } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\t\tvar kycDetailIndex = 0;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t this.Clear(true)\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tkycScenarioLogDetail.map(x => {\r\n\t\t\t\t\t\t\t\tkycDetailIndex++;\r\n\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\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t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\"\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nAmlKycAlert.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default withStyles(chartStyles)(AmlKycAlert);","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericCheckInput, GenericDateInput, GenericGrid, GenericInput, GenericLabel, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { AmlReviewType, ExpressionType, GridColumnType, PropertyType, WarningMessage } from \"views/Constants/Constant\";\r\nimport { MaxLength500 } from \"views/Constants/Constant.MaxLength\";\r\nimport { ParameterEmptyObject } from \"views/Constants/Constant.Parameter\";\r\nimport { SortedName, SortedParameterValue, SortedPropertyName } from \"views/Constants/Constant.Sorted\";\r\n\r\nclass AmlKycScenario extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columnsAml = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Code\",\r\n\t\t\t\taccessor: \"Code\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Description\",\r\n\t\t\t\taccessor: \"Description\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Review Type\",\r\n\t\t\t\taccessor: \"ReviewType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Program\",\r\n\t\t\t\taccessor: \"ProgramDescription\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Class Definition\",\r\n\t\t\t\taccessor: \"ClassDefinitionDescription\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Last Period\",\r\n\t\t\t\taccessor: \"LastPeriod\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Unique Client Id\",\r\n\t\t\t\taccessor: \"UniqueClientId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"From Date\",\r\n\t\t\t\taccessor: \"FromDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"To Date\",\r\n\t\t\t\taccessor: \"ToDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"From Time\",\r\n\t\t\t\taccessor: \"FromTime\",\r\n\t\t\t\ttype: GridColumnType.Time\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"To Time\",\r\n\t\t\t\taccessor: \"ToTime\",\r\n\t\t\t\ttype: GridColumnType.Time\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.columnsKyc = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Code\",\r\n\t\t\t\taccessor: \"Code\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Description\",\r\n\t\t\t\taccessor: \"Description\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Program\",\r\n\t\t\t\taccessor: \"ProgramDescription\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Class Definition\",\r\n\t\t\t\taccessor: \"ClassDefinitionDescription\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"From Date\",\r\n\t\t\t\taccessor: \"FromDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"To Date\",\r\n\t\t\t\taccessor: \"ToDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"From Time\",\r\n\t\t\t\taccessor: \"FromTime\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value == null ? null : DateHelper.ToMoment(row.value).format(\"hh:mm A\")}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"To Time\",\r\n\t\t\t\taccessor: \"ToTime\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value == null ? null : DateHelper.ToMoment(row.value).format(\"hh:mm A\")}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"VerificationUniqueClientName\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.validateSearchProperties = [{ \"AmlKycId\": \"AML or KYC\" }];\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tCallerModuleId: 0,\r\n\t\t\t\tProgramId: null,\r\n\t\t\t\tVerificationList: []\r\n\t\t\t},\r\n\t\t\tlist: [],\r\n\t\t\tcriteriaList: []\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"AML & KYC\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Scenario Definition\");\r\n\t\t}\r\n\r\n\t\tthis.GetCallerModule();\r\n\t\tthis.GetExpressionType();\r\n\t\tthis.GetKycVerificationMethodDefinitions();\r\n\r\n\t\tvar amlKycScenarioScenarioDetail = RouteHelper.ReadAndClear(\"AmlKycScenarioScenarioDetail\");\r\n\r\n\t\tif (amlKycScenarioScenarioDetail != null) {\r\n\t\t\tthis.GetByScenarioCode(amlKycScenarioScenarioDetail.IsAml, amlKycScenarioScenarioDetail.ScenarioCode);\r\n\t\t}\r\n\t}\r\n\r\n\tValueChanged = (name, value, data) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tvar callerModuleList = state.callerModuleList;\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\tif (name == \"AmlKycId\") {\r\n\t\t\t\tmodel.IsAml = value == \"Aml\";\r\n\r\n\t\t\t\tif (value == null) {\r\n\t\t\t\t\tdelete model[\"IsAml\"];\r\n\t\t\t\t}\r\n\r\n\t\t\t\tmodel.CallerModuleId = 0;\r\n\t\t\t\tvar callerModule = callerModuleList.filter(x => x.Value == value);\r\n\r\n\t\t\t\tif (callerModule.length == 1) {\r\n\t\t\t\t\tmodel.CallerModuleId = callerModule[0].Id;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tmodel.ProgramId = null;\r\n\t\t\t\tmodel.ClassDefinitionId = undefined;\r\n\t\t\t\tmodel.Description = undefined;\r\n\t\t\t\tmodel.ReviewTypeId = undefined;\r\n\t\t\t\tmodel.UniqueClientId = undefined;\r\n\t\t\t\tmodel.LastPeriodId = undefined;\r\n\t\t\t} else if (name == \"ProgramId\") {\r\n\t\t\t\tmodel.ProgramId = value || null;\r\n\t\t\t\tmodel.ClassDefinitionId = undefined;\r\n\r\n\t\t\t\treturn { model, criteriaList: [] };\r\n\t\t\t} else if (name == \"FromDate\") {\r\n\t\t\t\tmodel.ToDate = null;\r\n\t\t\t} else if (name == \"ReviewTypeId\") {\r\n\t\t\t\tif (data != null) {\r\n\t\t\t\t\tmodel.ReviewTypeIsPeriodic = data.ParameterValue == AmlReviewType.Periodic;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmodel.ReviewTypeIsPeriodic = undefined;\r\n\t\t\t\t\tmodel.UniqueClientId = undefined;\r\n\t\t\t\t\tmodel.LastPeriodId = undefined;\r\n\t\t\t\t}\r\n\t\t\t} else if (name === \"Verify\" && !value) {\r\n\t\t\t\tfor (var index in model.VerificationList) {\r\n\t\t\t\t\tmodel.VerificationList[index].IsSelected = false;\r\n\t\t\t\t}\r\n\t\t\t} else if (name == \"ClassDefinitionId\") {\r\n\t\t\t\tif (value != null) {\r\n\t\t\t\t\tthis.GetPropertyDefinition();\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn { model, criteriaList: [] };\r\n\t\t\t}\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\r\n\t\tif (name == \"AmlKycId\") {\r\n\t\t\tthis.setState({ list: [], criteriaList: [] });\r\n\t\t}\r\n\t}\r\n\r\n\tValueChangedDeleteButton = (index) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar criteriaList = state.criteriaList;\r\n\r\n\t\t\tcriteriaList.splice(index, 1);\r\n\r\n\t\t\treturn { criteriaList };\r\n\t\t});\r\n\t}\r\n\r\n\tValueChangedCriteria = (name, value, data, index) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar criteriaList = state.criteriaList;\r\n\t\t\tvar item = criteriaList[index], i;\r\n\r\n\t\t\tif (name == \"PropertyDefinitionId\") {\r\n\t\t\t\tif (value == null) {\r\n\t\t\t\t\tcriteriaList.splice(index, 1);\r\n\r\n\t\t\t\t\treturn { criteriaList };\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (data != null && item != null && data.PropertyType != null) {\r\n\t\t\t\t\tconst { showMessage } = this.props;\r\n\r\n\t\t\t\t\tif (data.PropertyDependencyId != null && criteriaList.filter(x => x.PropertyDefinitionId == data.PropertyDependencyId).length == 0) {\r\n\t\t\t\t\t\tshowMessage(\"warning\", \"Warning\", `You cannot select this property. You must before add ${data.PropertyDependency.Description} which is dependency property.`);\r\n\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (state.propertyDefinitionList.filter(x => x.PropertyDependencyId == data.PropertyDefinitionId) != 0) {\r\n\t\t\t\t\t\tfor (i = 0; i < criteriaList.length; i++) {\r\n\t\t\t\t\t\t\tif (i != index && criteriaList[i].PropertyDefinitionId == data.PropertyDefinitionId) {\r\n\t\t\t\t\t\t\t\tshowMessage(\"warning\", \"Warning\", \"You cannot select this property. It's dependency property and added before.\");\r\n\r\n\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (criteriaList.filter(x => x.PropertyDefinitionId == data.PropertyDefinitionId) != 0 && data.PropertyDependencyId != null) {\r\n\t\t\t\t\t\tshowMessage(\"warning\", \"Warning\", \"You cannot select this property. It has a dependency property and added before.\");\r\n\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\titem.DataModelProperty = {\r\n\t\t\t\t\t\tPropertyType: data.PropertyType\r\n\t\t\t\t\t};\r\n\t\t\t\t\titem.ViewData = this.GenerateViewData(data);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (!item) {\r\n\t\t\t\t\titem = {};\r\n\t\t\t\t}\r\n\r\n\t\t\t\titem.Value = null;\r\n\t\t\t\titem.ExpressionTypeId = undefined;\r\n\t\t\t\titem.PropertyName = data.PropertyName;\r\n\t\t\t\titem.PropertyDependencyId = data.PropertyDependencyId;\r\n\t\t\t} else if (name == \"Value\") {\r\n\t\t\t\tif (value == null) {\r\n\t\t\t\t\titem[name] = null;\r\n\r\n\t\t\t\t\treturn { criteriaList };\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfor (i = 0; i < criteriaList.length; i++) {\r\n\t\t\t\t\tif (i != index && criteriaList[i].PropertyDependencyId == criteriaList[index].PropertyDefinitionId) {\r\n\t\t\t\t\t\tcriteriaList[i].ViewData.Key = data.Id;\r\n\r\n\t\t\t\t\t\tvar propertyName = criteriaList[index].PropertyName;\r\n\t\t\t\t\t\tvar parameter = {};\r\n\t\t\t\t\t\tparameter[propertyName] = data.Id;\r\n\t\t\t\t\t\tcriteriaList[i].ViewData[\"Parameter\"] = parameter;\r\n\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\titem[name] = value;\r\n\r\n\t\t\treturn { criteriaList };\r\n\t\t});\r\n\t}\r\n\r\n\tValueCheckChanged = (name, index) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\r\n\t\t\tif (name.includes(\"Verification\")) {\r\n\t\t\t\tmodel.VerificationList[index].IsSelected = !model.VerificationList[index].IsSelected;\r\n\t\t\t}\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tSetDataFromOtherScreen = (isAml, data) => {\r\n\t\tvar model = data, criteriaList = [];\r\n\r\n\t\tmodel.VerificationList = isAml ? [] : data.VerificationListAll;\r\n\t\tmodel.ClassDefinitionId = data.ClassDefinitionId;\r\n\t\tmodel.AmlKycId = isAml ? \"Aml\" : \"Kyc\";\r\n\t\tmodel.IsAml = isAml;\r\n\t\tmodel.Id = data.AmlKycScenarioId;\r\n\t\tmodel.FromDate = data.FromDate == null ? null : Formatter.FormatDateUtc(data.FromDate);\r\n\t\tmodel.ToDate = data.ToDate == null ? null : Formatter.FormatDateUtc(data.ToDate);\r\n\t\tmodel.FromTime = data.FromTime == null ? null : DateHelper.ToMoment(data.FromTime).format(\"hh:mm A\");\r\n\t\tmodel.ToTime = data.ToTime == null ? null : DateHelper.ToMoment(data.ToTime).format(\"hh:mm A\");\r\n\r\n\t\tthis.GetPropertyDefinition(data.ClassDefinitionId);\r\n\r\n\t\tif (isAml) {\r\n\t\t\tmodel.ReviewTypeIsPeriodic = data.LastPeriodId != null;\r\n\t\t} else {\r\n\t\t\tmodel.Verify = data.VerificationList && data.VerificationList.length != 0;\r\n\t\t}\r\n\r\n\t\tdata.CriteriaList && data.CriteriaList.map(x => {\r\n\t\t\tcriteriaList.push({\r\n\t\t\t\tId: x.AmlKycScenarioCriteriaId,\r\n\t\t\t\tPropertyDefinitionId: x.PropertyDefinitionId,\r\n\t\t\t\tExpressionTypeId: x.ExpressionTypeId,\r\n\t\t\t\tValue: x.Value,\r\n\t\t\t\tDataModelProperty: {\r\n\t\t\t\t\tPropertyType: x.PropertyType\r\n\t\t\t\t},\r\n\t\t\t\tViewData: this.GenerateViewData(x)\r\n\t\t\t});\r\n\r\n\t\t\treturn null;\r\n\t\t});\r\n\r\n\t\tthis.setState({ model, criteriaList, selected: 0 });\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tconst { AmlKycId, IsAml, VerificationList } = this.state.model, { list } = this.state;\r\n\t\tvar model = { VerificationList: VerificationList }, criteriaList = [], listItem = list[index];\r\n\r\n\t\tmodel.ClassDefinitionId = listItem.ClassDefinitionId;\r\n\r\n\t\tthis.setState({ model });\r\n\r\n\t\tmodel.AmlKycId = AmlKycId;\r\n\t\tmodel.IsAml = IsAml;\r\n\t\tmodel.Id = listItem.AmlKycScenarioId;\r\n\t\tmodel.ProgramId = listItem.ProgramId;\r\n\t\tmodel.Description = listItem.Description;\r\n\t\tmodel.FromDate = listItem.FromDate == null ? null : Formatter.FormatDateUtc(listItem.FromDate);\r\n\t\tmodel.ToDate = listItem.ToDate == null ? null : Formatter.FormatDateUtc(listItem.ToDate);\r\n\t\tmodel.FromTime = listItem.FromTime == null ? null : DateHelper.ToMoment(listItem.FromTime).format(\"hh:mm A\");\r\n\t\tmodel.ToTime = listItem.ToTime == null ? null : DateHelper.ToMoment(listItem.ToTime).format(\"hh:mm A\");\r\n\r\n\t\tthis.GetPropertyDefinition(listItem.ClassDefinitionId);\r\n\r\n\t\tif (IsAml) {\r\n\t\t\tmodel.ReviewTypeId = listItem.ReviewTypeId;\r\n\t\t\tmodel.LastPeriodId = listItem.LastPeriodId;\r\n\t\t\tmodel.UniqueClientId = listItem.UniqueClientId;\r\n\t\t\tmodel.ReviewTypeIsPeriodic = listItem.LastPeriodId != null;\r\n\t\t} else {\r\n\t\t\tmodel.VerificationList.map(x => {\r\n\t\t\t\tx.IsSelected = listItem.VerificationList.includes(x.Id);\r\n\r\n\t\t\t\treturn null;\r\n\t\t\t});\r\n\t\t\tmodel.VerificationUniqueClientId = listItem.VerificationUniqueClientId;\r\n\t\t}\r\n\r\n\t\tlistItem.CriteriaList.map(x => {\r\n\t\t\tcriteriaList.push({\r\n\t\t\t\tId: x.AmlKycScenarioCriteriaId,\r\n\t\t\t\tPropertyDefinitionId: x.PropertyDefinitionId,\r\n\t\t\t\tExpressionTypeId: x.ExpressionTypeId,\r\n\t\t\t\tValue: x.Value,\r\n\t\t\t\tDataModelProperty: {\r\n\t\t\t\t\tPropertyType: x.PropertyType\r\n\t\t\t\t},\r\n\t\t\t\tViewData: this.GenerateViewData(x, listItem.CriteriaList)\r\n\t\t\t});\r\n\r\n\t\t\treturn null;\r\n\t\t});\r\n\r\n\t\tthis.setState({ model, criteriaList, selected: index });\r\n\t}\r\n\r\n\tGetRenderItemClient = (x) => {\r\n\t\tvar render = `${x.Name} - ${x.UniqueClientId}`;\r\n\r\n\t\treturn render;\r\n\t}\r\n\r\n\tGetRenderItemPropertyDefinition = (x) => {\r\n\t\tvar render = `${x.Description}`;\r\n\r\n\t\tif (x.PropertyPath != null) {\r\n\t\t\trender += ` - ${x.PropertyPath}`;\r\n\t\t}\r\n\r\n\t\treturn render;\r\n\t}\r\n\r\n\tGetParameterCallerModuleId = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tvar result = {\r\n\t\t\tCallerModuleId: model.CallerModuleId\r\n\t\t};\r\n\r\n\t\treturn result;\r\n\t}\r\n\r\n\tGetParameterClassDefinitionId = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tvar result = {\r\n\t\t\tId: model.ClassDefinitionId\r\n\t\t};\r\n\r\n\t\treturn result;\r\n\t}\r\n\r\n\tGetParameterProgramIdAndCallerModuleId = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tvar result = {\r\n\t\t\tProgramId: model.ProgramId,\r\n\t\t\tCallerModuleId: model.CallerModuleId\r\n\t\t};\r\n\r\n\t\treturn result;\r\n\t}\r\n\r\n\tGetCriteriaIndex = (index) => {\r\n\t\tindex = index + 1;\r\n\r\n\t\treturn index;\r\n\t}\r\n\r\n\tGenerateViewData = (data, criteriaListFromApi = null) => {\r\n\t\tvar propertyType = data.PropertyType.ParameterValue;\r\n\t\tvar propertyData = data.PropertyData;\r\n\r\n\t\tif (propertyType == PropertyType.Select) {\r\n\t\t\tvar temp = JSON.parse(propertyData);\r\n\t\t\tif (temp == null) {\r\n\t\t\t\ttemp = {};\r\n\t\t\t} else if (data.PropertyDependencyId != null) {\r\n\t\t\t\tvar { criteriaList } = this.state;\r\n\r\n\t\t\t\tif (criteriaListFromApi != null) {\r\n\t\t\t\t\tcriteriaList = criteriaListFromApi;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvar dependencyProperty = null;\r\n\r\n\t\t\t\tfor (var index = 0; index < criteriaList.length; index++) {\r\n\t\t\t\t\tif (criteriaList[index].PropertyDefinitionId == data.PropertyDependencyId) {\r\n\t\t\t\t\t\tdependencyProperty = criteriaList[index];\r\n\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (dependencyProperty == null) {\r\n\t\t\t\t\treturn {};\r\n\t\t\t\t}\r\n\r\n\t\t\t\ttemp.key = data.Id || dependencyProperty.Value;\r\n\r\n\t\t\t\tvar propertyName = dependencyProperty.PropertyName;\r\n\t\t\t\tvar parameter = {};\r\n\t\t\t\tparameter[propertyName] = data.Id || dependencyProperty.Value || 0;\r\n\t\t\t\ttemp[\"Parameter\"] = parameter;\r\n\t\t\t}\r\n\r\n\t\t\ttemp.Name = \"Value\";\r\n\t\t\ttemp.InputType = PropertyType.Select;\r\n\t\t\ttemp.CanClear = false;\r\n\r\n\t\t\treturn temp;\r\n\t\t}\r\n\r\n\t\tif (propertyType == PropertyType.Decimal) {\r\n\t\t\treturn {\r\n\t\t\t\tName: \"Value\",\r\n\t\t\t\tInputType: PropertyType.Decimal,\r\n\t\t\t\tPrefix: \"$ \",\r\n\t\t\t\tMaxLength: 7\r\n\t\t\t};\r\n\t\t}\r\n\r\n\t\tif (propertyType == PropertyType.Date) {\r\n\t\t\treturn {\r\n\t\t\t\tName: \"Value\",\r\n\t\t\t\tInputType: PropertyType.Date,\r\n\t\t\t\tIncludeTime: false,\r\n\t\t\t\tUtc: true,\r\n\t\t\t\tIsFormatDate: true\r\n\t\t\t};\r\n\t\t}\r\n\r\n\t\tif (propertyType == PropertyType.Int) {\r\n\t\t\treturn {\r\n\t\t\t\tName: \"Value\",\r\n\t\t\t\tInputType: PropertyType.Number,\r\n\t\t\t\tNoFormatting: true\r\n\t\t\t};\r\n\t\t}\r\n\r\n\t\treturn {\r\n\t\t\tName: \"Value\",\r\n\t\t\tInputType: propertyType\r\n\t\t};\r\n\t}\r\n\r\n\tGetPropertyDefinition = async (classDefinitonId) => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/PropertyDefinition/SearchByClassDefinitionId\", { Id: model.ClassDefinitionId || classDefinitonId });\r\n\r\n\t\tthis.setState({ propertyDefinitionList: result || [] });\r\n\t}\r\n\r\n\tGetCallerModule = async () => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/Parameter/Search\", { ParameterCode: \"CallerModule\" });\r\n\t\tvar callerModuleList = [];\r\n\r\n\t\tif (result != null) {\r\n\t\t\tresult\r\n\t\t\t\t.map(x => {\r\n\t\t\t\t\tcallerModuleList.push({\r\n\t\t\t\t\t\tId: x.Id,\r\n\t\t\t\t\t\tValue: x.ParameterValue\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t});\r\n\t\t}\r\n\r\n\t\tthis.setState({ callerModuleList });\r\n\t}\r\n\r\n\tGetExpressionType = async () => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/Parameter/Search\", { ParameterCode: \"ExpressionType\" });\r\n\t\tvar expressionTypeList = [], expressionTypeEqualList = [];\r\n\r\n\t\tif (result != null) {\r\n\t\t\tresult\r\n\t\t\t\t.filter(x => x.ParameterValue == ExpressionType.Equal)\r\n\t\t\t\t.map(x => {\r\n\t\t\t\t\texpressionTypeEqualList.push(x);\r\n\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t});\r\n\t\t\tresult\r\n\t\t\t\t.filter(x => x.ParameterValue != ExpressionType.Like)\r\n\t\t\t\t.map(x => {\r\n\t\t\t\t\texpressionTypeList.push(x);\r\n\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t});\r\n\t\t}\r\n\r\n\t\tthis.setState({ expressionTypeList, expressionTypeEqualList });\r\n\t}\r\n\r\n\tGetKycVerificationMethodDefinitions = async () => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/amlkycapi/v1.0/KycScenarioVerificationMethodDefinition/Search\", {});\r\n\t\tvar verificationList = result || [];\r\n\t\tvar { model } = this.state;\r\n\t\tmodel.VerificationList = [];\r\n\r\n\t\tverificationList.map(x => {\r\n\t\t\tmodel.VerificationList.push(x);\r\n\r\n\t\t\treturn null;\r\n\t\t});\r\n\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tGetByScenarioCode = async (isAml, scenarioCode) => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(`/amlkycapi/v1.0/${isAml ? \"Aml\" : \"Kyc\"}Scenario/GetByScenarioCode`, { ScenarioCode: scenarioCode });\r\n\r\n\t\tthis.SetDataFromOtherScreen(isAml, result || {});\r\n\t}\r\n\r\n\tAddCriteria = () => {\r\n\t\tvar { criteriaList } = this.state;\r\n\r\n\t\tcriteriaList.push({\r\n\t\t\tId: 0,\r\n\t\t\tExpressionTypeId: 0,\r\n\t\t\tViewData: null\r\n\t\t});\r\n\r\n\t\tthis.setState({ criteriaList });\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\t\tvar { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(`/amlkycapi/v1.0/${model.IsAml ? \"Aml\" : \"Kyc\"}Scenario/Search`, model, model, this.validateSearchProperties);\r\n\r\n\t\tmodel.IsProgramId = false;\r\n\t\tmodel.IsClassDefinitionId = false;\r\n\t\tmodel.IsDescription = false;\r\n\t\tmodel.IsReviewTypeId = false;\r\n\t\tmodel.IsUniqueClientId = false;\r\n\t\tmodel.IsLastPeriodId = false;\r\n\r\n\t\tthis.setState({ model, list: result || [] });\r\n\t}\r\n\r\n\tSubmitOrUpdate(actionName) {\r\n\t\tconst { model, criteriaList } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar request = {\r\n\t\t\tAmlKycScenarioId: model.Id,\r\n\t\t\tReviewTypeId: model.ReviewTypeId,\r\n\t\t\tProgramId: model.ProgramId,\r\n\t\t\tClassDefinitionId: model.ClassDefinitionId,\r\n\t\t\tDescription: model.Description,\r\n\t\t\tFromDate: model.FromDate,\r\n\t\t\tToDate: model.ToDate,\r\n\t\t\tFromTime: model.FromTime,\r\n\t\t\tToTime: model.ToTime,\r\n\t\t\tLastPeriodId: model.LastPeriodId,\r\n\t\t\tUniqueClientId: model.UniqueClientId,\r\n\t\t\tVerificationUniqueClientId: model.VerificationUniqueClientId,\r\n\t\t\tCriteriaList: criteriaList.map(x => {\r\n\t\t\t\treturn {\r\n\t\t\t\t\tAmlKycScenarioCriteriaId: x.Id,\r\n\t\t\t\t\tPropertyDefinitionId: x.PropertyDefinitionId,\r\n\t\t\t\t\tExpressionTypeId: x.ExpressionTypeId,\r\n\t\t\t\t\tValue: x.Value\r\n\t\t\t\t};\r\n\t\t\t}),\r\n\t\t\tVerificationList: model.VerificationList.filter(x => x.IsSelected).map(x => { return x.Id; })\r\n\t\t};\r\n\r\n\t\tExecuteApiPost(`/amlkycapi/v1.0/${model.IsAml ? \"AmlScenario/\" : \"KycScenario/\"}${actionName}`, request, null, null, this.Validate, [this.Clear, this.Search], true);\r\n\t}\r\n\r\n\tClear = (clickClearButton = false) => {\r\n\t\tconst { VerificationList } = this.state.model;\r\n\t\tvar model = { VerificationList };\r\n\r\n\t\tif (!clickClearButton) {\r\n\t\t\tconst { AmlKycId, IsAml } = this.state.model;\r\n\r\n\t\t\tmodel.AmlKycId = AmlKycId;\r\n\t\t\tmodel.IsAml = IsAml;\r\n\t\t} else {\r\n\t\t\tmodel.CallerModuleId = 0;\r\n\t\t\tmodel.ProgramId = null;\r\n\t\t}\r\n\r\n\t\tmodel.VerificationList.map(x => {\r\n\t\t\tx.IsSelected = false;\r\n\r\n\t\t\treturn null;\r\n\t\t});\r\n\r\n\t\tthis.setState({ model, list: [], criteriaList: [], selected: null });\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tvar { model, criteriaList } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tconst message = WarningMessage.Empty;\r\n\t\tvar errors = [];\r\n\r\n\t\tif (!model.AmlKycId) {\r\n\t\t\terrors.push(`AML or KYC ${message}`);\r\n\t\t}\r\n\t\tif (!model.ProgramId) {\r\n\t\t\terrors.push(`Program ${message}`);\r\n\t\t}\r\n\t\tif (!model.ClassDefinitionId) {\r\n\t\t\terrors.push(`Class definition ${message}`);\r\n\t\t}\r\n\t\tif (!model.Description) {\r\n\t\t\terrors.push(`Description ${message}`);\r\n\t\t}\r\n\t\tif (model.FromDate != null && model.FromDate != \"\" && !model.ToDate) {\r\n\t\t\terrors.push(`Between date ${message}`);\r\n\t\t}\r\n\t\tif (!model.FromDate && model.ToDate != \"\" && model.ToDate != null) {\r\n\t\t\terrors.push(`Between date ${message}`);\r\n\t\t}\r\n\t\tif (model.FromTime != null && model.FromTime != \"\" && !model.ToTime) {\r\n\t\t\terrors.push(`Between hour ${message}`);\r\n\t\t}\r\n\t\tif (!model.FromTime && model.ToTime != \"\" && model.ToTime != null) {\r\n\t\t\terrors.push(`Between hour ${message}`);\r\n\t\t}\r\n\t\tif (model.IsAml\r\n\t\t\t&& !model.ReviewTypeId) {\r\n\t\t\terrors.push(`Review type ${message}`);\r\n\t\t}\r\n\t\tif (model.ReviewTypeIsPeriodic\r\n\t\t\t&& !model.UniqueClientId) {\r\n\t\t\terrors.push(`Client ${message}`);\r\n\t\t}\r\n\t\tif (model.ReviewTypeIsPeriodic\r\n\t\t\t&& !model.LastPeriodId) {\r\n\t\t\terrors.push(`Last ${message}`);\r\n\t\t}\r\n\t\tif (model.IsAml) {\r\n\t\t\tif (criteriaList.length == 0\r\n\t\t\t\t|| criteriaList.filter(x => x.PropertyDefinitionId == null || x.ExpressionTypeId == null || x.Value == null).length != 0) {\r\n\t\t\t\terrors.push(`Criteria ${message}`);\r\n\t\t\t}\r\n\t\t} else if (model.IsAml == false) {\r\n\t\t\tif ((criteriaList.length == 0\r\n\t\t\t\t|| criteriaList.filter(x => x.PropertyDefinitionId == null || x.ExpressionTypeId == null || x.Value == null).length != 0)\r\n\t\t\t\t&& model.VerificationList.filter(x => x.IsSelected).length == 0) {\r\n\t\t\t\terrors.push(\"Criteria and verifications cannot be empty at the same time.\");\r\n\t\t\t} else if (model.VerificationUniqueClientId\r\n\t\t\t\t&& model.VerificationList.filter(x => x.IsSelected).length == 0) {\r\n\t\t\t\terrors.push(\"Verifications cannot be empty while the client is not empty.\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tmodel[\"IsAmlKycId\"] = !model.AmlKycId;\r\n\t\tmodel[\"IsProgramId\"] = !model.ProgramId;\r\n\t\tmodel[\"IsClassDefinitionId\"] = !model.ClassDefinitionId;\r\n\t\tmodel[\"IsDescription\"] = !model.Description;\r\n\t\tmodel[\"IsReviewTypeId\"] = model.IsAml && !model.ReviewTypeId;\r\n\t\tmodel[\"IsUniqueClientId\"] = model.ReviewTypeIsPeriodic && !model.UniqueClientId;\r\n\t\tmodel[\"IsLastPeriodId\"] = model.ReviewTypeIsPeriodic && !model.LastPeriodId;\r\n\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, list, expressionTypeList, expressionTypeEqualList, criteriaList, selected } = this.state;\r\n\t\tconst { Disabled, ExecuteApiPost, showConfirmMessageInDelete } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t this.SubmitOrUpdate(\"Insert\")\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Update\",\r\n\t\t\t\t\t\t\tDisabled: Disabled || selected == null,\r\n\t\t\t\t\t\t\tOnClick: () => this.SubmitOrUpdate(\"Update\")\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Delete\",\r\n\t\t\t\t\t\t\tDisabled: Disabled || selected == null,\r\n\t\t\t\t\t\t\tOnClick: () => showConfirmMessageInDelete(() => ExecuteApiPost(`${model.IsAml ? \"/amlkycapi/v1.0/AmlScenario/Delete\" : \"/amlkycapi/v1.0/KycScenario/Delete\"}`, { Id: model.Id }, null, null, null, [this.Clear, this.Search], true))\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Clear\",\r\n\t\t\t\t\t\t\tDisabled: Disabled,\r\n\t\t\t\t\t\t\tOnClick: () => this.Clear(true)\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t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t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t: null\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ Criteria\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tcriteriaList && criteriaList.map((item, index) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.ValueChangedDeleteButton(index)}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDelete\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.ValueChangedCriteria(name, value, data, index)} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.ValueChangedCriteria(name, value, data, index)} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.ValueChangedCriteria(name, value, data, index)} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.ValueChangedCriteria(name, value, data, index)} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tmodel.VerificationList && model.VerificationList.map(x => {\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t this.ValueCheckChanged(\"Verification\", x.Index)} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nAmlKycScenario.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default AmlKycScenario;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { DetailIcon } from \"core/Icons\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericGrid } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\n\r\nclass AmlScenarioBlacklist extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tRouteHelper.Push(props.history, \"/AMLKYCScenario\", \"AmlKycScenarioScenarioDetail\", {\r\n\t\t\t\t\t\t\t\t\tIsAml: true,\r\n\t\t\t\t\t\t\t\t\tScenarioCode: row.original.AmlScenarioCode\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t}} />\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\twidth: 50\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"AML Scenario Description\",\r\n\t\t\t\taccessor: \"AmlScenarioDescription\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Full Name\",\r\n\t\t\t\taccessor: \"FullName\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {}\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"AML & KYC\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Scenario Blacklist\");\r\n\t\t}\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tconst { list } = this.state;\r\n\r\n\t\tthis.setState({ model: list[index], selected: index });\r\n\t}\r\n\r\n\tList = async () => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/amlkycapi/v1.0/AmlScenarioBlacklist/List\", {});\r\n\r\n\t\tthis.setState({ list: result || [] });\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, list: [], selected: null });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, list, selected } = this.state;\r\n\t\tconst { Disabled, ExecuteApiPost, showConfirmMessageInDelete } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t showConfirmMessageInDelete(() => ExecuteApiPost(\"/amlkycapi/v1.0/AmlScenarioBlacklist/Delete\", { Id: model.Id }, null, null, null, [this.Clear, this.List], true))\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Clear\",\r\n\t\t\t\t\t\t\tDisabled: Disabled,\r\n\t\t\t\t\t\t\tOnClick: this.Clear\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nAmlScenarioBlacklist.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default AmlScenarioBlacklist;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericCheckInput, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericDateInput, GenericLabel } from \"views/Components/Generic\";\r\nimport { MonthsOfYear, MenuCodes, GridColumnType } from \"views/Constants/Constant.js\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\n\r\nclass CanadaPostRequestReport extends React.Component {\r\n\r\n\tconstructor(props) {\r\n\r\n\t\tsuper(props);\r\n\r\n\r\n\t\tthis.isBackOffice = ClientHelper.IsBackOffice();\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t};\r\n\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Unique Client Id\",\r\n\t\t\t\taccessor: \"UniqueClientId\",\r\n\t\t\t\tshow: this.isBackOffice,\r\n\t\t\t\tCell: row => row.value == 0 ? \"BackOffice\" : row.value\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"UniqueClientName\",\r\n\t\t\t\tshow: this.isBackOffice,\r\n\t\t\t\tCell: row => row.value == \"\" ? \"BackOffice\" : row.value\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reqeust Date\",\r\n\t\t\t\taccessor: \"RequestDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Request Count\",\r\n\t\t\t\taccessor: \"RequestCount\"\r\n\t\t\t}\r\n\r\n\t\t];\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tvModel: {}\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\t\tsetAppCenterTitle(\"Reports\");\r\n\t\tsetAppLeftTitle(\"Canada Post Request Report\");\r\n\t}\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tvar result = await ExecuteApiPost(\"/bankapi/v1.0/Reporting/CanadaPostRequestReportList\", model, null, null, null);\r\n\t\tthis.setState({ list: result || [] });\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, list: [], selected: null, Month: [] });\r\n\t}\r\n\r\n\t// Validate = () => {\r\n\t// \tvar { model } = this.state;\r\n\t// \tconst { showValidationErrors } = this.props;\r\n\t// \tconst vModel = { ...this.state.vModel };\r\n\t// \tvar errors = [];\r\n\r\n\t// \tif (!model.ParentMenuId\r\n\t// \t\t|| model.ParentMenuId == -2) {\r\n\t// \t\terrors.push(\"Parent menu can not be null.\");\r\n\t// \t}\r\n\t// \tif (!model.SubMenuId) {\r\n\t// \t\terrors.push(\"Sub menu can not be null.\");\r\n\t// \t}\r\n\t// \tif (!model.ActionId) {\r\n\t// \t\terrors.push(\"Action can not be null.\");\r\n\t// \t}\r\n\r\n\t// \tif (errors.length > 0) {\r\n\t// \t\tshowValidationErrors(errors);\r\n\r\n\t// \t\treturn false;\r\n\t// \t}\r\n\r\n\t// \treturn true;\r\n\t// }\r\n\r\n\r\n\r\n\trender() {\r\n\t\tconst { model, list } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.ValueChanged}\r\n\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={!this.isBackOffice}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCanadaPostRequestReport.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any,\r\n\tclasses: PropTypes.object\r\n\r\n};\r\nexport default withArtifex(CanadaPostRequestReport, {});\r\n","import { DialogContent, Slide, withStyles, CardMedia } from \"@material-ui/core\";\r\nimport { blackColor } from \"assets/jss/material-dashboard-pro-react.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport Tooltip from \"react-tooltip-lite\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericDialog, GenericDialogActions, GenericEmailInput, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTextInput, GenericLabel, GenericRadioInput } from \"views/Components/Generic\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { CanadaPostIdVerificationStatus, GridColumnType, IdentityType } from \"views/Constants/Constant\";\r\nimport { MaxLength128 } from \"views/Constants/Constant.MaxLength\";\r\nimport { DialogTitle } from \"@material-ui/core\";\r\nimport Select from \"react-select\";\r\nimport { Proxy } from \"core\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { DetailIcon } from \"core/Icons\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport externalContainerStyle from \"assets/jss/material-dashboard-pro-react/layouts/externalContainerStyle.jsx\";\r\n\r\n\r\nfunction Transition(props) {\r\n\treturn ;\r\n}\r\n\r\nclass CanadaPostVerification extends React.Component {\r\n\t\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t this.showDetail(row.original)} \r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\twidth: 100\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Created Date\",\r\n\t\t\t\taccessor: \"CreatedDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"First Name\",\r\n\t\t\t\taccessor: \"FirstName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Last Name\",\r\n\t\t\t\taccessor: \"LastName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date Of Birth\",\r\n\t\t\t\taccessor: \"DateOfBirth\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Credential\",\r\n\t\t\t\taccessor: \"CredentialDescription\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Proof of Residence\",\r\n\t\t\t\taccessor: \"ProofOfResidenceDescription\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Address Line\",\r\n\t\t\t\taccessor: \"AddressLine\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"City\",\r\n\t\t\t\taccessor: \"City\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Province\",\r\n\t\t\t\taccessor: \"Province\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Postal Code\",\r\n\t\t\t\taccessor: \"PostalCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Verification Status\",\r\n\t\t\t\taccessor: \"VerificationStatusDescription\"\r\n\t\t\t}\r\n\t\t];\r\n\t\tthis.getappCenterTitle = \"Empty\";\r\n\t\tthis.getappLeftTitle = \"Empty\";\r\n\t\tthis.zIndex10 = { zIndex: 10 };\r\n\t\tthis.isClient = ClientHelper.IsClient();\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: this.isClient ? ClientHelper.GetClientId() : undefined,\r\n\t\t};\r\n\r\n\t\tif (!this.isClient) {\r\n\t\t\tthis.columns.splice(1, 0,\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Client\",\r\n\t\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\tisSendEmailDialogOpen: false,\r\n\t\t\tactiveClient: [],\r\n\t\t\tresponseDetail: {},\r\n\t\t\tisDetailDialogOpen: false\r\n\t\t};\r\n\t\tthis.cpverTable = React.createRef();\r\n\t}\r\n\r\n\tcomponentDidMount = () => {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\t\tthis.LoadCanadaPost();\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"AML & KYC\");\r\n\t\t\t this.getappCenterTitle = \"AML & KYC\";\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Canada Post Verification\");\r\n\t\t\tthis.getappLeftTitle = \"Canada Post Verification\";\r\n\t\t}\r\n\r\n\t\tvar canadaPostVerificationFromAmlKycAlert = RouteHelper.ReadAndClear(\"CanadaPostVerificationFromAmlKycAlert\");\r\n\r\n\t\tif (canadaPostVerificationFromAmlKycAlert != null) {\r\n\t\t\tthis.OpenFromOtherScreen(canadaPostVerificationFromAmlKycAlert.CanadaPostVerificationId);\r\n\t\t}\r\n\r\n\t\tvar canadaPostVerificationFromStatusControlLog = RouteHelper.ReadAndClear(\"CanadaPostVerificationFromStatusControlLog\");\r\n\r\n\t\tif (canadaPostVerificationFromStatusControlLog != null) {\r\n\t\t\tthis.OpenFromOtherScreen(canadaPostVerificationFromStatusControlLog.CanadaPostVerificationId);\r\n\t\t}\r\n\t}\r\n\r\n\tLoadCanadaPost = async () => {\r\n\r\n\t\tvar parent = this;\r\n\t\tvar result = await this.props.ExecuteApiPost(\"/coreapi/v1.0/Parameter/Search\", {\r\n\t\t\tParameterCode: \"CanadaPostApiKey\",\r\n\t\t\tParameterValue: \"CP\"\r\n\t\t});\r\n\t\tif (result?.length > 0) {\r\n\t\t\tvar apikey = result[0].ParameterDesc;\r\n\r\n\t\t\tvar url = window.CanadaPostAddressCompleteUrl;\r\n\t\t\tvar path = url + apikey;\r\n\t\t\tvar CanadaPostRequest=this.SubmitCanadaPostRequest;\r\n\t\t\tvar pca;\r\n\t\t\tconst script = document.createElement(\"script\");\r\n\t\t\tscript.src = path;\r\n\t\t\tscript.async = false;\r\n\t\t\tdocument.head.appendChild(script);\r\n\t\t\tscript.onload = function () {\r\n\t\t\t\tpca = window.pca;\r\n\t\t\t\tif (pca != null) {\r\n\t\t\t\t\tvar fields =\r\n\t\t\t\t\t\t[\r\n\t\t\t\t\t\t\t{ element: \"street-address\", field: \"Line1\", mode: pca.fieldMode.SEARCH },\r\n\t\t\t\t\t\t\t{ element: \"street-address2\", field: \"Line2\", mode: pca.fieldMode.POPULATE },\r\n\t\t\t\t\t\t\t{ element: \"postcode\", field: \"PostalCode\", mode: pca.fieldMode.SEARCH },\r\n\t\t\t\t\t\t],\r\n\t\t\t\t\t\toptions = {\r\n\t\t\t\t\t\t\tkey: apikey\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\tcontrol = new pca.Address(fields, options);\r\n\t\t\t\t\t\tCanadaPostRequest();\r\n\t\t\t\t\tcontrol.listen(\"populate\", function (address) {\r\n\t\t\t\t\t\tparent.setState(state => {\r\n\t\t\t\t\t\t\tstate.model.AddressLine = address.Line1 + \" \" + address.Line2;\r\n\t\t\t\t\t\t\tstate.model.PostalCode = address.PostalCode;\r\n\t\t\t\t\t\t\tstate.model.Province = address.ProvinceCode;\r\n\t\t\t\t\t\t\tstate.model.City = address.City;\r\n\t\t\t\t\t\t\treturn state;\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t};\r\n\r\n\t\t}\r\n\r\n\t}\r\n\tSubmitCanadaPostRequest = async () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tvar requestdata = { \r\n\r\n\t\t\tUniqueClientId: null,\r\n\t\t\tMenuCode:this.props.MenuCode,\r\n\t\t\tAppCenterTitle:this.getappCenterTitle,\r\n\t\t\tAppLeftTitle:this.getappLeftTitle\r\n\t\t};\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Reporting/CanadaPostRequestReportInsert\",\r\n\t\t\trequestdata,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (responseData.Item != null ) {\r\n\t\t\t\t\t \r\n\t\t\t\t}\r\n\t\t\t},\r\n \t\t);\r\n\t\t// var result = await this.props.ExecuteApiPost(\"/bankapi/v1.0/Reporting/CanadaPostRequestReportInsert\", requestdata);\r\n\t}\r\n\tOpenFromOtherScreen = async (canadaPostVerificationId) => {\r\n\t\tawait this.Search();\r\n\t\tawait this.GetById(canadaPostVerificationId);\r\n\r\n\t\tconst { list } = this.state;\r\n\t\tvar selected = list.map(function (e) { return e.Id; }).indexOf(canadaPostVerificationId);\r\n\r\n\t\tthis.RowSelected(selected);\r\n\t}\r\n\r\n\tValueChanged = (name, value, data) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\tif (name == \"CredentialId\") {\r\n\t\t\t\tmodel.IdentityTypeParameterValue2 = data && data.ParameterValue2;\r\n\t\t\t\tmodel.ProofOfResidenceCredentialId = null;\r\n\t\t\t}\r\n\t\t\telse if (name == \"EmailAddress\") {\r\n\t\t\t\tmodel[\"EmailAddressIsValid\"] = data.IsValid;\r\n\t\t\t}\r\n\t\t\telse if (this.isClient && name == \"UniqueClientId\") {\r\n\t\t\t\tstate.activeClient = [data];\r\n\t\t\t}\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tconst { list } = this.state;\r\n\t\tvar temp = list[index];\r\n\r\n\t\ttemp.IdentityTypeParameterValue2 = temp && temp.CredentialParameterValue2;\r\n\r\n\t\tthis.setState({ model: temp, selected: index });\r\n\t}\r\n\r\n\tSendEmaiDialogOpen = () => {\r\n\t\tthis.setState({ isSendEmailDialogOpen: true });\r\n\t}\r\n\r\n\tSendEmaiDialogClose = () => {\r\n\t\tvar { model } = this.state;\r\n\t\tmodel.EmailAddress = undefined;\r\n\r\n\t\tthis.setState({ model, isSendEmailDialogOpen: false });\r\n\t}\r\n\r\n\tGetById = async (canadaPostVerificationId) => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/amlkycapi/v1.0/CanadaPostVerification/GetById\", { Id: canadaPostVerificationId });\r\n\t\tvar model = result || {};\r\n\t\tmodel.DateOfBirth = Formatter.FormatDate(model.DateOfBirth);\r\n\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/amlkycapi/v1.0/CanadaPostVerification/Search\", model);\r\n\r\n\t\tthis.setState({ list: result || [] });\r\n\t}\r\n\r\n\tSendEmail = async () => {\r\n\t\tvar { model } = this.state;\r\n\t\tconst { MenuCode, showMessage } = this.props;\r\n\r\n\t\tif (model.EmailAddressIsValid != true) {\r\n\t\t\tshowMessage(\"warning\", \"Warning\", \"E-Mail Address is not valid.\");\r\n\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tmodel.MenuCode = MenuCode;\r\n\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/amlkycapi/v1.0/CanadaPostVerification/SendEmail\", model);\r\n\r\n\t\tif (result != null && result == true) {\r\n\t\t\tshowMessage(\"info\", \"Information\", \"Email sent successfully.\");\r\n\t\t\tthis.SendEmaiDialogClose();\r\n\t\t}\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, list: [], selected: null });\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tvar { model } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errors = [];\r\n\r\n\t\tif (!model.FirstName) {\r\n\t\t\terrors.push(\"First name cannot be null\");\r\n\t\t}\r\n\t\tif (!model.LastName) {\r\n\t\t\terrors.push(\"Last name cannot be null\");\r\n\t\t}\r\n\r\n\t\tvar age = DateHelper.GetDate().diff(model.DateOfBirth, \"years\");\r\n\r\n\t\tif (!model.DateOfBirth) {\r\n\t\t\terrors.push(\"Date of birth cannot be null\");\r\n\t\t}\r\n\t\tif (!model.AddressLine) {\r\n\t\t\terrors.push(\"Address line cannot be null\");\r\n\t\t}\r\n\t\tif (!model.Province) {\r\n\t\t\terrors.push(\"Province cannot be null\");\r\n\t\t}\r\n\t\tif (!model.City) {\r\n\t\t\terrors.push(\"City cannot be null\");\r\n\t\t}\r\n\t\tif (!model.PostalCode) {\r\n\t\t\terrors.push(\"Postal code cannot be null\");\r\n\t\t}\r\n\t\tif (!model.CredentialId) {\r\n\t\t\terrors.push(\"Credential cannot be null\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (model.IdentityTypeParameterValue2 == IdentityType.OnePoR && !model.ProofOfResidenceCredentialId) {\r\n\t\t\t\terrors.push(\"Proof of residence cannot be null\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tmodel[\"IsFirstName\"] = !model.FirstName;\r\n\t\tmodel[\"IsLastName\"] = !model.LastName;\r\n\t\tmodel[\"IsDateOfBirth\"] = !model.DateOfBirth;\r\n\t\tmodel[\"IsAddressLine\"] = !model.AddressLine;\r\n\t\tmodel[\"IsProvince\"] = !model.Province;\r\n\t\tmodel[\"IsCity\"] = !model.City;\r\n\t\tmodel[\"IsPostalCode\"] = !model.PostalCode;\r\n\t\tmodel[\"IsCredentialId\"] = !model.CredentialId;\r\n\t\tmodel[\"IsProofOfResidenceCredentialId\"] = model.IdentityTypeParameterValue2 == IdentityType.OnePoR && !model.ProofOfResidenceCredentialId;\r\n\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\tRenderItemUniqueClient = (x) => {\r\n\t\tvar result = `${x.UniqueClientId} - ${x.Name}`;\r\n\r\n\t\treturn result;\r\n\t}\r\n\tValueChangedForReportType = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\tExportClick = () => {\r\n\t\tvar cpverColumns = [];\r\n\t\tthis.cpverTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.show == undefined || c.show) {\r\n\t\t\t\tcpverColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: cpverColumns, ExportSelectedColumns: cpverColumns });\r\n\t}\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\r\n\t\tconst temp = { ...this.state.model };\r\n\r\n\r\n\t\tvar jsonColList = [];\r\n\r\n\t\tvar cpverColumns = {};\r\n\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\tcpverColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t});\r\n\t\tjsonColList.push(cpverColumns);\r\n\r\n\t\tvar mytitle = \"Canada Post Verification\";\r\n\r\n\t\ttemp.jsonFile = {\r\n\t\t\tcolmns: jsonColList,\r\n\t\t\tformat: this.state.ExportReportType,\r\n\t\t\ttitle: mytitle\r\n\t\t};\r\n\r\n\t\tvar request = {\r\n\t\t\tUniqueClientId: temp.UniqueClientId,\r\n\t\t\tFirstName: temp.FirstName,\r\n\t\t\tLastName : temp.LastName,\r\n\t\t\tDateOfBirth:temp.DateOfBirth,\r\n\t\t\tCredentialId:temp.CredentialId,\r\n\t\t\tAddressLine:temp.AddressLine,\r\n\t\t\tCity:temp.City,\r\n\t\t\tProvince:temp.Province,\r\n\t\t\tPostalCode:temp.PostalCode,\r\n\t\t\tjsonFile: temp.jsonFile\r\n\t\t};\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\"/amlkycapi/v1.0/CanadaPostVerification/ExportDownload\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t},\r\n\t\t\tthis.props.showMessage\r\n\t\t);\r\n\t}\r\n\r\n\tshowLoading = () => { this.setState({ isLoading: true }); }\r\n\thideLoading = () => { this.setState({ isLoading: false }); }\r\n\r\n\tshowDetail = async (result) =>\r\n\t{\r\n\t\tthis.setState({ responseDetail: result || [] , isDetailDialogOpen: true });\r\n\t}\r\n\r\n\tDetailDialogClose = () => {\r\n\t\tthis.setState({ isDetailDialogOpen: false });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, list, selected, isSendEmailDialogOpen, activeClient, isLoading, isDetailDialogOpen, responseDetail } = this.state;\r\n\t\tconst { MenuCode, Disabled, ExecuteApiPost, ExecuteApiFileDownloadWithGenericResponse, showConfirmMessageInDelete, classes } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t ExecuteApiPost(\"/amlkycapi/v1.0/CanadaPostVerification/Insert\", model, null, null, this.Validate, [this.Clear, this.Search], true)\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Delete\",\r\n\t\t\t\t\t\t\tDisabled: Disabled || selected == null,\r\n\t\t\t\t\t\t\tOnClick: () => showConfirmMessageInDelete(() => ExecuteApiPost(\"/amlkycapi/v1.0/CanadaPostVerification/Delete\", { Id: model.Id }, null, null, null, [this.Clear, this.Search], true))\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Print\",\r\n\t\t\t\t\t\t\tDisabled: Disabled || model.VerificationStatusId == null || (model.VerificationStatusId != null && model.VerificationStatusParameterValue != CanadaPostIdVerificationStatus.None),\r\n\t\t\t\t\t\t\tOnClick: () => ExecuteApiFileDownloadWithGenericResponse(\"/amlkycapi/v1.0/CanadaPostVerification/Print\", { Id: model.Id, MenuCode: MenuCode }, model.BarcodeData, \"pdf\")\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"SendEmail\",\r\n\t\t\t\t\t\t\tDisabled: Disabled || model.VerificationStatusId == null || (model.VerificationStatusId != null && model.VerificationStatusParameterValue != CanadaPostIdVerificationStatus.None),\r\n\t\t\t\t\t\t\tOnClick: this.SendEmaiDialogOpen\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Clear\",\r\n\t\t\t\t\t\t\tDisabled: Disabled,\r\n\t\t\t\t\t\t\tOnClick: this.Clear\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{ Code: \"Export\",\tOnClick: this.ExportClick,Disabled: Disabled }\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\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\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n \t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCanadaPostVerification.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tExecuteApiFileDownloadWithGenericResponse: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default withStyles(externalContainerStyle)(CanadaPostVerification) ;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { DetailIcon } from \"core/Icons\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericExpansionPanel, GenericGrid, GenericDialog, GenericRadioInput, GenericLabel, GenericDialogActions } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\nimport Select from \"react-select\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nclass CanadaPostVerificationStatusControlLog extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tRouteHelper.Push(props.history, \"/CanadaPostVerification\", \"CanadaPostVerificationFromStatusControlLog\", {\r\n\t\t\t\t\t\t\t\t\tCanadaPostVerificationId: row.original.CanadaPostVerificationId\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t}} />\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\twidth: 50\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Control Date\",\r\n\t\t\t\taccessor: \"ControlDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc,\r\n\t\t\t\twidth: 100\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Response\",\r\n\t\t\t\taccessor: \"Response\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\t\tthis.cpvslogTable = React.createRef();\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"AML & KYC\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Canada Post Verification Status Control Log\");\r\n\t\t}\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\tif (name == \"FromDate\") {\r\n\t\t\t\tmodel[\"ToDate\"] = undefined;\r\n\t\t\t}\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\r\n\tSearch = async () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/amlkycapi/v1.0/CanadaPostVerificationStatusControlLog/Search\", model);\r\n\r\n\t\tthis.setState({ list: result || [] });\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, list: [] });\r\n\t}\r\n\tValueChangedForReportType = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\tExportClick = () => {\r\n\t\tvar cpvslogColumns = [];\r\n\t\tthis.cpvslogTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.show == undefined || c.show) {\r\n\t\t\t\tcpvslogColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: cpvslogColumns, ExportSelectedColumns: cpvslogColumns });\r\n\t}\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\r\n\t\tconst temp = { ...this.state.model };\r\n\r\n\r\n\t\tvar jsonColList = [];\r\n\r\n\t\tvar cpvslogColumns = {};\r\n\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\tcpvslogColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t});\r\n\t\tjsonColList.push(cpvslogColumns);\r\n\r\n\t\tvar mytitle = \"Canada Post Verification Status Control Log\";\r\n\r\n\t\ttemp.jsonFile = {\r\n\t\t\tcolmns: jsonColList,\r\n\t\t\tformat: this.state.ExportReportType,\r\n\t\t\ttitle: mytitle\r\n\t\t};\r\n\r\n\t\tvar request = {\r\n\t\t\t\tFromDate:temp.FromDate,\r\n\t\t\t\tToDate:temp.ToDate,\r\n\t\t\t\tjsonFile: temp.jsonFile\r\n\t\t};\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\"/amlkycapi/v1.0/CanadaPostVerificationStatusControlLog/CanadaPostVerificationStatusControlLogExportDownload\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t},\r\n\t\t\tthis.props.showMessage\r\n\t\t);\r\n\t}\r\n\r\n\tshowLoading = () => { this.setState({ isLoading: true }); }\r\n\thideLoading = () => { this.setState({ isLoading: false }); }\r\n\r\n\trender() {\r\n\t\tconst { model, list, isLoading } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCanadaPostVerificationStatusControlLog.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default CanadaPostVerificationStatusControlLog;","\r\n\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericSelectInput } from \"views/Components/Generic\";\r\n\r\nclass IdIntroduction extends React.Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.initialState = {\r\n\t\t\tmodel: {},\r\n\t\t\tvModel: {},\r\n\t\t\tmodelList: [],\r\n\t\t\tfilterModel: {},\r\n\t\t\tvisibilityModel: {},\r\n\t\t\tisOpenkycUploadWindow: false,\r\n\t\t\tisIdentityTypeAddOpen: false,\r\n\t\t\tInsertedIdentityType: null,\r\n\t\t\tverificationResultModel: null,\r\n\t\t\tidentityTypeModel: {}\r\n\t\t};\r\n\t\tthis.state = Object.assign({\r\n\t\t\tidentityTypeList: [],\r\n\t\t\ttempIdentityTypeList: []\r\n\t\t}, this.initialState);\r\n\t\tthis.emptyObject = {};\r\n\t\tthis.gridSortParameter = [{ id: \"Name\", desc: false }];\r\n\t\tthis.placeholderNA = \"-\";\r\n\t\tthis.columnsData = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Third Party Identity Type\",\r\n\t\t\t\taccessor: \"Name\",\r\n\t\t\t\tCell: row => row.value\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Country\",\r\n\t\t\t\taccessor: \"Country.Name\",\r\n\t\t\t\tCell: row => row.value || this.placeholderNA\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Province\",\r\n\t\t\t\taccessor: \"Province.Name\",\r\n\t\t\t\tCell: row => row.value || this.placeholderNA\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppCenterTitle && this.props.setAppCenterTitle(\"AML & KYC\");\r\n\t\tthis.props.setAppLeftTitle && this.props.setAppLeftTitle(\"Identity Type\");\r\n\r\n\t}\r\n\r\n\tValueChanged = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleSearch = async () => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tconst { filterModel } = this.state;\r\n\t\tvar result = await ExecuteApiPost(\"/amlkycapi/v1.0/DigitalIdentityVerificationIdentityDocument/Search\", filterModel);\r\n\r\n\t\tthis.setState({ modelList: result || [] });\r\n\r\n\t}\r\n\tHandleClear = () => {\r\n\t\tvar defaultState = Object.assign({}, this.initialState);\r\n\t\tthis.setState(defaultState);\r\n\t}\r\n\r\n\tValueChangedFilter = (name, newValue, data) => {\r\n\t\tconst filterModel = { ...this.state.filterModel };\r\n\r\n\t\tfilterModel[name] = newValue;\r\n\t\tthis.setState({ filterModel });\r\n\t}\r\n\tHandleEditDigitalIdentityType = (identityTypeModel) => async () => {\r\n\t\tthis.setState({ identityTypeModel });\r\n\t}\r\n\tRenderIdentityTypeList = (a) => {\r\n\t\treturn (a.Name + (a.HasRecognized ? \"*\" : \"\"));\r\n\t}\r\n\trender() {\r\n\t\tconst { model, vModel, identityTypeModel, modelList, filterModel, verificationResultModel, isOpenkycUploadWindow, isIdentityTypeAddOpen, identityTypeList } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t<>\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nIdIntroduction.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\nexport default IdIntroduction;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericSelectInput } from \"views/Components/Generic\";\r\n\r\nconst ApiUrlBase = \"/amlkycapi/v1.0/DigitalIdentityVerificationIdentityTypeMap/\";\r\nconst ApiUrl = {\r\n\tSearch: ApiUrlBase + \"Search\",\r\n\tUpdate: ApiUrlBase + \"Update\",\r\n\tDelete: ApiUrlBase + \"Delete\",\r\n};\r\nclass DigitalVerificationIdentityTypeMap extends React.Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.initialState = {\r\n\t\t\tmodel: {},\r\n\t\t\tmodelList: []\r\n\t\t};\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\tmodelList: [],\r\n\t\t\ttempModelList: [],\r\n\t\t\tvouchedIdIdentityTypeList: [],\r\n\t\t\tidentityTypeList: []\r\n\t\t};\r\n\t\tthis.state = Object.assign(this.state, this.initialState);\r\n\t\tthis.sortedParameterDesc = { Member: \"ParameterDesc\" };\r\n\t\tthis.emptyObject = {};\r\n\t\tthis.gridSortParameter = [{ id: \"Name\", desc: false }];\r\n\t\tthis.placeholderNA = \"-\";\r\n\t\tthis.identityDialogButtonStyle = {\r\n\t\t\tflexDirection: \"row\",\r\n\t\t\tdisplay: \"flex\",\r\n\t\t\tjustifyContent: \"flex-end\",\r\n\t\t};\r\n\r\n\t\tthis.isBackOffice = ClientHelper.IsBackOffice();\r\n\t\tthis.uniqueClientId = ClientHelper.GetClientId();\r\n\r\n\r\n\t\tthis.columnsData = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Identity Type Name\",\r\n\t\t\t\taccessor: \"ParameterIdentityType.ParameterDesc\",\r\n\t\t\t\tCell: row => row.value,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Third Party Identity Type\",\r\n\t\t\t\taccessor: \"DigitalIdentityType.Name\",\r\n\t\t\t\tCell: row => row.value,\r\n\t\t\t},\r\n\t\t];\r\n\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppCenterTitle && this.props.setAppCenterTitle(\"AML & KYC\");\r\n\t\tthis.props.setAppLeftTitle && this.props.setAppLeftTitle(\"Identity Type Map\");\r\n\r\n\t\tthis.GetVouchedIdIdentityTypeList();\r\n\t\tthis.GetIdentityTypeList();\r\n\t}\r\n\r\n\tValueChanged = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\tValueChangedIdentityType = (name, newValue, data) => {\r\n\t\tconst identityTypeModel = { ...this.state.identityTypeModel };\r\n\r\n\t\tidentityTypeModel[name] = newValue;\r\n\t\tthis.setState({ identityTypeModel });\r\n\t}\r\n\tValueChangedFilter = (name, newValue, data) => {\r\n\t\tconst filterModel = { ...this.state.filterModel };\r\n\r\n\t\tfilterModel[name] = newValue;\r\n\t\tthis.setState({ filterModel });\r\n\t}\r\n\tSelectedRowChange = (index) => {\r\n\t\tconst model = this.state.modelList[index];\r\n\t\tthis.setState({ model: model });\r\n\t}\r\n\tHandleSearch = async () => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(ApiUrl.Search, {}) || [];\r\n\r\n\t\tthis.setState({ model: {}, modelList: result, tempModelList: result });\r\n\r\n\t}\r\n\tGetVouchedIdIdentityTypeList = async () => {\r\n\t\tvar result = await this.props.ExecuteApiPost(\"/amlkycapi/v1.0/DigitalIdentityVerificationIdentityType/Search\");\r\n\t\tvar vouchedIdIdentityTypeList = result || [];\r\n\t\tthis.setState({ vouchedIdIdentityTypeList });\r\n\t}\r\n\tGetIdentityTypeList = async () => {\r\n\r\n\t\tvar result = await this.props.ExecuteApiPost(\"/coreapi/v1.0/Parameter/Search\", { ParameterCode: \"IdentityType\" });\r\n\t\tvar identityTypeList = result || [];\r\n\t\tthis.setState({ identityTypeList });\r\n\t}\r\n\tHandleSubmit = async () => {\r\n\t\tconst { model } = this.state;\r\n\t\tif (!this.Validate()) return;\r\n\r\n\t\tvar result = await this.props.ExecuteApiPost(ApiUrl.Update, model);\r\n\t\tif (result) {\r\n\t\t\tmodel.ParameterIdentityTypeId = null;\r\n\t\t\tthis.setState({ model: { ...model } });\r\n\t\t}\r\n\t\tthis.HandleSearch();\r\n\t}\r\n\r\n\tHandleUpdate = async () => {\r\n\t\tconst { model } = this.state;\r\n\t\tif (!this.Validate()) return;\r\n\r\n\t\tvar result = await this.props.ExecuteApiPost(ApiUrl.Update, model);\r\n\t\tif (result) {\r\n\t\t\tmodel.ParameterIdentityTypeId = null;\r\n\t\t\tthis.setState({ model: { ...model } });\r\n\t\t}\r\n\t\tthis.HandleSearch();\r\n\t}\r\n\tHandleDelete = async () => {\r\n\t\tconst { model } = this.state;\r\n\t\tif (model.Id) {\r\n\r\n\t\t\tif (!await this.props.showConfirmMessage(\"warning\", \"Warning\", \"Are you sure you want to delete this record?\")) return;\r\n\t\t\tvar result = await this.props.ExecuteApiPost(ApiUrl.Delete, { Id: model.Id });\r\n\t\t\tif (result) {\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Success\", \"Delete Sucessfully\");\r\n\t\t\t\tthis.HandleSearch();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}\r\n\tHandleClear = () => {\r\n\t\tvar defaultState = Object.assign({}, this.initialState);\r\n\t\tthis.setState(defaultState);\r\n\t}\r\n\r\n\r\n\tAddOrUpdateDigitalIdentityVerificationIdentityType = (isUpdate = false) => async () => {\r\n\t\tconst { model, identityTypeModel } = this.state;\r\n\t\tif (!this.OperationCheck(2)()) return;\r\n\t\tvar resultId = await this.props.ExecuteApiPost(ApiUrl.InsertIdentityType, { Id: identityTypeModel.Id, Name: identityTypeModel.Name });\r\n\t\tif (resultId) {\r\n\t\t\tmodel.InsertedIdentityType = resultId;\r\n\t\t\tmodel.DigitalIdentityVerificationIdentityTypeId = resultId;\r\n\t\t\tthis.setState({ model });\r\n\t\t\tthis.GetVouchedIdIdentityTypeList();\r\n\t\t\tawait this.props.showMessage(\"success\", \"Success\", `Identity Type ${isUpdate ? \"updated\" : \"added\"} successfully`);\r\n\r\n\t\t}\r\n\t}\r\n\r\n\tClearDigitalIdentityVerificationIdentityType = async () => {\r\n\t\tthis.setState({ identityTypeModel: {} });\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tif (!model.DigitalIdentityTypeId) {\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Third Party Identity Type must be selected\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (!model.ParameterIdentityTypeId) {\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Identity Type must be selected\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\tRenderVouchedIdIdentityType = (d) => {\r\n\t\treturn d.Name;\r\n\t}\r\n\r\n\tRenderIdentityType = (d) => {\r\n\t\treturn d?.ParameterDesc;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, modelList, tempModelList, identityTypeList, vouchedIdIdentityTypeList } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t<>\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t a.Id == model.ParameterIdentityTypeId || !tempModelList.find(b => b.ParameterIdentityTypeId == a.Id))}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tName=\"ParameterIdentityTypeId\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tLabelText=\"Identity Type Name\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"Id\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tTextValueMember=\"Name\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tSorted={this.sortedParameterDesc}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tRenderItem={this.RenderIdentityType}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.ParameterIdentityTypeId}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.ValueChanged}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tRequired />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nDigitalVerificationIdentityTypeMap.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\nexport default DigitalVerificationIdentityTypeMap;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport DigitalVerificationPanel from \"views/AmlKyc/DigitalVerification/DigitalVerificationPanel\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport { DigitalVerificationAction, DigitalVerificationPopupUploadCode, RoleGroup } from \"views/Constants/Constant\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\n\r\nconst ApiUrlBase = \"/amlkycapi/v1.0/DigitalIdentityVerificationIdIntroduction/\";\r\nconst ApiUrl = {\r\n\tGetVerificationResult: ApiUrlBase + \"GetResult\",\r\n\tSearch: ApiUrlBase + \"Search\"\r\n};\r\nclass IdIntroduction extends React.Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.isBackOffice = ClientHelper.IsBackOffice();\r\n\t\tthis.uniqueClientId = ClientHelper.GetClientRowId();\r\n\r\n\t\tthis.initialState = {\r\n\t\t\tmodel: {},\r\n\t\t\tvModel: {},\r\n\t\t\tmodelList: [],\r\n\t\t\tfilterModel: {\r\n\t\t\t\tUniqueClientId: this.uniqueClientId,\r\n\t\t\t\tIsRoleGroupBackoffice: true\r\n\t\t\t},\r\n\t\t\tvisibilityModel: {},\r\n\t\t\tisOpenkycUploadWindow: false,\r\n\t\t\tisIdentityTypeAddOpen: false,\r\n\t\t\tInsertedIdentityType: null,\r\n\t\t\tverificationResultModel: null,\r\n\t\t\tidentityTypeModel: {}\r\n\t\t};\r\n\t\tthis.state = Object.assign({\r\n\t\t\tidentityTypeList: [],\r\n\t\t\ttempIdentityTypeList: []\r\n\t\t}, this.initialState);\r\n\t\tthis.emptyObject = {};\r\n\t\tthis.gridSortParameter = [{ id: \"Name\", desc: false }];\r\n\t\tthis.placeholderNA = \"-\";\r\n\t\tthis.identityDialogButtonStyle = {\r\n\t\t\tflexDirection: \"row\",\r\n\t\t\tdisplay: \"flex\",\r\n\t\t\tjustifyContent: \"flex-end\",\r\n\t\t};\r\n\r\n\t\tthis.columnsData = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\",\r\n\t\t\t\tCell: row => row.value || \"Backoffice\",\r\n\t\t\t\tshow: this.isBackOffice,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"User Name\",\r\n\t\t\t\taccessor: \"UserName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"ID Type\",\r\n\t\t\t\taccessor: \"TypeName\",\r\n\t\t\t\tCell: row => row.value || this.placeholderNA\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"First Name\",\r\n\t\t\t\taccessor: \"DigitalIdentityVerification.FirstName\",\r\n\t\t\t\tCell: row => row.value || this.placeholderNA\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Last Name\",\r\n\t\t\t\taccessor: \"DigitalIdentityVerification.LastName\",\r\n\t\t\t\tCell: row => row.value || this.placeholderNA\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"ID Number\",\r\n\t\t\t\taccessor: \"DigitalIdentityVerification.IdNumber\",\r\n\t\t\t\tCell: row => row.value || this.placeholderNA\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Expire Date\",\r\n\t\t\t\taccessor: \"DigitalIdentityVerification.ExpireDate\",\r\n\t\t\t\tCell: row => row.value || this.placeholderNA\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Issue Date\",\r\n\t\t\t\taccessor: \"DigitalIdentityVerification.IssueDate\",\r\n\t\t\t\tCell: row => Formatter.FormatDate(row.value)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Birth Date\",\r\n\t\t\t\taccessor: \"DigitalIdentityVerification.BirthDate\",\r\n\t\t\t\tCell: row => Formatter.FormatDate(row.value)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Place of Issue\",\r\n\t\t\t\taccessor: \"DigitalIdentityVerification\",\r\n\t\t\t\tCell: row => row.value.Country?.Name ? (row.value.Country.Name + (row.value?.Province?.Name ? (\", \" + row.value?.Province?.Name) : \"\")) : this.placeholderNA\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Country\",\r\n\t\t\t\taccessor: \"DigitalIdentityVerification.IdCountry.Name\",\r\n\t\t\t\tCell: row => row.value || this.placeholderNA\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Province\",\r\n\t\t\t\taccessor: \"DigitalIdentityVerification.IdProvince.Name\",\r\n\t\t\t\tCell: row => row.value || this.placeholderNA\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"City\",\r\n\t\t\t\taccessor: \"DigitalIdentityVerification.IdCity.Name\",\r\n\t\t\t\tCell: row => row.value || this.placeholderNA\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Status\",\r\n\t\t\t\taccessor: \"DigitalIdentityVerification.Success\",\r\n\t\t\t\tCell: row => row.value ? \"Valid\" : \"Invalid\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Average Score\",\r\n\t\t\t\taccessor: \"AverageScore\",\r\n\t\t\t\tCell: row => row.value ? (\"%\" + row.value) : this.placeholderNA\r\n\t\t\t}\r\n\t\t];\r\n\t\tthis.styleUploadButton = { marginLeft: 40 };\r\n\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppCenterTitle && this.props.setAppCenterTitle(\"AML & KYC\");\r\n\t\tthis.props.setAppLeftTitle && this.props.setAppLeftTitle(\"ID Introduction\");\r\n\r\n\t}\r\n\r\n\tValueChanged = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\tValueChangedFilter = (name, newValue, data) => {\r\n\t\tconst filterModel = { ...this.state.filterModel };\r\n\r\n\t\tif (name == \"RoleGroupId\") {\r\n\t\t\tfilterModel[\"IsRoleGroupBackoffice\"] = data?.ParameterValue != RoleGroup.Client;\r\n\r\n\t\t\tif (data?.ParameterValue != RoleGroup.Client) {\r\n\t\t\t\tfilterModel.UniqueClientId = null;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfilterModel[name] = newValue;\r\n\t\tthis.setState({ filterModel });\r\n\t}\r\n\tSelectedRowChange = (index) => {\r\n\t\tconst model = this.state.modelList[index];\r\n\t\tthis.GetDigitalIdentityInfo(model);\r\n\t\tthis.setState({ model: model });\r\n\t}\r\n\tHandleSearch = async () => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tconst { filterModel } = this.state;\r\n\t\tvar result = await ExecuteApiPost(ApiUrl.Search, filterModel);\r\n\r\n\t\tthis.setState({ modelList: result || [] });\r\n\r\n\t}\r\n\tHandleClear = () => {\r\n\t\tvar defaultState = Object.assign({}, this.initialState);\r\n\t\tthis.setState(defaultState);\r\n\t}\r\n\r\n\tHandlePopupManualUpload = async () => {\r\n\t\tconst { model } = this.state;\r\n\t\tmodel.Code = DigitalVerificationPopupUploadCode.IdIntroduction;\r\n\t\tlocalStorage.setItem(DigitalVerificationAction.PopupUpload, JSON.stringify(model));\r\n\t\tthis.popupUploadWindow = window.open(\"/#/out/KycPhotoUpload\", \"_blank\", \"toolbar=no,scrollbars=no,resizable=yes,top=100,left=100,width=1200,height=800\");\r\n\t\tthis.setState({ isOpenkycUploadWindow: true });\r\n\t\tvar popupCloseAwaiter = new Promise((resolve) => {\r\n\t\t\tthis.popupUploadWindow.onunload = () => {\r\n\t\t\t\tif (this.popupUploadWindow.location.href == \"about:blank\") {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tvar parsed = JSON.parse(localStorage.getItem(DigitalVerificationAction.PopupUpload));\r\n\t\t\t\tif (this.popupUploadWindow?.closed && parsed?.Id > 0) {\r\n\t\t\t\t\tthis.GetDigitalIdentityInfo(model);\r\n\t\t\t\t\tresolve(parsed);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tresolve(false);\r\n\t\t\t\t}\r\n\t\t\t\tlocalStorage.removeItem(DigitalVerificationAction.PopupUpload);\r\n\t\t\t\tthis.popupUploadWindow = null;\r\n\t\t\t\tthis.setState({ isOpenkycUploadWindow: false });\r\n\t\t\t};\r\n\t\t});\r\n\r\n\t\tvar result = await popupCloseAwaiter;\r\n\t\tif (result) {\r\n\t\t\tthis.HandleSearch();\r\n\t\t\tthis.GetDigitalIdentityInfo(result);\r\n\t\t\tthis.setState({ model: result });\r\n\t\t\tawait this.props.showMessage(\"success\", \"Success\", \"Photos uploaded & verify process successfully completed!\");\r\n\t\t}\r\n\t\treturn result;\r\n\r\n\t}\r\n\tGetRenderItemClientSelect = (d) => {\r\n\t\treturn `${d.UniqueClientId} - ${d.Name}`;\r\n\t}\r\n\r\n\tGetDigitalIdentityInfo = async (model) => {\r\n\r\n\t\tif (!model?.Id) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tvar result = await this.props.ExecuteApiPost(ApiUrl.GetVerificationResult, { IdIntroductionId: model?.Id });\r\n\t\tif (result) {\r\n\t\t\tmodel.IdentityPhotoId = result.IdentityPhotoId;\r\n\t\t\tmodel.IdentityPhotoBackId = result.IdentityPhotoBackId;\r\n\t\t\tdelete result.IdentityPhotoId;\r\n\t\t\tdelete result.IdentityPhotoBackId;\r\n\t\t}\r\n\t\tthis.setState({ verificationResultModel: result });\r\n\t}\r\n\r\n\r\n\r\n\tClearDigitalIdentityVerificationIdentityType = async () => {\r\n\t\tthis.setState({ identityTypeModel: {} });\r\n\t}\r\n\r\n\r\n\r\n\tRenderIdentityTypeList = (a) => {\r\n\t\treturn (a.Name + (a.HasRecognized ? \"*\" : \"\"));\r\n\t}\r\n\trender() {\r\n\t\tconst { model, modelList, filterModel, verificationResultModel, isOpenkycUploadWindow } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\r\n\t\treturn (\r\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\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nIdIntroduction.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\nexport default IdIntroduction;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericLabel, GenericNumberInput } from \"views/Components/Generic\";\r\n\r\nclass FeeProfile extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tlist: []\r\n\t\t};\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"AML & KYC\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Fee Profile\");\r\n\t\t}\r\n\r\n\t\tthis.List();\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar list = state.list;\r\n\r\n\t\t\tif (name.includes(\"FeeAmount\")) {\r\n\t\t\t\tvar index = name.replace(\"FeeAmount\", \"\");\r\n\t\t\t\tlist[index].FeeAmount = value;\r\n\t\t\t} else if (name.includes(\"Cost\")) {\r\n\t\t\t\tindex = name.replace(\"Cost\", \"\");\r\n\t\t\t\tlist[index].Cost = value;\r\n\t\t\t} else if (name.includes(\"ValidFrom\")) {\r\n\t\t\t\tindex = name.replace(\"ValidFrom\", \"\");\r\n\t\t\t\tlist[index].ValidFrom = value;\r\n\t\t\t} else if (name.includes(\"ValidTo\")) {\r\n\t\t\t\tindex = name.replace(\"ValidTo\", \"\");\r\n\t\t\t\tlist[index].ValidTo = value;\r\n\t\t\t}\r\n\r\n\t\t\treturn { list };\r\n\t\t});\r\n\t}\r\n\r\n\tList = async () => {\r\n\t\tconst { ExecuteApiGet } = this.props;\r\n\t\tvar result = await ExecuteApiGet(\"/amlkycapi/v1.0/FeeProfile/List\");\r\n\r\n\t\tthis.setState({ list: result || [] });\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { list } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errors = [];\r\n\r\n\t\tif (list.filter(x => x.FeeAmount == null).length != 0) {\r\n\t\t\terrors.push(\"Fee amount can not be null.\")\r\n\t\t}\r\n\t\tif (list.filter(x => x.Cost == null).length != 0) {\r\n\t\t\terrors.push(\"Cost can not be null.\")\r\n\t\t}\r\n\t\tif (list.filter(x => x.ValidFrom == null).length != 0) {\r\n\t\t\terrors.push(\"Valid from can not be null.\")\r\n\t\t}\r\n\t\tif (list.filter(x => x.ValidTo == null).length != 0) {\r\n\t\t\terrors.push(\"Valid to can not be null.\")\r\n\t\t}\r\n\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { list } = this.state;\r\n\t\tconst { Disabled, ExecuteApiPost } = this.props;\r\n\t\tvar feeProfiles = [], index = 0;\r\n\r\n\t\tlist.map(x => {\r\n\t\t\tvar tempArray = [];\r\n\r\n\t\t\ttempArray.push(\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t);\r\n\t\t\ttempArray.push(\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t);\r\n\t\t\ttempArray.push(\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t);\r\n\t\t\ttempArray.push(\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t);\r\n\t\t\ttempArray.push(\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t);\r\n\r\n\t\t\tfeeProfiles.push(tempArray);\r\n\t\t\tindex++;\r\n\t\t});\r\n\r\n\t\tindex = 0;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t ExecuteApiPost(\"/amlkycapi/v1.0/FeeProfile/Submit\", list, null, null, this.Validate, null, true)\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tfeeProfiles.map(x => {\r\n\t\t\t\t\t\t\t\tindex++;\r\n\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tx\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nFeeProfile.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiGet: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default FeeProfile;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericGrid, GenericSelectInput } from \"views/Components/Generic\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { ClientType, FinScanSearchStatus, GridColumnType } from \"views/Constants/Constant\";\r\nimport { SortedPeriodNumberAsc } from \"views/Constants/Constant.Sorted\";\r\n\r\nclass FinScanScheduledWatchlistControl extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columnsScheduleList = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Schedule Period W/M\",\r\n\t\t\t\taccessor: \"PeriodNumber\",\r\n\t\t\t\twidth: 30\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Schedule From Date\",\r\n\t\t\t\taccessor: \"FromDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Schedule To Date\",\r\n\t\t\t\taccessor: \"ToDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t}\r\n\t\t];\r\n\t\tthis.columnsList = [];\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {}\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"AML & KYC\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Scheduled Watchlist Control\");\r\n\t\t}\r\n\r\n\t\tthis.SetYearList();\r\n\t}\r\n\r\n\tValueChanged = (name, value, data) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tvar list = state.list;\r\n\t\t\tvar listSchedulePeriodWeeklyList = state.listSchedulePeriodWeeklyList;\r\n\t\t\tvar listSchedulePeriodMonthlyList = state.listSchedulePeriodMonthlyList;\r\n\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\tif (name == \"SearchTypeId\") {\r\n\t\t\t\tmodel[\"SearchTypeParameterValue\"] = data && data.ParameterValue;\r\n\t\t\t\tmodel[\"Year\"] = null;\r\n\t\t\t\tmodel[\"Quarter\"] = null;\r\n\r\n\t\t\t\tlist = [];\r\n\t\t\t} else if (name == \"Year\") {\r\n\t\t\t\tif (value == null) {\r\n\t\t\t\t\tmodel[\"Quarter\"] = null;\r\n\t\t\t\t\tlistSchedulePeriodWeeklyList = [];\r\n\t\t\t\t\tlistSchedulePeriodMonthlyList = [];\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.GetSchedulePeriodList();\r\n\t\t\t\t}\r\n\t\t\t} else if (name == \"Quarter\" && model.Year != null) {\r\n\t\t\t\tthis.GetSchedulePeriodList();\r\n\t\t\t}\r\n\r\n\t\t\treturn { model, list, listSchedulePeriodWeeklyList, listSchedulePeriodMonthlyList };\r\n\t\t});\r\n\t}\r\n\r\n\tRowSelected = async (index) => {\r\n\t\tconst { model, listSchedulePeriodMonthlyList, listSchedulePeriodWeeklyList } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar request = {\r\n\t\t\tPeriodNumber: model.SearchTypeParameterValue == ClientType.Personal\r\n\t\t\t\t? listSchedulePeriodWeeklyList[index].PeriodNumber\r\n\t\t\t\t: listSchedulePeriodMonthlyList[index].PeriodNumber,\r\n\t\t\tSearchTypeId: model.SearchTypeId\r\n\t\t};\r\n\t\tvar result = await ExecuteApiPost(\"/amlkycapi/v1.0/FinScanSearchLog/SearchLogForSchedule\", request);\r\n\r\n\t\tif (result != null && result.length != 0) {\r\n\t\t\tthis.GetColumnsList(result);\r\n\t\t\tthis.SetList(result);\r\n\t\t} else {\r\n\t\t\tthis.setState({ list: [] });\r\n\t\t}\r\n\r\n\t\tthis.setState({ selected: index });\r\n\t}\r\n\r\n\tGetColumnsList = (searchResult) => {\r\n\t\tthis.columnsList = [];\r\n\r\n\t\tsearchResult[0].JsonDataParsed.map(x => {\r\n\t\t\tthis.columnsList.push({\r\n\t\t\t\tHeader: x.Key.split(/(?=[A-Z])/).join(\" \"),\r\n\t\t\t\taccessor: x.Key,\r\n\t\t\t\tCell: row => (
{row.value}
)\r\n\t\t\t});\r\n\r\n\t\t\treturn null;\r\n\t\t});\r\n\r\n\t\tthis.columnsList.push({\r\n\t\t\tHeader: \"Search Type\",\r\n\t\t\taccessor: \"SearchTypeParameterDesc\",\r\n\t\t\tCell: row => (
{row.value}
)\r\n\t\t});\r\n\t\tthis.columnsList.push({\r\n\t\t\tHeader: \"Search Date\",\r\n\t\t\taccessor: \"SearchDate\",\r\n\t\t\tCell: row => (
{Formatter.FormatDate(row.value)}
)\r\n\t\t});\r\n\t\tthis.columnsList.push({\r\n\t\t\tHeader: \"Search Status\",\r\n\t\t\taccessor: \"SearchStatusParameterDesc\",\r\n\t\t\tCell: row => (
{row.value}
)\r\n\t\t});\r\n\r\n\t\tthis.forceUpdate();\r\n\t}\r\n\r\n\tGetColumnsRowStyleColor(status) {\r\n\t\tthis.columnsRowStyleColor = {\r\n\t\t\tcolor: status != null\r\n\t\t\t\t&& (status == FinScanSearchStatus.ManualVerification || status == FinScanSearchStatus.Unverified)\r\n\t\t\t\t? \"#FB3005\"\r\n\t\t\t\t: \"\"\r\n\t\t};\r\n\r\n\t\treturn this.columnsRowStyleColor;\r\n\t}\r\n\r\n\tGetSchedulePeriodList = async () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/amlkycapi/v1.0/FinScanSearchLog/GetSchedulePeriodList\", model);\r\n\t\tvar listSchedulePeriodWeeklyList = [], listSchedulePeriodMonthlyList = [];\r\n\r\n\t\tif (result != null) {\r\n\t\t\tlistSchedulePeriodWeeklyList = result.WeeklyLists;\r\n\t\t\tlistSchedulePeriodMonthlyList = result.MonthlyLists;\r\n\t\t}\r\n\r\n\t\tthis.setState({ listSchedulePeriodWeeklyList, listSchedulePeriodMonthlyList });\r\n\t}\r\n\r\n\tSetYearList = () => {\r\n\t\tvar currentYear = parseInt(DateHelper.GetYear());\r\n\t\tvar listYear = [];\r\n\r\n\t\tfor (var i = 2019; i <= currentYear; i++) {\r\n\t\t\tlistYear.push({\r\n\t\t\t\t\"Year\": i\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tthis.setState({ listYear });\r\n\t}\r\n\r\n\tSetList = (searchResult) => {\r\n\t\tvar list = searchResult;\r\n\r\n\t\tfor (let i = 0; i < searchResult.length; i++) {\r\n\t\t\tsearchResult[i].JsonDataParsed.map(x => {\r\n\t\t\t\tlist[i][x.Key] = x.Value;\r\n\r\n\t\t\t\treturn null;\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tthis.setState({ list });\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: { IsScheduled: true }, list: [], selected: null });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, list, listYear, listSchedulePeriodWeeklyList, listSchedulePeriodMonthlyList, selected } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nFinScanScheduledWatchlistControl.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default FinScanScheduledWatchlistControl;","import { DialogContent, DialogTitle, Slide } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { DetailIcon, VerificationIcon, DeleteIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericCheckInput, GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericTextInput,GenericRadioInput, GenericSelectInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { FinScanSearchStatus, FinScanSearchResultType } from \"views/Constants/Constant\";\r\nimport { Proxy } from \"core\";\r\nimport Select from \"react-select\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\n\r\nfunction Transition(props) {\r\n\treturn ;\r\n}\r\n\r\nclass FinScanWatchlistControl extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.columnsList = [];\r\n\t\tthis.columnsDetail = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"FullName\",\r\n\t\t\t\taccessor: \"FullName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Gender\",\r\n\t\t\t\taccessor: \"Gender\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Nationality\",\r\n\t\t\t\taccessor: \"Nationality\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Country\",\r\n\t\t\t\taccessor: \"Country\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"PlaceOfBirth\",\r\n\t\t\t\taccessor: \"PlaceOfBirth\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"DateOfBirth\",\r\n\t\t\t\taccessor: \"DateOfBirth\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"TextInfo\",\r\n\t\t\t\taccessor: \"TextInfo\"\r\n\t\t\t}\r\n\t\t];\r\n\t\tthis.maxLength40 = { maxLength: 40 };\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tFromDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\t\tToDate: DateHelper.GetLocalDateAsUtc()\r\n\t\t\t},\r\n\t\t\tisVerifyDialogOpen: false,\r\n\t\t\tisDetailManualVerificationDialogOpen: false,\r\n\t\t\tisDetailUnverifiedDialogOpen: false\r\n\t\t};\r\n\t\tthis.finScaTable = React.createRef();\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"AML & KYC\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Watchlist Control\");\r\n\t\t}\r\n\t}\r\n\r\n\tValueChanged = (name, value, data) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\tif (name == \"FromDate\") {\r\n\t\t\t\tmodel[\"ToDate\"] = undefined;\r\n\t\t\t}\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tGetColumnsList = (searchResult) => {\r\n\t\tthis.columnsList = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t row.original.SearchStatusParameterValue == FinScanSearchStatus.Unverified\r\n\t\t\t\t\t\t\t\t? this.MemoVerifyDialogOpen(row.original.Id)\r\n\t\t\t\t\t\t\t\t: this.VerifyDialogOpen(row.original.Id)} />\r\n\t\t\t\t\t\t this.MemoRejectDialogOpen(row.original.Id)} />\r\n\t\t\t\t\t\t row.original.SearchResultParameterValue == FinScanSearchResultType.ListExactMatch\r\n\t\t\t\t\t\t\t\t? this.DetailUnverifiedDialogOpen(row.original.Id) : \r\n\t\t\t\t\t\t\t\tthis.DetailManualVerificationDialogOpen(row.original.Id) }/>\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\twidth: 100\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t searchResult[0].JsonDataParsed.map(x => {\r\n\t\t\tthis.columnsList.push({\r\n\t\t\t\tHeader: x.Key.split(/(?=[A-Z])/).join(\" \"),\r\n\t\t\t\taccessor: x.Key,\r\n\t\t\t\tCell: row => (
{row.value}
)\r\n\t\t\t});\r\n\r\n\t\t\treturn null;\r\n\t\t});\r\n\r\n\t\tthis.columnsList.push({\r\n\t\t\tHeader: \"Search Type\",\r\n\t\t\taccessor: \"SearchTypeParameterDesc\",\r\n\t\t\tCell: row => (
{row.value}
)\r\n\t\t});\r\n\t\tthis.columnsList.push({\r\n\t\t\tHeader: \"Search Date\",\r\n\t\t\taccessor: \"SearchDate\",\r\n\t\t\tCell: row => (
{Formatter.FormatDate(row.value)}
)\r\n\t\t});\r\n\t\tthis.columnsList.push({\r\n\t\t\tHeader: \"Search Status\",\r\n\t\t\taccessor: \"SearchStatusParameterDesc\",\r\n\t\t\tCell: row => (
{row.value}
)\r\n\t\t});\r\n\t\tthis.columnsList.push({\r\n\t\t\tHeader: \"Is Scheduled\",\r\n\t\t\taccessor: \"IsScheduled\",\r\n\t\t\tCell: row => (
{row.value ? \"Yes\" : \"No\"}
)\r\n\t\t});\r\n\t\tthis.columnsList.push({\r\n\t\t\tHeader: \"Client Name\",\r\n\t\t\taccessor: \"ClientName\",\r\n\t\t\tCell: row => (
{row.value}
)\r\n\t\t});\r\n\t\tthis.columnsList.push({\r\n\t\t\tHeader: \"Update User\",\r\n\t\t\taccessor: \"UpdateUser\",\r\n\t\t\tCell: row => (
{row.value}
)\r\n\t\t});\r\n\t\tthis.columnsList.push({\r\n\t\t\tHeader: \"Update Date\",\r\n\t\t\taccessor: \"UpdateDateTime\",\r\n\t\t\tCell: row => (
{Formatter.FormatDate(row.value)}
)\r\n\t\t});\r\n\t\tthis.columnsList.push({\r\n\t\t\tHeader: \"Approve/Reject Reason\",\r\n\t\t\taccessor: \"ApproveReason\",\r\n\t\t\tCell: row => (
{row.value}
)\r\n\t\t});\r\n\r\n\t\tthis.forceUpdate();\r\n\t}\r\n\r\n\tGetColumnsDetail = (searchResult) => {\r\n\t\tthis.columnsDetail = [];\r\n\r\n\t\tsearchResult.ApiPartialMatches[0].JsonResultDataParsed.map(x => {\r\n\t\t\tthis.columnsDetail.push({\r\n\t\t\t\tHeader: x.Key.split(/(?=[A-Z])/).join(\" \"),\r\n\t\t\t\taccessor: x.Key\r\n\t\t\t});\r\n\r\n\t\t\treturn null;\r\n\t\t});\r\n\r\n\t\tthis.columnsDetail.push({\r\n\t\t\tHeader: \"Search Result Source\",\r\n\t\t\taccessor: \"SearchResultSource\"\r\n\t\t});\r\n\r\n\t\tthis.forceUpdate();\r\n\t}\r\n\r\n\tGetColumnsRowStyleColor(status) {\r\n\t\tthis.columnsRowStyleColor = {\r\n\t\t\tcolor: status != null\r\n\t\t\t\t&& (status == FinScanSearchStatus.ManualVerification || status == FinScanSearchStatus.Unverified)\r\n\t\t\t\t? \"#FB3005\"\r\n\t\t\t\t: \"\"\r\n\t\t};\r\n\r\n\t\treturn this.columnsRowStyleColor;\r\n\t}\r\n\r\n\tVerifyDialogOpen = (finScanSearchLogId) => {\r\n\t\tvar { model } = this.state;\r\n\t\tmodel.FinScanSearchLogId = finScanSearchLogId;\r\n\t\tmodel.SearchStatusUpdateId = null;\r\n\r\n\t\tthis.setState({ model, isVerifyDialogOpen: true });\r\n\t}\r\n\r\n\tMemoVerifyDialogOpen = (finScanSearchLogId) => {\r\n\t\tvar { model } = this.state;\r\n\t\tmodel.FinScanSearchLogId = finScanSearchLogId;\r\n\r\n\t\tthis.setState({ model, isMemoVerifyDialogOpen: true });\r\n\t}\r\n\r\n\tMemoRejectDialogOpen = (finScanSearchLogId) => {\r\n\t\tvar { model } = this.state;\r\n\t\tmodel.FinScanSearchLogId = finScanSearchLogId;\r\n\r\n\t\tthis.setState({ model, isMemoRejectDialogOpen: true });\r\n\t}\r\n\r\n\tDetailManualVerificationDialogOpen = (finScanSearchLogId) => {\r\n\t\tthis.GetFinScanSearchLogDetailManualVerification(finScanSearchLogId);\r\n\t\tthis.setState({ isDetailManualVerificationDialogOpen: true });\r\n\t}\r\n\r\n\tDetailUnverifiedDialogOpen = (finScanSearchLogId) => {\r\n\t\tthis.GetFinScanSearchLogDetailUnverified(finScanSearchLogId);\r\n\t\tthis.setState({ isDetailUnverifiedDialogOpen: true });\r\n\t}\r\n\r\n\tVerifyDialogClose = () => {\r\n\t\tthis.setState({ isVerifyDialogOpen: false });\r\n\t}\r\n\r\n\tMemoVerifyDialogClose = () => {\r\n\t\tthis.setState({ isMemoVerifyDialogOpen: false });\r\n\t}\r\n\r\n\tMemoRejectDialogClose = () => {\r\n\t\tthis.setState({ isMemoRejectDialogOpen: false });\r\n\t}\r\n\t\r\n\tDetailManualVerificationDialogClose = () => {\r\n\t\tthis.setState({ isDetailManualVerificationDialogOpen: false });\r\n\t}\r\n\r\n\tDetailUnverifiedDialogClose = () => {\r\n\t\tthis.setState({ isDetailUnverifiedDialogOpen: false });\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/amlkycapi/v1.0/FinScanSearchLog/Search\", model);\r\n\r\n\t\tif (result != null && result.length != 0) {\r\n\t\t\tthis.GetColumnsList(result);\r\n\t\t\tthis.SetList(result);\r\n\t\t} else {\r\n\t\t\tthis.setState({ list: [] });\r\n\t\t}\r\n\t}\r\n\r\n\tGetFinScanSearchLogDetailManualVerification = async (finScanSearchLogId) => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/amlkycapi/v1.0/FinScanSearchLog/GetPartialMatchListByFinScanSearchLogId\", { FinScanSearchLogId: finScanSearchLogId });\r\n\r\n\t\tif (result != null && result.length != 0) {\r\n\t\t\tthis.SetListPartialMatches(result);\r\n\t\t} else {\r\n\t\t\tthis.setState({ listListPartialMatches: []});\r\n\t\t}\r\n\t}\r\n\r\n\tGetFinScanSearchLogDetailUnverified = async (finScanSearchLogId) => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/amlkycapi/v1.0/FinScanSearchLogDetail/GetDetailBySearchLogId\", { FinScanSearchLogId: finScanSearchLogId });\r\n\r\n\t\tif (result != null && result.length != 0) {\r\n\t\t\tvar { model } = this.state;\r\n\r\n\t\t\tmodel = result;\r\n\r\n\t\t\tthis.setState({ model });\r\n\t\t}\r\n\t}\r\n\r\n\tUpdateFinScanSearchLogStatus = async () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/amlkycapi/v1.0/FinScanSearchLog/UpdateSearchStatus\",\r\n\t\t\t{ FinScanSearchLogId: model.FinScanSearchLogId, SearchStatusId: model.SearchStatusUpdateId }, null, null, null, null, true);\r\n\r\n\t\tif (result != null) {\r\n\t\t\tthis.setState({ isVerifyDialogOpen: false });\r\n\t\t\tthis.Search();\r\n\t\t}\r\n\t}\r\n\r\n\tUpdateFinScanSearchLogStatusForUnverified = async () => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar { model } = this.state;\r\n\t\tif(model.ApproveReason == null || model.ApproveReason == \"\"){\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Approve reason must be defined.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tvar result = await ExecuteApiPost(\"/amlkycapi/v1.0/FinScanSearchLog/UpdateSearchStatus\",\r\n\t\t\t{ FinScanSearchLogId: model.FinScanSearchLogId, SearchStatusParameterValue: FinScanSearchStatus.Verified, ApproveReason: model.ApproveReason }, null, null, null, null, true);\r\n\r\n\t\tif (result != null) {\r\n\t\t\tthis.Search();\r\n\t\t}\r\n\t\tthis.MemoVerifyDialogClose();\r\n\t}\r\n\r\n\tUpdateFinScanSearchLogStatusToRejected = async () => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar { model } = this.state;\r\n\t\tif(model.ApproveReason == null || model.ApproveReason == \"\"){\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Approve reason must be defined.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tvar result = await ExecuteApiPost(\"/amlkycapi/v1.0/FinScanSearchLog/UpdateSearchStatus\",\r\n\t\t\t{ FinScanSearchLogId: model.FinScanSearchLogId, SearchStatusParameterValue: FinScanSearchStatus.Rejected, ApproveReason: model.ApproveReason }, null, null, null, null, true);\r\n\r\n\t\tif (result != null) {\r\n\t\t\tthis.Search();\r\n\t\t}\r\n\t\tthis.MemoRejectDialogClose();\r\n\t}\r\n\r\n\tSetList = (searchResult) => {\r\n\t\tvar list = searchResult;\r\n\r\n\t\tfor (let i = 0; i < searchResult.length; i++) {\r\n\t\t\tsearchResult[i].JsonDataParsed.map(x => {\r\n\t\t\t\tlist[i][x.Key] = x.Value;\r\n\r\n\t\t\t\treturn null;\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tthis.setState({ list });\r\n\t}\r\n\r\n\tSetListPartialMatches = (searchResult) => {\r\n\t\tvar listListPartialMatches = searchResult;\r\n\r\n\t\tfor (let i = 0; i < searchResult.length; i++) {\r\n\t\t\tsearchResult[i].JsonResultDataParsed.map(x => {\r\n\t\t\t\tlistListPartialMatches[i][x.Key] = x.Value;\r\n\r\n\t\t\t\treturn null;\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tthis.setState({ listListPartialMatches });\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {\r\n\t\t\t\tFromDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\t\tToDate: DateHelper.GetLocalDateAsUtc()\r\n\t\t\t}, list: [], selected: null\r\n\t\t});\r\n\t}\r\n\tValueChangedForReportType = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\tExportClick = () => {\r\n\t\tvar finScaColumns = [];\r\n\t\tthis.finScaTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.show == undefined || c.show) {\r\n\t\t\t\tfinScaColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: finScaColumns, ExportSelectedColumns: finScaColumns });\r\n\t}\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\r\n\t\tconst temp = { ...this.state.model };\r\n\r\n\r\n\t\tvar jsonColList = [];\r\n\r\n\t\tvar cpverColumns = {};\r\n\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\tcpverColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t});\r\n\t\tjsonColList.push(cpverColumns);\r\n\r\n\t\tvar mytitle = \"Watchlist Control\";\r\n\r\n\t\ttemp.jsonFile = {\r\n\t\t\tcolmns: jsonColList,\r\n\t\t\tformat: this.state.ExportReportType,\r\n\t\t\ttitle: mytitle\r\n\t\t};\r\n\r\n\t\tvar request = {\r\n\t\t\tSearchTypeId: temp.SearchTypeId,\r\n\t\t\tSearchStatusId: temp.SearchStatusId,\r\n\t\t\tFromDate : temp.FromDate,\r\n\t\t\tToDate:temp.ToDate,\r\n\t\t\tIsScheduled:temp.IsScheduled,\r\n\t\t\tjsonFile:temp.jsonFile,\r\n\t\t};\r\n\t\tconsole.log(request);\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\"/amlkycapi/v1.0/FinScanSearchLog/FinScanSearchLogExportDownload\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t},\r\n\t\t\tthis.props.showMessage\r\n\t\t);\r\n\t}\r\n\r\n\tshowLoading = () => { this.setState({ isLoading: true }); }\r\n\thideLoading = () => { this.setState({ isLoading: false }); }\r\n\r\n\r\n\trender() {\r\n\t\tconst { model, list, listListPartialMatches, isVerifyDialogOpen, isDetailManualVerificationDialogOpen, isDetailUnverifiedDialogOpen,isLoading, isMemoVerifyDialogOpen, isMemoRejectDialogOpen } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t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AppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default FinScanWatchlistControl;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericExpansionPanel, GenericGrid } from \"views/Components/Generic\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass FinScanWatchlistFile extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"File Name\",\r\n\t\t\t\taccessor: \"FileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Version\",\r\n\t\t\t\taccessor: \"Version\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Insert Date Time\",\r\n\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {}\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"AML & KYC\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Watchlist File\");\r\n\t\t}\r\n\t}\r\n\r\n\tValueChanged = (name, value, data) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\tif (name == \"FromDate\") {\r\n\t\t\t\tmodel[\"ToDate\"] = null;\r\n\t\t\t}\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tconst { list } = this.state;\r\n\r\n\t\tthis.setState({ model: list[index], selected: index });\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/amlkycapi/v1.0/FinScanFile/Search\", model);\r\n\r\n\t\tthis.setState({ list: result || [] });\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, list: [], selected: null });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, list, selected } = this.state;\r\n\t\tconst { Disabled, ExecuteApiFileDownloadWithGenericResponse } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t ExecuteApiFileDownloadWithGenericResponse(\"/coreapi/v1.0/File/DownloadFileFromBinary\", { FileId: model.FileId }, model.FileName, model.FileExtension)\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Clear\",\r\n\t\t\t\t\t\t\tDisabled: Disabled,\r\n\t\t\t\t\t\t\tOnClick: this.Clear\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nFinScanWatchlistFile.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tExecuteApiFileDownloadWithGenericResponse: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default FinScanWatchlistFile;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent.jsx\";\r\nimport { ClientType, GridColumnType, MenuCodes } from \"views/Constants/Constant\";\r\nimport { MaxLength128, MaxLength20, MaxLength30 } from \"views/Constants/Constant.MaxLength\";\r\nimport { SortedParameterDesc } from \"views/Constants/Constant.Sorted\";\r\nimport { Proxy } from \"core\";\r\nimport ClientHelper from \"../../../core/ClientHelper\";\r\n\r\nclass InternalBlacklist extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Type\",\r\n\t\t\t\taccessor: \"ClientTypeDescription\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Status\",\r\n\t\t\t\taccessor: \"BlacklistStatusDescription\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Organization\",\r\n\t\t\t\taccessor: \"OrganizationName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reason\",\r\n\t\t\t\taccessor: \"BlacklistReasonDescription\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Address\",\r\n\t\t\t\taccessor: \"Address\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Country\",\r\n\t\t\t\taccessor: \"CountryName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Province\",\r\n\t\t\t\taccessor: \"ProvinceName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"City\",\r\n\t\t\t\taccessor: \"CityName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Opening Date\",\r\n\t\t\t\taccessor: \"AccountOpeningDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Closing Date\",\r\n\t\t\t\taccessor: \"AccountClosingDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Company Legal Name\",\r\n\t\t\t\taccessor: \"CompanyLegalName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Signing Authority Name\",\r\n\t\t\t\taccessor: \"SigningAuthorityName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Signing Authority Date Of Birth\",\r\n\t\t\t\taccessor: \"SigningAuthorityDateOfBirth\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Signing Authority Address\",\r\n\t\t\t\taccessor: \"SigningAuthorityAddress\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Signing Authority Country\",\r\n\t\t\t\taccessor: \"SigningAuthorityCountryName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Signing Authority Province\",\r\n\t\t\t\taccessor: \"SigningAuthorityProvinceName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Signing Authority City\",\r\n\t\t\t\taccessor: \"SigningAuthorityCityName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Director Name\",\r\n\t\t\t\taccessor: \"DirectorName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Director Date Of Birth\",\r\n\t\t\t\taccessor: \"DirectorDateOfBirth\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Director Address\",\r\n\t\t\t\taccessor: \"DirectorAddress\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Director Country\",\r\n\t\t\t\taccessor: \"DirectorCountryName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Director Province\",\r\n\t\t\t\taccessor: \"DirectorProvinceName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Director City\",\r\n\t\t\t\taccessor: \"DirectorCityName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"First Name\",\r\n\t\t\t\taccessor: \"Name\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Middle Name\",\r\n\t\t\t\taccessor: \"MiddleName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Last Name\",\r\n\t\t\t\taccessor: \"LastName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date of Birth\",\r\n\t\t\t\taccessor: \"DateOfBirth\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Id Type 1\",\r\n\t\t\t\taccessor: \"IdType1Description\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Id Number 1\",\r\n\t\t\t\taccessor: \"IdNumber1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Id Type 2\",\r\n\t\t\t\taccessor: \"IdType2Description\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Id Number 2\",\r\n\t\t\t\taccessor: \"IdNumber2\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Alias\",\r\n\t\t\t\taccessor: \"Alias\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\tisBackOffice: false,\r\n\t\t\tProvinceList: [],\r\n\t\t\tCityList: [],\r\n\t\t\tSigningAuthorityProvinceList: [],\r\n\t\t\tSigningAuthorityCityList: [],\r\n\t\t\tDirectorProvinceList: [],\r\n\t\t\tDirectorCityList: []\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tlet { model, isBackOffice } = this.state;\r\n\t\tisBackOffice = ClientHelper.IsBackOffice();\r\n\r\n\t\tif (!isBackOffice) {\r\n\t\t\tmodel.UniqueClientId = ClientHelper.GetClientRowId();\r\n\t\t}\r\n\r\n\t\tthis.setState({ model, isBackOffice });\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"AML & KYC\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tif (this.props.MenuCode == MenuCodes.AML_KYC_DCBankBlacklistPool) {\r\n\t\t\t\tsetAppLeftTitle(\"DCBank Blacklist Pool\");\r\n\t\t\t}\r\n\t\t\telse if (this.props.MenuCode == MenuCodes.AML_KYC_ClientBlacklistPool) {\r\n\t\t\t\tsetAppLeftTitle(\"Client Blacklist Pool\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tsetAppLeftTitle(\"Blacklist Pool\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.GetClientTypeList();\r\n\t}\r\n\r\n\tValueChanged = (name, value, data) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\tif (name === \"ClientTypeId\") {\r\n\t\t\t\tmodel[\"isCorporate\"] = this.state.corporateId == value;\r\n\t\t\t\tmodel[\"isPersonal\"] = this.state.personalId == value;\r\n\t\t\t\tmodel[\"isMsbCorporate\"] = this.state.msbCorporateId == value;\r\n\t\t\t\tmodel[\"isMsbPersonal\"] = this.state.msbPersonalId == value;\r\n\r\n\t\t\t\tif (this.state.personalId == value || this.state.msbPersonalId == value) {\r\n\t\t\t\t\tmodel[\"CompanyLegalName\"] = null;\r\n\t\t\t\t\tmodel[\"SigningAuthorityName\"] = null;\r\n\t\t\t\t\tmodel[\"SigningAuthorityDateOfBirth\"] = null;\r\n\t\t\t\t\tmodel[\"SigningAuthorityAddress\"] = null;\r\n\t\t\t\t\tmodel[\"SigningAuthorityCountryId\"] = null;\r\n\t\t\t\t\tmodel[\"SigningAuthorityProvinceId\"] = null;\r\n\t\t\t\t\tmodel[\"SigningAuthorityCityId\"] = null;\r\n\t\t\t\t\tmodel[\"DirectorName\"] = null;\r\n\t\t\t\t\tmodel[\"DirectorDateOfBirth\"] = null;\r\n\t\t\t\t\tmodel[\"DirectorAddress\"] = null;\r\n\t\t\t\t\tmodel[\"DirectorCountryId\"] = null;\r\n\t\t\t\t\tmodel[\"DirectorProvinceId\"] = null;\r\n\t\t\t\t\tmodel[\"DirectorCityId\"] = null;\r\n\t\t\t\t}\r\n\t\t\t\telse if (this.state.corporateId == value || this.state.msbCorporateId == value) {\r\n\t\t\t\t\tmodel[\"Name\"] = null;\r\n\t\t\t\t\tmodel[\"MiddleName\"] = null;\r\n\t\t\t\t\tmodel[\"LastName\"] = null;\r\n\t\t\t\t\tmodel[\"DateOfBirth\"] = null;\r\n\t\t\t\t\tmodel[\"IdTypeId1\"] = null;\r\n\t\t\t\t\tmodel[\"IdNumber1\"] = null;\r\n\t\t\t\t\tmodel[\"IdTypeId2\"] = null;\r\n\t\t\t\t\tmodel[\"IdNumber2\"] = null;\r\n\t\t\t\t\tmodel[\"Alias\"] = null;\r\n\t\t\t\t}\r\n\t\t\t} else if (name == \"IdTypeId1\") {\r\n\t\t\t\tmodel[\"IdTypeCode1\"] = data && data.ParameterValue;\r\n\t\t\t\tmodel[\"IdNumber1\"] = \"\";\r\n\t\t\t} else if (name == \"IdTypeId2\") {\r\n\t\t\t\tmodel[\"IdTypeCode2\"] = data && data.ParameterValue;\r\n\t\t\t\tmodel[\"IdNumber2\"] = \"\";\r\n\t\t\t} else if (name == \"CountryId\") {\r\n\t\t\t\tmodel[\"ProvinceId\"] = \"\";\r\n\t\t\t\tmodel[\"CityId\"] = \"\";\r\n\t\t\t} else if (name == \"ProvinceId\") {\r\n\t\t\t\tmodel[\"CityId\"] = \"\";\r\n\t\t\t} else if (name == \"SigningAuthorityCountryId\") {\r\n\t\t\t\tmodel[\"SigningAuthorityProvinceId\"] = \"\";\r\n\t\t\t\tmodel[\"SigningAuthorityCityId\"] = \"\";\r\n\t\t\t} else if (name == \"SigningAuthorityProvinceId\") {\r\n\t\t\t\tmodel[\"SigningAuthorityCityId\"] = \"\";\r\n\t\t\t} else if (name == \"DirectorCountryId\") {\r\n\t\t\t\tmodel[\"DirectorProvinceId\"] = \"\";\r\n\t\t\t\tmodel[\"DirectorCityId\"] = \"\";\r\n\t\t\t} else if (name == \"DirectorProvinceId\") {\r\n\t\t\t\tmodel[\"DirectorCityId\"] = \"\";\r\n\t\t\t}\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tGetProvince = (name, CountryId) => {\r\n\t\tif (!CountryId)\r\n\t\t\treturn;\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Province/Filter\",\r\n\t\t\t{ CountryId: CountryId },\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded || responseData.Item == null) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ [name]: responseData.Item });\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\tGetCity = (name, CountryId, ProvinceId) => {\r\n\t\tif (!CountryId || !ProvinceId)\r\n\t\t\treturn;\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/City/Filter\",\r\n\t\t\t{ \r\n\t\t\t\tCountryId: CountryId,\r\n\t\t\t\tProvinceId: ProvinceId\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded || responseData.Item == null) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ [name]: responseData.Item });\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\tRowSelected = (index) => {\r\n\t\tconst { list } = this.state;\r\n\t\tvar selectedModel = Object.assign({}, list[index]);\r\n\r\n\t\tselectedModel.DateOfBirth = selectedModel.DateOfBirth === null\r\n\t\t\t? null\r\n\t\t\t: Formatter.FormatDateUtc(selectedModel.DateOfBirth);\r\n\t\tselectedModel.isCorporate = selectedModel.ClientTypeId === this.state.corporateId;\r\n\t\tselectedModel.isPersonal = selectedModel.ClientTypeId === this.state.personalId;\r\n\t\tselectedModel.isMsbCorporate = selectedModel.ClientTypeId === this.state.msbCorporateId;\r\n\t\tselectedModel.isMsbPersonal = selectedModel.ClientTypeId === this.state.msbPersonalId;\r\n\r\n\t\tthis.GetProvince(\"ProvinceList\", selectedModel.CountryId);\r\n\t\tthis.GetCity(\"CityList\", selectedModel.CountryId, selectedModel.ProvinceId);\r\n\t\tthis.GetProvince(\"SigningAuthorityProvinceList\", selectedModel.SigningAuthorityCountryId);\r\n\t\tthis.GetCity(\"SigningAuthorityCityList\", selectedModel.SigningAuthorityCountryId, selectedModel.SigningAuthorityProvinceId);\r\n\t\tthis.GetProvince(\"DirectorProvinceList\", selectedModel.DirectorCountryId);\r\n\t\tthis.GetCity(\"DirectorCityList\", selectedModel.DirectorCountryId, selectedModel.DirectorProvinceId);\r\n\r\n\t\tthis.setState({ model: selectedModel, selected: index });\r\n\t}\r\n\r\n\tGetClientTypeList = async () => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/Parameter/Search\", { ParameterCode: \"ClientType\" });\r\n\r\n\t\tif (result != null) {\r\n\t\t\tvar clientTypeList = [];\r\n\r\n\t\t\tvar clientTypeCorporate = result.filter(x => x.ParameterValue == ClientType.Corporate);\r\n\r\n\t\t\tif (clientTypeCorporate.length == 1) {\r\n\t\t\t\tvar corporateId = clientTypeCorporate[0].Id;\r\n\t\t\t\tclientTypeList.push(clientTypeCorporate[0]);\r\n\t\t\t}\r\n\r\n\t\t\tvar clientTypePersonal = result.filter(x => x.ParameterValue == ClientType.Personal);\r\n\r\n\t\t\tif (clientTypePersonal.length == 1) {\r\n\t\t\t\tvar personalId = clientTypePersonal[0].Id;\r\n\t\t\t\tclientTypeList.push(clientTypePersonal[0]);\r\n\t\t\t}\r\n\r\n\t\t\tvar clientTypeMsbCorporate = result.filter(x => x.ParameterValue == ClientType.WireTransferMSBCorparate);\r\n\r\n\t\t\tif (clientTypeMsbCorporate.length == 1) {\r\n\t\t\t\tvar msbCorporateId = clientTypeMsbCorporate[0].Id;\r\n\t\t\t\tclientTypeList.push(clientTypeMsbCorporate[0]);\r\n\t\t\t}\r\n\r\n\t\t\tvar clientTypeMsbPersonal = result.filter(x => x.ParameterValue == ClientType.WireTransferMSBIndividual);\r\n\r\n\t\t\tif (clientTypeMsbPersonal.length == 1) {\r\n\t\t\t\tvar msbPersonalId = clientTypeMsbPersonal[0].Id;\r\n\t\t\t\tclientTypeList.push(clientTypeMsbPersonal[0]);\r\n\t\t\t}\r\n\r\n\t\t\tthis.setState({\r\n\t\t\t\tcorporateId,\r\n\t\t\t\tpersonalId,\r\n\t\t\t\tmsbCorporateId,\r\n\t\t\t\tmsbPersonalId,\r\n\t\t\t\tclientTypeList\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\t\tvar { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/amlkycapi/v1.0/InternalBlacklist/Search\", model);\r\n\r\n\t\tthis.setState({ model, list: result || [] });\r\n\t}\r\n\r\n\tSubmitOrUpdate = async (action) => {\r\n\t\tvar { model } = this.state;\r\n\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\r\n\t\tawait ExecuteApiPost(`/amlkycapi/v1.0/InternalBlacklist/${action}`, model, null, null, null, [this.Clear, this.Search], true);\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, list: [], selected: null });\r\n\t}\r\n\r\n\tValidate() {\r\n\t\tvar { model } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errors = [];\r\n\r\n\t\tif (model.ClientTypeId == null) {\r\n\t\t\terrors.push(\"Type cannot be empty.\");\r\n\t\t}\r\n\r\n\t\tif (model.BlacklistStatusId == null) {\r\n\t\t\terrors.push(\"Client Status cannot be empty.\");\r\n\t\t}\r\n\r\n\t\tif (model.OrganizationId == null) {\r\n\t\t\terrors.push(\"Organization cannot be empty.\");\r\n\t\t}\r\n\r\n\t\tvar interval = DateHelper.GetDate().diff(model.DateOfBirth, \"years\");\r\n\t\tif (model.DateOfBirth\r\n\t\t\t&& interval < 18) {\r\n\t\t\terrors.push(\"Individual must be at least 18 years of age.\");\r\n\t\t}\r\n\r\n\t\tif (model.IdTypeId1 != null\r\n\t\t\t&& (model.IdNumber1 == null\r\n\t\t\t\t|| model.IdNumber1 == \"\")) {\r\n\t\t\terrors.push(\"ID Type 1 is invalid.\");\r\n\t\t}\r\n\r\n\t\tif (model.IdTypeId2 != null\r\n\t\t\t&& (model.IdNumber2 == null\r\n\t\t\t\t|| model.IdNumber2 == \"\")) {\r\n\t\t\terrors.push(\"ID Type 2 is invalid.\");\r\n\t\t}\r\n\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tRenderOrganizationUniqueIdSelect = (d) => {\r\n\t\tif (window.OrganizationUniqueId != 5000) {\r\n\t\t const model = { ...this.state.model };\r\n\t\t model[\"OrganizationUniqueId\"] = d.OrganizationUniqueId;\r\n\t\t this.setState({ model: model });\r\n\t\t}\r\n \r\n\t\treturn d.OrganizationUniqueId + \"-\" + d.OrganizationName;\r\n\t };\r\n\r\n\trender() {\r\n\t\tconst { model, isBackOffice, list, clientTypeList, selected } = this.state;\r\n\t\tconst { Disabled, ExecuteApiPost, showConfirmMessageInDelete } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t this.SubmitOrUpdate(\"Insert\")\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Update\",\r\n\t\t\t\t\t\t\tDisabled: Disabled || selected == null,\r\n\t\t\t\t\t\t\tOnClick: () => this.SubmitOrUpdate(\"Update\")\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Delete\",\r\n\t\t\t\t\t\t\tDisabled: Disabled || selected == null,\r\n\t\t\t\t\t\t\tOnClick: () => showConfirmMessageInDelete(() => ExecuteApiPost(\"/amlkycapi/v1.0/InternalBlacklist/Delete\", { Id: model.Id }, null, null, null, [this.Clear, this.Search], true))\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Clear\",\r\n\t\t\t\t\t\t\tDisabled: Disabled,\r\n\t\t\t\t\t\t\tOnClick: this.Clear\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.ValueChanged}\r\n\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={!isBackOffice} />\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tthis.ValueChanged(name, newValue, data);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tthis.setState({ ProvinceList: [] }, () => this.GetProvince(\"ProvinceList\", newValue));\r\n\t\t\t\t\t\t\t\t\t\t\t\t}} />\r\n\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tthis.ValueChanged(name, newValue, data);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tthis.setState({ CityList: [] }, () => this.GetCity(\"CityList\", model.CountryId, newValue));\r\n\t\t\t\t\t\t\t\t\t\t\t\t}} />\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t(model.isCorporate || model.isMsbCorporate) &&\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tSigning Authority\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.ValueChanged(name, newValue, data);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.setState({ SigningAuthorityProvinceList: [] }, () => this.GetProvince(\"SigningAuthorityProvinceList\", newValue));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}} \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.ValueChanged(name, newValue, data);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.setState({ SigningAuthorityCityList: [] }, () => this.GetCity(\"SigningAuthorityCityList\", model.CountryId, newValue));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}} \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tDirector\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.ValueChanged(name, newValue, data);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.setState({ DirectorProvinceList: [] }, () => this.GetProvince(\"DirectorProvinceList\", newValue));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}} \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.ValueChanged(name, newValue, data);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.setState({ DirectorCityList: [] }, () => this.GetCity(\"DirectorCityList\", model.CountryId, newValue));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t((model.isPersonal || model.isMsbPersonal) ) &&\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nInternalBlacklist.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default InternalBlacklist;","import { DialogContent, Slide } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericSelectInput } from \"views/Components/Generic\";\r\nimport { ParameterEmptyObject } from \"views/Constants/Constant.Parameter\";\r\nimport { SortedName } from \"views/Constants/Constant.Sorted\";\r\n\r\nfunction Transition(props) {\r\n\treturn ;\r\n}\r\n\r\nclass KycReviewNumber extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Number of Review\",\r\n\t\t\t\taccessor: \"ReviewNumber\"\r\n\t\t\t}\r\n\t\t];\r\n\t\tthis.columnsDetail = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"CustomerName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Number of Review\",\r\n\t\t\t\taccessor: \"ReviewNumber\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tUniqueClientId: -1,\r\n\t\t\t\tDate: DateHelper.GetDate().subtract(1, \"days\")\r\n\t\t\t},\r\n\t\t\tisDetailDialogOpen: false\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"REPORTS\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"KYC Review Count\");\r\n\t\t}\r\n\t}\r\n\r\n\tValueChanged = (name, value, data) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\tif (name == \"MailAddress\") {\r\n\t\t\t\tmodel[\"MailAddressIsValid\"] = data.IsValid;\r\n\t\t\t}\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tconst { model, list } = this.state;\r\n\t\tvar newModel = list[index];\r\n\t\tnewModel.Date = model.Date;\r\n\r\n\t\tthis.setState({ model: newModel, selected: index, isDetailDialogOpen: true });\r\n\t}\r\n\r\n\tDetailDialogClose = () => {\r\n\t\tthis.setState({ isDetailDialogOpen: false });\r\n\t}\r\n\r\n\tGetRenderItemClient = (x) => {\r\n\t\tvar render = `${x.Name} - ${x.UniqueClientId}`;\r\n\r\n\t\treturn render;\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar request = { ...model };\r\n\t\trequest.UniqueClientId = model.UniqueClientId != -1\r\n\t\t\t? model.UniqueClientId\r\n\t\t\t: null;\r\n\r\n\t\tvar result = await ExecuteApiPost(\"/amlkycapi/v1.0/Kyc/SearchReviewNumberOp\", request);\r\n\r\n\t\tthis.setState({ list: result || [] });\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tvar { model } = this.state;\r\n\r\n\t\tmodel.UniqueClientId = -1;\r\n\t\tmodel.Date = DateHelper.GetDate().subtract(1, \"days\");\r\n\r\n\t\tthis.setState({ model, list: [] });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, list, selected, isDetailDialogOpen } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nKycReviewNumber.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default KycReviewNumber;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport ResourceHelper from \"core/ResourceHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericSelectInput } from \"views/Components/Generic\";\r\nimport { ParameterEmptyObject } from \"views/Constants/Constant.Parameter\";\r\nimport { SortedCode, SortedName } from \"views/Constants/Constant.Sorted\";\r\n\r\nclass KycScenarioMenuActionDefinition extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Parent Menu\",\r\n\t\t\t\taccessor: \"ParentMenuName\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{ResourceHelper.GetForMenu(row.value)}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sub Menu\",\r\n\t\t\t\taccessor: \"SubMenuName\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{ResourceHelper.GetForMenu(row.value)}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Action\",\r\n\t\t\t\taccessor: \"ActionDescription\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tParentMenuId: -2\r\n\t\t\t}\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"AML & KYC\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"KYC Scenario Menu Action Definition\");\r\n\t\t}\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\tif (name == \"ParentMenuId\") {\r\n\t\t\t\tmodel[\"SubMenuId\"] = null;\r\n\t\t\t\tmodel[\"ActionId\"] = null;\r\n\t\t\t} else if (name == \"SubMenuId\") {\r\n\t\t\t\tmodel[\"ActionId\"] = null;\r\n\t\t\t}\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tconst { list } = this.state;\r\n\r\n\t\tthis.setState({ model: list[index], selected: index });\r\n\t}\r\n\r\n\tGetSubMenuParameter = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tvar result = {\r\n\t\t\tId: model.ParentMenuId\r\n\t\t};\r\n\r\n\t\treturn result;\r\n\t}\r\n\r\n\tGetRenderItemAction = (x) => {\r\n\t\tvar result = `${x.Action.Code} - ${x.Action.Description}`;\r\n\r\n\t\treturn result;\r\n\t}\r\n\r\n\tGetMenuName(menu) {\r\n\t\tvar menuName = ResourceHelper.GetForMenu(menu.Name);\r\n\t\tvar menuNameAndCode = `${!menuName ? \"! \" + menu.Name : menuName} - ${menu.Code}`;\r\n\r\n\t\treturn menuNameAndCode;\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/amlkycapi/v1.0/KycScenarioMenuActionDefinition/Search\", model, null, null, this.ValidateSearch);\r\n\r\n\t\tthis.setState({ list: result || [] });\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: { ParentMenuId: -2 }, list: [], selected: null });\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tvar { model } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errors = [];\r\n\r\n\t\tif (!model.ParentMenuId\r\n\t\t\t|| model.ParentMenuId == -2) {\r\n\t\t\terrors.push(\"Parent menu can not be null.\");\r\n\t\t}\r\n\t\tif (!model.SubMenuId) {\r\n\t\t\terrors.push(\"Sub menu can not be null.\");\r\n\t\t}\r\n\t\tif (!model.ActionId) {\r\n\t\t\terrors.push(\"Action can not be null.\");\r\n\t\t}\r\n\r\n\t\tmodel[\"IsParentMenuId\"] = !model.ParentMenuId || model.ParentMenuId == -2;\r\n\t\tmodel[\"IsSubMenuId\"] = !model.SubMenuId;\r\n\t\tmodel[\"IsActionId\"] = !model.ActionId;\r\n\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tValidateSearch = () => {\r\n\t\tvar { model } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errors = [];\r\n\r\n\t\tif (model.ParentMenuId != null\r\n\t\t\t&& model.ParentMenuId != -2\r\n\t\t\t&& !model.SubMenuId) {\r\n\t\t\terrors.push(\"Sub menu can not be null.\");\r\n\t\t}\r\n\r\n\t\tmodel[\"IsParentMenuId\"] = false;\r\n\t\tmodel[\"IsSubMenuId\"] = model.ParentMenuId != null && model.ParentMenuId != -2 && !model.SubMenuId;\r\n\t\tmodel[\"IsActionId\"] = false;\r\n\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, list, selected } = this.state;\r\n\t\tconst { Disabled, ExecuteApiPost, showConfirmMessageInDelete } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t ExecuteApiPost(\"/amlkycapi/v1.0/KycScenarioMenuActionDefinition/Insert\", { MenuId: model.SubMenuId, ActionId: model.ActionId }, null, null, this.Validate, [this.Clear, this.Search], true)\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Update\",\r\n\t\t\t\t\t\t\tDisabled: Disabled || selected == null,\r\n\t\t\t\t\t\t\tOnClick: () => ExecuteApiPost(\"/amlkycapi/v1.0/KycScenarioMenuActionDefinition/Update\", { Id: model.Id, MenuId: model.SubMenuId, ActionId: model.ActionId }, null, null, this.Validate, [this.Clear, this.Search], true)\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Delete\",\r\n\t\t\t\t\t\t\tDisabled: Disabled || selected == null,\r\n\t\t\t\t\t\t\tOnClick: () => showConfirmMessageInDelete(() => ExecuteApiPost(\"/amlkycapi/v1.0/KycScenarioMenuActionDefinition/Delete\", { Id: model.Id }, null, null, null, [this.Clear, this.Search], true))\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Clear\",\r\n\t\t\t\t\t\t\tDisabled: Disabled,\r\n\t\t\t\t\t\t\tOnClick: this.Clear\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nKycScenarioMenuActionDefinition.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default KycScenarioMenuActionDefinition;","import { withStyles } from \"@material-ui/core\";\r\nimport kycManualPhotoDefinitionStyle from \"assets/jss/material-dashboard-pro-react/views/kycManualPhotoDefinitionStyle.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport { Proxy } from \"core\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\nimport { ApproveIcon, DetailIcon } from \"core/Icons\";\r\nimport GenericCardMedia from \"views/Components/Generic/GenericCardMedia.jsx\";\r\nimport { GenericDialog, GenericDialogActions, GenericLabel } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\n\r\n\r\nconst galerydefault = require(\"assets/img/galerydefault-image.png\");\r\n\r\nclass CardDesignTool extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n list: [],\r\n model: {\r\n Id: 0,\r\n UniqueClientId: ClientHelper.IsClient()\r\n ? ClientHelper.GetClientRowId()\r\n : undefined,\r\n image: \"\",\r\n\r\n },\r\n fileInfoModel: {},\r\n data: [],\r\n isLoading: false,\r\n rowIndex: -1,\r\n modelList: [],\r\n photoBase64: null,\r\n openDialog: false,\r\n imgSrc: null,\r\n isOpenkycUploadWindow: null\r\n };\r\n this.ParameterCardBrand = { ParameterCode: \"Brand\" };\r\n this.ParameterCardChipType = { ParameterCode: \"CardChipType\" };\r\n this.ParameterCardContactless = { ParameterCode: \"CardContactlessColorType\" };\r\n this.ParameterStatus = { ParameterCode: \"CardImageStatus\" };\r\n this.isBackOffice = ClientHelper.IsBackOffice();\r\n this.maxLength5 = { maxLength: 5 };\r\n this.trxTable = React.createRef();\r\n this.fileInputRef1 = React.createRef();\r\n }\r\n\r\n\r\n componentDidMount() {\r\n if (this.props.setAppLeftTitle) {\r\n this.props.setAppLeftTitle(\"Card Design Tool\");\r\n }\r\n if (this.props.setAppCenterTitle) {\r\n this.props.setAppCenterTitle(\"Card Design\");\r\n }\r\n\r\n }\r\n\r\n\r\n OpenFileSelectDialog = () => {\r\n this.fileInputRef1.current.click();\r\n }\r\n HandleChange = (name, newValue, data) => {\r\n const model = { ...this.state.model };\r\n model[name] = newValue;\r\n this.setState({ model });\r\n }\r\n HandleFileChange = (name, newValue, data) => {\r\n const model = { ...this.state.fileInfoModel };\r\n model[name] = newValue;\r\n this.setState({ model });\r\n };\r\n onTodoChange(value){\r\n this.setState({\r\n name: value\r\n });\r\n }\r\n\r\n ShowImage = async (selectedItem) => {\r\n const selectedRow = selectedItem;\r\n const model = { ...this.state.model };\r\n\r\n const { ExecuteApiPost } = this.props;\r\n var result = await ExecuteApiPost(\"/coreapi/v1.0/Image/ShowImageBase64FromImageList\", { Id: selectedRow.Id });\r\n\r\n var cardNumber = document.getElementById(\"cardNumber\").textContent = \"5032 9334 3764 9846\";\r\n cardNumber = document.getElementById(\"cardNumber\").style.position = \"absolute\";\r\n cardNumber = document.getElementById(\"cardNumber\").style.left = \"20px\";\r\n cardNumber = document.getElementById(\"cardNumber\").style.bottom = \"55px\";\r\n cardNumber = document.getElementById(\"cardNumber\").style.color = \"white\";\r\n cardNumber = document.getElementById(\"cardNumber\").style.fontSize = \"15px\";\r\n\r\n var cardName = document.getElementById(\"cardName\").textContent = \"Alexander Theodore\";\r\n cardName = document.getElementById(\"cardName\").style.position = \"absolute\";\r\n cardName = document.getElementById(\"cardName\").style.left = \"20px\";\r\n cardName = document.getElementById(\"cardName\").style.bottom = \"20px\";\r\n cardName = document.getElementById(\"cardName\").style.color = \"white\";\r\n cardName = document.getElementById(\"cardName\").style.fontSize = \"15px\";\r\n\r\n var cardDate = document.getElementById(\"cardDate\").textContent = \"09/19\";\r\n cardDate = document.getElementById(\"cardDate\").style.position = \"absolute\";\r\n cardDate = document.getElementById(\"cardDate\").style.left = \"160px\";\r\n cardDate = document.getElementById(\"cardDate\").style.bottom = \"30px\";\r\n cardDate = document.getElementById(\"cardDate\").style.color = \"white\";\r\n cardDate = document.getElementById(\"cardDate\").style.fontSize = \"15px\";\r\n\r\n if (selectedRow.CardChipTypeId == 11100) {\r\n var documentry = document.getElementById(\"cardChipType\").style.width = \"50px\";\r\n documentry = document.getElementById(\"cardChipType\").style.height = \"40px\";\r\n documentry = document.getElementById(\"cardChipType\").style.left = \"20px\";\r\n documentry = document.getElementById(\"cardChipType\").style.bottom = \"80px\";\r\n documentry = document.getElementById(\"cardChipType\").style.position = \"absolute\";\r\n documentry = document.getElementById(\"cardChipType\").style.borderRadius = \"5px\";\r\n documentry = document.getElementById(\"cardChipType\").style.backgroundColor = \"white\";\r\n }\r\n\t else {\r\n var documentry = document.getElementById(\"cardChipType\").style.width = \"\";\r\n documentry = document.getElementById(\"cardChipType\").style.height = \"\";\r\n documentry = document.getElementById(\"cardChipType\").style.left = \"\";\r\n documentry = document.getElementById(\"cardChipType\").style.bottom = \"\";\r\n documentry = document.getElementById(\"cardChipType\").style.position = \"\";\r\n documentry = document.getElementById(\"cardChipType\").style.borderRadius = \"\";\r\n documentry = document.getElementById(\"cardChipType\").style.backgroundColor = \"\";\r\n }\r\n\r\n if (selectedRow.CardBrandId == 3400) {\r\n var documentry2 = document.getElementById(\"cardBrandId\").style.width = \"80px\";\r\n documentry2 = document.getElementById(\"cardBrandId\").style.height = \"37px\";\r\n documentry2 = document.getElementById(\"cardBrandId\").style.left = \"235px\";\r\n documentry2 = document.getElementById(\"cardBrandId\").style.bottom = \"15px\";\r\n documentry2 = document.getElementById(\"cardBrandId\").style.position = \"absolute\";\r\n documentry2 = document.getElementById(\"cardBrandId\").style.borderRadius = \"10px\";\r\n documentry2 = document.getElementById(\"cardBrandId\").style.backgroundColor = \"white\";\r\n }\r\n\t else if (selectedRow.CardBrandId == 3403) {\r\n var documentry2 = document.getElementById(\"cardBrandId\").style.width = \"48px\";\r\n documentry2 = document.getElementById(\"cardBrandId\").style.height = \"48px\";\r\n documentry2 = document.getElementById(\"cardBrandId\").style.left = \"265px\";\r\n documentry2 = document.getElementById(\"cardBrandId\").style.bottom = \"15px\";\r\n documentry2 = document.getElementById(\"cardBrandId\").style.position = \"absolute\";\r\n documentry2 = document.getElementById(\"cardBrandId\").style.borderRadius = \"10px\";\r\n documentry2 = document.getElementById(\"cardBrandId\").style.backgroundColor = \"white\";\r\n }\r\n\t else if (selectedRow.CardBrandId == 3401) {\r\n var documentry2 = document.getElementById(\"cardBrandId\").style.width = \"80px\";\r\n documentry2 = document.getElementById(\"cardBrandId\").style.height = \"55px\";\r\n documentry2 = document.getElementById(\"cardBrandId\").style.left = \"235px\";\r\n documentry2 = document.getElementById(\"cardBrandId\").style.bottom = \"15px\";\r\n documentry2 = document.getElementById(\"cardBrandId\").style.position = \"absolute\";\r\n documentry2 = document.getElementById(\"cardBrandId\").style.borderRadius = \"30px\";\r\n documentry2 = document.getElementById(\"cardBrandId\").style.backgroundColor = \"white\";\r\n }\r\n\t else {\r\n var documentry2 = document.getElementById(\"cardBrandId\").style.width = \"\";\r\n documentry2 = document.getElementById(\"cardBrandId\").style.height = \"\";\r\n documentry2 = document.getElementById(\"cardBrandId\").style.left = \"\";\r\n documentry2 = document.getElementById(\"cardBrandId\").style.bottom = \"\";\r\n documentry2 = document.getElementById(\"cardBrandId\").style.position = \"\";\r\n documentry2 = document.getElementById(\"cardBrandId\").style.borderRadius = \"\";\r\n documentry2 = document.getElementById(\"cardBrandId\").style.backgroundColor = \"\";\r\n }\r\n\r\n if (selectedRow.CardContactlessColorTypeId == 11102) {\r\n var documentry3 = document.getElementById(\"cardContactlessColorType\").style.position = \"absolute\";\r\n documentry3 = document.getElementById(\"cardContactlessColorType\").style.width = \"40px\";\r\n documentry3 = document.getElementById(\"cardContactlessColorType\").style.height = \"40px\";\r\n documentry3 = document.getElementById(\"cardContactlessColorType\").style.left = \"275px\";\r\n documentry3 = document.getElementById(\"cardContactlessColorType\").style.bottom = \"100px\";\r\n documentry3 = document.getElementById(\"cardContactlessColorType\").style.borderRadius = \"40px\";\r\n documentry3 = document.getElementById(\"cardContactlessColorType\").style.backgroundColor = \"black\";\r\n }\r\n\t else if (selectedRow.CardContactlessColorTypeId == 11104) {\r\n var documentry3 = document.getElementById(\"cardContactlessColorType\").style.position = \"absolute\";\r\n documentry3 = document.getElementById(\"cardContactlessColorType\").style.width = \"40px\";\r\n documentry3 = document.getElementById(\"cardContactlessColorType\").style.height = \"40px\";\r\n documentry3 = document.getElementById(\"cardContactlessColorType\").style.left = \"275px\";\r\n documentry3 = document.getElementById(\"cardContactlessColorType\").style.bottom = \"100px\";\r\n documentry3 = document.getElementById(\"cardContactlessColorType\").style.borderRadius = \"40px\";\r\n documentry3 = document.getElementById(\"cardContactlessColorType\").style.backgroundColor = \"white\";\r\n }\r\n\t else {\r\n var documentry3 = document.getElementById(\"cardContactlessColorType\").style.position = \"\";\r\n documentry3 = document.getElementById(\"cardContactlessColorType\").style.width = \"\";\r\n documentry3 = document.getElementById(\"cardContactlessColorType\").style.height = \"\";\r\n documentry3 = document.getElementById(\"cardContactlessColorType\").style.left = \"\";\r\n documentry3 = document.getElementById(\"cardContactlessColorType\").style.bottom = \"\";\r\n documentry3 = document.getElementById(\"cardContactlessColorType\").style.borderRadius = \"\";\r\n documentry3 = document.getElementById(\"cardContactlessColorType\").style.backgroundColor = \"\";\r\n }\r\n\r\n if(selectedRow.BackgroundColorId == 11105 || selectedRow.BackgroundColorId == 11109 || selectedRow.BackgroundColorId == 11107){\r\n let cardName = document.getElementById(\"cardName\").style.color = \"black\";\r\n let cardNumber = document.getElementById(\"cardNumber\").style.color = \"black\";\r\n let cardDate = document.getElementById(\"cardDate\").style.color = \"black\";\r\n }\r\n\t else if(selectedRow.BackgroundColorId == 11106 || selectedRow.BackgroundColorId == 11110 || selectedRow.BackgroundColorId == 11108){\r\n let cardName = document.getElementById(\"cardName\").style.color = \"white\";\r\n let cardNumber = document.getElementById(\"cardNumber\").style.color = \"white\";\r\n let cardDate = document.getElementById(\"cardDate\").style.color = \"white\";\r\n }\r\n\r\n model.StoredImage = result;\r\n this.setState({ fileInfoModel: selectedRow, model});\r\n }\r\n\r\n RowSelected = async (index) => {\r\n const selectedRow = this.state.data[index];\r\n const model = { ...this.state.model };\r\n\r\n this.setState({ fileInfoModel: selectedRow, model, rowIndex: index });\r\n }\r\n\r\n\r\n HandlePopupManualUpload = async () => {\r\n let model = { ...this.state.model };\r\n model.classes = this.props.classes;\r\n localStorage.setItem(\"CardDesign\", JSON.stringify(model));\r\n this.popupUploadWindow = window.open(\"/#/out/CardDesign\", \"_blank\", \"toolbar=no,scrollbars=no,resizable=yes,top=100,left=100,width=1200,height=800\");\r\n this.setState({ isOpenkycUploadWindow: true });\r\n var popupCloseAwaiter = new Promise((resolve) => {\r\n this.popupUploadWindow.onunload = () => {\r\n if (this.popupUploadWindow.location.href == \"about:blank\") {\r\n return;\r\n }\r\n var parsedId = Number.parseInt(localStorage.getItem(\"CardDesign\"));\r\n if (this.popupUploadWindow?.closed && parsedId > 0) {\r\n resolve(parsedId);\r\n }\r\n\t\t else {\r\n resolve(false);\r\n }\r\n localStorage.removeItem(\"CardDesign\");\r\n this.popupUploadWindow = null;\r\n this.setState({ isOpenkycUploadWindow: false });\r\n };\r\n });\r\n\r\n var result = await popupCloseAwaiter;\r\n if (result) {\r\n this.props.showMessage(\"success\", \"Success\", \"Photos successfully updated!\");\r\n }\r\n return result;\r\n\r\n }\r\n handleUpdate = async () => {\r\n this.setState({ isLoading: true });\r\n const { ExecuteApiPost } = this.props;\r\n var fileInfoModel = { ...this.state.fileInfoModel };\r\n\r\n switch (fileInfoModel.ChangeStatus) {\r\n case \"Approved\":\r\n fileInfoModel.ChangeStatus = \"11111\";\r\n break;\r\n case \"Rejected\":\r\n fileInfoModel.ChangeStatus = \"11112\";\r\n break;\r\n case \"Unapproved\":\r\n fileInfoModel.ChangeStatus = \"11113\";\r\n break;\r\n default:\r\n break;\r\n }\r\n\r\n var responseData = await ExecuteApiPost(\"/amlkycapi/v1.0/KycManualApplication/CardImageStatusUpdate\", { Id: fileInfoModel.Id, ChangeStatus: fileInfoModel.ChangeStatus, UniqueClientId: fileInfoModel.UniqueClientId, Description: fileInfoModel.Description, CardImageCode: fileInfoModel.CardImageCode });\r\n\r\n if (responseData != null) {\r\n this.props.showMessage(\"success\", \"Image Status\", \"Image Status Updated\");\r\n this.setState({\r\n isLoading: false, openDialog: false\r\n });\r\n }\r\n\t else {\r\n this.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n return;\r\n }\r\n\t this.HandleSearch();\r\n };\r\n handleFileinfoChange = (name, newValue, data) => {\r\n const fileInfoModel = { ...this.state.fileInfoModel };\r\n fileInfoModel[name] = newValue;\r\n this.setState({ fileInfoModel });\r\n }\r\n HandleSearch = () => {\r\n const model = { ...this.state.model };\r\n this.setState({ isLoading: true });\r\n Proxy.POST(\r\n \"/amlkycapi/v1.0/KycManualApplication/CardDesignToolSearch\",\r\n model,\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n\r\n if (!responseData.IsSucceeded) {\r\n this.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n return;\r\n }\r\n if (responseData.Item !== null) {\r\n this.setState({ data: responseData.Item });\r\n }\r\n },\r\n (error) => {\r\n this.setState({ isLoading: false });\r\n this.props.showMessage(\"error\", \"Error\", error);\r\n }\r\n );\r\n }\r\n HandleChangeActiveStatus = (model) => {\r\n this.setState({ openDialog: true, fileInfoModel: model });\r\n }\r\n DialogClose = () => {\r\n this.setState({ openDialog: false });\r\n }\r\n HandleClearCancel = () => {\r\n this.setState({ openDialog: false });\r\n }\r\n Clear = () => {\r\n this.setState({ model: {}, data: [], isLoading: false, rowIndex: -1 });\r\n }\r\n showDesign = () => {\r\n\r\n if (localStorage.getItem('CardImage1') === \"null\" || localStorage.getItem('CardImage2') === \"null\") {\r\n this.setState({ imgSrc: localStorage.getItem('CardImage') });\r\n } else {\r\n this.setState({ imgSrc: localStorage.getItem('CardImage1') + localStorage.getItem('CardImage2') });\r\n }\r\n }\r\n OpenAutodepositInsert = (customer) => {\r\n this.setState({ autoDepositInsertDialogOpen: true, selectedCustomer: customer });\r\n\t}\r\n\r\n\r\n render() {\r\n const { model, data, isLoading, openDialog, fileInfoModel } = this.state;\r\n const { Disabled, classes, ExecuteApiPost } = this.props;\r\n\r\n return (\r\n
\r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n `${d.UniqueClientId} - ${d.Name}`}\r\n Value={model.UniqueClientId || \"\"}\r\n ValueChanged={this.HandleChange}\r\n All\r\n CanClear\r\n Disabled={!this.isBackOffice}\r\n DefaultIndex={ClientHelper.IsClient() ? 0 : -1} />\r\n \r\n\r\n \r\n \r\n Manual Image Upload\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n (\r\n
\r\n { this.HandleChangeActiveStatus(row.original); }} />\r\n { this.ShowImage(row.original); }} />\r\n
\r\n )\r\n },\r\n {\r\n Header: \"Client Name\",\r\n accessor: \"ClientName\"\r\n },\r\n {\r\n Header: \"Insert Date\",\r\n accessor: \"InsertDateTime\",\r\n type: GridColumnType.DateTime,\r\n ColumnType: GridColumnType.DateTime\r\n },\r\n {\r\n Header: \"Card Image Code\",\r\n accessor: \"CardImageCode\"\r\n },\r\n {\r\n Header: \"Emboss Font Color\",\r\n accessor: \"BackgroundColor\"\r\n },\r\n {\r\n Header: \"Card Brand\",\r\n accessor: \"CardBrand\"\r\n },\r\n {\r\n Header: \"Card Contactless Color\",\r\n accessor: \"CardContactlessColorType\"\r\n\r\n },\r\n {\r\n Header: \"Card Chip\",\r\n accessor: \"CardChipType\"\r\n\r\n },\r\n {\r\n Header: \"Status\",\r\n accessor: \"Status\"\r\n },\r\n {\r\n Header: \"Insert User\",\r\n accessor: \"InsertUser\"\r\n },\r\n {\r\n Header: \"Plastic Name\",\r\n accessor: \"PlasticName\"\r\n }\r\n ]}\r\n RowSelected={this.RowSelected}\r\n SelectedIndex={this.state.rowIndex}\r\n />\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\t\t\t\t\t\t\t\t\t \r\n \r\n \r\n
\r\n \r\n
\r\n\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n );\r\n }\r\n\r\n}\r\n\r\nCardDesignTool.propTypes = {\r\n setAppLeftTitle: PropTypes.func,\r\n setAppCenterTitle: PropTypes.func,\r\n Disabled: PropTypes.bool,\r\n menuId: PropTypes.any,\r\n ApprovalData: PropTypes.any,\r\n After: PropTypes.any\r\n};\r\n\r\nexport default withStyles(kycManualPhotoDefinitionStyle)(CardDesignTool);","import React from \"react\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport ExternalContainer from \"layouts/ExternalContainer\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport { GenericExpansionPanel, GenericSelectInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nimport { CrudType, FileType } from \"views/Constants/Constant\";\r\nimport FileHelper from \"core/FileHelper\";\r\nimport ImageHelper from \"core/ImageHelper\";\r\nimport GenericCardMedia from \"views/Components/Generic/GenericCardMedia.jsx\";\r\n\r\nclass CardDesign extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tlist: [],\r\n\t\t\tfileInfoModel: {},\r\n\t\t\tmodel: {\r\n\t\t\t\tUniqueClientId: ClientHelper.IsClient()\r\n\t\t\t\t\t? ClientHelper.GetClientRowId()\r\n\t\t\t\t\t: undefined,\r\n\t\t\t\timage: \"\"\r\n\t\t\t},\r\n\t\t\tisOpenkycUploadWindow: null,\r\n\t\t\tdata: [],\r\n\t\t\tisLoading: false,\r\n\t\t\trowIndex: -1,\r\n\t\t\tmodelList: [],\r\n\t\t\tphotoBase64: null,\r\n\t\t\topenDialog: false,\r\n\t\t\tcameraLabel: null,\r\n\t\t\timgSrc: null\r\n\t\t};\r\n\t\tthis.ParameterCardBrand = { ParameterCode: \"Brand\" };\r\n\t\tthis.ParameterCardChipType = { ParameterCode: \"CardChipType\" };\r\n\t\tthis.ParameterCardContactless = { ParameterCode: \"CardContactlessColorType\" };\r\n\t\tthis.isBackOffice = ClientHelper.IsBackOffice();\r\n\t\tthis.fileInputRef1 = React.createRef();\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tif (this.props.setAppLeftTitle) {\r\n\t\t\tthis.props.setAppLeftTitle(\"Card Design Tool\");\r\n\t\t}\r\n\t\tif (this.props.setAppCenterTitle) {\r\n\t\t\tthis.props.setAppCenterTitle(\"Card Design\");\r\n\t\t}\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\trender() {\r\n\t\t\tconst {model } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\tValueChanged={this.HandleChange}\r\n\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\tDisabled={!this.isBackOffice}\r\n\t\t\t\t\t\t\tDefaultIndex={ClientHelper.IsClient() ? 0 : -1} />\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n\r\n}\r\n\r\nCardDesign.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default (CardDesign);","import { DialogContent, DialogTitle, Slide, withStyles } from \"@material-ui/core\";\r\nimport kycManualPhotoDefinitionStyle from \"assets/jss/material-dashboard-pro-react/views/kycManualPhotoDefinitionStyle.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericCamera, GenericCardMedia, GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { CrudType, FileCode, FileType } from \"views/Constants/Constant\";\r\nimport FileHelper from \"core/FileHelper\";\r\nimport ImageHelper from \"core/ImageHelper\";\r\n\r\nconst ProfileMale = require(\"assets/img/profile-male.png\");\r\nconst ProfileFemale = require(\"assets/img/profile-female.png\");\r\n\r\nconst FaceTemplate = require(\"assets/img/face-template.png\");\r\n\r\n\r\n\r\nconst initialState = {\r\n\r\n\tmodel: {},\r\n\tmodelList: [],\r\n\tphotoBase64: null,\r\n\topenDialog: false,\r\n\tcameraLabel: null\r\n};\r\n\r\nclass KycManualPhotoDefinition extends React.PureComponent {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = Object.assign({}, initialState);\r\n\t\tthis.parameterIdentificationMethod = { ParameterCode: \"IdentificationMethod\" };\r\n\t\tthis.emptyObject = {};\r\n\t\tthis.sortName = { Member: \"Name\" };\r\n\t\tthis.gridSortParam = [{ id: \"Status\", desc: false }];\r\n\t\tthis.ColumnsData = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date\",\r\n\t\t\t\taccessor: \"InsertDate\",\r\n\t\t\t\twidth: 100,\r\n\t\t\t\tCell: row => (
{Formatter.FormatDate(row.value)}
)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Full Name\",\r\n\t\t\t\taccessor: \"FullName\",\r\n\t\t\t\tCell: row => (
{row.value}
)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Identity Photo Status\",\r\n\t\t\t\taccessor: \"IdentityPhotoId\",\r\n\t\t\t\tCell: row => (
{row.original.IdentityPhotoId > 0 ? \"Found\" : \"Not Found\"}
)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Identity Back Photo Status\",\r\n\t\t\t\taccessor: \"IdentityPhotoId\",\r\n\t\t\t\tCell: row => (
{row.original.IdentityPhotoBackId > 0 ? \"Found\" : \"Not Found\"}
)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"User Photo Status\",\r\n\t\t\t\taccessor: \"UserPhotoId\",\r\n\t\t\t\tCell: row => (
{row.original.UserPhotoId > 0 ? \"Found\" : \"Not Found\"}
)\r\n\t\t\t}\r\n\r\n\t\t];\r\n\t\tthis.fileInputRef1 = React.createRef();\r\n\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\tif (this.props.setAppLeftTitle) {\r\n\t\t\tthis.props.setAppLeftTitle(\"Manual KYC Application Photo Definition\");\r\n\t\t}\r\n\t\tif (this.props.setAppCenterTitle) {\r\n\t\t\tthis.props.setAppCenterTitle(\"AML & KYC\");\r\n\t\t}\r\n\t\tthis.GetGenderList();\r\n\t}\r\n\thandleOnCameraStart = (stream, cameraLabel) => {\r\n\t\tthis.setState({ stream, cameraLabel });\r\n\t}\r\n\r\n\thandleTakePhoto = async (dataUri, base64) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tvar cameraLabel = this.state.cameraLabel;\r\n\r\n\r\n\t\tlet name = \"Webcam.png\";\r\n\t\tif (cameraLabel) {\r\n\t\t\tname = cameraLabel;\r\n\t\t}\r\n\t\tvar rawFile = FileHelper.DataURLtoFile(dataUri, name);\r\n\t\tvar blob = await ImageHelper.CompressImage(rawFile);\r\n\t\tvar compressedBase64 = await FileHelper.BlobToBase64(blob);\r\n\t\tvar compressedFile = FileHelper.DataURLtoFile(compressedBase64, name);\r\n\r\n\t\tmodel.File = compressedFile;\r\n\t\tmodel.FileName = name;\r\n\t\tthis.setState({ photoBase64: compressedBase64, model });\r\n\t\tthis.handleClose();\r\n\t}\r\n\r\n\thandleCameraError = (error) => {\r\n\t\tthis.props.showMessage(\"error\", \"Camera Error\", \"Camera access errror!\");\r\n\t}\r\n\r\n\tGetColumnsRowStyleColor(row) {\r\n\t\tthis.columnsRowStyleColor = {\r\n\t\t\tcolor: row != null && row.UserPhotoId && row.IdentityPhotoId\r\n\t\t\t\t? \"#113311\"\r\n\t\t\t\t: \"\"\r\n\t\t};\r\n\r\n\t\treturn this.columnsRowStyleColor;\r\n\t}\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tSelectedRowChange = (index) => {\r\n\t\tconst model = this.state.modelList[index];\r\n\t\tmodel.genderValue = this.state.genderList && (this.state.genderList.find(a => a.Id == model.GenderId) || { ParameterValue: \"M\" }).ParameterValue;\r\n\t\tthis.setState({ model: model });\r\n\t}\r\n\tHandleSearch = async () => {\r\n\t\tconst model = this.state.model;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/amlkycapi/v1.0/KycManualApplication/Search\", model);\r\n\t\tvar modelList = result || [];\r\n\t\tthis.setState({ modelList, photoBase64: null });\r\n\t}\r\n\tHandleSubmit = async () => {\r\n\t\tconst { ExecuteApiFileUpload, ExecuteApiPost } = this.props;\r\n\t\tvar { model, modelList } = this.state;\r\n\t\tvar kycManualApplicationId = model.Id || 0;\r\n\t\tvar kycManualApplicationUserPhotoId = model.UserPhotoId || 0;\r\n\t\tvar formData = new FormData();\r\n\t\tformData.append(\"file\", model.File, model.FileName);\r\n\t\tformData.append(\"fileId\", model.UserPhotoId || 0);\r\n\t\tformData.append(\"fileCode\", FileCode.KycManualPhoto);\r\n\t\tformData.append(\"isBinaryOrBase64\", FileType.Base64);\r\n\t\tformData.append(\"isInsertOrUpdate\", model.UserPhotoId == null ? CrudType.Insert : CrudType.Update);\r\n\t\tmodel.UserPhotoId = null;\r\n\t\tthis.setState({ model });\r\n\t\tvar result = await ExecuteApiFileUpload(\"/coreapi/v1.0/File/UploadFile\", formData);\r\n\t\tvar fileId = result;\r\n\t\tif (result && result > 0) {\r\n\r\n\t\t\tif (!model.Image) {\r\n\t\t\t\tmodel.Image = {};\r\n\t\t\t}\r\n\t\t\tmodel.UserPhotoId = fileId;\r\n\t\t\tmodel.File = null;\r\n\t\t\tmodel.FileName = null;\r\n\t\t\tvar requestModel = {\r\n\t\t\t\tKycManualApplicationId: model.Id,\r\n\t\t\t\tUserPhotoId: fileId\r\n\t\t\t};\r\n\t\t\tif (kycManualApplicationUserPhotoId == 0) {\r\n\t\t\t\tresult = await ExecuteApiPost(\"/amlkycapi/v1.0/KycManualApplication/ImageInsertOrUpdate\", requestModel);\r\n\t\t\t\tmodel.ImageId = result;\r\n\t\t\t}\r\n\t\t\tif (result) {\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Success\", \"Photo uploaded successfully!\");\r\n\t\t\t}\r\n\r\n\t\t\tmodelList = modelList.map(item => {\r\n\t\t\t\tif (item.Id == kycManualApplicationId) {\r\n\t\t\t\t\titem.UserPhotoId = fileId;\r\n\t\t\t\t\tif (result && result > 0) {\r\n\t\t\t\t\t\titem.ImageId = result;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn item;\r\n\t\t\t});\r\n\t\t\tthis.setState({ model, modelList, photoBase64: null });\r\n\t\t}\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tif (this.fileInputRef1 && this.fileInputRef1.current) {\r\n\t\t\tthis.fileInputRef1.current.value = null;\r\n\t\t}\r\n\t\tthis.setState({ modelList: [], model: {}, selected: null, photoBase64: null });\r\n\t}\r\n\thandleClose = () => {\r\n\t\tthis.setState({\r\n\t\t\topenDialog: false\r\n\t\t});\r\n\t}\r\n\thandleOpenCamera = () => {\r\n\t\tthis.setState({ openDialog: true });\r\n\t}\r\n\tGetGenderList = async () => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/Parameter/Search\", { ParameterCode: \"Gender\", ParameterValue: \"\", ParameterDesc: \"\" });\r\n\r\n\t\tthis.setState({ genderList: result || [] });\r\n\t}\r\n\tTransition = (props) => {\r\n\t\treturn ;\r\n\t}\r\n\tOpenFileSelectDialog = () => {\r\n\t\tthis.fileInputRef1.current.click();\r\n\t}\r\n\r\n\r\n\tHandleFileSelect = async (e) => {\r\n\r\n\t\tconst { model } = this.state;\r\n\t\te.preventDefault();\r\n\t\tvar file1 = e.target.files[0];\r\n\t\tif (!file1) return;\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tif (((file1.size || 0) / 1024 / 1024) > 10) {\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Photo file size cannot be larger than 10mb\");\r\n\t\t\tthis.setState({ isLoading: false });\r\n\t\t\treturn;\r\n\t\t}\t\t\r\n\r\n\t\tvar blob = await ImageHelper.CompressImage(file1);//Start Compression if over 500kb\r\n\t\tvar compressedBase64 = await FileHelper.BlobToBase64(blob);\r\n\t\tvar compressedFile = FileHelper.DataURLtoFile(compressedBase64, file1.name);\r\n\r\n\t\tvar imageObj = await ImageHelper.GetImageObjectFromBase64(compressedBase64);\r\n\t\tif (imageObj?.width < 100 || imageObj?.height < 100) {\r\n\t\t\tawait this.props.showMessage(\"error\", \"Error\", \"Any dimension of the image cannot be under 100 pixel\");\r\n\t\t\tthis.setState({ isLoading: false });\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tmodel.TempFileId = model.UserPhotoId || 0;\r\n\t\tmodel.File = compressedFile;\r\n\t\tmodel.FileName = file1.name;\r\n\t\tmodel.FileSelect = true; \r\n\r\n\t\tthis.setState({ photoBase64: compressedBase64, isLoading: false });\r\n\t}\r\n\r\n\thandleRotateImage = async () => {\r\n\t\tconst { photoBase64, model } = this.state;\r\n\t\tif (!photoBase64) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tvar imageBase64 = ImageHelper.GenerateImageFromRawBase64(photoBase64);\r\n\t\tvar rotatedBase64 = await ImageHelper.Rotate(imageBase64, 90); \r\n\t\tvar rotatedFile = FileHelper.DataURLtoFile(rotatedBase64, model.FileName);\r\n\t\tmodel.File = rotatedFile;\r\n\t\tthis.setState({ photoBase64: rotatedBase64, model, isLoading: false });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, modelList, openDialog, photoBase64, isLoading } = this.state;\r\n\t\tconst { Disabled, classes, ExecuteApiPost } = this.props;\r\n\r\n\r\n\t\tvar imgRatio = 0.5;\r\n\t\tvar activeOverlay = FaceTemplate;\r\n\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\r\n\t\t\t\t 0 && photoBase64),\r\n\t\t\t\t\t\t\tOnClick: this.HandleSubmit\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Clear\",\r\n\t\t\t\t\t\t\tDisabled: Disabled,\r\n\t\t\t\t\t\t\tOnClick: this.HandleClear\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\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ect Photo\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n\r\n}\r\n\r\nKycManualPhotoDefinition.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default withStyles(kycManualPhotoDefinitionStyle)(KycManualPhotoDefinition);","import { DialogContent, Slide } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper.js\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { DetailIcon } from \"core/Icons\";\r\nimport { TaskPool } from \"core/TaskPool\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { IdentificationMethod, KYCManualApplicationStatus, KycManualApplicationReasonType } from \"views/Constants/Constant\";\r\nimport ManualKycApplication from \"./ManualKycApplication\";\r\n\r\n\r\nfunction Transition(props) {\r\n\treturn ;\r\n}\r\n\r\nconst initialState = {\r\n\r\n\tmodel: {\r\n\t\tInPersonIDVerificationEnable: false,\r\n\t\tCanadaPostVerificationEnable: false,\r\n\t\tExternalAccount: {\r\n\t\t\tFinancialInstitutionId: 0,\r\n\t\t\tFinancialInstitutionBranchId: 0,\r\n\t\t\tAccountNumber: null\r\n\t\t},\r\n\t\tCustomerId: 0,\r\n\t\tCustomerNumber: \"\",\r\n\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined,\r\n\t},\r\n\tstickyContent: null,\r\n\tmanualKycModel: {},\r\n\tmodelList: [],\r\n\tisLoading: false,\r\n\tIsActiveLoanPurposeDescription: false,\r\n\tIdVerificationTypeList: [],\r\n\thasChanged: false,\r\n\tisKycManualDialogOpen: false,\r\n\treasonTypeList: []\r\n};\r\n\r\nclass ManualKycApplicationList extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = Object.assign({}, initialState);\r\n\t\tthis.parameterIdentificationMethod = { ParameterCode: \"IdentificationMethod\" };\r\n\t\tthis.emptyObject = {};\r\n\t\tthis.GetIdentityVerificationType = this.GetIdentityVerificationType.bind(this);\r\n\t\tthis.loadTaskPool = new TaskPool(this.handleLoadTaskPoolAppend, this.handleLoadTaskPoolCompleted);\r\n\t\tthis.sortName = { Member: \"Name\" };\r\n\t\tthis.getappCenterTitle = \"Empty\";\r\n\t\tthis.getappLeftTitle = \"Empty\";\r\n\t\tthis.ColumnsData = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\twidth: 50,\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date\",\r\n\t\t\t\taccessor: \"InsertDate\",\r\n\t\t\t\twidth: 50,\r\n\t\t\t\tCell: row => (
{Formatter.FormatDate(row.value)}
)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Full Name\",\r\n\t\t\t\taccessor: \"FullName\",\r\n\t\t\t\tCell: row => (
{row.value}
)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"BirthDate\",\r\n\t\t\t\taccessor: \"BirthDate\",\r\n\t\t\t\tCell: row => (
{Formatter.FormatDate(row.value)}
)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"ID Verification Status\",\r\n\t\t\t\taccessor: \"IdVerificationStatus\",\r\n\t\t\t\tCell: row => (
{row.value ? \"Valid\" : \"Invalid\"}
)\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Internal Blacklist Status\",\r\n\t\t\t\taccessor: \"InternalBlacklistStatus\",\r\n\t\t\t\tCell: row => (
{row.value ? \"Valid\" : \"Invalid\"}
)\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Watch List Verification Status\",\r\n\t\t\t\taccessor: \"WatchListVerificationStatus\",\r\n\t\t\t\tCell: row => (
{row.value ? \"Valid\" : \"Invalid\"}
)\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Trans Union Id Verification Status\",\r\n\t\t\t\taccessor: \"TransUnionIdVerificationStatus\",\r\n\t\t\t\tCell: row => (
{row.value ? \"Valid\" : \"Invalid\"}
)\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\twidth: 100,\r\n\t\t\t\tHeader: \"Canada Post Verification Id Status\",\r\n\t\t\t\taccessor: \"CanadaPostVerification\",\r\n\t\t\t\tCell: row => (
{row.value}
)\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\twidth: 140,\r\n\t\t\t\tHeader: \"Digital Verification Status\",\r\n\t\t\t\taccessor: \"DigitalIdentityVerificationStatus\",\r\n\t\t\t\tCell: row => (
{row?.original?.DigitalIdentityVerificationId > 0 ? row?.value ? \"Valid\" : \"Invalid\" : \"\"}
)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\twidth: 120,\r\n\t\t\t\tHeader: \"Digital Verification Request Status\",\r\n\t\t\t\taccessor: \"DigitalIdentityVerificationRequestStatus\",\r\n\t\t\t\tCell: row => (
{row.value}
)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\twidth: 100,\r\n\t\t\t\tHeader: \"Account Verification Status\",\r\n\t\t\t\taccessor: \"AccountVerificationStatus\",\r\n\t\t\t\tCell: row => (
{row?.original?.CustomerLinkedAccountId > 0 ? row?.value ? \"Valid\" : \"Invalid\" : \"\"}
)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\twidth: 120,\r\n\t\t\t\tHeader: \"Account Verification Request Status\",\r\n\t\t\t\taccessor: \"AccountVerificationRequestStatus\",\r\n\t\t\t\tCell: row => (
{row.value}
)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Approvel Status\",\r\n\t\t\t\taccessor: \"ParameterStatus\",\r\n\t\t\t\tCell: row => (
{row.value}
)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reason\",\r\n\t\t\t\taccessor: \"ReasonTypeId\",\r\n\t\t\t\tCell: row => (
{this.GetReasonTypeParameterById(row.value)?.ParameterDesc}
)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Comment\",\r\n\t\t\t\taccessor: \"ReasonComment\",\r\n\t\t\t\twidth: 120,\r\n\t\t\t\tCell: row => (
{row.value}
)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Identity Number\",\r\n\t\t\t\taccessor: \"IdentityNumber\",\r\n\t\t\t\tCell: row => (
{row.value}
)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Identity Type\",\r\n\t\t\t\taccessor: \"IdentityTypeName\",\r\n\t\t\t\tCell: row => (
{row.value}
)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"External AccountNumber\",\r\n\t\t\t\taccessor: \"ExternalAccountNumber\",\r\n\t\t\t\tCell: row => (
{row.value}
)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Identity Country\",\r\n\t\t\t\taccessor: \"IdentityCountryName\",\r\n\t\t\t\tCell: row => (
{row.value}
)\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Identity Province\",\r\n\t\t\t\taccessor: \"IdentityProvinceName\",\r\n\t\t\t\tCell: row => (
{row.value}
)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"E-Mail\",\r\n\t\t\t\taccessor: \"Email\",\r\n\t\t\t\tCell: row => (
{row.value}
)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Address1\",\r\n\t\t\t\taccessor: \"Address1\",\r\n\t\t\t\tCell: row => (
{row.value}
)\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"City\",\r\n\t\t\t\taccessor: \"CityName\",\r\n\t\t\t\tCell: row => (
{row.value}
)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Country\",\r\n\t\t\t\taccessor: \"CountryName\",\r\n\t\t\t\tCell: row => (
{row.value}
)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Province\",\r\n\t\t\t\taccessor: \"ProvinceName\",\r\n\t\t\t\tCell: row => (
{row.value}
)\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Mobile Phone\",\r\n\t\t\t\tCell: row => (
{row.original.MobilePhoneNumber}
)\r\n\r\n\t\t\t}\r\n\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tif (this.props.setAppLeftTitle) {\r\n\t\t\tthis.props.setAppLeftTitle(\"Manual KYC Application List\");this.getappLeftTitle = \"Manual KYC Application List\";\r\n\t\t}\r\n\t\tif (this.props.setAppCenterTitle) {\r\n\t\t\tthis.props.setAppCenterTitle(\"AML & KYC\");this.getappCenterTitle = \"AML & KYC\";\r\n\t\t}\r\n\t\tthis.GetIdentityVerificationType();\r\n\t\tthis.LoadCanadaPost();\r\n\t\tthis.GetReasonTypeList();\r\n\t}\r\n\tGetReasonTypeList = async () => {\r\n\t\tvar result = await this.props.ExecuteApiPost(\"/coreapi/v1.0/Parameter/Search\", { ParameterCode: KycManualApplicationReasonType.CODE });\r\n\t\tthis.setState({ reasonTypeList: result || [] });\r\n\t}\r\n\tGetReasonTypeParameterById = (id) => {\r\n\t\tconst { reasonTypeList } = this.state;\r\n\t\treturn reasonTypeList.find(a => a.Id == id);\r\n\t}\r\n\r\n\tKycDetailDialogOpen = (model) => () => {\r\n\r\n\t\tthis.setState({ isKycManualDialogOpen: true, manualKycModel: model });\r\n\r\n\t}\r\n\tGetColumnsRowStyleColor(status) {\r\n\t\tthis.columnsRowStyleColor = {\r\n\t\t\tcolor: status != null && status == KYCManualApplicationStatus.OnHold\r\n\t\t\t\t? \"#FB3005\"\r\n\t\t\t\t: \"\"\r\n\t\t};\r\n\r\n\t\treturn this.columnsRowStyleColor;\r\n\t}\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tif (name == \"IdentityVerifiedPersonId\" && ((model.IdentityVerifiedPersonId == null || model.IdentityVerifiedPersonId == 0) ||\r\n\t\t\t(model.IdentityVerifiedPerson == null))) {\r\n\t\t\tmodel[\"IdentityVerifiedPersonId\"] = ClientHelper.GetUser().Id;\r\n\t\t\tmodel[\"IdentityVerifiedPerson\"] = ClientHelper.GetUser();\r\n\t\t}\r\n\t\tif (name == \"IdentityVerificationTypeId\" && data != null) {\r\n\t\t\tmodel.CanadaPostVerificationEnable = false;\r\n\r\n\t\t\tmodel.InPersonIDVerificationEnable = false;\r\n\t\t\tif (data.ParameterValue == IdentificationMethod.InPersonIDVerification) {\r\n\t\t\t\tmodel.InPersonIDVerificationEnable = true;\r\n\t\t\t}\r\n\t\t\tif (data.ParameterValue == IdentificationMethod.CanadaPostVerification) {\r\n\t\t\t\tmodel.CanadaPostVerificationEnable = true;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\tSelectedRowChange = (e, index) => {\r\n\t\tconst model = this.state.modelList[index];\r\n\t\tif (model.IdentityVerificationType != null && model.IdentityVerificationType.ParameterValue == IdentificationMethod.InPersonIDVerification) {\r\n\t\t\tmodel.InPersonIDVerificationEnable = true;\r\n\t\t} else {\r\n\t\t\tmodel.InPersonIDVerificationEnable = false;\r\n\t\t\tmodel.ExternalAccount = {\r\n\t\t\t\tFinancialInstitutionId: model.FinancialInstitutionId,\r\n\t\t\t\tFinancialInstitutionBranchId: model.FinancialInstitutionBranchId,\r\n\t\t\t\tAccountNumber: model.ExternalAccountNumber\r\n\t\t\t};\r\n\t\t}\r\n\r\n\t\tlet appliedForModel = {};\r\n\t\tthis.state.IsActiveLoanPurposeDescription = false;\r\n\t\tif (model.ApplicantAppliedFor != null) {\r\n\t\t\tappliedForModel = model.ApplicantAppliedFor;\r\n\t\t\tif (appliedForModel.LoanPurpose != null && appliedForModel.LoanPurpose.ParameterDesc === \"Other\") {\r\n\t\t\t\tthis.state.IsActiveLoanPurposeDescription = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.setState({ model: model });\r\n\r\n\t}\r\n\tHandleSearch = () => {\r\n\t\tconst model = this.state.model;\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tthis.loadTaskPool.AppendTask(\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/amlkycapi/v1.0/KycManualApplication/Search\",\r\n\t\t\t\tmodel,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tvar modelList = responseData.Item || [];\r\n\t\t\t\t\tthis.setState({ modelList, isLoading: false });\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t\tthis.setState({ isLoading: true });\r\n\r\n\t\t\t\t}\r\n\t\t\t));\r\n\t}\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ modellist: [], model: {}, selected: null });\r\n\t}\r\n\tGetFullName = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tlet fullName = \"\";\r\n\t\tif (model.FirstName == null || model.FirstName == undefined) { return fullName; }\r\n\t\tfullName = model.FirstName;\r\n\t\tif (model.MiddleName != null && model.MiddleName !== \"\") { fullName += \" \" + model.MiddleName; }\r\n\t\tif (model.LastName != null && model.LastName !== \"\") { fullName += \" \" + model.LastName; }\r\n\t\treturn fullName;\r\n\t}\r\n\tasync GetIdentityVerificationType() {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/Parameter/Search\", this.parameterIdentificationMethod, null, null, null, null, null);\r\n\t\tvar IdVerificationTypeList = [];\r\n\r\n\t\tif (result != null) {\r\n\t\t\tresult\r\n\t\t\t\t.filter(x => x.ParameterValue === IdentificationMethod.CanadaPostVerification || x.ParameterValue === IdentificationMethod.InPersonIDVerification)\r\n\t\t\t\t.map(x => {\r\n\t\t\t\t\tIdVerificationTypeList.push(x);\r\n\t\t\t\t});\r\n\t\t}\r\n\t\tthis.setState({ IdVerificationTypeList });\r\n\t}\r\n\tLoadCanadaPost() {\r\n\r\n\t\tvar parent = this;\r\n\t\tthis.loadTaskPool.AppendTask(\r\n\t\t\tProxy.POST(\"/coreapi/v1.0/Parameter/Search\",\r\n\t\t\t\t{\r\n\t\t\t\t\tParameterCode: \"CanadaPostApiKey\",\r\n\t\t\t\t\tParameterValue: \"CP\"\r\n\t\t\t\t},\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tconsole.log(\"Canada Post Api key not fetched !\");\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item == null) {\r\n\t\t\t\t\t\tconsole.log(\"Canada Post Api key not fetched !\");\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item[0] == null) {\r\n\t\t\t\t\t\tconsole.log(\"Canada Post Api key not fetched !\");\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tvar apikey = responseData.Item[0].ParameterDesc;\r\n\t\t\t\t\tconsole.log(\"KEY CP \", apikey);\r\n\r\n\r\n\t\t\t\t\tvar url = window.CanadaPostAddressCompleteUrl;\r\n\t\t\t\t\tvar path = url + apikey;\r\n\r\n\t\t\t\t\tvar pca;\r\n\t\t\t\t\tvar CanadaPostRequest=this.SubmitCanadaPostRequest;\r\n\t\t\t\t\tvar CanadaPostSubmit = this.SubmitCanadaPostAddressModel;\r\n\t\t\t\t\tconst script = document.createElement(\"script\");\r\n\t\t\t\t\tscript.src = path;\r\n\t\t\t\t\tscript.async = false;\r\n\t\t\t\t\tdocument.head.appendChild(script);\r\n\t\t\t\t\tscript.onload = function () {\r\n\t\t\t\t\t\tpca = window.pca;\r\n\t\t\t\t\t\tif (pca != null) {\r\n\t\t\t\t\t\t\tvar fields =\r\n\t\t\t\t\t\t\t\t[\r\n\t\t\t\t\t\t\t\t\t{ element: \"street-address\", field: \"Line1\", mode: pca.fieldMode.SEARCH },\r\n\t\t\t\t\t\t\t\t\t{ element: \"street-address2\", field: \"Line2\", mode: pca.fieldMode.POPULATE },\r\n\t\t\t\t\t\t\t\t\t{ element: \"postcode\", field: \"PostalCode\", mode: pca.fieldMode.SEARCH },\r\n\t\t\t\t\t\t\t\t],\r\n\t\t\t\t\t\t\t\toptions = {\r\n\t\t\t\t\t\t\t\t\tkey: apikey\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\tcontrol = new pca.Address(fields, options);\r\n\t\t\t\t\t\t\t\tCanadaPostRequest();\r\n\t\t\t\t\t\t\tcontrol.listen(\"populate\", function (address) {\r\n\t\t\t\t\t\t\t\tCanadaPostSubmit(address);\r\n\t\t\t\t\t\t\t\tparent.setState(state => {\r\n\t\t\t\t\t\t\t\t\tstate.model.Address1 = address.Line1;\r\n\t\t\t\t\t\t\t\t\tstate.model.Address2 = address.Line2;\r\n\t\t\t\t\t\t\t\t\tstate.model.ZipCode = address.PostalCode;\r\n\t\t\t\t\t\t\t\t\treturn state;\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t};\r\n\t\t\t\t},\r\n\t\t\t\te => {\r\n\t\t\t\t\tconsole.log(\"Canada Post Api key not fetched !\");\r\n\t\t\t\t}\r\n\t\t\t));\r\n\t}\r\n\tSubmitCanadaPostAddressModel = (model) => {\r\n\t\tthis.loadTaskPool.AppendTask(\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/coreapi/v1.0/Country/CanadaPost\",\r\n\t\t\t\tmodel,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tvar address = { ...this.state.model };\r\n\t\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\t\taddress.CountryId = responseData.Item.CountryId;\r\n\t\t\t\t\t\taddress.ProvinceId = responseData.Item.ProvinceId;\r\n\t\t\t\t\t\taddress.CityId = responseData.Item.CityId;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\taddress.CountryId = 0;\r\n\t\t\t\t\t\taddress.ProvinceId = 0;\r\n\t\t\t\t\t\taddress.CityId = 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.setState({ model: address });\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t));\r\n\t}\r\n\tSubmitCanadaPostRequest = async () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tvar requestdata = { \r\n\r\n\t\t\tUniqueClientId: null,\r\n\t\t\tMenuCode:this.props.MenuCode,\r\n\t\t\tAppCenterTitle:this.getappCenterTitle,\r\n\t\t\tAppLeftTitle:this.getappLeftTitle\r\n\t\t};\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Reporting/CanadaPostRequestReportInsert\",\r\n\t\t\trequestdata,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (responseData.Item != null ) {\r\n\t\t\t\t\t \r\n\t\t\t\t}\r\n\t\t\t},\r\n \t\t);\r\n\t\t// var result = await this.props.ExecuteApiPost(\"/bankapi/v1.0/Reporting/CanadaPostRequestReportInsert\", requestdata);\r\n\t}\r\n\tErrorCallback = (error) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"Error\", \"An error occurred during the api visit\" + error);\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\ttype = \"info\";\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\tShowQuestionMessage = (message, model) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.HideAlert()} OnConfirm={() => this.DeleteModel(model)} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tshowBasicAlert = (title, message, type) => {\r\n\t\tthis.setState({ isLoading: false, alert: this.HideAlert()} /> });\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: null })} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\r\n\tHideAlert = () => {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\tShowMessageAndRefresh = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlertAndRefresh()} />\r\n\t\t});\r\n\t}\r\n\tKycManualDialogClose = () => {\r\n\r\n\t\tthis.setState({ isKycManualDialogOpen: false });\r\n\t}\r\n\thideAlertAndRefresh = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t\twindow.location.reload();\r\n\r\n\t}\r\n\tSetStickContent = (content, reRender) => {\r\n\t\tif (this.state.stickyContent && !reRender) return;\r\n\t\tthis.setState({ stickyContent: content });\r\n\t}\r\n\trender() {\r\n\t\tconst { model, modelList, alert, isLoading, isKycManualDialogOpen, stickyContent } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t{stickyContent}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t{alert}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\tthis.SelectedRowChange(0, index);\r\n\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nManualKycApplicationList.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default (ManualKycApplicationList);","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericCheckInput, GenericExpansionPanel, GenericGrid, GenericSelectInput } from \"views/Components/Generic\";\r\n\r\n\r\n\r\nclass ManualKycVerificationDefinition extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.initialState = {\r\n\t\t\tmodel: {},\r\n\t\t\tfilterModel: {},\r\n\t\t\tvModel: {},\r\n\t\t\tmodelList: []\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tclientList: []\r\n\t\t};\r\n\t\tthis.state = Object.assign(this.state, this.initialState);\r\n\t\tthis.emptyObject = {};\r\n\t\tthis.gridSortParameter = [{ id: \"Status\", desc: false }];\r\n\t\tthis.sortedName = { Member: \"Name\" };\r\n\t\tthis.columnsData = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\",\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Internal Blacklist\",\r\n\t\t\t\taccessor: \"VerifyInternalBlacklist\",\r\n\t\t\t\tCell: d =>\r\n\t\t\t\t\t\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"External BlackList\",\r\n\t\t\t\taccessor: \"VerifyExternalBlacklist\",\r\n\t\t\t\tCell: d =>\r\n\t\t\t\t\t\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"TransUnion\",\r\n\t\t\t\taccessor: \"VerifyTransUnion\",\r\n\t\t\t\tCell: d =>\r\n\t\t\t\t\t\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Canada Post\",\r\n\t\t\t\taccessor: \"VerifyCanadaPost\",\r\n\t\t\t\tCell: d =>\r\n\t\t\t\t\t\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Documents\",\r\n\t\t\t\taccessor: \"VerifyDocuments\",\r\n\t\t\t\tCell: d =>\r\n\t\t\t\t\t\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account\",\r\n\t\t\t\taccessor: \"VerifyAccountVerification\",\r\n\t\t\t\tCell: d =>\r\n\t\t\t\t\t\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Digital ID\",\r\n\t\t\t\taccessor: \"VerifyDigitalId\",\r\n\t\t\t\tCell: d =>\r\n\t\t\t\t\t\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"In Person Id\",\r\n\t\t\t\taccessor: \"VerifyInPersonId\",\r\n\t\t\t\tCell: d =>\r\n\t\t\t\t\t\r\n\t\t\t},\r\n\r\n\t\t];\r\n\t\tvar apiUrlBase = \"/amlkycapi/v1.0/KycManualApplicationVerificationDefinition/\";\r\n\t\tthis.apiList = {\r\n\t\t\tInsertOrUpdate: apiUrlBase + \"InsertOrUpdate\",\r\n\t\t\tSearch: apiUrlBase + \"Search\",\r\n\t\t\tDelete: apiUrlBase + \"Delete\",\r\n\t\t\tClientSearch: \"/bankapi/v1.0/BankCustomer/Search\"\r\n\t\t};\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppCenterTitle && this.props.setAppCenterTitle(\"AML & KYC\");\r\n\t\tthis.props.setAppLeftTitle && this.props.setAppLeftTitle(\"Manual KYC Application Verification Definition\");\r\n\r\n\t\tthis.GetClientList();\r\n\t}\r\n\tGetClientList = async () => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(this.apiList.ClientSearch, {});\r\n\t\tthis.setState({ clientList: result || [] });\r\n\t}\r\n\tGetFilteredClientList = () => {\r\n\t\tconst { clientList, modelList } = this.state;\r\n\r\n\t\tlet filtered = clientList.filter(a => {\r\n\r\n\t\t\tfor (let index = 0; index < modelList.length; index++) {\r\n\t\t\t\tconst model = modelList[index];\r\n\t\t\t\tif (a.Id == model.UniqueClientId) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t});\r\n\t\treturn filtered;\r\n\t}\r\n\tRenderItemUniqueClient = (x) => {\r\n\t\tthis.renderItemUniqueClient = `${x.Name} - ${x.UniqueClientId}`;\r\n\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\tHandleChangeFilter = (name, newValue, data) => {\r\n\t\tconst filterModel = { ...this.state.filterModel };\r\n\t\tfilterModel[name] = newValue === false ? null : newValue;\r\n\t\tthis.setState({ filterModel });\r\n\t}\r\n\tSelectedRowChange = (index) => {\r\n\t\tconst model = this.state.modelList[index];\r\n\t\tthis.setState({ model: model });\r\n\t}\r\n\tHandleSearch = async () => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tconst { filterModel } = this.state;\r\n\t\tvar request = {\r\n\t\t\t...filterModel\r\n\t\t};\r\n\t\tvar result = await ExecuteApiPost(this.apiList.Search, request);\r\n\t\tif (result) {\r\n\t\t\tthis.setState({ modelList: result });\r\n\t\t}\r\n\t}\r\n\tHandleSubmit = async () => {\r\n\t\tthis.InsertOrUpdate();\r\n\t}\r\n\tHandleUpdate = () => {\r\n\t\tthis.InsertOrUpdate();\r\n\t}\r\n\tOperationCheck = () => {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tvar messages = [];\r\n\t\tvar vModel = {};\r\n\r\n\r\n\t\tif ((vModel.UniqueClientId = (isNaN(model?.UniqueClientId) || model?.UniqueClientId <= 0))) messages.push(\"Client cannot be empty\");\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.props.showMessageNode(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t}\r\n\r\n\t\tthis.setState({ vModel });\r\n\t\treturn messages.length == 0;\r\n\t}\r\n\tHandleDelete = async () => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tif (!await this.props.showConfirmMessage(\"warning\", \"warning\", \"KYC Manual Application Verification Definition will be delete. Are you sure?\")) return;\r\n\r\n\t\tconst request = {\r\n\t\t\tId: model.Id\r\n\t\t};\r\n\t\tvar result = await ExecuteApiPost(this.apiList.Delete, request);\r\n\t\tif (result > 0) {\r\n\t\t\tthis.props.showMessage(\"success\", \"Success\", \"KYC Manual Application Verification Definition Deleted Successfully.\");\r\n\t\t\tthis.HandleClear();\r\n\t\t\tthis.HandleSearch();\r\n\t\t}\r\n\t}\r\n\tHandleClear = () => {\r\n\t\tvar defaultState = Object.assign({}, this.initialState);\r\n\t\tthis.setState(defaultState);\r\n\t}\r\n\tInsertOrUpdate = async () => {\r\n\t\tif (!this.OperationCheck()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tconst { model } = this.state;\r\n\t\tvar request = {\r\n\t\t\t...model\r\n\t\t};\r\n\t\tvar result = await ExecuteApiPost(this.apiList.InsertOrUpdate, request);\r\n\t\tif (result) {\r\n\t\t\tawait this.props.showMessage(\"success\", \"Success\", `KYC Manual Application Verification Definition ${result?.Id > 0 ? \"Updated\" : \"Saved\"} Successfully.`);\r\n\t\t\tthis.HandleClear();\r\n\t\t\tthis.HandleSearch();\r\n\t\t}\r\n\r\n\t}\r\n\trender() {\r\n\t\tconst { model, filterModel, vModel, modelList, clientList } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t<>\r\n\t\t\t\t 0),\r\n\t\t\t\t\t\t\tOnClick: this.HandleSubmit\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Update\",\r\n\t\t\t\t\t\t\tDisabled: Disabled || !model?.Id,\r\n\t\t\t\t\t\t\tOnClick: this.HandleUpdate\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Delete\",\r\n\t\t\t\t\t\t\tDisabled: Disabled || !model?.Id,\r\n\t\t\t\t\t\t\tOnClick: this.HandleDelete\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Clear\",\r\n\t\t\t\t\t\t\tDisabled: Disabled,\r\n\t\t\t\t\t\t\tOnClick: this.HandleClear\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t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\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t 0 ? clientList : this.GetFilteredClientList()}\r\n\t\t\t\t\t\t\t\t\t\t\t\tName=\"UniqueClientId\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tLabelText=\"Client\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"Id\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tTextValueMember=\"Name\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tRenderItem={this.RenderItemUniqueClient}\r\n\t\t\t\t\t\t\t\t\t\t\t\tSorted={this.sortedName}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\tRequired={true}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={model?.Id > 0}\r\n\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.UniqueClientId}\r\n\t\t\t\t\t\t\t\t\t\t\t\tLabelMd={3} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\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}\r\n}\r\n\r\nManualKycVerificationDefinition.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\nexport default ManualKycVerificationDefinition;","import { DialogContent, Slide, withStyles, CardMedia } from \"@material-ui/core\";\r\nimport { blackColor } from \"assets/jss/material-dashboard-pro-react.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport Tooltip from \"react-tooltip-lite\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericDialog, GenericDialogActions, GenericEmailInput, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTextInput, GenericLabel } from \"views/Components/Generic\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { CanadaPostIdVerificationStatus, GridColumnType, IdentityType } from \"views/Constants/Constant\";\r\nimport { MaxLength128 } from \"views/Constants/Constant.MaxLength\";\r\nimport { DialogTitle } from \"@material-ui/core\";\r\nimport Select from \"react-select\";\r\nimport { Proxy } from \"core\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { DetailIcon } from \"core/Icons\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport externalContainerStyle from \"assets/jss/material-dashboard-pro-react/layouts/externalContainerStyle.jsx\";\r\n\r\n\r\nfunction Transition(props) {\r\n\treturn ;\r\n}\r\n\r\nclass TransUnionIdVerification extends React.Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columnsRecordKeeping = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Source Date\",\r\n\t\t\t\taccessor: \"SourceDate\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Source Name\",\r\n\t\t\t\taccessor: \"SourceName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Source Match\",\r\n\t\t\t\taccessor: \"SourceMatch\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date Verified\",\r\n\t\t\t\taccessor: \"DateVerified\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Type\",\r\n\t\t\t\taccessor: \"Type\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Number\",\r\n\t\t\t\taccessor: \"AccountNumber\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t this.showDetail(row.original)}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\twidth: 100\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Insert Date Time\",\r\n\t\t\t\taccessor: \"InsertDateTime\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"First Name\",\r\n\t\t\t\taccessor: \"FirstName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Middle Name\",\r\n\t\t\t\taccessor: \"MiddleName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Last Name\",\r\n\t\t\t\taccessor: \"LastName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Email Address\",\r\n\t\t\t\taccessor: \"EmailAddress\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date Of Birth\",\r\n\t\t\t\taccessor: \"DateOfBirth\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Address Line\",\r\n\t\t\t\taccessor: \"Street\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"City\",\r\n\t\t\t\taccessor: \"City\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Province\",\r\n\t\t\t\taccessor: \"Province\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Postal Code\",\r\n\t\t\t\taccessor: \"PostalCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Verification Status\",\r\n\t\t\t\taccessor: \"VerificationStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Bureau\",\r\n\t\t\t\taccessor: \"Bureau\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Bureau Description\",\r\n\t\t\t\taccessor: \"BureauDescription\"\r\n\t\t\t}\r\n\t\t];\r\n\t\tthis.getappCenterTitle = \"Empty\";\r\n\t\tthis.getappLeftTitle = \"Empty\";\r\n\t\tthis.zIndex10 = { zIndex: 10 };\r\n\t\tthis.isClient = ClientHelper.IsClient();\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: this.isClient ? ClientHelper.GetClientId() : undefined,\r\n\t\t};\r\n\r\n\t\tif (!this.isClient) {\r\n\t\t\tthis.columns.splice(1, 0,\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Client\",\r\n\t\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\tdata: [],\r\n\t\t\trecordKeeping: [],\r\n\t\t\tisSendEmailDialogOpen: false,\r\n\t\t\tactiveClient: [],\r\n\t\t\tresponseDetail: {},\r\n\t\t\tisDetailDialogOpen: false\r\n\t\t};\r\n\t\tthis.cpverTable = React.createRef();\r\n\t}\r\n\r\n\tcomponentDidMount = () => {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"AML & KYC\");\r\n\t\t\tthis.getappCenterTitle = \"AML & KYC\";\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"TransUnion Id Verification\");\r\n\t\t\tthis.getappLeftTitle = \"TransUnion Id Verification\";\r\n\t\t}\r\n\t}\r\n\r\n\r\n\tValueChanged = (name, value, data) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\tif (name == \"EmailAddress\") {\r\n\t\t\t\tmodel[\"EmailAddressIsValid\"] = data.IsValid;\r\n\t\t\t}\r\n\t\t\telse if (this.isClient && name == \"UniqueClientId\") {\r\n\t\t\t\tstate.activeClient = [data];\r\n\t\t\t}\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tconst { data } = this.state;\r\n\t\tvar temp = data[index];\r\n\r\n\t\tthis.setState({ model: temp, selected: index });\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, data: [], selected: null });\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tvar { model } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errors = [];\r\n\r\n\t\tif (!model.FirstName) {\r\n\t\t\terrors.push(\"First name cannot be null\");\r\n\t\t}\r\n\t\tif (!model.LastName) {\r\n\t\t\terrors.push(\"Last name cannot be null\");\r\n\t\t}\r\n\r\n\t\tvar age = DateHelper.GetDate().diff(model.DateOfBirth, \"years\");\r\n\r\n\t\tif (!model.DateOfBirth) {\r\n\t\t\terrors.push(\"Date of birth cannot be null\");\r\n\t\t}\r\n\t\tif (!model.Street) {\r\n\t\t\terrors.push(\"Address line cannot be null\");\r\n\t\t}\r\n\t\tif (!model.Province) {\r\n\t\t\terrors.push(\"Province cannot be null\");\r\n\t\t}\r\n\t\tif (!model.City) {\r\n\t\t\terrors.push(\"City cannot be null\");\r\n\t\t}\r\n\t\tif (!model.PostalCode) {\r\n\t\t\terrors.push(\"Postal code cannot be null\");\r\n\t\t}\r\n\r\n\t\tmodel[\"IsFirstName\"] = !model.FirstName;\r\n\t\tmodel[\"IsMiddleName\"] = !model.MiddleName;\r\n\t\tmodel[\"Civic\"] = !model.Civic;\r\n\t\tmodel[\"Phone\"] = !model.Phone;\r\n\t\tmodel[\"IsLastName\"] = !model.LastName;\r\n\t\tmodel[\"IsDateOfBirth\"] = !model.DateOfBirth;\r\n\t\tmodel[\"IsStreet\"] = !model.Street;\r\n\t\tmodel[\"IsProvince\"] = !model.Province;\r\n\t\tmodel[\"IsCity\"] = !model.City;\r\n\t\tmodel[\"IsPostalCode\"] = !model.PostalCode;\r\n\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\tRenderItemUniqueClient = (x) => {\r\n\t\tvar result = `${x.UniqueClientId} - ${x.Name}`;\r\n\r\n\t\treturn result;\r\n\t}\r\n\r\n\r\n\tshowLoading = () => { this.setState({ isLoading: true }); }\r\n\thideLoading = () => { this.setState({ isLoading: false }); }\r\n\r\n\tshowDetail = async (result) => {\r\n\t\tthis.setState({ responseDetail: result || [], isDetailDialogOpen: true });\r\n\t\tconsole.log(result);\r\n\t}\r\n\r\n\tDetailDialogClose = () => {\r\n\t\tthis.setState({ isDetailDialogOpen: false });\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/amlkycapi/v1.0/TransUnion/SearchTransUnionDetail\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ data: responseData.Item, recordKeeping: responseData.Item.RecordKeepings });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, list, selected, isSendEmailDialogOpen, activeClient, isLoading, isDetailDialogOpen, responseDetail, data, recordKeeping } = this.state;\r\n\t\tconst { MenuCode, Disabled, ExecuteApiPost, ExecuteApiFileDownloadWithGenericResponse, showConfirmMessageInDelete, classes } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t ExecuteApiPost(\"/amlkycapi/v1.0/TransUnion/TransUnionIdVertification\", model, null, null, this.Validate, [this.Clear, this.HandleSearch], true)\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Clear\",\r\n\t\t\t\t\t\t\tDisabled: Disabled,\r\n\t\t\t\t\t\t\tOnClick: this.Clear\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After} />\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\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Types.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tExecuteApiFileDownloadWithGenericResponse: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default withStyles(externalContainerStyle)(TransUnionIdVerification);","import { DialogContent, Slide } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericSelectInput } from \"views/Components/Generic\";\r\nimport { ParameterEmptyObject } from \"views/Constants/Constant.Parameter\";\r\nimport { SortedName } from \"views/Constants/Constant.Sorted\";\r\n\r\nfunction Transition(props) {\r\n\treturn ;\r\n}\r\n\r\nclass TransUnionVerificationReport extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Count of Verification\",\r\n\t\t\t\taccessor: \"CountOfVerification\"\r\n\t\t\t}\r\n\t\t];\r\n\t\tthis.columnsDetail = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"CustomerName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Count of Verification\",\r\n\t\t\t\taccessor: \"CountOfVerification\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tUniqueClientId: -1,\r\n\t\t\t\tDate: DateHelper.GetDate().subtract(1, \"days\")\r\n\t\t\t},\r\n\t\t\tisDetailDialogOpen: false\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"REPORTS\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"TransUnion Verification Report\");\r\n\t\t}\r\n\t}\r\n\r\n\tValueChanged = (name, value, data) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\tif (name == \"MailAddress\") {\r\n\t\t\t\tmodel[\"MailAddressIsValid\"] = data.IsValid;\r\n\t\t\t}\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tconst { model, list } = this.state;\r\n\t\tvar newModel = list[index];\r\n\t\tnewModel.Date = model.Date;\r\n\r\n\t\tthis.setState({ model: newModel, selected: index, isDetailDialogOpen: true });\r\n\t}\r\n\r\n\tDetailDialogClose = () => {\r\n\t\tthis.setState({ isDetailDialogOpen: false });\r\n\t}\r\n\r\n\tGetRenderItemClient = (x) => {\r\n\t\tvar result = `${x.Name} - ${x.UniqueClientId}`;\r\n\r\n\t\treturn result;\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar request = { ...model };\r\n\t\trequest.UniqueClientId = model.UniqueClientId != -1\r\n\t\t\t? model.UniqueClientId\r\n\t\t\t: null;\r\n\t\tvar result = await ExecuteApiPost(\"/amlkycapi/v1.0/TransUnion/SearchVerificationCount\", request);\r\n\r\n\t\tthis.setState({ list: result || [] });\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tvar { model } = this.state;\r\n\r\n\t\tmodel.UniqueClientId = -1;\r\n\t\tmodel.Date = DateHelper.GetDate().subtract(1, \"days\");\r\n\r\n\t\tthis.setState({ model, list: [] });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, list, selected, isDetailDialogOpen } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nTransUnionVerificationReport.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default TransUnionVerificationReport;","import { withStyles } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericTextInput, GenericDateInput, GenericCheckInput,GenericDialog,GenericLabel,GenericDialogActions } from \"views/Components/Generic\";\r\nimport { Proxy } from \"core\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport externalContainerStyle from \"assets/jss/material-dashboard-pro-react/layouts/externalContainerStyle.jsx\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { FinScanSearchStatus, FinScanSearchResultType } from \"views/Constants/Constant\";\r\nimport { DetailIcon } from \"core/Icons\";\r\nimport { DialogContent, DialogTitle, Slide } from \"@material-ui/core\";\r\nimport Button from \"components/CustomButtons/Button\";\r\n\r\nfunction Transition(props) {\r\n\treturn ;\r\n}\r\n\r\nclass ManuelWatchListCheck extends React.Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Full Name\",\r\n\t\t\t\taccessor: \"FullName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Nationality\",\r\n\t\t\t\taccessor: \"Notionaly\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date Of Birth\",\r\n\t\t\t\taccessor: \"DateOfBirth\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Type\",\r\n\t\t\t\taccessor: \"ClientType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Insert User\",\r\n\t\t\t\taccessor: \"InsertUser\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"SearchDate\",\r\n\t\t\t\taccessor: \"SearchDate\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"WatchList Status\",\r\n\t\t\t\taccessor: \"WatchListStatus\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.columnsDetail = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"FullName\",\r\n\t\t\t\taccessor: \"FullName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Gender\",\r\n\t\t\t\taccessor: \"Gender\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Nationality\",\r\n\t\t\t\taccessor: \"Nationality\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Country\",\r\n\t\t\t\taccessor: \"Country\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"PlaceOfBirth\",\r\n\t\t\t\taccessor: \"PlaceOfBirth\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"DateOfBirth\",\r\n\t\t\t\taccessor: \"DateOfBirth\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"TextInfo\",\r\n\t\t\t\taccessor: \"TextInfo\"\r\n\t\t\t}\r\n\t\t];\r\n\t\tthis.getappCenterTitle = \"Empty\";\r\n\t\tthis.getappLeftTitle = \"Empty\";\r\n\t\tthis.zIndex10 = { zIndex: 10 };\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\tdata: [],\r\n\t\t\trecordKeeping: [],\r\n\t\t\tisSendEmailDialogOpen: false,\r\n\t\t\tactiveClient: [],\r\n\t\t\tresponseDetail: {},\r\n\t\t\tisDetailDialogOpen: false,\r\n\t\t\tisDetailManualVerificationDialogOpen: false,\r\n\t\t\tisDetailUnverifiedDialogOpen: false\r\n\t\t};\r\n\t\tthis.cpverTable = React.createRef();\r\n\t}\r\n\r\n\tcomponentDidMount = () => {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"AML & KYC\");\r\n\t\t\tthis.getappCenterTitle = \"AML & KYC\";\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Manually Watchlist Check\");\r\n\t\t\tthis.getappLeftTitle = \"Manually Watchlist Check\";\r\n\t\t}\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, data: [], selected: null });\r\n\t}\r\n\r\n\tshowLoading = () => { this.setState({ isLoading: true }); }\r\n\thideLoading = () => { this.setState({ isLoading: false }); }\r\n\r\n\tshowDetail = async (result) => {\r\n\t\tthis.setState({ responseDetail: result || [], isDetailDialogOpen: true });\r\n\t}\r\n\r\n\tSubmit = () => {\r\n\t\tif (!this.validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst model = { ...this.state.model };\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/amlkycapi/v1.0/ManuallyWatchListCheck/ManuallyWachList\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.props.showMessage(\"success\", \"Succeeded\", \"Operation is successfully!\");\r\n\t\t\t\t\tthis.HandleSearch();\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.GET(\r\n\t\t\t\"/amlkycapi/v1.0/ManuallyWatchListCheck/GetManuallyWachList\",\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ data: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tDetailUnverifiedDialogOpen = (finScanSearchLogId) => {\r\n\t\tthis.GetFinScanSearchLogDetailUnverified(finScanSearchLogId);\r\n\t\tthis.setState({ isDetailUnverifiedDialogOpen: true });\r\n\t}\r\n\r\n\tDetailManualVerificationDialogOpen = (finScanSearchLogId) => {\r\n\t\tthis.GetFinScanSearchLogDetailManualVerification(finScanSearchLogId);\r\n\t\tthis.setState({ isDetailManualVerificationDialogOpen: true });\r\n\t}\r\n\r\n\tGetFinScanSearchLogDetailManualVerification = async (finScanSearchLogId) => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/amlkycapi/v1.0/FinScanSearchLog/GetPartialMatchListByFinScanSearchLogId\", { FinScanSearchLogId: finScanSearchLogId });\r\n\r\n\t\tif (result != null && result.length != 0) {\r\n\t\t\tthis.SetListPartialMatches(result);\r\n\t\t} else {\r\n\t\t\tthis.setState({ listListPartialMatches: []});\r\n\t\t}\r\n\t}\r\n\r\n\tSetListPartialMatches = (searchResult) => {\r\n\t\tvar listListPartialMatches = searchResult;\r\n\r\n\t\tfor (let i = 0; i < searchResult.length; i++) {\r\n\t\t\tsearchResult[i].JsonResultDataParsed.map(x => {\r\n\t\t\t\tlistListPartialMatches[i][x.Key] = x.Value;\r\n\r\n\t\t\t\treturn null;\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tthis.setState({ listListPartialMatches });\r\n\t}\r\n\r\n\tGetFinScanSearchLogDetailUnverified = async (finScanSearchLogId) => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/amlkycapi/v1.0/FinScanSearchLogDetail/GetDetailBySearchLogId\", { FinScanSearchLogId: finScanSearchLogId });\r\n\r\n\t\tif (result != null && result.length != 0) {\r\n\t\t\tvar { model } = this.state;\r\n\r\n\t\t\tmodel = result;\r\n\r\n\t\t\tthis.setState({ model });\r\n\t\t}\r\n\t}\r\n\r\n\tDetailUnverifiedDialogClose = () => {\r\n\t\tthis.setState({ isDetailUnverifiedDialogOpen: false });\r\n\t}\r\n\r\n\tDetailManualVerificationDialogClose = () => {\r\n\t\tthis.setState({ isDetailManualVerificationDialogOpen: false });\r\n\t}\r\n\r\n\thandleChange = (name, newValue) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\tGetRenderItemClient = (x) => {\r\n\t\tvar render = `${x.Name} - ${x.UniqueClientId}`;\r\n\r\n\t\treturn render;\r\n\t}\r\n\r\n\tValueChanged = (name, value, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tvalidate = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (!model.FullName) {\r\n\t\t\tthis.props.showMessageNode(\"warning\", \"Please fill in the Required Fields!\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, selected, isLoading, data, isDetailUnverifiedDialogOpen, isDetailManualVerificationDialogOpen,listListPartialMatches } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t row.original.SearchResultParameterValue == FinScanSearchResultType.ListExactMatch\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? this.DetailUnverifiedDialogOpen(row.original.FinScanSearchLogId) : \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.DetailManualVerificationDialogOpen(row.original.FinScanSearchLogId) }/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 40\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t...this.columns\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tSelectedIndex={selected}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tIsSorted={true}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tPageSize={10}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tShowPagination={true} />\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nManuelWatchListCheck.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tExecuteApiFileDownloadWithGenericResponse: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default withStyles(externalContainerStyle)(ManuelWatchListCheck);","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { bool, func } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTextInput, GenericTitle, GenericDateInput } from \"views/Components/Generic\";\r\nimport { withArtifex } from \"core\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass UnverifiedCustomerCreateCardTry extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tvModel: {},\r\n\t\t\tmodel: {\r\n\r\n\r\n\t\t\t},\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\t\tthis.parameterClient = {};\r\n\t\tthis.trxTable = React.createRef();\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Unverified Customer Create Card Try\");\r\n\t\tthis.props.setAppCenterTitle(\"AML & KYC\");\r\n\t\tthis.setState({ loadingCompleted: true });\r\n\t}\r\n\r\n\thandleChange = (name, newValue) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tif (name == \"UniqueClientId\" && newValue == null) {\r\n\t\t\tmodel.UniqueClientId = 0;\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert:\r\n\t\t\t\t this.setState({ alert: null })}\r\n\t\t\t\t/>\r\n\t\t});\r\n\t}\r\n\thandleGetList = () => {\r\n\t\tthis.setState(state => ({ trxGridToken: !state.trxGridToken }));\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\thandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {},\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\tGetClientParameter = () => {\r\n\t\tthis.parameterClient.UniqueClientId = this.state.model.UniqueClientId;\r\n\t\treturn this.parameterClient;\r\n\t}\r\n\thandlePaginationData = (data) => {\r\n\t\tthis.setState({ list: data });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, isLoading, vModel } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tconst { model } = this.state;\r\n\t\t\t\t\t\t\t\t\t\tif (this.props.MenuCode != null) {\r\n\t\t\t\t\t\t\t\t\t\t\tmodel.MenuCode = this.props.MenuCode;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\treturn model;\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\tColumns={[\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ClientName\",\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"CustomerName\",\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Try Date\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"TryDate\",\r\n\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nUnverifiedCustomerCreateCardTry.propTypes = {\r\n\tshowQuestionMessage: func,\r\n\tsetAppLeftTitle: func,\r\n\tsetAppCenterTitle: func,\r\n\tDisabled: bool\r\n};\r\n\r\n\r\nexport default withArtifex(UnverifiedCustomerCreateCardTry, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { bool, func } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle, GenericDialog, GenericDialogActions, GenericLabel } from \"views/Components/Generic\";\r\nimport { withArtifex } from \"core\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport StringHelper from \"core/StringHelper\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport { VerificationIcon, DeleteIcon, DetailIcon } from \"core/Icons\";\r\nimport { FinScanSearchStatus, FinScanSearchResultType } from \"views/Constants/Constant\";\r\nimport { DialogContent, DialogTitle, Slide } from \"@material-ui/core\";\r\nimport Button from \"components/CustomButtons/Button\";\r\n\r\nfunction Transition(props) {\r\n\treturn ;\r\n}\r\n\r\nclass UnverifiedCustomerList extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tvModel: {},\r\n\t\t\tmodel: {\r\n\r\n\r\n\t\t\t},\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tisVerifyDialogOpen: false,\r\n\t\t\tisDetailManualVerificationDialogOpen: false,\r\n\t\t\tisDetailUnverifiedDialogOpen: false\r\n\t\t};\r\n\t\tthis.parameterClientType = {\r\n\t\t\tParameterCode: \"ClientType\"\r\n\t\t};\r\n\t\tthis.parameterClient = {};\r\n\t\tthis.trxTable = React.createRef();\r\n\t\tthis.columnsDetail = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"FullName\",\r\n\t\t\t\taccessor: \"FullName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Gender\",\r\n\t\t\t\taccessor: \"Gender\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Nationality\",\r\n\t\t\t\taccessor: \"Nationality\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Country\",\r\n\t\t\t\taccessor: \"Country\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"PlaceOfBirth\",\r\n\t\t\t\taccessor: \"PlaceOfBirth\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"DateOfBirth\",\r\n\t\t\t\taccessor: \"DateOfBirth\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"TextInfo\",\r\n\t\t\t\taccessor: \"TextInfo\"\r\n\t\t\t}\r\n\t\t];\r\n\t\tthis.maxLength40 = { maxLength: 40 };\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Unverified Customer List\");\r\n\t\tthis.props.setAppCenterTitle(\"AML & KYC\");\r\n\t\tthis.setState({ loadingCompleted: true });\r\n\t}\r\n\r\n\thandleChange = (name, newValue) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tif (name == \"UniqueClientId\" && newValue == null) {\r\n\t\t\tmodel.UniqueClientId = 0;\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\t}\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\r\n\tValueChangedForPopup = (name, value, data) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\tif (name == \"FromDate\") {\r\n\t\t\t\tmodel[\"ToDate\"] = undefined;\r\n\t\t\t}\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tvalidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tvar messages = [];\r\n\t\t// if (!model.IsUniqueDataSearchMode && (!model.UniqueClientId || model.UniqueClientId <= 0)) {\r\n\t\t// \tvModel.UniqueClientId = true;\r\n\t\t// \tmessages.push(\"Client Name cannot be null!\");\r\n\t\t//} else { vModel.UniqueClientId = false; }\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", messages.slice(0, 10).map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tthis.setState({ vModel });\r\n\t\treturn true;\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert:\r\n\t\t\t\t this.setState({ alert: null })}\r\n\t\t\t\t/>\r\n\t\t});\r\n\t}\r\n\thandleGetList = () => {\r\n\t\tif (!this.validate())\r\n\t\t\treturn;\r\n\r\n\t\tthis.setState(state => ({ trxGridToken: !state.trxGridToken }));\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\thandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {},\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\tGetClientParameter = () => {\r\n\t\tthis.parameterClient.UniqueClientId = this.state.model.UniqueClientId;\r\n\t\treturn this.parameterClient;\r\n\t}\r\n\thandlePaginationData = (data) => {\r\n\t\tthis.setState({ list: data });\r\n\t}\r\n\r\n\tUpdateFinScanSearchLogStatusForUnverified = async () => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar { model } = this.state;\r\n\t\tif(model.ApproveReason == null || model.ApproveReason == \"\"){\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Approve reason must be defined.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tvar result = await ExecuteApiPost(\"/amlkycapi/v1.0/FinScanSearchLog/UpdateSearchStatus\",\r\n\t\t\t{ CustomerId: model.CustomerId, SearchStatusParameterValue: FinScanSearchStatus.Verified, ApproveReason: model.ApproveReason }, null, null, null, null, true);\r\n\r\n\t\tif (result != null) {\r\n\t\t\tthis.handleGetList();\r\n\t\t}\r\n\t\tthis.MemoVerifyDialogClose();\r\n\t}\r\n\r\n\tUpdateFinScanSearchLogStatusToRejected = async () => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar { model } = this.state;\r\n\t\tif(model.ApproveReason == null || model.ApproveReason == \"\"){\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Approve reason must be defined.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tvar result = await ExecuteApiPost(\"/amlkycapi/v1.0/FinScanSearchLog/UpdateSearchStatus\",\r\n\t\t\t{ FinScanSearchLogId: model.FinScanSearchLogId, SearchStatusParameterValue: FinScanSearchStatus.Rejected, ApproveReason: model.ApproveReason }, null, null, null, null, true);\r\n\r\n\t\tif (result != null) {\r\n\t\t\tthis.handleGetList();\r\n\t\t\tthis.handleClear();\r\n\t\t}\r\n\t\tthis.MemoRejectDialogClose();\r\n\t}\r\n\r\n\tMemoRejectDialogOpen = (finScanSearchLogId) => {\r\n\t\tvar { model } = this.state;\r\n\t\tmodel.FinScanSearchLogId = finScanSearchLogId;\r\n\r\n\t\tthis.setState({ model, isMemoRejectDialogOpen: true });\r\n\t}\r\n\r\n\tMemoRejectDialogClose = () => {\r\n\t\tthis.setState({ isMemoRejectDialogOpen: false });\r\n\t}\r\n\r\n\tDetailUnverifiedDialogOpen = (finScanSearchLogId) => {\r\n\t\tthis.GetFinScanSearchLogDetailUnverified(finScanSearchLogId);\r\n\t\tthis.setState({ isDetailUnverifiedDialogOpen: true });\r\n\t}\r\n\r\n\tDetailManualVerificationDialogOpen = (finScanSearchLogId) => {\r\n\t\tthis.GetFinScanSearchLogDetailManualVerification(finScanSearchLogId);\r\n\t\tthis.setState({ isDetailManualVerificationDialogOpen: true });\r\n\t}\r\n\r\n\tGetFinScanSearchLogDetailUnverified = async (finScanSearchLogId) => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/amlkycapi/v1.0/FinScanSearchLogDetail/GetDetailBySearchLogId\", { FinScanSearchLogId: finScanSearchLogId });\r\n\r\n\t\tif (result != null && result.length != 0) {\r\n\t\t\tvar { model } = this.state;\r\n\r\n\t\t\tmodel = result;\r\n\r\n\t\t\tthis.setState({ model });\r\n\t\t}\r\n\t}\r\n\r\n\tGetFinScanSearchLogDetailManualVerification = async (finScanSearchLogId) => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/amlkycapi/v1.0/FinScanSearchLog/GetPartialMatchListByFinScanSearchLogId\", { FinScanSearchLogId: finScanSearchLogId });\r\n\r\n\t\tif (result != null && result.length != 0) {\r\n\t\t\tthis.SetListPartialMatches(result);\r\n\t\t} else {\r\n\t\t\tthis.setState({ listListPartialMatches: []});\r\n\t\t}\r\n\t}\r\n\r\n\tSetListPartialMatches = (searchResult) => {\r\n\t\tvar listListPartialMatches = searchResult;\r\n\r\n\t\tfor (let i = 0; i < searchResult.length; i++) {\r\n\t\t\tsearchResult[i].JsonResultDataParsed.map(x => {\r\n\t\t\t\tlistListPartialMatches[i][x.Key] = x.Value;\r\n\r\n\t\t\t\treturn null;\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tthis.setState({ listListPartialMatches });\r\n\t}\r\n\r\n\tDetailUnverifiedDialogClose = () => {\r\n\t\tthis.setState({ isDetailUnverifiedDialogOpen: false });\r\n\t}\r\n\r\n\tDetailManualVerificationDialogClose = () => {\r\n\t\tthis.setState({ isDetailManualVerificationDialogOpen: false });\r\n\t}\r\n\r\n\tMemoVerifyDialogOpen = (customerId) => {\r\n\t\tvar { model } = this.state;\r\n\t\tmodel.CustomerId = customerId;\r\n\r\n\t\tthis.setState({ model, isMemoVerifyDialogOpen: true });\r\n\t}\r\n\r\n\tMemoVerifyDialogClose = () => {\r\n\t\tthis.setState({ isMemoVerifyDialogOpen: false });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, isLoading, vModel, isMemoRejectDialogOpen, isDetailUnverifiedDialogOpen, isDetailManualVerificationDialogOpen, listListPartialMatches, isMemoVerifyDialogOpen } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tconst { model } = this.state;\r\n\t\t\t\t\t\t\t\t\t\tif (this.props.MenuCode != null) {\r\n\t\t\t\t\t\t\t\t\t\t\tmodel.MenuCode = this.props.MenuCode;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\treturn model;\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\tColumns={[\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t this.MemoVerifyDialogOpen(row.original.Id)} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t this.MemoRejectDialogOpen(row.original.FinScanSearchLogId)} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t row.original.SearchResultParameterValue == FinScanSearchResultType.ListExactMatch\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? this.DetailUnverifiedDialogOpen(row.original.FinScanSearchLogId) : \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.DetailManualVerificationDialogOpen(row.original.FinScanSearchLogId) }/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\twidth: 100\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ClientName\",\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Client Customer No.\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ClientCustomerNumber\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"First Name\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"Name\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\trow.value ? StringHelper.Capitalize(row.value, true) : \"\"\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Middle Name\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"MiddleName\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\trow.value ? StringHelper.Capitalize(row.value, true) : \"\"\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Last Name\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"SurName\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\trow.value ? StringHelper.Capitalize(row.value, true) : \"\"\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"E-Mail\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"Email\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\trow.value ? String(row.value).toLowerCase() : \"\"\r\n\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\twidth: 150\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Corporate Name\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"CompanyLegalName\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\trow.value ? StringHelper.Capitalize(row.value, true) : \"\"\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Insert Date\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Watchlist Status\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"WatchlistStatus\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Last Updated User\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"UpdateUser\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Last Update Date\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"UpdateDateTime\",\r\n\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Program\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"Program\",\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"File Name\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"FileName\",\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Watchlist Capture Date\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"WatchlistCaptureDate\",\r\n\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Last Review Date\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"LastReviewDate\",\r\n\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\t\t\t\t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AppLeftTitle: func,\r\n\tsetAppCenterTitle: func,\r\n\tDisabled: bool\r\n};\r\n\r\n\r\nexport default withArtifex(UnverifiedCustomerList, {});","import atmLocationInfoStyle from \"assets/jss/material-dashboard-pro-react/views/atmLocationInfoStyle.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { withArtifex } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericCheckInput, GenericExpansionPanel, GenericGrid, GenericMapContainer, GenericMapMarker, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport { LocationRange } from \"views/Constants/Constant\";\r\nconst Atm = require(\"assets/img/atm.png\");\r\nconst AtmEdit = require(\"assets/img/atm-edit.png\");\r\nconst AtmNew = require(\"assets/img/atm-new.png\");\r\n\r\n\r\nclass AtmLocationInfo extends React.PureComponent {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tconst initialModel = {\r\n\t\t\tId: undefined,\r\n\t\t\tisUniqueDataSearch: undefined,\r\n\t\t\tLatitude: undefined,\r\n\t\t\tLongitude: undefined,\r\n\t\t\tAtmCode: undefined,\r\n\t\t\tAddress1: undefined,\r\n\t\t\tAddress2: undefined,\r\n\t\t\tCountryId: undefined,\r\n\t\t\tProvinceId: undefined,\r\n\t\t\tCityId: undefined,\r\n\t\t\tSiteName: undefined,\r\n\t\t\tPostCode: undefined,\r\n\t\t\tIsDraggable: undefined,\r\n\t\t\tEditMode: undefined\r\n\t\t};\r\n\t\tthis.state = {\r\n\t\t\tdata: [],\r\n\t\t\ttempData: [],\r\n\t\t\tfilterModel: { ...initialModel },\r\n\t\t\tmodel: { ...initialModel },\r\n\t\t\tvModel: {},\r\n\t\t\tvFilterModel: { ...initialModel },\r\n\t\t\tisEditMode: false,\r\n\t\t\tfocusedLocation:\r\n\t\t\t{\r\n\t\t\t\tlat: 60.736176,\r\n\t\t\t\tlng: -102.119770\r\n\t\t\t},\r\n\t\t\tmapZoom: 4,\r\n\t\t\ttempLocation: {\r\n\t\t\t\tLatitude: null,\r\n\t\t\t\tLongitude: null\r\n\t\t\t}\r\n\t\t};\r\n\t\tthis.markerRef = React.createRef();\r\n\t\tthis.googleMapRef = React.createRef();\r\n\t\tthis.tableColumns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Atm Code\",\r\n\t\t\t\taccessor: \"AtmCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Site Name\",\r\n\t\t\t\taccessor: \"SiteName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Address 1\",\r\n\t\t\t\taccessor: \"Address1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Province\",\r\n\t\t\t\taccessor: \"Province\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.markerLatLngList = {};\r\n\t\tthis.mapDefaultCenter = { lat: 43.00712742246087, lng: -101.75825072326111 };\r\n\t\tthis.mapDefaultOptions = {\r\n\t\t\tscrollwheel: true,\r\n\t\t\tdisableDefaultUI: true,\r\n\t\t\tzoomControl: true,\r\n\t\t};\r\n\t\tthis.mapPlaceholder =
;\r\n\t\tthis.mapContainer = ;\r\n\t\tthis.emptyObject = {};\r\n\t\tthis.emptyArray = [];\r\n\r\n\t\tthis.parameterCityFilterSelect = {};\r\n\t\tthis.parameterProvinceFilterSelect = {};\r\n\r\n\t\tthis.parameterCitySelect = {};\r\n\t\tthis.parameterProvinceSelect = {};\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errors = [];\r\n\r\n\t\tvar vModel = {};\r\n\t\tif (!model.Latitude) {\r\n\t\t\terrors.push(\"Latitude can not be null.\");\r\n\t\t\tvModel.Latitude = true;\r\n\t\t}\r\n\t\telse if (LocationRange.latitudeMax < model.Latitude || LocationRange.latitudeMin > model.Latitude) {\r\n\t\t\terrors.push(\"Latitude must be range in -90/90\");\r\n\t\t\tvModel.Latitude = true;\r\n\t\t}\r\n\t\tif (!model.Longitude) {\r\n\t\t\terrors.push(\"Longitude can not be null.\");\r\n\t\t\tvModel.Longitude = true;\r\n\t\t}\r\n\t\telse if (LocationRange.LongitudeMax < model.Longitude || LocationRange.LongitudeMin > model.Longitude) {\r\n\t\t\terrors.push(\"Longitude must be range in -180/180\");\r\n\t\t\tvModel.Longitude = true;\r\n\t\t}\r\n\r\n\t\tif (!model.AtmCode || model.AtmCode.length == 0) {\r\n\t\t\terrors.push(\"Atm Code is empty\");\r\n\t\t\tvModel.AtmCode = true;\r\n\t\t}\r\n\t\tif (!model.Address1 || model.Address1.length == 0) {\r\n\t\t\terrors.push(\"Address 1 is empty\");\r\n\t\t\tvModel.Address1 = true;\r\n\t\t}\r\n\r\n\t\tif (!model.CountryId) {\r\n\t\t\terrors.push(\"Country is empty\");\r\n\t\t\tvModel.CountryId = true;\r\n\t\t}\r\n\r\n\t\tif (!model.ProvinceId || model.ProvinceId.length == 0) {\r\n\t\t\terrors.push(\"Province is empty\");\r\n\t\t\tvModel.ProvinceId = true;\r\n\t\t}\r\n\r\n\t\tif (!model.CityId) {\r\n\t\t\terrors.push(\"City is empty\");\r\n\t\t\tvModel.CityId = true;\r\n\t\t}\r\n\t\tif (!model.SiteName || model.SiteName.length == 0) {\r\n\t\t\terrors.push(\"Site Name is empty\");\r\n\t\t\tvModel.SiteName = true;\r\n\t\t}\r\n\t\tif (!model.PostCode || model.PostCode.length == 0) {\r\n\t\t\terrors.push(\"Post Code is empty\");\r\n\t\t\tvModel.PostCode = true;\r\n\t\t}\r\n\r\n\r\n\t\tthis.setState({ vModel });\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\tFilterValidate = () => {\r\n\t\tconst { filterModel } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errors = [];\r\n\r\n\t\tvar vFilterModel = {};\r\n\t\tif (!filterModel.AtmCode) {\r\n\t\t\tif (!filterModel.ProvinceId) {\r\n\t\t\t\terrors.push(\"Province can not be null.\");\r\n\t\t\t\tvFilterModel.ProvinceId = true;\r\n\t\t\t}\r\n\t\t\tif (!filterModel.CountryId) {\r\n\t\t\t\terrors.push(\"Country can not be null.\");\r\n\t\t\t\tvFilterModel.CountryId = true;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.setState({ vFilterModel });\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Atm Location Info\");\r\n\t\tthis.props.setAppCenterTitle(\"ATM\");\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tvar tempData = [...this.state.data];\r\n\t\ttempData = tempData.map(item => {\r\n\t\t\titem.IsOpen = false;\r\n\t\t\treturn item;\r\n\t\t});\r\n\t\tthis.setState({ model: {}, vModel: {}, vFilterModel: {}, filterModel: {}, tempData, isEditMode: false });\r\n\t}\r\n\tSearch = async () => {\r\n\t\tif (!this.FilterValidate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/bankapi/v1.0/Atm/Search\", this.state.filterModel);\r\n\t\tif (result != null) {\r\n\t\t\tvar data = result || { Locations: {}, FocusLocation: { X: null, Y: null } };\r\n\t\t\tvar locations = data.Locations;\r\n\t\t\tthis.setState({\r\n\t\t\t\tdata: locations, tempData: locations, focusedLocation: {\r\n\t\t\t\t\tlat: data.FocusLocation.X,\r\n\t\t\t\t\tlng: data.FocusLocation.Y\r\n\t\t\t\t}, mapZoom: 5\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\tSubmit = async () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tconst { model, data } = this.state;\r\n\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/bankapi/v1.0/Atm/InsertOrUpdate\", model);\r\n\t\tif (result != null) {\r\n\t\t\tvar tempData = data || [];\r\n\t\t\tif (model && model.Id > 0) {\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Success\", \"Atm Location Info Update Successfully!\");\r\n\t\t\t\ttempData = tempData.map(item => {\r\n\r\n\t\t\t\t\tif (item.Id == model.Id) {\r\n\t\t\t\t\t\tmodel.IsDraggable = false;\r\n\t\t\t\t\t\treturn model;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn item;\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Success\", \"Atm Location Info Created Successfully!\");\r\n\t\t\t\tresult.IsDraggable = false;\r\n\t\t\t\ttempData.push(result);\r\n\t\t\t}\r\n\t\t\tthis.setState({ data: tempData, tempData: tempData });\r\n\t\t}\r\n\t}\r\n\r\n\tDelete = async () => {\r\n\t\tconst { data, model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/bankapi/v1.0/Atm/Delete\", { Id: model?.Id ?? 0 });\r\n\t\tif (result != null) {\r\n\t\t\tvar tempData = data || [];\r\n\t\t\ttempData = tempData.filter(item => item.Id != model.Id);\r\n\t\t\tthis.setState({ data: tempData, tempData: tempData, model: {} });\r\n\t\t\tthis.props.showMessage(\"success\", \"Success\", \"Atm Location Deleted Successfully!\");\r\n\t\t}\r\n\t}\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst temp = { ...this.state.model };\r\n\t\ttemp[name] = newValue;\r\n\t\tthis.setState({ model: temp });\r\n\t}\r\n\thandleChangeFilter = (name, newValue, data) => {\r\n\t\tconst temp = { ...this.state.filterModel };\r\n\t\ttemp[name] = newValue;\r\n\t\tif (name == \"AtmCode\") {\r\n\t\t\ttemp.isUniqueDataSearch = newValue?.length > 0;\r\n\t\t}\r\n\t\tthis.setState({ filterModel: temp });\r\n\t}\r\n\r\n\thandleEditLocation = (id) => {\r\n\t\tconst temp = [...this.state.tempData];\r\n\t\tvar tempLocation = {};\r\n\t\tvar modifiedData = temp.map(item => {\r\n\t\t\tif (item.Id == id) {\r\n\t\t\t\ttempLocation.Latitude = item.Latitude;\r\n\t\t\t\ttempLocation.Longitude = item.Longitude;\r\n\t\t\t\titem.IsDraggable = true;\r\n\t\t\t}\r\n\t\t\treturn item;\r\n\t\t});\r\n\t\tthis.setState({ tempData: modifiedData, isEditMode: true, tempLocation });\r\n\t}\r\n\thandleEditSubmitLocation = (id) => {\r\n\t\tconst temp = [...this.state.tempData];\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel.EditMode = false;\r\n\t\tvar markerPos = this.markerRef.current.getPosition();\r\n\t\tvar pos = this.markerRef.current.getPlace();\r\n\t\tconsole.log(pos);\r\n\t\tvar modifiedData = temp.map(item => {\r\n\t\t\tif (item.Id == id) {\r\n\t\t\t\titem.Latitude = markerPos.lat();\r\n\t\t\t\titem.Longitude = markerPos.lng();\r\n\t\t\t\titem.IsDraggable = false;\r\n\t\t\t\titem.IsOpen = false;\r\n\t\t\t}\r\n\t\t\treturn item;\r\n\t\t});\r\n\t\tmodel.Latitude = markerPos.lat();\r\n\t\tmodel.Longitude = markerPos.lng();\r\n\t\tthis.setState({ tempData: modifiedData, model, isEditMode: false });\r\n\t}\r\n\thandleEditCancelLocation = (id) => {\r\n\t\tconst temp = [...this.state.tempData];\r\n\t\tconst model = { ...this.state.model };\r\n\t\tconst { tempLocation } = this.state;\r\n\t\tif (tempLocation.Latitude && tempLocation.Longitude) {\r\n\t\t\tmodel.Latitude = tempLocation.Latitude;\r\n\t\t\tmodel.Longitude = tempLocation.Longitude;\r\n\t\t}\r\n\r\n\t\tmodel.EditMode = false;\r\n\t\tvar modifiedData = temp.map(item => {\r\n\t\t\tif (item.Id == id) {\r\n\t\t\t\titem.IsDraggable = false;\r\n\t\t\t\titem.IsOpen = false;\r\n\t\t\t\tif (tempLocation.Latitude && tempLocation.Longitude) {\r\n\t\t\t\t\titem.Latitude = tempLocation.Latitude;\r\n\t\t\t\t\titem.Longitude = tempLocation.Longitude;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn item;\r\n\t\t});\r\n\t\tthis.setState({ tempData: modifiedData, model, isEditMode: false });\r\n\t}\r\n\r\n\tgetHandleMarkerClick = (id) => (e) => this.handleMarkerClick(e, id);\r\n\thandleMarkerClick = (e, id) => {\r\n\t\tconst temp = [...this.state.tempData];\r\n\t\tvar markedIndex = -1;\r\n\t\tvar tempLocation = {};\r\n\t\tvar modifiedData = temp.map((item, index) => {\r\n\t\t\titem.IsOpen = false;\r\n\t\t\tif (item.Id == id) {\r\n\t\t\t\titem.IsOpen = true;\r\n\t\t\t\ttempLocation.Latitude = item.Latitude;\r\n\t\t\t\ttempLocation.Longitude = item.Longitude;\r\n\t\t\t\tif (id == 0) {\r\n\t\t\t\t\tthis.setState({ isEditMode: true });\r\n\t\t\t\t}\r\n\t\t\t\tmarkedIndex = index;\r\n\t\t\t} else {\r\n\t\t\t\titem.IsDraggable = false;\r\n\t\t\t}\r\n\t\t\treturn item;\r\n\t\t});\r\n\t\tvar selected = temp.find(a => a.Id == id);\r\n\t\tthis.setState({ tempLocation, tempData: modifiedData, model: selected, vModel: {}, vFilterModel: {}, rowIndex: markedIndex });\r\n\t}\r\n\r\n\thandleMarkerDoubleClick = (e) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tconst { data } = this.state;\r\n\t\tvar lat = e.latLng.lat();\r\n\t\tvar lng = e.latLng.lng();\r\n\t\tvar tempData = data || [];\r\n\t\tif (model.Id == 0)\r\n\t\t\treturn;\r\n\t\tif (model && model.Id > 0) {\r\n\t\t\tif (!model.Latitude || !model.Longitude) {\r\n\r\n\t\t\t\tmodel.Latitude = lat;\r\n\t\t\t\tmodel.Longitude = lng;\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\tmodel.Id = 0;\r\n\t\t\tmodel.Latitude = lat;\r\n\t\t\tmodel.Longitude = lng;\r\n\t\t\tmodel.IsDraggable = true;\r\n\t\t\ttempData = tempData.filter(item => item.Id != 0);\r\n\t\t\ttempData.push(model);\r\n\r\n\t\t}\r\n\r\n\t\tthis.setState({ model, tempData, vModel: {}, vFilterModel: {} });\r\n\t}\r\n\r\n\thandleMapClick = () => {\r\n\t\tconst temp = [...this.state.tempData];\r\n\t\tvar modifiedData = temp.map((item, index) => {\r\n\t\t\titem.IsOpen = false;\r\n\t\t\titem.EditMode = false;\r\n\t\t\titem.IsDraggable = false;\r\n\t\t\treturn item;\r\n\t\t});\r\n\t\tthis.setState({ tempData: modifiedData, isEditMode: false });\r\n\t}\r\n\tSelectedRowChange = (index) => {\r\n\t\tconst tempModel = { ...this.state.tempData[index] };\r\n\t\tvar focusedLocation = {\r\n\t\t\tlat: tempModel.Latitude,\r\n\t\t\tlng: tempModel.Longitude\r\n\t\t};\r\n\r\n\t\tthis.setState({ model: tempModel, focusedLocation, rowIndex: index, mapZoom: 10 }, () => {\r\n\t\t\tthis.handleMarkerClick(null, tempModel.Id);\r\n\t\t});\r\n\r\n\t}\r\n\r\n\tgetMarkerPopup = (item) => (props) => {\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{item.Town} - {item.Province}

\r\n\t\t\t\t\tATM Code: {item.AtmCode}
\r\n\t\t\t\t\tAddress 1: {item.Address1}
\r\n\t\t\t\t\tPost Code: {item.PostCode}
\r\n\t\t\t\t
\r\n\t\t\t\t{item.IsDraggable ? <>\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t : }\r\n\t\t\t
);\r\n\t};\r\n\tgetMarkerPosition = (item) => {\r\n\t\tvar latLngList = this.markerLatLngList[item.Id];\r\n\r\n\t\tif (!latLngList) {\r\n\t\t\tvar newLatLng = {\r\n\t\t\t\tlat: item.Latitude,\r\n\t\t\t\tlng: item.Longitude\r\n\t\t\t};\r\n\t\t\tthis.markerLatLngList[item.Id] = newLatLng;\r\n\t\t\treturn newLatLng;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tlatLngList.lat = item.Latitude;\r\n\t\t\tlatLngList.lng = item.Longitude;\r\n\t\t\treturn latLngList;\r\n\t\t}\r\n\t}\r\n\tgetMarkerList = () => {\r\n\t\tconst { tempData, model } = this.state;\r\n\t\tvar markerList = tempData.map(item => {\r\n\t\t\treturn ;\r\n\t\t});\r\n\t\treturn markerList;\r\n\t}\r\n\tgetParameterProvinceFilterSelect = (param) => {\r\n\r\n\t\tthis.parameterProvinceFilterSelect.CountryId = param;\r\n\t\treturn this.parameterProvinceFilterSelect;\r\n\t}\r\n\r\n\tgetParameterCityFilterSelect = (param) => {\r\n\t\tthis.parameterCityFilterSelect.ProvinceId = param;\r\n\t\treturn this.parameterCityFilterSelect;\r\n\t}\r\n\r\n\tgetParameterProvinceSelect = (param) => {\r\n\t\tthis.parameterProvinceSelect.CountryId = param;\r\n\t\treturn this.parameterProvinceSelect;\r\n\t}\r\n\r\n\tgetParameterCitySelect = (param) => {\r\n\t\tthis.parameterCitySelect.ProvinceId = param;\r\n\t\treturn this.parameterCitySelect;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, vModel, filterModel, tempData, focusedLocation, mapZoom, isEditMode, vFilterModel } = this.state;\r\n\t\tconst { Disabled, classes } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t 0) },\r\n\t\t\t\t\t{ Code: \"Update\", OnClick: this.Submit, Disabled: Disabled || !model?.Id },\r\n\t\t\t\t\t{ Code: \"Delete\", OnClick: () => { this.props.showConfirmMessageInDelete(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\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{this.getMarkerList()}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\nAtmLocationInfo.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func\r\n};\r\n\r\n\r\nexport default withArtifex(AtmLocationInfo, atmLocationInfoStyle);","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport CardComponent from \"views/Components/CardComponent.jsx\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent.jsx\";\r\nimport HtmlEditorHelper from \"core/HtmlEditorHelper\";\r\nimport { Proxy } from \"core\";\r\nimport {\r\n GenericGrid,\r\n GenericEmailInput,\r\n GenericNumberInput,\r\n GenericSelectInput,\r\n GenericTextInput,\r\n GenericTitle,\r\n GenericCheckInput,\r\n} from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant.js\";\r\nimport { TaskPool } from \"core/TaskPool\";\r\n\r\nclass AccountNotification extends Component {\r\n constructor(props) {\r\n super(props);\r\n\r\n this.state = {\r\n model: {\r\n Id: 0,\r\n UniqueClientId: null,\r\n ClientCustomerId: null,\r\n CustomerNumber: null,\r\n CardId: null,\r\n CardTokenNumber: null,\r\n AccountNumber: null,\r\n NotificationTemplateId: null,\r\n NotificationThreshHold: null,\r\n NotificationAccountChannelTypeId: null,\r\n Email: null,\r\n PhoneNumber: null,\r\n MobilePhoneCountryCodeId: 0,\r\n\t\t IsActive: true,\r\n // ClientWebHookProfileId: null,\r\n },\r\n NotificationChannelType: [],\r\n propertyList: [],\r\n htmlState: \"\",\r\n isLoading: false,\r\n vModel: {},\r\n };\r\n this.ParameterMaxLength64 = { maxLength: 64 };\r\n this.loadTaskPool = new TaskPool(\r\n this.handleLoadTaskPoolAppend,\r\n this.handleLoadTaskPoolCompleted\r\n );\r\n this.marginLeft2 = {\r\n marginLeft: 2,\r\n };\r\n\r\n this.ColumnsData = [\r\n {\r\n Header: \"Status\",\r\n accessor: \"IsActive\",\r\n Cell: (row) => (row.value ? \"Active\" : \"Inactive\"),\r\n },\r\n {\r\n Header: \"Unique Client Id\",\r\n accessor: \"UniqueClient.UniqueClientId\",\r\n },\r\n ClientHelper.IsClient()\r\n ? {\r\n Header: \"Card Holder Name\",\r\n accessor: \"Card.EmbossName1\",\r\n }\r\n : {\r\n Header: \"Account Name\",\r\n accessor: \"Account.AccountOwnerName\",\r\n },\r\n ClientHelper.IsClient()\r\n ? { Header: \"Card Number\", accessor: \"Card.CardTokenNumber\" }\r\n : { Header: \"Account Number\", accessor: \"Account.AccountNumber\" },\r\n {\r\n Header: \"Notification ThreshHold\",\r\n accessor: \"NotificationThreshHold\",\r\n type: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Client Name\",\r\n accessor: \"UniqueClient.ClientName\",\r\n },\r\n {\r\n Header: \"Notification Channel Type\",\r\n accessor: \"NotificationAccountChannelType.ParameterDesc\",\r\n },\r\n {\r\n Header: \"Notification Template Subject\",\r\n accessor: \"NotificationTemplate.Subject\",\r\n },\r\n {\r\n Header: \"Email\",\r\n accessor: \"Email\",\r\n },\r\n {\r\n Header: \"Phone Number\",\r\n accessor: \"MobileNumber\",\r\n },\r\n // {\r\n // Header: \"WebHook URL\",\r\n // accessor: \"ClientWebHookProfile.WebHookUrl\",\r\n // },\r\n {\r\n Header: \"Insert Date Time\",\r\n accessor: \"InsertDateTime\",\r\n },\r\n\t\t{\r\n\t\t\tHeader: \"Is Active\",\r\n\t\t\taccessor: \"IsActive\",\r\n\t\t\tCell: (row) => (row.value == true ? \"Yes\" : \"No\"),\r\n\t\t },\r\n ];\r\n\r\n this.ValueChanged = this.ValueChanged.bind(this);\r\n this.ClearClick = this.ClearClick.bind(this);\r\n this.HandleSearch = this.HandleSearch.bind(this);\r\n }\r\n\r\n componentDidMount() {\r\n const { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n setAppCenterTitle(\"PROGRAM\");\r\n setAppLeftTitle(\"Notification Account\");\r\n const { showMessage } = this.props;\r\n this.setState({ isLoading: true });\r\n Proxy.POST(\r\n \"/coreapi/v1.0/Parameter/Search\",\r\n {\r\n ParameterCode: \"NotificationAccountChannelType\",\r\n },\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n\r\n if (!responseData.IsSucceeded) {\r\n showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n return;\r\n }\r\n this.setState({\r\n NotificationChannelTypeList: responseData.Item ?? [],\r\n });\r\n // console.log(JSON.stringify(this.state.NotificationChannelTypeList));\r\n },\r\n (error) => {\r\n this.setState({ isLoading: false });\r\n showMessage(\"error\", \"Error\", error);\r\n }\r\n );\r\n }\r\n\r\n handleLoadTaskPoolCompleted = () => {\r\n this.setState({ isLoading: false });\r\n };\r\n\r\n handleLoadTaskPoolAppend = () => {\r\n this.setState({ isLoading: true });\r\n };\r\n\r\n ValueChanged(name, newValue, data) {\r\n const model = { ...this.state.model };\r\n\r\n if (name == \"NotificationTemplateId\") {\r\n if (newValue != null || newValue != undefined) {\r\n model.NotificationTemplateId = newValue.Id;\r\n this.SelectedTemplateChange(newValue, data);\r\n }\r\n }\r\n\r\n if (name === \"UniqueClientId\") {\r\n delete model.ClientCustomerId;\r\n delete model.CustomerNumber;\r\n delete model.CardId;\r\n delete model.CardTokenNumber;\r\n delete model.NotificationAccountChannelTypeId;\r\n delete model.NotificationTemplateId;\r\n this.setState({ htmlState: \"\" });\r\n this.setState({ NotificationTemplateList: null });\r\n }\r\n if (name === \"NotificationAccountChannelTypeId\") {\r\n this.setState({ NotificationTemplateList: null });\r\n delete model.NotificationTemplateId;\r\n this.setState({ htmlState: \"\" });\r\n }\r\n if (name === \"Customer\") {\r\n if (newValue) {\r\n model.ClientCustomerId = newValue.Id;\r\n model.CustomerNumber = newValue.CustomerNumber;\r\n } else {\r\n delete model.ClientCustomerId;\r\n delete model.CustomerNumber;\r\n delete model.CardId;\r\n delete model.CardTokenNumber;\r\n }\r\n }\r\n if (name === \"Card\") {\r\n if (newValue) {\r\n model.CardId = newValue.CardId;\r\n model.CardTokenNumber = newValue.CardTokenNumber;\r\n } else {\r\n delete model.CardId;\r\n delete model.CardTokenNumber;\r\n }\r\n }\r\n\r\n model[name] = newValue;\r\n\r\n this.setState({ model });\r\n\r\n if (\r\n (name == \"NotificationAccountChannelTypeId\" &&\r\n model.UniqueClientId != null &&\r\n model.UniqueClientId != undefined) ||\r\n (name == \"UniqueClientId\" &&\r\n model.NotificationAccountChannelTypeId != null &&\r\n model.NotificationAccountChannelTypeId != undefined)\r\n ) {\r\n const { showMessage } = this.props;\r\n\r\n this.setState({ isLoading: true });\r\n const requestNotificationTemplate = {\r\n NotificationAccountChannelTypeId:\r\n model.NotificationAccountChannelTypeId ?? 0,\r\n UniqueClientId: model.UniqueClientId,\r\n };\r\n Proxy.POST(\r\n \"/coreapi/v1.0/NotificationTemplate/Search\",\r\n requestNotificationTemplate,\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n\r\n if (!responseData.IsSucceeded) {\r\n showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n return;\r\n }\r\n this.setState({\r\n NotificationTemplateList: responseData.Item ?? [],\r\n });\r\n },\r\n (error) => {\r\n this.setState({ isLoading: false });\r\n showMessage(\"error\", \"Error\", error);\r\n }\r\n );\r\n }\r\n }\r\n\r\n ClearClick() {\r\n\tlet searchModel = {\r\n UniqueClientId: this.isBackoffice\r\n ? null\r\n : this.state.model.UniqueClientId,\r\n };\r\n this.setState({ model: searchModel });\r\n\r\n\r\n }\r\n\r\n HandleSearch() {\r\n const model = this.state.model;\r\n const { showMessage } = this.props;\r\n this.setState({ isLoading: true });\r\n\r\n Proxy.POST(\r\n \"/coreapi/v1.0/NotificationAccount/SearchNotificationAccount\",\r\n model,\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n\r\n if (!responseData.IsSucceeded) {\r\n showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n return;\r\n }\r\n\r\n this.setState({ NotificationList: responseData.Item ?? [] });\r\n },\r\n (error) => {\r\n this.setState({ isLoading: false });\r\n showMessage(\"error\", \"Error\", error);\r\n }\r\n );\r\n }\r\n\r\n FillCustomer = (customer) => {\r\n this.ValueChanged(\"Customer\", customer);\r\n };\r\n\r\n FillCard = (card) => {\r\n this.ValueChanged(\"Card\", card);\r\n };\r\n\r\n Validate = () => {\r\n const { model, vModel } = this.state;\r\n var messages = [];\r\n\r\n var selectedNotificationChannelType = \"\";\r\n\r\n if (\r\n this.state.NotificationChannelTypeList != null &&\r\n this.state.NotificationChannelTypeList != undefined\r\n ) {\r\n Object.keys(this.state.NotificationChannelTypeList).map((key, value) => {\r\n if (\r\n model.NotificationAccountChannelTypeId ==\r\n this.state.NotificationChannelTypeList[value].Id\r\n ) {\r\n selectedNotificationChannelType =\r\n this.state.NotificationChannelTypeList[value].ParameterDesc;\r\n }\r\n });\r\n }\r\n\r\n if (selectedNotificationChannelType == \"Email\") {\r\n vModel.Email = model.Email == null;\r\n if (vModel.Email) messages.push(\"Email is required\");\r\n } else if (selectedNotificationChannelType == \"SMS\") {\r\n\t\tvModel.MobileNumber = model.PhoneNumber == null || model.MobilePhoneCountryCodeId == null;\r\n if (vModel.MobileNumber) messages.push(\"Mobile Number is required\");\r\n }\r\n\t// else if (selectedNotificationChannelType == \"Webhook\") {\r\n\t// \tvModel.ClientWebHookProfileId = model.ClientWebHookProfileId == null;\r\n // if (vModel.ClientWebHookProfileId) messages.push(\"Webhook Profile is required\");\r\n // }\r\n\r\n vModel.UniqueClientId = model.UniqueClientId == null;\r\n if (vModel.UniqueClientId) messages.push(\"Client must be select\");\r\n\r\n vModel.ClientCustomerId = model.ClientCustomerId == null;\r\n if (vModel.ClientCustomerId) messages.push(\"Customer must be select\");\r\n\r\n if (ClientHelper.IsClient()) {\r\n vModel.CardId = model.CardId == null;\r\n if (vModel.CardId) messages.push(\"Card must be select\");\r\n } else {\r\n vModel.AccountNumber = model.AccountNumber == null;\r\n if (vModel.AccountNumber) messages.push(\"Account Number must be select\");\r\n }\r\n\r\n vModel.NotificationThreshHold = model.NotificationThreshHold == null;\r\n if (vModel.NotificationThreshHold)\r\n messages.push(\"Notification ThreshHold must be select\");\r\n\r\n vModel.NotificationAccountChannelTypeId =\r\n model.NotificationAccountChannelTypeId == null;\r\n if (vModel.NotificationAccountChannelTypeId)\r\n messages.push(\"Notification Account Channel Type must be select\");\r\n\r\n if (messages.length > 0) {\r\n this.props.showMessageNode(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n messages.map((x, i) =>
{x}
)\r\n );\r\n return false;\r\n }\r\n\r\n this.setState({ vModel });\r\n return true;\r\n };\r\n\r\n SelectedTemplateChange = (value, data) => {\r\n if (data && data.Template != null && data.Template != \"\") {\r\n this.setState({ htmlState: data.Template });\r\n } else {\r\n this.setState({ htmlState: \"\" });\r\n }\r\n };\r\n\r\n RenderNotificationTemplate = (d) => {\r\n return d?.Subject;\r\n };\r\n\r\n HandleSubmit = () => {\r\n const { showMessage } = this.props;\r\n if (this.Validate()) {\r\n const model = this.state.model;\r\n this.setState({ isLoading: true });\r\n Proxy.POST(\r\n \"/coreapi/v1.0/NotificationAccount/InsertOrUpdate\",\r\n model,\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n\r\n if (!responseData.IsSucceeded) {\r\n showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\r\n return;\r\n }\r\n showMessage(\"success\", \"Success\", responseData.ErrorDescription);\r\n this.HandleSearch();\r\n },\r\n (error) => {\r\n this.setState({ isLoading: false });\r\n\r\n showMessage(\"error\", \"Error\", error);\r\n }\r\n );\r\n }\r\n };\r\n\r\n HandleUpdate = () => {\r\n const { showMessage } = this.props;\r\n const model = this.state.model;\r\n this.setState({ isLoading: true });\r\n\r\n Proxy.POST(\r\n \"/coreapi/v1.0/NotificationAccount/InsertOrUpdate\",\r\n model,\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n\r\n if (!responseData.IsSucceeded) {\r\n showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\r\n return;\r\n }\r\n showMessage(\"success\", \"Success\", responseData.ErrorDescription);\r\n this.HandleSearch();\r\n },\r\n\r\n (error) => {\r\n this.setState({ isLoading: false });\r\n\r\n showMessage(\"error\", \"Error\", error);\r\n }\r\n );\r\n };\r\n\r\n HandleDelete = () => {\r\n this.setState({ isLoading: true });\r\n const { showMessage } = this.props;\r\n\r\n Proxy.GET(\r\n \"/coreapi/v1.0/NotificationAccount/DeleteAccountNotification/Id?Id=\" +\r\n this.state.model.Id,\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n if (!responseData.IsSucceeded) {\r\n showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n return;\r\n }\r\n showMessage(\"success\", \"Success\", responseData.ErrorDescription);\r\n },\r\n (error) => {\r\n this.setState({ isLoading: false });\r\n showMessage(\"error\", \"Error\", error);\r\n }\r\n );\r\n };\r\n\r\n SelectedRowChange = (index) => {\r\n const model = this.state.NotificationList[index];\r\n this.setState({ model: model });\r\n };\r\n\r\n render() {\r\n const { Disabled } = this.props;\r\n const {\r\n isLoading,\r\n alert,\r\n model,\r\n vModel,\r\n NotificationList,\r\n htmlState,\r\n NotificationTemplateList,\r\n } = this.state;\r\n\r\n return (\r\n
\r\n \r\n {alert}\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n `${d.UniqueClientId} - ${d.Name}`}\r\n Value={model.UniqueClientId || \"\"}\r\n ValueChanged={this.ValueChanged}\r\n CanClear\r\n All\r\n Disabled={ClientHelper.IsClient()}\r\n DefaultIndex={ClientHelper.IsClient() ? 0 : -1}\r\n Required\r\n />\r\n \r\n {ClientHelper.IsClient() ? (\r\n \r\n \r\n \r\n ) : (\r\n \r\n \r\n \r\n )}\r\n {ClientHelper.IsClient() && (\r\n \r\n \r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \"+\" + d.Code + \" (\" + d.Name + \")\"}\r\n IsInvalid={vModel.MobileNumber}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n\t\t\t\t\t\t\t\t\r\n {/* \r\n 0\r\n ? \"/coreapi/v1.0/NotificationAccount/GetWebHookListByUniqueClientId\"\r\n : null\r\n }\r\n Parameter={model.UniqueClientId}\r\n DataRoot=\"Item\"\r\n KeyValueMember=\"Id\"\r\n TextValueMember=\"WebHookUrl\"\r\n Value={model.ClientWebHookProfileId}\r\n ValueChanged={this.ValueChanged}\r\n IsInvalid={vModel.ClientWebHookProfileId}\r\n />\r\n */}\r\n \r\n \r\n \r\n
\r\n
\r\n {HtmlEditorHelper.HtmlContentToReact(htmlState)}\r\n
\r\n
\r\n
\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\nAccountNotification.propTypes = {\r\n classes: PropTypes.object.isRequired,\r\n setAppLeftTitle: PropTypes.func,\r\n setAppCenterTitle: PropTypes.func,\r\n Disabled: PropTypes.bool,\r\n};\r\n\r\nconst styles = {\r\n editor: {\r\n border: \"1px solid gray\",\r\n minHeight: \"18em\",\r\n height: \"auto\",\r\n },\r\n};\r\n\r\nexport default withArtifex(AccountNotification, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { ClientType, GridColumnType } from \"views/Constants/Constant\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\n\r\nclass AgentEarnings extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.initialModel = {\r\n\t\t\tSalesAgentUniqueClientId: !ClientHelper.IsSalesPerson() ? undefined : ClientHelper.GetClientRowId(),\r\n\t\t};\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tdata: [],\r\n\t\t\tsalesAgent: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tisSalesPerson: false\r\n\t\t};\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: this.initialModel, data: [], isLoading: false });\r\n\t}\r\n\tSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/SalesAgentEarnings/Search\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tconsole.log(\"1Error!\");\r\n\t\t\t\t\tthis.setState({ isLoading: false, data: [] });\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.setState({ data: responseData.Item || [] });\r\n\t\t\t},\r\n\t\t\te => {\r\n\t\t\t\tconsole.log(\"Error!\");\r\n\t\t\t\tthis.setState({ isLoading: false, data: [] });\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tGetMemo = (Id) => {\r\n\t\tProxy.GET(\r\n\t\t\t\"/bankapi/v1.0/CustomerMemo/GetByCustomerId/Id?Id=\" + Id,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tconsole.log(\"Error!\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tlet data = responseData.Item != null ? responseData.Item.sort((a, b) => (b.Id - a.Id)) : null;\r\n\t\t\t\tvar { model } = this.state;\r\n\t\t\t\tmodel.Memo = data != null ? (data[0].Memo != null ? data[0].Memo : \"\") : \"\";\r\n\t\t\t\tthis.setState({ model });\r\n\t\t\t},\r\n\t\t\te => {\r\n\t\t\t\tconsole.log(\"Error!\");\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst temp = { ...this.state.model };\r\n\t\ttemp[name] = newValue;\r\n\t\ttemp.Memo = \"\";\r\n\t\tthis.setState({ model: temp });\r\n\t\tif (name == \"UniqueClientId\") {\r\n\r\n\t\t\tthis.getSalesAgent(newValue);\r\n\t\t}\r\n\t\tif (name == \"SalesAgentUniqueClientId\" && this.state.salesAgent != null) {\r\n\t\t\tthis.GetMemo(newValue);\r\n\t\t}\r\n\r\n\t}\r\n\tgetSalesAgent = (value) => {\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/BankCustomer/GetSalesAgent\",\r\n\t\t\t{ Id: value },\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tconsole.log(\"Error!\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ salesAgent: responseData.Item });\r\n\t\t\t},\r\n\t\t\te => {\r\n\t\t\t\tconsole.log(\"Error!\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\t//this.props.hideSidebar();\r\n\t\tthis.getSalesAgent(-1);\r\n\t\tthis.props.setAppLeftTitle(\"Agent Earnings\");\r\n\t\tthis.props.setAppCenterTitle(\"SALES AGENT\");\r\n\t\tthis.setState({ isSalesPerson: ClientHelper.IsSalesPerson() });\r\n\t}\r\n\trender() {\r\n\t\tconst { model, data, salesAgent, isSalesPerson } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{row.original.TotalAmount == null || row.original.TotalAmount == 0 ? \"\" : \"$ \" + row.original.TotalAmount}
\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Eft\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{row.original.EftAmount == null || row.original.EftAmount == 0 ? \"\" : \"$ \" + row.original.EftAmount}
\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Ddt\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{row.original.DdtAmount == null || row.original.DdtAmount == 0 ? \"\" : \"$ \" + row.original.DdtAmount}
\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"E-Transfer\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{row.original.EtransferAmount == null || row.original.EtransferAmount == 0 ? \"\" : \"$ \" + row.original.EtransferAmount}
\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Swift\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{row.original.SwiftAmount == null || row.original.SwiftAmount == 0 ? \"\" : \"$ \" + row.original.SwiftAmount}
\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Bill Payment\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{row.original.BillAmount == null || row.original.BillAmount == 0 ? \"\" : \"$ \" + row.original.BillAmount}
\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Wallet\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{row.original.PrepaidAmount == null || row.original.PrepaidAmount == 0 ? \"\" : \"$ \" + row.original.PrepaidAmount}
\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Lender\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{row.original.LenderAmount == null || row.original.LenderAmount == 0 ? \"\" : \"$ \" + row.original.LenderAmount}
\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Bank Account\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{row.original.BankAccountAmount == null || row.original.BankAccountAmount == 0 ? \"\" : \"$ \" + row.original.BankAccountAmount}
\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nAgentEarnings.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func\r\n};\r\n\r\n\r\nexport default withArtifex(AgentEarnings, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { ClientType, GridColumnType } from \"views/Constants/Constant\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\n\r\nclass AgentStatement extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.initialModel = {\r\n\t\t\tSalesAgentUniqueClientId: !ClientHelper.IsSalesPerson() ? undefined : ClientHelper.GetClientRowId(),\r\n\t\t};\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tdata: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tisSalesPerson: false\r\n\t\t};\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\t//this.props.hideSidebar();\r\n\t\tthis.setState({ isSalesPerson: ClientHelper.IsSalesPerson() });\r\n\t\tthis.props.setAppLeftTitle(\"Agent Statement\");\r\n\t\tthis.props.setAppCenterTitle(\"SALES PERSON\");\r\n\t}\r\n\tClear = () => {\r\n\t\tthis.setState({ model: this.initialModel, data: [], isLoading: false });\r\n\t}\r\n\tSearch = () => {\r\n\t\t// SearchAgentStatementOp\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/SalesAgentStatement/Search\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tconsole.log(\"Error!\");\r\n\t\t\t\t\tthis.setState({ isLoading: false, data: [] });\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.setState({ data: responseData.Item || [] });\r\n\t\t\t},\r\n\t\t\te => {\r\n\t\t\t\tconsole.log(\"Error!\");\r\n\t\t\t\tthis.setState({ isLoading: false, data: [] });\r\n\t\t\t}\r\n\t\t);\r\n\r\n\t}\r\n\r\n\tGetMemo = (Id) => {\r\n\t\tProxy.GET(\r\n\t\t\t\"/bankapi/v1.0/CustomerMemo/GetByCustomerId/Id?Id=\" + Id,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tconsole.log(\"Error!\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tlet data = responseData.Item != null ? responseData.Item.sort((a, b) => (b.Id - a.Id)) : null;\r\n\t\t\t\tvar { model } = this.state;\r\n\t\t\t\tmodel.Memo = data != null ? (data[0].Memo != null ? data[0].Memo : \"\") : \"\";\r\n\t\t\t\tthis.setState({ model });\r\n\t\t\t},\r\n\t\t\te => {\r\n\t\t\t\tconsole.log(\"Error!\");\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst temp = { ...this.state.model };\r\n\t\ttemp[name] = newValue;\r\n\t\tthis.setState({ model: temp });\r\n\t\tif (name == \"UniqueClientId\") {\r\n\t\t\ttemp.Memo = \"\";\r\n\t\t\tthis.GetMemo(temp.UniqueClientId);\r\n\t\t}\r\n\t}\r\n\trender() {\r\n\t\tconst { model, data, isSalesPerson } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{row.original.TotalAmount == null || row.original.TotalAmount == 0 ? \"\" : \"$ \" + row.original.TotalAmount}
\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Eft\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{row.original.EftAmount == null || row.original.EftAmount == 0 ? \"\" : \"$ \" + row.original.EftAmount}
\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Ddt\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{row.original.DdtAmount == null || row.original.DdtAmount == 0 ? \"\" : \"$ \" + row.original.DdtAmount}
\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"E-Transfer\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{row.original.EtransferAmount == null || row.original.EtransferAmount == 0 ? \"\" : \"$ \" + row.original.EtransferAmount}
\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Swift\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{row.original.SwiftAmount == null || row.original.SwiftAmount == 0 ? \"\" : \"$ \" + row.original.SwiftAmount}
\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Bill Payment\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{row.original.BillAmount == null || row.original.BillAmount == 0 ? \"\" : \"$ \" + row.original.BillAmount}
\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Wallet\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{row.original.PrepaidAmount == null || row.original.PrepaidAmount == 0 ? \"\" : \"$ \" + row.original.PrepaidAmount}
\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Lender\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{row.original.LenderAmount == null || row.original.LenderAmount == 0 ? \"\" : \"$ \" + row.original.LenderAmount}
\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Bank Account\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{row.original.BankAccountAmount == null || row.original.BankAccountAmount == 0 ? \"\" : \"$ \" + row.original.BankAccountAmount}
\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nAgentStatement.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func\r\n};\r\n\r\nexport default withArtifex(AgentStatement, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper.js\";\r\nimport DateHelper from \"core/DateHelper.js\";\r\nimport { TaskPool } from \"core/TaskPool.js\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericCheckInput, GenericSelectInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent.jsx\";\r\nimport TabsComponent from \"views/Components/TabsComponentPagination\";\r\nimport { ActionCodes, AddressType, BankingAccountTypes, ClientType, CurrencyType, IdentificationMethod, LicenseRegistrationEntity, MenuCodes } from \"views/Constants/Constant.js\";\r\nimport ClientSummary from \"./ClientSteps/ClientSummary.jsx\";\r\nimport ContractDetails from \"./ClientSteps/ContractDetails\";\r\nimport CustomerDetails from \"./ClientSteps/CustomerDetails.jsx\";\r\nimport Memo from \"./ClientSteps/Memo\";\r\nimport KYCStatus from \"./ClientSteps/KYCStatus\";\r\nimport RiskRatingTabs from \"./ClientSteps/RiskRatingTabs\";\r\nimport Security from \"./ClientSteps/Security\";\r\nimport Settlement from \"./ClientSteps/Settlement.jsx\";\r\n\r\nconst initialState = {\r\n\tvModel: {},\r\n\tparamGlobalModel: {},\r\n\tparamCustomerProfile: {},\r\n\tparamBankCustomerCorporate: {},\r\n\tparamBankCustomerKeyContactList: [],\r\n\tparamBankCustomerDirectorsList: [],\r\n\tparamBankCustomerRegulatoryLicenseList: [],\r\n\tparamBankCustomerContractList: [],\r\n\tparamBankCustomerAddressList: [],\r\n\tparamBankCustomerMemoList: [],\r\n\tparamBankCustomerInternalAccountList: [],\r\n\tparamBankCustomerExternalAccountList: [],\r\n\tparamBankCustomerCorporateAuthOwnerList: [],\r\n\tparamBankCustomerCorporateAuthPersonList: [],\r\n\tparamIdentificationMethot1: {},\r\n\tparamIdentificationMethot2: {},\r\n\tparamCustomerMobilePhone: {},\r\n\tparamCustomerPrimaryPhone: {},\r\n\tparamCorporateBussinesPhone: {},\r\n\tparamCorporateFaxPhone: {},\r\n\tparamCustomerAlternativePhone: {},\r\n\tparamBankCustomerKYCStatus: [],\r\n\tparamBankCustomerSecurityList: [],\r\n\tParentTabIndex: 0,\r\n\tChildTabIndex: 0,\r\n\tIsClientComponent: false,\r\n\talert: null,\r\n\tisLoading: false,\r\n\tisSalesPerson: false,\r\n\tCustomDisabled: null\r\n};\r\n\r\nclass ClientSetup extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = initialState;\r\n\r\n\r\n\t\tthis.loadTaskPool = new TaskPool(this.handleLoadTaskPoolAppend, this.handleLoadTaskPoolCompleted);\r\n\r\n\t\tthis.ParameterClientTypeC = { ParameterCode: \"ClientType\", ParameterValue2: \"C\" };\r\n\t\tthis.ParameterClientTypeSA = { ParameterCode: \"ClientType\", ParameterValue: \"SAP\", ParameterValue2: \"SA\" };\r\n\t\tthis.ParameterClientSearchCS = {\r\n\t\t\tUniqueClientId: 0,\r\n\t\t\tClientTypes: [ClientType.Personal, ClientType.Corporate]\r\n\t\t};\r\n\t\tthis.ParameterClientSearchSA = {\r\n\t\t\tUniqueClientId: 0,\r\n\t\t\tClientTypes: [ClientType.SalesAgentPersonal, ClientType.SalesAgentCorporate]\r\n\t\t};\r\n\t\tthis.ParameterSortName = { Member: \"Name\" };\r\n\t\tthis.ParameterSortUniqueClientId = { Member: \"UniqueClientId\" };\r\n\t\tthis.ParameterUniqueClientId = { UniqueClientId: 0 };\r\n\r\n\t\tthis.ClientMemoTypeId = 0;\r\n\t\tthis.RiskRatingMemoTypeId = 0;\r\n\t\tthis.emptyObject = {};\r\n\t}\r\n\tRenderClientNameSelect = (d) => {\r\n\t\treturn d.Name + (d.IsProfileCompleted ? '' : ' *') + \" (\" + d.ClientType.ParameterDesc + \")\"+\"*\"+\"(\"+ d.OrganizationUniqueId+\")\" ;\r\n\t}\r\n\tRenderUniqueClientSelect = (d) => {\r\n\t\treturn d.UniqueClientId + (d.IsProfileCompleted ? '' : ' *') + \" (\" + d.ClientType.ParameterDesc + \")\"+\"*\"+\"(\"+ d.OrganizationUniqueId+\")\" ;;\r\n\t}\r\n\thandleLoadTaskPoolCompleted = () => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\thandleLoadTaskPoolAppend = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t}\r\n\treset() {\r\n\t\tthis.setState(initialState);\r\n\t}\r\n\tRenderOrganizationUniqueIdSelect = (d) => {\r\n\t\tif(window.OrganizationUniqueId != 5000)\r\n\t\t{\r\n\t\t\tconst model = { ...this.state.paramGlobalModel };\r\n\t\t\tmodel[\"OrganizationUniqueId\"] = d.OrganizationUniqueId;\r\n\t\t\tthis.setState({ paramGlobalModel: model });\r\n\t\t}\r\n\t\t\t \r\n\t\treturn (d.OrganizationUniqueId +\"-\"+d.OrganizationName) ;\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\tif (this.props.setAppCenterTitle) {\r\n\t\t\tif (this.props.MenuCode == MenuCodes.Backoffice_ClientSetup) {\r\n\t\t\t\tthis.props.setAppCenterTitle(\"Client\");\r\n\t\t\t} else if (this.props.MenuCode == MenuCodes.Backoffice_SalesAgentSetup) {\r\n\t\t\t\tthis.props.setAppCenterTitle(\"Sales Agent\");\r\n\t\t\t\tif (this.props.setAppLeftTitle)\r\n\t\t\t\t\tthis.props.setAppLeftTitle(\"Sales Agent Setup\");\r\n\t\t\t} else if (this.props.MenuCode == MenuCodes.Backoffice_SalesPersonClientMonitoring) {\r\n\t\t\t\tthis.props.setAppCenterTitle(\"SALES PERSON\");\r\n\t\t\t\tif (this.props.setAppLeftTitle)\r\n\t\t\t\t\tthis.props.setAppLeftTitle(\"Sales Person Client Monitor\");\r\n\t\t\t} else if (this.props.MenuCode == MenuCodes.CallCenterClientMonitor) {\r\n\t\t\t\tthis.props.setAppCenterTitle(\"CALL CENTER\");\r\n\t\t\t\tif (this.props.setAppLeftTitle)\r\n\t\t\t\t\tthis.props.setAppLeftTitle(\"Client Monitor\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tconst code = this.props.MenuCode;\r\n\t\tconst model = { ...this.state.paramGlobalModel };\r\n\t\tmodel.MenuCode = code;\r\n\t\tif (this.props.MenuCode == MenuCodes.Backoffice_ClientSetup || this.props.MenuCode == MenuCodes.Backoffice_SalesAgentSetup) {\r\n\r\n\t\t} else {\r\n\t\t\tmodel.IsExceptClientSetup = true;\r\n\t\t}\r\n\r\n\r\n\t\tthis.setState({ paramGlobalModel: model, isSalesPerson: ClientHelper.IsSalesPerson() });\r\n\t\tthis.FetchClientLimitedAuthority(MenuCodes.CSLimitedClientSearch, ActionCodes.Submit, (res) => this.setState({ CustomDisabled: res }));\r\n\t\tthis.GetMemoTypeIds();\r\n\t}\r\n\tClearAllCustomerData = () => {\r\n\t\tthis.setState(initialState);\r\n\t\tthis.hideAlert();\r\n\t\tconst model = { ...this.state.paramGlobalModel };\r\n\t\t//model.CheckNewClient = true;\r\n\t\tmodel.UniqueClientId = \"\";\r\n\t\tmodel.CustomerName = \"\";\r\n\t\tmodel.Id = 0;\r\n\t\tmodel.ClientType = \"\";\r\n\t\tmodel.OrganizationUniqueId=0;\r\n\t\tthis.setState({ paramGlobalModel: model });\r\n\t}\r\n\tFetchClientLimitedAuthority = (MenuCode, ActionCode, ResultFunc) => {\r\n\t\tif (this.props.MenuCode == MenuCodes.Backoffice_ClientSetup || this.props.MenuCode == MenuCodes.Backoffice_SalesAgentSetup) {\r\n\t\t\treturn;\r\n\t\t} else {\r\n\t\t\tResultFunc(true);\r\n\t\t}\r\n\r\n\t\tconst user = ClientHelper.GetUser();\r\n\r\n\t\tthis.loadTaskPool.AppendTask(\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/coreapi/v1.0/MenuActionRight/GetByMenuIdAndActionId\",\r\n\t\t\t\t{\r\n\t\t\t\t\t\"MenuCode\": MenuCode,\r\n\t\t\t\t\t\"ActionCode\": ActionCode\r\n\t\t\t\t},\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tResultFunc(false);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tvar rightList = responseData.Item;\r\n\t\t\t\t\tif (rightList != null) {\r\n\t\t\t\t\t\tvar y = rightList.RoleIds.indexOf(user.RoleId);\r\n\t\t\t\t\t\tResultFunc(y == -1);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tResultFunc(false);\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\t\t\t\t\tResultFunc(false);\r\n\t\t\t\t}\r\n\t\t\t));\r\n\t}\r\n\r\n\tGetMemoTypeIds = () => {\r\n\t\tthis.loadTaskPool.AppendTask(\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/coreapi/v1.0/Parameter/Search\",\r\n\t\t\t\t{\r\n\t\t\t\t\tParameterCode: \"MemoType\"\r\n\t\t\t\t},\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tif (responseData.IsSucceeded && responseData.Item != null) {\r\n\t\t\t\t\t\tvar clientMemo = responseData.Item.filter(x => x.ParameterValue == \"Client\")[0];\r\n\t\t\t\t\t\tvar riskRatingMemo = responseData.Item.filter(x => x.ParameterValue == \"RiskRating\")[0];\r\n\t\t\t\t\t\tthis.ClientMemoTypeId = clientMemo ? clientMemo.Id : 0;\r\n\t\t\t\t\t\tthis.RiskRatingMemoTypeId = riskRatingMemo ? riskRatingMemo.Id : 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t})\r\n\t\t);\r\n\t}\r\n\r\n\t// HandleChange\r\n\thandleChangeGlobal = (name, newValue, data) => {\r\n\t\tif (name == \"CheckNewClient\" && newValue == true) {\r\n\t\t\tthis.showClearMeesage(\"This will erase the information you entered on the screen. Are you sure you want to quit this transaction ?\");\r\n\t\t\tconst model = { ...this.state.paramGlobalModel };\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\tthis.setState({ paramGlobalModel: model });\r\n\t\t} else {\r\n\t\t\tconst model = { ...this.state.paramGlobalModel };\r\n\t\t\tmodel[name] = newValue;\r\n\r\n\t\t\tif (name == \"ClientType\") {\r\n\t\t\t\tmodel[\"ClientTypeId\"] = data && data.Id;\r\n\t\t\t}\r\n\r\n\t\t\tthis.setState({ paramGlobalModel: model });\r\n\t\t}\r\n\t\tif (name == \"Id\" && data != null) {\r\n\t\t\tconst model = { ...this.state.paramGlobalModel };\r\n\t\t\tmodel.UniqueClientId = data.UniqueClientId;\r\n\t\t\tmodel.CustomerName = data.Name;\r\n\t\t\tmodel.Id = data.Id;\r\n\t\t\tmodel.ClientType = data.ClientType.ParameterValue;\r\n\t\t\tmodel.ClientTypeId = data.ClientType.Id;\r\n\t\t\tmodel.OrganizationUniqueId = data.OrganizationUniqueId;\r\n\t\t\tthis.setState({ paramGlobalModel: model }, () => {\r\n\t\t\t\tthis.GetAllCustomerModels();\r\n\t\t\t});\r\n\t\t} else if (name == \"Id\" && data == null) {\r\n\t\t\tthis.ClearAllCustomerData();\r\n\t\t}\r\n\t}\r\n\thandleChangePersonal = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.paramCustomerProfile };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ paramCustomerProfile: model });\r\n\t}\r\n\thandleChangeCorporate = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.paramBankCustomerCorporate };\r\n\t\tif (name == \"LicenseRegistrationEntityId\" && data != null) {\r\n\t\t\tif (data.ParameterValue == LicenseRegistrationEntity.Other) {\r\n\t\t\t\tmodel.LicenseRegistrationEntityOther = \"\";\r\n\t\t\t} else {\r\n\t\t\t\tmodel.LicenseRegistrationEntityOther = null;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (name == \"LicenseRegistrationEntityId2\" && data != null) {\r\n\t\t\tif (data.ParameterValue == LicenseRegistrationEntity.Other) {\r\n\t\t\t\tmodel.LicenseRegistrationEntityOther2 = \"\";\r\n\t\t\t} else {\r\n\t\t\t\tmodel.LicenseRegistrationEntityOther2 = null;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (name == \"LicenseRegistrationEntityId3\" && data != null) {\r\n\t\t\tif (data.ParameterValue == LicenseRegistrationEntity.Other) {\r\n\t\t\t\tmodel.LicenseRegistrationEntityOther3 = \"\";\r\n\t\t\t} else {\r\n\t\t\t\tmodel.LicenseRegistrationEntityOther3 = null;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif(name == \"CountryOfRegistration\"){\r\n\t\t\tmodel[\"ProvinceOfRegistration\"] = null;\r\n\t\t}\r\n\r\n\t\tif(name == \"CountryOfIncorporation\"){\r\n\t\t\tmodel[\"ProvinceOfIncorporation\"] = null;\r\n\t\t}\r\n\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ paramBankCustomerCorporate: model });\r\n\t}\r\n\thandleChangeIdentification1 = (name, value, data) => {\r\n\t\tconst model = { ...this.state.paramIdentificationMethot1 };\r\n\t\tif (model.Id == null) {\r\n\t\t\tmodel.Id = 0;\r\n\t\t\tmodel.UniqueClientId = this.state.paramGlobalModel.Id;\r\n\t\t}\r\n\t\tif (name == \"IdentificationMethodId\" && data != null) {\r\n\t\t\tif (data.ParameterValue == IdentificationMethod.InPersonIDVerification) {\r\n\t\t\t\tmodel.IsIdVerification = true;\r\n\t\t\t} else {\r\n\t\t\t\tmodel.IsIdVerification = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (name == \"IdentityTypeId\") {\r\n\t\t\tmodel.IdentityTypeIdStr = data && data.ParameterValue;\r\n\t\t\tmodel.IdentityNumber = null;\r\n\t\t\tmodel.IdentityTypeParameterValue2 = data && data.ParameterValue2;\r\n\t\t\tmodel.ProofOfResidenceId = null;\r\n\t\t}\r\n\t\tmodel[name] = value;\r\n\t\tthis.setState({ paramIdentificationMethot1: model });\r\n\r\n\t\tconst identification = { ...this.state.paramCustomerProfile.CustomerIdentification1 };\r\n\t\tidentification[name] = value;\r\n\t\tthis.handleChangePersonal(\"CustomerIdentification1\", identification);\r\n\t}\r\n\thandleChangeIdentification2 = (name, value, data) => {\r\n\t\tconst model = { ...this.state.paramIdentificationMethot2 };\r\n\t\tif (model.Id == null) {\r\n\t\t\tmodel.Id = 0;\r\n\t\t\tmodel.UniqueClientId = this.state.paramGlobalModel.Id;\r\n\t\t}\r\n\t\tif (name == \"IdentificationMethodId\" && data != null) {\r\n\t\t\tif (data.ParameterValue == IdentificationMethod.InPersonIDVerification) {\r\n\t\t\t\tmodel.IsIdVerification = true;\r\n\t\t\t} else {\r\n\t\t\t\tmodel.IsIdVerification = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (name == \"IdentityTypeId\") {\r\n\t\t\tmodel.IdentityTypeIdStr = data && data.ParameterValue;\r\n\t\t\tmodel.IdentityNumber = null;\r\n\t\t\tmodel.IdentityTypeParameterValue2 = data && data.ParameterValue2;\r\n\t\t\tmodel.ProofOfResidenceId = null;\r\n\t\t}\r\n\t\tmodel[name] = value;\r\n\t\tthis.setState({ paramIdentificationMethot2: model });\r\n\r\n\t\tconst identification = { ...this.state.paramCustomerProfile.CustomerIdentification2 };\r\n\t\tidentification[name] = value;\r\n\t\tthis.handleChangePersonal(\"CustomerIdentification2\", identification);\r\n\r\n\t}\r\n\thandleChangePhone1 = (name, value) => {\r\n\t\tconst phone = { ...this.state.paramCustomerPrimaryPhone };\r\n\t\tphone[name] = value;\r\n\t\tthis.setState({ paramCustomerPrimaryPhone: phone });\r\n\r\n\t\tconst phoneModel = { ...this.state.paramCustomerProfile.PrimaryPhone };\r\n\t\tphoneModel[name] = value;\r\n\t\tthis.handleChangePersonal(\"PrimaryPhone\", phoneModel);\r\n\t}\r\n\thandleChangePhone2 = (name, value) => {\r\n\t\tconst phone = { ...this.state.paramCustomerAlternativePhone };\r\n\t\tphone[name] = value;\r\n\t\tthis.setState({ paramCustomerAlternativePhone: phone });\r\n\r\n\t\tconst phoneModel = { ...this.state.paramCustomerProfile.AlternativePhone };\r\n\t\tphoneModel[name] = value;\r\n\t\tthis.handleChangePersonal(\"AlternativePhone\", phoneModel);\r\n\t}\r\n\thandleChangePhone3 = (name, value) => {\r\n\t\tconst phone = { ...this.state.paramCustomerMobilePhone };\r\n\t\tphone[name] = value;\r\n\t\tthis.setState({ paramCustomerMobilePhone: phone });\r\n\r\n\t\tconst phoneModel = { ...this.state.paramCustomerProfile.MobilePhone };\r\n\t\tphoneModel[name] = value;\r\n\t\tthis.handleChangePersonal(\"MobilePhone\", phoneModel);\r\n\t}\r\n\thandleChangeCorporatePhoneFax = (name, value) => {\r\n\t\tconst phone = { ...this.state.paramCorporateFaxPhone };\r\n\t\tphone[name] = value;\r\n\t\tthis.setState({ paramCorporateFaxPhone: phone });\r\n\r\n\t\tconst phoneModel = { ...this.state.paramBankCustomerCorporate.FaxPhone };\r\n\t\tphoneModel[name] = value;\r\n\t\tthis.handleChangeCorporate(\"FaxPhone\", phoneModel);\r\n\t}\r\n\thandleChangeCorporatePhoneBuss = (name, value) => {\r\n\t\tconst phone = { ...this.state.paramCorporateBussinesPhone };\r\n\t\tphone[name] = value;\r\n\t\tthis.setState({ paramCorporateBussinesPhone: phone });\r\n\r\n\t\tconst phoneModel = { ...this.state.paramBankCustomerCorporate.BusinessPhone };\r\n\t\tphoneModel[name] = value;\r\n\t\tthis.handleChangeCorporate(\"BusinessPhone\", phoneModel);\r\n\t}\r\n\t// HandleChange\r\n\r\n\tsetCustomerState = (data) => {\r\n\t\tthis.setState({ IsClientComponent: !this.state.IsClientComponent });\r\n\t\tif (data != null) {\r\n\t\t\tvar temp1 = data.CustomerIdentification1;\r\n\t\t\tif (temp1 != null) {\r\n\t\t\t\ttemp1.IdentityExpireDate = temp1.IdentityExpireDate ? DateHelper.ToMoment(temp1.IdentityExpireDate) : null;\r\n\t\t\t\tif (temp1.IdentityType != null && temp1.IdentityType.ParameterValue != null) {\r\n\t\t\t\t\ttemp1.IdentityTypeIdStr = temp1.IdentityType.ParameterValue;\r\n\t\t\t\t\ttemp1.IdentityTypeParameterValue2 = temp1.IdentityType.ParameterValue2;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tvar temp2 = data.CustomerIdentification2;\r\n\t\t\tif (temp2 != null) {\r\n\t\t\t\ttemp2.IdentityExpireDate = temp2.IdentityExpireDate ? DateHelper.ToMoment(temp2.IdentityExpireDate) : null;\r\n\t\t\t\tif (temp2.IdentityType != null && temp2.IdentityType.ParameterValue != null) {\r\n\t\t\t\t\ttemp2.IdentityTypeIdStr = temp2.IdentityType.ParameterValue;\r\n\t\t\t\t\ttemp2.IdentityTypeParameterValue2 = temp2.IdentityType.ParameterValue2;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tdata.BirthDate = data.BirthDate ? DateHelper.ToMoment(data.BirthDate) : null;\r\n\r\n\t\t\tthis.setState({\r\n\t\t\t\tparamCustomerProfile: data || {},\r\n\t\t\t\tparamCustomerMobilePhone: data.MobilePhone || {},\r\n\t\t\t\tparamCustomerPrimaryPhone: data.PrimaryPhone || {},\r\n\t\t\t\tparamCustomerAlternativePhone: data.AlternativePhone || {},\r\n\t\t\t\tparamIdentificationMethot1: temp1 || {},\r\n\t\t\t\tparamIdentificationMethot2: temp2 || {}\r\n\t\t\t});\r\n\r\n\t\t\tconst model = { ...this.state.paramGlobalModel };\r\n\t\t\tmodel.UniqueClientId = data.UniqueClient.UniqueClientId;\r\n\t\t\tmodel.Id = data.UniqueClientId;\r\n\t\t\tmodel.ClientType = data.ClientType;\r\n\t\t\tmodel.CustomerName = data.Name;\r\n\t\t\tthis.setState({ paramGlobalModel: model });\r\n\t\t} else {\r\n\t\t\tthis.setState({\r\n\t\t\t\tparamCustomerProfile: {},\r\n\t\t\t\tparamCustomerMobilePhone: {},\r\n\t\t\t\tparamCustomerPrimaryPhone: {},\r\n\t\t\t\tparamCustomerAlternativePhone: {},\r\n\t\t\t\tparamIdentificationMethot1: {},\r\n\t\t\t\tparamIdentificationMethot2: {}\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t}\r\n\tsetCorporateState = (data) => {\r\n\t\tthis.setState({ IsClientComponent: !this.state.IsClientComponent });\r\n\r\n\t\tif (data != null) {\r\n\t\t\tthis.setState({\r\n\t\t\t\tparamBankCustomerCorporate: data || {},\r\n\t\t\t\tparamCorporateBussinesPhone: data.BusinessPhone || {},\r\n\t\t\t\tparamCorporateFaxPhone: data.FaxPhone || {}\r\n\t\t\t});\r\n\r\n\t\t\tconst model = { ...this.state.paramGlobalModel };\r\n\t\t\tmodel.UniqueClientId = data.UniqueClient.UniqueClientId;\r\n\t\t\tmodel.Id = data.UniqueClientId;\r\n\t\t\tmodel.ClientType = data.ClientType;\r\n\t\t\tmodel.CustomerName = data.LegalName;\r\n\t\t\tthis.setState({ paramGlobalModel: model });\r\n\r\n\t\t} else {\r\n\t\t\tthis.setState({\r\n\t\t\t\tparamBankCustomerCorporate: {},\r\n\t\t\t\tparamCorporateBussinesPhone: {},\r\n\t\t\t\tparamCorporateFaxPhone: {}\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\tsetIdentificationState = (data) => {\r\n\t\tif (data != null) {\r\n\t\t\tthis.setState({ paramIdentificationMethot1: data[0], paramIdentificationMethot2: data[1] });\r\n\t\t}\r\n\t}\r\n\tValidateClientSubmit = () => {\r\n\t\tvar ErrorList = [];\r\n\t\tconst vModel = this.state.vModel;\r\n\t\tconst global = { ...this.state.paramGlobalModel };\r\n\t\tif (global == null || global.Id == null || global.Id == 0) {\r\n\t\t\tvModel.Id = true;\r\n\t\t\tErrorList.push(\"Unique Client ID must be defined !\");\r\n\t\t} else { vModel.Id = false; }\r\n\t\tif (global == null || global.UniqueClientId == null || global.UniqueClientId == 0) {\r\n\t\t\tvModel.UniqueClientId = true;\r\n\t\t\tErrorList.push(\"Unique Client number must be defined !\");\r\n\t\t} else { vModel.UniqueClientId = false; }\r\n\t\tif (global != null && global.UniqueClientId != null && global.UniqueClientId.toString().length != 6) {\r\n\t\t\tErrorList.push(\"UniqueClientID must be valid ! (Length is 6)\");\r\n\t\t}\r\n\t\tif (global.ClientType == null || global.ClientType == \"\") {\r\n\t\t\tErrorList.push(\"Client type must be defined !\");\r\n\t\t}\r\n\t\tif (this.state.paramBankCustomerContractList != null && this.state.paramBankCustomerContractList.length < 1) {\r\n\t\t\tErrorList.push(\"You Must Add Contract To Complete Profile !\");\r\n\t\t}\r\n\t\tif (this.state.paramBankCustomerAddressList != null && this.state.paramBankCustomerAddressList.length < 1) {\r\n\t\t\tErrorList.push(\"You Must Add Address To Complete Profile !\");\r\n\t\t}\r\n\t\tif (this.state.paramBankCustomerInternalAccountList != null && this.state.paramBankCustomerInternalAccountList.length < 1) {\r\n\t\t\tErrorList.push(`You Must Add ${window.Title} Account To Complete Profile !`);\r\n\t\t}\r\n\t\tif (global.OrganizationUniqueId == null || global.OrganizationUniqueId == \"\") {\r\n\t\t\tErrorList.push(\"Organization must be defined !\");\r\n\t\t}\r\n\t\tif (global != null && (global.ClientType == ClientType.Corporate || global.ClientType == ClientType.SalesAgentCorporate)) {\r\n\t\t\tif (this.state.paramBankCustomerKeyContactList != null && this.state.paramBankCustomerKeyContactList.length < 1) {\r\n\t\t\t\tErrorList.push(\"You Must Add Key Contact To Complete Profile !\");\r\n\t\t\t}\r\n\t\t\tif (this.state.paramBankCustomerCorporateAuthOwnerList != null && this.state.paramBankCustomerCorporateAuthOwnerList.length < 1) {\r\n\t\t\t\tErrorList.push(\"You Must Add Beneficiary OwnerTo Complete Profile !\");\r\n\t\t\t}\r\n\t\t\tif (this.state.paramBankCustomerCorporateAuthPersonList != null && this.state.paramBankCustomerCorporateAuthPersonList.length < 1) {\r\n\t\t\t\tErrorList.push(\"You Must Add Authorized Signing Officer To Complete Profile !\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.state.paramBankCustomerContractList.forEach(element => {\r\n\t\t\tconst account = this.state.paramBankCustomerInternalAccountList.filter(x =>\r\n\t\t\t\tx.ProgramId == element.ProgramId &&\r\n\t\t\t\tx.BankingAccountType != null &&\r\n\t\t\t\tx.BankingAccountType.ParameterValue == BankingAccountTypes.PrimaryAccount &&\r\n\t\t\t\tx.Currency != null && x.Currency.Code == CurrencyType.CAD);\r\n\t\t\tif (account.length == 0) {\r\n\t\t\t\tErrorList.push(\"Funding CAD account must be defined for \" + element.Program.Description);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tvar mainAdress = this.state.paramBankCustomerAddressList.filter(x => x.AddressType != null && x.AddressType.ParameterValue == AddressType.MainAddress);\r\n\t\tif (mainAdress.length == 0) {\r\n\t\t\tErrorList.push(\"Main address must be defined !\");\r\n\t\t}\r\n\r\n\r\n\t\tif (global == null || global.Id == null || !global.Id > 0) {\r\n\t\t\tErrorList.push(\"Client Id must be defined!\");\r\n\t\t}\r\n\t\tif (global.ClientType == null || global.ClientType == \"\") {\r\n\t\t\tErrorList.push(\"Client type must be defined !\");\r\n\t\t}\r\n\t\tif (global.OrganizationUniqueId == null || global.OrganizationUniqueId == \"\") {\r\n\t\t\tErrorList.push(\"OrganizationUniqueId must be defined !\");\r\n\t\t}\r\n\t\tif (global.ClientType == ClientType.Corporate || global.ClientType == ClientType.SalesAgentCorporate) {\r\n\t\t\tvar corp = { ...this.state.paramBankCustomerCorporate };\r\n\t\t\tif (corp.LegalName == null || corp.LegalName == \"\") {\r\n\t\t\t\tErrorList.push(\"Client Legal Name definition not found !\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (global.ClientType == ClientType.Personal || global.ClientType == ClientType.SalesAgentPersonal) {\r\n\t\t\tvar indv = { ...this.state.paramCustomerProfile };\r\n\t\t\tif (indv.Name == null || indv.Name == \"\") {\r\n\t\t\t\tErrorList.push(\"Client name must be defined !\");\r\n\t\t\t}\r\n\t\t\tif (indv.SurName == null || indv.SurName == \"\") {\r\n\t\t\t\tErrorList.push(\"Client lastname must be defined !\");\r\n\t\t\t}\r\n\t\t\tif ((indv.BirthDate == null || indv.BirthDate == \"\") &&\r\n\t\t\t\t!(global.MenuCode == MenuCodes.Backoffice_SalesAgentSetup || (global.MenuCode == MenuCodes.Backoffice_SalesPersonClientMonitoring && global.ClientType == ClientType.SalesAgentPersonal))) {\r\n\t\t\t\tErrorList.push(\"Client birth date must be defined !\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (this.state.paramBankCustomerAddressList == null || this.state.paramBankCustomerAddressList.length == 0) {\r\n\t\t\tErrorList.push(\"Client address must be defined !\");\r\n\t\t}\r\n\r\n\t\tvar main = this.state.paramBankCustomerAddressList.find(x => x.AddressType != null && x.AddressType.ParameterValue == AddressType.MainAddress);\r\n\t\tif (main == null) {\r\n\t\t\tErrorList.push(\"Client main address must be defined !\");\r\n\t\t}\r\n\t\tif (main == null || main.Address1 == null || main.Location == null || main.ZipCode == null || main.CountryId == null || main.ProvinceId == null || main.CityId == null) {\r\n\t\t\tErrorList.push(\"Client main address fields must be defined !\");\r\n\t\t}\r\n\t\tif (main == null || main.Address1 == \"\" || main.Location == \"\" || main.ZipCode == \"\" || main.CountryId == \"\" || main.ProvinceId == \"\" || main.CityId == \"\") {\r\n\t\t\tErrorList.push(\"Client main address fields must be defined !\");\r\n\t\t}\r\n\r\n\t\tif (global.ClientType == ClientType.Personal || global.ClientType == ClientType.SalesAgentPersonal) {\r\n\t\t\tvar identification = { ...this.state.paramIdentificationMethot1 };\r\n\t\t\tif (identification == null || identification.IdentityTypeId == 0 || identification.IdentityTypeId == \"\") {\r\n\t\t\t\tErrorList.push(\"Client identity type fields must be defined !\");\r\n\t\t\t};\r\n\t\t}\r\n\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Required fields!\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\r\n\t}\r\n\tGenerateCompleteProfileRequest = () => {\r\n\t\tvar global = { ...this.state.paramGlobalModel };\r\n\t\tvar request = {};\r\n\t\tif (global == null || global.Id == null || !global.Id > 0) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tif (global.ClientType == null || global.ClientType == \"\") {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\trequest.Id = global.Id;\r\n\t\trequest.UniqueClientId = global.UniqueClientId;\r\n\t\trequest.ClientType = global.ClientType;\r\n\t\trequest.OrganizationUniqueId = global.OrganizationUniqueId;\r\n\r\n\t\tif (global.ClientType == ClientType.Corporate) {\r\n\t\t\tvar corp = { ...this.state.paramBankCustomerCorporate };\r\n\t\t\tif (corp.LegalName == null || corp.LegalName == \"\") {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\trequest.LegalName = corp.LegalName;\r\n\t\t}\r\n\r\n\t\tif (global.ClientType == ClientType.Personal || global.ClientType == ClientType.SalesAgentPersonal) {\r\n\t\t\tvar indv = { ...this.state.paramCustomerProfile };\r\n\t\t\tif (indv.Name == null || indv.Name == \"\") {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif (indv.SurName == null || indv.SurName == \"\") {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif ((indv.BirthDate == null || indv.BirthDate == \"\") && global.ClientType != ClientType.SalesAgentPersonal) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\trequest.FirstName = indv.Name;\r\n\t\t\trequest.LastName = indv.SurName;\r\n\t\t\tif (global.ClientType != ClientType.SalesAgentPersonal)\r\n\t\t\t\trequest.BirthDate = indv.BirthDate;\r\n\t\t\trequest.FullName = `${indv.Name} ${indv.SurName}`\r\n\t\t}\r\n\r\n\t\tif (this.state.paramBankCustomerAddressList == null || this.state.paramBankCustomerAddressList.length == 0) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tvar main = this.state.paramBankCustomerAddressList.find(x => x.AddressType != null && x.AddressType.ParameterValue == AddressType.MainAddress);\r\n\t\tif (main == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tif (main.Address1 == null || main.Location == null || main.ZipCode == null || main.CountryId == null || main.ProvinceId == null || main.CityId == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tif (main.Address1 == \"\" || main.Location == \"\" || main.ZipCode == \"\" || main.CountryId == \"\" || main.ProvinceId == \"\" || main.CityId == \"\") {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\trequest.Address1 = main.Address1;\r\n\t\trequest.Address2 = main.Address2;\r\n\t\trequest.Location = main.Location;\r\n\t\trequest.ZipCode = main.ZipCode;\r\n\t\trequest.CityId = main.CityId;\r\n\t\trequest.ProvinceId = main.ProvinceId;\r\n\t\trequest.CountryId = main.CountryId;\r\n\r\n\r\n\t\trequest.IdentityTypeId = 0;\r\n\t\tif (global.ClientType == ClientType.Personal) {\r\n\t\t\tvar identification = { ...this.state.paramIdentificationMethot1 };\r\n\t\t\tif (identification == null || identification.IdentityTypeId == 0 || identification.IdentityTypeId == \"\") {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\trequest.IdentityTypeId = identification.IdentityTypeId;\r\n\t\t\trequest.ProofOfResidenceId = identification.ProofOfResidenceId;\r\n\t\t}\r\n\r\n\t\trequest.ClientTypeId = global.ClientTypeId;\r\n\r\n\t\treturn request;\r\n\t}\r\n\tCompleteClientProfile = (workflowId, after) => {\r\n\t\tvar global = { ...this.state.paramGlobalModel };\r\n\t\tif (global != null && global.Id != null && global.Id > 0) {\r\n\r\n\t\t\tvar request = this.GenerateCompleteProfileRequest();\r\n\t\t\tif (request == null) {\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Some Client information are missing for submit operation.\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tvar res = this.ValidateClientSubmit();\r\n\t\t\tif (res != true) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tthis.loadTaskPool.AppendTask(\r\n\t\t\t\tProxy.POST(\r\n\t\t\t\t\t\"/bankapi/v1.0/BankCustomer/CompleteProfile\",\r\n\t\t\t\t\trequest,\r\n\t\t\t\t\tresponseData => {\r\n\t\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (responseData.Item == true) {\r\n\t\t\t\t\t\t\tthis.ShowMessageConfirm(\"success\", \"Success\", \"Client Profile Marked As Completed !\", () => {\r\n\t\t\t\t\t\t\t\tthis.PerformProfileCompleted();\r\n\t\t\t\t\t\t\t\tif (after) after();\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\terror => {\r\n\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t\t},\r\n\t\t\t\t\tworkflowId\r\n\t\t\t\t));\r\n\t\t}\r\n\t}\r\n\r\n\tPerformProfileCompleted = () => {\r\n\t\tthis.hideAlert();\r\n\r\n\t\tthis.ClearAllCustomerData();\r\n\t}\r\n\tshowClearMeesage = (message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.ClearAllCustomerDataCancel()} OnConfirm={() => this.ClearAllCustomerData()} />\r\n\t\t});\r\n\r\n\t}\r\n\r\n\tClearAllCustomerDataCancel = () => {\r\n\t\tconst model = { ...this.state.paramGlobalModel };\r\n\t\tmodel.CheckNewClient = false;\r\n\t\tthis.setState({ paramGlobalModel: model });\r\n\t\tthis.hideAlert();\r\n\t}\r\n\t// ---------- Customer Models ---------------\r\n\tGetAllCustomerModels = () => {\r\n\t\tconst model = { ...this.state.paramGlobalModel };\r\n\r\n\t\tif (model.Id != null && model.Id != 0) {\r\n\t\t\tconst UniqueClientId = model.Id;\r\n\t\t\tif (model.ClientType == ClientType.Personal || model.ClientType == ClientType.SalesAgentPersonal) {\r\n\t\t\t\tthis.GetCustomerProfile(UniqueClientId);\r\n\t\t\t} else if (model.ClientType == ClientType.Corporate || model.ClientType == ClientType.SalesAgentCorporate) {\r\n\t\t\t\tthis.GetCorporateProfile(UniqueClientId);\r\n\t\t\t} else {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", \"Client Type Not Valid !\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tthis.GetCustomerAddressModels(UniqueClientId);\r\n\t\t\tthis.GetCustomerContractModels(UniqueClientId);\r\n\t\t\tthis.GetCustomerDirectorsModels(UniqueClientId);\r\n\t\t\tthis.GetCustomerKeyContactModels(UniqueClientId);\r\n\t\t\tthis.GetCustomerRegulatoryLicenses(UniqueClientId);\r\n\t\t\tthis.GetCustomerMemoModels(UniqueClientId);\r\n\t\t\tthis.GetCustomerSecurityModels(UniqueClientId);\r\n\t\t\tthis.GetCustomerExternalBankAccountModels(UniqueClientId);\r\n\t\t\tthis.GetCustomerDCBankAccountModels(UniqueClientId);\r\n\t\t\tthis.GetCustomerCorporateAuthOwnerModels(UniqueClientId);\r\n\t\t\tthis.GetCustomerCorporateAuthPersonModels(UniqueClientId);\r\n\t\t\tthis.GetCustomerKYCStatusModels(UniqueClientId);\r\n\t\t}\r\n\t}\r\n\t\r\n\tGetAllCustomerModelsPreLoad = (Id, ClientTypeStr) => {\r\n\t\tif (Id != 0 && Id != null) {\r\n\r\n\t\t\tif (ClientTypeStr == ClientType.Personal || ClientTypeStr == ClientType.SalesAgentPersonal) {\r\n\t\t\t\tthis.GetCustomerProfile(Id);\r\n\t\t\t} else if (ClientTypeStr == ClientType.Corporate || ClientTypeStr == ClientType.SalesAgentCorporate) {\r\n\t\t\t\tthis.GetCorporateProfile(Id);\r\n\t\t\t} else {\r\n\t\t\t\tconsole.log(\"GetAllCustomerModelsPreLoad ClientType not valid !\")\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tthis.GetCustomerAddressModels(Id);\r\n\t\t\tthis.GetCustomerContractModels(Id);\r\n\t\t\tthis.GetCustomerKeyContactModels(Id);\r\n\t\t\tthis.GetCustomerDirectorsModels(Id);\r\n\t\t\tthis.GetCustomerRegulatoryLicenses(Id);\r\n\t\t\tthis.GetCustomerMemoModels(Id);\r\n\t\t\tthis.GetCustomerSecurityModels(Id);\r\n\t\t\tthis.GetCustomerExternalBankAccountModels(Id);\r\n\t\t\tthis.GetCustomerDCBankAccountModels(Id);\r\n\t\t\tthis.GetCustomerCorporateAuthOwnerModels(Id);\r\n\t\t\tthis.GetCustomerCorporateAuthPersonModels(Id);\r\n\t\t\tthis.GetCustomerKYCStatusModels(Id);\r\n\t\t} else {\r\n\t\t\tconsole.log(\"GetAllCustomerModelsPreLoad Id null\")\r\n\t\t}\r\n\t}\r\n\r\n\tGetCustomerKYCStatusModels = (UniqueClientId) => {\r\n\t\tif (UniqueClientId == null || UniqueClientId == 0) {\r\n\t\t\tconst global = { ...this.state.paramGlobalModel };\r\n\t\t\tif (global.Id == null || global.Id == 0) {\r\n\t\t\t\tconsole.log(\"GetCustomerKYCStatusModels ->\", \"UniqueClientId NULL\");\r\n\t\t\t\treturn;\r\n\t\t\t} else {\r\n\t\t\t\tUniqueClientId = global.Id;\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.loadTaskPool.AppendTask(\r\n\t\t\tProxy.GET(\r\n\t\t\t\t\"/bankapi/v1.0/CustomerKYCStatus/GetByCustomerId/Id?Id=\" + UniqueClientId,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tconsole.log(\"GetCustomerKYCStatusModels ->\", responseData.IsSucceeded);\r\n\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\t\tthis.setState({ paramBankCustomerKYCStatus: responseData.Item || [] });\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.setState({ paramBankCustomerKYCStatus: [] });\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t));\r\n\t}\r\n\tGetCustomerProfile = (UniqueClientId) => {\r\n\t\tif (UniqueClientId == null || UniqueClientId == 0) {\r\n\t\t\tconst global = { ...this.state.paramGlobalModel };\r\n\t\t\tif (global.Id == null || global.Id == 0) {\r\n\t\t\t\tconsole.log(\"GetCustomerProfile ->\", \"UniqueClientId NULL\");\r\n\t\t\t\treturn;\r\n\t\t\t} else {\r\n\t\t\t\tUniqueClientId = global.Id;\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.loadTaskPool.AppendTask(\r\n\t\t\tProxy.GET(\r\n\t\t\t\t\"/bankapi/v1.0/BankCustomer/GetById/Id?Id=\" + UniqueClientId,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tconsole.log(\"GetCustomerProfile ->\", responseData.IsSucceeded);\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tthis.setCustomerState(responseData.Item);\r\n\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t));\r\n\r\n\t}\r\n\tGetCorporateProfile = (UniqueClientId) => {\r\n\t\tif (UniqueClientId == null || UniqueClientId == 0) {\r\n\t\t\tconst global = { ...this.state.paramGlobalModel };\r\n\t\t\tif (global.Id == null || global.Id == 0) {\r\n\t\t\t\tconsole.log(\"GetCorporateProfile ->\", \"UniqueClientId NULL\");\r\n\t\t\t\treturn;\r\n\t\t\t} else {\r\n\t\t\t\tUniqueClientId = global.Id;\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.loadTaskPool.AppendTask(\r\n\t\t\tProxy.GET(\r\n\t\t\t\t\"/bankapi/v1.0/CustomerCorporate/GetCorporateById/Id?Id=\" + UniqueClientId,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tconsole.log(\"GetCorporateProfile ->\", responseData.IsSucceeded);\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tthis.setCorporateState(responseData.Item);\r\n\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t));\r\n\t}\r\n\tGetCustomerAddressModels = (UniqueClientId) => {\r\n\t\tif (UniqueClientId == null || UniqueClientId == 0) {\r\n\t\t\tconst global = { ...this.state.paramGlobalModel };\r\n\t\t\tif (global.Id == null || global.Id == 0) {\r\n\t\t\t\tconsole.log(\"GetCustomerAddressModels ->\", \"UniqueClientId NULL\");\r\n\t\t\t\treturn;\r\n\t\t\t} else {\r\n\t\t\t\tUniqueClientId = global.Id;\r\n\t\t\t}\r\n\t\t} this.loadTaskPool.AppendTask(\r\n\t\t\tProxy.GET(\r\n\t\t\t\t\"/bankapi/v1.0/CustomerAddress/GetByCustomerId/Id?Id=\" + UniqueClientId,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tconsole.log(\"GetCustomerAddressModels ->\", responseData.IsSucceeded);\r\n\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\t\tthis.setState({ paramBankCustomerAddressList: responseData.Item || [] });\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.setState({ paramBankCustomerAddressList: [] });\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t));\r\n\t}\r\n\tGetCustomerContractModels = (UniqueClientId) => {\r\n\t\tif (UniqueClientId == null || UniqueClientId == 0) {\r\n\t\t\tconst global = { ...this.state.paramGlobalModel };\r\n\t\t\tif (global.Id == null || global.Id == 0) {\r\n\t\t\t\tconsole.log(\"GetCustomerContractModels ->\", \"UniqueClientId NULL\");\r\n\t\t\t\treturn;\r\n\t\t\t} else {\r\n\t\t\t\tUniqueClientId = global.Id;\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.loadTaskPool.AppendTask(\r\n\t\t\tProxy.GET(\r\n\t\t\t\t\"/bankapi/v1.0/CustomerContract/GetByCustomerId/Id?Id=\" + UniqueClientId,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tconsole.log(\"GetCustomerContractModels ->\", responseData.IsSucceeded);\r\n\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\t\tthis.setState({ paramBankCustomerContractList: responseData.Item || [] });\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.setState({ paramBankCustomerContractList: [] });\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t));\r\n\t}\r\n\tGetCustomerKeyContactModels = (UniqueClientId) => {\r\n\t\tif (UniqueClientId == null || UniqueClientId == 0) {\r\n\t\t\tconst global = { ...this.state.paramGlobalModel };\r\n\t\t\tif (global.Id == null || global.Id == 0) {\r\n\t\t\t\tconsole.log(\"GetCustomerKeyContactModels ->\", \"UniqueClientId NULL\");\r\n\t\t\t\treturn;\r\n\t\t\t} else {\r\n\t\t\t\tUniqueClientId = global.Id;\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.loadTaskPool.AppendTask(\r\n\t\t\tProxy.GET(\r\n\t\t\t\t\"/bankapi/v1.0/CustomerKeyContact/GetByCustomerId/Id?Id=\" + UniqueClientId,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tconsole.log(\"GetCustomerKeyContactModels ->\", responseData.IsSucceeded);\r\n\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\t\tthis.setState({ paramBankCustomerKeyContactList: responseData.Item || [] });\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.setState({ paramBankCustomerKeyContactList: [] });\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t));\r\n\t}\r\n\r\n\tGetCustomerDirectorsModels = (UniqueClientId) => {\r\n\t\tif (UniqueClientId == null || UniqueClientId == 0) {\r\n\t\t\tconst global = { ...this.state.paramGlobalModel };\r\n\t\t\tif (global.Id == null || global.Id == 0) {\r\n\t\t\t\tconsole.log(\"GetCustomerDirectorsModels ->\", \"UniqueClientId NULL\");\r\n\t\t\t\treturn;\r\n\t\t\t} else {\r\n\t\t\t\tUniqueClientId = global.Id;\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.loadTaskPool.AppendTask(\r\n\t\t\tProxy.GET(\r\n\t\t\t\t\"/bankapi/v1.0/Director/GetByCustomerId/Id?Id=\" + UniqueClientId,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tconsole.log(\"GetCustomerDirectorsModels ->\", responseData.IsSucceeded);\r\n\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\t\tthis.setState({ paramBankCustomerDirectorsList: responseData.Item || [] });\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.setState({ paramBankCustomerDirectorsList: [] });\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t));\r\n\t}\r\n\r\n\tGetCustomerRegulatoryLicenses = (UniqueClientId) => {\r\n\t\tif (UniqueClientId == null || UniqueClientId == 0) {\r\n\t\t\tconst global = { ...this.state.paramGlobalModel };\r\n\t\t\tif (global.Id == null || global.Id == 0) {\r\n\t\t\t\tconsole.log(\"GetCustomerRegulatoryLicenseModels ->\", \"UniqueClientId NULL\");\r\n\t\t\t\treturn;\r\n\t\t\t} else {\r\n\t\t\t\tUniqueClientId = global.Id;\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.loadTaskPool.AppendTask(\r\n\t\t\tProxy.GET(\r\n\t\t\t\t\"/bankapi/v1.0/CustomerRegulatoryLicense/GetByCustomerId/Id?Id=\" + UniqueClientId,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tconsole.log(\"GetCustomerRegulatoryLicenseModels ->\", responseData.IsSucceeded);\r\n\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\t\tthis.setState({ paramBankCustomerRegulatoryLicenseList: responseData.Item || [] });\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.setState({ paramBankCustomerRegulatoryLicenseList: [] });\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t));\r\n\t}\r\n\tGetCustomerMemoModels = (UniqueClientId) => {\r\n\t\tif (UniqueClientId == null || UniqueClientId == 0) {\r\n\t\t\tconst global = { ...this.state.paramGlobalModel };\r\n\t\t\tif (global.Id == null || global.Id == 0) {\r\n\t\t\t\tconsole.log(\"GetCustomerMemoModels ->\", \"UniqueClientId NULL\");\r\n\t\t\t\treturn;\r\n\t\t\t} else {\r\n\t\t\t\tUniqueClientId = global.Id;\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.loadTaskPool.AppendTask(\r\n\t\t\tProxy.GET(\r\n\t\t\t\t\"/bankapi/v1.0/CustomerMemo/GetByCustomerId/Id?Id=\" + UniqueClientId,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tconsole.log(\"GetCustomerMemoModels ->\", responseData.IsSucceeded);\r\n\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\t\tthis.setState({ paramBankCustomerMemoList: responseData.Item || [] });\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.setState({ paramBankCustomerMemoList: [] });\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t));\r\n\t}\r\n\tGetCustomerSecurityModels = (UniqueClientId) => {\r\n\t\tif (UniqueClientId == null || UniqueClientId == 0) {\r\n\t\t\tconst global = { ...this.state.paramGlobalModel };\r\n\t\t\tif (global.Id == null || global.Id == 0) {\r\n\t\t\t\tconsole.log(\"GetCustomerSecurityModels ->\", \"UniqueClientId NULL\");\r\n\t\t\t\treturn;\r\n\t\t\t} else {\r\n\t\t\t\tUniqueClientId = global.Id;\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.loadTaskPool.AppendTask(\r\n\t\t\tProxy.GET(\r\n\t\t\t\t\"/bankapi/v1.0/CustomerSecurity/GetByCustomerId/Id?Id=\" + UniqueClientId,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tconsole.log(\"GetCustomerSecurityModels ->\", responseData.IsSucceeded);\r\n\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\t\tthis.setState({ paramBankCustomerSecurityList: responseData.Item || [] });\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.setState({ paramBankCustomerSecurityList: [] });\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t));\r\n\t}\r\n\tGetCustomerExternalBankAccountModels = (UniqueClientId) => {\r\n\t\tif (UniqueClientId == null || UniqueClientId == 0) {\r\n\t\t\tconst global = { ...this.state.paramGlobalModel };\r\n\t\t\tif (global.Id == null || global.Id == 0) {\r\n\t\t\t\tconsole.log(\"GetCustomerExternalBankAccountModels ->\", \"UniqueClientId NULL\");\r\n\t\t\t\treturn;\r\n\t\t\t} else {\r\n\t\t\t\tUniqueClientId = global.Id;\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.loadTaskPool.AppendTask(\r\n\t\t\tProxy.GET(\r\n\t\t\t\t\"/bankapi/v1.0/CustomerSettlementAccount/GetByCustomerId/Id?Id=\" + UniqueClientId,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tconsole.log(\"GetCustomerExternalBankAccountModels ->\", responseData.IsSucceeded);\r\n\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\t\tthis.setState({ paramBankCustomerExternalAccountList: responseData.Item || [] });\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.setState({ paramBankCustomerExternalAccountList: [] });\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t));\r\n\r\n\t}\r\n\tGetCustomerDCBankAccountModels = (UniqueClientId) => {\r\n\t\tif (UniqueClientId == null || UniqueClientId == 0) {\r\n\t\t\tconst global = { ...this.state.paramGlobalModel };\r\n\t\t\tif (global.Id == null || global.Id == 0) {\r\n\t\t\t\tconsole.log(\"GetCustomerDCBankAccountModels ->\", \"UniqueClientId NULL\");\r\n\t\t\t\treturn;\r\n\t\t\t} else {\r\n\t\t\t\tUniqueClientId = global.Id;\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.loadTaskPool.AppendTask(\r\n\t\t\tProxy.GET(\r\n\t\t\t\t\"/bankapi/v1.0/Account/GetByCustomerIdForClientSetup/Id?Id=\" + UniqueClientId,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tconsole.log(\"GetCustomerDCBankAccountModels ->\", responseData.IsSucceeded);\r\n\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\t\tthis.setState({ paramBankCustomerInternalAccountList: responseData.Item || [] });\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.setState({ paramBankCustomerInternalAccountList: [] });\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t));\r\n\t}\r\n\tGetCustomerCorporateAuthOwnerModels = (UniqueClientId) => {\r\n\t\tif (UniqueClientId == null || UniqueClientId == 0) {\r\n\t\t\tconst global = { ...this.state.paramGlobalModel };\r\n\t\t\tif (global.Id == null || global.Id == 0) {\r\n\t\t\t\tconsole.log(\"GetCustomerCorporateAuthOwnerModels ->\", \"UniqueClientId NULL\");\r\n\t\t\t\treturn;\r\n\t\t\t} else {\r\n\t\t\t\tUniqueClientId = global.Id;\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.loadTaskPool.AppendTask(\r\n\t\t\tProxy.GET(\r\n\t\t\t\t\"/bankapi/v1.0/CustomerCorporateAuthOwner/GetByCustomerId/Id?Id=\" + UniqueClientId,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tconsole.log(\"GetCustomerCorporateAuthOwnerModels ->\", responseData.IsSucceeded);\r\n\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\t\tthis.setState({ paramBankCustomerCorporateAuthOwnerList: responseData.Item || [] });\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.setState({ paramBankCustomerCorporateAuthOwnerList: [] });\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t));\r\n\t}\r\n\tGetCustomerCorporateAuthPersonModels = (UniqueClientId) => {\r\n\t\tif (UniqueClientId == null || UniqueClientId == 0) {\r\n\t\t\tconst global = { ...this.state.paramGlobalModel };\r\n\t\t\tif (global.Id == null || global.Id == 0) {\r\n\t\t\t\tconsole.log(\"GetCustomerCorporateAuthPersonModels ->\", \"UniqueClientId NULL\");\r\n\t\t\t\treturn;\r\n\t\t\t} else {\r\n\t\t\t\tUniqueClientId = global.Id;\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.loadTaskPool.AppendTask(\r\n\t\t\tProxy.GET(\r\n\t\t\t\t\"/bankapi/v1.0/CustomerCorporateAuthPerson/GetByCustomerId/Id?Id=\" + UniqueClientId,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tconsole.log(\"GetCustomerCorporateAuthPersonModels ->\", responseData.IsSucceeded);\r\n\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\t\tthis.setState({ paramBankCustomerCorporateAuthPersonList: responseData.Item || [] });\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.setState({ paramBankCustomerCorporateAuthPersonList: [] });\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t));\r\n\t}\r\n\thandleChangeParentTab = (event, active, tab) => {\r\n\t\tif (!tab || !this.state.paramGlobalModel.CheckNewClient) {\r\n\t\t\tthis.setState({ ParentTabIndex: active });\r\n\t\t}\r\n\t}\r\n\thandleChangeChildTab = (event, active, tab) => {\r\n\t\tif (!tab || !this.state.paramGlobalModel.CheckNewClient) {\r\n\t\t\tthis.setState({ ChildTabIndex: active });\r\n\t\t}\r\n\t}\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\t// type:-success->warning->info->error\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\r\n\t}\r\n\tShowMessageConfirm = (type, title, message, confirm) => {\r\n\t\t// type:-success->warning->info->error\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t});\r\n\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { paramGlobalModel, CustomDisabled, vModel, isSalesPerson } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t{this.state.alert}\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t this.showClearMeesage(\"This will erase the information you entered on the screen. Are you sure you want to quit this transaction ?\"), Disabled: paramGlobalModel.IsExceptClientSetup || Disabled\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Submit\",\r\n\t\t\t\t\t\t\tRowId: this.state.paramGlobalModel.Id,\r\n\t\t\t\t\t\t\tOnClick: this.CompleteClientProfile,\r\n\t\t\t\t\t\t\tDisabled: paramGlobalModel.IsExceptClientSetup || Disabled || paramGlobalModel.Id == null ? true : paramGlobalModel.Id == 0 ? true : false,\r\n\t\t\t\t\t\t\tModelFunction: () => this.GenerateCompleteProfileRequest(),\r\n\t\t\t\t\t\t\tFillDataFromModel: model => {\r\n\t\t\t\t\t\t\t\tthis.GetAllCustomerModelsPreLoad(model.Id, model.ClientType);\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\tValidationFunction: this.ValidateClientSubmit\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{/* Client Type */}\r\n\t\t\t\t\t\t\t\t{(paramGlobalModel != null && paramGlobalModel.MenuCode == MenuCodes.Backoffice_ClientSetup) && (\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t{(paramGlobalModel != null && paramGlobalModel.MenuCode == MenuCodes.Backoffice_ClientSetup ) && (\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t{(paramGlobalModel != null && paramGlobalModel.MenuCode == MenuCodes.Backoffice_SalesAgentSetup) && (\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t{/* Client Type */}\r\n\r\n\r\n\t\t\t\t\t\t\t\t{/* Client List */}\r\n\t\t\t\t\t\t\t\t{(paramGlobalModel != null && paramGlobalModel.MenuCode == MenuCodes.Backoffice_ClientSetup) && (\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t{(paramGlobalModel != null && paramGlobalModel.MenuCode == MenuCodes.Backoffice_ClientSetup) && (\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t{(paramGlobalModel != null && paramGlobalModel.MenuCode == MenuCodes.Backoffice_SalesAgentSetup) && (\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t{(paramGlobalModel != null && paramGlobalModel.MenuCode == MenuCodes.Backoffice_SalesAgentSetup) && (\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t{/* Client List */}\r\n\r\n\r\n\t\t\t\t\t\t\t\t{/* Other Monitoring Menu */}\r\n\t\t\t\t\t\t\t\t{(paramGlobalModel != null && paramGlobalModel.MenuCode != MenuCodes.Backoffice_SalesAgentSetup && paramGlobalModel.MenuCode != MenuCodes.Backoffice_ClientSetup) && (\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t{(paramGlobalModel != null && paramGlobalModel.MenuCode != MenuCodes.Backoffice_SalesAgentSetup && paramGlobalModel.MenuCode != MenuCodes.Backoffice_ClientSetup) && (\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t{/* Other Monitoring Menu */}\r\n\r\n\r\n\t\t\t\t\t\t\t\t{(paramGlobalModel != null && (paramGlobalModel.MenuCode == MenuCodes.Backoffice_SalesAgentSetup || paramGlobalModel.MenuCode == MenuCodes.Backoffice_ClientSetup)) && (\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t)}\r\n\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t this.handleChangeParentTab(e, a, true)}\r\n\t\t\t\t\t\t\t\t\ttabList={[\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\ttabButton: this.props.MenuCode == MenuCodes.Backoffice_SalesAgentSetup\r\n\t\t\t\t\t\t\t\t\t\t\t\t|| (paramGlobalModel.MenuCode == MenuCodes.Backoffice_SalesPersonClientMonitoring && paramGlobalModel.ClientType == ClientType.SalesAgentPersonal) ? \"Sales Agent Details\" : \"Client Details\",\r\n\t\t\t\t\t\t\t\t\t\t\ttabContent: (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\ttabButton: paramGlobalModel.MenuCode == MenuCodes.Backoffice_SalesAgentSetup || paramGlobalModel.MenuCode == MenuCodes.Backoffice_SalesPersonClientMonitoring && paramGlobalModel.ClientType == ClientType.SalesAgentPersonal\r\n\t\t\t\t\t\t\t\t\t\t\t\t? \"Rate Definition\" : \"Contract Details\",\r\n\t\t\t\t\t\t\t\t\t\t\ttabContent: (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\ttabButton: \"Settlement\",\r\n\t\t\t\t\t\t\t\t\t\t\ttabContent: (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\ttabButton: \"Security\",\r\n\t\t\t\t\t\t\t\t\t\t\ttabContent: (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\tHidden: paramGlobalModel.MenuCode == \"\" ? false : paramGlobalModel.MenuCode == MenuCodes.Backoffice_SalesAgentSetup ? true\r\n\t\t\t\t\t\t\t\t\t\t\t\t: paramGlobalModel.MenuCode == MenuCodes.Backoffice_SalesPersonClientMonitoring && paramGlobalModel.ClientType == ClientType.SalesAgentPersonal ? true : false\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\ttabButton: \"Risk Rating\",\r\n\t\t\t\t\t\t\t\t\t\t\ttabContent: (\r\n\t\t\t\t\t\t\t\t\t\t\t\t x.MemoTypeId == this.RiskRatingMemoTypeId)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tparamBankCustomerKeyContactList={this.state.paramBankCustomerKeyContactList}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tmemoTypeId={this.RiskRatingMemoTypeId}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tGetCustomerMemoModels={this.GetCustomerMemoModels}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\thideSidebar={this.props.hideSidebar}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetAppLeftTitle={this.props.setAppLeftTitle}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetAppCenterTitle={this.props.setAppCenterTitle}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\thandleChangeParentTab={this.handleChangeParentTab}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\thandleChangeChildTab={this.handleChangeChildTab}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tChildTabIndex={this.state.ChildTabIndex}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={this.props.Disabled}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tFetchClientLimitedAuthority={this.FetchClientLimitedAuthority}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\tHidden: paramGlobalModel.MenuCode == \"\" ? false :\r\n\t\t\t\t\t\t\t\t\t\t\t\tparamGlobalModel.MenuCode == MenuCodes.Backoffice_SalesAgentSetup\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t|| paramGlobalModel.MenuCode == MenuCodes.CallCenterClientMonitor\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t|| (paramGlobalModel.MenuCode == MenuCodes.Backoffice_SalesPersonClientMonitoring && paramGlobalModel.ClientType == ClientType.SalesAgentPersonal)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t? true : false\r\n\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\ttabButton: this.props.MenuCode == MenuCodes.Backoffice_SalesAgentSetup ||\r\n\t\t\t\t\t\t\t\t\t\t\t\t(paramGlobalModel.MenuCode == MenuCodes.Backoffice_SalesPersonClientMonitoring && paramGlobalModel.ClientType == ClientType.SalesAgentPersonal)\r\n\t\t\t\t\t\t\t\t\t\t\t\t? \"Sales Agent Summary\" : \"Client Summary\",\r\n\t\t\t\t\t\t\t\t\t\t\ttabContent: (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\ttabButton: \"Memo\",\r\n\t\t\t\t\t\t\t\t\t\t\ttabContent: (\r\n\t\t\t\t\t\t\t\t\t\t\t\t x.MemoTypeId == this.ClientMemoTypeId)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tmemoTypeId={this.ClientMemoTypeId}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tGetCustomerMemoModels={this.GetCustomerMemoModels}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\thideSidebar={this.props.hideSidebar}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetAppLeftTitle={this.props.setAppLeftTitle}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetAppCenterTitle={this.props.setAppCenterTitle}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tisSalesAgentPersonel={paramGlobalModel.MenuCode == MenuCodes.Backoffice_SalesAgentSetup || (paramGlobalModel.MenuCode == MenuCodes.Backoffice_SalesPersonClientMonitoring && paramGlobalModel.ClientType == ClientType.SalesAgentPersonal)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\thandleChangeParentTab={this.handleChangeParentTab}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\thandleChangeChildTab={this.handleChangeChildTab}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tChildTabIndex={this.state.ChildTabIndex}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={this.props.Disabled}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tFetchClientLimitedAuthority={this.FetchClientLimitedAuthority}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tMenuCode={this.props.MenuCode}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\ttabButton: \"KYC\",\r\n\t\t\t\t\t\t\t\t\t\t\ttabContent: (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nClientSetup.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\thideSidebar: PropTypes.func,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func\r\n};\r\n\r\nexport default withArtifex(ClientSetup, {});","import { Dialog, DialogContent } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport React from \"react\";\r\nimport { GenericAlert, GenericCheckInput, GenericLabel } from \"views/Components/Generic\";\r\nimport { ClientType } from \"views/Constants/Constant.js\";\r\nimport { MenuCodes, ActionCodes } from \"views/Constants/Constant.js\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nclass Program extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tallPrograms: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tcheckModels: this.props.paramBankCustomerProgramList,\r\n\t\t\tCustomDisabled: null\r\n\t\t};\r\n\t}\r\n\r\n\r\n\r\n\tcomponentDidMount = () => {\r\n\t\tif (this.props.setAppLeftTitle)\r\n\t\t\tthis.props.setAppLeftTitle(\"Programs\");\r\n\r\n\r\n\t\tthis.setState({ checkModels: this.props.paramBankCustomerProgramList });\r\n\t\tthis.LoadProgramsForUi();\r\n\r\n\t\tthis.props.FetchClientLimitedAuthority(MenuCodes.CSLimitedPrograms, ActionCodes.Submit, (res) => this.setState({ CustomDisabled: res }));\r\n\t}\r\n\tLoadProgramsForUi = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Bank/GetBankPrograms\",\r\n\t\t\tnull,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ allPrograms: responseData.Item || [] });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\thandleChange = (name, value) => {\r\n\t\tvar index = this.state.checkModels.map(x => { return x.BankProgramId; }).indexOf(name);\r\n\t\tif (index != -1) {\r\n\t\t\tvar temp = this.state.checkModels;\r\n\t\t\tvar obj = temp[index];\r\n\t\t\tobj.HasAuth = value;\r\n\t\t\ttemp.splice(index, 1);\r\n\t\t\ttemp.splice(index, 0, obj);\r\n\t\t\tthis.setState({ checkModels: temp });\r\n\t\t} else {\r\n\t\t\tvar obj = { BankProgramId: name, UniqueClientId: this.props.paramGlobalModel.Id, HasAuth: value, Id: 0 };\r\n\t\t\tthis.setState(prevState => ({\r\n\t\t\t\tcheckModels: [...prevState.checkModels, obj]\r\n\t\t\t}));\r\n\t\t}\r\n\t}\r\n\tUpdatePrograms = () => {\r\n\t\tconst global = { ...this.props.paramGlobalModel };\r\n\t\tif (this.state.checkModels.filter(x => x.HasAuth).length < 1) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", \"Select at least one program\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (global == null || global.Id == 0 || global.Id == null) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", \"You must select Client to add or update programs !\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar temp = this.state.checkModels;\r\n\t\ttemp.forEach(element => {\r\n\t\t\telement.UniqueClientId = global.Id;\r\n\t\t});\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/CustomerProgram/Update\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.setState({ checkModels: responseData.Item || [] });\r\n\t\t\t\t}\r\n\t\t\t\tthis.ShowMessageSuccess(\"success\", \"Success\", \"Client programs saved ! \");\r\n\t\t\t\tthis.props.GetCustomerProgramModels();\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\r\n\t}\r\n\tClearData = () => {\r\n\t\tthis.setState({ allPrograms: [] });\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\t// type:-success->warning->info->error\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tShowMessageSuccess = (type, title, message) => {\r\n\t\t// type:-success->warning->info->error\r\n\t\tthis.setState({\r\n\t\t\talert: {\r\n\t\t\t\tthis.hideAlert();\t\t\t\t\r\n\t\t\t}} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\trender() {\r\n\r\n\t\tconst { checkModels } = this.state;\r\n\t\tconst { Disabled: DisabledProp } = this.props;\r\n\t\tconst Disabled = DisabledProp || this.state.CustomDisabled;\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{this.props.paramGlobalModel != null && (this.props.paramGlobalModel.ClientType == ClientType.Corporate || this.props.paramGlobalModel.ClientType == ClientType.SalesAgentCorporate || this.props.paramGlobalModel.ClientType == null) && (\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t

PROGRAMS (CORPORATE CLIENTS)

\r\n\t\t\t\t\t\t\t\t\t\t{this.state.allPrograms.filter(x => x.IsService == false).map(parent => (\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t{/*

{parent.Description}

*/}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{parent.SubList.map(subParent => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

{subParent.Description}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{subParent.List != undefined && subParent.List.map(subList => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t x.BankProgramId == subList.Id) == null ? false : checkModels.find(x => x.BankProgramId == subList.Id).HasAuth} ValueChanged={this.handleChange} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t)}\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t

SERVICES (CORPORATE & PERSONAL CLIENTS)

\r\n\t\t\t\t\t\t\t\t\t{this.state.allPrograms.filter(x => x.IsService == true).map(parent => (\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t{/*

{parent.Description}

*/}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t{parent.SubList.map(subParent => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t

{subParent.Description}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{subParent.List != null && subParent.List.map(subList => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t x.BankProgramId == subList.Id) == null ? false : checkModels.find(x => x.BankProgramId == subList.Id).HasAuth} ValueChanged={this.handleChange} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t this.UpdatePrograms()} >\r\n\t\t\t\t\t\t\t\t\tSave\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\n\r\nexport default withArtifex(Program, {});","import withStyles from \"@material-ui/core/styles/withStyles\";\r\nimport sweetAlertStyle from \"assets/jss/material-dashboard-pro-react/views/sweetAlertStyle.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport AlertHelper from \"core/AlertHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport { OperationType } from \"views/Constants/Constant\";\r\nimport CommissionProfileAddOrUpdate from \"./CommissionProfileAddOrUpdate\";\r\nimport CommissionProfileDataTable from \"./CommissionProfileDataTable\";\r\n\r\nconst styles = theme => ({\r\n\t...sweetAlertStyle\r\n});\r\n\r\nconst initialModel = {\r\n\tProfileId: \"\",\r\n\tProfileName: \"\"\r\n};\r\n\r\nclass CommissionFeeProfile extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tlist: [],\r\n\t\t\tmodel: initialModel,\r\n\t\t\toperationType: OperationType.DEFAULT\r\n\t\t};\r\n\r\n\t\tthis.handleOperationType = this.handleOperationType.bind(this);\r\n\r\n\t\tthis.handleGetList = this.handleGetList.bind(this);\r\n\t\tthis.successListCallback = this.successListCallback.bind(this);\r\n\t\tthis.errorListCallback = this.errorListCallback.bind(this);\r\n\r\n\t\tthis.showSuccessMessage = this.showSuccessMessage.bind(this);\r\n\t\tthis.showErrorMessage = this.showErrorMessage.bind(this);\r\n\t\tthis.hideAlert = this.hideAlert.bind(this);\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.handleGetList();\r\n\t}\r\n\r\n\thandleOperationType(value, model = initialModel) {\r\n\t\tthis.setState({ operationType: value, model });\r\n\t}\r\n\r\n\thandleGetList() {\r\n\t\tProxy.GET(\r\n\t\t\t\"/bankapi/v1.0/CommissionProfile/GetAll\",\r\n\t\t\tthis.successListCallback,\r\n\t\t\tthis.errorListCallback\r\n\t\t);\r\n\t}\r\n\r\n\tsuccessListCallback(responseData) {\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.showErrorMessage(responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (responseData.Item !== null) {\r\n\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t} else {\r\n\t\t\tthis.setState({ list: [] });\r\n\t\t}\r\n\t}\r\n\r\n\terrorListCallback(error) {\r\n\t\tthis.showErrorMessage(\"An error occurred while requesting data. Error: \" + error);\r\n\t}\r\n\r\n\tshowSuccessMessage(message) {\r\n\t\tthis.setState({\r\n\t\t\talert: AlertHelper.CreateAlert(\"Success\", message, \"success\", this.hideAlert)\r\n\t\t});\r\n\t}\r\n\r\n\tshowErrorMessage(message) {\r\n\t\tthis.setState({\r\n\t\t\talert: AlertHelper.CreateAlert(\"Error\", message, \"error\", this.hideAlert)\r\n\t\t});\r\n\t}\r\n\r\n\thideAlert() {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { operationType } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t{this.state.alert}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{operationType === OperationType.DEFAULT &&\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t{operationType !== OperationType.DEFAULT &&\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCommissionFeeProfile.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default withStyles(styles)(CommissionFeeProfile);\r\n","import withStyles from \"@material-ui/core/styles/withStyles\";\r\nimport sweetAlertStyle from \"assets/jss/material-dashboard-pro-react/views/sweetAlertStyle.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport AlertHelper from \"core/AlertHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport { OperationType } from \"views/Constants/Constant\";\r\nimport CommissionProfileDetailAddOrUpdate from \"./CommissionProfileDetailAddOrUpdate\";\r\nimport CommissionProfileDetailDataTable from \"./CommissionProfileDetailDataTable\";\r\n\r\nconst styles = theme => ({\r\n\t...sweetAlertStyle\r\n});\r\n\r\nconst initialModel = {\r\n\tUseStandartRate: true,\r\n\tFirstMonthCommissionRate: 50,\r\n\tFollowingCommissionRate: 1\r\n};\r\n\r\nclass CommissionFeeProfileDetail extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tlist: [],\r\n\t\t\tmodel: initialModel,\r\n\t\t\toperationType: OperationType.DEFAULT\r\n\t\t};\r\n\r\n\t\tthis.handleOperationType = this.handleOperationType.bind(this);\r\n\r\n\t\tthis.handleGetList = this.handleGetList.bind(this);\r\n\t\tthis.successListCallback = this.successListCallback.bind(this);\r\n\t\tthis.errorListCallback = this.errorListCallback.bind(this);\r\n\r\n\t\tthis.showSuccessMessage = this.showSuccessMessage.bind(this);\r\n\t\tthis.showErrorMessage = this.showErrorMessage.bind(this);\r\n\t\tthis.hideAlert = this.hideAlert.bind(this);\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.handleGetList();\r\n\t}\r\n\r\n\thandleOperationType(value, model = initialModel) {\r\n\t\tthis.setState({ operationType: value, model });\r\n\t}\r\n\r\n\thandleGetList() {\r\n\t\tProxy.GET(\r\n\t\t\t\"/bankapi/v1.0/CustomerAgentCommission/GetAll\",\r\n\t\t\tthis.successListCallback,\r\n\t\t\tthis.errorListCallback\r\n\t\t);\r\n\t}\r\n\r\n\tsuccessListCallback(responseData) {\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.showErrorMessage(responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (responseData.Item != null) {\r\n\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t}\r\n\t}\r\n\r\n\terrorListCallback(error) {\r\n\t\tthis.showErrorMessage(\"An error occurred while requesting data. Error: \" + error);\r\n\t}\r\n\r\n\tshowSuccessMessage(message) {\r\n\t\tthis.setState({\r\n\t\t\talert: AlertHelper.CreateAlert(\"Success\", message, \"success\", this.hideAlert)\r\n\t\t});\r\n\t}\r\n\r\n\tshowErrorMessage(message) {\r\n\t\tthis.setState({\r\n\t\t\talert: AlertHelper.CreateAlert(\"Error\", message, \"error\", this.hideAlert)\r\n\t\t});\r\n\t}\r\n\r\n\thideAlert() {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { operationType } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t{this.state.alert}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{operationType === OperationType.DEFAULT &&\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t{operationType !== OperationType.DEFAULT &&\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCommissionFeeProfileDetail.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default withStyles(styles)(CommissionFeeProfileDetail);\r\n","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport { CheckCircleOutline as CheckImg } from \"@material-ui/icons\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { PropTypes } from \"prop-types\";\r\nimport React from \"react\";\r\nimport ReactTable from \"react-table\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericCheckInput, GenericDialog, GenericDialogActions, GenericEmailInput, GenericExpansionPanel, GenericLabel, GenericSelectInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ToolbarButton from \"views/Components/ToolbarButton\";\r\n\r\nclass NotificationSettings extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.isClient = ClientHelper.IsClient();\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tUniqueClientId: this.isClient ? ClientHelper.GetClientRowId() : undefined\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tlist: [],\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tvModel: {},\r\n\t\t\tcountModel: {},\r\n\t\t\tselected: {\r\n\t\t\t\tEmailMapList: [],\r\n\t\t\t\tPhoneMapList: [],\r\n\t\t\t\tUserMapList: []\r\n\t\t\t},\r\n\t\t\tisLoading: false,\r\n\t\t\tisSmsDialogOpen: false,\r\n\t\t\tisEmailDialogOpen: false,\r\n\t\t\tisPortalDialogOpen: false\r\n\t\t};\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: this.isClient ? ClientHelper.GetClientId() : undefined,\r\n\t\t};\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.sortName = { Member: \"Name\" };\r\n\t\tthis.sortListName = [{ id: \"CustomerName\" }];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tif (this.props.setAppLeftTitle)\r\n\t\t\tthis.props.setAppLeftTitle(\"Client Notification Settings\");\r\n\r\n\t\tif (this.props.setAppCenterTitle)\r\n\t\t\tthis.props.setAppCenterTitle(\"NOTIFICATIONS\");\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: this.initialModel, selected: { EmailMapList: [], PhoneMapList: [], UserMapList: [] } });\r\n\t}\r\n\r\n\tHandleChangeFilter = (name, value) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\r\n\t\tthis.setState({ model }, () => {\r\n\t\t\tif (name === \"UniqueClientId\" && value > 0) {\r\n\t\t\t\tthis.HandleSearch();\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tHandleChange = (n, v, x) => {\r\n\t\tlet { list } = this.state;\r\n\t\tif (list.includes(x)) {\r\n\t\t\tlist.find(c => c === x)[n] = v;\r\n\t\t\tthis.setState({ list });\r\n\t\t}\r\n\t}\r\n\r\n\tHandleChangeEmail = (n, v, x) => {\r\n\t\tlet { list, selected } = this.state;\r\n\t\tvar sel = list.find(c => c === selected);\r\n\t\tif (sel.EmailMapList.includes(x)) {\r\n\t\t\tsel.EmailMapList.find(c => c === x)[n] = v;\r\n\t\t}\r\n\t\tthis.setState({ list });\r\n\t}\r\n\r\n\tHandleChangePhone = (n, v, x) => {\r\n\t\tlet { list, selected } = this.state;\r\n\t\tvar sel = list.find(c => c === selected);\r\n\t\tif (sel.PhoneMapList.includes(x)) {\r\n\t\t\tsel.PhoneMapList.find(c => c === x)[n] = v;\r\n\t\t}\r\n\t\tthis.setState({ list });\r\n\t}\r\n\r\n\tHandleChangeUser = (n, v, x) => {\r\n\t\tlet { list, selected } = this.state;\r\n\t\tvar sel = list.find(c => c === selected);\r\n\t\tif (sel.UserMapList.includes(x)) {\r\n\t\t\tsel.UserMapList.find(c => c === x)[n] = v;\r\n\t\t}\r\n\t\tthis.setState({ list });\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tif (!this.ValidateSearch())\r\n\t\t\treturn;\r\n\r\n\t\tthis.setState({ isLoading: true, list: [] });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/CustomerEventNotification/GetAll\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleSubmit = () => {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/CustomerEventNotification/InsertOrUpdate\",\r\n\t\t\tthis.state.list.map(d => {\r\n\t\t\t\treturn {\r\n\t\t\t\t\tId: d.Id,\r\n\t\t\t\t\tIsRecordValid: d.IsRecordValid,\r\n\t\t\t\t\tEventNotificationId: d.EventNotificationId,\r\n\t\t\t\t\tUniqueClientId: model.UniqueClientId,\r\n\t\t\t\t\tSendSms: d.SendSms,\r\n\t\t\t\t\tSendEmail: d.SendEmail,\r\n\t\t\t\t\tSendApplication: d.SendApplication,\r\n\t\t\t\t\tEmailMapList: d.EmailMapList.map(q => {\r\n\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\tId: q.Id,\r\n\t\t\t\t\t\t\tIsRecordValid: q.IsRecordValid,\r\n\t\t\t\t\t\t\tEmail: q.Email\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t}),\r\n\t\t\t\t\tPhoneMapList: d.PhoneMapList.map(q => {\r\n\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\tId: q.Id,\r\n\t\t\t\t\t\t\tIsRecordValid: q.IsRecordValid,\r\n\t\t\t\t\t\t\tPhoneId: q.PhoneId\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t}),\r\n\t\t\t\t\tUserMapList: d.UserMapList.map(q => {\r\n\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\tId: q.Id,\r\n\t\t\t\t\t\t\tIsRecordValid: q.IsRecordValid,\r\n\t\t\t\t\t\t\tUserId: q.UserId\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t})\r\n\t\t\t\t};\r\n\t\t\t}),\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false, list: [] });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Operation is successfully!\");\r\n\t\t\t\tthis.HandleSearch();\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tvar ErrorList = [];\r\n\t\tconst { model, vModel, list } = this.state;\r\n\r\n\t\tvar notExistChannelList = list.filter(x => x.IsRecordValid && x.SendSms == false && x.SendEmail == false && x.SendApplication == false);\r\n\t\tfor (let notifications of notExistChannelList) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Invalid\", `Please select the one notification channel at least for ${notifications.EventNotification.NotificationTemplateType.Description}!`);\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tvar smsList = list.filter(x => x.SendSms == true);\r\n\t\tfor (let notifications of smsList) {\r\n\t\t\tif (notifications.PhoneMapList.filter(x => x.IsRecordValid == true).length == 0) {\r\n\t\t\t\tthis.ShowMessage(\"warning\", \"Invalid\", `Please select the one phone at least for ${notifications.EventNotification.NotificationTemplateType.Description}!`);\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tvar emailList = list.filter(x => x.SendEmail == true);\r\n\t\tfor (let notifications of emailList) {\r\n\t\t\tif (notifications.EmailMapList.filter(x => x.IsRecordValid == true).length == 0) {\r\n\t\t\t\tthis.ShowMessage(\"warning\", \"Invalid\", `Please select the one e-mail at least for ${notifications.EventNotification.NotificationTemplateType.Description}!`);\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tvar userList = list.filter(x => x.SendApplication == true);\r\n\t\tfor (let notifications of userList) {\r\n\t\t\tif (notifications.UserMapList.filter(x => x.IsRecordValid == true).length == 0) {\r\n\t\t\t\tthis.ShowMessage(\"warning\", \"Invalid\", `Please select the one user at least for ${notifications.EventNotification.NotificationTemplateType.Description}!`);\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (!this.isClient && (model.UniqueClientId == null || model.UniqueClientId == 0)) {\r\n\t\t\tvModel.UniqueClientId = true;\r\n\t\t\tErrorList.push(\"Client must be selected!\");\r\n\t\t} else {\r\n\t\t\tvModel.UniqueClientId = false;\r\n\t\t}\r\n\r\n\t\tthis.setState({ vModel });\r\n\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tValidateSearch = () => {\r\n\t\tvar ErrorList = [];\r\n\t\tconst { model, vModel } = this.state;\r\n\r\n\t\tif (!this.isClient && (model.UniqueClientId == null || model.UniqueClientId == 0)) {\r\n\t\t\tvModel.UniqueClientId = true;\r\n\t\t\tErrorList.push(\"Client must be selected!\");\r\n\t\t} else {\r\n\t\t\tvModel.UniqueClientId = false;\r\n\t\t}\r\n\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Required fields!\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, isLoading, model, vModel, list, selected, isSmsDialogOpen, isEmailDialogOpen, isPortalDialogOpen } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t model, FillDataFromModel: model => this.setState({ model }), ValidationFunction: this.Validate },\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\tlet foundRecord = selected.PhoneMapList.find(x => x == row.original);\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn (row.original != null &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.HandleChangePhone(n, v, row.original)} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\tdefaultPageSize={50}\r\n\t\t\t\t\t\t\t\t\tshowPaginationTop={false}\r\n\t\t\t\t\t\t\t\t\tshowPaginationBottom={Object.keys(selected.PhoneMapList || []).length > 50}\r\n\t\t\t\t\t\t\t\t\tminRows={2} />\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\tlet foundRecord = selected.EmailMapList.find(x => x == row.original);\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn (row.original != null &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.HandleChangeEmail(n, v, row.original)} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\tdefaultPageSize={50}\r\n\t\t\t\t\t\t\t\t\tshowPaginationTop={false}\r\n\t\t\t\t\t\t\t\t\tshowPaginationBottom={Object.keys(selected.EmailMapList || []).length > 50}\r\n\t\t\t\t\t\t\t\t\tminRows={2} />\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\tlet foundRecord = selected.UserMapList.find(x => x == row.original);\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn (row.original != null &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.HandleChangeUser(n, v, row.original)} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\tdefaultPageSize={50}\r\n\t\t\t\t\t\t\t\t\tshowPaginationTop={false}\r\n\t\t\t\t\t\t\t\t\tshowPaginationBottom={Object.keys(selected.UserMapList || []).length > 50}\r\n\t\t\t\t\t\t\t\t\tminRows={2} />\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\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t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t{list.map(field => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.HandleChange(n, v, field)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={!field.EventNotification.SendSms || !field.IsRecordValid} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.HandleChange(n, v, field)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={!field.EventNotification.SendEmail || !field.IsRecordValid} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.HandleChange(n, v, field)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={!field.EventNotification.SendApplication || !field.IsRecordValid} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t{list.map(field => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.setState({ isSmsDialogOpen: true, selected: field })}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdisabled={!field.IsRecordValid}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.setState({ isEmailDialogOpen: true, selected: field })}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdisabled={!field.IsRecordValid}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.setState({ isPortalDialogOpen: true, selected: field })}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdisabled={!field.IsRecordValid}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t{list.map(field => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t{list.map(field => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t{list.map(field => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nNotificationSettings.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func\r\n};\r\n\r\nexport default NotificationSettings;\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass ClientSetupIdExpireDateList extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.isClient = ClientHelper.IsClient();\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: this.isClient ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\talert: null,\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\r\n\t\tthis.parameterClientType = {\r\n\t\t\tParameterCode: \"ClientType\",\r\n\t\t\tParameterValue3: \"D\"\r\n\t\t};\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: this.isClient ? ClientHelper.GetClientId() : undefined\r\n\t\t};\r\n\r\n\t\tthis.parameterCustomerName = {};\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\t\tthis.renderItemClientCustomer = {};\r\n\r\n\t\tthis.ColumnsData = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\",\r\n\t\t\t\twidth: 200\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"ClientType\",\r\n\t\t\t\taccessor: \"ClientType\",\r\n\t\t\t\twidth: 200\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Beneficary Owner\",\r\n\t\t\t\taccessor: \"BeneficaryOwner\",\r\n\t\t\t\twidth: 200\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Authorized Signing Officer\",\r\n\t\t\t\taccessor: \"AuthorizedSigningOfficer\",\r\n\t\t\t\twidth: 200\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Unique Client Id\",\r\n\t\t\t\taccessor: \"UniqueClientId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"ID Expire Date\",\r\n\t\t\t\taccessor: \"IdentityExpireDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Number of Remaining Days\",\r\n\t\t\t\taccessor: \"NumberOfRemainingDays\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"B.O ID Expire Date\",\r\n\t\t\t\taccessor: \"IdentityExpireDate2\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"B.O Number of Remaining Days\",\r\n\t\t\t\taccessor: \"NumberOfRemainingDays2\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.sortName = { Member: \"Name\" };\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tif (this.props.setAppLeftTitle)\r\n\t\t\tthis.props.setAppLeftTitle(\"Client Setup ID Expire Date List\");\r\n\t\tif (this.props.setAppCenterTitle)\r\n\t\t\tthis.props.setAppCenterTitle(\"CLIENT\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tthis.setState({ alert: null, isLoading: true });\r\n\t\tProxy.POST(\"/bankapi/v1.0/CustomerIdentification/SearchExpiresSoon\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (responseData.Item != null && responseData.Item.length > 0) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item, isLoading: false });\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.setState({ list: [], isLoading: false });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tthis.ErrorCallback\r\n\t\t);\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel } });\r\n\t}\r\n\r\n\tErrorCallback = (error) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"Error\", \"An error occurred during the api visit\" + error);\r\n\t}\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: null })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm, showCancel = true) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: null })} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes, Disabled } = this.props;\r\n\t\tconst { model, alert, isLoading, ReadOnly } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{!this.isClient &&\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nClientSetupIdExpireDateList.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(ClientSetupIdExpireDateList, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass ClientSetupIdLetterofGuaranteeList extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.isClient = ClientHelper.IsClient();\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: this.isClient ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\talert: null,\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\r\n\t\tthis.parameterClientType = {\r\n\t\t\tParameterCode: \"ClientType\",\r\n\t\t\tParameterValue3: \"D\"\r\n\t\t};\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: this.isClient ? ClientHelper.GetClientId() : undefined\r\n\t\t};\r\n\r\n\t\tthis.parameterCustomerName = {};\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\t\tthis.renderItemClientCustomer = {};\r\n\r\n\t\tthis.ColumnsData = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"UniqueClientName\",\r\n\t\t\t\taccessor: \"UniqueClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Expire Date\",\r\n\t\t\t\taccessor: \"EndDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Security Type\",\r\n\t\t\t\taccessor: \"SecurityType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Name\",\r\n\t\t\t\taccessor: \"AccountName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Program\",\r\n\t\t\t\taccessor: \"Program\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transit Number\",\r\n\t\t\t\taccessor: \"TransitNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Number\",\r\n\t\t\t\taccessor: \"AccountNumber\"\r\n\t\t\t},\r\n\t\t\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Secure Amount\",\r\n\t\t\t\taccessor: \"SecureAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType:GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Wallet Amount\",\r\n\t\t\t\taccessor: \"PrepaidAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType:GridColumnType.Money\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Available Balance\",\r\n\t\t\t\taccessor: \"AvailableLimit\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType:GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Insert Date\",\r\n\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Last Loading Date\",\r\n\t\t\t\taccessor: \"LastLoadingDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t];\r\n\r\n\t\tthis.sortName = { Member: \"Name\" };\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tif (this.props.setAppLeftTitle)\r\n\t\t\tthis.props.setAppLeftTitle(\"Letter of Guarantee Expire Date List\");\r\n\t\tif (this.props.setAppCenterTitle)\r\n\t\t\tthis.props.setAppCenterTitle(\"CLIENT\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tthis.setState({ alert: null, isLoading: true });\r\n\t\tProxy.POST(\"/bankapi/v1.0/ClientCustomer/SearchLetterofGuaranteeList\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (responseData.Item != null && responseData.Item.length > 0) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item, isLoading: false });\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.setState({ list: [], isLoading: false });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tthis.ErrorCallback\r\n\t\t);\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel } });\r\n\t}\r\n\r\n\tErrorCallback = (error) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"Error\", \"An error occurred during the api visit\" + error);\r\n\t}\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: null })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm, showCancel = true) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: null })} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes, Disabled } = this.props;\r\n\t\tconst { model, alert, isLoading, ReadOnly ,list} = this.state;\r\n\t\tvar data = list == null ? [] : list.map(d => {\r\n\t\t\treturn {\r\n\t\t\t\tId: d.Id,\r\n\t\t\t\tUniqueClientId: d.UniqueClientId,\r\n\t\t\t\tUniqueClientName:d.UniqueClient == null ? \"\" : d.UniqueClient.UniqueClientId+\"-\"+d.UniqueClient.ClientName,\r\n\t\t\t\tAccountId: d.Account == null ? \"\" : d.Account.Id,\r\n\t\t\t\tAccountName: d.Account == null ? \"\" : d.Account.AccountName == null ? \"\" : d.Account.AccountName,\r\n\t\t\t\tAccountNumber: d.Account == null ? \"\" : d.Account.AccountNumber == null ? \"\" : d.Account.AccountNumber,\r\n\t\t\t\tTransitNumber: d.Account == null ? \"\" : d.Account.Branch == null ? \"\" : d.Account.Branch.TransitNumber == null ? \"\" : d.Account.Branch.TransitNumber,\r\n\t\t\t\tSecurityTypeId: d.SecurityTypeId == null ? \"\" : d.SecurityTypeId,\r\n\t\t\t\tSecurityType: d.SecurityType == null ? \"\" : d.SecurityType.ParameterDesc,\r\n\t\t\t\tProgram: d.Program == null ? \"\" : d.Program.Description,\r\n\t\t\t\tProgramId: d.ProgramId == null ? \"\" : d.ProgramId,\r\n\t\t\t\tFromDate: d.FromDate == null ? null : d.FromDate,\r\n\t\t\t\tEndDate: d.ToDate == null ? null : d.ToDate,\r\n\t\t\t\tAvailableLimit: d.AvailableLimit == null ? \"\" : d.AvailableLimit,\r\n\t\t\t\tLastLoadingDate: d.LastLoadingDate == null ? null : d.LastLoadingDate,\r\n\t\t\t\tSecureAmount: d.SecureAmount == null ? \"\" : d.SecureAmount,\r\n \t\t\t\tInsertDateTime: d.InsertDateTime == null ? \"\" : d.InsertDateTime \r\n\t\t\t}\r\n\t\t});\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{!this.isClient &&\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nClientSetupIdLetterofGuaranteeList.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(ClientSetupIdLetterofGuaranteeList, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass CustomerIdExpireDateList extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.isClient = ClientHelper.IsClient();\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: this.isClient ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\talert: null,\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\r\n\t\tthis.parameterClientType = {\r\n\t\t\tParameterCode: \"ClientType\",\r\n\t\t\tParameterValue3: \"D\"\r\n\t\t};\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: this.isClient ? ClientHelper.GetClientId() : undefined\r\n\t\t};\r\n\r\n\t\tthis.parameterCustomerName = {};\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\t\tthis.renderItemClientCustomer = {};\r\n\r\n\t\tthis.ColumnsData = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\",\r\n\t\t\t\tshow: !this.isClient\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Unique Client Id\",\r\n\t\t\t\taccessor: \"UniqueClientId\",\r\n\t\t\t\tshow: !this.isClient\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"CustomerName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Customer Number\",\r\n\t\t\t\taccessor: \"ClientCustomerNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"ID Expire Date\",\r\n\t\t\t\taccessor: \"IdentityExpireDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Number of Remaining Days\",\r\n\t\t\t\taccessor: \"NumberOfRemainingDays\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.sortName = { Member: \"Name\" };\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tif (this.props.setAppLeftTitle)\r\n\t\t\tthis.props.setAppLeftTitle(\"Customer ID Expire Date List\");\r\n\t\tif (this.props.setAppCenterTitle)\r\n\t\t\tthis.props.setAppCenterTitle(\"CLIENT\");\r\n\r\n\t\tthis.GetCustomerNameParameter();\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\r\n\t\tif (name === \"UniqueClientId\") {\r\n\t\t\tthis.GetCustomerNameParameter(model);\r\n\t\t}\r\n\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tthis.setState({ alert: null, isLoading: true });\r\n\t\tProxy.POST(\"/bankapi/v1.0/ClientCustomer/SearchIdVerificationExpiresSoon\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (responseData.Item != null && responseData.Item.length > 0) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item, isLoading: false });\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.setState({ list: [], isLoading: false });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tthis.ErrorCallback\r\n\t\t);\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel } });\r\n\t}\r\n\r\n\tErrorCallback = (error) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"Error\", \"An error occurred during the api visit\" + error);\r\n\t}\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tRenderItemClientCustomer = (d) => {\r\n\t\tthis.renderItemClientCustomer = `${d.ClientCustomerNumber} - ${d.Name}`;\r\n\t\treturn this.renderItemClientCustomer;\r\n\t}\r\n\r\n\tGetCustomerNameParameter = (temp) => {\r\n\t\tif (temp) {\r\n\t\t\tthis.parameterCustomerName.UniqueClientId = temp.UniqueClientId;\r\n\t\t} else {\r\n\t\t\tthis.parameterCustomerName.UniqueClientId = this.state.model.UniqueClientId;\r\n\t\t}\r\n\t\treturn this.parameterCustomerName;\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: null })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm, showCancel = true) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: null })} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes, Disabled } = this.props;\r\n\t\tconst { model, alert, isLoading, ReadOnly } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{!this.isClient &&\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCustomerIdExpireDateList.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(CustomerIdExpireDateList, {});","import GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport SiteVisitAddOrUpdate from \"./SiteVisitAddOrUpdate\";\r\nimport SiteVisitDataTable from \"./SiteVisitDataTable\";\r\n\r\nclass SiteVisit extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tvModel: {},\r\n\t\t\tlist: [],\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tfileModel: {},\r\n\t\t\tfilterModel: {},\r\n\t\t\tisLoading: false,\r\n\t\t};\r\n\t\tthis.getappCenterTitle = \"Empty\";\r\n\t\tthis.getappLeftTitle = \"Empty\";\r\n\t\tthis.fileInputRef = React.createRef();\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Site Visit\");\r\n\t\tthis.props.setAppCenterTitle(\"Client\");\r\n\t\tthis.getappLeftTitle = \"Site Visit\";\r\n\t\tthis.getappCenterTitle = \"Client\";\r\n\t\tthis.FetchCanadaPost();\r\n\t}\r\n\r\n\tHandleChange = (name, value) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleChangeFilter = (name, value) => {\r\n\t\tconst filterModel = { ...this.state.filterModel };\r\n\t\tfilterModel[name] = value;\r\n\t\tthis.setState({ filterModel });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: this.initialModel, filterModel: {}, selected: null, list: [], vModel: {} });\r\n\t}\r\n\r\n\tHandleSelectModel = (model, index) => {\r\n\t\tthis.setState({ model, selected: index });\r\n\t}\r\n\r\n\tFileSelect = (e) => {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\te.preventDefault();\r\n\t\tlet reader = new FileReader();\r\n\t\tvar file = e.target.files[0];\r\n\r\n\t\tif (!file) return;\r\n\r\n\t\treader.onloadend = () => {\r\n\t\t\tmodel.Photo = reader.result;\r\n\t\t\tthis.setState(state => ({\r\n\t\t\t\tfileModel: {\r\n\t\t\t\t\tFileName: file.name,\r\n\t\t\t\t\tFile: file\r\n\t\t\t\t},\r\n\t\t\t\tmodel\r\n\t\t\t}));\r\n\t\t};\r\n\t\treader.readAsDataURL(file);\r\n\t}\r\n\r\n\tUploadClick = () => {\r\n\t\tthis.fileInputRef.current.click();\r\n\t}\r\n\r\n\tHandleGetList = () => {\r\n\t\tif (!this.FilterValidate())\r\n\t\t\treturn;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/CustomerSiteVisit/Search\",\r\n\t\t\tthis.state.filterModel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ list: [] });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleSubmit = () => {\r\n\t\tconst { fileModel, model } = this.state;\r\n\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tif (!model.IsPhotoTakenCompleted)\r\n\t\t\tmodel.Photo = null;\r\n\r\n\t\tvar formData = new FormData();\r\n\t\tformData.append(\"Photo\", fileModel.File, fileModel.FileName);\r\n\t\tformData.append(\"Item\", JSON.stringify(model));\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.FileUpload(\r\n\t\t\t\"/bankapi/v1.0/CustomerSiteVisit/InsertOrUpdate\",\r\n\t\t\tformData,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tconst { filterModel } = this.state;\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while requesting data\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (!filterModel.StartDateOfVisit || filterModel.StartDateOfVisit > DateHelper.GetDate())\r\n\t\t\t\t\tfilterModel.StartDateOfVisit = DateHelper.GetDate();\r\n\t\t\t\tif (!filterModel.EndDateOfVisit || filterModel.EndDateOfVisit < DateHelper.GetDate())\r\n\t\t\t\t\tfilterModel.EndDateOfVisit = DateHelper.GetDate();\r\n\t\t\t\tthis.setState({ filterModel });\r\n\t\t\t\tthis.HandleGetList();\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Saved succesfully!\");\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleDelete = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.GET(\r\n\t\t\t\"/bankapi/v1.0/CustomerSiteVisit/Delete/Id?Id=\" + this.state.model.Id,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.HandleGetList();\r\n\t\t\t\tthis.setState({ model: this.initialModel, selected: null });\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Deleted successfully!\");\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while deleting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tFetchCanadaPost = () => {\r\n\t\tProxy.POST(\"/coreapi/v1.0/Parameter/Search\",\r\n\t\t\t{\r\n\t\t\t\tParameterCode: \"CanadaPostApiKey\",\r\n\t\t\t\tParameterValue: \"CP\",\r\n\t\t\t\tParameterDesc: \"\"\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tconsole.log(\"Canada Post Api key not fetched !\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item == null) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item[0] == null) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvar apikey = responseData.Item[0].ParameterDesc;\r\n\t\t\t\tconsole.log(\"KEY CP \", apikey);\r\n\r\n\t\t\t\tvar url = window.CanadaPostAddressCompleteUrl;\r\n\t\t\t\tvar path = url + apikey;\r\n\r\n\t\t\t\tvar CanadaPostRequest=this.SubmitCanadaPostRequest;\r\n\t\t\t\tvar pca;\r\n\t\t\t\tvar addressComplete;\r\n\r\n\t\t\t\tvar temp = this.state.model;\r\n\t\t\t\tvar CpTemp = this.AddressHandle;\r\n\r\n\t\t\t\tconst script = document.createElement(\"script\");\r\n\t\t\t\tscript.src = path;\r\n\t\t\t\tscript.async = false;\r\n\t\t\t\tdocument.head.appendChild(script);\r\n\r\n\t\t\t\tscript.onload = function () {\r\n\t\t\t\t\tpca = window.pca;\r\n\t\t\t\t\taddressComplete = window.addressComplete;\r\n\t\t\t\t\tif (pca != null) {\r\n\t\t\t\t\t\tvar fields =\r\n\t\t\t\t\t\t\t[\r\n\t\t\t\t\t\t\t\t{ element: \"street-address\", field: \"Line1\", mode: pca.fieldMode.SEARCH },\r\n\t\t\t\t\t\t\t\t{ element: \"street-address2\", field: \"Line2\", mode: pca.fieldMode.POPULATE },\r\n\t\t\t\t\t\t\t\t{ element: \"city\", field: \"City\", mode: pca.fieldMode.POPULATE },\r\n\t\t\t\t\t\t\t\t{ element: \"state\", field: \"ProvinceName\", mode: pca.fieldMode.SEARCH },\r\n\t\t\t\t\t\t\t\t{ element: \"postcode\", field: \"PostalCode\", mode: pca.fieldMode.SEARCH },\r\n\t\t\t\t\t\t\t\t{ element: \"country\", field: \"CountryName\", mode: pca.fieldMode.COUNTRY }\r\n\t\t\t\t\t\t\t],\r\n\t\t\t\t\t\t\toptions = {\r\n\t\t\t\t\t\t\t\tkey: apikey\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\tcontrol = new pca.Address(fields, options);\r\n\t\t\t\t\t\t\tCanadaPostRequest();\r\n\r\n\t\t\t\t\t\tcontrol.listen(\"populate\", function (address) {\r\n\t\t\t\t\t\t\tconsole.log(address);\r\n\t\t\t\t\t\t\ttemp.City = address.City;\r\n\t\t\t\t\t\t\ttemp.Province = address.ProvinceName;\r\n\t\t\t\t\t\t\ttemp.Country = address.CountryName;\r\n\t\t\t\t\t\t\ttemp.AddressLine1 = address.Line1;\r\n\t\t\t\t\t\t\ttemp.AddressLine2 = address.Line2;\r\n\t\t\t\t\t\t\ttemp.ZipCode = address.PostalCode;\r\n\t\t\t\t\t\t\tCpTemp(temp);\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\te => {\r\n\t\t\t\tconsole.log(\"Canada Post Api key not fetched !\");\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tSubmitCanadaPostRequest = async () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tvar requestdata = { \r\n\r\n\t\t\tUniqueClientId: null,\r\n\t\t\tMenuCode:this.props.MenuCode,\r\n\t\t\tAppCenterTitle:this.getappCenterTitle,\r\n\t\t\tAppLeftTitle:this.getappLeftTitle\r\n\t\t};\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Reporting/CanadaPostRequestReportInsert\",\r\n\t\t\trequestdata,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (responseData.Item != null ) {\r\n\t\t\t\t\t \r\n\t\t\t\t}\r\n\t\t\t},\r\n \t\t);\r\n\t\t// var result = await this.props.ExecuteApiPost(\"/bankapi/v1.0/Reporting/CanadaPostRequestReportInsert\", requestdata);\r\n\t}\r\n\tAddressHandle = (address) => {\r\n\t\tvar model = { ...this.state.model };\r\n\t\tmodel.AddressLine1 = address.AddressLine1;\r\n\t\tmodel.AddressLine2 = address.AddressLine2;\r\n\t\tmodel.City = address.City;\r\n\t\tmodel.Province = address.Province;\r\n\t\tmodel.Country = address.Country;\r\n\t\tmodel.ZipCode = address.ZipCode;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tFilterValidate = () => {\r\n\t\tconst { filterModel, vModel } = this.state;\r\n\r\n\t\tif (!filterModel.StartDateOfVisit) {\r\n\t\t\tvModel.StartDateOfVisit = true;\r\n\t\t\tthis.ShowMessage(\"warning\", \"Start Date of Visit not selected\", \"Select Start Date of Visit to continue.\");\r\n\t\t\treturn false;\r\n\t\t} else { vModel.StartDateOfVisit = false; }\r\n\r\n\t\tif (!filterModel.EndDateOfVisit) {\r\n\t\t\tvModel.EndDateOfVisit = true;\r\n\t\t\tthis.ShowMessage(\"warning\", \"End Date of Visit not selected\", \"Select End Date of Visit to continue.\");\r\n\t\t\treturn false;\r\n\t\t} else { vModel.EndDateOfVisit = false; }\r\n\r\n\t\tif (filterModel.StartDateOfVisit && filterModel.EndDateOfVisit && DateHelper.ToMoment(filterModel.EndDateOfVisit) < DateHelper.ToMoment(filterModel.StartDateOfVisit)) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"End Date of Visit cannot be past!\", \"Select End Date of Visit to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!filterModel.UniqueClientId) {\r\n\t\t\tvModel.UniqueClientId2 = true;\r\n\t\t\tthis.ShowMessage(\"warning\", \"Client not selected\", \"Select Client to continue.\");\r\n\t\t\treturn false;\r\n\t\t} else { vModel.UniqueClientId2 = false; }\r\n\r\n\t\tthis.setState({ vModel });\r\n\t\treturn true;\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\r\n\t\tif (!model.UniqueClientId) {\r\n\t\t\tvModel.UniqueClientId = true;\r\n\t\t\tthis.ShowMessage(\"warning\", \"Client Name not selected\", \"Select Client to continue.\");\r\n\t\t\treturn false;\r\n\t\t} else { vModel.UniqueClientId = false; }\r\n\t\tif (!model.LegalName) {\r\n\t\t\tvModel.LegalName = true;\r\n\t\t\tthis.ShowMessage(\"warning\", \"Legal Name not selected\", \"Legal Name Year to continue.\");\r\n\t\t\treturn false;\r\n\t\t} else { vModel.LegalName = false; }\r\n\r\n\r\n\t\tif (!model.DateOfVisit) {\r\n\t\t\tvModel.DateOfVisit = true;\r\n\t\t\tthis.ShowMessage(\"warning\", \"Date of Visit not selected\", \"Select Date of Visit to continue.\");\r\n\t\t\treturn false;\r\n\t\t} else { vModel.DateOfVisit = false; }\r\n\r\n\t\tif (!model.Country) {\r\n\t\t\tvModel.Country = true;\r\n\t\t\tthis.ShowMessage(\"warning\", \"Country not selected\", \"Select Country to continue.\");\r\n\t\t\treturn false;\r\n\t\t} else { vModel.Country = false; }\r\n\r\n\t\tif (!model.City) {\r\n\t\t\tvModel.City = true;\r\n\t\t\tthis.ShowMessage(\"warning\", \"City not selected\", \"Select City to continue.\");\r\n\t\t\treturn false;\r\n\t\t} else { vModel.City = false; }\r\n\r\n\t\tif (model.VisitCompletionDate && DateHelper.ToMoment(model.VisitCompletionDate) < DateHelper.ToMoment(model.DateOfVisit)) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Visit Completion Date cannot be past!\", \"Select Visit Completion Date to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!model.ZipCode) {\r\n\t\t\tvModel.ZipCode = true\r\n\t\t\tthis.ShowMessage(\"warning\", \"Postal Code is empty!\", \"Enter Postal Code to continue.\");\r\n\t\t\treturn false;\r\n\t\t} else { vModel.ZipCode = false; }\r\n\r\n\t\tif (model.ZipCode.length > 10) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"The postal code must be at maximum length 10.\", \"Enter valid postal code to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (!model.IsPhotoTakenCompleted) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Select Building / Office Photo taken for DCBank Database!\", \"Select Building / Office Photo taken for DCBank Database.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!model.VisitCompletionStatusId) {\r\n\t\t\tvModel.VisitCompletionStatusId = true;\r\n\t\t\tthis.ShowMessage(\"warning\", \"Completion Status not selected\", \"Select Completion Status to continue.\");\r\n\t\t\treturn false;\r\n\t\t} else { vModel.VisitCompletionStatusId = false; }\r\n\t\tthis.setState({ vModel })\r\n\t\treturn true;\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: \"\" })} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes, Disabled } = this.props;\r\n\t\tconst { alert, model, isLoading } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t 0, ModelFunction: () => model, FillDataFromModel: model => this.setState({ model }), ValidationFunction: this.Validate },\r\n\t\t\t\t\t{ Code: \"Update\", OnClick: this.HandleSubmit, Disabled: Disabled || model.Id === 0, ModelFunction: () => model, FillDataFromModel: model => this.setState({ model }), ValidationFunction: this.Validate },\r\n\t\t\t\t\t{ Code: \"Delete\", OnClick: this.HandleDelete, Disabled: Disabled || model.Id === 0, ModelFunction: () => model, FillDataFromModel: model => this.setState({ model }), ValidationFunction: this.Validate },\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nSiteVisit.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(SiteVisit, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { DeleteIcon, EditIcon } from \"core/Icons\";\r\nimport MenuAuthorityRightHelper from \"core/MenuAuthorityRightHelper\";\r\nimport StringHelper from \"core/StringHelper\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport CanadaPostAddressComponent from \"views/Components/CanadaPostAddressComponent\";\r\nimport { GenericAlert, GenericDateInput, GenericEmailInput, GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nclass CRARegister extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.GetDefaultModel(),\r\n\t\t\tphone: this.GetDefaultPhoneModel(),\r\n\t\t\taddress: {},\r\n\t\t\tlist: [],\r\n\t\t\tvModel: {},\r\n\t\t\tisLoading: false,\r\n\t\t\talert: null,\r\n\t\t\tgridButtonRightDetail: []\r\n\t\t};\r\n\r\n\t\tthis.MenuAuthorityRightHelper = new MenuAuthorityRightHelper();\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"First Name\",\r\n\t\t\t\taccessor: \"FirstName\",\r\n\t\t\t\tCell: row => (
{row.value}
)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Last Name\",\r\n\t\t\t\taccessor: \"LastName\",\r\n\t\t\t\tCell: row => (
{row.value}
)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Phone\",\r\n\t\t\t\taccessor: \"PhoneDescription\",\r\n\t\t\t\tCell: row => (
{row.value}
)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Email\",\r\n\t\t\t\taccessor: \"EmailAddress\",\r\n\t\t\t\tCell: row => (
{row.value}
)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"SIN\",\r\n\t\t\t\taccessor: \"SIN\",\r\n\t\t\t\tCell: row => (
{row.value}
)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"FIID\",\r\n\t\t\t\taccessor: \"FinancialInstitution\",\r\n\t\t\t\tCell: row => (
{row.value}
)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transit\",\r\n\t\t\t\taccessor: \"FinancialInstitutionBranch\",\r\n\t\t\t\tCell: row => (
{row.value}
)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Number\",\r\n\t\t\t\taccessor: \"AccountNumber\",\r\n\t\t\t\tCell: row => (
{row.value}
)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Wallet Number\",\r\n\t\t\t\taccessor: \"WalletNumber\",\r\n\t\t\t\tCell: row => (
{row.value}
)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Zip Code\",\r\n\t\t\t\taccessor: \"Address.ZipCode\",\r\n\t\t\t\tCell: row => (
{row.value}
)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Send Status\",\r\n\t\t\t\taccessor: \"ApplicationStatus\",\r\n\t\t\t\tCell: row => (
{row.value}
)\r\n\t\t\t}\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\r\n\t\tif (setAppLeftTitle) setAppLeftTitle(\"Direct Deposit for Canada Revenue Agency\");\r\n\t\tif (setAppCenterTitle) setAppCenterTitle(\"CALL CENTER\");\r\n\r\n\t\tthis.GetGridButtonsRight();\r\n\t}\r\n\r\n\tGetDefaultModel = () => {\r\n\t\t// return {};\r\n\r\n\t\treturn {\r\n\t\t\tApplicationChannelId: 107963,\r\n\t\t\tUniqueClientId: 6\r\n\t\t};\r\n\t}\r\n\r\n\tGetDefaultPhoneModel=() =>{\r\n\t\t\r\n\treturn {\r\n\t\tPhoneCountryCodeId: 38\r\n\r\n\t};\r\n\t}\r\n\r\n\tGetColumnsRowStyleColor(status) {\r\n\t\tthis.columnsRowStyleColor = {\r\n\t\t\tcolor: status != null && status != 0\r\n\t\t\t\t? \"#FB3005\"\r\n\t\t\t\t: \"\"\r\n\t\t};\r\n\r\n\t\treturn this.columnsRowStyleColor;\r\n\t}\r\n\r\n\tHandleChangeModel = (name, value, data) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar temp = state.model || {};\r\n\t\t\ttemp[name] = value;\r\n\t\t\treturn { model: temp };\r\n\t\t});\r\n\t}\r\n\r\n\tHandleChangePhone = (name, value, data) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar temp = state.phone || {};\r\n\t\t\ttemp[name] = value;\r\n\t\t\treturn { phone: temp };\r\n\t\t});\r\n\t}\r\n\r\n\tHandleChangeAddress = (name, value, data) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar temp = state.address || {};\r\n\r\n\t\t\tif (name == \"CountryId\") {\r\n\t\t\t\ttemp.ProvinceId = 0;\r\n\t\t\t\ttemp.CityId = 0;\r\n\t\t\t}\r\n\t\t\tif (name == \"ProvinceId\") {\r\n\t\t\t\ttemp.CityId = 0;\r\n\t\t\t}\r\n\r\n\t\t\ttemp[name] = value;\r\n\t\t\treturn { address: temp };\r\n\t\t});\r\n\t}\r\n\r\n\tHandleRowSelect = (index) => {\r\n\t\tlet item = this.state.list[index];\r\n\t\tlet phone = item.Phone || {};\r\n\t\tlet address = item.Address || {};\r\n\r\n\t\tthis.setState({ model: item, phone, address });\r\n\t}\r\n\r\n\tHandleRowDelete = (index) => {\r\n\t\tthis.HandleRowSelect(index);\r\n\t\tthis.HandleDelete();\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: this.GetDefaultModel(), phone: this.GetDefaultPhoneModel(), address: {}, list: [] });\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tlet { model, phone, address } = this.state;\r\n\r\n\t\tmodel.Phone = phone;\r\n\t\tmodel.Address = address;\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/CRA/Search\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ list: responseData.Item || [] });\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleSubmit = () => {\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tlet { model, phone, address } = this.state;\r\n\r\n\t\tmodel.Phone = phone;\r\n\t\tmodel.Address = address;\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/CRA/Register\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Operation is successfull!\");\r\n\t\t\t\tthis.HandleClear();\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleDelete = () => {\r\n\t\tif (this.state.model == null || this.state.model.Id == null || this.state.model.Id == 0) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", \"You must select a CRA Application to delete!\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/CRA/Delete\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Operation is successfull!\");\r\n\t\t\t\tthis.HandleClear();\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model, address, vModel } = this.state;\r\n\t\tconst errors = [];\r\n\r\n\t\tif (!model.ApplicationChannelId) {\r\n\t\t\terrors.push(\"Application Channel is required.\");\r\n\t\t\tvModel.ApplicationChannelId = true;\r\n\t\t} else {\r\n\t\t\tvModel.ApplicationChannelId = false;\r\n\t\t}\r\n\r\n\t\tif (!model.UniqueClientId) {\r\n\t\t\terrors.push(\"Client is required.\");\r\n\t\t\tvModel.UniqueClientId = true;\r\n\t\t} else {\r\n\t\t\tvModel.UniqueClientId = false;\r\n\t\t}\r\n\r\n\t\tif (!model.FirstName) {\r\n\t\t\terrors.push(\"First Name is required.\");\r\n\t\t\tvModel.FirstName = true;\r\n\t\t} else {\r\n\t\t\tvModel.FirstName = false;\r\n\t\t}\r\n\r\n\t\tif (!model.LastName) {\r\n\t\t\terrors.push(\"Last Name is required.\");\r\n\t\t\tvModel.LastName = true;\r\n\t\t} else {\r\n\t\t\tvModel.LastName = false;\r\n\t\t}\r\n\r\n\t\tif (!model.EmailAddress) {\r\n\t\t\terrors.push(\"Email Address is required.\");\r\n\t\t\tvModel.EmailAddress = true;\r\n\t\t} else if (!StringHelper.VerifyEmail(model.EmailAddress)) {\r\n\t\t\terrors.push(\"Email Address is invalid.\");\r\n\t\t\tvModel.EmailAddress = true;\r\n\t\t} else {\r\n\t\t\tvModel.EmailAddress = false;\r\n\t\t}\r\n\r\n\t\tif (!model.DateOfBirth) {\r\n\t\t\terrors.push(\"DOB (Date of Birth) is required.\");\r\n\t\t\tvModel.DateOfBirth = true;\r\n\t\t} else {\r\n\t\t\tvModel.DateOfBirth = false;\r\n\t\t}\r\n\r\n\t\tif (!model.SIN) {\r\n\t\t\terrors.push(\"SIN is required.\");\r\n\t\t\tvModel.SIN = true;\r\n\t\t} else {\r\n\t\t\tvModel.SIN = false;\r\n\t\t}\r\n\r\n\t\tif (!model.AccountNumber && !model.WalletNumber) {\r\n\t\t\terrors.push(\"Account Number or Wallet Number is required.\");\r\n\t\t\tvModel.AccountNumber = true;\r\n\t\t\tvModel.WalletNumber = true;\r\n\t\t}\r\n\t\telse if (model.AccountNumber && (!model.FinancialInstitutionId || !model.FinancialInstitutionBranchId)) {\r\n\t\t\terrors.push(\"FIID and Transit Numbers are required if supplying the Account Number.\");\r\n\t\t\tvModel.AccountNumber = false;\r\n\t\t\tvModel.WalletNumber = false;\r\n\t\t\tvModel.FinancialInstitutionId = true;\r\n\t\t\tvModel.FinancialInstitutionBranchId = true;\r\n\t\t} else {\r\n\t\t\tvModel.AccountNumber = false;\r\n\t\t\tvModel.WalletNumber = false;\r\n\t\t\tvModel.FinancialInstitutionId = false;\r\n\t\t\tvModel.FinancialInstitutionBranchId = false;\r\n\t\t}\r\n\r\n\t\tif (!address?.ZipCode) {\r\n\t\t\terrors.push(\"Zip Code is required.\");\r\n\t\t\tvModel.ZipCode = true;\r\n\t\t} else {\r\n\t\t\tvModel.ZipCode = false;\r\n\t\t}\r\n\r\n\t\tthis.setState({ vModel });\r\n\r\n\t\tif (errors.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Check these fields!\", errors.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tGetGridButtonsRight = async () => {\r\n\t\tconst { MenuCode } = this.props;\r\n\t\tvar gridButtonRightDetail = await this.MenuAuthorityRightHelper.RightCheckList(MenuCode, [\"CRAREGEDIT\", \"CRAREGDELE\"]);\r\n\r\n\t\tthis.setState({ gridButtonRightDetail });\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({ alert: this.setState({ alert: \"\" })} /> });\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({ alert: this.setState({ alert: \"\" })} /> });\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: \"\" })} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmDelete = (onConfirm) => {\r\n\t\tthis.ShowConfirmMessage(\"warning\", \"Warning\", \"Delete this CRA Application?\", onConfirm);\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, phone, address, list, isLoading, alert, vModel, gridButtonRightDetail } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t this.ShowConfirmDelete(this.HandleDelete), Disabled: Disabled || !(model.Id > 0) },\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\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t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t x.Code == \"CRAREGEDIT\")?.HasAuthority}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tOnClick={() => this.HandleRowSelect(row.index)} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t x.Code == \"CRAREGDELE\")?.HasAuthority}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tOnClick={() => this.ShowConfirmDelete(() => this.HandleRowDelete(row.index))} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsortable: false,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tfilterable: false,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 100\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t...this.Columns\r\n\t\t\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\t\t\tRowSelected={this.HandleRowSelect} />\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCRARegister.propTypes = {};\r\n\r\nexport default withArtifex(CRARegister, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes, { bool, func } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport {\r\n GenericAlert,\r\n GenericDateInput,\r\n GenericGrid,\r\n GenericNumberInput,\r\n GenericTextInput,\r\n GenericTitle,\r\n} from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport {\r\n Direction,\r\n GridColumnType,\r\n ProgramCodes,\r\n} from \"views/Constants/Constant\";\r\n\r\nclass TelpaySettlementFile extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n model: {\r\n\t\t\tSettlementDate: DateHelper.GetDate(),\r\n \tSettlementFileReferenceNumber: \"\",\r\n PageSize: 1_000_000,\r\n SourceOfRecordsId:null\r\n },\r\n headerModel: {},\r\n fileInfo: {\r\n\t\t\tBillPaymentNumber: null,\r\n\t\t\tNumberOfPayments: null,\r\n\t\t\tAmountOfPayments: null,\r\n\t\t\tAmountOfServiceCharges: null,\r\n\t\t\tTelPayPaymentDetails: [],\r\n },\r\n isLoading: false,\r\n };\r\n }\r\n\r\n componentDidMount() {\r\n this.props.setAppLeftTitle(\"Telpay Settlement File\");\r\n this.props.setAppCenterTitle(\"CLEARING & SETTLEMENT\");\r\n }\r\n\r\n handleChange = (name, newValue, data) => {\r\n const model = { ...this.state.model };\r\n\r\n model[name] = newValue;\r\n this.setState({ model });\r\n };\r\n\r\n GetDailyFileList = () => {\r\n\tif (!this.onDialogValidate()) return;\r\n this.setState({ isLoading: true });\r\n Proxy.POST(\r\n \"/bankapi/v1.0/ClearingSettlement/GetTelPaySettlementFile\",\r\n this.state.model,\r\n this.successDailyFileList,\r\n (error) => {\r\n this.showBasicAlert(\r\n \"Error\",\r\n \"An error occurred during the api visit\" + error,\r\n \"error\"\r\n );\r\n }\r\n );\r\n };\r\n\r\n onDialogValidate = () => {\r\n\tconst { dialogModel } = this.state;\r\n\tconst { showMessage } = this.props;\r\n\r\n\tif (!this.state.model.SettlementDate) {\r\n\t\tshowMessage(\r\n\t\t\t\"warning\",\r\n\t\t\t\"Settlement Date is not provided\",\r\n\t\t\t\"Select Settlement Date to continue.\"\r\n\t\t);\r\n\t\treturn false;\r\n\t}\t\r\n\r\n\tif (!this.state.model.SourceOfRecordsId) {\r\n\t\tshowMessage(\r\n\t\t\t\"warning\",\r\n\t\t\t\"Source of Records is not provided\",\r\n\t\t\t\"Select Source of Records to continue.\"\r\n\t\t);\r\n\t\treturn false;\r\n\t}\r\n\r\n\treturn true;\r\n} \r\n\r\n successDailyFileList = (responseData) => {\r\n\r\n\tif (!responseData.IsSucceeded) {\r\n\t\tthis.showBasicAlert(\"Error\", responseData.ErrorDescription, \"error\");\r\n\t\treturn;\r\n\t}\r\n\r\n this.setState({\r\n fileInfo: {\r\n\t\t\tBillPaymentNumber : responseData.Item?.BillPaymentReportNumber == null || undefined ? \"\" : responseData.Item.BillPaymentReportNumber ,\r\n\t\t\tNumberOfPayments : responseData.Item?.NumberOfPayments == null || undefined ? \"\" : responseData.Item.NumberOfPayments ,\r\n\t\t\tAmountOfPayments : responseData.Item?.AmountOfPayments == null || undefined ? \"\" : responseData.Item.AmountOfPayments ,\r\n\t\t\tAmountOfServiceCharges : responseData.Item?.AmountOfServiceCharges == null || undefined ? \"\" : responseData.Item.AmountOfServiceCharges ,\r\n\t\t\tTelPayPaymentDetails: responseData.Item?.TelPayPaymentDetails == null\r\n\t\t\t\t? []\r\n\t\t\t\t: responseData.Item.TelPayPaymentDetails.legth < 1\r\n\t\t\t\t\t? []\r\n\t\t\t\t\t: responseData.Item.TelPayPaymentDetails.map((x) => {\r\n\t\t\t\t\treturn {\r\n\t\t\t\t\t\tId : x.Id == null || undefined ? \"\" : x.Id,\r\n\t\t\t\t\t\tUniqueClientId : x.UniqueClientId == null || undefined ? \"\" : x.UniqueClientId,\r\n\t\t\t\t\t\tClientName : x.ClientName == null || undefined ? \"\" : x.ClientName,\r\n\t\t\t\t\t\tCustomerName : x.CustomerName == null || undefined ? \"\" : x.CustomerName,\r\n BillerCode: x.BillerCode == null || undefined ? \"\" : x.BillerCode,\r\n\t\t\t\t\t\tBillerName : x.BillerName == null || undefined ? \"\" : x.BillerName,\r\n\t\t\t\t\t\tAmount : x.Amount == null || undefined ? \"\" : x.Amount,\r\n TelPayTransactionReferenceNumber: x.TelPayTransactionReferenceNumber == null || undefined ? \"\" : x.TelPayTransactionReferenceNumber,\r\n TransactionReferenceNumber: x.TransactionReferenceNumber == null || undefined ? \"\" : x.TransactionReferenceNumber,\r\n SettlementStatus: x.SettlementStatus == null || undefined ? \"\" : x.SettlementStatus,\r\n SourceOfRecords: x.SourceOfRecords == null || undefined ? \"\" : x.SourceOfRecords\r\n\t\t\t\t\t};\r\n\t\t\t\t\t}),\r\n\t\t\t}, isLoading: false,\r\n\t\t});\r\n\t};\r\n\r\n ClearModel = () => {\r\n this.setState({\r\n model: {\r\n\t\t SettlementDate : DateHelper.GetDate(),\r\n SettlementFileDate: DateHelper.GetDate(),\r\n SettlementFileReferenceNumber: null,\r\n },\r\n });\r\n };\r\n\r\n showBasicAlert = (title, message, type) => {\r\n this.setState({\r\n isLoading: false,\r\n alert: (\r\n this.hideAlert()}\r\n />\r\n ),\r\n });\r\n };\r\n\r\n hideAlert = () => {\r\n this.setState({ alert: null, isLoading: false });\r\n };\r\n\r\n render() {\r\n const { model, headerModel, isLoading, fileInfo } = this.state;\r\n return (\r\n
\r\n \r\n {this.state.alert}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\nTelpaySettlementFile.propTypes = {\r\n classes: PropTypes.object,\r\n handleOperationType: PropTypes.func,\r\n showQuestionMessage: func,\r\n setAppLeftTitle: func,\r\n setAppCenterTitle: func,\r\n Disabled: bool\r\n};\r\n\r\nexport default withArtifex(TelpaySettlementFile, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes, { bool, func } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport {\r\n GenericAlert,\r\n GenericDateInput,\r\n GenericDialog,\r\n GenericDialogActions,\r\n GenericGrid,\r\n GenericLabel,\r\n GenericNumberInput,\r\n GenericRadioInput,\r\n GenericSelectInput,\r\n GenericTitle,\r\n GenericTextInput,\r\n} from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport { withArtifex } from \"core\";\r\nimport { Proxy } from \"core\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport Select from \"react-select\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { EditIcon, UndoIcon } from \"core/Icons\";\r\nimport GridButton from \"views/Components/GridButton\";\r\n\r\nclass BillPaymentSettlement extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.initTransactionDetailColumns();\r\n this.initExportColumns();\r\n\r\n this.state = {\r\n alert,\r\n legacyGridRefreshToken: false,\r\n legacyGridLoadAtStartup: false,\r\n datasource: [],\r\n model: {\r\n BillerCode: null,\r\n UniqueClientId: null,\r\n FromDate: null,\r\n ToDate: null,\r\n TransactionReferenceNumber: null,\r\n TransactionStatusId: null,\r\n TelpayReferenceNumber: null,\r\n SettlementStatusId: \"\",\r\n IsTelpaySend: null,\r\n PageSize: 1_000_000,\r\n TotalAmount: \"\",\r\n TotalCount: \"\",\r\n },\r\n rejectedModel: {\r\n BillTransactionId: null,\r\n SettlementDate: null,\r\n },\r\n headerModel: {},\r\n transactionList: [],\r\n isLoading: false,\r\n isDownloadDialogOpen: false,\r\n exportReportType: \"PDF\",\r\n exportSelectedColumns: this.exportColumns,\r\n isRejectedDialogOpen: false,\r\n\t\tisUndoRejectedDialogOpen:false,\r\n selectedRejectedModelRow: null,\r\n selectedUndoRejectedModelRow: null,\r\n\r\n };\r\n }\r\n\r\n componentDidMount() {\r\n this.props.setAppLeftTitle(\"Bill Payment Transaction Settlement\");\r\n this.props.setAppCenterTitle(\"CLEARING & SETTLEMENT\");\r\n\r\n this.setState({ legacyGridLoadAtStartup: true });\r\n }\r\n\r\n handleChange = (name, newValue, data) => {\r\n const model = { ...this.state.model };\r\n\r\n model[name] = newValue;\r\n this.setState({ model });\r\n };\r\n\r\n ClearModel = () => {\r\n this.setState({\r\n model: {\r\n FromDate: null,\r\n ToDate: null,\r\n BillerCode: null,\r\n UniqueClientId: null,\r\n TransactionReferenceNumber: null,\r\n TelpayReferenceNumber: null,\r\n SettlementStatusId: \"\",\r\n IsTelpaySend: null,\r\n PageSize: 1_000_000,\r\n TotalAmount: \"\",\r\n TotalCount: \"\",\r\n },\r\n });\r\n };\r\n\r\n refreshGridToken = async () => {\r\n const { legacyGridRefreshToken } = this.state;\r\n\r\n this.setState({ legacyGridRefreshToken: !legacyGridRefreshToken });\r\n };\r\n onDialogValidate = () => {\r\n const { showMessage } = this.props;\r\n\r\n if (this.state.model.SettlementDate) {\r\n return true;\r\n }\r\n\r\n if (!this.state.model.FromDate) {\r\n showMessage(\r\n \"warning\",\r\n \"From Date is not provided\",\r\n \"Select From Date to continue.\"\r\n );\r\n return false;\r\n }\r\n\r\n return true;\r\n };\r\n\r\n showBasicAlert = (title, message, type) => {\r\n this.setState({\r\n isLoading: false,\r\n alert: (\r\n this.hideAlert()}\r\n />\r\n ),\r\n });\r\n };\r\n\r\n hideAlert = () => {\r\n this.setState({ alert: null, isLoading: false });\r\n };\r\n\r\n GetTransactionList = () => {\r\n if (!this.onDialogValidate()) return;\r\n if (!this.state.model.ToDate && !this.state.model.SettlementDate) {\r\n this.setState({\r\n model: {\r\n ...this.state.model,\r\n ToDate: DateHelper.GetDate(),\r\n },\r\n });\r\n }\r\n this.setState({ isLoading: true });\r\n Proxy.POST(\r\n \"/bankapi/v1.0/ClearingSettlement/GetBillPaymentTransactionSettlement\",\r\n this.state.model,\r\n (responseData) => {\r\n this.successDailyFileList(responseData);\r\n this.setState((prevState) => ({\r\n ...prevState,\r\n model: {\r\n ...prevState.model,\r\n TotalAmount: responseData.Item.TotalAmount,\r\n TotalCount: responseData.Item.TotalCount,\r\n },\r\n }));\r\n },\r\n (error) => {\r\n this.showBasicAlert(\r\n \"Error\",\r\n \"An error occurred during the api visit\" + error,\r\n \"error\"\r\n );\r\n }\r\n );\r\n };\r\n\r\n successDailyFileList = (responseData) => {\r\n if (!responseData.IsSucceeded) {\r\n this.showBasicAlert(\"Error\", responseData.ErrorDescription, \"error\");\r\n return;\r\n }\r\n this.setState({\r\n headerModel: {},\r\n transactionList:\r\n responseData.Item.BillPaymentTransactions == null\r\n ? []\r\n : responseData.Item.BillPaymentTransactions.length < 1\r\n ? []\r\n : responseData.Item.BillPaymentTransactions.map((x) => {\r\n return {\r\n Id: x.Id == null || undefined ? \"\" : x.Id,\r\n TransactionDate:\r\n x.TransactionDate == null || undefined\r\n ? \"\"\r\n : x.TransactionDate,\r\n TelpaySendDate:\r\n x.TelpaySendDate == null || undefined ? \"\" : x.TelpaySendDate,\r\n BillerCode:\r\n x.BillerCode == null || undefined ? \"\" : x.BillerCode,\r\n BillerName:\r\n x.BillerName == null || undefined ? \"\" : x.BillerName,\r\n UniqueClientId:\r\n x.UniqueClientId == null || undefined ? \"\" : x.UniqueClientId,\r\n ClientName:\r\n x.ClientName == null || undefined ? \"\" : x.ClientName,\r\n CustomerName:\r\n x.CustomerName == null || undefined ? \"\" : x.CustomerName,\r\n Amount: x.Amount == null || undefined ? \"\" : x.Amount,\r\n TransactionReferenceNumber:\r\n x.TransactionReferenceNumber == null || undefined\r\n ? \"\"\r\n : x.TransactionReferenceNumber,\r\n TelPayReferenceNumber:\r\n x.TelPayReferenceNumber == null || undefined\r\n ? \"\"\r\n : x.TelPayReferenceNumber,\r\n SettlementStatus:\r\n x.SettlementStatus == null || undefined\r\n ? \"\"\r\n : x.SettlementStatus,\r\n SettlementDate:\r\n x.SettlementDate == null || undefined ? \"\" : x.SettlementDate,\r\n TransactionStatus:\r\n x.TransactionStatus == null || undefined\r\n ? \"\"\r\n : x.TransactionStatus,\r\n IsEditable: x.IsEditable,\r\n IsRejected: x.IsRejected,\r\n };\r\n }),\r\n isLoading: false,\r\n });\r\n };\r\n\r\n getToolbarButtons() {\r\n return [\r\n { Code: \"Clear\", OnClick: this.ClearModel },\r\n { Code: \"Search\", OnClick: this.GetTransactionList },\r\n { Code: \"Export\", OnClick: this.openExportDialog },\r\n ];\r\n }\r\n\r\n initTransactionDetailColumns() {\r\n this.transactionDetailColumns = [\r\n {\r\n Header: \"Actions\",\r\n accessor: \"Actions\",\r\n Cell: (row) => (\r\n
\r\n {\r\n this.openRejectedDialog();\r\n this.setState({\r\n selectedRejectedModelRow: row.original,\r\n rejectedModel: {\r\n BillTransactionId: row.original.Id,\r\n },\r\n });\r\n }}\r\n />\r\n {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tisLoading: false,\r\n\t\t\t\t\t\trejectedModel: {\r\n\t\t\t\t\t\t\tBillTransactionId: row.original.Id,\r\n\t\t\t\t\t\t },\r\n\t\t\t\t\t\talert: (\r\n\t\t\t\t\t\t \r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t });\r\n\r\n }}\r\n />\r\n
\r\n ),\r\n sortable: false,\r\n filterable: false,\r\n width: 70,\r\n show: true,\r\n },\r\n {\r\n Header: \"Transaction Date\",\r\n accessor: \"TransactionDate\",\r\n type: GridColumnType.DateUtc,\r\n },\r\n {\r\n Header: \"Telpay Send Date\",\r\n accessor: \"TelpaySendDate\",\r\n type: GridColumnType.DateUtc,\r\n },\r\n {\r\n Header: \"Biller Code\",\r\n accessor: \"BillerCode\",\r\n },\r\n\r\n {\r\n Header: \"Biller Name\",\r\n accessor: \"BillerName\",\r\n },\r\n\r\n {\r\n Header: \"Client ID\",\r\n accessor: \"UniqueClientId\",\r\n },\r\n\r\n {\r\n Header: \"Client Name\",\r\n accessor: \"ClientName\",\r\n },\r\n\r\n {\r\n Header: \"Customer Name\",\r\n accessor: \"CustomerName\",\r\n },\r\n {\r\n Header: \"Amount\",\r\n accessor: \"Amount\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Transaction Ref. No\",\r\n accessor: \"TransactionReferenceNumber\",\r\n },\r\n {\r\n Header: \"Telpay Ref. No\",\r\n accessor: \"TelPayReferenceNumber\",\r\n },\r\n {\r\n Header: \"Transaction Status\",\r\n accessor: \"TransactionStatus\",\r\n },\r\n {\r\n Header: \"Settlement Status\",\r\n accessor: \"SettlementStatus\",\r\n },\r\n {\r\n Header: \"Settlement Date\",\r\n accessor: \"SettlementDate\",\r\n type: GridColumnType.DateUtc,\r\n },\r\n ];\r\n }\r\n\r\n initExportColumns() {\r\n var exportColumns = [];\r\n\r\n this.transactionDetailColumns.forEach((c) => {\r\n if (\r\n c.accessor != \"Actions\" &&\r\n c.accessor != \"ED\" &&\r\n (c.show == undefined || c.show)\r\n ) {\r\n var exportColumn = {};\r\n exportColumn.value = c.accessor;\r\n exportColumn.title = c.Header;\r\n if (c.type) {\r\n exportColumn.type = c.type;\r\n }\r\n\r\n exportColumns.push(exportColumn);\r\n }\r\n }, this);\r\n\r\n this.exportColumns = exportColumns;\r\n }\r\n\r\n setExportSelection = (value) => {\r\n this.setState({ exportSelectedColumns: value });\r\n };\r\n\r\n getSelectedExportColumns = () => {\r\n const { exportSelectedColumns } = this.state;\r\n\r\n var columns = {};\r\n\r\n exportSelectedColumns.forEach((c) => {\r\n columns[c.value] = {\r\n value: c.value,\r\n title: c.title,\r\n columntype: c.columntype,\r\n type: c.type,\r\n };\r\n });\r\n\r\n var result = [];\r\n result.push(columns);\r\n\r\n return result;\r\n };\r\n\r\n isExportRequestValid = () => {\r\n const { model } = this.state;\r\n\r\n if (model.FromDate == null || model.FromDate == undefined) {\r\n this.showBasicAlert(\r\n \"warning\",\r\n \"Please select required field !\",\r\n \"Select a Settlement File Date !\"\r\n );\r\n return false;\r\n }\r\n\r\n return true;\r\n };\r\n\r\n openExportDialog = () => {\r\n this.setState({\r\n isDownloadDialogOpen: true,\r\n });\r\n };\r\n\r\n closeExportDialog = () => {\r\n this.setState({\r\n isDownloadDialogOpen: false,\r\n });\r\n };\r\n\r\n dataRangeResultsCard = () => {\r\n const { TotalAmount, TotalCount } = this.state.model;\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n };\r\n\r\n onExport = () => {\r\n if (this.isExportRequestValid()) {\r\n const { exportReportType } = this.state;\r\n const {\r\n FromDate,\r\n ToDate,\r\n SettlementStatusId,\r\n BillerCode,\r\n UniqueClientId,\r\n TelpayReferenceNumber,\r\n TransactionReferenceNumber,\r\n ...model2\r\n } = this.state.model;\r\n\r\n const exportModel = {\r\n ...model2,\r\n BillerCode: this.state.model.BillerCode,\r\n UniqueClientId: this.state.model.UniqueClientId,\r\n FromDate: this.state.model.FromDate,\r\n ToDate: this.state.model.ToDate,\r\n TransactionReferenceNumber: this.state.model.TransactionReferenceNumber,\r\n TelpayReferenceNumber: this.state.model.TelpayReferenceNumber,\r\n SettlementStatusId: this.state.model.SettlementStatusId,\r\n PageSize: this.state.model.PageSize,\r\n jsonFile: {},\r\n };\r\n\r\n var exportColumns = this.getSelectedExportColumns() ?? [];\r\n\r\n exportModel.jsonFile = {\r\n colmns: exportColumns,\r\n format: exportReportType,\r\n title: \"Bill Payment Settlement Report\",\r\n };\r\n\r\n this.showBasicAlert();\r\n\r\n Proxy.DownloadGeneratedFile(\r\n \"/bankapi/v1.0/ClearingSettlement/BillPaymentTransactionsSettlementDownload\",\r\n exportModel,\r\n (responseData) => {\r\n this.hideAlert();\r\n\r\n if (!responseData.IsSucceeded) {\r\n this.showBasicAlert(\r\n \"error\",\r\n \"Error\",\r\n responseData.ErrorDescription\r\n );\r\n return;\r\n }\r\n },\r\n (errorMessage) => {\r\n this.hideAlert();\r\n this.showBasicAlert(\"error\", \"Error\", errorMessage);\r\n },\r\n this.showBasicAlert\r\n );\r\n }\r\n };\r\n\r\n setValueToState = (name, value) => {\r\n this.setState({ [name]: value });\r\n };\r\n getRejectedDialog = () => {\r\n const { isRejectedDialogOpen, selectedRejectedModelRow } = this.state;\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {\r\n this.setState({\r\n rejectedModel: {\r\n SettlementDate: value,\r\n ...this.state.rejectedModel,\r\n },\r\n });\r\n }}\r\n MaxDate={DateHelper.GetDate()}\r\n MinDate={new Date(\"01-04-2022\")}\r\n Utc\r\n />\r\n \r\n \r\n \r\n \r\n \r\n {\r\n if (this.isRejectedModelValid()) {\r\n this.setState({\r\n isLoading: false,\r\n alert: (\r\n \r\n ),\r\n });\r\n }\r\n }}\r\n >\r\n SAVE\r\n \r\n \r\n \r\n \r\n \r\n );\r\n };\r\n\r\n showLoading() {\r\n this.setState({ isLoading: true });\r\n }\r\n\r\n hideLoading() {\r\n this.setState({ isLoading: false });\r\n }\r\n\r\n isRejectedModelValid = () => {\r\n const { rejectedModel } = this.state;\r\n if (!rejectedModel.SettlementDate) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill Settlement Date field!\",\r\n \"Settlement Date is empty\"\r\n );\r\n return false;\r\n }\r\n\r\n return true;\r\n };\r\n\r\n \r\n saveUndoRejectedTransaction = async () => {\r\n const { rejectedModel } = this.state;\r\n this.showLoading();\r\n\r\n Proxy.POST(\r\n \"/bankapi/v1.0/ClearingSettlement/UndoRejectBillPaymentTransactionForSettlement\",\r\n rejectedModel,\r\n (responseData) => {\r\n if (!responseData.IsSucceeded) {\r\n console.log(\"Error!\", responseData);\r\n this.hideLoading();\r\n this.showBasicAlert(\"error\", responseData.ErrorDescription, \"Error\");\r\n return;\r\n }\r\n\r\n this.showBasicAlert(\r\n \"success\",\r\n \"Operation Successfully Completed!\",\r\n \"Success\"\r\n );\r\n\r\n this.GetTransactionList();\r\n this.closeRejectedDialog();\r\n },\r\n (error) => {\r\n console.log(\"Error!\", error);\r\n this.hideLoading();\r\n this.showBasicAlert(\"error\", \"Error\", error);\r\n }\r\n );\r\n };\r\n\r\n saveRejectedTransaction = async () => {\r\n const { rejectedModel } = this.state;\r\n this.showLoading();\r\n\r\n Proxy.POST(\r\n \"/bankapi/v1.0/ClearingSettlement/RejectBillPaymentTransactionForSettlement\",\r\n rejectedModel,\r\n (responseData) => {\r\n if (!responseData.IsSucceeded) {\r\n console.log(\"Error!\", responseData);\r\n this.hideLoading();\r\n this.showBasicAlert(\"error\", responseData.ErrorDescription, \"Error\");\r\n return;\r\n }\r\n\r\n this.showBasicAlert(\r\n \"success\",\r\n \"Operation Successfully Completed!\",\r\n \"Success\"\r\n );\r\n\r\n this.GetTransactionList();\r\n this.closeRejectedDialog();\r\n },\r\n (error) => {\r\n console.log(\"Error!\", error);\r\n this.hideLoading();\r\n this.showBasicAlert(\"error\", \"Error\", error);\r\n }\r\n );\r\n };\r\n openRejectedDialog() {\r\n this.setState({ isRejectedDialogOpen: true });\r\n }\r\n\r\n closeRejectedDialog = () => {\r\n this.setState({ isRejectedDialogOpen: false });\r\n };\r\n\r\n render() {\r\n const {\r\n model,\r\n isLoading,\r\n isDownloadDialogOpen,\r\n exportReportType,\r\n exportSelectedColumns,\r\n alert,\r\n legacyGridRefreshToken,\r\n } = this.state;\r\n const { menuId, ApprovalData, After } = this.props;\r\n return (\r\n <>\r\n {this.getRejectedDialog()}\r\n {alert}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n `${d.Code} / ${d.Name}`}\r\n Value={model.BillerCode || \"\"}\r\n ValueChanged={this.handleChange}\r\n All\r\n CanClear\r\n Disabled={false}\r\n />\r\n \r\n \r\n `${d.UniqueClientId} - ${d.Name}`}\r\n Value={model.UniqueClientId || \"\"}\r\n ValueChanged={this.handleChange}\r\n All\r\n CanClear\r\n Disabled={false}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {this.dataRangeResultsCard()}\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n Transaction List\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n {/* {this.getTransactionDetailDialog()} */}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n d.title}\r\n options={this.exportColumns}\r\n className=\"basic-multi-select\"\r\n classNamePrefix=\"select\"\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n }\r\n}\r\n\r\nBillPaymentSettlement.propTypes = {\r\n classes: PropTypes.object,\r\n handleOperationType: PropTypes.func,\r\n showQuestionMessage: func,\r\n setAppLeftTitle: func,\r\n setAppCenterTitle: func,\r\n Disabled: bool,\r\n};\r\n\r\nexport default withArtifex(BillPaymentSettlement, {});\r\n","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport ChequeManagementStyle from \"assets/jss/material-dashboard-pro-react/views/ChequeManagementStyle.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { DetailIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport { Chart, Doughnut as DoughnutChart } from \"react-chartjs-2\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericSelectInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton.jsx\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent.jsx\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nconst chartStyles = ({\r\n\tcircleBox: {\r\n\t\tdisplay: \"inline-block\",\r\n\t\tmarginTop: \"24px\",\r\n\t\tmarginLeft: \"auto\",\r\n\t\tmarginRight: \"auto\",\r\n\t\tmarginBottom: \"24px\"\r\n\t},\r\n\tcircleBoxGrid: {\r\n\t\twidth: \"100%\",\r\n\t\ttextAlign: \"center\"\r\n\t}\r\n});\r\n\r\nclass ChequeClearningSummary extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tconst { history } = this.props;\r\n\r\n\t\tthis.chartDataContent = {\r\n\t\t\tlabels: [\"\"],\r\n\t\t\tdatasets: [{\r\n\t\t\t\tdata: [100],\r\n\t\t\t\tbackgroundColor: \"rgb(255, 99, 132)\",\r\n\t\t\t\thoverBackgroundColor: \"rgb(255, 99, 132)\"\r\n\t\t\t}],\r\n\t\t\ttext: \"\"\r\n\t\t};\r\n\r\n\t\tthis.chartOptions = {\r\n\t\t\tmaintainAspectRatio: true,\r\n\t\t\tresponsive: false,\r\n\t\t\tlegend: {\r\n\t\t\t\tposition: \"bottom\"\r\n\t\t\t},\r\n\t\t\tcutoutPercentage: 90,\r\n\t\t\ttooltips: {\r\n\t\t\t\tcallbacks: {\r\n\t\t\t\t\tlabel: function (tooltipItem, data) {\r\n\t\t\t\t\t\tvar dataset = data.datasets[tooltipItem.datasetIndex];\r\n\t\t\t\t\t\tvar total = dataset.data.reduce(function (previousValue, currentValue, currentIndex, array) {\r\n\t\t\t\t\t\t\treturn previousValue + currentValue;\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\tvar currentValue = dataset.data[tooltipItem.index];\r\n\t\t\t\t\t\tvar percentage = Math.floor(((currentValue / total) * 100) + 0.5);\r\n\r\n\t\t\t\t\t\treturn percentage + \"%\";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tthis.chartColors = {\r\n\t\t\tfirst: \"rgb(104, 16, 35)\",\r\n\t\t\tsecond: \"rgb(251, 76, 35)\",\r\n\t\t};\r\n\r\n\t\tthis.columnSearchDetail = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\twidth: 60\r\n\t\t\t\t// show: !propIsBackoffice\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Unique Client Id\",\r\n\t\t\t\taccessor: \"UniqueClientId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Cheque Serial Number\",\r\n\t\t\t\taccessor: \"ChequeSerialNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date\",\r\n\t\t\t\taccessor: \"Date\",\r\n\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Cheque Account\",\r\n\t\t\t\taccessor: \"ChequeAccount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Deposit Account\",\r\n\t\t\t\taccessor: \"DepositAccount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Status\",\r\n\t\t\t\taccessor: \"TransactionStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"Amount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType:GridColumnType.Money\r\n\t\t\t},\r\n\r\n\t\t\t// {\r\n\t\t\t// \tHeader: \"Posting Item Sequence Number \",\r\n\t\t\t// \taccessor: \"PostingItemSequenceNumber\"\r\n\t\t\t// },\r\n\t\t\t// {\r\n\t\t\t// \tHeader: \"Posting Account Routing Number\",\r\n\t\t\t// \taccessor: \"PostingAccountRoutingNumber\"\r\n\t\t\t// }\r\n\r\n\t\t\t// {\r\n\t\t\t// \tHeader: \"Number of Transaction\",\r\n\t\t\t// \taccessor: \"TransactionCount\"\r\n\t\t\t// },\r\n\t\t\t// {\r\n\t\t\t// \tHeader: \"Transaction Total\",\r\n\t\t\t// \taccessor: \"TransactionTotal\"\r\n\t\t\t// }\r\n\t\t];\r\n\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\r\n\t\tthis.sortedName = { Member: \"Name\" };\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\tsearchDetail: [],\r\n\t\t\tgraphicDetail: [],\r\n\t\t\ttransactionDetail: [],\r\n\t\t\tselected: null,\r\n\t\t\tisLoading: false,\r\n\t\t\tchqimage: {},\r\n\t\t\topenDialog: false,\r\n\t\t\ttotalchqinfomodel: {},\r\n\t\t\tchartData: [this.chartDataContent, this.chartDataContent, this.chartDataContent, this.chartDataContent, this.chartDataContent]\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Cheque Clearing Summary\");\r\n\t\tthis.props.setAppCenterTitle(\"CHEQUE MANAGEMENT\");\r\n\r\n\t\tvar originalDoughnutDraw = Chart.controllers.doughnut.prototype.draw;\r\n\t\tChart.helpers.extend(Chart.controllers.doughnut.prototype, {\r\n\t\t\tdraw: function () {\r\n\t\t\t\toriginalDoughnutDraw.apply(this, arguments);\r\n\r\n\t\t\t\tvar chart = this.chart;\r\n\t\t\t\tvar width = chart.chart.width,\r\n\t\t\t\t\theight = chart.chart.height,\r\n\t\t\t\t\tctx = chart.chart.ctx;\r\n\r\n\t\t\t\tvar fontSize = 1.5;\r\n\t\t\t\tctx.font = fontSize + \"em sans-serif\";\r\n\t\t\t\tctx.textBaseline = \"middle\";\r\n\t\t\t\tctx.fillStyle = \"#000\";\r\n\r\n\t\t\t\tvar text = chart.config.data.text,\r\n\t\t\t\t\ttextX = Math.round((width - ctx.measureText(text).width) / 2),\r\n\t\t\t\t\ttextY = height / 2;\r\n\r\n\t\t\t\tctx.fillText(text, textX, textY);\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tconst { searchDetail } = this.state;\r\n\r\n\t\tthis.setState({ transactionDetail: searchDetail[index].TransactionDetail, selected: index });\r\n\t}\r\n\r\n\tGetRenderItemUniqueClient = (x) => {\r\n\t\tthis.renderItemUniqueClient = `${x.Name} - ${x.UniqueClientId}`;\r\n\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tSearch = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tconst { model } = this.state;\r\n\t\tconst { showMessage } = this.props;\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/chequeapi/v1.0/Cheque/ChequeClearingSummaryList\",\r\n\t\t\t{\r\n\t\t\t\t\"FromDate\": model.FromDate || null,\r\n\t\t\t\t\"ToDate\": model.ToDate || null,\r\n\t\t\t\t\"UniqueClientId\": model.UniqueClientId || -1,\r\n\t\t\t\t\"LastPeriodId\": model.LastPeriodId || -1,\r\n\t\t\t\t\"TransactionStatusId\": model.TransactionStatusId\r\n\r\n\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvar searchDetail = [], graphicDetail = [],\r\n\t\t\t\t\tchartData = [this.chartDataContent, this.chartDataContent, this.chartDataContent, this.chartDataContent, this.chartDataContent];\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tsearchDetail = responseData.Item.SearchDetail || [];\r\n\t\t\t\t\tgraphicDetail = responseData.Item.GraphicDetail || []\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (graphicDetail.length != 0 && graphicDetail[0].TransactionCount != 0) {\r\n\t\t\t\t\tvar programCount = graphicDetail.filter(x => x.TransactionStatusId != 0 && x.TransactionStatusId != -1).length;\r\n\t\t\t\t\tchartData[0] = {\r\n\t\t\t\t\t\tlabels: [graphicDetail[0].TransactionStatus],\r\n\t\t\t\t\t\tdatasets: [{\r\n\t\t\t\t\t\t\tdata: [graphicDetail[0].TransactionCount],\r\n\t\t\t\t\t\t\tbackgroundColor: this.chartColors.first,\r\n\t\t\t\t\t\t\thoverBackgroundColor: this.chartColors.first\r\n\t\t\t\t\t\t}],\r\n\t\t\t\t\t\ttext: graphicDetail[0].TransactionCount\r\n\t\t\t\t\t};\r\n\t\t\t\t\tfor (var i = 1; i <= programCount; i++) {\r\n\t\t\t\t\t\tchartData[i] = {\r\n\t\t\t\t\t\t\tlabels: [graphicDetail[programCount + 1].TransactionStatus, graphicDetail[i].TransactionStatus],\r\n\t\t\t\t\t\t\tdatasets: [{\r\n\t\t\t\t\t\t\t\tdata: [graphicDetail[0].TransactionCount - graphicDetail[i].TransactionCount, graphicDetail[i].TransactionCount],\r\n\t\t\t\t\t\t\t\thoverBackgroundColor: [this.chartColors.second, this.chartColors.first],\r\n\t\t\t\t\t\t\t\tbackgroundColor: [this.chartColors.second, this.chartColors.first],\r\n\t\t\t\t\t\t\t}],\r\n\t\t\t\t\t\t\ttext: graphicDetail[i].TransactionCount\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t}\r\n\t\t\t\t\tchartData[programCount + 1] = {\r\n\t\t\t\t\t\tlabels: [\"Anothers\", graphicDetail[programCount + 1].TransactionStatus],\r\n\t\t\t\t\t\tdatasets: [{\r\n\t\t\t\t\t\t\tdata: [graphicDetail[0].TransactionCount - graphicDetail[programCount + 1].TransactionCount, graphicDetail[programCount + 1].TransactionCount],\r\n\t\t\t\t\t\t\thoverBackgroundColor: [this.chartColors.second, this.chartColors.first],\r\n\t\t\t\t\t\t\tbackgroundColor: [this.chartColors.second, this.chartColors.first],\r\n\t\t\t\t\t\t}],\r\n\t\t\t\t\t\ttext: graphicDetail[programCount + 1].TransactionCount\r\n\t\t\t\t\t};\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tsearchDetail: responseData.Item == null ? [] : responseData.Item.length < 1 ? [] : responseData.Item.SearchDetail.map(x => {\r\n\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\tActions: (\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t { this.setState({ openDialog: true, chqimage: x }); }} />\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\tDate: x.Date == null || undefined ? \"\" : x.Date,\r\n\t\t\t\t\t\t\tUniqueClientId: x.UniqueClientId == null || undefined ? \"\" : x.UniqueClientId,\r\n\t\t\t\t\t\t\tChequeAccount: x.ChequeAccount == null || undefined ? \"\" : x.ChequeAccount,\r\n\t\t\t\t\t\t\tTransactionStatus: x.TransactionStatus == null || undefined ? \"\" : x.TransactionStatus,\r\n\t\t\t\t\t\t\tDepositAccount: x.DepositAccount == null || undefined ? \"\" : x.DepositAccount,\r\n\t\t\t\t\t\t\tECEInstitutionItemSequenceNumber: x.ECEInstitutionItemSequenceNumber == null || undefined ? \"\" : x.ECEInstitutionItemSequenceNumber,\r\n\t\t\t\t\t\t\tPostingAccountRoutingNumber: x.PostingAccountRoutingNumber == null || undefined ? \"\" : x.PostingAccountRoutingNumber,\r\n\t\t\t\t\t\t\tAmount: x.Amount == null || undefined ? 0 : x.Amount,\r\n\t\t\t\t\t\t\tChequeSerialNumber: x.ChequeSerialNumber == null || undefined ? \"\" : x.ChequeSerialNumber,\r\n\r\n\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t}), graphicDetail, totalchqinfomodel: responseData.Item.ChequeClearingSummaryCalculation, transactionDetail: [], chartData, selected: null, isLoading: false\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {}, searchDetail: [], graphicDetail: [], transactionDetail: [],\r\n\t\t\tchartData: [this.chartDataContent, this.chartDataContent, this.chartDataContent, this.chartDataContent, this.chartDataContent],\r\n\t\t\tselected: null\r\n\t\t});\r\n\t}\r\n\r\n\tValidate() {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { showMessageNode } = this.props;\r\n\t\tvar messages = [];\r\n\r\n\t\tif (model.LastPeriodId && (model.FromDate || model.ToDate)) {\r\n\t\t\tmessages.push(\"You can choose last or date filter same time.\");\r\n\t\t}\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tif (messages.length > 9) {\r\n\t\t\t\tvar moreWarn = messages.length - 8;\r\n\t\t\t\tmessages = messages.slice(0, 8);\r\n\t\t\t\tmessages.push(\"And \" + moreWarn + \" more warnings\");\r\n\t\t\t}\r\n\t\t\tshowMessageNode(\"error\", \"Please Fill Required Fields\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\thandleClose = () => {\r\n\t\tthis.setState({\r\n\t\t\topenDialog: false\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, searchDetail, transactionDetail, graphicDetail, selected, chartData, chqimage, totalchqinfomodel } = this.state;\r\n\t\tconst { Disabled, history, classes } = this.props;\r\n\r\n\t\tvar chartDataWithoutEmptyLength = chartData.filter(x => x.labels[0] != \"\").length;\r\n\t\tvar chartKey = 1;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
}\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t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t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t

Amount

\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t

Count

\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\tTOTAL\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t{totalchqinfomodel == null || undefined ? 0 : totalchqinfomodel.TotalAmount == null || undefined ? 0 : typeof totalchqinfomodel.TotalAmount == \"number\" ? Formatter.FormatMoney(totalchqinfomodel.TotalAmount) : totalchqinfomodel.TotalAmount}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t{totalchqinfomodel == null || undefined ? 0 : totalchqinfomodel.TotalCount == null || undefined ? 0 : typeof totalchqinfomodel.TotalCount == \"number\" ? Formatter.FormatNumber(totalchqinfomodel.TotalCount) : totalchqinfomodel.TotalCount}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nChequeClearningSummary.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any,\r\n\tclasses: PropTypes.object,\r\n};\r\nexport default withArtifex(ChequeClearningSummary, ChequeManagementStyle);\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { ApproveIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericCheckInput, GenericDateInput, GenericExpansionPanel, GenericGrid, GenericSelectInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent.jsx\";\r\nimport { Direction, GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass ChequeFacs extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.initialModel = {\r\n\t\t\tUniqueClientId: ClientHelper.IsBackOffice() ? -2 : ClientHelper.GetClientRowId(),\r\n\t\t\tDirectionParameterValue: Direction.Incoming\r\n\t\t};\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\twidth: 100\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date\",\r\n\t\t\t\taccessor: \"Date\",\r\n\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Cheque Serial Number\",\r\n\t\t\t\taccessor: \"ChequeSerialNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Cheque Account\",\r\n\t\t\t\taccessor: \"ChequeAccount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Deposit Account\",\r\n\t\t\t\taccessor: \"DepositAccount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Status\",\r\n\t\t\t\taccessor: \"ChequeStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"Amount\",\r\n\t\t\t\ttype: GridColumnType.Money\r\n\t\t\t},\r\n\r\n\r\n\t\t];\r\n\t\tthis.emptyObject = {}\r\n\t\tthis.sortedCustomerName = { Member: \"Name\" };\r\n\t\tthis.state = {\r\n\t\t\tlist: [],\r\n\t\t\tcheckedValues: [],\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tselected: null,\r\n\t\t\tisLoading: false,\r\n\t\t\tIsBackOffice: false,\r\n\t\t\tisOpenDialog: false,\r\n\t\t};\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"FACS List\");\r\n\t\tthis.props.setAppCenterTitle(\"CHEQUE MANAGEMENT\");\r\n\t\tconst { model } = { ...this.state }\r\n\t\tvar { isBackOffice } = this.state;\r\n\t\tisBackOffice = ClientHelper.IsBackOffice();\r\n\t\tif (!isBackOffice) {\r\n\t\t\tmodel.UniqueClientId = ClientHelper.GetClientRowId();\r\n\t\t}\r\n\t\tthis.setState({ model, isBackOffice });\r\n\t}\r\n\tGettingMoneyFromAccount = (item) => {\r\n\r\n\r\n\r\n\t}\r\n\tValueChanged = (name, value) => {\r\n\r\n\t\tconst model = this.state.model;\r\n\t\tmodel[name] = value;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tconst { list } = this.state;\r\n\t\tthis.setState({ model: list[index], selected: index });\r\n\t}\r\n\tDeleteConfirm = () => {\r\n\t\tconst { showConfirmMessage } = this.props;\r\n\t\tshowConfirmMessage(\"warning\", \"Warning\", \"Are you sure want to delete ?\", this.Delete);\r\n\t}\r\n\tSend = () => {\r\n\t}\r\n\tHandleCheck = (e, x) => {\r\n\r\n\t\tthis.setState(state => ({\r\n\t\t\tcheckedValues: state.checkedValues.includes(x)\r\n\t\t\t\t? state.checkedValues.filter(c => c !== x)\r\n\t\t\t\t: [...state.checkedValues, x]\r\n\t\t}));\r\n\t}\r\n\tSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst { model } = this.state;\r\n\t\tconst { showMessage } = this.props;\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/chequeapi/v1.0/cheque/BmoFacsGetList\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ list: responseData.Item || [], isLoading: false });\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, list: [], selected: null });\r\n\t}\r\n\tUpdate = () => {\r\n\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst { model } = this.state;\r\n\t\tconst { showMessage } = this.props;\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"//v1.0//Update\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"success\", \"Operation is successfully!\");\r\n\t\t\t\tthis.Clear();\r\n\t\t\t\tthis.Search();\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tDelete = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst { model } = this.state;\r\n\t\tconst { showMessage } = this.props;\r\n\t\tProxy.POST(\r\n\t\t\t\"//v1.0//Delete\",\r\n\t\t\t{\r\n\t\t\t\t\"Id\": model.Id\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"success\", \"Operation is successfully!\");\r\n\t\t\t\tthis.Clear();\r\n\t\t\t\tthis.Search();\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tSubmit = () => {\r\n\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst { model } = this.state;\r\n\t\tconst { showMessage } = this.props;\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"//v1.0//Insert\",\r\n\t\t\tmodel\r\n\t\t\t,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"success\", \"Operation is successfully!\");\r\n\t\t\t\tthis.Clear();\r\n\t\t\t\tthis.Search();\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\r\n\tValidate() {\r\n\t\tconst { model } = { ...this.state };\r\n\t\tconst { showMessageNode } = this.props;\r\n\t\tvar messages = [];\r\n\r\n\t\tif (model.UniqueClientId == -2) {\r\n\t\t\tmessages.push(\"Client can not be null.\");\r\n\t\t}\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tif (messages.length > 9) {\r\n\t\t\t\tvar moreWarn = messages.length - 8;\r\n\t\t\t\tmessages = messages.slice(0, 8);\r\n\t\t\t\tmessages.push(\"And \" + moreWarn + \" more warnings\");\r\n\t\t\t}\r\n\t\t\tshowMessageNode(\"error\", \"Please Fill Required Fields\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\thandleClose = () => {\r\n\r\n\t}\r\n\trender() {\r\n\t\tconst { classes, Disabled } = this.props;\r\n\t\tconst { alert, model, selected, columns, list, isLoading, IsBackOffice, checkedValues } = this.state;\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tActions: (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t c.Id == d.Id).length > 0}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={(e) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.HandleCheck(e, d);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t { this.GettingMoneyFromAccount(d); }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={d.ChequeStatus == \"Apporoved\" ? true : false}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDate: d.Date,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tClientName: d.ClientName,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tChequeSerialNumber: d.ChequeSerialNumber,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tChequeAccount: d.ChequeAccount,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDepositAccount: d.DepositAccount,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tChequeStatus: d.ChequeStatus,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAmount: d.Amount,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tId: d.Id,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDestinitionAccountId: d.DestinitionAccountId,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSourceAccountId: d.SourceAccountId\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tSelectedIndex={selected}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tColumns={this.columns}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tRowSelected={this.RowSelected} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nChequeFacs.propTypes = {\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default ChequeFacs;","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport ChequeManagementStyle from \"assets/jss/material-dashboard-pro-react/views/ChequeManagementStyle.jsx\";\r\nimport sweetAlertStyle from \"assets/jss/material-dashboard-pro-react/views/sweetAlertStyle.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { DetailIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericSelectInput, GenericTitle } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport TabsComponent from \"views/Components/TabsComponentPagination\";\r\nimport { Direction, GridColumnType } from \"views/Constants/Constant\";\r\nimport ChequeImageDetail from \"./ChequeImageDetail\";\r\n\r\nconst styles = ({\r\n\t...sweetAlertStyle\r\n});\r\nclass ChequeIncomingFile extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\r\n\t\t\tmodel: {\r\n\t\t\t\tDirectionParameterValue: Direction.Incoming,\r\n\t\t\t},\r\n\t\t\tlist: [],\r\n\t\t\tdailyFileList: [],\r\n\t\t\tFileId: 0,\r\n\t\t\tdailyFileDetailList: [],\r\n\t\t\tselected: null,\r\n\t\t\tisBackOffice: false,\r\n\t\t\topenDialog: false,\r\n\t\t\ttotalchqinfomodel: {},\r\n\t\t\ttotalchqdetailinfomodel: {},\r\n\t\t\tParentTabIndex: 0,\r\n\t\t\tCheckNewClient: false,\r\n\t\t\talert: \"\",\r\n\t\t\tchqinfomodel: {},\r\n\t\t\ttotalvisible: false,\r\n\t\t\tTitlerecord: \"\"\r\n\t\t}\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\t// var tempuniq = \"1\" + Formatter.PadLeft(ClientHelper.GetClientRowId(), 3, \"0\");\r\n\t\tif (this.props.setAppLeftTitle) this.props.setAppLeftTitle(\"Cheque Incoming File\");\r\n\t\tif (this.props.setAppCenterTitle) {\r\n\t\t\tthis.props.setAppCenterTitle(\"CHEQUE MANAGEMENT\");\r\n\t\t}\r\n\t\tthis.setState({ openDialog: false });\r\n\t\tvar { isBackOffice } = this.state;\r\n\t\tisBackOffice = ClientHelper.IsBackOffice();\r\n\t\tvar model = { ...this.state.model };\r\n\t\tmodel.DirectionParameterValue = Direction.Incoming;\r\n\t\tthis.setState({ isBackOffice, model });\r\n\t}\r\n\thandleChangeParentTab = (event, active, tab) => {\r\n\t\tvar { FileId, totalvisible } = { ...this.state };\r\n\t\tif (active == 0) {\r\n\t\t\tFileId = 0;\r\n\t\t\tthis.setState({ FileId, totalvisible: false });\r\n\t\t\tif (!tab || !this.state.CheckNewClient) {\r\n\t\t\t\tthis.setState({ ParentTabIndex: active, openDialog: false });\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (FileId != 0) {\r\n\t\t\tthis.setState({ FileId, totalvisible: true });\r\n\t\t\tif (!tab || !this.state.CheckNewClient) {\r\n\t\t\t\tthis.setState({ ParentTabIndex: active });\r\n\t\t\t\tProxy.POST(\r\n\t\t\t\t\t\"/chequeapi/v1.0/Cheque/GetCHQIncomingDailyDetailFileList\",\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tClientId: this.state.model.UniqueClientId,\r\n\t\t\t\t\t\tFileId: this.state.FileId\r\n\t\t\t\t\t},\r\n\t\t\t\t\tthis.successDailyDetailFileList,\r\n\t\t\t\t\tthis.errorCallback\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (FileId == 0 && active == 0) {\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// this.showErrorMessage(\"Please File Select!\");\r\n\t\t\t\tthis.ShowMessage(\"warning\", \"Please Select File!\", \"Select a file to continue.\");\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\thandleChange = (name, value, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tif (name === \"Name\") model[\"UniqueClientId\"] = value;\r\n\t\tif (name === \"UniqueClientId\") model[\"Name\"] = value;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tvar { FileId } = { ...this.state };\r\n\t\tif (FileId == 0) {\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/chequeapi/v1.0/Cheque/GetCHQIncomingDailyFileList\",\r\n\t\t\t\tthis.state.model,\r\n\t\t\t\tthis.successDailyFileList,\r\n\t\t\t\tthis.errorCallback\r\n\t\t\t);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/chequeapi/v1.0/Cheque/GetCHQIncomingDailyDetailFileList\",\r\n\t\t\t\t{\r\n\t\t\t\t\tClientId: this.state.model.UniqueClientId,\r\n\t\t\t\t\tFileId: this.state.FileId\r\n\t\t\t\t},\r\n\t\t\t\tthis.successDailyDetailFileList,\r\n\t\t\t\tthis.errorCallback\r\n\t\t\t);\r\n\t\t}\r\n\t}\r\n\tsuccessDailyDetailFileList = (responseData) => {\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.showErrorMessage(responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({\r\n\t\t\tdailyFileDetailList: responseData.Item.GetCHQIncomingDailyDetailFileList == null ? [] : responseData.Item.GetCHQIncomingDailyDetailFileList.length < 1 ? [] : responseData.Item.GetCHQIncomingDailyDetailFileList.map(x => {\r\n\t\t\t\treturn {\r\n\t\t\t\t\tCHQ: (\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t { this.OpenEditModal(x); }} />\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t),\r\n\t\t\t\t\tId: x.FileInformationId == null || undefined ? \"\" : x.FileInformationId,\r\n\t\t\t\t\tFileName: x.FileName == null || undefined ? \"\" : x.FileName,\r\n\t\t\t\t\tDate: x.FileDate == null || undefined ? \"\" : x.FileDate,\r\n\t\t\t\t\tUniqueClientId: x.UniqueClientId == null || undefined ? \"\" : x.UniqueClientId,\r\n\t\t\t\t\tClientId: x.ClientId == null || undefined ? 0 : x.ClientId,\r\n\t\t\t\t\tFileSource: x.FileSource == null || undefined ? \"\" : x.FileSource,\r\n\t\t\t\t\tSendStatus: x.SendStatus == null || undefined ? \"\" : x.SendStatus,\r\n\t\t\t\t\tRecordType: x.RecordType == null || undefined ? \"\" : x.RecordType,\r\n\t\t\t\t\tRecordCount: x.RecordCount == null || undefined ? \"\" : x.RecordCount,\r\n\t\t\t\t\tAmount: x.Amount == null || undefined ? \"\" : x.Amount,\r\n\t\t\t\t\tChequeStatus: x.ChequeStatus == null || undefined ? \"\" : x.ChequeStatus,\r\n\t\t\t\t\tInstitutionNumber: x.InstitutionNumber == null || undefined ? \"\" : x.InstitutionNumber,\r\n\t\t\t\t\tTraceNumber: x.TraceNumber == null || undefined ? \"\" : x.TraceNumber,\r\n\t\t\t\t\tMICRAccountNumber: x.MICRAccountNumber == null || undefined ? \"\" : x.MICRAccountNumber,\r\n\t\t\t\t\tOriginDataCentre: x.OriginDataCentre == null || undefined ? \"\" : x.OriginDataCentre,\r\n\t\t\t\t\tTransactionCode: x.TransactionCode == null || undefined ? \"\" : x.TransactionCode,\r\n\t\t\t\t\tTransitNumber: x.TransitNumber == null || undefined ? \"\" : x.TransitNumber,\r\n\r\n\t\t\t\t};\r\n\t\t\t}), totalchqdetailinfomodel: responseData.Item.GetCHQIncomingDetailDailyFileCalculation == null ? {} : responseData.Item.GetCHQIncomingDetailDailyFileCalculation,\r\n\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\tOpenEditModal = (item) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tvar TypeName = \"\";\r\n\t\tvar itemId = 0;\r\n\t\tvar Titlerecord = \"\";\r\n\t\tif (item.FileChequeDetail != null) {\r\n\r\n\t\t\tTypeName = \"CH\";\r\n\t\t\titemId = item.FileChequeDetail.Id\r\n\t\t\tTitlerecord = \"Cheque Image Information\"\r\n\t\t} else {\r\n\t\t\tTypeName = \"CR\";\r\n\t\t\titemId = item.FileCredit.Id\r\n\t\t\tTitlerecord = \"Credit Image Information\"\r\n\t\t}\r\n\t\tProxy.POST(\r\n\t\t\t\"/chequeapi/v1.0/Cheque/GetChequeDetailList\",\r\n\t\t\t{\r\n\t\t\t\t\"RecordId\": itemId,\r\n\t\t\t\t\"TypeName\": TypeName\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tvar chqinfomodel = responseData.Item.GetChequeDetail;\r\n\r\n\t\t\t\tthis.setState({ isLoading: false, openDialog: true, chqinfomodel, Titlerecord: Titlerecord });\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tsuccessDailyFileList = (responseData) => {\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.showErrorMessage(responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({\r\n\t\t\tdailyFileList: responseData.Item == null ? [] : responseData.Item.length < 1 ? [] : responseData.Item.GetCHQIncomingDailyFileList.map(x => {\r\n\t\t\t\treturn {\r\n\t\t\t\t\tId: x.FileInformationId == null || undefined ? \"\" : x.FileInformationId,\r\n\t\t\t\t\tFileId: x.FileInformationId == null || undefined ? \"\" : x.FileInformationId,\r\n\t\t\t\t\tFileName: x.FileName == null || undefined ? \"\" : x.FileName,\r\n\t\t\t\t\tFileDate: x.FileDate == null || undefined ? \"\" : x.FileDate,\r\n\t\t\t\t\tFileSource: x.FileSource == null || undefined ? \"\" : x.FileSource,\r\n\t\t\t\t\tFileCreationNumber: x.FileCreationNumber == null || undefined ? \"\" : x.FileCreationNumber,\r\n\t\t\t\t\tOriginDataCentre: x.OriginDataCentre == null || undefined ? \"\" : x.OriginDataCentre,\r\n\t\t\t\t\tSendStatus: x.SendStatus == null || undefined ? \"\" : x.SendStatus,\r\n\t\t\t\t\tCreditDebitTotalAmount: x.CreditDebitTotalAmount == null || undefined ? 0 : x.CreditDebitTotalAmount,\r\n\t\t\t\t\tCreditDebitTotalCount: x.CreditDebitTotalCount == null || undefined ? 0 : x.CreditDebitTotalCount,\r\n\t\t\t\t\tTotalAmount: x.TotalAmount == null || undefined ? 0 : x.TotalAmount,\r\n\t\t\t\t\tTotalCount: x.TotalCount == null || undefined ? 0 : x.TotalCount,\r\n\t\t\t\t};\r\n\t\t\t}), isLoading: false\r\n\t\t});\r\n\r\n\t\tthis.setState({ totalchqinfomodel: responseData.Item.GetCHQIncomingDailyFileCalculation });\r\n\r\n\t}\r\n\terrorCallback = (error) => {\r\n\t\tthis.showErrorMessage(\"An error occurred during the api visit\" + error);\r\n\t}\r\n\tshowErrorMessage = (message) => {\r\n\t\tthis.setState({\r\n\t\t\tisLoading: false,\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert:\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t});\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {\r\n\t\t\t\tDirectionParameterValue: Direction.Incoming,\r\n\t\t\t}, dailyFileList: [], totalchqinfomodel: {}, FileId: 0, totalchqdetailinfomodel: {}\r\n\t\t});\r\n\t}\r\n\thandleClose = () => {\r\n\t\tthis.setState({\r\n\t\t\topenDialog: false\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes } = this.props;\r\n\t\tconst { model, dailyFileList, selected, FileId, dailyFileDetailList, isBackOffice, totalchqinfomodel, totalvisible, totalchqdetailinfomodel, Titlerecord } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t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\t\t\t\ttabButton: \"File Details\",\r\n\t\t\t\t\t\t\t\t\t\t\ttabContent: (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.setState({ model: dailyFileDetailList[index], selected: index });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{totalvisible == false ?\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t

Cheque Amount

\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t

Cheque Count

\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tTOTAL\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t{totalchqinfomodel == null || undefined ? 0 : totalchqinfomodel.ChequeTotalAmount == null || undefined ? 0 : typeof totalchqinfomodel.ChequeTotalAmount == \"number\" ? Formatter.FormatMoney(totalchqinfomodel.ChequeTotalAmount) : totalchqinfomodel.ChequeTotalAmount}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t{totalchqinfomodel == null || undefined ? 0 : totalchqinfomodel.ChequeTotalCount == null || undefined ? 0 : typeof totalchqinfomodel.ChequeTotalCount == \"number\" ? Formatter.FormatNumber(totalchqinfomodel.ChequeTotalCount) : totalchqinfomodel.ChequeTotalCount}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t

Deposit Amount

\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t

Deposit Count

\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tTOTAL\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t{totalchqdetailinfomodel == null || undefined ? 0 : totalchqdetailinfomodel.TotalDepositAmount == null || undefined ? 0 : typeof totalchqdetailinfomodel.TotalDepositAmount == \"number\" ? Formatter.FormatMoney(totalchqdetailinfomodel.TotalDepositAmount) : totalchqdetailinfomodel.TotalDepositAmount}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t{totalchqdetailinfomodel == null || undefined ? 0 : totalchqdetailinfomodel.TotalDepositCount == null || undefined ? 0 : typeof totalchqdetailinfomodel.TotalDepositCount == \"number\" ? Formatter.FormatNumber(totalchqdetailinfomodel.TotalDepositCount) : totalchqdetailinfomodel.TotalDepositCount}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\nChequeIncomingFile.propTypes =\r\n\t{\r\n\t\tsetAppLeftTitle: PropTypes.func,\r\n\t\tsetAppCenterTitle: PropTypes.func,\r\n\t\tDisabled: PropTypes.bool,\r\n\t\tmenuId: PropTypes.any,\r\n\t\tApprovalData: PropTypes.any,\r\n\t\tAfter: PropTypes.any\r\n\r\n\t};\r\nexport default withArtifex(ChequeIncomingFile, ChequeManagementStyle);\r\n","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport ChequeManagementStyle from \"assets/jss/material-dashboard-pro-react/views/ChequeManagementStyle.jsx\";\r\nimport sweetAlertStyle from \"assets/jss/material-dashboard-pro-react/views/sweetAlertStyle.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { DetailIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericSelectInput, GenericTitle } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport TabsComponent from \"views/Components/TabsComponentPagination\";\r\nimport { Direction, GridColumnType } from \"views/Constants/Constant.js\";\r\nimport ChequeImageDetail from \"./ChequeImageDetail\";\r\n\r\nconst styles = ({\r\n\t...sweetAlertStyle\r\n});\r\nclass ChequeOutgoingFile extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tDirectionParameterValue: Direction.Outgoing,\r\n\t\t\t},\r\n\t\t\tlist: [],\r\n\t\t\tdailyFileList: [],\r\n\t\t\tFileId: 0,\r\n\t\t\tdailyFileDetailList: [],\r\n\t\t\tselected: null,\r\n\t\t\tisBackOffice: false,\r\n\t\t\topenDialog: false,\r\n\t\t\ttotalchqinfomodel: {},\r\n\t\t\ttotalchqdetailinfomodel: {},\r\n\t\t\tParentTabIndex: 0,\r\n\t\t\tCheckNewClient: false,\r\n\t\t\talert: \"\",\r\n\t\t\tchqinfomodel: {},\r\n\t\t\ttotalvisible: false,\r\n\t\t\tTitlerecord: \"\"\r\n\t\t}\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\t// var tempuniq = \"1\" + Formatter.PadLeft(ClientHelper.GetClientRowId(), 3, \"0\");\r\n\t\tif (this.props.setAppLeftTitle) this.props.setAppLeftTitle(\"Cheque Outgoing File\");\r\n\t\tif (this.props.setAppCenterTitle) {\r\n\t\t\tthis.props.setAppCenterTitle(\"CHEQUE MANAGEMENT\");\r\n\t\t}\r\n\t\tthis.setState({ openDialog: false });\r\n\t\tvar { isBackOffice } = this.state;\r\n\t\tisBackOffice = ClientHelper.IsBackOffice();\r\n\t\tvar model = { ...this.state.model };\r\n\t\tmodel.DirectionParameterValue = Direction.Outgoing;\r\n\t\tthis.setState({ isBackOffice, model });\r\n\t}\r\n\thandleChangeParentTab = (event, active, tab) => {\r\n\t\tvar { FileId, totalvisible } = { ...this.state };\r\n\t\tif (active == 0) {\r\n\t\t\tFileId = 0;\r\n\t\t\tthis.setState({ FileId, totalvisible: false });\r\n\t\t\tif (!tab || !this.state.CheckNewClient) {\r\n\t\t\t\tthis.setState({ ParentTabIndex: active, openDialog: false });\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (FileId != 0) {\r\n\t\t\tthis.setState({ FileId, totalvisible: true });\r\n\t\t\tif (!tab || !this.state.CheckNewClient) {\r\n\t\t\t\tthis.setState({ ParentTabIndex: active });\r\n\t\t\t\tProxy.POST(\r\n\t\t\t\t\t\"/chequeapi/v1.0/Cheque/GetCHQOutgoingDailyDetailFileList\",\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tClientId: this.state.model.UniqueClientId,\r\n\t\t\t\t\t\tFileId: this.state.FileId\r\n\t\t\t\t\t},\r\n\t\t\t\t\tthis.successDailyDetailFileList,\r\n\t\t\t\t\tthis.errorCallback\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (FileId == 0 && active == 0) {\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// this.showErrorMessage(\"Please File Select!\");\r\n\t\t\t\tthis.ShowMessage(\"warning\", \"Please Select File!\", \"Select a file to continue.\");\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\thandleChange = (name, value, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tif (name === \"Name\") model[\"UniqueClientId\"] = value;\r\n\t\tif (name === \"UniqueClientId\") model[\"Name\"] = value;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\tSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tvar { FileId } = { ...this.state };\r\n\t\tif (FileId == 0) {\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/chequeapi/v1.0/Cheque/GetCHQOutgoingDailyFileList\",\r\n\t\t\t\tthis.state.model,\r\n\t\t\t\tthis.successDailyFileList,\r\n\t\t\t\tthis.errorCallback\r\n\t\t\t);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/chequeapi/v1.0/Cheque/GetCHQOutgoingDailyDetailFileList\",\r\n\t\t\t\t{\r\n\t\t\t\t\tClientId: this.state.model.UniqueClientId,\r\n\t\t\t\t\tFileId: this.state.FileId\r\n\t\t\t\t},\r\n\t\t\t\tthis.successDailyDetailFileList,\r\n\t\t\t\tthis.errorCallback\r\n\t\t\t);\r\n\r\n\t\t}\r\n\t}\r\n\tsuccessDailyDetailFileList = (responseData) => {\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.showErrorMessage(responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({\r\n\t\t\tdailyFileDetailList: responseData.Item.GetCHQOutgoingDailyDetailFileList == null ? [] : responseData.Item.GetCHQOutgoingDailyDetailFileList.length < 1 ? [] : responseData.Item.GetCHQOutgoingDailyDetailFileList.map(x => {\r\n\t\t\t\treturn {\r\n\t\t\t\t\tActions: (\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t { this.OpenEditModal(x); }} />\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t),\r\n\t\t\t\t\tId: x.FileInformationId == null || undefined ? \"\" : x.FileInformationId,\r\n\t\t\t\t\tFileName: x.FileName == null || undefined ? \"\" : x.FileName,\r\n\t\t\t\t\tDate: x.FileDate == null || undefined ? \"\" : x.FileDate,\r\n\t\t\t\t\tUniqueClientId: x.UniqueClientId == null || undefined ? \"\" : x.UniqueClientId,\r\n\t\t\t\t\tClientId: x.ClientId == null || undefined ? 0 : x.ClientId,\r\n\t\t\t\t\tFileSource: x.FileSource == null || undefined ? \"\" : x.FileSource,\r\n\t\t\t\t\tSendStatus: x.SendStatus == null || undefined ? \"\" : x.SendStatus,\r\n\t\t\t\t\tChequeStatus: x.ChequeStatus == null || undefined ? \"\" : x.ChequeStatus,\r\n\t\t\t\t\tFileHeaderRecordType: x.FileHeader.RecordType == null || undefined ? '' : x.FileHeader.RecordType,\r\n\t\t\t\t\tRecordName: x.FileChequeDetail == null ? \"Credit\" : \"Cheque\",\r\n\t\t\t\t\tFileHeaderStandardLevel: x.FileHeader.StandardLevel == null || undefined ? '' : x.FileHeader.StandardLevel,\r\n\t\t\t\t\tFileHeaderTestFileIndicator: x.FileHeader.TestFileIndicator == null || undefined ? '' : x.FileHeader.TestFileIndicator,\r\n\t\t\t\t\tFileHeaderImmediateDestinationRoutingNumber: x.FileHeader.ImmediateDestinationRoutingNumber == null || undefined ? '' : x.FileHeader.ImmediateDestinationRoutingNumber,\r\n\t\t\t\t\tFileHeaderImmediateOriginRoutingNumber: x.FileHeader.ImmediateOriginRoutingNumber == null || undefined ? '' : x.FileHeader.ImmediateOriginRoutingNumber,\r\n\t\t\t\t\tFileHeaderFileCreationDate: x.FileHeader.FileCreationDate == null || undefined ? '' : x.FileHeader.FileCreationDate,\r\n\t\t\t\t\tFileHeaderFileCreationTime: x.FileHeader.FileCreationTime == null || undefined ? '' : x.FileHeader.FileCreationTime,\r\n\t\t\t\t\tFileHeaderResendIndicator: x.FileHeader.ResendIndicator == null || undefined ? '' : x.FileHeader.ResendIndicator,\r\n\t\t\t\t\tFileHeaderFileIdModifier: x.FileHeader.FileIdModifier == null || undefined ? '' : x.FileHeader.FileIdModifier,\r\n\t\t\t\t\tFileCashLetterHeaderRecordType: x.FileCashLetterHeader.RecordType == null || undefined ? '' : x.FileCashLetterHeader.RecordType,\r\n\t\t\t\t\tFileCashLetterHeaderCollectionTypeIndicator: x.FileCashLetterHeader.CollectionTypeIndicator == null || undefined ? '' : x.FileCashLetterHeader.CollectionTypeIndicator,\r\n\t\t\t\t\tFileCashLetterHeaderDestinationRoutingNumber: x.FileCashLetterHeader.DestinationRoutingNumber == null || undefined ? '' : x.FileCashLetterHeader.DestinationRoutingNumber,\r\n\t\t\t\t\tFileCashLetterHeaderECEInstitutionRoutingNumber: x.FileCashLetterHeader.ECEInstitutionRoutingNumber == null || undefined ? '' : x.FileCashLetterHeader.ECEInstitutionRoutingNumber,\r\n\t\t\t\t\tFileCashLetterHeaderCashLetterBusinessDate: x.FileCashLetterHeader.CashLetterBusinessDate == null || undefined ? '' : x.FileCashLetterHeader.CashLetterBusinessDate,\r\n\t\t\t\t\tFileCashLetterHeaderCashLetterCreationDate: x.FileCashLetterHeader.CashLetterCreationDate == null || undefined ? '' : x.FileCashLetterHeader.CashLetterCreationDate,\r\n\t\t\t\t\tFileCashLetterHeaderCashLetterCreationTime: x.FileCashLetterHeader.CashLetterCreationTime == null || undefined ? '' : x.FileCashLetterHeader.CashLetterCreationTime,\r\n\t\t\t\t\tFileCashLetterHeaderCashLetterRecordTypeIndicator: x.FileCashLetterHeader.CashLetterRecordTypeIndicator == null || undefined ? '' : x.FileCashLetterHeader.CashLetterRecordTypeIndicator,\r\n\t\t\t\t\tFileCashLetterHeaderCashLetterDocumentationTypeIndicator: x.FileCashLetterHeader.CashLetterDocumentationTypeIndicator == null || undefined ? '' : x.FileCashLetterHeader.CashLetterDocumentationTypeIndicator,\r\n\t\t\t\t\tFileCashLetterHeaderCashLetterId: x.FileCashLetterHeader.CashLetterId == null || undefined ? '' : x.FileCashLetterHeader.CashLetterId,\r\n\t\t\t\t\tFileBundleHeaderRecordType: x.FileBundleHeader.RecordType == null || undefined ? '' : x.FileBundleHeader.RecordType,\r\n\t\t\t\t\tFileBundleHeaderBundleBusinessDate: x.FileBundleHeader.BundleBusinessDate == null || undefined ? '' : x.FileBundleHeader.BundleBusinessDate,\r\n\t\t\t\t\tFileBundleHeaderBundleCreationDate: x.FileBundleHeader.BundleCreationDate == null || undefined ? '' : x.FileBundleHeader.BundleCreationDate,\r\n\t\t\t\t\tFileBundleHeaderBundleId: x.FileBundleHeader.BundleId == null || undefined ? '' : x.FileBundleHeader.BundleId,\r\n\t\t\t\t\tFileBundleHeaderBundleSequenceNumber: x.FileBundleHeader.BundleSequenceNumber == null || undefined ? '' : x.FileBundleHeader.BundleSequenceNumber,\r\n\t\t\t\t\tFileCreditRecordType: x.FileCredit == null || undefined ? '' : x.FileCredit.RecordType,\r\n\t\t\t\t\tFileCreditAuxiliaryOnUs: x.FileCredit == null || undefined ? '' : x.FileCredit.AuxiliaryOnUs,\r\n\t\t\t\t\tFileCreditPostingAccountRoutingNumber: x.FileCredit == null || undefined ? '' : x.FileCredit.PostingAccountRoutingNumber,\r\n\t\t\t\t\tFileCreditOnUsAccount: x.FileCredit == null || undefined ? '' : x.FileCredit.OnUsAccount,\r\n\t\t\t\t\tFileCreditItemAmount: x.FileCredit == null || undefined ? '' : x.FileCredit.ItemAmount,\r\n\t\t\t\t\tFileCreditECEInstitutionItemSequenceNumber: x.FileCredit == null || undefined ? '' : x.FileCredit.ECEInstitutionItemSequenceNumber,\r\n\t\t\t\t\tFileCreditDocumentationTypeIndicator: x.FileCredit == null || undefined ? '' : x.FileCredit.DocumentationTypeIndicator,\r\n\t\t\t\t\tFileCreditDebitCreditIndicator: x.FileCredit == null || undefined ? '' : x.FileCredit.DebitCreditIndicator,\r\n\t\t\t\t\tFileChequeDetailRecordType: x.FileChequeDetail == null || undefined ? '' : x.FileChequeDetail.RecordType,\r\n\t\t\t\t\tFileChequeDetailAuxiliaryOnUs: x.FileChequeDetail == null || undefined ? '' : x.FileChequeDetail.AuxiliaryOnUs,\r\n\t\t\t\t\tFileChequeDetailPayorBankRoutingNumber: x.FileChequeDetail == null || undefined ? '' : x.FileChequeDetail.PayorBankRoutingNumber,\r\n\t\t\t\t\tFileChequeDetailPayorBankRoutingCheckDigit: x.FileChequeDetail == null || undefined ? '' : x.FileChequeDetail.PayorBankRoutingCheckDigit,\r\n\t\t\t\t\tFileChequeDetailOnUsAccount: x.FileChequeDetail == null || undefined ? '' : x.FileChequeDetail.OnUsAccount,\r\n\t\t\t\t\tFileChequeDetailItemAmount: x.FileChequeDetail == null || undefined ? '' : x.FileChequeDetail.ItemAmount,\r\n\t\t\t\t\tFileChequeDetailECEInstitutionItemSequenceNumber: x.FileChequeDetail == null || undefined ? '' : x.FileChequeDetail.ECEInstitutionItemSequenceNumber,\r\n\t\t\t\t\tFileChequeDetailDocumentationTypeIndicator: x.FileChequeDetail == null || undefined ? '' : x.FileChequeDetail.DocumentationTypeIndicator,\r\n\t\t\t\t\tFileChequeDetailBOFDIndicator: x.FileChequeDetail == null || undefined ? '' : x.FileChequeDetail.BOFDIndicator,\r\n\t\t\t\t\tFileChequeDetailChequeDetailRecordAddendumCount: x.FileChequeDetail == null || undefined ? '' : x.FileChequeDetail.ChequeDetailRecordAddendumCount,\r\n\t\t\t\t\tFileBundleControlRecordType: x.FileBundleControl.RecordType == null || undefined ? '' : x.FileBundleControl.RecordType,\r\n\t\t\t\t\tFileBundleControlItemsWithinBundleCount: x.FileBundleControl.ItemsWithinBundleCount == null || undefined ? '' : x.FileBundleControl.ItemsWithinBundleCount,\r\n\t\t\t\t\tFileBundleControlBundleTotalAmount: x.FileBundleControl.BundleTotalAmount == null || undefined ? '' : x.FileBundleControl.BundleTotalAmount,\r\n\t\t\t\t\tFileBundleControlImagesWithinBundleCount: x.FileBundleControl.ImagesWithinBundleCount == null || undefined ? '' : x.FileBundleControl.ImagesWithinBundleCount,\r\n\t\t\t\t\tFileCashLetterControlRecordType: x.FileCashLetterControl.RecordType == null || undefined ? '' : x.FileCashLetterControl.RecordType,\r\n\t\t\t\t\tFileCashLetterControlBundleCount: x.FileCashLetterControl.BundleCount == null || undefined ? '' : x.FileCashLetterControl.BundleCount,\r\n\t\t\t\t\tFileCashLetterControlItemsWithinCashLetterCount: x.FileCashLetterControl.ItemsWithinCashLetterCount == null || undefined ? '' : x.FileCashLetterControl.ItemsWithinCashLetterCount,\r\n\t\t\t\t\tFileCashLetterControlImagesWithinBundleCount: x.FileCashLetterControl.ImagesWithinBundleCount == null || undefined ? '' : x.FileCashLetterControl.ImagesWithinBundleCount,\r\n\t\t\t\t\tFileControlRecordType: x.FileControl.RecordType == null || undefined ? '' : x.FileControl.RecordType,\r\n\t\t\t\t\tFileControlCashLetterCount: x.FileControl.CashLetterCount == null || undefined ? '' : x.FileControl.CashLetterCount,\r\n\t\t\t\t\tFileControlTotalRecordCount: x.FileControl.TotalRecordCount == null || undefined ? '' : x.FileControl.TotalRecordCount,\r\n\t\t\t\t\tFileControlTotalItemCount: x.FileControl.TotalItemCount == null || undefined ? '' : x.FileControl.TotalItemCount,\r\n\t\t\t\t\tFileControlFileTotalAmount: x.FileControl.FileTotalAmount == null || undefined ? '' : x.FileControl.FileTotalAmount,\r\n\r\n\r\n\r\n\r\n\t\t\t\t};\r\n\t\t\t}), totalchqdetailinfomodel: responseData.Item.GetCHQOutgoingDetailDailyFileCalculation == null ? {} : responseData.Item.GetCHQOutgoingDetailDailyFileCalculation,\r\n\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\tOpenEditModal = (item) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tvar TypeName = \"\";\r\n\t\tvar itemId = 0;\r\n\t\tvar Titlerecord = \"\";\r\n\t\tif (item.FileChequeDetail != null) {\r\n\r\n\t\t\tTypeName = \"CH\";\r\n\t\t\titemId = item.FileChequeDetail.Id\r\n\t\t\tTitlerecord = \"Cheque Image Information\"\r\n\t\t} else {\r\n\t\t\tTypeName = \"CR\";\r\n\t\t\titemId = item.FileCredit.Id\r\n\t\t\tTitlerecord = \"Credit Image Information\"\r\n\r\n\t\t}\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/chequeapi/v1.0/Cheque/GetChequeDetailList\",\r\n\t\t\t{\r\n\t\t\t\t\"RecordId\": itemId,\r\n\t\t\t\t\"TypeName\": TypeName\r\n\t\t\t},\r\n\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvar chqinfomodel = responseData.Item.GetChequeDetail;\r\n\r\n\t\t\t\tthis.setState({ isLoading: false, openDialog: true, chqinfomodel, Titlerecord: Titlerecord });\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\r\n\t}\r\n\tsuccessDailyFileList = (responseData) => {\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.showErrorMessage(responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({\r\n\r\n\t\t\tdailyFileList: responseData.Item == null ? [] : responseData.Item.length < 1 ? [] : responseData.Item.GetCHQOutgoingDailyFileList.map(x => {\r\n\t\t\t\treturn {\r\n\r\n\t\t\t\t\tId: x.FileInformationId == null || undefined ? \"\" : x.FileInformationId,\r\n\t\t\t\t\tFileId: x.FileInformationId == null || undefined ? \"\" : x.FileInformationId,\r\n\t\t\t\t\tFileName: x.FileName == null || undefined ? \"\" : x.FileName,\r\n\t\t\t\t\tFileDate: x.FileDate == null || undefined ? \"\" : x.FileDate,\r\n\t\t\t\t\tFileCrationNumber: x.FileCreationNumber == null || undefined ? \"\" : x.FileCreationNumber,\r\n\t\t\t\t\tFileSource: x.FileSource == null || undefined ? \"\" : x.FileSource,\r\n\t\t\t\t\tRecordCount: x.RecordCount == null || undefined ? \"\" : x.RecordCount,\r\n\t\t\t\t\tRejectedCount: x.RejectedCount == null || undefined ? \"\" : x.RejectedCount,\r\n\t\t\t\t\tSendStatus: x.SendStatus == null || undefined ? \"\" : x.SendStatus,\r\n\t\t\t\t\tCreditDebitTotalAmount: x.CreditDebitTotalAmount == null || undefined ? 0 : x.CreditDebitTotalAmount,\r\n\t\t\t\t\tCreditDebitTotalCount: x.CreditDebitTotalCount == null || undefined ? 0 : x.CreditDebitTotalCount,\r\n\t\t\t\t\tChequeTotalAmount: x.ChequeTotalAmount == null || undefined ? 0 : x.ChequeTotalAmount,\r\n\t\t\t\t\tChequeTotalCount: x.ChequeTotalCount == null || undefined ? 0 : x.ChequeTotalCount,\r\n\r\n\r\n\r\n\r\n\t\t\t\t};\r\n\t\t\t}), isLoading: false\r\n\t\t});\r\n\r\n\t\tthis.setState({ totalchqinfomodel: responseData.Item.GetCHQOutgoingDailyFileCalculation });\r\n\r\n\t}\r\n\terrorCallback = (error) => {\r\n\t\tthis.showErrorMessage(\"An error occurred during the api visit\" + error);\r\n\t}\r\n\r\n\tshowErrorMessage = (message) => {\r\n\t\tthis.setState({\r\n\t\t\tisLoading: false,\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\r\n\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert:\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t});\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {\r\n\t\t\t\tDirectionParameterValue: Direction.Outgoing, dailyFileDetailList: [],\r\n\t\t\t}, dailyFileList: [], totalchqinfomodel: {}, FileId: 0, totalchqdetailinfomodel: {}\r\n\t\t});\r\n\r\n\r\n\t}\r\n\thandleClose = () => {\r\n\t\tthis.setState({\r\n\t\t\topenDialog: false\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes } = this.props;\r\n\t\tconst { model, dailyFileList, selected, FileId, dailyFileDetailList, isBackOffice, totalchqinfomodel, totalvisible, totalchqdetailinfomodel, Titlerecord } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{}\r\n\t\t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\t\t\t\t\t\t\t\t\tHeader: \"Cheque Total Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ChequeTotalAmount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType:GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Cheque Total Count\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ChequeTotalCount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{Formatter.FormatNumber(row.value)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Status\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"SendStatus\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tRowSelected={index => {\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.setState({ FileId: dailyFileList[index].FileId, selected: index });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\ttabButton: \"File Details\",\r\n\t\t\t\t\t\t\t\t\t\t\ttabContent: (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.setState({ model: dailyFileDetailList[index], selected: index });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{totalvisible == false ?\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t

Cheque Amount

\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t

Cheque Count

\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t

Credit/Debit Amount

\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t

Credit/Debit Count

\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tTOTAL\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t{totalchqinfomodel == null || undefined ? 0 : totalchqinfomodel.ChequeTotalAmount == null || undefined ? 0 : typeof totalchqinfomodel.ChequeTotalAmount == \"number\" ? Formatter.FormatMoney(totalchqinfomodel.ChequeTotalAmount) : totalchqinfomodel.ChequeTotalAmount}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t{totalchqinfomodel == null || undefined ? 0 : totalchqinfomodel.ChequeTotalCount == null || undefined ? 0 : typeof totalchqinfomodel.ChequeTotalCount == \"number\" ? Formatter.FormatNumber(totalchqinfomodel.ChequeTotalCount) : totalchqinfomodel.ChequeTotalCount}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t{totalchqinfomodel == null || undefined ? 0 : totalchqinfomodel.DebitCreditTotalAmount == null || undefined ? 0 : typeof totalchqinfomodel.DebitCreditTotalAmount == \"number\" ? Formatter.FormatMoney(totalchqinfomodel.DebitCreditTotalAmount) : totalchqinfomodel.DebitCreditTotalAmount}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t{totalchqinfomodel == null || undefined ? 0 : totalchqinfomodel.DebitCreditTotalCount == null || undefined ? 0 : typeof totalchqinfomodel.DebitCreditTotalCount == \"number\" ? Formatter.FormatNumber(totalchqinfomodel.DebitCreditTotalCount) : totalchqinfomodel.DebitCreditTotalCount}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t

Deposit Amount

\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t

Deposit Count

\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tTOTAL\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t{totalchqdetailinfomodel == null || undefined ? 0 : totalchqdetailinfomodel.TotalDepositAmount == null || undefined ? 0 : typeof totalchqdetailinfomodel.TotalDepositAmount == \"number\" ? Formatter.FormatMoney(totalchqdetailinfomodel.TotalDepositAmount) : totalchqdetailinfomodel.TotalDepositAmount}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t{totalchqdetailinfomodel == null || undefined ? 0 : totalchqdetailinfomodel.TotalDepositCount == null || undefined ? 0 : typeof totalchqdetailinfomodel.TotalDepositCount == \"number\" ? Formatter.FormatNumber(totalchqdetailinfomodel.TotalDepositCount) : totalchqdetailinfomodel.TotalDepositCount}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\nChequeOutgoingFile.propTypes =\r\n\t{\r\n\t\tsetAppLeftTitle: PropTypes.func,\r\n\t\tsetAppCenterTitle: PropTypes.func,\r\n\t\tDisabled: PropTypes.bool,\r\n\t\tmenuId: PropTypes.any,\r\n\t\tApprovalData: PropTypes.any,\r\n\t\tAfter: PropTypes.any\r\n\r\n\t};\r\nexport default withArtifex(ChequeOutgoingFile, ChequeManagementStyle);\r\n","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes, { func } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericSelectInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport TabsComponent from \"views/Components/TabsComponent\";\r\nimport { Direction, ProgramCodes, GridColumnType } from \"views/Constants/Constant\";\r\nimport CDIC from \"./ReconciliationTabs/ReconciliationCDICTab\";\r\nimport DDT from \"./ReconciliationTabs/ReconciliationDDTTab\";\r\nimport EFT from \"./ReconciliationTabs/ReconciliationEFTTab\";\r\nimport ETransfer from \"./ReconciliationTabs/ReconciliationeTransferTab\";\r\n\r\nclass ClientReconciliation extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tSettlementDate: DateHelper.GetDate()\r\n\t\t\t},\r\n\t\t\topen: false,\r\n\t\t\tEFTIncomingSummary: { GapList: {} },\r\n\t\t\tEFTOutgoingSummary: { GapList: {} },\r\n\t\t\tETransferIncomingSummary: { GapList: {} },\r\n\t\t\tETransferOutgoingSummary: { GapList: {} },\r\n\t\t\tCDICSummary: { GapList: {} },\r\n\t\t\tDDTSummary: { GapList: {} },\r\n\t\t\tisLoading: false,\r\n\t\t\tGapList: [],\r\n\t\t\tGapProgramCode: \"\",\r\n\t\t\tpanel1Active: true\r\n\t\t};\r\n\t\tthis.handleChange = this.handleChange.bind(this);\r\n\t\tthis.GetData = this.GetData.bind(this);\r\n\t\tthis.errorCallback = this.errorCallback.bind(this);\r\n\t\tthis.hideAlert = this.hideAlert.bind(this);\r\n\t\tthis.showErrorMessage = this.showErrorMessage.bind(this);\r\n\t\tthis.successSummaryCallback = this.successSummaryCallback.bind(this);\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Client Reconciliation\");\r\n\t\tthis.props.setAppCenterTitle(\"CLEARING & SETTLEMENT\");\r\n\t}\r\n\r\n\thandleChange(name, newValue) {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tSumValues = (...arr) => {\r\n\t\treturn arr.length > 0 ? arr[0].reduce((a, b) => a + b, 0) : 0;\r\n\t}\r\n\r\n\thandleClickOpen = (program, direction) => {\r\n\t\tvar GapList = { ...this.state.GapList };\r\n\t\tvar { GapProgramCode } = this.state;\r\n\t\tif (program == ProgramCodes.Bank_Programs_EFT) { //EFT\r\n\t\t\tGapProgramCode = ProgramCodes.Bank_Programs_EFT;\r\n\t\t\tif (direction == Direction.Incoming)\r\n\t\t\t\tGapList = this.state.EFTIncomingSummary.GapList;\r\n\t\t\telse\r\n\t\t\t\tGapList = this.state.EFTOutgoingSummary.GapList;\r\n\t\t}\r\n\t\tif (program == ProgramCodes.Bank_Programs_e_Transfer) { // ETRANSFER\r\n\t\t\tGapProgramCode = ProgramCodes.Bank_Programs_e_Transfer;\r\n\t\t\tif (direction == Direction.Incoming)\r\n\t\t\t\tGapList = this.state.ETransferIncomingSummary.GapList;\r\n\t\t\telse\r\n\t\t\t\tGapList = this.state.ETransferOutgoingSummary.GapList;\r\n\t\t}\r\n\t\tif (program == ProgramCodes.Bank_Programs_DDT) { // DDT\r\n\t\t\tGapProgramCode = ProgramCodes.Bank_Programs_DDT;\r\n\t\t\tGapList = this.state.DDTSummary.GapList;\r\n\t\t}\r\n\t\tif (program == ProgramCodes.Bank_Programs_CDIC) { // CDIC\r\n\t\t\tGapProgramCode = ProgramCodes.Bank_Programs_CDIC;\r\n\t\t\tGapList = this.state.CDICSummary.GapList;\r\n\t\t}\r\n\r\n\t\tif (GapList.length > 0)\r\n\t\t\tthis.setState({ open: true, GapList, GapProgramCode });\r\n\t\telse\r\n\t\t\tthis.setState({\r\n\t\t\t\tisLoading: false, GapList, GapProgramCode,\r\n\t\t\t\talert: this.hideAlert()} />\r\n\t\t\t});\r\n\t}\r\n\r\n\tGetData() {\r\n\t\tif (this.state.model.SettlementDate == null || this.state.model.ClientId == null)\r\n\t\t\tthis.showErrorMessage(\"Client and Settlement Date can not be empty !!\");\r\n\t\telse {\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/bankapi/v1.0/ClearingSettlement/GetReconciliationBySettlementDate\",\r\n\t\t\t\tthis.state.model,\r\n\t\t\t\tthis.successSummaryCallback,\r\n\t\t\t\tthis.errorCallback\r\n\t\t\t);\r\n\t\t}\r\n\t}\r\n\r\n\tsuccessSummaryCallback(responseData) {\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.showErrorMessage(responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (responseData.Item == null) {\r\n\t\t\tthis.setState({\r\n\t\t\t\tisLoading: false, panel1Active: false,\r\n\t\t\t\tEFTIncomingSummary: {},\r\n\t\t\t\tEFTOutgoingSummary: {},\r\n\t\t\t\tETransferIncomingSummary: {},\r\n\t\t\t\tETransferOutgoingSummary: {},\r\n\t\t\t\tCDICSummary: {},\r\n\t\t\t\tDDTSummary: {},\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\tthis.setState({\r\n\t\t\t\tisLoading: false, panel1Active: false,\r\n\t\t\t\tEFTIncomingSummary: responseData.Item.EFTIncomingSummary,\r\n\t\t\t\tEFTOutgoingSummary: responseData.Item.EFTOutgoingSummary,\r\n\t\t\t\tETransferIncomingSummary: responseData.Item.ETransferIncomingSummary,\r\n\t\t\t\tETransferOutgoingSummary: responseData.Item.ETransferOutgoingSummary,\r\n\t\t\t\tCDICSummary: responseData.Item.CDICSummary,\r\n\t\t\t\tDDTSummary: responseData.Item.DDTSummary,\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\r\n\terrorCallback(error) {\r\n\t\tthis.showErrorMessage(\"An error occurred during the api visit\" + error);\r\n\t}\r\n\r\n\tshowErrorMessage(message) {\r\n\t\tthis.setState({\r\n\t\t\tisLoading: false,\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\r\n\thandleClose = () => {\r\n\t\tthis.setState({ open: false });\r\n\t}\r\n\r\n\thideAlert() {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\thandleClear = () => {\r\n\t\tthis.setState({ model: { SettlementDate: DateHelper.GetDate() } });\r\n\t}\r\n\r\n\tHandleChangeFilterPanel = (event, expanded) => {\r\n\t\tthis.setState({ panel1Active: expanded ? true : false });\r\n\t}\r\n\trender() {\r\n\t\tvar { Disabled } = this.props;\r\n\t\tconst { model, isLoading, GapProgramCode } = this.state;\r\n\t\tvar data = this.state.GapList == undefined || this.state.GapList == null ? [] : this.state.GapList.map(d => {\r\n\t\t\treturn {\r\n\t\t\t\tProgramCode: d.ProgramName == null || undefined ? \"\" : d.ProgramName || \"\",\r\n\t\t\t\tPayeeName: d.PayeeName == null || undefined ? \"\" : d.PayeeName || \"\",\r\n\t\t\t\tAccountNumberStr: d.AccountNumberStr == null || undefined ? \"\" : d.AccountNumberStr || \"\",\r\n\t\t\t\tTransactionStatus: d.TransactionStatus == null || undefined ? \"\" : d.TransactionStatus || \"\",\r\n\t\t\t\tTransactionType: d.TransactionType == null || undefined ? \"\" : d.TransactionType || \"\",\r\n\t\t\t\tTransactionAmount: d.TransactionAmount == null || undefined ? \"\" : d.TransactionAmount || \"\",\r\n\t\t\t\tTransferMemo: d.Description == null || undefined ? \"\" : d.Description || \"\",\r\n\t\t\t\tSourceAccFIID: d.SourceAccFIID == null ? \"\" : d.SourceAccFIID,\r\n\t\t\t\tSourceAccTransit: d.SourceAccTransit == null ? \"\" : d.SourceAccTransit,\r\n\t\t\t\tSourceAccNumber: d.SourceAccNumber == null ? \"\" : d.SourceAccNumber,\r\n\t\t\t\tDestAccFIID: d.DestAccFIID == null ? \"\" : d.DestAccFIID,\r\n\t\t\t\tDestAccTransit: d.SDestAccTransit == null ? \"\" : d.DestAccTransit,\r\n\t\t\t\tDestAccNumber: d.DestAccNumber == null ? \"\" : d.DestAccNumber,\r\n\t\t\t};\r\n\t\t});\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\tValue={model.ClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\tCanClear />\r\n\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t

\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\ttabButton: \"eTransfer\",\r\n\t\t\t\t\t\t\t\t\ttabContent: (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\ttabButton: \"DDT\",\r\n\t\t\t\t\t\t\t\t\ttabContent: (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\ttabButton: \"DDT - CDIC\",\r\n\t\t\t\t\t\t\t\t\ttabContent: (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nClientReconciliation.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\thandleOperationType: PropTypes.func,\r\n\tSelectedRowChange: PropTypes.func,\r\n\tshowQuestionMessage: func,\r\n\tsetAppLeftTitle: func,\r\n\tsetAppCenterTitle: func\r\n};\r\n\r\nexport default withArtifex(ClientReconciliation, {});","import { Dialog, DialogContent, withStyles } from \"@material-ui/core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport { GenericCircularProgress } from \"views/Components/Generic\";\r\n\r\nconst loadingComponentStyle = {\r\n\tdialogContentStyle: {\r\n\t\toverflowX: \"hidden\"\r\n\t}\r\n};\r\n\r\nfunction LoadingComponent(props) {\r\n\treturn (\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t);\r\n}\r\n\r\nLoadingComponent.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tShow: PropTypes.bool,\r\n\tTaskPoolDomain: PropTypes.object\r\n};\r\n\r\nLoadingComponent.defaultProps = {\r\n\tShow: false\r\n};\r\n\r\nexport default withStyles(loadingComponentStyle)(LoadingComponent);","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes, { bool, func } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericCheckInput, GenericDateInput, GenericGrid, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { BankFileStatus, GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\n\r\nclass CATMResponseFile extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tFromDate: DateHelper.GetDate(),\r\n\t\t\t\tToDate: DateHelper.GetDate(),\r\n\t\t\t\tDirectionParameterValue: \"\"\r\n\t\t\t},\r\n\t\t\tgetTransactionByFileIdModel: {\r\n\t\t\t\tDirectionParameterValue: \"\"\r\n\t\t\t},\r\n\t\t\tdailyFileList: [],\r\n\t\t\tfileInfoModel: {\r\n\t\t\t\tId: null,\r\n\t\t\t\tFileName: \"\",\r\n\t\t\t\tFileStatusParamValue: \"\"\r\n\t\t\t},\r\n\t\t\ttransactionList: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tcheckedValues: [],\r\n\t\t\tselectList: []\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"CATM Response File\");\r\n\t\tthis.props.setAppCenterTitle(\"CLEARING & SETTLEMENT\");\r\n\t\tthis.GetNewCATMFileFromSFTP();\r\n\t}\r\n\r\n\tGetNewCATMFileFromSFTP = () => {\r\n\t\tthis.showLoading();\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/BankBmoEFT/InsertCatmResponseTransactionFileAndTransaction\",\r\n\t\t\t{},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.showBasicAlert(\"Error\", responseData.ErrorDescription, \"error\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.hideLoading();\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.showBasicAlert(\"Error\", \"An error occurred during the api visit\" + error, \"error\");\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tSelectedRowChange = (index) => {\r\n\t\tconst tempModel = this.state.dailyFileList[index];\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (tempModel.Id == null || tempModel.Id == undefined)\r\n\t\t\tthis.showBasicAlert(\"Error\", \"FileInformationId can not be null\", \"error\");\r\n\t\telse {\r\n\t\t\tthis.setState({ fileInfoModel: tempModel, model, isLoading: true, rowIndex: index });\r\n\t\t\tthis.GetTransactionList(tempModel.Id);\r\n\r\n\t\t}\r\n\t}\r\n\r\n\tGetFileList = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/BankBmoEFT/SearchCatmResponseTransactionFile\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.showBasicAlert(\"Error\", responseData.ErrorDescription, \"error\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\ttransactionList: [], headerModel: {},\r\n\t\t\t\t\tdailyFileList: responseData.Item == null ? [] : responseData.Item.length < 1 ? [] : responseData.Item.map(x => {\r\n\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\tId: x.FileInformationId == null || undefined ? \"\" : x.FileInformationId,\r\n\t\t\t\t\t\t\tFileName: x.FileName == null || undefined ? \"\" : x.FileName,\r\n\t\t\t\t\t\t\tFileDate: x.FileDate == null || undefined ? \"\" : x.FileDate,\r\n\t\t\t\t\t\t\tFileSource: x.FileSource == null || undefined ? \"\" : x.FileSource,\r\n\t\t\t\t\t\t\tRecordCount: x.RecordCount == null || undefined ? \"\" : x.RecordCount,\r\n\t\t\t\t\t\t\tRejectedCount: x.RejectedCount == null || undefined ? \"\" : x.RejectedCount,\r\n\t\t\t\t\t\t\tFileStatus: x.FileStatus == null || undefined ? \"\" : x.FileStatus,\r\n\t\t\t\t\t\t\tFileStatusParamValue: x.FileStatusParamValue == null ? \"\" : x.FileStatusParamValue\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t}), isLoading: false\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.showBasicAlert(\"Error\", \"An error occurred during the api visit\" + error, \"error\");\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tGetTransactionList = (Id) => {\r\n\t\tvar transactionList = { ...this.state.transactionList };\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/BankBmoEFT/SearchCatmResponseTransaction\",\r\n\t\t\t{ Id: Id },\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.showBasicAlert(\"Error\", responseData.ErrorDescription, \"error\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\r\n\t\t\t\t\tif (responseData.Item != null && responseData.Item.length > 1) {\r\n\t\t\t\t\t\tthis.setState({ transactionList: responseData.Item, isLoading: false, selectList: [], checkedValues: [] })\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tthis.setState({ transactionList: [], isLoading: false, selectList: [], checkedValues: [] });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.showBasicAlert(\"Error\", \"An error occurred during the api visit\" + error, \"error\");\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tSend = () => {\r\n\t\tthis.showBasicAlert(\"Info\", \"This property disabled.\", \"info\");\r\n\t\treturn;\r\n\r\n\t\t// if (this.state.fileInfoModel == null || this.state.fileInfoModel.Id == null)\r\n\t\t// \tthis.showBasicAlert(\"Warning\", \"Selected a row from File List !!!\", \"warning\");\r\n\t\t// else\t\t\t\r\n\t\t// const fileInfoModel = { ...this.state.fileInfoModel };\r\n\t\t// if (fileInfoModel != null && fileInfoModel.FileStatusParamValue == BankFileStatus.Waiting) {\r\n\t\t// \tthis.showConfirmAlert(\"Warning\", \"Are you sure to send this file ?\" + \"FileName : \" + fileInfoModel.FileName, \"warning\", () => {\r\n\t\t// \t\tif (fileInfoModel.Id == null || fileInfoModel == undefined)\r\n\t\t// \t\t\tthis.showBasicAlert(\"Warning\", \"Selected row has not FileInformationId value !!!\", \"warning\");\r\n\t\t// \t\telse {\r\n\t\t// \t\t\tthis.hideAlert();\r\n\t\t// \t\t\tthis.showLoading();\r\n\t\t// \t\t\tProxy.POST(\r\n\t\t// \t\t\t\t\"/bankapi/v1.0/BankBmoEFT/SendCatmAndArtifexTransactionToBmo\",\r\n\t\t// \t\t\t\t{ FileInformationId: fileInfoModel.Id },\r\n\t\t// \t\t\t\tresponseData => {\r\n\t\t// \t\t\t\t\tif (!responseData.IsSucceeded)\r\n\t\t// \t\t\t\t\t\tthis.showBasicAlert(\"Error\", \"Send operation error : \" + responseData.ErrorDescription + \"!!!\", \"error\");\r\n\t\t// \t\t\t\t\telse {\r\n\t\t// \t\t\t\t\t\tthis.showBasicAlert(\"Success\", \"Send operation is successfully completed.\", \"success\");\r\n\t\t// \t\t\t\t\t\tthis.GetFileList();\r\n\t\t// \t\t\t\t\t}\r\n\t\t// \t\t\t\t},\r\n\t\t// \t\t\t\terror => {\r\n\t\t// \t\t\t\t\tthis.showBasicAlert(\"Error\", \"Send operation error : \" + error + \"!!!\", \"error\");\r\n\t\t// \t\t\t\t}\r\n\t\t// \t\t\t);\r\n\t\t// \t\t}\r\n\t\t// \t});\r\n\t\t// }\r\n\t\t// else\r\n\t\t// \tthis.showBasicAlert(\"Warning\", \"File Status must be Waiting !!!\", \"warning\");\r\n\t}\r\n\r\n\tshowBasicAlert = (title, message, type) => {\r\n\t\tthis.setState({ isLoading: false, alert: this.hideAlert()} /> });\r\n\t}\r\n\r\n\tshowConfirmAlert = (title, message, type, onConfirm) => {\r\n\t\tthis.setState({ isLoading: false, alert: this.hideAlert()} OnConfirm={onConfirm} /> });\r\n\t}\r\n\r\n\thideAlert = () => { this.setState({ alert: null, isLoading: false }); }\r\n\r\n\tshowLoading = () => { this.setState({ alert: null, isLoading: true }); }\r\n\r\n\thideLoading = () => { this.setState({ isLoading: false }); }\r\n\r\n\tClearModel = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {\r\n\t\t\t\tFromDate: DateHelper.GetDate(),\r\n\t\t\t\tToDate: DateHelper.GetDate(),\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tHandleCheck(trans) {\r\n\t\tvar selectList = [...this.state.selectList];\r\n\r\n\t\tselectList = this.state.selectList.includes(trans.Id)\r\n\t\t\t? this.state.selectList.filter(t => t !== trans.Id)\r\n\t\t\t: [...this.state.selectList, trans.Id];\r\n\r\n\t\tthis.setState(state => ({\r\n\t\t\tselectList,\r\n\t\t\tcheckedValues: state.checkedValues.includes(trans)\r\n\t\t\t\t? state.checkedValues.filter(c => c !== trans)\r\n\t\t\t\t: [...state.checkedValues, trans]\r\n\t\t}));\r\n\t}\r\n\r\n\tSubmitAccept = () => {\r\n\t\tvar selectList = [...this.state.selectList];\r\n\t\tthis.showConfirmAlert(\"Warning\", \"Are you sure to accept these transactions ?\", \"warning\", () => {\r\n\t\t\tthis.hideAlert();\r\n\t\t\tthis.showLoading();\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/bankapi/v1.0/BankBmoEFT/UpdateCatmResponseTransaction\",\r\n\t\t\t\t{ CatmBmoClearingTransactionIds: selectList },\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded)\r\n\t\t\t\t\t\tthis.showBasicAlert(\"Error\", \"Accept operation error : \" + responseData.ErrorDescription + \"!!!\", \"error\");\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tthis.showBasicAlert(\"Success\", \"Accept operation is successfully completed.\", \"success\");\r\n\t\t\t\t\t\tthis.GetTransactionList(this.state.fileInfoModel.Id);\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\t\t\t\t\tthis.showBasicAlert(\"Error\", \"Accept operation error : \" + error + \"!!!\", \"error\");\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, fileInfoModel, isLoading } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t
File Filter
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tthis.SelectedRowChange(index);\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\tSelectedIndex={this.state.rowIndex}\r\n\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_EFT} />\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t c.Id == row.original.Id).length > 0}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={() => { this.HandleCheck(row.original); }}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={fileInfoModel.FileStatusParamValue == BankFileStatus.Waiting ? false : true} />\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Accept\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"IsAccept\",\r\n\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t
{row.value == true ? \"True\" : \"False\"}
\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Logical Record Type\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"LogicalRecordType\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"LogicalRecordCount\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"LogicalRecordCount\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Originator Id\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"OriginatorId\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"File Creation Number\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"FileCreationNumber\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Transaction Type\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"TransactionType\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"Amount\",\r\n\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\tColumnType:GridColumnType.Money\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"TransactionDate\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Payee Drawee Institution Id\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"PayeeDraweeInstitutionId\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Payee Drawee Account Number\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"PayeeDraweeAccountNumber\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Originator Short Name\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"OriginatorShortName\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"PayeeDraweeName\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"PayeeDraweeName\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Originator Long Name\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"OriginatorLongName\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Cross Reference Number\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"CrossReferenceNumber\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Logical Record Count\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"LogicalRecordCount\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Institution Id For Returns\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"InstitutionIdForReturns\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Account Number For Returns\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"AccountNumberForReturns\"\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_EFT} />\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCATMResponseFile.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\thandleOperationType: PropTypes.func,\r\n\tshowQuestionMessage: func,\r\n\tsetAppLeftTitle: func,\r\n\tsetAppCenterTitle: func,\r\n\tDisabled: bool\r\n};\r\n\r\nexport default withArtifex(CATMResponseFile, {});","import createReportStyle from \"assets/jss/material-dashboard-pro-react/views/createReportStyle.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport AlertHelper from \"core/AlertHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes, { func } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport DualListBox from \"react-dual-listbox\";\r\nimport ReactTable from \"react-table\";\r\nimport { GenericSelectInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass MatchingCriteriaDefinition extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\tgetDataList: [],\r\n\t\t\tsummaryModel: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tcolumnListBoxSelected: [],\r\n\t\t\tcolumnListBoxOption: [\r\n\t\t\t\t{ value: \"luna\", label: \"Moon\" },\r\n\t\t\t\t{ value: \"phobos\", label: \"Phobos\" },\r\n\t\t\t\t{ value: \"deimos\", label: \"Deimos\" },\r\n\t\t\t\t{ value: \"io\", label: \"Io\" }\r\n\t\t\t]\r\n\t\t};\r\n\t\tthis.handleChange = this.handleChange.bind(this);\r\n\t\tthis.GetData = this.GetData.bind(this);\r\n\t\tthis.errorCallback = this.errorCallback.bind(this);\r\n\t\tthis.hideAlert = this.hideAlert.bind(this);\r\n\t\tthis.showErrorMessage = this.showErrorMessage.bind(this);\r\n\t\tthis.successSummaryCallback = this.successSummaryCallback.bind(this);\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Matching Criteria Definition\");\r\n\t\tthis.props.setAppCenterTitle(\"CLEARING & SETTLEMENT\");\r\n\t}\r\n\thandleChange(name, newValue) {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\tGetData() {\r\n\t\tif (this.state.model.ReceivedDate == null)\r\n\t\t\tthis.showErrorMessage(\"Received Date can not be empty !!\");\r\n\t\telse {\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\t// \"/bankapi/v1.0/ClearingSettlement/GetAllDailySettlementItemsByReceivedDate\",\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/bankapi/v1.0/BankBmoEFT/SearchEFTClearingDailySettledItems\",\r\n\t\t\t\tthis.state.model,\r\n\t\t\t\tthis.successSummaryCallback,\r\n\t\t\t\tthis.errorCallback\r\n\t\t\t);\r\n\t\t}\r\n\t}\r\n\r\n\tcolumnListBoxOnChange = (selected) => {\r\n\t\tthis.setState({\r\n\t\t\tcolumnListBoxSelected: selected\r\n\t\t});\r\n\t}\r\n\tsuccessSummaryCallback(responseData) {\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.showErrorMessage(responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (responseData.Item == null) {\r\n\t\t\tthis.setState({ summaryModel: {}, getDataList: [], isLoading: false });\r\n\t\t} else {\r\n\t\t\tvar summaryModel = responseData.Item.summaryItemResponse;\r\n\t\t\tthis.setState({\r\n\t\t\t\tsummaryModel,\r\n\t\t\t\tgetDataList: responseData.Item.DailySettledItems.map(x => {\r\n\t\t\t\t\treturn {\r\n\t\t\t\t\t\tRecordType: x.RecordType == null ? \"\" : x.RecordType,\r\n\t\t\t\t\t\tFileType: x.FileType == null ? \"\" : x.FileType,\r\n\t\t\t\t\t\tUniqueClientId: x.UniqueClientId == null ? \"\" : x.UniqueClientId,\r\n\t\t\t\t\t\tValueDate: x.ValueDate == null ? \"\" : x.ValueDate,\r\n\t\t\t\t\t\tTransactionType: x.TransactionType == null ? \"\" : x.TransactionType,\r\n\t\t\t\t\t\tPayeeAccountNo: x.PayeeAccountNumber == null ? \"\" : x.PayeeAccountNumber,\r\n\t\t\t\t\t\tCrossReferenceNumber: x.CrossReferenceNumber == null ? \"\" : x.CrossReferenceNumber,\r\n\t\t\t\t\t\tPayeeName: x.PayeeDraweeName == null ? \"\" : x.PayeeDraweeName,\r\n\t\t\t\t\t\tAmount: x.Amount == null ? \"\" : x.Amount,\r\n\t\t\t\t\t\tTransactionId: x.TransactionId == null ? \"\" : x.TransactionId\r\n\t\t\t\t\t};\r\n\t\t\t\t}), isLoading: false\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\terrorCallback(error) {\r\n\t\tthis.showErrorMessage(\"An error occurred during the api visit\" + error);\r\n\t}\r\n\tshowErrorMessage(message) {\r\n\t\tthis.setState({\r\n\t\t\tisLoading: false,\r\n\t\t\talert: AlertHelper.CreateAlert(\"Error\", message, \"error\", this.hideAlert)\r\n\t\t});\r\n\t}\r\n\thideAlert() {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, isLoading, columnListBoxSelected, columnListBoxOption } = this.state;\r\n\t\tconst { classes } = this.props;\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t{this.state.alert}\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t this.columnListBoxOnChange(selected)}\r\n\t\t\t\t\t\t/>\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t
\r\n\t\t\t\t 5 ? true : false}\r\n\t\t\t\t\tminRows={2}\r\n\t\t\t\t/>\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nMatchingCriteriaDefinition.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\thandleOperationType: PropTypes.func,\r\n\tSelectedRowChange: PropTypes.func,\r\n\tshowQuestionMessage: func,\r\n\tsetAppLeftTitle: func,\r\n\tsetAppCenterTitle: func\r\n};\r\n\r\nexport default withArtifex(MatchingCriteriaDefinition, createReportStyle);","import ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport React, { Component } from \"react\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport {\r\n GenericNumberInput,\r\n GenericTextInput,\r\n GenericSelectInput,\r\n GenericTitle,\r\n GenericDateInput,\r\n GenericDialog,\r\n GenericLabel,\r\n GenericDialogActions,\r\n GenericGrid,\r\n} from \"views/Components/Generic\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport { DeleteIcon } from \"core/Icons\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\nimport AlertHelper from \"core/AlertHelper\";\r\n\r\nclass OfflineEtransferForReconciliation extends Component {\r\n constructor(props) {\r\n super(props);\r\n\r\n this.state = {\r\n isLoading: false,\r\n isCreateDialogOpen: false,\r\n isApprovalAlertOpen: false,\r\n approvalAlert: \"\",\r\n model: {},\r\n dialogModel: {},\r\n defaultModel: {\r\n TransferTypeId: 1,\r\n EntryType: 16093,\r\n ProgramId: 12,\r\n MoneyTransferDate: DateHelper.GetDate(),\r\n },\r\n gridRefreshToken: false,\r\n loadAtStartup: false,\r\n };\r\n\r\n this.settlementErrorsGridRef = React.createRef();\r\n }\r\n\r\n cancelOfflineETransfer = async (row) => {\r\n const { ExecuteApiPost, showMessage } = this.props;\r\n\r\n const request = {\r\n TransactionReferenceNumber: row?.original?.TransactionReferenceNumber,\r\n };\r\n\r\n const response = await ExecuteApiPost(\r\n \"/bankapi/v1.0/BankInteracETransfer/CancelOfflineEtransferForReconciliation\",\r\n request\r\n );\r\n\r\n if (response && response.IsSucceeded) {\r\n showMessage(\r\n \"success\",\r\n `Offline E-Transfer is Cancelled!: ${row?.original?.TransactionReferenceNumber}`\r\n );\r\n\r\n this.refreshGridToken();\r\n }\r\n };\r\n\r\n initColumns = () => {\r\n return [\r\n {\r\n Header: \"Actions\",\r\n accessor: \"Actions\",\r\n Cell: (row) => (\r\n
\r\n this.cancelOfflineETransfer(row)}\r\n />\r\n
\r\n ),\r\n sortable: false,\r\n filterable: false,\r\n width: 70,\r\n show: true,\r\n },\r\n {\r\n Header: \"Transaction Date\",\r\n accessor: \"TransactionDate\",\r\n type: GridColumnType.DateTimeUtc,\r\n },\r\n {\r\n Header: \"Money Transfer Date\",\r\n accessor: \"MoneyTransferDate\",\r\n type: GridColumnType.DateTimeUtc,\r\n },\r\n {\r\n Header: \"Client ID\",\r\n accessor: \"UniqueClientId\",\r\n },\r\n {\r\n Header: \"Client Name\",\r\n accessor: \"ClientName\",\r\n },\r\n {\r\n Header: \"Trans. Reference Number\",\r\n accessor: \"TransactionReferenceNumber\",\r\n },\r\n {\r\n Header: \"Transaction Type\",\r\n accessor: \"TransactionType\",\r\n },\r\n {\r\n Header: \"Transaction Direction\",\r\n accessor: \"TransactionDirection\",\r\n },\r\n {\r\n Header: \"Amount\",\r\n accessor: \"Amount\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Transaction Status\",\r\n accessor: \"TransactionStatus\",\r\n },\r\n ];\r\n };\r\n\r\n isRowActionDisabled = (row) => {\r\n return !row?.original?.CanBeCancelled;\r\n };\r\n\r\n refreshGridToken = async () => {\r\n const { gridRefreshToken } = this.state;\r\n\r\n this.setState({ gridRefreshToken: !gridRefreshToken });\r\n };\r\n\r\n handleChange = (name, value) => {\r\n const model = { ...this.state.model };\r\n model[name] = value;\r\n this.setState({ model });\r\n };\r\n\r\n handleChangeDialog = (name, value) => {\r\n const dialogModel = { ...this.state.dialogModel };\r\n dialogModel[name] = value;\r\n this.setState({ dialogModel });\r\n };\r\n\r\n componentDidMount() {\r\n const { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n setAppLeftTitle(\"E-Transfer for Reconciliation\");\r\n setAppCenterTitle(\"Interac e-Transfer\");\r\n this.setState({ loadAtStartup: true });\r\n }\r\n\r\n clear = () => {\r\n this.setState({ model: {} });\r\n };\r\n\r\n onValidate = () => {\r\n const { model } = this.state;\r\n const { showMessage } = this.props;\r\n\r\n if (!model.TransactionDateFrom) {\r\n showMessage(\r\n \"warning\",\r\n \"Transaction Date From is not selected\",\r\n \"Select transaction date to continue.\"\r\n );\r\n return false;\r\n }\r\n\r\n if (!model.TransactionDateTo) {\r\n showMessage(\r\n \"warning\",\r\n \"Transaction Date To is not selected\",\r\n \"Select transaction date to continue.\"\r\n );\r\n return false;\r\n }\r\n\r\n return true;\r\n };\r\n\r\n onDialogValidate = () => {\r\n const { dialogModel } = this.state;\r\n const { showMessage } = this.props;\r\n\r\n if (!dialogModel.UniqueClientId) {\r\n showMessage(\r\n \"warning\",\r\n \"Client is not selected\",\r\n \"Select Client to continue.\"\r\n );\r\n return false;\r\n }\r\n\r\n if (!dialogModel.TransactionTypeId) {\r\n showMessage(\r\n \"warning\",\r\n \"Transaction Type is not selected\",\r\n \"Select Transaction Type to continue.\"\r\n );\r\n return false;\r\n }\r\n\r\n if (!dialogModel.TransactionAmount) {\r\n showMessage(\r\n \"warning\",\r\n \"Transaction Amount is not entered\",\r\n \"Enter Transaction Amount to continue.\"\r\n );\r\n return false;\r\n }\r\n\r\n // if (!dialogModel.MoneyTransferDate) {\r\n // showMessage(\r\n // \"warning\",\r\n // \"Money Transfer Date is not selected\",\r\n // \"Enter Money Transfer Date to continue.\"\r\n // );\r\n // return false;\r\n // }\r\n\r\n if (!dialogModel.Description) {\r\n showMessage(\r\n \"warning\",\r\n \"Description is not entered\",\r\n \"Enter Description to continue.\"\r\n );\r\n return false;\r\n }\r\n\r\n return true;\r\n };\r\n\r\n onSubmit = async () => {\r\n if (!this.onDialogValidate()) return;\r\n\r\n const { ExecuteApiPost, showMessage } = this.props;\r\n const { dialogModel } = this.state;\r\n const { defaultModel } = this.state;\r\n\r\n const request = {\r\n UniqueClientId: dialogModel.UniqueClientId,\r\n TransactionTypeId: dialogModel.TransactionTypeId,\r\n Description: dialogModel.Description,\r\n TransactionAmount: dialogModel.TransactionAmount,\r\n TransactionDate: defaultModel.MoneyTransferDate,\r\n };\r\n\r\n const response = await ExecuteApiPost(\r\n \"/bankapi/v1.0/BankInteracETransfer/InsertOfflineEtransferForReconciliation\",\r\n request,\r\n null,\r\n null,\r\n null,\r\n [this.clear],\r\n false\r\n );\r\n\r\n if (response && response.IsSucceeded) {\r\n showMessage(\r\n \"success\",\r\n `An off-line e-transfer transaction created with the following reference number: ${response.ClientReferenceNumber}`\r\n );\r\n this.setState({ isCreateDialogOpen: false });\r\n this.setState({ dialogModel: {} });\r\n this.setState({ approvalAlert: \"\" });\r\n } else {\r\n // showMessage(\"error\", response.ErrorDescription);\r\n }\r\n };\r\n\r\n onCreate = () => {\r\n this.setState({ isCreateDialogOpen: true });\r\n };\r\n\r\n closeCreateDialog = () => {\r\n this.setState({ isCreateDialogOpen: false });\r\n this.setState({ dialogModel: {} });\r\n };\r\n\r\n createDialog = () => {\r\n const { defaultModel, isCreateDialogOpen, dialogModel } = this.state;\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n `${d.UniqueClientId} - ${d.Name}`}\r\n CanClear\r\n ValueChanged={this.handleChangeDialog}\r\n Value={dialogModel.UniqueClientId}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n };\r\n\r\n approvalAlertOnCancel = () => this.setState({ approvalAlert: \"\" });\r\n\r\n approvalAlert = () => {\r\n const {\r\n dialogModel: { TransactionTypeId },\r\n } = this.state;\r\n\t if (!this.onDialogValidate()) return;\r\n\t \r\n if (TransactionTypeId === 6020) {\r\n this.setState({\r\n approvalAlert: AlertHelper.CreateQuestionAlert(\r\n \"CREATE OFFLINE E-TRANSFER\",\r\n \"The funds are going to be withdrawn from the selected account\",\r\n \"warning\",\r\n this.onSubmit,\r\n this.approvalAlertOnCancel\r\n ),\r\n });\r\n }\r\n\r\n if (TransactionTypeId === 6021) {\r\n this.setState({\r\n approvalAlert: AlertHelper.CreateQuestionAlert(\r\n \"CREATE OFFLINE E-TRANSFER\",\r\n \"The funds are going to be deposited into the selected account\",\r\n \"warning\",\r\n this.onSubmit,\r\n this.approvalAlertOnCancel\r\n ),\r\n });\r\n }\r\n };\r\n\r\n render() {\r\n const { isLoading, model, gridRefreshToken, loadAtStartup, approvalAlert } =\r\n this.state;\r\n const { Disabled } = this.props;\r\n\r\n return (\r\n
\r\n {this.createDialog()}\r\n {approvalAlert}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n `${d.UniqueClientId} - ${d.Name}`}\r\n CanClear\r\n ValueChanged={this.handleChange}\r\n Value={model.UniqueClientId}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n model}\r\n ValidateRequest={this.onValidate}\r\n ShowPagination\r\n LoadAtStartup={loadAtStartup}\r\n PageSize={20}\r\n Columns={this.initColumns()}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\nexport default OfflineEtransferForReconciliation;\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes, { bool, func } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTitle, GenericCheckInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { ClientType, GridColumnType } from \"views/Constants/Constant\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\n\r\nclass PendinBalanceTransaction extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.initialModel = {\r\n\t\t\tSalesAgentUniqueClientId: !ClientHelper.IsSalesPerson() ? undefined : ClientHelper.GetClientRowId(),\r\n\t\t};\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tlist: [],\r\n\t\t\tsalesAgent: [],\r\n\t\t\tprogram: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tisSalesPerson: false\r\n\t\t};\r\n\t\tthis.handleChange = this.handleChange.bind(this);\r\n\r\n\t\tthis.ParameterYesNo = { ParameterCode: \"YesNo\" };\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\tthis.getProgram();\r\n\t\tthis.getSalesAgent(-1);\r\n\t\tthis.setState({ isSalesPerson: ClientHelper.IsSalesPerson() });\r\n\t\tthis.props.setAppLeftTitle(\"Pending Balance Transaction\");\r\n\t\tthis.props.setAppCenterTitle(\"Sales Agent\");\r\n\t}\r\n\r\n\tgetProgram = () => {\r\n\t\tProxy.GET(\r\n\t\t\t\"/bankapi/v1.0/Bank/ValidBankPrograms\",\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tconsole.log(\"Error!\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tvar pos = responseData.Item.filter(check => check.Description != \"Bank Account Corporate\" && check.Description != \"Bank Account Personal\" && check.Description != \"Create Customer\" && check.Description != \"Client Setup\")\r\n\r\n\r\n\t\t\t\tthis.setState({ program: pos });\r\n\t\t\t},\r\n\t\t\te => {\r\n\t\t\t\tconsole.log(\"Error!\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\thandleChange(name, newValue) {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\r\n\r\n\t\tif (name == \"UniqueClientId\") {\r\n\t\t\tmodel[\"SalesAgentUniqueClientId\"] = null;\r\n\t\t\tthis.getSalesAgent(newValue);\r\n\t\t}\r\n\r\n\t\tthis.setState({ model });\r\n\t}\r\n\tgetSalesAgent = (value) => {\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/BankCustomer/GetSalesAgent\",\r\n\t\t\t{ Id: value },\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tconsole.log(\"Error!\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ salesAgent: responseData.Item });\r\n\t\t\t},\r\n\t\t\te => {\r\n\t\t\t\tconsole.log(\"Error!\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\thandleGetList = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/ClearingSettlement/GetPendingBalanceTransactions\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tif (responseData.Item.length <= 0)\r\n\t\t\t\t\t\tthis.ShowMessage(\"warning\", \"Record not find\", \"Record not find\");\r\n\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.setState({ list: [] });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\thandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {},\r\n\t\t\tlist: [],\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, isLoading, salesAgent, program, isSalesPerson } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\t\tCanClear />\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\tDisabled={isSalesPerson}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{row.value == \"1\" ? \"Released\" : \"Pending\"}
\r\n\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Program\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ProgramName\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Description\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"Description\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Release Date\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ReleaseDate\",\r\n\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Release Resolve Date\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ReleaseResolveDate\",\r\n\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nPendinBalanceTransaction.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\thandleOperationType: PropTypes.func,\r\n\tSelectedRowChange: PropTypes.func,\r\n\tshowQuestionMessage: func,\r\n\tsetAppLeftTitle: func,\r\n\tsetAppCenterTitle: func,\r\n\tDisabled: bool\r\n};\r\n\r\nexport default withArtifex(PendinBalanceTransaction, {});","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport sweetAlertStyle from \"assets/jss/material-dashboard-pro-react/views/sweetAlertStyle.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport AlertHelper from \"core/AlertHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes, { func } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ReactTable from \"react-table\";\r\nimport { GenericDateInput, GenericDialog, GenericDialogActions, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport TabsComponent from \"views/Components/TabsComponent\";\r\nimport CDIC from \"./ReconciliationTabs/ReconciliationCDICTab\";\r\nimport DDT from \"./ReconciliationTabs/ReconciliationDDTTab\";\r\nimport EFT from \"./ReconciliationTabs/ReconciliationEFTTab\";\r\nimport ETransfer from \"./ReconciliationTabs/ReconciliationeTransferTab\";\r\n\r\nconst styles = ({\r\n\t...sweetAlertStyle,\r\n\tflex: {\r\n\t\tflex: 1,\r\n\t}\r\n});\r\n\r\nclass Reconciliation extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\topen: false,\r\n\t\t\tisLoading: false,\r\n\t\t\tmodel: {\r\n\t\t\t\tSettlementDate: DateHelper.GetDate()\r\n\t\t\t},\r\n\t\t\tEFTSummary: {},\r\n\t\t\teTransferSummary: {},\r\n\t\t\tDDTSummary: {},\r\n\t\t\tCDICSummary: {},\r\n\t\t\tEFTGapList: [],\r\n\t\t\teTransferGapList: [],\r\n\t\t\tDDTGapList: [],\r\n\t\t\tCDICGapList: [],\r\n\t\t};\r\n\t\tthis.handleChange = this.handleChange.bind(this);\r\n\t\tthis.GetData = this.GetData.bind(this);\r\n\t\tthis.errorCallback = this.errorCallback.bind(this);\r\n\t\tthis.hideAlert = this.hideAlert.bind(this);\r\n\t\tthis.showErrorMessage = this.showErrorMessage.bind(this);\r\n\t\tthis.successSummaryCallback = this.successSummaryCallback.bind(this);\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Reconciliation\");\r\n\t\tthis.props.setAppCenterTitle(\"CLEARING & SETTLEMENT\");\r\n\t}\r\n\thandleChange(name, newValue) {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\thandleClickOpen = (event) => {\r\n\t\tvar GapList = { ...this.state.GapList };\r\n\t\tif (event == \"eft\") {\r\n\t\t\tGapList = this.state.EFTGapList;\r\n\t\t}\r\n\t\tif (event == \"eTransfer\") {\r\n\t\t\tGapList = this.state.eTransferGapList;\r\n\t\t}\r\n\t\tif (event == \"ddt\") {\r\n\t\t\tGapList = this.state.DDTGapList;\r\n\t\t}\r\n\t\tif (event == \"cdic\") {\r\n\t\t\tGapList = this.state.CDICGapList;\r\n\t\t}\r\n\t\tthis.setState({ open: true, GapList });\r\n\t};\r\n\r\n\thandleClose = () => {\r\n\t\tthis.setState({ open: false });\r\n\t};\r\n\r\n\tGetData() {\r\n\t\tif (this.state.model.SettlementDate == null)\r\n\t\t\tthis.showErrorMessage(\"Date / To can not be empty !!\");\r\n\t\telse {\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/bankapi/v1.0/ClearingSettlement/GetReconciliationBySettlementDate\",\r\n\t\t\t\tthis.state.model,\r\n\t\t\t\tthis.successSummaryCallback,\r\n\t\t\t\tthis.errorCallback\r\n\t\t\t);\r\n\t\t}\r\n\t}\r\n\r\n\tsuccessSummaryCallback(responseData) {\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.showErrorMessage(responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (responseData.Item == null) {\r\n\t\t\tthis.setState({\r\n\t\t\t\talert: AlertHelper.CreateAlert(\"Warning\", \"There is no item for selected date ?\", \"warning\", this.hideAlert)\r\n\t\t\t});\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvar EFTSummary = responseData.Item.EFTSummary == null ? \"\" : responseData.Item.EFTSummary;\r\n\t\t\tvar eTransferSummary = responseData.Item.eTransferSummary == null ? \"\" : responseData.Item.eTransferSummary;\r\n\t\t\tvar DDTSummary = responseData.Item.DDTSummary == null ? \"\" : responseData.Item.DDTSummary;\r\n\t\t\tvar CDICSummary = responseData.Item.CDICSummary == null ? \"\" : responseData.Item.CDICSummary;\r\n\t\t\tvar EFTGapList = responseData.Item.EFTGapList == null ? \"\" : responseData.Item.EFTGapList;\r\n\t\t\tvar eTransferGapList = responseData.Item.eTransferGapList == null ? \"\" : responseData.Item.eTransferGapList;\r\n\t\t\tvar DDTGapList = responseData.Item.DDTGapList == null ? \"\" : responseData.Item.DDTGapList;\r\n\t\t\tvar CDICGapList = responseData.Item.CDICGapList == null ? \"\" : responseData.Item.CDICGapList;\r\n\t\t\tthis.setState({ EFTSummary, eTransferSummary, DDTSummary, CDICSummary, EFTGapList, eTransferGapList, DDTGapList, CDICGapList, isLoading: false });\r\n\t\t}\r\n\t}\r\n\terrorCallback(error) {\r\n\t\tthis.showErrorMessage(\"An error occurred during the api visit\" + error);\r\n\t}\r\n\tshowErrorMessage(message) {\r\n\t\tthis.setState({\r\n\t\t\tisLoading: false,\r\n\t\t\talert: AlertHelper.CreateAlert(\"Error\", message, \"error\", this.hideAlert)\r\n\t\t});\r\n\t}\r\n\thideAlert() {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\trender() {\r\n\t\tconst { model, isLoading } = this.state;\r\n\t\tvar data = this.state.GapList === undefined || this.state.GapList === null ? [] : this.state.GapList.map(d => {\r\n\t\t\treturn {\r\n\t\t\t\tProgramType: d.ProgramType == null || undefined ? \"\" : d.ProgramType.ParameterDesc == null || undefined ? \"\" : d.ProgramType.ParameterDesc || \"\",\r\n\t\t\t\tPayeeName: d.PayeeName == null || undefined ? \"\" : d.PayeeName || \"\",\r\n\t\t\t\tAccountNumberStr: d.AccountNumberStr == null || undefined ? \"\" : d.AccountNumberStr || \"\",\r\n\t\t\t\tTransactionStatus: d.TransactionStatus == null || undefined ? \"\" : d.TransactionStatus.ParameterDesc == null || undefined ? \"\" : d.TransactionStatus.ParameterDesc || \"\",\r\n\t\t\t\tTransactionType: d.TransactionType == null || undefined ? \"\" : d.TransactionType.ParameterDesc == null || undefined ? \"\" : d.TransactionType.ParameterDesc || \"\",\r\n\t\t\t\tTransactionAmount: d.TransactionAmount == null || undefined ? \"\" : d.TransactionAmount || \"\",\r\n\t\t\t\tTransferMemo: d.TransferMemo == null || undefined ? \"\" : d.TransferMemo || \"\",\r\n\r\n\t\t\t};\r\n\t\t});\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t{this.state.alert}\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\tGap Transaction Details\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t
$ {row.value}
\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Trans. Memo\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"TransferMemo\"\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\tdefaultPageSize={7}\r\n\t\t\t\t\t\t\tshowPaginationTop={false}\r\n\t\t\t\t\t\t\tshowPaginationBottom={data.length > 5 ? true : false}\r\n\t\t\t\t\t\t\tminRows={2}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\ttabButton: \"eTransfer\",\r\n\t\t\t\t\t\t\t\t\t\t\ttabContent: (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\ttabButton: \"DDT\",\r\n\t\t\t\t\t\t\t\t\t\t\ttabContent: (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\ttabButton: \"DDT - CDIC\",\r\n\t\t\t\t\t\t\t\t\t\t\ttabContent: (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nReconciliation.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\thandleOperationType: PropTypes.func,\r\n\tSelectedRowChange: PropTypes.func,\r\n\tshowQuestionMessage: func,\r\n\tsetAppLeftTitle: func,\r\n\tsetAppCenterTitle: func\r\n};\r\n\r\nexport default withArtifex(Reconciliation, styles);","// @ts-ignore\r\nimport Card from \"components/Card/Card.jsx\";\r\n// @ts-ignore\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\n// @ts-ignore\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\n// @ts-ignore\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\n// @ts-ignore\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\n// @ts-ignore\r\nimport { Proxy, withArtifex } from \"core\";\r\n// @ts-ignore\r\nimport ClientHelper from \"core/ClientHelper\";\r\n// @ts-ignore\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes, { array } from \"prop-types\";\r\nimport React from \"react\";\r\n// @ts-ignore\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\n// @ts-ignore\r\nimport {\r\n GenericAlert,\r\n GenericPage,\r\n GenericCheckInput,\r\n GenericExpansionPanel,\r\n GenericTextInput,\r\n GenericSelectInput,\r\n} from \"views/Components/Generic\";\r\n// @ts-ignore\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n// @ts-ignore\r\nimport { Portals, ProgramCodes } from \"views/Constants/Constant\";\r\nimport OrderingClientDetail from \"views/WireTransfer/CreateIncomingWireTransfer/OrderingClientDetail.jsx\";\r\nimport OrderingAmountDetail from \"views/WireTransfer/CreateIncomingWireTransfer/OrderingAmountDetail.jsx\";\r\n\r\nimport StringHelper from \"core/StringHelper.js\";\r\n\r\nclass CreatreIncomingWireTransfersCS extends GenericPage {\r\n constructor(props) {\r\n super(props);\r\n this.getappCenterTitle = \"Empty\";\r\n this.getappLeftTitle = \"Empty\";\r\n this.IsBackOffice = ClientHelper.IsBackOffice();\r\n this.defaultBeneficiaryModel = {\r\n IsCorporate: false,\r\n LegalName: \"\",\r\n AddressLine1: \"\",\r\n AddressLine2: \"\",\r\n ZipCode: \"\",\r\n CityName: \"\",\r\n ProvinceName: \"\",\r\n CountryName: \"\",\r\n Accounts: [],\r\n };\r\n\r\n this.defaultModel = {\r\n UniqueClientId: null,\r\n AccountNumber: null,\r\n Amount: 0,\r\n CurrencyId: null,\r\n WireTransactionDate: DateHelper.GetDateTime(),\r\n WirePurpose: null,\r\n WireReferenceNumber: null,\r\n WireIncomingBeneficiaryId: null,\r\n OrderingClientName: null,\r\n OrderingCountryId: null,\r\n OrderingProvinceId: null,\r\n OrderingCityId: null,\r\n OrderingAddressLine1: null,\r\n OrderingAddressLine2: null,\r\n OrderingZipCode: null,\r\n OrderingSourceAccountNumber: null,\r\n InternationalBankCountryId: null,\r\n SendingFI: null,\r\n SendingFISwiftCode: null,\r\n SendingFICountryId: null,\r\n SendingFIAddress: null,\r\n IsDomestic: false,\r\n };\r\n\r\n this.MaxLen = { maxLength: 30 };\r\n this.SortedCountry = { Member: \"OrderIndex\" };\r\n\r\n this.defaultClientModel = {\r\n Id: null,\r\n Name: null,\r\n UniqueClientId: null,\r\n OrganizationUniqueId: null,\r\n };\r\n\r\n this.defaultReceiverModel = {\r\n Id: null,\r\n Name: null,\r\n Address1: null,\r\n Address2: null,\r\n City: null,\r\n Province: null,\r\n Country: null,\r\n PostalCode: null,\r\n AccountNumber: null,\r\n SWIFT: null,\r\n FI: null,\r\n FITransitNum: null,\r\n FIAddress1: null,\r\n FIAddress2: null,\r\n FICity: null,\r\n FIProvince: null,\r\n FICountry: null,\r\n FIPostalCode: null,\r\n };\r\n\r\n this.defaultStatusModel = {\r\n IsClearDialogOpen: false,\r\n SaveConfirmDialog: false,\r\n IsSubmitTemplate: false,\r\n Alert: null,\r\n AcceptTerms: false,\r\n AmountPrefix: \"$\",\r\n };\r\n\r\n this.AcceptTermText =\r\n \"I do confirm my rights to bind the company and have the authority to perform the transaction on behalf of the company.\";\r\n\r\n this.state = {\r\n Model: { ...this.defaultModel },\r\n StatusModel: { ...this.defaultStatusModel },\r\n BeneficiaryInfo: { ...this.defaultBeneficiaryModel },\r\n ReceiverModel: { ...this.defaultReceiverModel },\r\n ReceiverInfo: [],\r\n ClientInfo: [],\r\n isLoading: false,\r\n };\r\n }\r\n\r\n async componentDidMount() {\r\n try {\r\n super.componentDidMount();\r\n const { setAppLeftTitle, setAppCenterTitle, setPortal } = this.props;\r\n\r\n if (setAppLeftTitle) {\r\n setAppLeftTitle(\"Create Incoming Wire Transfer\");\r\n this.getappLeftTitle = \"Create Incoming Wire Transfer\";\r\n }\r\n if (setAppCenterTitle) {\r\n setAppCenterTitle(\"WIRE TRANSFER\");\r\n this.getappCenterTitle = \"WIRE TRANSFER\";\r\n }\r\n if (setPortal) {\r\n setPortal(Portals.WireTransfer);\r\n }\r\n await this.ClientsInfo();\r\n } catch (error) {\r\n console.error(\"Error in componentDidMount:\", error);\r\n }\r\n }\r\n\r\n async ClientsInfo(continueWith = null) {\r\n this.ExecutePostRequest(\"/bankapi/v1.0/WireTransfer/GetWireClients\", {}, (responseData) => {\r\n this.setState({ ClientInfo: responseData.Item }, continueWith);\r\n });\r\n }\r\n\r\n BeneficiaryInfo(Id, continueWith = null) {\r\n this.ExecutePostRequest(\r\n \"/bankapi/v1.0/WireTransfer/SearchIncomingWireBeneficiaryAccounts\",\r\n { Id },\r\n (responseData) => {\r\n this.setState({ BeneficiaryInfo: { ...responseData.Item } }, continueWith);\r\n }\r\n );\r\n }\r\n\r\n ReceiverInfo(Id, continueWith = null) {\r\n this.ExecutePostRequest(\"/bankapi/v1.0/WireTransfer/SearchIncomingWireReceiverInfo\", { Id }, (responseData) => {\r\n this.setState({ ReceiverInfo: responseData.Item }, continueWith);\r\n });\r\n }\r\n\r\n GetRenderItemAccount = (x) => {\r\n this.renderItemAccount = `${x.AccountNumber} - ${x.AccountName}`;\r\n return this.renderItemAccount;\r\n };\r\n\r\n OnlyLetterAndDigit = (str) => StringHelper.VerifiyDigitAndLetterForWire(str);\r\n\r\n VerifiyLine = (str) => StringHelper.VerifiyWireLine(str);\r\n\r\n ClearBenefReceivInfo(isCompletelyClear) {\r\n const { Model } = this.state;\r\n if (isCompletelyClear === true) {\r\n Model.UniqueClientId = null;\r\n }\r\n Model.WireIncomingBeneficiaryId = null;\r\n\r\n this.setState({\r\n BeneficiaryInfo: { ...this.defaultBeneficiaryModel },\r\n ReceiverModel: { ...this.defaultReceiverModel },\r\n ReceiverInfo: [],\r\n Model,\r\n });\r\n }\r\n\r\n ClearReceivInfo() {\r\n const { Model } = this.state;\r\n Model.WireIncomingBeneficiaryId = null;\r\n\r\n this.setState({\r\n ReceiverModel: { ...this.defaultReceiverModel },\r\n ReceiverInfo: [],\r\n Model,\r\n });\r\n }\r\n\r\n ValueChanged(name, newValue, data) {\r\n this.setState((prevState) => {\r\n const { Model } = this.state;\r\n const updatedOrderingModel = { ...prevState.OrderingModel, [name]: newValue };\r\n const updatedStatusModel = { ...prevState.StatusModel, [name]: newValue };\r\n let updatedReceiverModel = { ...prevState.ReceiverModel };\r\n Model[name] = newValue;\r\n\r\n if (name === \"UniqueClientId\" && data && data.Id !== null) {\r\n this.ClearBenefReceivInfo(false);\r\n Model.UniqueClientId = newValue;\r\n Model.AccountNumber = null;\r\n this.BeneficiaryInfo(data.Id);\r\n this.ReceiverInfo(data.OrganizationUniqueId);\r\n }\r\n\r\n if (name === \"UniqueClientId\" && newValue === null) {\r\n this.ClearBenefReceivInfo(true);\r\n }\r\n\r\n if (name === \"WireIncomingBeneficiaryId\" && data != null) {\r\n updatedReceiverModel = {\r\n ...updatedReceiverModel,\r\n Name: data.ReceiverName,\r\n Address1: data.ReceiverAddress1,\r\n Address2: data.ReceiverAddress2,\r\n City: data.ReceiverCity,\r\n Province: data.ReceiverProvince,\r\n Country: data.ReceiverCountry,\r\n PostalCode: data.ReceiverPostalCode,\r\n AccountNumber: data.ReceiverAccountNumber,\r\n SWIFT: data.ReceiverSWIFT,\r\n FI: data.ReceiverFI,\r\n FITransitNum: data.ReceiverFITransitNumber,\r\n FIAddress1: data.ReceiverFIAddress1,\r\n FIAddress2: data.ReceiverFIAddress2,\r\n FICity: data.ReceiverFICity,\r\n FIProvince: data.ReceiverFIProvince,\r\n FICountry: data.ReceiverFICountry,\r\n FIPostalCode: data.ReceiverFIPostalCode,\r\n };\r\n }\r\n\r\n if (name === \"CurrencyId\" && this.defaultModel.CurrencyId == null) {\r\n Model.CurrencyId = newValue;\r\n }\r\n\r\n const validationFields = [\"SendingFISwiftCode\"];\r\n if (validationFields.includes(name) && newValue) {\r\n const isValid =\r\n name === \"SendingFISwiftCode\" ? this.OnlyLetterAndDigit(newValue) : this.VerifiyLine(newValue);\r\n if (isValid) {\r\n return true;\r\n }\r\n }\r\n\r\n if (name === \"OrderingCountryId\") {\r\n Model.OrderingProvinceId = null;\r\n Model.OrderingCityId = null;\r\n }\r\n\r\n if (name == \"SendingFICountryId\" && data?.ISO2 == \"CA\") {\r\n Model.IsDomestic = true;\r\n } else {\r\n Model.IsDomestic = false;\r\n }\r\n\r\n return {\r\n Model,\r\n StatusModel: updatedStatusModel,\r\n ReceiverModel: updatedReceiverModel,\r\n OrderingModel: updatedOrderingModel,\r\n };\r\n });\r\n }\r\n\r\n HandleCreateOrUpdate() {\r\n const { Model } = this.state;\r\n\r\n this.setState({ isLoading: true });\r\n\r\n const request = { ...Model };\r\n\r\n Proxy.POST(\r\n \"/bankapi/v1.0/WireTransfer/CreateOrUpdateWireTransferIncomingDetail\",\r\n request,\r\n (createResponseData) => {\r\n this.setState({ isLoading: false });\r\n\r\n if (!createResponseData.IsSucceeded) {\r\n this.ShowGenericMessage(\"error\", \"Error\", createResponseData.ErrorDescription);\r\n return;\r\n }\r\n\r\n if (createResponseData.ErrorCode != \"0\") {\r\n this.ShowGenericMessage(\"error\", \"Rejected\", createResponseData.ErrorDescription);\r\n return;\r\n }\r\n\r\n this.ShowGenericMessage(\"success\", \"Create\", \"Created successfully.\");\r\n\r\n this.ClearScreen();\r\n }\r\n );\r\n }\r\n\r\n ShowConfirmMessage() {\r\n if (!this.Validate()) return;\r\n\r\n this.setState({\r\n Alert: (\r\n this.HideAlert()}\r\n OnConfirm={() => this.HandleCreateOrUpdate()}\r\n />\r\n ),\r\n });\r\n }\r\n\r\n ShowClearMessage() {\r\n this.setState({\r\n Alert: (\r\n \r\n ),\r\n });\r\n }\r\n\r\n HandleClearConfirm() {\r\n this.ClearScreen();\r\n this.HideAlert();\r\n }\r\n\r\n ClearScreen() {\r\n const { StatusModel } = this.state;\r\n StatusModel.IsClearDialogOpen = false;\r\n this.setState({\r\n Model: { ...this.defaultModel },\r\n StatusModel: { ...this.defaultStatusModel },\r\n BeneficiaryInfo: { ...this.defaultBeneficiaryModel },\r\n ReceiverModel: { ...this.defaultReceiverModel },\r\n });\r\n }\r\n\r\n Validate() {\r\n const { Model, StatusModel } = this.state;\r\n var messages = [];\r\n\r\n if (StatusModel.AcceptTerms == false) {\r\n this.ShowGenericMessage(\"warning\", \"Warning\", \"Please accept the confirmation message and then try again.\");\r\n return false;\r\n }\r\n if (!Model.WireTransactionDate) messages.push(\"Date Request cannot be null.\");\r\n if (!Model.Amount || Model.Amount <= 0) messages.push(\"Amount cannot be equal to 0 or less.\");\r\n if (!Model.WirePurpose) messages.push(\"Purpose of Wire cannot be null.\");\r\n if (!Model.AccountNumber || Model.AccountNumber < 1) messages.push(\"Beneficiary Account Number cannot be empty!\");\r\n if (!Model.OrderingClientName) messages.push(\"Ordering Client Name cannot be null.\");\r\n if (!Model.OrderingCountryId) messages.push(\"Ordering Country cannot be null.\");\r\n if (!Model.OrderingProvinceId) messages.push(\"Ordering Province cannot be null.\");\r\n if (!Model.OrderingCityId) messages.push(\"Ordering City cannot be null.\");\r\n if (!Model.OrderingAddressLine1) messages.push(\"Address Line 1 cannot be null.\");\r\n if (!Model.OrderingZipCode) messages.push(\"Postal Code cannot be null.\");\r\n if (!Model.OrderingSourceAccountNumber) messages.push(\"Ordering Source Account Number cannot be null.\");\r\n if (!Model.InternationalBankCountryId) messages.push(\"International Bank Country cannot be null.\");\r\n if (!Model.SendingFI) messages.push(\"Sending Financial Institution cannot be null.\");\r\n if (!Model.SendingFISwiftCode) messages.push(\"Sending FI Swift Code cannot be null.\");\r\n if (!Model.SendingFICountryId) messages.push(\"Sending FI Country cannot be null.\");\r\n if (!Model.SendingFIAddress) messages.push(\"Sending FI Address cannot be null.\");\r\n\r\n if (messages.length > 0) {\r\n this.ShowGenericMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n messages.map((x, i) =>
{x}
)\r\n );\r\n return false;\r\n }\r\n\r\n return true;\r\n }\r\n\r\n render() {\r\n const { Disabled } = this.props;\r\n const { Alert, isLoading, IsLoading, IsBackOffice } = this.state;\r\n const { Model, StatusModel, BeneficiaryInfo, ReceiverInfo, ReceiverModel, ClientInfo } = this.state;\r\n return (\r\n
\r\n {Alert}\r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n

\r\n Beneficiary Information\r\n

\r\n
\r\n \r\n `${d.UniqueClientId} - ${d.Name}`}\r\n Value={Model.UniqueClientId || \"\"}\r\n ValueChanged={this.ValueChanged}\r\n Disabled={IsBackOffice}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n

\r\n Receiver Information\r\n

\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n );\r\n }\r\n}\r\n\r\nCreatreIncomingWireTransfersCS.propTypes = {\r\n classes: PropTypes.object.isRequired,\r\n Disabled: PropTypes.bool,\r\n ValueChanged: PropTypes.func,\r\n Model: PropTypes.object,\r\n ExecuteApiFileDownloadWithGenericResponse: PropTypes.func,\r\n};\r\n\r\nexport default withArtifex(CreatreIncomingWireTransfersCS, {});\r\n","import { DialogContent } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { DetailIcon, EditIcon } from \"core/Icons\";\r\nimport PropTypes, { bool, func } from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericNumberInput, GenericPage, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { Direction, GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\nimport MessageDetail from \"views/WireTransfer/CreateWireTransfer/MessageDetail\";\r\n\r\n\r\nclass OutgoingWireTransfers extends GenericPage {\r\n\r\n\tconstructor(props) {\r\n\r\n\r\n\t\tsuper(props);\r\n\r\n\t\tthis.IsBackOffice = ClientHelper.IsBackOffice();\r\n\t\tthis.sortedName = { Member: \"Name\" };\r\n\t\tthis.emptyObject = {};\r\n\t\tthis.renderItemUniqueClient = {};\r\n\t\tthis.renderItemAccount = {};\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Swift Reference Number\",\r\n\t\t\t\taccessor: \"SwiftReferenceNumber\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Reference Number\",\r\n\t\t\t\taccessor: \"TransactionReferenceNumber\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Source Account Number\",\r\n\t\t\t\taccessor: \"FromAccAccountNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"To Account Number\",\r\n\t\t\t\taccessor: \"ToAccountNumber\"\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Direction\",\r\n\t\t\t\taccessor: \"Direction\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Status\",\r\n\t\t\t\taccessor: \"Status\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"SubStatus\",\r\n\t\t\t\taccessor: \"SubStatus\",\r\n\t\t\t\tshow: this.IsBackOffice\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date of Request\",\r\n\t\t\t\taccessor: \"DateRequest\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Value Effective\",\r\n\t\t\t\taccessor: \"ValueEffective\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"Amount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Fee Amount\",\r\n\t\t\t\taccessor: \"FeeAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Currency\",\r\n\t\t\t\taccessor: \"CurrencyName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Remittance\",\r\n\t\t\t\taccessor: \"Remittance\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Beneficiary Identifier\",\r\n\t\t\t\taccessor: \"BeneficiaryIdentifier\"\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Swift Benefiary Account Number\",\r\n\t\t\t\taccessor: \"BeneficiaryAccountNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Swift Beneficiary Name\",\r\n\t\t\t\taccessor: \"BeneficiaryName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Bank Opearation Code\",\r\n\t\t\t\taccessor: \"BankOperationCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sender Account Number\",\r\n\t\t\t\taccessor: \"SenderAccountNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sender Swift Code\",\r\n\t\t\t\taccessor: \"SenderSwiftCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sender Name\",\r\n\t\t\t\taccessor: \"SenderName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sender Address\",\r\n\t\t\t\taccessor: \"SenderAddress\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sender Additional Information\",\r\n\t\t\t\taccessor: \"SenderAdditionalInformation\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Ordering Institution Swift Code\",\r\n\t\t\t\taccessor: \"OrderingInstitutionSwiftCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Ordering Institution Party Identifier\",\r\n\t\t\t\taccessor: \"OrderingInstitutionPartyIdentifier\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Ordering Institution Party Address\",\r\n\t\t\t\taccessor: \"OrderingInstitutionAddress\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Intermediary Name\",\r\n\t\t\t\taccessor: \"IntermediaryName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Beneficiary Bank Party Identifier\",\r\n\t\t\t\taccessor: \"BeneficiaryBankPartyIdentifier\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Details Of Charges\",\r\n\t\t\t\taccessor: \"DetailsOfCharges\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sender Party Identifier Account\",\r\n\t\t\t\taccessor: \"WireTransferMessageSenderParty.Account\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sender Party Identifier Code\",\r\n\t\t\t\taccessor: \"WireTransferMessageSenderParty.Code\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sender Party Identifier CountryCode\",\r\n\t\t\t\taccessor: \"WireTransferMessageSenderParty.CountryCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sender Party Identifier Identifier\",\r\n\t\t\t\taccessor: \"WireTransferMessageSenderParty.Identifier\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Beneficiary Company Name\",\r\n\t\t\t\taccessor: \"CompanyName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Country\",\r\n\t\t\t\taccessor: \"CountryFormat\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\r\n\r\n\t\tthis.defaultMessageModel = {\r\n\t\t\tCustomerName: null,\r\n\t\t\tAccountNumber: null,\r\n\t\t\tDateOfRequest: null,\r\n\t\t\tCreationDate: null,\r\n\t\t\tValueDate: null,\r\n\t\t\tBeneficiaryCompanyName: null,\r\n\t\t\tBeneficiaryFirstName: null,\r\n\t\t\tBeneficiaryLastName: null,\r\n\t\t\tBeneficiaryAddress: null,\r\n\t\t\tBeneficiaryAddress2: null,\r\n\t\t\tCustomerAddress: null,\r\n\t\t\tBeneficiaryCountry: null,\r\n\t\t\tBeneficiaryCity: null,\r\n\t\t\tBeneficiaryProvince: null,\r\n\t\t\tBeneficiaryPostalCode: null,\r\n\t\t\tBeneficiaryBankCountry: null,\r\n\t\t\tBeneficiaryBankPostalCode: null,\r\n\t\t\tBeneficiaryBankInstitution: null,\r\n\t\t\tRemittance: null,\r\n\t\t\tBeneficiaryAccountNumber: null,\r\n\t\t\tIntermediarySwiftCode: null,\r\n\t\t\tAmount: null,\r\n\t\t\tCurrency: null,\r\n\t\t\tPurposeOfWire: null,\r\n\t\t\tReference: null,\r\n\t\t\tBeneficiaryBank: null,\r\n\t\t\tBeneficiaryBankAddress: null,\r\n\t\t\tBeneficiaryBankAddress2: null,\r\n\t\t\tBeneficiaryBankCity: null,\r\n\t\t\tBeneficiaryBankProvince: null,\r\n\t\t\tTransitNumber: null,\r\n\t\t};\r\n\r\n\t\tthis.defaultModel = {\r\n\t\t\tClientId: null,\r\n\t\t\tFromDate: DateHelper.GetDate(),\r\n\t\t\tToDate: DateHelper.GetDate(),\r\n\t\t\tDirectionParamValue: Direction.Incoming,\r\n\t\t\tMessageTypeId: null,\r\n\t\t\tSubStatusId: null,\r\n\t\t\tStatusId: null,\r\n\t\t\tAmountFrom: null,\r\n\t\t\tAmountTo: null,\r\n\t\t\tStatusParamCode: null,\r\n\t\t\tAccountId: null,\r\n\t\t\tUniqueClientId: null,\r\n\t\t\tSwiftReferenceNumber: null,\r\n\t\t\tTransactionReferenceNumber: null,\r\n\t\t\tIsBackOffice : this.IsBackOffice,\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: { ...this.defaultModel },\r\n\t\t\tsubStatusList: [],\r\n\t\t\ttempSubStatusList: [],\r\n\t\t\ttransactionList: [],\r\n\t\t\tapprovalTransactionList: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tisBackOffice: false,\r\n\t\t\tmessageDetailModel: {},\r\n\t\t\tIsDomestic: {},\r\n\t\t\tdetailDialog: false,\r\n\t\t\tapprovalDialog: false,\r\n\t\t\tmatchDialog: false\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tsuper.componentDidMount();\r\n\t\tthis.Bind(this);\r\n\t\tvar { isBackOffice } = this.state;\r\n\t\tvar model = { ...this.state.model };\r\n\r\n\t\tisBackOffice = ClientHelper.IsBackOffice();\r\n\t\tif (!isBackOffice) {\r\n\t\t\tmodel.ClientId = ClientHelper.GetClientRowId();\r\n\t\t\tthis.columns.splice(1, 1);\r\n\t\t}\r\n\t\tthis.setState({ model, isBackOffice });\r\n\t\tthis.props.setAppLeftTitle(\"Wire Incoming Transfers\");\r\n\t\tthis.props.setAppCenterTitle(\"CLEARING & SETTLEMENT\");\r\n\t}\r\n\r\n\tHandleChange(name, newValue, data) {\r\n\t\tthis.setState(function (state) {\r\n\t\t\tvar model = state.model || {};\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\tif (name == \"StatusId\") {\r\n\t\t\t\tif (newValue == -1) {\r\n\t\t\t\t\tmodel.StatusParamCode = null;\r\n\t\t\t\t}\r\n\t\t\t\telse if (data && data.ParameterValue == null) {\r\n\t\t\t\t\tmodel.StatusParamCode = null;\r\n\t\t\t\t}\r\n\t\t\t\telse if (data) {\r\n\t\t\t\t\tmodel.StatusParamCode = data.ParameterValue;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\r\n\tHandleMessageChange(name, newValue) {\r\n\t\tconst { messageDetailModel } = this.state;\r\n\t\tmessageDetailModel[name] = newValue;\r\n\t\tthis.setState({ messageDetailModel });\r\n\t}\r\n\r\n\tGetData() {\r\n\t\tthis.ExecutePostRequest(\r\n\t\t\t\"/bankapi/v1.0/WireTransfer/TransactionSearch\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (responseData.Item == null || responseData.Item.length < 1) {\r\n\t\t\t\t\tresponseData.Item = [];\r\n\t\t\t\t}\r\n\t\t\t\tvar approvalTransactionList = [];\r\n\t\t\t\tvar transactionList = [];\r\n\t\t\t\tresponseData.Item.forEach(element => {\r\n\t\t\t\t\tif (element.IsApproval) {\r\n\t\t\t\t\t\tapprovalTransactionList.push(element);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\ttransactionList.push(element);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t\tthis.setState({ transactionList, approvalTransactionList });\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tClearModel() {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tvar clientId = this.state.isBackOffice ? null : model.ClientId;\r\n\t\tvar newModel = { ...this.defaultModel };\r\n\t\tnewModel.ClientId = clientId;\r\n\t\tthis.setState({ model: newModel, transactionList: [], approvalTransactionList: [] });\r\n\t}\r\n\r\n\r\n\r\n\tHandleApproval() {\r\n\t\tconst { messageDetailModel, model } = this.state;\r\n\t\tthis.ExecutePostRequest(\"/bankapi/v1.0/WireTransfer/ApproveIncomingWireTransfer\",\r\n\t\t\t{\r\n\t\t\t\tTransactionWireTransferId: messageDetailModel.TransferId,\r\n\t\t\t\tTransferMessage: messageDetailModel,\r\n\t\t\t\tUniqueClientId: model.UniqueClientId,\r\n\t\t\t\tAccountId: model.AccountId\r\n\t\t\t},\r\n\t\t\tresponseData => { this.CloseDialog(this.GetData); });\r\n\t}\r\n\r\n\tHandleReject() {\r\n\t\tconst { messageDetailModel } = this.state;\r\n\t\tthis.ExecutePostRequest(\"/bankapi/v1.0/WireTransfer/RejectIncomingWireTransfer\",\r\n\t\t\t{\r\n\t\t\t\tIsCatmData: false,\r\n\t\t\t\tTransactionWireTransferId: messageDetailModel.TransferId\r\n\t\t\t},\r\n\t\t\tresponseData => { this.CloseDialog(this.GetData); });\r\n\t}\r\n\r\n\tHandleUnSettled() {\r\n\t\tconst { messageDetailModel } = this.state;\r\n\t\tthis.ExecutePostRequest(\"/bankapi/v1.0/WireTransfer/RejectIncomingWireTransfer\",\r\n\t\t\t{\r\n\t\t\t\tIsCatmData: true,\r\n\t\t\t\tTransactionWireTransferId: messageDetailModel.TransferId\r\n\t\t\t},\r\n\t\t\tresponseData => { this.CloseDialog(this.GetData); });\r\n\t}\r\n\r\n\r\n\tHandleClose() {\r\n\t\tthis.CloseDialog();\r\n\t}\r\n\r\n\tCloseDialog(func = null) {\r\n\r\n\t\tthis.defaultModel.FromDate = this.state.model.FromDate;\r\n\t\tthis.defaultModel.ToDate = this.state.model.ToDate;\r\n\t\tif (func != null) {\r\n\t\t\tthis.setState({ detailDialog: false, approvalDialog: false, matchDialog: false, model: this.defaultModel, messageDetailModel: this.defaultMessageModel }, func);\r\n\t\t} else {\r\n\t\t\tthis.setState({ detailDialog: false, approvalDialog: false, matchDialog: false, model: this.defaultModel, messageDetailModel: this.defaultMessageModel });\r\n\t\t}\r\n\t}\r\n\r\n\tHandleOpenDetail(templateId, transferId, isApproval) {\r\n\t\tthis.ExecutePostRequest(\"/bankapi/v1.0/WireBeneficiaryTemplate/SearchMessage\",\r\n\t\t\t{ Id: templateId },\r\n\t\t\tresponseData => {\r\n\t\t\t\tconst tempModel = { ...responseData.Item };\r\n\t\t\t\ttempModel.TransferId = transferId;\r\n\t\t\t\ttempModel.TempOrderingInstitutionSwiftCode = tempModel.OrderingInstitutionSwiftCode;\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tmessageDetailModel: tempModel,\r\n\t\t\t\t\tdetailDialog: true,\r\n\t\t\t\t\tapprovalDialog: isApproval\r\n\t\t\t\t});\r\n\t\t\t});\r\n\t}\r\n\r\n\tGetRenderItemUniqueClient = (x) => {\r\n\t\tthis.renderItemUniqueClient = `${x.Name} - ${x.UniqueClientId}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tGetRenderItemAccount = (x) => {\r\n\t\tthis.renderItemAccount = `${x.AccountNumber} - ${x.AccountName}`;\r\n\t\treturn this.renderItemAccount;\r\n\t}\r\n\r\n\tHandleMatchDialog = () => {\r\n\t\tthis.setState({ matchDialog: false });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled, classes } = this.props;\r\n\t\tconst { IsLoading, Alert } = this.state;\r\n\t\tconst { model, isBackOffice, messageDetailModel, matchDialog, detailDialog, approvalDialog, approvalTransactionList, transactionList } = this.state;\r\n\r\n\t\tconst renderColumns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t this.HandleOpenDetail(row.original.MessageId, 0, false)} />\r\n\t\t\t\t\t\t this.HandleOpenDetail(row.original.MessageId, row.original.WireTransferId, true)} />\r\n\t\t\t\t\t
\r\n\t\t\t\t)\r\n\t\t\t}, ...this.columns];\r\n\r\n\r\n\t\tconst renderTransactionColumns = [\r\n\t\t\t{\r\n\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t this.HandleOpenDetail(row.original.MessageId, 0, false)} />\r\n\t\t\t\t\t
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Benefeciary Name\",\r\n\t\t\t\taccessor: \"BankBeneficiaryName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Beneficiary Account Number\",\r\n\t\t\t\taccessor: \"BankBeneficaryAccountNumber\"\r\n\r\n\t\t\t}, ...this.columns];\r\n\t\treturn (\r\n\t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
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nOutgoingWireTransfers.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\thandleOperationType: func,\r\n\tshowQuestionMessage: func,\r\n\tsetAppLeftTitle: func,\r\n\tsetAppCenterTitle: func,\r\n\tDisabled: bool,\r\n\tValueChanged: PropTypes.func,\r\n\tModel: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(OutgoingWireTransfers, {});","import { DialogContent } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { EditIcon } from \"core/Icons\";\r\nimport PropTypes, { bool, func } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { GridColumnType, ProgramCodes, WireMsbStatusValue } from \"views/Constants/Constant\";\r\nimport BeneficiaryDetail from \"views/WireTransfer/CreateWireTransfer/BeneficiaryDetail\";\r\n\r\nclass MSBSubTransactionsDetail extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.InitialModel = {\r\n\t\t\tFromDate: DateHelper.GetDate(),\r\n\t\t\tToDate: DateHelper.GetDate(),\r\n\t\t\tStatusId: null,\r\n\t\t\tFileName: null,\r\n\t\t\tClientId: null,\r\n\t\t\tMainTransactionId: null\r\n\t\t};\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"File Name\",\r\n\t\t\t\taccessor: \"FileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Status\",\r\n\t\t\t\taccessor: \"MsbStatusDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"MainTransactionId\",\r\n\t\t\t\taccessor: \"MainTransactionId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sub-TransactionId\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.Id\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Tranaction Id\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.RefNo\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Message Type\",\r\n\t\t\t\taccessor: \"MessageType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date of Request\",\r\n\t\t\t\taccessor: \"DateOfRequest\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Value Effective\",\r\n\t\t\t\taccessor: \"ValueEffective\",\r\n\t\t\t\ttype: GridColumnType.DateTimeUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sender Name\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.SenderName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"BeneficiaryName\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.BeneficiaryName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.BaseAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Currency\",\r\n\t\t\t\taccessor: \"Currency\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sending Country\",\r\n\t\t\t\taccessor: \"SendingCountry\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Destination Country\",\r\n\t\t\t\taccessor: \"DestinationCountry\"\r\n\t\t\t},\r\n\r\n\t\t];\r\n\r\n\t\tthis.detailColumns = [\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Settlement Direction\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.Direction\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Payment Amount\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.OriginalAmount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Settlement Amount\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.SettlementAmount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Settlement Route\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.SettlementRoute\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Settlement Transit\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.SettlementTransit\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"OrderingInstIdentifier\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.OrderingInstIdentifier\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Originator Route\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.OriginatorRoute\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Originator Transit\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.OriginatorTransit\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Settlement Transit\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.SettlementTransit\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Ordering Inst. Name\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.OrderingInstName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Ordering Institution Addr1\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.OrderingInstitutionAddr1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Ordering Institution Addr2\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.OrderingInstitutionAddr2\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Ordering Institution Addr3\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.OrderingInstitutionAddr3\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Contact Name\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.ContactName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Deliver To\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.DeliverTo\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Receiver BIC\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.ReceiverBIC\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Dest Branch Identifier\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.DestBranchIdentifier\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Destination Route\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.DestinationRoute\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Contact Name\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.ContactName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Deliver To\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.DeliverTo\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Receiver BIC\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.ReceiverBIC\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Dest Branch Identifier\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.DestBranchIdentifier\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Destination Route\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.DestinationRoute\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Destination Route\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.DestinationRoute\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Destination Transit\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.DestinationTransit\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Dest. Branch Name\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.DestBranchName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Dest. Branch Addr1\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.DestBranchAddr1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Dest. Branch Addr2\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.DestBranchAddr2\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Dest. Branch Addr3\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.DestBranchAddr3\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Dest Country\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.DestCountry\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Rec Corresondent Name\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.RecCorresondentName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Rec Corresondent Identifier\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.RecCorresondentIdentifier\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Rec Corresondent Addr1\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.RecCorresondentAddr1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Rec Corresondent Addr2\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.RecCorresondentAddr2\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Rec Corresondent Addr3\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.RecCorresondentAddr3\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Intermediary Name\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.IntermediaryName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Intermediary Addr1\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.IntermediaryAddr1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Intermediary Addr2\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.IntermediaryAddr2\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"IntermediaryAddr3\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.IntermediaryAddr3\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Branch Buy\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.BranchBuy\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Rate Special Rate\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.RateSpecialRate\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Exchange Rate Date\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.ExchangeRateDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Payment Method\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.PaymentMethod\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Rate Special Rate\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.RateSpecialRate\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Exchange Rate Date\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.ExchangeRateDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Branch Sell Rate\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.BranchSellRate\"\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Payment Method\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.PaymentMethod\"\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sender Type\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.SenderType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sender Addr1\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.SenderAddr1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sender Addr2\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.SenderAddr2\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sender Addr3\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.SenderAddr3\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Id Country\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.IdCountry\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Id Sender\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.IdSender\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Id Issuer\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.IdIssuer\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sender Phone No\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.SenderPhoneNo\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Principle Natureof Business\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.PrincipleNatureofBusiness\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sender Birth Date\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.SenderBirthDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Company Representative\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.CompanyRepresentative\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reason For Transfer\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.ReasonForTransfer\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Additional Sender Info\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.AdditionalSenderInfo\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Beneficiary Addr1\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.BeneficiaryAddr1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Beneficiary Addr2\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.BeneficiaryAddr2\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Beneficiary Addr3\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.BeneficiaryAddr3\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Recipient Information\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.RecipientInformation\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Special Instructions\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.SpecialInstructions\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Internal Notes\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.InternalNotes\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Additional SWIFT Information\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.AdditionalSWIFTInformation\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Member Service Charge\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.MemberServiceCharge\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Billing Code\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.BillingCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Billing System\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.BillingSystem\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"NON Negotiable\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.NONNegotiable\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Created By\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.CreatedBy\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Created Date\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.CreatedDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date Last Modified\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.DateLastModified\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Last Modified By\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.LastModifiedBy\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"WireStatus\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.WireStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Beneficiary Birth Date\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.BeneficiaryBirthDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Receiving Institution\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.ReceivingInstitution\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Beneficiary Company Name\",\r\n\t\t\t\taccessor: \"CompanyName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Country\",\r\n\t\t\t\taccessor: \"CountryFormat\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.renderColumns = [{\r\n\t\t\tHeader: \"Actions\",\r\n\t\t\tsortable: false,\r\n\t\t\tfilterable: false,\r\n\t\t\twidth: 80,\r\n\t\t\tCell: row => (\r\n\t\t\t\t
\r\n\r\n\t\t\t\t\t this.HandleOpenEdit(row.original.WireTransferMSBFileDetail.Id)}\r\n\t\t\t\t\t\tIcon={EditIcon}\r\n\t\t\t\t\t/>\r\n\t\t\t\t
\r\n\t\t\t)\r\n\t\t},\r\n\r\n\t\t... this.columns,\r\n\t\t...this.detailColumns];\r\n\r\n\t\tthis.defaultHeader = { TotalTransactionAmount: null, SubTransactionsTotal: null, MainTransactionAmount: null };\r\n\t\tthis.state = {\r\n\t\t\tmodel: { ...this.InitialModel },\r\n\t\t\theaderModel: { ... this.defaultHeader },\r\n\t\t\tsubStatusList: [],\r\n\t\t\ttempSubStatusList: [],\r\n\t\t\ttransactionList: [],\r\n\t\t\tPendingList: [],\r\n\t\t\tNonPendingList: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tShowFileDetail: false,\r\n\t\t\tFileDetail: [],\r\n\t\t\tapprovalTransactionList: [],\r\n\t\t\tapprovalDialog: false,\r\n\t\t\tdetailDialog: false,\r\n\t\t\tApprovalModel: {},\r\n\t\t\ttemplateDetailModel: {}\r\n\t\t};\r\n\r\n\r\n\t\tthis.subTransactionColumns = [\r\n\t\t\t...this.columns,\r\n\t\t\t...this.detailColumns\r\n\t\t]\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"MSB Sub Details\");\r\n\t\tthis.props.setAppCenterTitle(\"CLEARING & SETTLEMENT\");\r\n\t}\r\n\r\n\thandleChange = (name, newValue) => {\r\n\t\tthis.setState(function (state) {\r\n\t\t\tvar model = state.model || {};\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\r\n\r\n\tGetData = () => {\r\n\t\tthis.showLoading();\r\n\r\n\t\tthis.setState({\r\n\t\t\ttransactionList: [],\r\n\t\t\theaderModel: { TotalTransactionAmount: null, SubTransactionsTotal: null, MainTransactionAmount: null }\r\n\t\t}, () => {\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/bankapi/v1.0/ClearingSettlement/GetMSBSubTransactionsDetail\",\r\n\t\t\t\tthis.state.model,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded)\r\n\t\t\t\t\t\tthis.showBasicAlert(\"Error\", \"Send operation error : \" + responseData.ErrorDescription + \"!!!\", \"error\");\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tvar transactionList = [];\r\n\r\n\r\n\t\t\t\t\t\tvar headerModel = { ... this.defaultHeader };\r\n\t\t\t\t\t\tvar PendingList = [];\r\n\t\t\t\t\t\tvar NonPendingList = [];\r\n\t\t\t\t\t\tif (responseData.Item != null &&\r\n\t\t\t\t\t\t\tresponseData.Item.DetailList != null &&\r\n\t\t\t\t\t\t\tresponseData.Item.DetailList.length != 0) {\r\n\t\t\t\t\t\t\ttransactionList = responseData.Item.DetailList;\r\n\t\t\t\t\t\t\theaderModel = responseData.Item.TransactionInfo;\r\n\t\t\t\t\t\t\tPendingList = transactionList.filter(i => i.MsbStatusValue == WireMsbStatusValue.Pending);\r\n\t\t\t\t\t\t\tNonPendingList = transactionList.filter(i => i.MsbStatusValue != WireMsbStatusValue.Pending);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\t\ttransactionList, PendingList: PendingList, NonPendingList: NonPendingList, headerModel, isLoading: false\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\t\t\t\t\tthis.showBasicAlert(\"Error\", \"An error occurred during the api visit\" + error, \"error\");\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t});\r\n\t}\r\n\r\n\tHandleDelete = () => {\r\n\r\n\t}\r\n\r\n\tshowBasicAlert = (title, message, type) => {\r\n\t\tthis.setState({ isLoading: false, alert: this.hideAlert()} /> });\r\n\t}\r\n\r\n\tshowLoading = () => { this.setState({ alert: null, isLoading: true }); }\r\n\thideLoading = () => { this.setState({ alert: null, isLoading: false }); }\r\n\thideAlert = () => { this.setState({ alert: null, isLoading: false }); }\r\n\r\n\tClearModel = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: { ...this.InitialModel },\r\n\t\t\tShowFileDetail: false,\r\n\t\t\tFileDetail: []\r\n\t\t});\r\n\t}\r\n\r\n\tHandleOpenDetail = (index) => {\r\n\t\tconst approveModel = this.state.transactionList[index].WireTransferMSBFileDetail;\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/WireTransfer/MsbShowSubDetail\",\r\n\t\t\t{ Id: approveModel.Id },\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\tthis.CloseDialog();\r\n\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\r\n\t\t\t\t\tthis.setState({ approvalDialog: false, ShowFileDetail: true, ApprovalModel: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\r\n\r\n\t}\r\n\tHandleOpenEdit = (Id) => {\r\n\t\tconst templateDetailModel = this.state.transactionList.find(x => x.WireTransferMSBFileDetail.Id == Id).WireBeneficiaryTemplate;\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/WireTransfer/MsbShowSubDetail\",\r\n\t\t\t{ Id: Id },\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\tthis.CloseDialog();\r\n\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\r\n\t\t\t\t\tthis.setState({ approvalDialog: true, ShowFileDetail: true, ApprovalModel: responseData.Item, templateDetailModel });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tHandleClose = () => {\r\n\t\tthis.CloseDialog();\r\n\t}\r\n\r\n\tHandleRejectStatus = () => {\r\n\t\tif (!this.state.approvalDialog)\r\n\t\t\treturn;\r\n\t\tvar model = this.state.ApprovalModel;\r\n\t\tvar transactionRequest = {\r\n\t\t\tStatusType: WireMsbStatusValue.Reject,\r\n\t\t\tFileId: model.FileId,\r\n\t\t\tId: model.Id\r\n\t\t};\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/WireTransfer/MsbSubDetailStatusChange\",\r\n\t\t\ttransactionRequest,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.CloseDialog();\r\n\t\t\t\t\tthis.GetData();\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\r\n\t}\r\n\r\n\tHandleApproveStatus = () => {\r\n\t\tif (!this.state.approvalDialog)\r\n\t\t\treturn;\r\n\t\tvar model = this.state.ApprovalModel;\r\n\t\tvar transactionRequest = {\r\n\t\t\tStatusType: WireMsbStatusValue.Approve,\r\n\t\t\tFileId: model.FileId,\r\n\t\t\tId: model.Id\r\n\t\t};\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/WireTransfer/MsbSubDetailStatusChange\",\r\n\t\t\ttransactionRequest,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.CloseDialog();\r\n\t\t\t\t\tthis.GetData();\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\r\n\t}\r\n\tCloseDialog = () => {\r\n\t\tthis.setState({ detailDialog: false, approvalDialog: false, ShowFileDetail: false });\r\n\t}\r\n\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, headerModel, isLoading, PendingList, NonPendingList, ShowFileDetail, templateDetailModel, ApprovalModel, approvalDialog } = this.state;\r\n\r\n\t\tconst showSummary = headerModel.SubTransactionsTotal || headerModel.MainTransactionAmount || headerModel.TotalTransactionAmount;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\tValue={model.ClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\tCanClear />\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{showSummary &&\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t{headerModel.MainTransactionAmount &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t{headerModel.SubTransactionsTotal &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t{headerModel.TotalTransactionAmount &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\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t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{approvalDialog &&\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t{approvalDialog &&\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nMSBSubTransactionsDetail.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\thandleOperationType: func,\r\n\tshowQuestionMessage: func,\r\n\tsetAppLeftTitle: func,\r\n\tsetAppCenterTitle: func,\r\n\tDisabled: bool\r\n};\r\n\r\nexport default withArtifex(MSBSubTransactionsDetail, {});","import { DialogContent, DialogTitle, Slide } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { DetailIcon, EditIcon, DocumentIcon } from \"core/Icons\";\r\nimport PropTypes, { bool, func } from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericPage, GenericSelectInput, GenericTextInput, GenericTitle, GenericLabel } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { Direction, GridColumnType, ProgramCodes, FinScanSearchResultType } from \"views/Constants/Constant\";\r\nimport BeneficiaryDetail from \"views/WireTransfer/CreateWireTransfer/BeneficiaryDetail\";\r\n\r\nconst emptyObject = {};\r\n\r\nfunction Transition(props) {\r\n\treturn ;\r\n}\r\nclass OutgoingWireTransfers extends GenericPage {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.IsBackOffice = ClientHelper.IsBackOffice();\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Organization\",\r\n\t\t\t\taccessor: \"OrganizationUniqueName\",\r\n\t\t\t\tshow: this.IsBackOffice\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Swift Reference Number\",\r\n\t\t\t\taccessor: \"SwiftReferenceNumber\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Reference Number\",\r\n\t\t\t\taccessor: \"TransactionReferenceNumber\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client User\",\r\n\t\t\t\taccessor: \"InsertUser\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Source Account Number\",\r\n\t\t\t\taccessor: \"FromAccAccountNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"To Account Number\",\r\n\t\t\t\taccessor: \"ToAccountNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"To IBAN\",\r\n\t\t\t\taccessor: \"ToIBAN\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Direction\",\r\n\t\t\t\taccessor: \"Direction\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Status\",\r\n\t\t\t\taccessor: \"Status\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"SubStatus\",\r\n\t\t\t\taccessor: \"SubStatus\",\r\n\t\t\t\tshow: this.IsBackOffice\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Channel\",\r\n\t\t\t\taccessor: \"Channel\",\r\n\t\t\t\tshow: this.IsBackOffice\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Captured\",\r\n\t\t\t\taccessor: \"IsCaptured\",\r\n\t\t\t\ttype: GridColumnType.YesNo,\r\n\t\t\t\tColumnType: GridColumnType.YesNo\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"MessageType\",\r\n\t\t\t\taccessor: \"MessageType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date of Request\",\r\n\t\t\t\taccessor: \"DateRequest\"\r\n\t\t\t},\r\n\t\t\t// {\r\n\t\t\t// \tHeader: \"Value Effective\",\r\n\t\t\t// \taccessor: \"ValueEffective\"\r\n\t\t\t// },\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"Amount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t// {\r\n\t\t\t// \tHeader: \"Fee Amount\",\r\n\t\t\t// \taccessor: \"FeeAmount\",\r\n\t\t\t// \ttype: GridColumnType.Money,\r\n\t\t\t// \tColumnType: GridColumnType.Money\r\n\t\t\t// },\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Currency\",\r\n\t\t\t\taccessor: \"CurrencyName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Remittance\",\r\n\t\t\t\taccessor: \"Remittance\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Purpose Of Wire\",\r\n\t\t\t\taccessor: \"PurposeOfWire\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Beneficiary Company Name\",\r\n\t\t\t\taccessor: \"CompanyName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Country\",\r\n\t\t\t\taccessor: \"CountryFormat\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.columnsDetail = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"FullName\",\r\n\t\t\t\taccessor: \"FullName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Gender\",\r\n\t\t\t\taccessor: \"Gender\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Nationality\",\r\n\t\t\t\taccessor: \"Nationality\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Country\",\r\n\t\t\t\taccessor: \"Country\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"PlaceOfBirth\",\r\n\t\t\t\taccessor: \"PlaceOfBirth\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"DateOfBirth\",\r\n\t\t\t\taccessor: \"DateOfBirth\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"TextInfo\",\r\n\t\t\t\taccessor: \"TextInfo\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\r\n\t\tthis.defaultTemplateModel = {\r\n\t\t\tId: 0,\r\n\t\t\tIsRecordValid: true,\r\n\t\t\tIsTemplate: false,\r\n\t\t\tAlias: null,\r\n\t\t\tTemplateName: null,\r\n\t\t\tUniqueClientId: 0,\r\n\t\t\tUniqueClient: null,\r\n\t\t\tCompanyName: null,\r\n\t\t\tName: null,\r\n\t\t\tMiddleName: null,\r\n\t\t\tLastName: null,\r\n\t\t\tAddressLine1: null,\r\n\t\t\tAddressLine2: null,\r\n\t\t\tZipCode: null,\r\n\t\t\tCityName: null,\r\n\t\t\tProvinceName: null,\r\n\t\t\tCityId: null,\r\n\t\t\tCity: null,\r\n\t\t\tProvinceId: null,\r\n\t\t\tProvince: null,\r\n\t\t\tCountryId: null,\r\n\t\t\tCountry: null,\r\n\t\t\tCurrencyId: null,\r\n\t\t\tCurrency: null,\r\n\t\t\tBankName: null,\r\n\t\t\tBankInstitution: null,\r\n\t\t\tBankTransitNumber: null,\r\n\t\t\tBankBranchName: null,\r\n\t\t\tBankFinInsId: null,\r\n\t\t\tBankFinIns: null,\r\n\t\t\tBankBranchId: null,\r\n\t\t\tBankBranch: null,\r\n\t\t\tAccountNumber: null,\r\n\t\t\tBankSwiftCode: null,\r\n\t\t\tBankAddressLine1: null,\r\n\t\t\tBankAddressLine2: null,\r\n\t\t\tBankZipCode: null,\r\n\t\t\tBankCityId: null,\r\n\t\t\tBankCity: null,\r\n\t\t\tBankProvinceId: null,\r\n\t\t\tBankProvince: null,\r\n\t\t\tBankCountryId: null,\r\n\t\t\tBankCountry: null,\r\n\t\t\tBankCityName: null,\r\n\t\t\tBankProvinceName: null,\r\n\t\t\tIsDomestic: null,\r\n\t\t\tHasChange: false\r\n\t\t};\r\n\r\n\t\tthis.defaultModel = {\r\n\t\t\tClientId: null,\r\n\t\t\tFromDate: DateHelper.GetDate(),\r\n\t\t\tToDate: DateHelper.GetDate(),\r\n\t\t\tDirectionParamValue: Direction.Outgoing,\r\n\t\t\tMessageTypeId: null,\r\n\t\t\tSubStatusId: null,\r\n\t\t\tStatusId: null,\r\n\t\t\tAmountFrom: null,\r\n\t\t\tAmountTo: null,\r\n\t\t\tStatusParamCode: null,\r\n\t\t\tSwiftReferenceNumber: null,\r\n\t\t\tTransactionReferenceNumber: null,\r\n\t\t\tIsBackOffice: true\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: { ...this.defaultModel },\r\n\t\t\tsubStatusList: [],\r\n\t\t\ttempSubStatusList: [],\r\n\t\t\ttransactionList: [],\r\n\t\t\tapprovalTransactionList: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tisBackOffice: false,\r\n\t\t\ttemplateDetailModel: {},\r\n\t\t\tIsDomestic: {},\r\n\t\t\tdetailDialog: false,\r\n\t\t\tapprovalDialog: false,\r\n\t\t\tisDetailManualVerificationDialogOpen: false,\r\n\t\t\tisDetailUnverifiedDialogOpen: false,\r\n\t\t\twatchlistModel: {},\r\n\t\t\tlistListPartialMatches: [],\r\n\t\t\twireTransferIdForWatchlist: 0,\r\n\t\t\tIsCaptured: false\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tsuper.componentDidMount();\r\n\t\tthis.Bind(this);\r\n\t\tvar { isBackOffice } = this.state;\r\n\t\tvar model = { ...this.state.model };\r\n\r\n\t\tisBackOffice = ClientHelper.IsBackOffice();\r\n\t\tif (!isBackOffice) {\r\n\t\t\tmodel.ClientId = ClientHelper.GetClientRowId();\r\n\t\t\tthis.columns.splice(1, 1);\r\n\t\t}\r\n\t\tthis.setState({ model, isBackOffice });\r\n\t\tthis.props.setAppLeftTitle(\"Wire Outgoing Transfers\");\r\n\t\tthis.props.setAppCenterTitle(\"CLEARING & SETTLEMENT\");\r\n\t}\r\n\r\n\tHandleChange(name, newValue, data) {\r\n\t\tthis.setState(function (state) {\r\n\t\t\tvar model = state.model || {};\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\tif (name == \"StatusId\") {\r\n\t\t\t\tif (newValue == -1) {\r\n\t\t\t\t\tmodel.StatusParamCode = null;\r\n\t\t\t\t}\r\n\t\t\t\telse if (data && data.ParameterValue == null) {\r\n\t\t\t\t\tmodel.StatusParamCode = null;\r\n\t\t\t\t}\r\n\t\t\t\telse if (data) {\r\n\t\t\t\t\tmodel.StatusParamCode = data.ParameterValue;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tGetData() {\r\n\t\tthis.ExecutePostRequest(\r\n\t\t\t\"/bankapi/v1.0/WireTransfer/ClientOutgoingWireTransactionSearch\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (responseData.Item == null || responseData.Item.length < 1) {\r\n\t\t\t\t\tresponseData.Item = [];\r\n\t\t\t\t}\r\n\t\t\t\tvar approvalTransactionList = [];\r\n\t\t\t\tvar transactionList = [];\r\n\t\t\t\tresponseData.Item.forEach(element => {\r\n\t\t\t\t\tif (element.IsApproval) {\r\n\t\t\t\t\t\tapprovalTransactionList.push(element);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\ttransactionList.push(element);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t\tthis.setState({ transactionList, approvalTransactionList });\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tClearModel() {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tvar clientId = this.state.isBackOffice ? null : model.ClientId;\r\n\t\tvar newModel = { ...this.defaultModel };\r\n\t\tnewModel.ClientId = clientId;\r\n\t\tthis.setState({ model: newModel, transactionList: [], approvalTransactionList: [], wireTransferIdForWatchlist:0 });\r\n\t}\r\n\r\n\tHandleApproval() {\r\n\t\tconst { templateDetailModel } = this.state;\r\n\t\tthis.ExecutePostRequest(\"/bankapi/v1.0/WireTransfer/BackofficeApproveOrDenyOutgoingWireTransaction\",\r\n\t\t\t{\r\n\t\t\t\tWireTransferId: templateDetailModel.TransferId,\r\n\t\t\t\tBeneficiaryTemplate: templateDetailModel,\r\n\t\t\t\tIsApproval: true,\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.HandleClose();\r\n\r\n\t\t\t\t\tthis.ShowGenericMessage(\"success\", \"Create\", \"Approved successfully.\");\r\n\t\t\t\t\tthis.CloseDialog(this.GetData);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t}\r\n\r\n\tHandleReject() {\r\n\t\tconst { templateDetailModel } = this.state;\r\n\t\tthis.ExecutePostRequest(\"/bankapi/v1.0/WireTransfer/BackofficeApproveOrDenyOutgoingWireTransaction\",\r\n\t\t\t{\r\n\t\t\t\tWireTransferId: templateDetailModel.TransferId,\r\n\t\t\t\tBeneficiaryTemplate: templateDetailModel,\r\n\t\t\t\tIsApproval: false,\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.HandleClose();\r\n\r\n\t\t\t\t\tthis.ShowGenericMessage(\"success\", \"Create\", \"Disapproved successfully.\");\r\n\t\t\t\t\tthis.CloseDialog(this.GetData);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t}\r\n\r\n\tHandleClose() {\r\n\t\tthis.CloseDialog();\r\n\t}\r\n\r\n\tCloseDialog(func = null) {\r\n\t\tif (func != null) {\r\n\t\t\tthis.setState({ detailDialog: false, approvalDialog: false, isDetailManualVerificationDialogOpen:false, isDetailUnverifiedDialogOpen:false }, func);\r\n\t\t} else {\r\n\t\t\tthis.setState({ detailDialog: false, approvalDialog: false, isDetailManualVerificationDialogOpen:false, isDetailUnverifiedDialogOpen:false });\r\n\t\t}\r\n\t}\r\n\r\n\tHandleOpenDetail(templateId, transferId, isApproval, isCaptured) {\r\n\t\tthis.ExecutePostRequest(\"/bankapi/v1.0/WireBeneficiaryTemplate/Search\",\r\n\t\t\t{ Id: templateId, IsTemplate: false },\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tif (responseData.Item != null && responseData.Item.length > 0) {\r\n\r\n\t\t\t\t\t\tconst tempModel = { ...responseData.Item[0] };\r\n\t\t\t\t\t\ttempModel.IsDomestic = tempModel.BankCountry != null && tempModel.BankCountry.ISO2 == \"CA\";\r\n\t\t\t\t\t\ttempModel.TransferId = transferId;\r\n\t\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\t\ttemplateDetailModel: tempModel,\r\n\t\t\t\t\t\t\tIsDomestic: responseData.Item[0].IsDomestic,\r\n\t\t\t\t\t\t\tdetailDialog: true,\r\n\t\t\t\t\t\t\tapprovalDialog: isApproval,\r\n\t\t\t\t\t\t\tIsCaptured: isCaptured\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.props.showMessage(\"warning\", \"Detail!\", \"Detail not found!\");\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t}\r\n\r\n\r\n\tTemplateValueChanged(name, newValue, data) {\r\n\t\tconst { templateDetailModel } = this.state;\r\n\r\n\r\n\t\tif (name == \"CurrencyId\") {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// if (name == \"CurrencyId\" && this.defaultTemplateModel.CurrencyId == null) {\r\n\t\t// \tthis.defaultTemplateModel.CurrencyId = newValue;\r\n\t\t// }\r\n\r\n\t\tvar isTemplate = templateDetailModel.Id != 0;\r\n\t\tif (templateDetailModel[name] != newValue && isTemplate) {\r\n\t\t\ttemplateDetailModel.HasChange = true;\r\n\t\t}\r\n\r\n\t\ttemplateDetailModel[name] = newValue;\r\n\t\tif (name == \"BankCountryId\" && data != null) {\r\n\t\t\ttemplateDetailModel.IsDomestic = data.ISO2 == \"CA\";\r\n\t\t}\r\n\t\tif (name == \"BankCountryId\" && newValue == null) {\r\n\t\t\ttemplateDetailModel.BankCityId = null;\r\n\t\t\ttemplateDetailModel.BankProvinceId = null;\r\n\t\t}\r\n\t\tif (name == \"CountryId\" && newValue == null) {\r\n\t\t\ttemplateDetailModel.CityId = null;\r\n\t\t\ttemplateDetailModel.ProvinceId = null;\r\n\t\t}\r\n\t\tif (name == \"SendEmailAddress\" && data != null)\r\n\t\t\ttemplateDetailModel[\"IsSendEmailAddressValid\"] = data.IsValid;\r\n\t\tif (name == \"SendReceiptPDF\" && !newValue)\r\n\t\t\ttemplateDetailModel[\"SendEmailAddress\"] = \"\";\r\n\t\tthis.setState({ templateDetailModel });\r\n\t\t//Template\r\n\t}\r\n\r\n\tRenderOrganizationUniqueIdSelect = (d) => {\r\n\t\tif (window.OrganizationUniqueId != 5000) {\r\n\t\t\tconst model = { ...this.state.model };\r\n\t\t\tmodel[\"OrganizationUniqueId\"] = d.OrganizationUniqueId;\r\n\t\t\tthis.setState({ model: model });\r\n\t\t}\r\n\r\n\t\treturn d.OrganizationUniqueId + \"-\" + d.OrganizationName;\r\n\t};\r\n\r\n\tDetailManualVerificationDialogOpen = (finScanSearchLogId, wireTransferId, isCaptured) => {\r\n\t\tvar { wireTransferIdForWatchlist, IsCaptured } = this.state;\r\n\t\twireTransferIdForWatchlist = wireTransferId;\r\n\t\tIsCaptured = isCaptured;\r\n\r\n\t\tthis.GetFinScanSearchLogDetailManualVerification(finScanSearchLogId);\r\n\t\tthis.setState({ isDetailManualVerificationDialogOpen: true, wireTransferIdForWatchlist, IsCaptured });\r\n\t}\r\n\r\n\tGetFinScanSearchLogDetailManualVerification = async (finScanSearchLogId) => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/amlkycapi/v1.0/FinScanSearchLog/GetPartialMatchListByFinScanSearchLogId\", { FinScanSearchLogId: finScanSearchLogId });\r\n\r\n\t\tif (result != null && result.length != 0) {\r\n\t\t\tthis.SetListPartialMatches(result);\r\n\t\t} else {\r\n\t\t\tthis.setState({ listListPartialMatches: []});\r\n\t\t}\r\n\t}\r\n\r\n\tDetailManualVerificationDialogClose = () => {\r\n\t\tthis.setState({ isDetailManualVerificationDialogOpen: false });\r\n\t}\r\n\r\n\t\tSetListPartialMatches = (searchResult) => {\r\n\t\tvar listListPartialMatches = searchResult;\r\n\r\n\t\tfor (let i = 0; i < searchResult.length; i++) {\r\n\t\t\tsearchResult[i].JsonResultDataParsed.map(x => {\r\n\t\t\t\tlistListPartialMatches[i][x.Key] = x.Value;\r\n\r\n\t\t\t\treturn null;\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tthis.setState({ listListPartialMatches });\r\n\t}\r\n\r\n\tDetailUnverifiedDialogOpen = (finScanSearchLogId, wireTransferId, isCaptured) => {\r\n\t\tvar { wireTransferIdForWatchlist, IsCaptured } = this.state;\r\n\t\twireTransferIdForWatchlist = wireTransferId;\r\n\t\tIsCaptured = isCaptured;\r\n\t\tthis.GetFinScanSearchLogDetailUnverified(finScanSearchLogId);\r\n\t\tthis.setState({ isDetailUnverifiedDialogOpen: true, wireTransferIdForWatchlist, IsCaptured });\r\n\t}\r\n\r\n\tGetFinScanSearchLogDetailUnverified = async (finScanSearchLogId) => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar { watchlistModel } = this.state;\r\n\r\n\t\tvar result = await ExecuteApiPost(\"/amlkycapi/v1.0/FinScanSearchLogDetail/GetDetailBySearchLogId\", { FinScanSearchLogId: finScanSearchLogId });\r\n\r\n\t\tif (result != null && result.length != 0) {\r\n\r\n\t\t\twatchlistModel = result;\r\n\r\n\t\t\tthis.setState({ watchlistModel });\r\n\t\t}\r\n\t}\r\n\r\n\tDetailUnverifiedDialogClose = () => {\r\n\t\tthis.setState({ isDetailUnverifiedDialogOpen: false });\r\n\t}\r\n\r\n\tApproveWatchlistStatus = () => {\r\n\t\tvar { wireTransferIdForWatchlist } = this.state;\r\n\r\n\t\tthis.ExecutePostRequest(\"/bankapi/v1.0/WireTransfer/ApproveWatchlistStatus\",\r\n\t\t\t{\r\n\t\t\t\tEftWireId: wireTransferIdForWatchlist\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.HandleClose();\r\n\t\t\t\t\tthis.ShowGenericMessage(\"success\", \"Create\", \"Approved successfully.\");\r\n\t\t\t\t\tthis.CloseDialog(this.GetData);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t}\r\n\r\n\tRejectWatchlistStatus = () => {\r\n\t\tvar { wireTransferIdForWatchlist } = this.state;\r\n\r\n\t\tthis.ExecutePostRequest(\"/bankapi/v1.0/WireTransfer/RejectWatchlistStatus\",\r\n\t\t\t{\r\n\t\t\t\tEftWireId: wireTransferIdForWatchlist\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.HandleClose();\r\n\r\n\t\t\t\t\tthis.ShowGenericMessage(\"success\", \"Create\", \"Rejected successfully.\");\r\n\t\t\t\t\tthis.CloseDialog(this.GetData);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { IsLoading, Alert, isDetailManualVerificationDialogOpen, listListPartialMatches, isDetailUnverifiedDialogOpen, watchlistModel } = this.state;\r\n\t\tconst { model, isBackOffice, templateDetailModel, detailDialog, approvalDialog, approvalTransactionList, transactionList, IsCaptured } = this.state;\r\n\r\n\t\tconst renderColumns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tminWidth: 90,\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t this.HandleOpenDetail(row.original.TemplateId, 0, false, row.original.IsCaptured)}\r\n\t\t\t\t\t\t\tIcon={DetailIcon}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t this.HandleOpenDetail(row.original.TemplateId, row.original.WireTransferId, true, row.original.IsCaptured)}\r\n\t\t\t\t\t\t\tIcon={EditIcon}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t{row.original.IsCaptured && \t\t\t\t\t\r\n\t\t\t\t\t\t\t row.original.SearchResultParameterValue == FinScanSearchResultType.ListExactMatch\r\n\t\t\t\t\t\t\t\t? this.DetailUnverifiedDialogOpen(row.original.FinScanSearchLogId, row.original.WireTransferId, row.original.IsCaptured) : \r\n\t\t\t\t\t\t\t\tthis.DetailManualVerificationDialogOpen(row.original.FinScanSearchLogId, row.original.WireTransferId, row.original.IsCaptured) }/>\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tthis.props.ExecuteApiFileDownloadWithGenericResponse(\r\n\t\t\t\t\t\t\t\t\t\"/bankapi/v1.0/WireTransfer/GenerateWireTransferPdfFile\",\r\n\t\t\t\t\t\t\t\t\trow.original,\r\n\t\t\t\t\t\t\t\t\t`${row.original.WireTransferId\r\n\t\t\t\t\t\t\t\t\t}-${row.original.OrganizationUniqueId == 5001 ? \"Pateno\" : \"DCPayments\"} Wire Transfer`,\r\n\t\t\t\t\t\t\t\t\t\"pdf\"\r\n\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t
\r\n\t\t\t\t)\r\n\t\t\t}, ...this.columns];\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\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\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{/* \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t */}\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nOutgoingWireTransfers.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\thandleOperationType: func,\r\n\tshowQuestionMessage: func,\r\n\tsetAppLeftTitle: func,\r\n\tsetAppCenterTitle: func,\r\n\tDisabled: bool,\r\n\tValueChanged: PropTypes.func,\r\n\tModel: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(OutgoingWireTransfers, {});","import { Dialog, DialogContent } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes, { bool, func } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericGrid, GenericSelectInput, GenericCheckInput } from \"views/Components/Generic\";\r\nimport { Direction, GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nclass CreateBulkFile extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tFromDate: DateHelper.GetDate(),\r\n\t\t\t\tToDate: DateHelper.GetDate(),\r\n\t\t\t\tDirectionParameterValue: \"\"\r\n\t\t\t},\r\n\t\t\tgetTransactionByFileIdModel: {\r\n\t\t\t\tDirectionParameterValue: \"\"\r\n\t\t\t},\r\n\t\t\tTransactionColumns: [],\r\n\t\t\tcheckedValues: [],\r\n\t\t\tfileInfoModel: {},\r\n\t\t\theaderModel: {},\r\n\t\t\ttransactionList: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tSettlementType: \"\"\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tif (this.props.setAppLeftTitle)\r\n\t\t\tthis.props.setAppLeftTitle(\"Bulk Send File\");\r\n\t\tif (this.props.setAppCenterTitle)\r\n\t\t\tthis.props.setAppCenterTitle(\"CLEARING & SETTLEMENT\");\r\n\t\tvar model = { ...this.state.model };\r\n\t\tmodel.DirectionParameterValue = Direction.Outgoing;\r\n\t\tvar getTransactionByFileIdModel = { ...this.state.getTransactionByFileIdModel };\r\n\t\tgetTransactionByFileIdModel.DirectionParameterValue = Direction.Outgoing;\r\n\r\n\t\tvar TransactionColumns = [];\r\n\t\tTransactionColumns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\twidth: 60\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Unique Client Number\",\r\n\t\t\t\taccessor: \"ClientNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Code\",\r\n\t\t\t\taccessor: \"TransactionCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Status\",\r\n\t\t\t\taccessor: \"TransactionStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Source\",\r\n\t\t\t\taccessor: \"TransactionSource\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Notification Status\",\r\n\t\t\t\taccessor: \"NotificationStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Type\",\r\n\t\t\t\taccessor: \"TransactionType\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value == \"Credit\" ? \"Money Send\" : \"Money Request\"}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Priority Type\",\r\n\t\t\t\taccessor: \"PriorityType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"Amount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType:GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Pay. Name\",\r\n\t\t\t\taccessor: \"PayeeName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Pay. Email\",\r\n\t\t\t\taccessor: \"PayeeEmail\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Source Account Transit\",\r\n\t\t\t\taccessor: \"SourceAccountTransit\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Source Account Number\",\r\n\t\t\t\taccessor: \"SourceAccountNumber\"\r\n\t\t\t}\r\n\t\t];\r\n\t\tthis.setState({ getTransactionByFileIdModel, model, TransactionColumns: TransactionColumns });\r\n\r\n\t}\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tvar { SettlementType } = this.state;\r\n\t\tif (name == \"eTransferTypeId\")\r\n\t\t\tSettlementType = data.ParameterDesc;\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model, SettlementType });\r\n\t}\r\n\r\n\r\n\tHandleCheck = (e, x) => {\r\n\r\n\t\tthis.setState(state => ({\r\n\t\t\tcheckedValues: state.checkedValues.includes(x)\r\n\t\t\t\t? state.checkedValues.filter(c => c !== x)\r\n\t\t\t\t: [...state.checkedValues, x]\r\n\t\t}));\r\n\t}\r\n\tGetDailyFileList = () => {\r\n\t\tthis.showLoading();\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/ClearingSettlement/GeteTransferBulkFileTransactions\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.showBasicAlert(\"Error\", responseData.ErrorDescription, \"error\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item == null && responseData.Item.length > 0) {\r\n\t\t\t\t\tthis.showBasicAlert(\"Info\", \"No items for selected search filters !!!\", \"warning\");\r\n\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\ttransactionList: [], headerModel: {},\r\n\t\t\t\t\t\tdailyFileList: responseData.Item, isLoading: false\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.setState({ transactionList: responseData.Item, isLoading: false })\r\n\t\t\t\t}\r\n\r\n\t\t\t},\r\n\t\t\tthis.errorCallback\r\n\t\t);\r\n\t}\r\n\r\n\tGetTransactionList = () => {\r\n\t\tthis.showLoading();\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/ClearingSettlement/GeteTransferTransactionsByFileId\",\r\n\t\t\tresponseData => {\r\n\t\t\t\tvar headerModel = { ...this.state.headerModel };\r\n\t\t\t\tvar transactionList = { ...this.state.transactionList };\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.showBasicAlert(\"Error\", responseData.ErrorDescription, \"error\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tif (responseData.Item.ClearingFileHeaderDetail != null) {\r\n\t\t\t\t\t\theaderModel = responseData.Item.FileHeaderInfo == null ? {} : responseData.Item.FileHeaderInfo;\r\n\t\t\t\t\t\theaderModel.FileDate = this.state.fileInfoModel.FileDate;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\theaderModel = {};\r\n\r\n\t\t\t\t\tif (responseData.Item.FileTransactons != null || responseData.Item.FileTransactons.length > 0)\r\n\t\t\t\t\t\ttransactionList = responseData.Item.FileTransactons;\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\ttransactionList = [];\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ transactionList, headerModel, isLoading: false });\r\n\t\t\t},\r\n\t\t\tthis.errorCallback\r\n\t\t);\r\n\t}\r\n\r\n\tCreateFile = () => {\r\n\t\tif (this.state.checkedValues == null || this.state.checkedValues.length == 0)\r\n\t\t\tthis.showBasicAlert(\"Warning\", \"Settlement Type cannot be empty in creation process !!!\", \"warning\");\r\n\t\telse {\r\n\t\t\tthis.showLoading();\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/bankapi/v1.0/ClearingSettlement/SenBulkFileTransactions\",\r\n\t\t\t\tthis.state.checkedValues,\r\n\t\t\t\tthis.successCreateFile,\r\n\t\t\t\terror => {\r\n\t\t\t\t\tthis.showBasicAlert(\"Error\", \"An error occurred during the api visit\" + error, \"error\");\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t}\r\n\r\n\tsuccessCreateFile = (responseData) => {\r\n\t\tthis.hideLoading();\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.showBasicAlert(\"Error\", responseData.ErrorDescription, \"error\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (responseData != null) {\r\n\t\t\tif (responseData.SuccessCount > 0 || responseData.ErrorCount > 0) {\r\n\t\t\t\tvar successCount = responseData.SuccessCount + \"\";\r\n\t\t\t\tvar errorCount = responseData.ErrorCount + \"\";\r\n\t\t\t\tthis.showBasicAlert(\"Success\", \"Success Count :\" + successCount + \", Error Count : \" + errorCount, \"success\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tthis.showBasicAlert(\"Warning\", this.state.SettlementType + \"=> Settlement Type not have any transaction !!!\", \"warning\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.GetDailyFileList();\r\n\t}\r\n\r\n\r\n\r\n\terrorCallback = (error) => {\r\n\t\tthis.showBasicAlert(\"Error\", \"An error occurred during the api visit\" + error, \"error\");\r\n\t}\r\n\r\n\tshowBasicAlert = (title, message, type) => {\r\n\t\tthis.setState({\r\n\t\t\tisLoading: false,\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\r\n\tshowLoading = () => { this.setState({ isLoading: true }); }\r\n\thideLoading = () => { this.setState({ isLoading: false }); }\r\n\thideAlert = () => { this.setState({ alert: null, isLoading: false }); }\r\n\r\n\tClearModel = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {\r\n\t\t\t\tFromDate: DateHelper.GetDate(),\r\n\t\t\t\tToDate: DateHelper.GetDate(),\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, headerModel, isLoading, transactionList, TransactionColumns, checkedValues } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t

Transaction Filter

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\tValue={model.ClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\tCanClear />\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t

File Filter

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t

\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t
Transaction List

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\t\t\tActions: (\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t c.TransactionId == d.TransactionId).length > 0}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={(e) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tthis.HandleCheck(e, d);\r\n\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\tReceiveDate: d.ReceiveDate,\r\n\t\t\t\t\t\t\t\t\tTransactionId: d.TransactionId,\r\n\t\t\t\t\t\t\t\t\tTransactionETransferId: d.TransactionETransferId,\r\n\t\t\t\t\t\t\t\t\tUniqueClientId: d.UniqueClientId,\r\n\t\t\t\t\t\t\t\t\tClientName: d.ClientName,\r\n\t\t\t\t\t\t\t\t\tClientNumber: d.ClientNumber,\r\n\t\t\t\t\t\t\t\t\tTransactionCode: d.TransactionCode,\r\n\t\t\t\t\t\t\t\t\tTransactionStatus: d.TransactionStatus,\r\n\t\t\t\t\t\t\t\t\tTransactionSource: d.TransactionSource,\r\n\t\t\t\t\t\t\t\t\tNotificationStatus: d.NotificationStatus,\r\n\t\t\t\t\t\t\t\t\tTransactionType: d.TransactionType,\r\n\t\t\t\t\t\t\t\t\tTransactionDate: d.TransactionDate,\r\n\t\t\t\t\t\t\t\t\tPriorityType: d.PriorityType,\r\n\t\t\t\t\t\t\t\t\tAmount: d.Amount,\r\n\t\t\t\t\t\t\t\t\tPayeeName: d.PayeeName,\r\n\t\t\t\t\t\t\t\t\tPayeeEmail: d.PayeeEmail,\r\n\t\t\t\t\t\t\t\t\tSourceAccountTransit: d.SourceAccountTransit,\r\n\t\t\t\t\t\t\t\t\tSourceAccountNumber: d.SourceAccountNumber\r\n\r\n\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\tColumns={TransactionColumns}\r\n\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_e_Transfer} />\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCreateBulkFile.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\thandleOperationType: PropTypes.func,\r\n\tshowQuestionMessage: func,\r\n\tsetAppLeftTitle: func,\r\n\tsetAppCenterTitle: func,\r\n\tDisabled: bool\r\n};\r\n\r\nexport default withArtifex(CreateBulkFile, {});","\r\nimport GridContainer from 'components/Grid/GridContainer';\r\nimport GridItem from 'components/Grid/GridItem';\r\nimport React, { Component } from 'react';\r\nimport ButtonToolbar from 'views/Components/ButtonToolbar';\r\nimport { GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericMultipleSelectInput, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericRadioInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from 'views/Components/LoadingComponent';\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport { EtransferTransactionTypes } from \"views/Constants/Constant\";\r\nclass InteracStatusInquriy extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\tvModel: {},\r\n\t\t\tresponseModel: {},\r\n\t\t\tgetDataList: [],\r\n\t\t\tisLoading: false,\r\n\t\t};\r\n\t\tthis.ColumnsdailyFileList = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"First Name\",\r\n\t\t\t\taccessor: \"FirstName\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value ? row.value : \"-\"}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Last Name\",\r\n\t\t\t\taccessor: \"LastName\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value ? row.value : \"-\"}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Email\",\r\n\t\t\t\taccessor: \"Email\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value ? row.value : \"-\"}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Interac Reference Number\",\r\n\t\t\t\taccessor: \"InteracReferenceNumber\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value ? row.value : \"-\"}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Description\",\r\n\t\t\t\taccessor: \"Description\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value ? row.value : \"-\"}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Money Request Amount\",\r\n\t\t\t\taccessor: \"MoneyRequestAmount\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value ? row.value : \"-\"}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Ful Fill Amount\",\r\n\t\t\t\taccessor: \"FulfillAmount\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value ? row.value : \"-\"}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Interac Status Inquriy\");\r\n\t\t}\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"CLEARING & SETTLEMENT\");\r\n\t\t}\r\n\t\tthis.setState({ loadingCompleted: true });\r\n\t}\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\tValidateSearchRequest = () => {\r\n\r\n\t\tconst { model, vModel } = this.state;\r\n\r\n\t\tvar messages = [];\r\n\r\n\t\tif (!model.TransactionType) {\r\n\t\t\tmessages.push(\"Transaction Type not selected\");\r\n\t\t\tvModel.TransactionType = true;\r\n\t\t}\r\n\t\telse { vModel.TransactionType = false; }\r\n\r\n\t\tif (!model.TransactionReferenceNumber && !model.InteracReferenceNumber) {\r\n\t\t\tmessages.push(\"Transaction Reference Number or Interac Reference Number can not be null\");\r\n\t\t\tvModel.InteracReferenceNumber = true;\r\n\t\t\tvModel.TransactionReferenceNumber = true;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvModel.InteracReferenceNumber = false;\r\n\t\t\tvModel.TransactionReferenceNumber = false;\r\n\t\t}\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\tClearModel = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {}, vModel: {}, responseModel: {}\r\n\t\t});\r\n\t}\r\n\r\n\thandleSearch = async () => {\r\n\t\tif (!this.ValidateSearchRequest())\r\n\t\t\treturn;\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar model = { ...this.state.model };\r\n\t\tvar responseData = await ExecuteApiPost(\"/bankapi/v1.0/ClearingSettlement/GetETransferInteracStatusInquriy\", model, null, null, null, null, null);\r\n\t\tif (responseData != null) {\r\n\t\t\tthis.setState({\r\n\t\t\t\tresponseModel: responseData, isLoading: false\r\n\t\t\t});\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.setState({ isLoading: false });\r\n\t\t}\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, isLoading, vModel, responseModel } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{responseModel.TransactionType &&\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t{responseModel.TransactionType == EtransferTransactionTypes.Credit ? < h4 > Credit Transaction : < h4 > Debit Transaction}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{/* */}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nexport default InteracStatusInquriy;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes, { bool, func } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericCheckInput, GenericDateInput, GenericGrid, GenericSelectInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { Direction, GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\n\r\nclass OutgoingCreateBulkFile extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tFromDate: DateHelper.GetDate(),\r\n\t\t\t\tToDate: DateHelper.GetDate(),\r\n\t\t\t\tDirectionParameterValue: \"\",\r\n\t\t\t\tCheckAllTransactions: false,\r\n\t\t\t\teTransferTypeId: 0\r\n\t\t\t},\r\n\t\t\tvModel: {},\r\n\t\t\tgetTransactionByFileIdModel: {\r\n\t\t\t\tDirectionParameterValue: \"\"\r\n\t\t\t},\r\n\t\t\tfileInfoModel: {},\r\n\t\t\theaderModel: {},\r\n\t\t\ttransactionList: [],\r\n\t\t\tcheckedValues: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tSettlementType: \"\"\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tif (this.props.setAppLeftTitle)\r\n\t\t\tthis.props.setAppLeftTitle(\"Interac e-Transfer / Create Bulk File\");\r\n\t\tif (this.props.setAppCenterTitle)\r\n\t\t\tthis.props.setAppCenterTitle(\"CLEARING & SETTLEMENT\");\r\n\t\tvar model = { ...this.state.model };\r\n\t\tmodel.DirectionParameterValue = Direction.Outgoing;\r\n\t\tvar getTransactionByFileIdModel = { ...this.state.getTransactionByFileIdModel };\r\n\t\tgetTransactionByFileIdModel.DirectionParameterValue = Direction.Outgoing;\r\n\r\n\t\tthis.setState({ getTransactionByFileIdModel, model });\r\n\r\n\t}\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tvar transactionList = [...this.state.transactionList];\r\n\r\n\t\tvar { SettlementType } = this.state;\r\n\t\tif (name == \"eTransferTypeId\")\r\n\t\t\tSettlementType = data.ParameterDesc;\r\n\t\tmodel[name] = newValue;\r\n\r\n\t\tif (name == \"CheckAllTransactions\" && newValue == true) {\r\n\t\t\tconst list = this.state.transactionList;\r\n\t\t\tif (list.length > 0) {\r\n\t\t\t\tthis.setState({ checkedValues: list, model: model });\r\n\t\t\t} else {\r\n\t\t\t\tmodel[name] = false;\r\n\t\t\t}\r\n\t\t} else if (name == \"CheckAllTransactions\" && newValue == false) {\r\n\t\t\tthis.setState({ checkedValues: [], model: model });\r\n\t\t}\r\n\r\n\t\tif (name == \"eTransferTypeId\")\r\n\t\t\ttransactionList = [];\r\n\r\n\t\tthis.setState({ model: model, SettlementType, transactionList });\r\n\t}\r\n\r\n\tHandleCheck = (e, x) => {\r\n\r\n\t\tthis.setState(state => ({\r\n\t\t\tcheckedValues: state.checkedValues.includes(x)\r\n\t\t\t\t? state.checkedValues.filter(c => c !== x)\r\n\t\t\t\t: [...state.checkedValues, x]\r\n\t\t}));\r\n\t}\r\n\tIsValid = () => {\r\n\t\tvar { model, vModel } = this.state;\r\n\t\tif (typeof model.FromDate != \"object\" && model.FromDate != \"\" && model.FromDate != null) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Start Date is invalid\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (typeof model.ToDate != \"object\" && model.ToDate != \"\" && model.ToDate != null) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"End Date is invalid\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif ((typeof model.FromDate == \"object\" && typeof model.ToDate == \"object\") && model.ToDate < model.FromDate) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Start Date cannot be bigger than End Date\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (model.eTransferTypeId == null || model.eTransferTypeId <= 0) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Settlement Type cannot be null !\");\r\n\t\t\tvModel.eTransferTypeId = true;\r\n\t\t\tthis.setState({ vModel });\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\tGetTransactionList = () => {\r\n\t\tif (!this.IsValid())\r\n\t\t\treturn;\r\n\t\tthis.showLoading();\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[\"CheckAllTransactions\"] = false;\r\n\t\tthis.setState({ checkedValues: [], model });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/ClearingSettlement/GeteTransferBulkFileTransactions\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.showBasicAlert(\"Error\", responseData.ErrorDescription, \"error\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item == null && responseData.Item.length == 0) {\r\n\t\t\t\t\tthis.showBasicAlert(\"Info\", \"No items for selected search filters !!!\", \"warning\");\r\n\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\ttransactionList: [], headerModel: {}, isLoading: false\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.setState({ transactionList: responseData.Item, isLoading: false });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tthis.errorCallback\r\n\t\t);\r\n\t}\r\n\r\n\tCreateFile = () => {\r\n\t\tif (this.state.checkedValues == null || this.state.checkedValues.length == 0)\r\n\t\t\tthis.showBasicAlert(\"Warning\", \"Transaction List cannot be empty in creation process !!!\", \"warning\");\r\n\t\telse {\r\n\t\t\tthis.showLoading();\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/bankapi/v1.0/ClearingSettlement/CreateETransferBulkFile\",\r\n\t\t\t\tthis.state.checkedValues,\r\n\t\t\t\tthis.successCreateFile,\r\n\t\t\t\terror => {\r\n\t\t\t\t\tthis.showBasicAlert(\"Error\", \"An error occurred during the api visit\" + error, \"error\");\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t}\r\n\tsuccessCreateFile = (responseData) => {\r\n\t\tthis.hideLoading();\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.showBasicAlert(\"Error\", responseData.ErrorDescription, \"error\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (responseData != null) {\r\n\t\t\tif (responseData.Item.length > 0) {\r\n\r\n\t\t\t\tthis.showBasicAlert(\"Success\", \"The File created successfully Success Count :\" + responseData.Item.length, \"success\");\r\n\t\t\t\tthis.GetTransactionList();\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tthis.showBasicAlert(\"Warning\", this.state.SettlementType + \"=> Create File not have any transaction !!!\", \"warning\");\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\terrorCallback = (error) => {\r\n\t\tthis.showBasicAlert(\"Error\", \"An error occurred during the api visit\" + error, \"error\");\r\n\t}\r\n\r\n\tshowBasicAlert = (title, message, type) => {\r\n\t\tthis.setState({\r\n\t\t\tisLoading: false,\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\r\n\tshowLoading = () => { this.setState({ isLoading: true }); }\r\n\thideLoading = () => { this.setState({ isLoading: false }); }\r\n\thideAlert = () => { this.setState({ alert: null, isLoading: false }); }\r\n\r\n\tClearModel = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {\r\n\t\t\t\tFromDate: DateHelper.GetDate(),\r\n\t\t\t\tToDate: DateHelper.GetDate()\r\n\t\t\t},\r\n\t\t\ttransactionList: [],\r\n\t\t\tcheckedValues: []\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, isLoading, transactionList, checkedValues, vModel } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t

Transaction Filter

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\tValue={model.ClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\tCanClear />\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t
Transaction List

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\t\t\tActions: (\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t c.TransactionId == d.TransactionId).length > 0}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={(e) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tthis.HandleCheck(e, d);\r\n\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\tReceiveDate: d.ReceiveDate,\r\n\t\t\t\t\t\t\t\t\tTransactionId: d.TransactionId,\r\n\t\t\t\t\t\t\t\t\tTransactionETransferId: d.TransactionETransferId,\r\n\t\t\t\t\t\t\t\t\tUniqueClientId: d.UniqueClientId,\r\n\t\t\t\t\t\t\t\t\tClientName: d.ClientName,\r\n\t\t\t\t\t\t\t\t\tClientNumber: d.ClientNumber,\r\n\t\t\t\t\t\t\t\t\tTransactionCode: d.TransactionCode,\r\n\t\t\t\t\t\t\t\t\tTransactionStatus: d.TransactionStatus,\r\n\t\t\t\t\t\t\t\t\tTransactionSource: d.TransactionSource,\r\n\t\t\t\t\t\t\t\t\tNotificationStatus: d.NotificationStatus,\r\n\t\t\t\t\t\t\t\t\tTransactionType: d.TransactionType,\r\n\t\t\t\t\t\t\t\t\tTransactionDate: d.TransactionDate,\r\n\t\t\t\t\t\t\t\t\tPriorityType: d.PriorityType,\r\n\t\t\t\t\t\t\t\t\tAmount: d.Amount,\r\n\t\t\t\t\t\t\t\t\tPayeeName: d.PayeeName,\r\n\t\t\t\t\t\t\t\t\tPayeeEmail: d.PayeeEmail,\r\n\t\t\t\t\t\t\t\t\tSourceAccountTransit: d.SourceAccountTransit,\r\n\t\t\t\t\t\t\t\t\tSourceAccountNumber: d.SourceAccountNumber\r\n\r\n\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\tColumns={[\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\t\t\t\t\t\tsortable: false,\r\n\t\t\t\t\t\t\t\t\tfilterable: false,\r\n\t\t\t\t\t\t\t\t\twidth: 60,\r\n\t\t\t\t\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Unique Client Number\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"ClientNumber\",\r\n\t\t\t\t\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tAll Transactions{\" \"}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Transaction Type\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"TransactionType\",\r\n\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t
{row.value == \"Credit\" ? \"Money Send\" : \"Money Request\"}
\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Priority Type\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"PriorityType\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Pay. Name\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"PayeeName\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Pay. Email\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"PayeeEmail\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Source Account Number\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"SourceAccountNumber\"\r\n\t\t\t\t\t\t\t\t},\r\n\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"Amount\",\r\n\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Transaction Status\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"TransactionStatus\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Transaction Source\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"TransactionSource\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Notification Status\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"NotificationStatus\"\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_e_Transfer} />\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nOutgoingCreateBulkFile.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\thandleOperationType: PropTypes.func,\r\n\tshowQuestionMessage: func,\r\n\tsetAppLeftTitle: func,\r\n\tsetAppCenterTitle: func,\r\n\tDisabled: bool\r\n};\r\n\r\nexport default withArtifex(OutgoingCreateBulkFile, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes, { bool, func } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericGrid, GenericSelectInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { BankFileStatus, Direction, GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\n\r\nclass OutgoingSendBulkFile extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tFromDate: DateHelper.GetDate(),\r\n\t\t\t\tToDate: DateHelper.GetDate(),\r\n\t\t\t\tDirectionParameterValue: \"\"\r\n\t\t\t},\r\n\t\t\tgetTransactionByFileIdModel: {\r\n\t\t\t\tDirectionParameterValue: \"\"\r\n\t\t\t},\r\n\t\t\tdailyFileList: [],\r\n\t\t\tTransactionColumns: [],\r\n\t\t\tFileColumns: [],\r\n\t\t\tcheckedValues: [],\r\n\t\t\tfileInfoModel: {},\r\n\t\t\theaderModel: {},\r\n\t\t\ttransactionList: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tSettlementType: \"\",\r\n\t\t\tsendrollbackstatus: true\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tif (this.props.setAppLeftTitle)\r\n\t\t\tthis.props.setAppLeftTitle(\"Interac e-Transfer / Bulk Files \");\r\n\t\tif (this.props.setAppCenterTitle)\r\n\t\t\tthis.props.setAppCenterTitle(\"CLEARING & SETTLEMENT\");\r\n\t\tvar model = { ...this.state.model };\r\n\t\tmodel.DirectionParameterValue = Direction.Outgoing;\r\n\t\tvar getTransactionByFileIdModel = { ...this.state.getTransactionByFileIdModel };\r\n\t\tgetTransactionByFileIdModel.DirectionParameterValue = Direction.Outgoing;\r\n\t\tvar TransactionColumns = [];\r\n\t\tvar FileColumns = [];\r\n\t\tTransactionColumns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Unique Client Number\",\r\n\t\t\t\taccessor: \"ClientNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Type\",\r\n\t\t\t\taccessor: \"TransactionType\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value == \"Credit\" ? \"Money Send\" : \"Money Request\"}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Priority Type\",\r\n\t\t\t\taccessor: \"PriorityType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Pay. Name\",\r\n\t\t\t\taccessor: \"PayeeName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Pay. Email\",\r\n\t\t\t\taccessor: \"PayeeEmail\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Source Account Number\",\r\n\t\t\t\taccessor: \"SourceAccountNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"Amount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType:GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Status\",\r\n\t\t\t\taccessor: \"TransactionStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Source\",\r\n\t\t\t\taccessor: \"TransactionSource\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Code\",\r\n\t\t\t\taccessor: \"TransactionCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Notification Status\",\r\n\t\t\t\taccessor: \"NotificationStatus\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tFileColumns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"File Name\",\r\n\t\t\t\taccessor: \"FileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"File Date\",\r\n\t\t\t\taccessor: \"FileDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"File Source\",\r\n\t\t\t\taccessor: \"FileSource\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Record Count\",\r\n\t\t\t\taccessor: \"RecordCount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Send Status\",\r\n\t\t\t\taccessor: \"SendStatus\"\r\n\t\t\t}\r\n\t\t];\r\n\t\tthis.setState({ getTransactionByFileIdModel, model, TransactionColumns: TransactionColumns, FileColumns: FileColumns });\r\n\r\n\t}\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tvar { SettlementType } = this.state;\r\n\t\tif (name == \"eTransferTypeId\")\r\n\t\t\tSettlementType = data.ParameterDesc;\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model, SettlementType });\r\n\t}\r\n\r\n\tSelectedRowChange = (index) => {\r\n\t\tconst tempModel = this.state.dailyFileList[index];\r\n\r\n\r\n\t\tif (tempModel.FileInformationId == null || tempModel.FileInformationId == undefined) {\r\n\t\t\tthis.showBasicAlert(\"Error\", \"FileInformationId can not be null\", \"error\");\r\n\t\t\tthis.setState({ sendrollbackstatus: true });\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (tempModel.SendStatusParamValue == BankFileStatus.Pending ||tempModel.SendStatusParamValue == BankFileStatus.Error )\r\n\t\t\t\tthis.setState({ fileInfoModel: tempModel, isLoading: true, rowIndex: index, sendrollbackstatus: false });\r\n\t\t\telse\r\n\t\t\t\tthis.setState({ fileInfoModel: tempModel, isLoading: true, rowIndex: index, sendrollbackstatus: true });\r\n\r\n\t\t\tthis.GetTransactionList(tempModel);\r\n\t\t}\r\n\t}\r\n\tIsValid = () => {\r\n\t\tvar model = { ...this.state.model };\r\n\t\tif (typeof model.FromDate != \"object\" && model.FromDate != \"\" && model.FromDate != null) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Start Date is invalid\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (typeof model.ToDate != \"object\" && model.ToDate != \"\" && model.ToDate != null) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"End Date is invalid\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif ((typeof model.FromDate == \"object\" && typeof model.ToDate == \"object\") && model.ToDate < model.FromDate) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Start Date cannot be bigger than End Date\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\tGetDailyFileList = () => {\r\n\t\tif (!this.IsValid())\r\n\t\t\treturn;\r\n\t\tthis.showLoading();\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/ClearingSettlement/GeteTransferOutgoingFile\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.showBasicAlert(\"Error\", responseData.ErrorDescription, \"error\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item == null && responseData.Item.length == 0) {\r\n\t\t\t\t\tthis.showBasicAlert(\"Info\", \"No items for selected search filters !!!\", \"warning\");\r\n\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\ttransactionList: [], headerModel: {},\r\n\t\t\t\t\t\tdailyFileList: [], isLoading: false\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.setState({ dailyFileList: responseData.Item, transactionList: [], fileInfoModel: {}, isLoading: false });\r\n\t\t\t\t}\r\n\r\n\t\t\t},\r\n\t\t\tthis.errorCallback\r\n\t\t);\r\n\t}\r\n\r\n\tGetTransactionList = (item) => {\r\n\r\n\t\tthis.showLoading();\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/ClearingSettlement/GeteTransferBulkFileTransactions\",\r\n\t\t\titem,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.showBasicAlert(\"Error\", responseData.ErrorDescription, \"error\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item == null && responseData.Item.length == 0) {\r\n\t\t\t\t\tthis.showBasicAlert(\"Info\", \"No items for selected search filters !!!\", \"warning\");\r\n\r\n\t\t\t\t\tthis.setState({ transactionList: [], headerModel: {}, isLoading: false });\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.setState({ transactionList: responseData.Item, isLoading: false });\r\n\t\t\t\t}\r\n\r\n\t\t\t},\r\n\t\t\tthis.errorCallback\r\n\t\t);\r\n\t}\r\n\r\n\tSend = () => {\r\n\r\n\t\tif (this.state.fileInfoModel.SendStatusParamValue == BankFileStatus.Pending) {\r\n\t\t\tthis.showConfirmAlert(\"Warning\", \"Are you sure to send this file ?\", \"warning\", () => {\r\n\t\t\t\tif (this.state.fileInfoModel == null || this.state.fileInfoModel == undefined)\r\n\t\t\t\t\tthis.showBasicAlert(\"Warning\", \"First, select a row in Daily File List.\", \"warning\");\r\n\t\t\t\telse {\r\n\t\t\t\t\tif (this.state.fileInfoModel.FileInformationId == null || this.state.fileInfoModel == undefined)\r\n\t\t\t\t\t\tthis.showBasicAlert(\"Warning\", \"Selected row has not FileInformationId value !!!\", \"warning\");\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tthis.hideAlert();\r\n\t\t\t\t\t\tthis.showLoading();\r\n\t\t\t\t\t\tProxy.POST(\r\n\t\t\t\t\t\t\t\"/bankapi/v1.0/ClearingSettlement/SendEtransferBulkFile\",\r\n\t\t\t\t\t\t\t{ FileInformationId: this.state.fileInfoModel.FileInformationId },\r\n\t\t\t\t\t\t\tresponseData => {\r\n\t\t\t\t\t\t\t\tif (!responseData.IsSucceeded)\r\n\t\t\t\t\t\t\t\t\tthis.showBasicAlert(\"Error\", \"Send operation error : \" + responseData.ErrorDescription + \"!!!\", \"error\");\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tthis.showBasicAlert(\"Success\", \"Send operation is successfully completed.\", \"success\");\r\n\t\t\t\t\t\t\t\t\tthis.GetDailyFileList();\r\n\t\t\t\t\t\t\t\t\tthis.setState({ transactionList: [], headerModel: {}, isLoading: false, sendrollbackstatus: true });\r\n\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\terror => {\r\n\t\t\t\t\t\t\t\tthis.showBasicAlert(\"Error\", \"Send operation error : \" + error + \"!!!\", \"error\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.showBasicAlert(\"Warning\", \"File Send Status must be Pending !!!\", \"warning\");\r\n\t\t}\r\n\r\n\t}\r\n\r\n\tRollBack = () => {\r\n\t\tif (this.state.fileInfoModel.SendStatusParamValue == BankFileStatus.Pending) {\r\n\t\t\tthis.showConfirmAlert(\"Warning\", \"Are you sure to rollback this file ?\", \"warning\", () => {\r\n\t\t\t\tif (this.state.fileInfoModel == null || this.state.fileInfoModel == undefined)\r\n\t\t\t\t\tthis.showBasicAlert(\"Warning\", \"First, select a row in Daily File List.\", \"warning\");\r\n\t\t\t\telse {\r\n\t\t\t\t\tif (this.state.fileInfoModel.FileInformationId == null || this.state.fileInfoModel.FileInformationId == undefined)\r\n\t\t\t\t\t\tthis.showBasicAlert(\"Warning\", \"Selected row has not FileInformationId value !!!\", \"warning\");\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tProxy.POST(\r\n\t\t\t\t\t\t\t\"/bankapi/v1.0/ClearingSettlement/EtransferRollbackBulkSendTransfersFile\",\r\n\t\t\t\t\t\t\t{ FileInformationId: this.state.fileInfoModel.FileInformationId },\r\n\t\t\t\t\t\t\tresponseData => {\r\n\t\t\t\t\t\t\t\tif (!responseData.IsSucceeded)\r\n\t\t\t\t\t\t\t\t\tthis.showBasicAlert(\"Error\", \"Rollback Error : \" + responseData.ErrorDescription + \"!!!\", \"error\");\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tthis.showBasicAlert(\"Success\", \"Rollback operation is successfully completed.\", \"success\");\r\n\t\t\t\t\t\t\t\t\tthis.setState({ transactionList: [], dailyFileList: [], isLoading: false, sendrollbackstatus: true });\r\n\r\n\t\t\t\t\t\t\t\t\tthis.GetDailyFileList();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\terror => {\r\n\t\t\t\t\t\t\t\tthis.showBasicAlert(\"Error\", \"Rollback Error : \" + error + \"!!!\", \"error\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\telse\r\n\t\t\tthis.showBasicAlert(\"Warning\", \"File Send Status must be Pending !!!\", \"warning\");\r\n\t}\r\n\tsuccessCreateFile = (responseData) => {\r\n\t\tthis.hideLoading();\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.showBasicAlert(\"Error\", responseData.ErrorDescription, \"error\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (responseData != null) {\r\n\t\t\tif (responseData.SuccessCount > 0 || responseData.ErrorCount > 0) {\r\n\t\t\t\tvar successCount = responseData.SuccessCount + \"\";\r\n\t\t\t\tvar errorCount = responseData.ErrorCount + \"\";\r\n\t\t\t\tthis.showBasicAlert(\"Success\", \"Success Count :\" + successCount + \", Error Count : \" + errorCount, \"success\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tthis.showBasicAlert(\"Warning\", this.state.SettlementType + \"=> Settlement Type not have any transaction !!!\", \"warning\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.GetDailyFileList();\r\n\t}\r\n\r\n\terrorCallback = (error) => {\r\n\t\tthis.showBasicAlert(\"Error\", \"An error occurred during the api visit\" + error, \"error\");\r\n\t}\r\n\r\n\tshowBasicAlert = (title, message, type) => {\r\n\t\tthis.setState({\r\n\t\t\tisLoading: false,\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\tshowConfirmAlert = (title, message, type, onConfirm) => {\r\n\t\tthis.setState({ isLoading: false, alert: this.hideAlert()} OnConfirm={onConfirm} /> });\r\n\t}\r\n\tshowLoading = () => { this.setState({ isLoading: true }); }\r\n\thideLoading = () => { this.setState({ isLoading: false }); }\r\n\thideAlert = () => { this.setState({ alert: null, isLoading: false }); }\r\n\r\n\tClearModel = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {\r\n\t\t\t\tFromDate: DateHelper.GetDate(),\r\n\t\t\t\tToDate: DateHelper.GetDate(),\r\n\t\t\t},\r\n\t\t\ttransactionList: [],\r\n\t\t\tdailyFileList: [],\r\n\t\t\tsendrollbackstatus: true,\r\n\t\t\tfileInfoModel: []\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, isLoading, transactionList, FileColumns, TransactionColumns, sendrollbackstatus } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t

File Filter

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t

\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t

File List

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tthis.SelectedRowChange(index);\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\tSelectedIndex={this.state.rowIndex}\r\n\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_e_Transfer} />\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
Transaction List

\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\t\t\tReceiveDate: d.ReceiveDate,\r\n\t\t\t\t\t\t\t\t\tTransactionId: d.TransactionId,\r\n\t\t\t\t\t\t\t\t\tTransactionETransferId: d.TransactionETransferId,\r\n\t\t\t\t\t\t\t\t\tUniqueClientId: d.UniqueClientId,\r\n\t\t\t\t\t\t\t\t\tClientName: d.ClientName,\r\n\t\t\t\t\t\t\t\t\tClientNumber: d.ClientNumber,\r\n\t\t\t\t\t\t\t\t\tTransactionCode: d.TransactionCode,\r\n\t\t\t\t\t\t\t\t\tTransactionStatus: d.TransactionStatus,\r\n\t\t\t\t\t\t\t\t\tTransactionSource: d.TransactionSource,\r\n\t\t\t\t\t\t\t\t\tNotificationStatus: d.NotificationStatus,\r\n\t\t\t\t\t\t\t\t\tTransactionType: d.TransactionType,\r\n\t\t\t\t\t\t\t\t\tTransactionDate: d.TransactionDate,\r\n\t\t\t\t\t\t\t\t\tPriorityType: d.PriorityType,\r\n\t\t\t\t\t\t\t\t\tAmount: d.Amount,\r\n\t\t\t\t\t\t\t\t\tPayeeName: d.PayeeName,\r\n\t\t\t\t\t\t\t\t\tPayeeEmail: d.PayeeEmail,\r\n\t\t\t\t\t\t\t\t\tSourceAccountTransit: d.SourceAccountTransit,\r\n\t\t\t\t\t\t\t\t\tSourceAccountNumber: d.SourceAccountNumber\r\n\r\n\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\tColumns={TransactionColumns}\r\n\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_e_Transfer} />\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nOutgoingSendBulkFile.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\thandleOperationType: PropTypes.func,\r\n\tshowQuestionMessage: func,\r\n\tsetAppLeftTitle: func,\r\n\tsetAppCenterTitle: func,\r\n\tDisabled: bool\r\n};\r\n\r\nexport default withArtifex(OutgoingSendBulkFile, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes, { bool, func } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport AccountLimitToolbar from \"views/Components/AccountLimitToolbar\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport {\r\n GenericAlert,\r\n GenericCheckInput,\r\n GenericDateInput,\r\n GenericExpansionPanel,\r\n GenericGrid,\r\n GenericNumberInput,\r\n GenericSelectInput,\r\n GenericTitle,\r\n GenericTextInput,\r\n GenericDialog,\r\n GenericLabel,\r\n GenericRadioInput,\r\n GenericDialogActions,\r\n} from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport {\r\n BankProgramType,\r\n BankTransactionStatus,\r\n Direction,\r\n EtransferApplicationTypes,\r\n GridColumnType,\r\n ProgramCodes,\r\n} from \"views/Constants/Constant.js\";\r\nimport { DialogTitle, DialogContent } from \"@material-ui/core\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport Select from \"react-select\";\r\nimport MenuAuthorityRightHelper from \"core/MenuAuthorityRightHelper\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport { InformationIcon, TraceIcon } from \"core/Icons\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport Logo from \"../../../../assets/img/logo.png\";\r\nimport Formatter from \"core/Formatter\";\r\nclass eTransferIncomingTransactions extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.isClient = ClientHelper.IsClient();\r\n this.initialModel = {\r\n SearchEndDate: DateHelper.GetDateTime(),\r\n SearchStartDate: DateHelper.GetDateTime(),\r\n DirectionParameterValue: Direction.Incoming,\r\n ClientId: 0,\r\n IsBankingScreen: false,\r\n };\r\n\r\n this.state = {\r\n model: this.initialModel,\r\n vModel: {},\r\n tempModel: {},\r\n getDataList: [],\r\n summaryModel: {},\r\n isLoading: false,\r\n isBackOffice: false,\r\n selectList: [],\r\n checkedValues: [],\r\n LimitToken: false,\r\n isInfoDialogOpen: false,\r\n infoDialogData: {},\r\n };\r\n\r\n var isBackOffice = ClientHelper.IsBackOffice();\r\n this.columns = [\r\n {\r\n Header: \"Actions\",\r\n accessor: \"Actions\",\r\n Cell: (row) => (\r\n
\r\n {\r\n this.getInfoDialogData(row);\r\n }}\r\n />\r\n
\r\n ),\r\n sortable: false,\r\n filterable: false,\r\n width: 75,\r\n show: !this.isCallCenter,\r\n },\r\n {\r\n Header: \"Actions\",\r\n accessor: \"AC\",\r\n Cell: (d) => (\r\n
\r\n x.Code == \"ETRNSFINTRACE\"\r\n )?.HasAuthority\r\n }\r\n Icon={TraceIcon}\r\n OnClick={this.GetHandleTrace(d.original)}\r\n />\r\n
\r\n ),\r\n sortable: false,\r\n filterable: false,\r\n width: 50,\r\n show: !isBackOffice,\r\n },\r\n {\r\n Header: \"Transaction Date\",\r\n accessor: \"TransactionDate\",\r\n type: GridColumnType.DateTimeUtc,\r\n },\r\n {\r\n Header: \"Settlement Date\",\r\n accessor: \"SettlementDate\",\r\n type: GridColumnType.DateTimeUtc,\r\n },\r\n {\r\n Header: \"Account Number\",\r\n accessor: \"AccountNumber\",\r\n },\r\n {\r\n Header: \"Unique Client Id\",\r\n accessor: \"ClientNumber\",\r\n show: isBackOffice,\r\n },\r\n {\r\n Header: \"Client Name\",\r\n accessor: \"ClientName\",\r\n show: isBackOffice,\r\n },\r\n {\r\n Header: \"Transfer Type\",\r\n accessor: \"TransactionType\",\r\n },\r\n {\r\n Header: \"Sender Name\",\r\n accessor: \"SenderName\",\r\n },\r\n {\r\n Header: \"Sender EMail\",\r\n accessor: \"CustomerEmail\",\r\n },\r\n {\r\n Header: \"Amount\",\r\n accessor: \"TransactionAmount\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Sender Bank\",\r\n accessor: \"SenderBank\",\r\n show: this.state.model.DirectionParameterValue == Direction.Incoming,\r\n },\r\n {\r\n Header: \"Sender Transit\",\r\n accessor: \"SenderTransit\",\r\n show: this.state.model.DirectionParameterValue == Direction.Incoming,\r\n },\r\n {\r\n Header: \"Fee Amount\",\r\n accessor: \"FeeAmount\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Settlement Status\",\r\n accessor: \"SettlementStatus\",\r\n },\r\n {\r\n Header: \"Transfer Status\",\r\n accessor: \"BankTransactionStatus\",\r\n },\r\n {\r\n Header: \"Transaction Description\",\r\n accessor: \"TransactionMemo\",\r\n },\r\n {\r\n Header: \"Trans. Ref. No \",\r\n accessor: \"ParticipantReferenceNumber\",\r\n },\r\n {\r\n Header: \"Interac Ref. Number\",\r\n accessor: \"TransferReferenceNumber\",\r\n },\r\n {\r\n Header: \"Transaction Source\",\r\n accessor: \"TransactionSource\",\r\n },\r\n {\r\n Header: \"Application\",\r\n accessor: \"ApplicationId\",\r\n Cell: (row) => {\r\n var rowValue = \"\";\r\n EtransferApplicationTypes &&\r\n EtransferApplicationTypes.forEach((item) => {\r\n if (item.Value == row.value) rowValue = item.Text;\r\n });\r\n return rowValue;\r\n },\r\n },\r\n {\r\n Header: \"Error Description\",\r\n accessor: \"ErrorDesc\",\r\n },\r\n {\r\n Header: \"Customer Store\",\r\n accessor: \"CustomerStore\",\r\n },\r\n {\r\n Header: \"Trace Status\",\r\n accessor: \"TraceStatus\",\r\n },\r\n\t\t{\r\n\t\t\tHeader: \"Sender Email\",\r\n\t\t\taccessor: \"SenderEmail\",\r\n\t\t},\r\n {\r\n Header: \"Receiver Name\",\r\n accessor: \"ReceiverName\",\r\n },\r\n {\r\n Header: \"Receiver Email\",\r\n accessor: \"ReceiverEmail\",\r\n },\r\n {\r\n Header: \"Client Reference Number\",\r\n accessor: \"ClientRefNo\",\r\n },\r\n ];\r\n this.handleChange = this.handleChange.bind(this);\r\n this.GetData = this.GetData.bind(this);\r\n this.errorCallback = this.errorCallback.bind(this);\r\n this.hideAlert = this.hideAlert.bind(this);\r\n this.showErrorMessage = this.showErrorMessage.bind(this);\r\n this.successSummaryCallback = this.successSummaryCallback.bind(this);\r\n this.sortedByDate = [{ id: \"TransactionDate\", desc: true }];\r\n this.trxTable = React.createRef();\r\n\r\n this.MenuAuthorityRightHelper = new MenuAuthorityRightHelper();\r\n }\r\n\r\n componentDidMount() {\r\n this.props.setAppLeftTitle(\"Interac e-Transfer / Incoming Transactions\");\r\n\r\n var model = { ...this.state.model };\r\n var initialModel = this.initialModel;\r\n model.IsBankingScreen = this.props.MenuCode == \"BETINC\";\r\n var isBackOffice = ClientHelper.IsBackOffice();\r\n if (!isBackOffice) {\r\n model.ClientId = ClientHelper.GetClientRowId();\r\n initialModel.ClientId = model.ClientId;\r\n this.props.setAppCenterTitle(\r\n model.IsBankingScreen ? \"BANKING\" : \"INTERAC E-TRANSFER\"\r\n );\r\n } else {\r\n this.props.setAppCenterTitle(\"INTERAC E-TRANSFER\");\r\n }\r\n this.RefreshToolBar();\r\n this.setState({ model, isBackOffice, loadingCompleted: true });\r\n this.GetGridButtonsRight();\r\n }\r\n\r\n GetGridButtonsRight = async () => {\r\n const { MenuCode } = this.props;\r\n var gridButtonRightDetail =\r\n await this.MenuAuthorityRightHelper.RightCheckList(MenuCode, [\r\n \"ETRNSFINTRACE\",\r\n ]);\r\n\r\n this.setState({ gridButtonRightDetail });\r\n };\r\n\r\n RefreshToolBar = () => {\r\n this.setState({ LimitToken: !this.state.LimitToken });\r\n };\r\n handleChange(name, newValue) {\r\n const model = { ...this.state.model };\r\n model[name] = newValue;\r\n this.setState({ model });\r\n }\r\n ValueChanged = (name, value) => {\r\n this.setState({ [name]: value });\r\n };\r\n IsValid = () => {\r\n var { model, vModel } = this.state;\r\n\r\n var searchIsNotSpecific =\r\n (model.RefNo == undefined || model.RefNo == null || model.RefNo == \"\") &&\r\n (model.InteracRefNo == undefined ||\r\n model.InteracRefNo == null ||\r\n model.InteracRefNo == \"\") &&\r\n (model.PayeeEmail == undefined ||\r\n model.PayeeEmail == null ||\r\n model.PayeeEmail == \"\");\r\n\r\n model[\"searchIsNotSpecific\"] = searchIsNotSpecific;\r\n\r\n var validateStatus = true;\r\n\r\n if (searchIsNotSpecific) {\r\n if (!model.ClientId) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"Select Client to continue\"\r\n );\r\n vModel[\"ClientId\"] = true;\r\n validateStatus = false;\r\n }\r\n\r\n if (\r\n model.SearchStartDate == \"\" ||\r\n (typeof model.SearchStartDate != \"object\" &&\r\n model.SearchStartDate != \"\" &&\r\n model.SearchStartDate != null)\r\n ) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"Start Date is invalid\"\r\n );\r\n validateStatus = false;\r\n }\r\n if (\r\n model.SearchEndDate == \"\" ||\r\n (typeof model.SearchEndDate != \"object\" &&\r\n model.SearchEndDate != \"\" &&\r\n model.SearchEndDate != null)\r\n ) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"End Date is invalid\"\r\n );\r\n validateStatus = false;\r\n }\r\n if (\r\n typeof model.SearchStartDate == \"object\" &&\r\n typeof model.SearchEndDate == \"object\" &&\r\n model.SearchEndDate < model.SearchStartDate\r\n ) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"Start Date cannot be bigger than End Date\"\r\n );\r\n validateStatus = false;\r\n }\r\n\r\n if (\r\n typeof model.SearchStartDate == \"object\" &&\r\n typeof model.SearchEndDate == \"object\"\r\n ) {\r\n var diffMonths = model.SearchEndDate.diff(\r\n model.SearchStartDate,\r\n \"days\"\r\n );\r\n if (diffMonths < 0) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Warning\",\r\n \"End Date must be later than Start Date\"\r\n );\r\n validateStatus = false;\r\n }\r\n\r\n if (diffMonths > 30) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Warning\",\r\n \"Difference between Start Date and End Date cannot be longer than 30 days\"\r\n );\r\n validateStatus = false;\r\n }\r\n }\r\n this.setState({ model, vModel });\r\n if (!validateStatus) return false;\r\n } else {\r\n vModel[\"ClientId\"] = false;\r\n this.setState({ model, vModel });\r\n }\r\n return true;\r\n };\r\n\r\n GetData() {\r\n this.setState((state) => ({ trxGridToken: !state.trxGridToken }));\r\n this.GetSummaryData();\r\n }\r\n\r\n GetSummaryData = () => {\r\n if (!this.IsValid()) return;\r\n\r\n Proxy.POST(\r\n \"/bankapi/v1.0/ClearingSettlement/GetEtransferOutInSummaryData\",\r\n this.state.model,\r\n (responseData) => {\r\n if (!responseData.IsSucceeded) {\r\n this.props.showMessage(\r\n \"error\",\r\n \"Error\",\r\n responseData.ErrorDescription\r\n );\r\n return;\r\n }\r\n this.setState({ summaryModel: responseData.Item });\r\n },\r\n (error) => {\r\n this.props.showMessage(\"error\", \"Error\", error);\r\n }\r\n );\r\n };\r\n\r\n successSummaryCallback(responseData) {\r\n if (!responseData.IsSucceeded) {\r\n this.showErrorMessage(responseData.ErrorDescription);\r\n return;\r\n }\r\n if (\r\n responseData.Item == null ||\r\n responseData.Item.TransactionList == null ||\r\n responseData.Item.TransactionList.length < 1\r\n ) {\r\n this.setState({ summaryModel: {}, getDataList: [], isLoading: false });\r\n } else {\r\n var summaryModel =\r\n responseData.Item == null ? {} : responseData.Item.SummaryItems;\r\n this.setState({\r\n summaryModel,\r\n getDataList:\r\n responseData.Item.TransactionList == null\r\n ? []\r\n : responseData.Item.TransactionList,\r\n isLoading: false,\r\n });\r\n }\r\n }\r\n\r\n HandleCheck(trans) {\r\n var selectList = [...this.state.selectList];\r\n\r\n selectList = this.state.selectList.includes(trans.TransactionEtransferId)\r\n ? this.state.selectList.filter((t) => t !== trans.TransactionEtransferId)\r\n : [...this.state.selectList, trans.TransactionEtransferId];\r\n\r\n this.setState((state) => ({\r\n selectList,\r\n checkedValues: state.checkedValues.includes(trans)\r\n ? state.checkedValues.filter((c) => c !== trans)\r\n : [...state.checkedValues, trans],\r\n }));\r\n }\r\n\r\n GetHandleTrace = (model) => () => {\r\n this.traceHelper.InsertTransactionTraceWithAlert(model.TransactionId);\r\n };\r\n\r\n ShowErrorMessage = (message) => {\r\n this.setState({\r\n isLoading: false,\r\n alert: (\r\n this.hideAlert()}\r\n />\r\n ),\r\n });\r\n };\r\n\r\n errorCallback(error) {\r\n this.hideLoading();\r\n this.showErrorMessage(\"An error occurred during the api visit\" + error);\r\n }\r\n\r\n showErrorMessage(message) {\r\n this.setState({\r\n isLoading: false,\r\n alert: (\r\n this.hideAlert()}\r\n />\r\n ),\r\n });\r\n }\r\n\r\n handleClear = () => {\r\n this.setState({\r\n model: this.initialModel,\r\n getDataList: [],\r\n summaryModel: {},\r\n });\r\n };\r\n showLoading = () => {\r\n this.setState({ isLoading: true });\r\n };\r\n hideLoading = () => {\r\n this.setState({ isLoading: false });\r\n };\r\n hideAlert() {\r\n this.setState({ alert: null });\r\n }\r\n\r\n ExportClick = () => {\r\n var trxColumns = [];\r\n this.trxTable.current.props.Columns.forEach((c) => {\r\n if (\r\n c.accessor != \"Actions\" &&\r\n c.accessor != \"AC\" &&\r\n (c.show == undefined || c.show)\r\n ) {\r\n trxColumns.push({\r\n value: c.accessor,\r\n title: c.Header,\r\n columntype: c.ColumnType,\r\n type: c.type,\r\n });\r\n }\r\n }, this);\r\n\r\n this.setState({\r\n isDownloadDialogOpen: true,\r\n GridKeyValueList: trxColumns,\r\n ExportSelectedColumns: trxColumns,\r\n });\r\n };\r\n\r\n ExcelDownload = () => {\r\n if (!this.state.ExportReportType) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Export Report Type not selected\",\r\n \"Select Export Report Type to continue\"\r\n );\r\n return;\r\n }\r\n\r\n if (\r\n this.state.ExportReportType == \"PDF\" &&\r\n this.state.ExportSelectedColumns.length > 15\r\n ) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"PDF document cannot exceed 15 columns\",\r\n \"PDF document cannot exceed 15 columns\"\r\n );\r\n return;\r\n }\r\n\r\n this.setState({ isDownloadDialogOpen: false });\r\n\r\n if (!this.IsValid()) return;\r\n\r\n const temp = { ...this.state.model };\r\n\r\n var jsonColList = [];\r\n\r\n var trxColumns = {};\r\n this.state.ExportSelectedColumns.map((c) => {\r\n trxColumns[c.value] = {\r\n value: c.value,\r\n title: c.title,\r\n columntype: c.columntype,\r\n type: c.type,\r\n };\r\n });\r\n jsonColList.push(trxColumns);\r\n\r\n var mytitle = \"Interac e-Transfer Incoming Transfers\";\r\n\r\n temp.jsonFile = {\r\n colmns: jsonColList,\r\n format: this.state.ExportReportType,\r\n title: mytitle,\r\n };\r\n\r\n this.setState({ isLoading: true });\r\n Proxy.DownloadGeneratedFile(\r\n \"/bankapi/v1.0/ClearingSettlement/GetETransferIncomingTransfersExportDownload\",\r\n temp,\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n if (!responseData.IsSucceeded) {\r\n this.props.showMessage(\r\n \"error\",\r\n \"Error\",\r\n responseData.ErrorDescription\r\n );\r\n return;\r\n }\r\n },\r\n (errorMessage) => {\r\n this.setState({ isLoading: false });\r\n this.props.showMessage(\"error\", \"Error\", errorMessage);\r\n },\r\n this.props.showMessage\r\n );\r\n };\r\n isAvailableForTraceTransaction = (row) => {\r\n var availableForTrace = true;\r\n switch (row.BankTransactionStatusParamValue) {\r\n case BankTransactionStatus.Pending:\r\n case BankTransactionStatus.Error:\r\n case BankTransactionStatus.Cancelled:\r\n availableForTrace = false;\r\n break;\r\n default:\r\n break;\r\n }\r\n availableForTrace =\r\n availableForTrace && !row.TransactionTraceId && row.TransactionId > 0;\r\n return availableForTrace;\r\n };\r\n HandleChange = (name, value, data) => {\r\n const model = { ...this.state.model };\r\n model[name] = value;\r\n\r\n if (name == \"PriorityTypeId\" && value == null) {\r\n model[name] = -1;\r\n }\r\n\r\n this.setState({ model });\r\n };\r\n getInfoDialogData = (row) => {\r\n this.setState({ isInfoDialogOpen: false });\r\n\r\n const payload = {\r\n TransactionEtransferId: row?.original?.TransactionEtransferId,\r\n TransactionId: null,\r\n TransferReferenceNumber: null,\r\n };\r\n\r\n Proxy.POST(\r\n \"/bankapi/v1.0/ClearingSettlement/GetEtransferRemittancePartyData\",\r\n payload,\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n this.setState({ isInfoDialogOpen: true });\r\n\r\n this.setState({\r\n infoDialogData: responseData?.Item,\r\n });\r\n },\r\n (errorMessage) => {\r\n this.setState({ isLoading: false });\r\n this.ShowMessage(\r\n \"error\",\r\n \"Error\",\r\n \"An error occurred while sending approve request. \" +\r\n (typeof errorMessage !== \"string\" ? errorMessage : \"\")\r\n );\r\n }\r\n );\r\n };\r\n handleAmountInput = (num) => {\r\n if (typeof num === \"number\") {\r\n return `${num?.toString()?.includes(\".\") ? num : num + \".00\"} ${\r\n this.state.infoDialogData?.ReferredDocumentRemittedCurrency\r\n }`;\r\n }\r\n return null;\r\n };\r\n showInfoDialog = () => {\r\n const { isInfoDialogOpen } = this.state;\r\n\r\n return (\r\n (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n this.setState({ isInfoDialogOpen: false })}\r\n >\r\n CANCEL\r\n \r\n \r\n \r\n \r\n )\r\n );\r\n };\r\n\r\n render() {\r\n const { Disabled } = this.props;\r\n const {\r\n model,\r\n summaryModel,\r\n isLoading,\r\n isBackOffice,\r\n checkedValues,\r\n LimitToken,\r\n vModel,\r\n } = this.state;\r\n return (\r\n
\r\n {this.state.alert}\r\n {this.showInfoDialog()}\r\n {this.isClient && (\r\n \r\n )}\r\n {}, Disabled: Disabled || this.state.selectList.length > 0 ? false : true },\r\n { Code: \"Clear\", OnClick: this.handleClear, Disabled: Disabled },\r\n { Code: \"Export\", OnClick: this.ExportClick, Disabled: Disabled },\r\n ]}\r\n menuId={this.props.menuId}\r\n ApprovalData={this.props.ApprovalData}\r\n After={this.props.After}\r\n />\r\n\r\n \r\n {/*EXPORT DIALOG*/}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n this.setState({ ExportSelectedColumns: value })\r\n }\r\n isMulti\r\n name=\"columns\"\r\n getOptionLabel={(d) => d.title}\r\n options={this.state.GridKeyValueList}\r\n className=\"basic-multi-select\"\r\n classNamePrefix=\"select\"\r\n />\r\n \r\n \r\n \r\n \r\n this.setState({ isDownloadDialogOpen: false })}\r\n >\r\n Cancel\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n `${d.UniqueClientId} - ${d.Name}`}\r\n Value={model.ClientId || \"\"}\r\n ValueChanged={this.handleChange}\r\n CanClear\r\n Required={model.searchIsNotSpecific == true}\r\n IsInvalid={vModel.ClientId}\r\n Disabled={!isBackOffice}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {\r\n return this.state.model;\r\n }}\r\n RequestUrl=\"/bankapi/v1.0/ClearingSettlement/GetETransferIncomingTransfersPaged\"\r\n RequestMethod=\"POST\"\r\n />\r\n \r\n \r\n \r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\neTransferIncomingTransactions.propTypes = {\r\n classes: PropTypes.object,\r\n handleOperationType: PropTypes.func,\r\n SelectedRowChange: PropTypes.func,\r\n showQuestionMessage: func,\r\n setAppLeftTitle: func,\r\n setAppCenterTitle: func,\r\n Disabled: bool,\r\n};\r\n\r\nexport default withArtifex(eTransferIncomingTransactions, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes, { bool, func } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTitle } from \"views/Components/Generic\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\n\r\nclass eTransferIntegrationErrors extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tEndDate: DateHelper.GetDate(),\r\n\t\t\t\tStartDate: DateHelper.GetDate(),\r\n\t\t\t\tClientId: 0\r\n\t\t\t},\r\n\t\t\tgetDataList: [],\r\n\t\t\tisBackOffice: false,\r\n\t\t\tNowDate: DateHelper.GetDateTime(),\r\n\t\t\tclientId: 0\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"e-Transfer Integration Errors\");\r\n\t\tvar model = { ...this.state.model };\r\n\t\tvar { isBackOffice, clientId } = this.state;\r\n\t\tisBackOffice = ClientHelper.IsBackOffice();\r\n\t\tif (!isBackOffice) {\r\n\t\t\tmodel.ClientId = ClientHelper.GetClientRowId();\r\n\t\t\tclientId = ClientHelper.GetClientRowId();\r\n\t\t\tthis.props.setAppCenterTitle(\"INTERAC E-TRANSFER\");\r\n\t\t\tthis.props.setAppLeftTitle(\"Integration Errors\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.props.setAppCenterTitle(\"SYSTEM ADMIN\");\r\n\t\t}\r\n\t\tthis.setState({ model, isBackOffice, clientId });\r\n\t}\r\n\r\n\thandleChange = (name, newValue) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model || {};\r\n\t\t\tmodel[name] = newValue;\r\n\r\n\t\t\tif (name == \"StartDate\" && newValue > model.EndDate)\r\n\t\t\t\tmodel.EndDate = newValue;\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\tIsValid = () => {\r\n\t\tvar model = { ...this.state.model };\r\n\t\tif (typeof model.StartDate != \"object\" && model.StartDate != \"\" && model.StartDate != null) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Start Date is invalid\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (typeof model.EndDate != \"object\" && model.EndDate != \"\" && model.EndDate != null) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"End Date is invalid\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif ((typeof model.StartDate == \"object\" && typeof model.EndDate == \"object\") && model.EndDate < model.StartDate) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Start Date cannot be bigger than End Date\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\tGetData = async () => {\r\n\t\tvar model = { ...this.state.model };\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\r\n\t\tif (!this.IsValid())\r\n\t\t\treturn;\r\n\r\n\t\tvar responseData = await ExecuteApiPost(\"/bankapi/v1.0/ClearingSettlement/GetETransferIntegrationErrors\", model, null, null, null, null, null);\r\n\r\n\t\tif (responseData != null)\r\n\t\t\tthis.setState({ getDataList: responseData });\r\n\t\telse\r\n\t\t\tthis.setState({ getDataList: [], });\r\n\r\n\t}\r\n\r\n\thandleClear = () => { this.setState({ model: { EndDate: DateHelper.GetDateTime(), StartDate: DateHelper.GetDateTime(), ClientId: this.state.clientId }, getDataList: [] }); }\r\n\thideAlert() { this.setState({ alert: null }); }\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, isBackOffice, NowDate } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\tValue={model.ClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\tDisabled={!isBackOffice} />\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{row.value == true ? \"Yes\" : \"No\"}
\r\n\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Unique Client Id\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ClientId\",\r\n\t\t\t\t\t\t\t\t\t\t\tshow: isBackOffice\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ClientName\",\r\n\t\t\t\t\t\t\t\t\t\t\tshow: isBackOffice\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Client Customer Name\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ClientCustomerName\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"ContactName\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ContactName\"\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t,\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction e-Transfer Id\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionETransferId\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Date\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"Date\",\r\n\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTimeUtc\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Description\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"Description\"\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_e_Transfer} />\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\neTransferIntegrationErrors.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: func,\r\n\tsetAppCenterTitle: func,\r\n\tDisabled: bool\r\n};\r\n\r\nexport default withArtifex(eTransferIntegrationErrors, {});","import Card from \"components/Card/Card\";\r\nimport CardBody from \"components/Card/CardBody\";\r\nimport GridContainer from \"components/Grid/GridContainer\";\r\nimport GridItem from \"components/Grid/GridItem\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport {\r\n GenericExpansionPanel,\r\n\tGenericGrid,\r\n GenericTextInput,\r\n} from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { MaxLength128 } from \"views/Constants/Constant.MaxLength\";\r\n\r\nclass eTransferLegacyClients extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n\r\n this.initlegacyGridColumns();\r\n\r\n this.defaultModel = {\r\n CustomerInteractId: undefined,\r\n LegacyClientId: undefined,\r\n LegacyClientName: undefined,\r\n };\r\n\r\n this.state = {\r\n isLoadingShow: false,\r\n model: { ...this.defaultModel },\r\n legacyGridRefreshToken: false,\r\n legacyGridLoadAtStartup: false,\r\n datasource: [],\r\n selectedRowIndex: undefined,\r\n };\r\n\r\n this.validateSubmitProperties = [\r\n { CustomerInteractId: \"Customer Interac ID\" },\r\n { LegacyClientId: \"Legacy Client ID\" },\r\n { LegacyClientName: \"Legacy Client Name\" },\r\n ];\r\n }\r\n\r\n initlegacyGridColumns() {\r\n this.legacyGridColums = [\r\n {\r\n Header: \"Customer Interac ID\",\r\n accessor: \"CustomerInteractId\",\r\n },\r\n {\r\n Header: \"Legacy Client ID\",\r\n accessor: \"LegacyClientId\",\r\n },\r\n {\r\n Header: \"Legacy Client Name\",\r\n accessor: \"LegacyClientName\",\r\n },\r\n ];\r\n }\r\n\r\n showLoading() {\r\n this.setState({ isLoading: true });\r\n }\r\n\r\n hideLoading() {\r\n this.setState({ isLoading: false });\r\n }\r\n\r\n onClear = () => {\r\n this.setState({\r\n model: { ...this.defaultModel },\r\n selectedRowIndex: undefined,\r\n });\r\n };\r\n\r\n onSearch = () => {\r\n this.refreshLegacyGrid();\r\n };\r\n\r\n onSubmit = async () => {\r\n const { model } = this.state;\r\n const { ExecuteApiPost, showMessage } = this.props;\r\n\r\n await ExecuteApiPost(\r\n \"/bankapi/v1.0/ClearingSettlement/SubmitLegacyClient\",\r\n model,\r\n model,\r\n this.validateSubmitProperties,\r\n undefined,\r\n [\r\n () => {\r\n showMessage(\r\n \"success\",\r\n \"Success\",\r\n \"Legacy Clients Added Successfully .\"\r\n );\r\n },\r\n this.refreshLegacyGrid,\r\n ]\r\n );\r\n };\r\n\r\n onUpdate = () => {\r\n const { model } = this.state;\r\n const { ExecuteApiPost, showMessage } = this.props;\r\n\r\n ExecuteApiPost(\r\n \"/bankapi/v1.0/ClearingSettlement/UpdateLegacyClient\",\r\n model,\r\n undefined,\r\n undefined,\r\n undefined,\r\n [\r\n () => {\r\n showMessage(\r\n \"success\",\r\n \"Success\",\r\n \"Legacy Clients Updated Successfully .\"\r\n );\r\n },\r\n ]\r\n );\r\n };\r\n\r\n onDelete = () => {\r\n const { model } = this.state;\r\n const { ExecuteApiPost, showConfirmMessageInDelete } = this.props;\r\n\r\n showConfirmMessageInDelete(() => {\r\n ExecuteApiPost(\r\n \"/bankapi/v1.0/ClearingSettlement/DeleteLegacyClient\",\r\n model,\r\n undefined,\r\n undefined,\r\n undefined,\r\n [this.onClear, this.refreshLegacyGrid]\r\n );\r\n });\r\n };\r\n\r\n onValueChange = (name, value) => {\r\n const { model } = this.state;\r\n model[name] = value;\r\n this.setState({ model });\r\n };\r\n\r\n onValidate = () => {\r\n return true;\r\n };\r\n\r\n onRowSelect = (index) => {\r\n const { datasource } = this.state;\r\n const selectedRow = datasource[index];\r\n this.setState({ model: selectedRow, selectedRowIndex: index });\r\n };\r\n\r\n refreshLegacyGrid = () => {\r\n const { legacyGridRefreshToken } = this.state;\r\n this.setState({ legacyGridRefreshToken: !legacyGridRefreshToken });\r\n };\r\n\r\n getToolbarButtons() {\r\n const { selectedRowIndex } = this.state;\r\n\r\n return [\r\n { Code: \"Clear\", OnClick: this.onClear },\r\n { Code: \"Search\", OnClick: this.onSearch },\r\n {\r\n Code: \"Submit\",\r\n OnClick: this.onSubmit,\r\n Disabled: selectedRowIndex !== undefined,\r\n },\r\n {\r\n Code: \"Update\",\r\n OnClick: this.onUpdate,\r\n Disabled: selectedRowIndex === undefined,\r\n },\r\n {\r\n Code: \"Delete\",\r\n OnClick: this.onDelete,\r\n Disabled: selectedRowIndex === undefined,\r\n },\r\n ];\r\n }\r\n\r\n render() {\r\n const {\r\n isLoadingShow,\r\n model,\r\n legacyGridRefreshToken,\r\n legacyGridLoadAtStartup,\r\n } = this.state;\r\n const { menuId, ApprovalData, After } = this.props;\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {\r\n return model;\r\n }}\r\n ValidateRequest={this.onValidate}\r\n ShowPagination={true}\r\n LoadAtStartup={legacyGridLoadAtStartup}\r\n PageSize={20}\r\n Columns={this.legacyGridColums}\r\n RowSelected={this.onRowSelect}\r\n PaginationFetchDataCallback={(data) => {\r\n this.setState({ datasource: data });\r\n }}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n );\r\n }\r\n\r\n componentDidMount() {\r\n const { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\r\n setAppLeftTitle(\"Legacy Clients\");\r\n setAppCenterTitle(\"CLEARING & SETTLEMENT\");\r\n\r\n this.setState({ legacyGridLoadAtStartup: true });\r\n }\r\n}\r\n\r\nexport default eTransferLegacyClients;\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes, { array, bool, func, number } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericGrid, GenericNumberInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\nimport DownloadButton from \"views/Components/DownloadButton\";\r\nimport { Proxy } from \"core\";\r\n\r\nclass eTransferReconciliationFile extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tReconciliationDate: DateHelper.GetDate(),\r\n\t\t\t},\r\n\t\t\tsummaryModel: {},\r\n\t\t\tsummaryInteracModel: {},\r\n\t\t\tsummaryFiModel: {},\r\n\t\t\tfiTransactionList: [],\r\n\t\t\tinteracTransactionList: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tDownloadButtonControl: false\r\n\t\t};\r\n\r\n\t\tthis.ColumnsInitiatedByInteracPaymentsFile = [\r\n\t\t\t{\r\n\t\t\t\t\"FileId\": {\r\n\t\t\t\t\t\"value\": \"FileId\",\r\n\t\t\t\t\t\"title\": \"File Id\"\r\n\t\t\t\t},\r\n\t\t\t\t\"Currency\": {\r\n\t\t\t\t\t\"value\": \"Currency\",\r\n\t\t\t\t\t\"title\": \"Currency\"\r\n\t\t\t\t},\r\n\t\t\t\t\"FiRefNo\": {\r\n\t\t\t\t\t\"value\": \"FiRefNo\",\r\n\t\t\t\t\t\"title\": \"Fi Ref No\"\r\n\t\t\t\t},\r\n\t\t\t\t\"TranDate\": {\r\n\t\t\t\t\t\"value\": \"TranDate\",\r\n\t\t\t\t\t\"title\": \"Tran Date\",\r\n\t\t\t\t\t\"type\": \"datetimeutc\"\r\n\t\t\t\t},\r\n\t\t\t\t\"LocalTranDate\": {\r\n\t\t\t\t\t\"value\": \"LocalTranDate\",\r\n\t\t\t\t\t\"title\": \"Local Date\",\r\n\t\t\t\t\t\"type\": \"datetime\"\r\n\t\t\t\t},\r\n\t\t\t\t\"Amount\": {\r\n\t\t\t\t\t\"value\": \"Amount\",\r\n\t\t\t\t\t\"title\": \"Amount\",\r\n\t\t\t\t\t\"columntype\": \"money\",\r\n\t\t\t\t\t\"type\": \"money\"\r\n\t\t\t\t},\r\n\t\t\t\t\"FiUserId\": {\r\n\t\t\t\t\t\"value\": \"FiUserId\",\r\n\t\t\t\t\t\"title\": \"FiUserId\"\r\n\t\t\t\t},\r\n\t\t\t\t\"UniqueClientId\": {\r\n\t\t\t\t\t\"value\": \"UniqueClientId\",\r\n\t\t\t\t\t\"title\": \"Unique Client Id\"\r\n\t\t\t\t},\r\n\t\t\t\t\"ClientName\": {\r\n\t\t\t\t\t\"value\": \"ClientName\",\r\n\t\t\t\t\t\"title\": \"Client Name\"\r\n\t\t\t\t},\r\n\t\t\t\t\"TransactionType\": {\r\n\t\t\t\t\t\"value\": \"TransactionType\",\r\n\t\t\t\t\t\"title\": \"Transaction Type\"\r\n\t\t\t\t},\r\n\t\t\t\t\"PmtRefNo\": {\r\n\t\t\t\t\t\"value\": \"PmtRefNo\",\r\n\t\t\t\t\t\"title\": \"Pmt Ref No\"\r\n\t\t\t\t},\r\n\t\t\t\t\"InteracTranDate\": {\r\n\t\t\t\t\t\"value\": \"InteracTranDate\",\r\n\t\t\t\t\t\"title\": \"Interac Tran Date\",\r\n\t\t\t\t\t\"type\": \"datetimeutc\"\r\n\t\t\t\t},\r\n\t\t\t\t\"InteracLocalTranDate\": {\r\n\t\t\t\t\t\"value\": \"InteracLocalTranDate\",\r\n\t\t\t\t\t\"title\": \"Interac Local Tran Date\",\r\n\t\t\t\t\t\"type\": \"datetimeutc\"\r\n\t\t\t\t},\r\n\t\t\t\t\"ChannelIndicator\": {\r\n\t\t\t\t\t\"value\": \"ChannelIndicator\",\r\n\t\t\t\t\t\"title\": \"Channel Indicator\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.ColumnsInitiatedByFiPaymentsFile = [\r\n\t\t\t{\r\n\t\t\t\t\"FileId\": {\r\n\t\t\t\t\t\"value\": \"FileId\",\r\n\t\t\t\t\t\"title\": \"File Id\"\r\n\t\t\t\t},\r\n\t\t\t\t\"Currency\": {\r\n\t\t\t\t\t\"value\": \"Currency\",\r\n\t\t\t\t\t\"title\": \"Currency\"\r\n\t\t\t\t},\r\n\t\t\t\t\"FiRefNo\": {\r\n\t\t\t\t\t\"value\": \"FiRefNo\",\r\n\t\t\t\t\t\"title\": \"Fi Ref No\"\r\n\t\t\t\t},\r\n\t\t\t\t\"TranDate\": {\r\n\t\t\t\t\t\"value\": \"TranDate\",\r\n\t\t\t\t\t\"title\": \"Tran Date\",\r\n\t\t\t\t\t\"type\": \"datetimeutc\"\r\n\t\t\t\t},\r\n\t\t\t\t\"LocalTranDate\": {\r\n\t\t\t\t\t\"value\": \"LocalTranDate\",\r\n\t\t\t\t\t\"title\": \"Local Date\",\r\n\t\t\t\t\t\"type\": \"datetimeutc\"\r\n\t\t\t\t},\r\n\t\t\t\t\"Amount\": {\r\n\t\t\t\t\t\"value\": \"Amount\",\r\n\t\t\t\t\t\"title\": \"Amount\",\r\n\t\t\t\t\t\"columntype\": \"money\",\r\n\t\t\t\t\t\"type\": \"money\"\r\n\t\t\t\t},\r\n\t\t\t\t\"OrigFiUserId\": {\r\n\t\t\t\t\t\"value\": \"OrigFiUserId\",\r\n\t\t\t\t\t\"title\": \"Orig Fi User Id\"\r\n\t\t\t\t},\r\n\t\t\t\t\"UniqueClientId\": {\r\n\t\t\t\t\t\"value\": \"UniqueClientId\",\r\n\t\t\t\t\t\"title\": \"Unique Client Id\"\r\n\t\t\t\t},\r\n\t\t\t\t\"ClientName\": {\r\n\t\t\t\t\t\"value\": \"ClientName\",\r\n\t\t\t\t\t\"title\": \"Client Name\"\r\n\t\t\t\t},\r\n\t\t\t\t\"TransactionType\": {\r\n\t\t\t\t\t\"value\": \"TransactionType\",\r\n\t\t\t\t\t\"title\": \"Transaction Type\"\r\n\t\t\t\t},\r\n\t\t\t\t\"PmtRefNo\": {\r\n\t\t\t\t\t\"value\": \"PmtRefNo\",\r\n\t\t\t\t\t\"title\": \"Pmt Ref No\"\r\n\t\t\t\t},\r\n\t\t\t\t\"ChannelIndicator\": {\r\n\t\t\t\t\t\"value\": \"ChannelIndicator\",\r\n\t\t\t\t\t\"title\": \"Channel Indicator\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t];\r\n\t}\r\n\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Interac e-Transfer / Reconciliation File\");\r\n\t\tthis.props.setAppCenterTitle(\"CLEARING & SETTLEMENT\");\r\n\t}\r\n\r\n\thandleChange = (name, newValue) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\treturn { model, DownloadButtonControl: false };\r\n\t\t});\r\n\t}\r\n\r\n\tGetData = async () => {\r\n\t\tif (this.IsValid()) {\r\n\t\t\tconst { ExecuteApiPost } = this.props;\r\n\t\t\tvar { model, DownloadButtonControl } = this.state;\r\n\r\n\t\t\tvar responseData = await ExecuteApiPost(\"/bankapi/v1.0/ClearingSettlement/GetReconciliationFileDetail\", model, null, null, null, null, null);\r\n\r\n\t\t\tif (responseData != null) {\r\n\t\t\t\tif (responseData.ReconciliationFileDetail != null)\r\n\t\t\t\t\tDownloadButtonControl = true;\r\n\t\t\t\telse\r\n\t\t\t\t\tDownloadButtonControl = false;\r\n\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tsummaryModel: responseData.ReconciliationFileDetail,\r\n\t\t\t\t\t// fiTransactionList: responseData.ReconciliationFiTransactions,\r\n\t\t\t\t\t// interacTransactionList: responseData.ReconciliationInteracTransactions,\r\n\t\t\t\t\tsummaryInteracModel: responseData.ReconciliationInteracSummary,\r\n\t\t\t\t\tsummaryFiModel: responseData.ReconciliationFiSummary,\r\n\t\t\t\t\tDownloadButtonControl: true\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tthis.setState({ DownloadButtonControl: false });\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tIsValid = () => {\r\n\t\tvar vmodel = { ...this.state.model };\r\n\t\tif (!vmodel || !vmodel.ReconciliationDate) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Reconciliation Date cannot be null\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse if (typeof vmodel.ReconciliationDate != \"object\") {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Reconciliation Date is invalid\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\thideAlert = () => { this.setState({ alert: null, isLoading: false }); }\r\n\r\n\thideLoading = () => { this.setState({ isLoading: false }); }\r\n\r\n\thandleClear = () => {\r\n\t\tthis.setState({ model: { ReconciliationDate: DateHelper.GetDate() }, summaryModel: {}, fiTransactionList: [], interacTransactionList: [], summaryInteracModel: {}, summaryFiModel: {} })\r\n\t}\r\n\r\n\tClicked = async (contentType) => {\r\n\t\tvar { model, summaryModel } = this.state;\r\n\r\n\t\tif (model.ReconciliationDate == null || model.ReconciliationDate == undefined) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please select required field !\", \"Select a Reconciliation Date !\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar mytitle = \"Reconciliation.CA000352.\" + contentType + \".\" + model.ReconciliationDate.format(\"YYYY-MM-DD\");\r\n\r\n\t\tvar apiUrl = \"\";\r\n\t\tvar columns = [];\r\n\t\tmodel.ContentType = contentType;\r\n\r\n\t\tif (contentType == \"InitiatedByInteracPayments\") {\r\n\t\t\tapiUrl = \"DownloadReconciliationInitiatedByInteracPayment\";\r\n\t\t\tcolumns = this.ColumnsInitiatedByInteracPaymentsFile;\r\n\t\t}\r\n\t\telse if (contentType == \"InitiatedByFiPayments\") {\r\n\t\t\tapiUrl = \"DownloadReconciliationInitiatedByFiPayment\";\r\n\t\t\tcolumns = this.ColumnsInitiatedByFiPaymentsFile;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Content type is invalid !\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tmodel.FileId = summaryModel.FileId;\r\n\t\tmodel.jsonFile = {\r\n\t\t\tcolmns: columns,\r\n\t\t\tformat: \"CSV\",\r\n\t\t\ttitle: mytitle\r\n\t\t};\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\"/bankapi/v1.0/ClearingSettlement/\" + apiUrl,\r\n\t\t\tmodel,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t},\r\n\t\t\tthis.props.showMessage\r\n\t\t);\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, summaryModel, isLoading, summaryFiModel, summaryInteracModel, DownloadButtonControl } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t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\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\t{/* \r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{row.value == \"Credit\" ? \"Money Send\" : \"Money Request\"}
\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\tSelectedIndex={this.state.rowIndex}\r\n\t\t\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_e_Transfer} />\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{row.value == \"Credit\" ? \"Money Send\" : \"Money Request\"}
\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"TranDate\",\r\n\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transanction Local Date\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"LocalTranDate\",\r\n\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Interac Transanction Date\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"InteracTranDate\",\r\n\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Interac Transanction Local Date\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"InteracTranLocalDate\",\r\n\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\tSelectedIndex={this.state.rowIndex}\r\n\t\t\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_e_Transfer} />\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t */}\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\neTransferReconciliationFile.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\thandleOperationType: func,\r\n\tSelectedRowChange: func,\r\n\tshowQuestionMessage: func,\r\n\tsetAppLeftTitle: func,\r\n\tsetAppCenterTitle: func,\r\n\tDisabled: bool,\r\n\tmenuId: number,\r\n\tApprovalData: array,\r\n\tAfter: func\r\n};\r\n\r\nexport default withArtifex(eTransferReconciliationFile, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes, { bool, func } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTitle, GenericDialog, GenericLabel, GenericRadioInput, GenericDialogActions } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, EtransferApplicationTypes, ProgramCodes } from \"views/Constants/Constant\";\r\nimport Select from \"react-select\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport { DialogTitle, DialogContent } from \"@material-ui/core\";\r\n\r\nclass eTransferTraceTransactions extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.InitialModel = {\r\n\t\t\tFromDate: DateHelper.GetDate(),\r\n\t\t\tToDate: DateHelper.GetDate(),\r\n\t\t}\r\n\t\tthis.state = {\r\n\t\t\tmodel: { ...this.InitialModel },\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tisDownloadDialogOpen : false,\r\n\t\t\tExportReportType: null\r\n\t\t};\r\n\t\tthis.trxTable = React.createRef();\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\taccessor: \"TransactionDate\",\r\n\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\tFormatter.FormatDateUtc(row.value)\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Unique Client Id\",\r\n\t\t\t\taccessor: \"UniqueClientNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"UniqueClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Payee Name\",\r\n\t\t\t\taccessor: \"PayeeName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"Amount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType:GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Status\",\r\n\t\t\t\taccessor: \"TransactionStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Type\",\r\n\t\t\t\taccessor: \"TransactionType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Direction\",\r\n\t\t\t\taccessor: \"Direction\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Application\",\r\n\t\t\t\taccessor: \"ApplicationId\",\r\n\t\t\t\tCell: row => {\r\n\t\t\t\t\tvar rowValue = \"\";\r\n\t\t\t\t\tEtransferApplicationTypes && EtransferApplicationTypes.forEach(item => {\r\n\t\t\t\t\t\tif (item.Value == row.value)\r\n\t\t\t\t\t\t\trowValue = item.Text;\r\n\t\t\t\t\t});\r\n\t\t\t\t\treturn rowValue;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t];\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"e-Transfer Trace Transactions\");\r\n\t\tthis.props.setAppCenterTitle(\"CLEARING & SETTLEMENT\");\r\n\t\tthis.setState({ loadingCompleted: true });\r\n\t}\r\n\r\n\thandleChange = (name, newValue) => {\r\n\t\tif(name == \"ExportReportType\"){\r\n\t\t\tthis.setState({\r\n\t\t\t\tExportReportType : newValue\r\n\t\t\t});\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\tIsValid = () => {\r\n\t\tvar model = { ...this.state.model };\r\n\t\tif (typeof model.FromDate != \"object\" && model.FromDate != \"\" && model.FromDate != null) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Start Date is invalid\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (typeof model.ToDate != \"object\" && model.ToDate != \"\" && model.ToDate != null) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"End Date is invalid\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif ((typeof model.FromDate == \"object\" && typeof model.ToDate == \"object\") && model.ToDate < model.FromDate) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Start Date cannot be bigger than End Date\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\thandleGetList = () => {\r\n\t\tthis.setState(state => ({ trxGridToken: !state.trxGridToken }));\r\n\t}\r\n\t\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\thandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: { ...this.InitialModel },\r\n\t\t\tlist: [],\r\n\t\t});\r\n\t}\r\n\r\n\tGetExportButtonDialog() {\r\n\t\treturn( \r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t)\r\n\t}\r\n\r\n\tExportClick = () =>{\r\n\t\tif(!this.IsValid()){\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.accessor != \"Actions\" && c.accessor != \"ED\" && (c.show == undefined || c.show)) {\r\n\t\t\t\ttrxColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\t\tconsole.log(this.trxTable);\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: trxColumns, ExportSelectedColumns: trxColumns });\r\n\t}\r\n\r\n\tExcelDownload = () => {\t\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tconst temp = { ...this.state.model };\r\n\r\n\t\tvar jsonColList = [];\r\n\r\n\t\tvar trxColumns = {};\r\n\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\ttrxColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t});\r\n\t\tjsonColList.push(trxColumns);\r\n\r\n\t\tvar mytitle = \"e-Transfer Trace Transactions\";\r\n\r\n\t\ttemp.jsonFile = {\r\n\t\t\tcolmns: jsonColList,\r\n\t\t\tformat: this.state.ExportReportType,\r\n\t\t\ttitle: mytitle\r\n\t\t};\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\"/bankapi/v1.0/ClearingSettlement/ETransferTraceTransactionExportDownload\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t},\r\n\t\t\tthis.props.showMessage\r\n\t\t);\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, isLoading } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{this.GetExportButtonDialog()}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\t\tCanClear />\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t { return model; }}\r\n\t\t\t\t\t\t\t\t\tValidateRequest={this.IsValid}\r\n\t\t\t\t\t\t\t\t\tShowPagination={true}\r\n\t\t\t\t\t\t\t\t\tLoadAtStartup={this.state.loadingCompleted}\r\n\t\t\t\t\t\t\t\t\tPageSize={20}\r\n\t\t\t\t\t\t\t\t\tColumns={this.columns}\r\n\t\t\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_e_Transfer} />\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\neTransferTraceTransactions.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\thandleOperationType: PropTypes.func,\r\n\tSelectedRowChange: PropTypes.func,\r\n\tshowQuestionMessage: func,\r\n\tsetAppLeftTitle: func,\r\n\tsetAppCenterTitle: func,\r\n\tDisabled: bool\r\n};\r\n\r\nexport default withArtifex(eTransferTraceTransactions, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes, { bool, func } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { BankTransactionStatus, GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\n\r\nclass eTransferCompletedTransfers extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.InitialModel = {\r\n\t\t\tTransactionStatus: BankTransactionStatus.Completed,\r\n\t\t\tSearchEndDate: DateHelper.GetDateLocal(),\r\n\t\t\tSearchStartDate: DateHelper.GetDateLocal()\r\n\t\t}\r\n\t\tthis.state = {\r\n\t\t\tisLoading: false,\r\n\t\t\tmodel: { ...this.InitialModel },\r\n\t\t\tgetDataList: [],\r\n\t\t\tsummaryModel: {}\r\n\t\t};\r\n\t\tthis.handleChange = this.handleChange.bind(this);\r\n\t\tthis.GetData = this.GetData.bind(this);\r\n\t\tthis.errorCallback = this.errorCallback.bind(this);\r\n\t\tthis.hideAlert = this.hideAlert.bind(this);\r\n\t\tthis.showErrorMessage = this.showErrorMessage.bind(this);\r\n\t\tthis.successSummaryCallback = this.successSummaryCallback.bind(this);\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Interac e-Transfer / Completed Transfers\");\r\n\t\tthis.props.setAppCenterTitle(\"CLEARING & SETTLEMENT\");\r\n\t}\r\n\thandleChange(name, newValue, ) {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tIsValid = () => {\r\n\t\tvar model = { ...this.state.model };\r\n\t\tif (typeof model.SearchStartDate != \"object\" && model.SearchStartDate != \"\" && model.SearchStartDate != null) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Start Date is invalid\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (typeof model.SearchEndDate != \"object\" && model.SearchEndDate != \"\" && model.SearchEndDate != null) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"End Date is invalid\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif ((typeof model.SearchStartDate == \"object\" && typeof model.SearchEndDate == \"object\") && model.SearchEndDate < model.SearchStartDate) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Start Date cannot be bigger than End Date\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\r\n\tGetData() {\r\n\r\n\t\tif (!this.IsValid())\r\n\t\t\treturn false;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/ClearingSettlement/GetETransferByTransactionStatus\",\r\n\t\t\tthis.state.model,\r\n\t\t\tthis.successSummaryCallback,\r\n\t\t\tthis.errorCallback\r\n\t\t);\r\n\r\n\t}\r\n\r\n\tsuccessSummaryCallback(responseData) {\r\n\t\tvar summaryModel = { ...this.state.summaryModel };\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.showErrorMessage(responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (responseData.Item == null || responseData.Item.SummaryItems == null || responseData.Item.TransactionList.length <= 0) {\r\n\t\t\tthis.setState({ summaryModel: {}, getDataList: [], isLoading: false });\r\n\t\t} else {\r\n\t\t\tsummaryModel = responseData.Item.SummaryItems;\r\n\t\t\tthis.setState({\r\n\t\t\t\tsummaryModel,\r\n\t\t\t\tgetDataList: responseData.Item.TransactionList.map(x => {\r\n\t\t\t\t\treturn {\r\n\t\t\t\t\t\tClientName: x.ClientName == null ? \"\" : x.ClientName,\r\n\t\t\t\t\t\tClientNumber: x.ClientNumber == null ? \"\" : x.ClientNumber,\r\n\t\t\t\t\t\tTransRefNoId: x.TransactionReferenceNumber == null ? \"\" : x.TransactionReferenceNumber,\r\n\t\t\t\t\t\tResponseCode: x.ResponseCode == null ? \"\" : x.ResponseCode,\r\n\t\t\t\t\t\tNotificationStatus: x.NotificationStatus == null ? \"\" : x.NotificationStatus,\r\n\t\t\t\t\t\tTransferType: x.TransactionType == null ? \"\" : x.TransactionType,\r\n\t\t\t\t\t\tRequestDate: x.RequestDate == null ? \"\" : x.RequestDate,\r\n\t\t\t\t\t\tAmount: x.TransactionAmount == null ? \"\" : x.TransactionAmount,\r\n\t\t\t\t\t\tReceivedDate: x.ReceivedDate == null ? \"\" : x.ReceivedDate,\r\n\t\t\t\t\t\tSenderRegistrationName: x.SenderRegistrationName == null ? \"\" : x.SenderRegistrationName,\r\n\t\t\t\t\t\tParticipantReferenceName: x.ParticipantReferenceNumber == null ? \"\" : x.ParticipantReferenceNumber,\r\n\t\t\t\t\t\tTransferStatus: x.BankTransactionStatus == null ? \"\" : x.BankTransactionStatus,\r\n\t\t\t\t\t\tFiAccountId: x.FiAccountNumber == null ? \"\" : x.FiAccountNumber,\r\n\t\t\t\t\t\tAccountHolderName: x.AccountHolderName == null ? \"\" : x.AccountHolderName,\r\n\t\t\t\t\t\tInteracStatus: x.InteracStatus\r\n\t\t\t\t\t};\r\n\t\t\t\t}), isLoading: false\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\r\n\terrorCallback(error) {\r\n\t\tthis.showErrorMessage(\"An error occurred during the api visit\" + error);\r\n\t}\r\n\r\n\tshowErrorMessage(message) {\r\n\t\tthis.setState({\r\n\t\t\tisLoading: false,\r\n\t\t\talert: this.hideAlert()} />\r\n\r\n\t\t});\r\n\t}\r\n\r\n\thideAlert() {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: this.InitialModel })\r\n\t}\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, summaryModel, isLoading } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t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r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Sender Registration Name\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"SenderRegistrationName\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Participant Reference Name\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ParticipantReferenceName\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transfer Status\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransferStatus\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Interac Status\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"InteracStatus\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Fi AccountId\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"FiAccountId\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Account Holder Name\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"AccountHolderName\"\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_e_Transfer} />\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\neTransferCompletedTransfers.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\thandleOperationType: PropTypes.func,\r\n\tSelectedRowChange: PropTypes.func,\r\n\tshowQuestionMessage: func,\r\n\tsetAppLeftTitle: func,\r\n\tsetAppCenterTitle: func,\r\n\tDisabled: bool\r\n};\r\n\r\nexport default withArtifex(eTransferCompletedTransfers, {});","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { DeleteIcon, TraceIcon, UploadIcon, InformationIcon } from \"core/Icons\";\r\nimport PropTypes, { bool, func } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport AccountLimitToolbar from \"views/Components/AccountLimitToolbar\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport {\r\n GenericAlert,\r\n GenericDateInput,\r\n GenericDialog,\r\n GenericDialogActions,\r\n GenericExpansionPanel,\r\n GenericGrid,\r\n GenericNumberInput,\r\n GenericSelectInput,\r\n GenericTextInput,\r\n GenericTitle,\r\n GenericLabel,\r\n GenericRadioInput,\r\n} from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport {\r\n BankProgramType,\r\n BankTransactionStatus,\r\n Direction,\r\n EtransferApplicationTypes,\r\n ETransferMoneyRequestStatus,\r\n ETransferMoneySendStatus,\r\n GridColumnType,\r\n ProgramCodes,\r\n} from \"views/Constants/Constant.js\";\r\nimport Select from \"react-select\";\r\nimport MenuAuthorityRightHelper from \"core/MenuAuthorityRightHelper\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport Logo from \"../../../assets/img/logo.png\";\r\nimport Formatter from \"core/Formatter\";\r\nclass eTransferOutgoingTransfers extends Component {\r\n constructor(props) {\r\n super(props);\r\n\r\n this.initialModel = {\r\n SearchEndDate: DateHelper.GetDateTime(),\r\n SearchStartDate: DateHelper.GetDateTime(),\r\n DirectionParameterValue: Direction.Outgoing,\r\n TransactionStatus: BankTransactionStatus.Completed,\r\n ClientId: 0,\r\n IsBankingScreen: false,\r\n searchIsNotSpecific: true,\r\n };\r\n\r\n this.state = {\r\n model: this.initialModel,\r\n vModel: {},\r\n tempModel: {},\r\n getDataList: [],\r\n summaryModel: {},\r\n isLoading: false,\r\n isBackOffice: false,\r\n selectList: [],\r\n checkedValues: [],\r\n cancelRequestModel: {\r\n SelectedETransfer: {},\r\n cancellationReason: null,\r\n },\r\n cancelDialog: false,\r\n vIndividualModel: {},\r\n LimitToken: false,\r\n remindModel: {},\r\n remindDialog: false,\r\n };\r\n\r\n this.sortedByDate = [{ id: \"TransactionDate\", desc: true }];\r\n this.maxLength400 = { maxLength: 400 };\r\n this.isClient = ClientHelper.IsClient();\r\n this.GetData = this.GetData.bind(this);\r\n this.errorCallback = this.errorCallback.bind(this);\r\n this.hideAlert = this.hideAlert.bind(this);\r\n this.showErrorMessage = this.showErrorMessage.bind(this);\r\n this.successSummaryCallback = this.successSummaryCallback.bind(this);\r\n this.isBackOffice = ClientHelper.IsBackOffice();\r\n this.isBankingScreen = this.props.MenuCode == \"BETOUT\";\r\n this.trxTable = React.createRef();\r\n this.MenuAuthorityRightHelper = new MenuAuthorityRightHelper();\r\n }\r\n\r\n componentDidMount() {\r\n this.props.setAppLeftTitle(\"Interac e-Transfer / Outgoing Transactions\");\r\n var model = { ...this.state.model };\r\n var initialModel = this.initialModel;\r\n\r\n model.DirectionParameterValue = Direction.Outgoing;\r\n model.IsBankingScreen = this.props.MenuCode == \"BETOUT\";\r\n var isBackOffice = ClientHelper.IsBackOffice();\r\n if (!isBackOffice) {\r\n model.ClientId = ClientHelper.GetClientRowId();\r\n initialModel.ClientId = model.ClientId;\r\n this.props.setAppCenterTitle(\r\n model.IsBankingScreen ? \"BANKING\" : \"INTERAC E-TRANSFER\"\r\n );\r\n } else {\r\n this.props.setAppCenterTitle(\"INTERAC E-TRANSFER\");\r\n }\r\n this.RefreshToolBar();\r\n this.setState({ model, isBackOffice, loadingCompleted: true });\r\n this.GetGridButtonsRight();\r\n }\r\n GetGridButtonsRight = async () => {\r\n const { MenuCode } = this.props;\r\n var gridButtonRightDetail =\r\n await this.MenuAuthorityRightHelper.RightCheckList(MenuCode, [\r\n \"ETRNSFOUTTRACE\",\r\n ]);\r\n\r\n this.setState({ gridButtonRightDetail });\r\n };\r\n\r\n GetHandleTrace = (model) => () => {\r\n this.traceHelper.InsertTransactionTraceWithAlert(model.TransactionId);\r\n };\r\n\r\n RefreshToolBar = () => {\r\n this.setState({ LimitToken: !this.state.LimitToken });\r\n };\r\n\r\n handleChange = (name, newValue) => {\r\n const model = { ...this.state.model };\r\n model[name] = newValue;\r\n this.setState({ model });\r\n };\r\n\r\n handleChangeCancelModel = (name, newValue) => {\r\n const cancelRequestModel = { ...this.state.cancelRequestModel };\r\n cancelRequestModel.cancellationReason = newValue;\r\n this.setState({ cancelRequestModel });\r\n };\r\n\r\n ValueChanged = (name, value) => {\r\n this.setState({ [name]: value });\r\n };\r\n\r\n GetData() {\r\n this.setState((state) => ({ trxGridToken: !state.trxGridToken }));\r\n this.GetSummaryData();\r\n }\r\n\r\n GetSummaryData = () => {\r\n if (!this.Validate()) return;\r\n\r\n Proxy.POST(\r\n \"/bankapi/v1.0/ClearingSettlement/GetEtransferOutInSummaryData\",\r\n this.state.model,\r\n (responseData) => {\r\n if (!responseData.IsSucceeded) {\r\n this.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n return;\r\n }\r\n this.setState({ summaryModel: responseData.Item });\r\n },\r\n (error) => {\r\n this.ShowMessage(\"error\", \"Error\", error);\r\n }\r\n );\r\n };\r\n\r\n Validate = () => {\r\n const { model, vModel } = this.state;\r\n\r\n var searchIsNotSpecific =\r\n (model.RefNo == undefined || model.RefNo == null || model.RefNo == \"\") &&\r\n (model.InteracRefNo == undefined ||\r\n model.InteracRefNo == null ||\r\n model.InteracRefNo == \"\") &&\r\n (model.PayeeEmail == undefined ||\r\n model.PayeeEmail == null ||\r\n model.PayeeEmail == \"\");\r\n\r\n model[\"searchIsNotSpecific\"] = searchIsNotSpecific;\r\n\r\n var validateStatus = true;\r\n\r\n if (searchIsNotSpecific) {\r\n if (!model.ClientId) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"Select Client to continue\"\r\n );\r\n vModel[\"ClientId\"] = true;\r\n validateStatus = false;\r\n }\r\n\r\n if (\r\n typeof model.SearchStartDate != \"object\" &&\r\n model.SearchStartDate != \"\" &&\r\n model.SearchStartDate != null\r\n ) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"Start Date is invalid\"\r\n );\r\n validateStatus = false;\r\n }\r\n if (\r\n typeof model.SearchEndDate != \"object\" &&\r\n model.SearchEndDate != \"\" &&\r\n model.SearchEndDate != null\r\n ) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"End Date is invalid\"\r\n );\r\n validateStatus = false;\r\n }\r\n if (\r\n typeof model.SearchStartDate == \"object\" &&\r\n typeof model.SearchEndDate == \"object\" &&\r\n DateHelper.ToMoment(model.SearchEndDate) <\r\n DateHelper.ToMoment(model.SearchStartDate)\r\n ) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"Start Date cannot be bigger than End Date\"\r\n );\r\n validateStatus = false;\r\n }\r\n\r\n this.setState({ model, vModel });\r\n if (!validateStatus) return false;\r\n } else {\r\n vModel[\"ClientId\"] = false;\r\n this.setState({ model, vModel });\r\n }\r\n return true;\r\n };\r\n\r\n successSummaryCallback(responseData) {\r\n if (!responseData.IsSucceeded) {\r\n this.showErrorMessage(responseData.ErrorDescription);\r\n return;\r\n }\r\n if (\r\n responseData.Item == null ||\r\n responseData.Item.TransactionList == null ||\r\n responseData.Item.TransactionList.length < 1\r\n ) {\r\n this.setState({\r\n summaryModel: {},\r\n cancelRequestModel: null,\r\n getDataList: [],\r\n isLoading: false,\r\n });\r\n } else {\r\n this.setState({\r\n cancelRequestModel: { SelectedETransfer: {}, cancellationReason: null },\r\n getDataList:\r\n responseData.Item.TransactionList == null\r\n ? []\r\n : responseData.Item.TransactionList,\r\n isLoading: false,\r\n });\r\n }\r\n }\r\n\r\n errorCallback(error) {\r\n this.showErrorMessage(\"An error occurred during the api visit\" + error);\r\n }\r\n\r\n showErrorMessage(message) {\r\n this.setState({\r\n isLoading: false,\r\n alert: (\r\n this.hideAlert()}\r\n />\r\n ),\r\n });\r\n }\r\n\r\n ShowMessage = (type, title, message) => {\r\n this.setState({\r\n isLoading: false,\r\n cancelDialog: false,\r\n remindDialog: false,\r\n alert: (\r\n this.hideAlert()}\r\n />\r\n ),\r\n });\r\n };\r\n\r\n handleClear = () => {\r\n this.setState({\r\n model: this.initialModel,\r\n getDataList: [],\r\n summaryModel: {},\r\n });\r\n };\r\n\r\n hideAlert() {\r\n this.setState({ alert: null });\r\n }\r\n showLoading = () => {\r\n this.setState({ alert: null, isLoading: true });\r\n };\r\n hideLoading = () => {\r\n this.setState({ alert: null, isLoading: false });\r\n };\r\n hideDialog = () => {\r\n this.setState({ cancelDialog: false, remindDialog: false });\r\n };\r\n\r\n handleCancel = (eTransfer) => {\r\n if (!this.state.isBackOffice) {\r\n var cancelRequestModel = { ...this.state.cancelRequestModel };\r\n const selectTransfer = eTransfer;\r\n cancelRequestModel.SelectedETransfer = selectTransfer;\r\n if (\r\n cancelRequestModel.SelectedETransfer.BankTransactionStatusParamValue ==\r\n BankTransactionStatus.Sent\r\n )\r\n this.setState({ cancelRequestModel, cancelDialog: true });\r\n else\r\n this.ShowMessage(\r\n \"warning\",\r\n \"Warning\",\r\n \"Selected transaction status is not Sent !!!\"\r\n );\r\n }\r\n };\r\n\r\n confirmCancel = () => {\r\n var cancelRequestModel = { ...this.state.cancelRequestModel };\r\n if (\r\n cancelRequestModel.cancellationReason != null &&\r\n cancelRequestModel.cancellationReason != \"\"\r\n ) {\r\n this.hideDialog();\r\n this.showLoading();\r\n\r\n Proxy.POST(\r\n \"/bankapi/v1.0/BankInteracETransfer/CancelOutgoingEtransfer\",\r\n cancelRequestModel,\r\n (responseData) => {\r\n if (!responseData.IsSucceeded) {\r\n this.setState({ IsConfirm: false });\r\n this.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n return;\r\n }\r\n this.ShowMessage(\r\n \"success\",\r\n \"Success\",\r\n \"Transfer cancelled successfuly\"\r\n );\r\n this.GetData();\r\n },\r\n (error) => {\r\n this.ShowMessage(\"error\", \"Error\", error);\r\n }\r\n );\r\n } else {\r\n this.ShowMessage(\r\n \"warning\",\r\n \"Warning\",\r\n \"Cancellation Reason can not be null !!!\"\r\n );\r\n }\r\n };\r\n\r\n handleRemind = (eTransfer) => {\r\n var { remindModel } = this.state;\r\n\r\n if (\r\n eTransfer.BankTransactionStatusParamValue == BankTransactionStatus.Sent\r\n ) {\r\n if (\r\n eTransfer.TransactionTypeId == null ||\r\n eTransfer.TransactionTypeId == undefined ||\r\n eTransfer.TransactionTypeId <= 0\r\n ) {\r\n this.ShowMessage(\r\n \"error\",\r\n \"Error\",\r\n \"Transaction Type information of line is invalid !\"\r\n );\r\n return;\r\n } else {\r\n remindModel.TransactionTypeId = eTransfer.TransactionTypeId;\r\n }\r\n\r\n if (\r\n eTransfer.ParticipantReferenceNumber == null ||\r\n eTransfer.ParticipantReferenceNumber == undefined ||\r\n eTransfer.ParticipantReferenceNumber == \"\"\r\n ) {\r\n this.ShowMessage(\r\n \"error\",\r\n \"Error\",\r\n \"Transfer Reference Number information of line is invalid !\"\r\n );\r\n return;\r\n } else {\r\n remindModel.TransferReferenceNumber =\r\n eTransfer.ParticipantReferenceNumber;\r\n }\r\n\r\n this.setState({ remindModel, remindDialog: true });\r\n } else\r\n this.ShowMessage(\r\n \"warning\",\r\n \"Warning\",\r\n \"Selected transaction status is not Sent !!!\"\r\n );\r\n };\r\n\r\n confirmRemind = () => {\r\n var { remindModel } = this.state;\r\n this.hideDialog();\r\n this.showLoading();\r\n\r\n Proxy.POST(\r\n \"/bankapi/v1.0/BankInteracETransfer/RemindEtransferTransaction\",\r\n remindModel,\r\n (responseData) => {\r\n if (!responseData.IsSucceeded) {\r\n this.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n return;\r\n }\r\n this.ShowMessage(\r\n \"success\",\r\n \"Success\",\r\n \"Transfer reminded successfully\"\r\n );\r\n },\r\n (error) => {\r\n this.ShowMessage(\"error\", \"Error\", error);\r\n }\r\n );\r\n };\r\n\r\n ExportClick = () => {\r\n var trxColumns = [];\r\n this.trxTable.current.props.Columns.forEach((c) => {\r\n if (\r\n c.accessor != \"Actions\" &&\r\n c.accessor != \"ED\" &&\r\n (c.show == undefined || c.show)\r\n ) {\r\n trxColumns.push({\r\n value: c.accessor,\r\n title: c.Header,\r\n columntype: c.ColumnType,\r\n type: c.type,\r\n });\r\n }\r\n }, this);\r\n\r\n this.setState({\r\n isDownloadDialogOpen: true,\r\n GridKeyValueList: trxColumns,\r\n ExportSelectedColumns: trxColumns,\r\n });\r\n };\r\n\r\n ExcelDownload = () => {\r\n if (!this.state.ExportReportType) {\r\n this.ShowMessage(\r\n \"warning\",\r\n \"Export Report Type not selected\",\r\n \"Select Export Report Type to continue\"\r\n );\r\n return;\r\n }\r\n\r\n if (\r\n this.state.ExportReportType == \"PDF\" &&\r\n this.state.ExportSelectedColumns.length > 15\r\n ) {\r\n this.ShowMessage(\r\n \"warning\",\r\n \"PDF document cannot exceed 15 columns\",\r\n \"PDF document cannot exceed 15 columns\"\r\n );\r\n return;\r\n }\r\n\r\n this.setState({ isDownloadDialogOpen: false });\r\n\r\n if (!this.Validate()) return;\r\n\r\n const temp = { ...this.state.model };\r\n\r\n var jsonColList = [];\r\n\r\n var trxColumns = {};\r\n this.state.ExportSelectedColumns.map((c) => {\r\n trxColumns[c.value] = {\r\n value: c.value,\r\n title: c.title,\r\n columntype: c.columntype,\r\n type: c.type,\r\n };\r\n });\r\n jsonColList.push(trxColumns);\r\n\r\n var mytitle = \"Interac e-Transfer Outgoing Transfers\";\r\n\r\n temp.jsonFile = {\r\n colmns: jsonColList,\r\n format: this.state.ExportReportType,\r\n title: mytitle,\r\n };\r\n\r\n this.setState({ isLoading: true });\r\n Proxy.DownloadGeneratedFile(\r\n \"/bankapi/v1.0/ClearingSettlement/GetETransferOutgoingTransfersExportDownload\",\r\n temp,\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n if (!responseData.IsSucceeded) {\r\n this.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n return;\r\n }\r\n },\r\n (errorMessage) => {\r\n this.setState({ isLoading: false });\r\n this.ShowMessage(\"error\", \"Error\", errorMessage);\r\n },\r\n this.props.showMessage\r\n );\r\n };\r\n\r\n isAvailableForTraceTransaction = (row) => {\r\n var availableForTrace = true;\r\n switch (row.BankTransactionStatusParamValue) {\r\n case BankTransactionStatus.Pending:\r\n case BankTransactionStatus.Error:\r\n case BankTransactionStatus.Cancelled:\r\n availableForTrace = false;\r\n break;\r\n default:\r\n break;\r\n }\r\n availableForTrace =\r\n availableForTrace && !row.TransactionTraceId && row.TransactionId > 0;\r\n return availableForTrace;\r\n };\r\n RenderItemStoreName = (d) => {\r\n this.renderItemStoreName = `${d.StoreName} - (${d.StoreCode})`;\r\n return this.renderItemStoreName;\r\n };\r\n HandleChange = (name, value, data) => {\r\n const model = { ...this.state.model };\r\n model[name] = value;\r\n\r\n if (name == \"PriorityTypeId\" && value == null) {\r\n model[name] = -1;\r\n }\r\n\r\n this.setState({ model });\r\n };\r\n getInfoDialogData = (row) => {\r\n this.setState({ isInfoDialogOpen: false });\r\n\r\n const payload = {\r\n TransactionEtransferId: row?.original?.TransactionEtransferId,\r\n TransactionId: null,\r\n TransferReferenceNumber: null,\r\n };\r\n\r\n Proxy.POST(\r\n \"/bankapi/v1.0/ClearingSettlement/GetEtransferRemittancePartyData\",\r\n payload,\r\n (responseData) => {\r\n console.log(responseData);\r\n this.setState({ isLoading: false });\r\n this.setState({ isInfoDialogOpen: true });\r\n\r\n this.setState({\r\n infoDialogData: responseData?.Item,\r\n });\r\n },\r\n (errorMessage) => {\r\n this.setState({ isLoading: false });\r\n this.ShowMessage(\r\n \"error\",\r\n \"Error\",\r\n \"An error occurred while sending approve request. \" +\r\n (typeof errorMessage !== \"string\" ? errorMessage : \"\")\r\n );\r\n }\r\n );\r\n };\r\n handleAmountInput = (num) => {\r\n if (typeof num === \"number\") {\r\n return `${num?.toString()?.includes(\".\") ? num : num + \".00\"} ${\r\n this.state.infoDialogData?.ReferredDocumentRemittedCurrency\r\n }`;\r\n }\r\n return null;\r\n };\r\n showInfoDialog = () => {\r\n const { isInfoDialogOpen } = this.state;\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n this.setState({ isInfoDialogOpen: false })}\r\n >\r\n CANCEL\r\n \r\n \r\n \r\n \r\n );\r\n };\r\n render() {\r\n const { Disabled } = this.props;\r\n const {\r\n model,\r\n summaryModel,\r\n isLoading,\r\n isBackOffice,\r\n cancelDialog,\r\n cancelRequestModel,\r\n LimitToken,\r\n remindModel,\r\n remindDialog,\r\n vModel,\r\n } = this.state;\r\n return (\r\n
\r\n {this.state.alert}\r\n {this.showInfoDialog()}\r\n \r\n {this.isClient && (\r\n \r\n )}\r\n\r\n \r\n {/* CANCEL DIALOG */}\r\n \r\n \r\n \r\n
Cancel Transfer
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n this.setState({ cancelDialog: false, cancelRequestModel: {} })\r\n }\r\n >\r\n No\r\n \r\n \r\n
\r\n {/* REMIND DIALOG */}\r\n \r\n \r\n \r\n
Remind Transfer
\r\n
\r\n
\r\n Do you want to remind this transfer ?\r\n \r\n \r\n \r\n this.setState({ remindDialog: false, remindModel: {} })\r\n }\r\n >\r\n No\r\n \r\n \r\n
\r\n {/*EXPORT DIALOG*/}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n this.setState({ ExportSelectedColumns: value })\r\n }\r\n isMulti\r\n name=\"columns\"\r\n getOptionLabel={(d) => d.title}\r\n options={this.state.GridKeyValueList}\r\n className=\"basic-multi-select\"\r\n classNamePrefix=\"select\"\r\n />\r\n \r\n \r\n \r\n \r\n this.setState({ isDownloadDialogOpen: false })}\r\n >\r\n Cancel\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n `${d.UniqueClientId} - ${d.Name}`}\r\n Value={model.ClientId || \"\"}\r\n ValueChanged={this.handleChange}\r\n CanClear\r\n Disabled={!isBackOffice}\r\n Required={model.searchIsNotSpecific == true}\r\n IsInvalid={vModel.ClientId}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n (\r\n
\r\n this.getInfoDialogData(d)}\r\n />\r\n\r\n {\r\n this.handleCancel(d.original);\r\n }}\r\n />\r\n\r\n {\r\n this.handleRemind(d.original);\r\n }}\r\n />\r\n x.Code == \"ETRNSFOUTTRACE\"\r\n )?.HasAuthority\r\n }\r\n Icon={TraceIcon}\r\n OnClick={this.GetHandleTrace(d.original)}\r\n />\r\n
\r\n ),\r\n sortable: false,\r\n filterable: false,\r\n width: 105,\r\n },\r\n {\r\n Header: \"Transaction Date\",\r\n accessor: \"TransactionDate\",\r\n type: GridColumnType.DateTimeUtc,\r\n },\r\n {\r\n Header: \"Settlement Date\",\r\n accessor: \"SettlementDate\",\r\n type: GridColumnType.DateTimeUtc,\r\n },\r\n {\r\n Header: \"Account Number\",\r\n accessor: \"AccountNumber\",\r\n },\r\n {\r\n Header: \"Unique Client Id\",\r\n accessor: \"ClientNumber\",\r\n show: isBackOffice,\r\n },\r\n {\r\n Header: \"Client Name\",\r\n accessor: \"ClientName\",\r\n show: isBackOffice,\r\n },\r\n {\r\n Header: !this.isBankingScreen\r\n ? \"Customer Name\"\r\n : \"Contact Name\",\r\n accessor: \"SenderName\",\r\n },\r\n {\r\n Header: \"Customer Number\",\r\n accessor: \"ClientCustomerNumber\",\r\n show: !this.isBankingScreen,\r\n },\r\n {\r\n Header: \"Transfer Type\",\r\n accessor: \"TransactionType\",\r\n },\r\n {\r\n Header: !this.isBankingScreen\r\n ? \"Customer EMail\"\r\n : \"Contact EMail\",\r\n accessor: \"CustomerEmail\",\r\n },\r\n {\r\n Header: \"Amount\",\r\n accessor: \"TransactionAmount\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Fee Amount\",\r\n accessor: \"FeeAmount\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Settlement Status\",\r\n accessor: \"SettlementStatus\",\r\n },\r\n {\r\n Header: \"Transfer Status\",\r\n accessor: \"BankTransactionStatus\",\r\n },\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\tHeader: \"Transaction Status\",\r\n\t\t\t\t\t\t\taccessor: \"BankTransactionStatusParamValue\",\r\n\t\t\t\t\t\t },\r\n {\r\n Header: \"Interac Status\",\r\n accessor: \"InteracStatus\",\r\n },\r\n {\r\n Header: \"Transaction Description\",\r\n accessor: \"TransactionMemo\",\r\n },\r\n {\r\n Header: \"Settlement Type\",\r\n accessor: \"SettlementType\",\r\n },\r\n {\r\n Header: \"Deferred\",\r\n accessor: \"IsDefered\",\r\n Cell: (row) => (row.value == true ? \"Yes\" : \"No\"),\r\n },\r\n {\r\n Header: \"Expire Date\",\r\n accessor: \"ExpireDate\",\r\n type: GridColumnType.DateTimeUtc,\r\n },\r\n {\r\n Header: \"Interac Ref. Number\",\r\n accessor: \"TransferReferenceNumber\",\r\n },\r\n {\r\n Header: \"Response Reference Number\",\r\n accessor: \"RequestReferenceNumber\",\r\n },\r\n {\r\n Header: \"Insert Date\",\r\n accessor: \"RequestDate\",\r\n type: GridColumnType.DateTimeUtc,\r\n },\r\n {\r\n Header: \"Transaction Source\",\r\n accessor: \"TransactionSource\",\r\n },\r\n {\r\n Header: \"Store Code\",\r\n accessor: \"StoreName\",\r\n },\r\n {\r\n Header: \"Application\",\r\n accessor: \"ApplicationId\",\r\n Cell: (row) => {\r\n var rowValue = \"\";\r\n EtransferApplicationTypes &&\r\n EtransferApplicationTypes.forEach((item) => {\r\n if (item.Value == row.value) rowValue = item.Text;\r\n });\r\n return rowValue;\r\n },\r\n },\r\n {\r\n Header: \"Insert User\",\r\n accessor: \"InsertUser\",\r\n },\r\n {\r\n Header: \"Reference Number\",\r\n accessor: \"ParticipantReferenceNumber\",\r\n },\r\n {\r\n Header: \"Error Description\",\r\n accessor: \"ErrorDesc\",\r\n },\r\n {\r\n Header: \"Trace Status\",\r\n accessor: \"TraceStatus\",\r\n },\r\n {\r\n Header: \"Sender Email\",\r\n accessor: \"SenderEmail\",\r\n },\r\n {\r\n Header: \"Receiver Name\",\r\n accessor: \"ReceiverName\",\r\n },\r\n {\r\n Header: \"Receiver Email\",\r\n accessor: \"ReceiverEmail\",\r\n },\r\n {\r\n Header: \"Client Reference Number\",\r\n accessor: \"ClientRefNo\",\r\n },\r\n ]}\r\n Sorted={this.sortedByDate}\r\n ProgramCode={ProgramCodes.Bank_Programs_e_Transfer}\r\n ServerSide\r\n LoadAtStartup={this.state.loadingCompleted}\r\n ValidateRequest={this.Validate}\r\n PrepareRequest={() => {\r\n return this.state.model;\r\n }}\r\n RequestUrl=\"/bankapi/v1.0/ClearingSettlement/GetETransferOutgoingTransfersPaged\"\r\n RequestMethod=\"POST\"\r\n />\r\n
\r\n
\r\n
\r\n
\r\n
\r\n );\r\n }\r\n}\r\n\r\neTransferOutgoingTransfers.propTypes = {\r\n classes: PropTypes.object,\r\n handleOperationType: PropTypes.func,\r\n SelectedRowChange: PropTypes.func,\r\n showQuestionMessage: func,\r\n setAppLeftTitle: func,\r\n setAppCenterTitle: func,\r\n Disabled: bool,\r\n};\r\n\r\nexport default withArtifex(eTransferOutgoingTransfers, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes, { array, bool, func, number } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport {\r\n GenericAlert,\r\n GenericDateInput,\r\n GenericDialog,\r\n GenericDialogActions,\r\n GenericGrid,\r\n GenericLabel,\r\n GenericNumberInput,\r\n GenericRadioInput,\r\n GenericSelectInput,\r\n GenericTitle,\r\n} from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Select from \"react-select\";\r\nimport { EditIcon } from \"core/Icons\";\r\nimport { Proxy } from \"core\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\n\r\nclass SettlementEtransferFileByClient extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.initTransactionDetailColumns();\r\n this.initExportColumns();\r\n\r\n this.directionDataSource = [\r\n { Key: \"Incoming\", Value: 16307 },\r\n { Key: \"Outgoing\", Value: 16308 },\r\n ];\r\n\r\n this.state = {\r\n model: {\r\n SettlementDate: null,\r\n UniqueClientId: null,\r\n UniqueClientId2: null,\r\n ToDate: DateHelper.GetDate(),\r\n FromDate: DateHelper.GetDate(),\r\n SettlementStatusId: -1,\r\n TransferTypeId: -1,\r\n DirectionId: -1,\r\n TimezoneOffset: 0,\r\n FinancialInstitutionId: -1,\r\n TransactionStatusId: null,\r\n },\r\n filterName: \"Filter By\",\r\n tabIndex: 1,\r\n settlementListBySettlementDate: [],\r\n settlementListBySettTransactionDate: [],\r\n isLoading: false,\r\n GrandTotalCreditBalance: undefined,\r\n GrandTotalCreditNumber: undefined,\r\n GrandTotalDebitBalance: undefined,\r\n GrandTotalDebitNumber: undefined,\r\n GrandTotalDifference: undefined,\r\n TotalSettledBalance: undefined,\r\n TotalCanceledBalance: undefined,\r\n TotalOutstandingBalance: undefined,\r\n TotalUnmatchedBalance: undefined,\r\n NetTotalBalanceChange: undefined,\r\n TotalUnSettledBalance: undefined,\r\n isTransactionDetailDialogOpen: false,\r\n loadAtStartup: false,\r\n gridTransactionDetailRefreshToken: false,\r\n selectedRow: undefined,\r\n headerName: undefined,\r\n clientNameColumnColor: \"#000000\",\r\n settlementStatusColumnColor: \"#000000\",\r\n totalCreditNumberColumnColor: \"#000000\",\r\n totalDebitNumberColumnColor: \"#000000\",\r\n isDownloadDialogOpen: false,\r\n exportReportType: \"PDF\",\r\n exportSelectedColumns: this.exportColumns,\r\n };\r\n\r\n this.transactionDetailGridRef = React.createRef();\r\n }\r\n componentDidMount() {\r\n this.props.setAppLeftTitle(\"Settled E-Transfer Transactions by Client Activities\");\r\n this.props.setAppCenterTitle(\"CLEARING & SETTLEMENT\");\r\n this.setState({ loadAtStartup: true });\r\n }\r\n\r\n handleChange = (name, newValue) => {\r\n this.setState((state) => {\r\n var model = state.model;\r\n model[name] = newValue;\r\n return { model };\r\n });\r\n };\r\n\r\n initExportColumns() {\r\n var exportColumns = [];\r\n\r\n this.transactionDetailColumns.forEach((c) => {\r\n if (\r\n c.accessor != \"Actions\" &&\r\n c.accessor != \"ED\" &&\r\n (c.show == undefined || c.show)\r\n ) {\r\n var exportColumn = {};\r\n exportColumn.value = c.accessor;\r\n exportColumn.title = c.Header;\r\n if (c.type) {\r\n exportColumn.type = c.type;\r\n }\r\n\r\n exportColumns.push(exportColumn);\r\n }\r\n }, this);\r\n\r\n this.exportColumns = exportColumns;\r\n }\r\n\r\n GetData = async () => {\r\n if (this.IsValid()) {\r\n const { ExecuteApiPost } = this.props;\r\n const { model, tabIndex } = this.state;\r\n let requetModel = {\r\n TransactionDateFrom: model.FromDate,\r\n TransactionDateTo: model.ToDate,\r\n uniqueClientId: model.UniqueClientId2,\r\n settlementStatusId: model.SettlementStatusId,\r\n TransferTypeId: model.TransferTypeId,\r\n DirectionId: model.DirectionId,\r\n TimezoneOffset: model.TimezoneOffset,\r\n FinancialInstitutionId: model.FinancialInstitutionId,\r\n };\r\n\r\n const responseData = await ExecuteApiPost(\r\n \"/bankapi/v1.0/ClearingSettlement/GetSettledEtransferTransactionsSummaryByClients\",\r\n requetModel\r\n );\r\n\r\n this.setState({\r\n settlementListBySettTransactionDate:\r\n responseData.EtransferSettledTransactionsSummaryByClients,\r\n GrandTotalCreditBalance: responseData.GrandTotalCreditBalance,\r\n GrandTotalCreditNumber: responseData.GrandTotalCreditNumber,\r\n GrandTotalDebitBalance: responseData.GrandTotalDebitBalance,\r\n GrandTotalDebitNumber: responseData.GrandTotalDebitNumber,\r\n GrandTotalDifference: responseData.GrandTotalDifference,\r\n TotalSettledBalance: responseData.TotalSettledBalance,\r\n TotalCanceledBalance: responseData.TotalCanceledBalance,\r\n TotalOutstandingBalance: responseData.TotalOutstandingBalance,\r\n TotalUnmatchedBalance: responseData.TotalUnmatchedBalance,\r\n NetTotalBalanceChange: responseData.NetTotalBalanceChange,\r\n TotalUnSettledBalance: responseData.TotalUnSettledBalance,\r\n });\r\n }\r\n };\r\n\r\n showMessage = (type, title, message) => {\r\n this.setState({\r\n alert: (\r\n this.setState({ alert: \"\" })}\r\n />\r\n ),\r\n });\r\n };\r\n\r\n IsValid = () => {\r\n var vmodel = { ...this.state.model };\r\n if ((!vmodel || !vmodel.FromDate || !vmodel.ToDate) && this.state.tabIndex === 1) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"Settlement From and To Date cannot be null\"\r\n );\r\n return false;\r\n } else if (\r\n typeof vmodel.FromDate != \"object\" &&\r\n typeof vmodel.ToDate != \"object\" &&\r\n this.state.tabIndex === 1\r\n ) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"Settlement From and To Date cannot be null\"\r\n );\r\n return false;\r\n }\r\n return true;\r\n };\r\n\r\n handleClear = () => {\r\n this.setState({\r\n model: { SettlementDate: DateHelper.GetDate() },\r\n settlementListBySettlementDate: [],\r\n settlementListBySettTransactionDate: [],\r\n UniqueClientId: null,\r\n UniqueClientId2: undefined,\r\n FromDate: DateHelper.GetDate(),\r\n ToDate: DateHelper.GetDate(),\r\n GrandTotalCreditBalance: undefined,\r\n GrandTotalCreditNumber: undefined,\r\n GrandTotalDebitBalance: undefined,\r\n GrandTotalDebitNumber: undefined,\r\n GrandTotalDifference: undefined,\r\n TotalSettledBalance: undefined,\r\n TotalCanceledBalance: undefined,\r\n TotalOutstandingBalance: undefined,\r\n TotalUnmatchedBalance: undefined,\r\n NetTotalBalanceChange: undefined,\r\n });\r\n };\r\n handleChangeTab = (active) => {\r\n let filterName = \"\";\r\n if (active === 0) {\r\n filterName = \"Filter By\";\r\n }\r\n if (active === 1) {\r\n filterName = \"Filter By\";\r\n }\r\n this.setState({ tabIndex: active, filterName });\r\n };\r\n\r\n closeTransactionDetailDialog = () => {\r\n this.setState({\r\n transactionList: [],\r\n isTransactionDetailDialogOpen: false,\r\n });\r\n };\r\n\r\n GetTransactionList = async (selectedRow, headerName) => {\r\n const { ExecuteApiPost } = this.props;\r\n const { model } = this.state;\r\n let requestData = null;\r\n if (headerName === \"ClientName\" || headerName === \"SettlementStatus\") {\r\n requestData = {\r\n TransactionDateFrom: selectedRow.TransactionDateFrom,\r\n TransactionDateTo: selectedRow.TransactionDateTo,\r\n UniqueClientId: selectedRow.UniqueClientId,\r\n SettlementStatusId: selectedRow.SettlementStatusId,\r\n PageSize: 1_000_000,\r\n TransferTypeId: model.TransferTypeId,\r\n DirectionId: model.DirectionId,\r\n TimezoneOffset: model.TimezoneOffset,\r\n FinancialInstitutionId: model.FinancialInstitutionId,\r\n SettlementDate: model.SettlementDate,\r\n TransactionStatusId: model.TransactionStatusId,\r\n };\r\n }\r\n if (headerName === \"TotalCreditNumber\") {\r\n requestData = {\r\n TransactionDateFrom: selectedRow.TransactionDateFrom,\r\n TransactionDateTo: selectedRow.TransactionDateTo,\r\n UniqueClientId: selectedRow.UniqueClientId,\r\n SettlementStatusId: selectedRow.SettlementStatusId,\r\n TransactionTypeId: selectedRow.CreditTransactionTypeId,\r\n PageSize: 1_000_000,\r\n TransferTypeId: model.TransferTypeId,\r\n DirectionId: model.DirectionId,\r\n TimezoneOffset: model.TimezoneOffset,\r\n FinancialInstitutionId: model.FinancialInstitutionId,\r\n SettlementDate: model.SettlementDate,\r\n TransactionStatusId: model.TransactionStatusId,\r\n };\r\n }\r\n if (headerName === \"TotalDebitNumber\") {\r\n requestData = {\r\n TransactionDateFrom: selectedRow.TransactionDateFrom,\r\n TransactionDateTo: selectedRow.TransactionDateTo,\r\n UniqueClientId: selectedRow.UniqueClientId,\r\n SettlementStatusId: selectedRow.SettlementStatusId,\r\n TransactionTypeId: selectedRow.DebitTransactionTypeId,\r\n PageSize: 1_000_000,\r\n TransferTypeId: model.TransferTypeId,\r\n DirectionId: model.DirectionId,\r\n TimezoneOffset: model.TimezoneOffset,\r\n FinancialInstitutionId: model.FinancialInstitutionId,\r\n SettlementDate: model.SettlementDate,\r\n TransactionStatusId: model.TransactionStatusId,\r\n };\r\n }\r\n\r\n let responseData = await ExecuteApiPost(\r\n \"/bankapi/v1.0/ClearingSettlement/GetSettledEtransferTransactionsByClientActivitiesPaged\",\r\n requestData\r\n );\r\n if (responseData != null) {\r\n this.setState({\r\n headerModel: {},\r\n transactionList: responseData.Data.length < 1 ? [] : responseData.Data,\r\n isLoading: false,\r\n });\r\n }\r\n };\r\n\r\n getTransactionDetailDialog = () => {\r\n const { isTransactionDetailDialogOpen, isLoading } = this.state;\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n };\r\n\r\n initTransactionDetailColumns() {\r\n this.transactionDetailColumns = [\r\n {\r\n Header: \"Actions\",\r\n accessor: \"Actions\",\r\n Cell: (row) => (\r\n \r\n ),\r\n sortable: false,\r\n filterable: false,\r\n width: 70,\r\n show: true,\r\n },\r\n {\r\n Header: \"Client Id\",\r\n accessor: \"UniqueClientId\",\r\n },\r\n {\r\n Header: \"Client Name\",\r\n accessor: \"ClientName\",\r\n width: 100,\r\n },\r\n {\r\n Header: \"Balance Date\",\r\n accessor: \"BalanceDate\",\r\n type: GridColumnType.DateTimeUtc,\r\n width: 100,\r\n },\r\n {\r\n Header: \"Settlement Date\",\r\n accessor: \"SettlementDate\",\r\n type: GridColumnType.DateTimeUtc,\r\n },\r\n {\r\n Header: \"Received/Sent\",\r\n accessor: \"ReceivedSent\",\r\n },\r\n {\r\n Header: \"Debit/Credit\",\r\n accessor: \"TransactionType\",\r\n },\r\n {\r\n Header: \"Amount\",\r\n accessor: \"Amount\",\r\n },\r\n {\r\n Header: \"Settlement Status\",\r\n accessor: \"SettlementStatus\",\r\n },\r\n {\r\n Header: \"Interac Ref Number\",\r\n accessor: \"InteracRefNumber\",\r\n },\r\n {\r\n Header: \"Reference Number\",\r\n accessor: \"TransactionReferenceNumber\",\r\n },\r\n {\r\n Header: \"Transaction Insert Date\",\r\n accessor: \"TransactionInsertDate\",\r\n type: GridColumnType.DateTimeUtc,\r\n },\r\n {\r\n Header: \"Transaction Status\",\r\n accessor: \"TransactionStatus\"\r\n },\r\n {\r\n Header: \"Priority Type\",\r\n accessor: \"PriorityType\"\r\n },\r\n {\r\n Header: \"Description\",\r\n accessor: \"Description\",\r\n width: 600,\r\n },\r\n ];\r\n }\r\n\r\n getColumns = () => {\r\n const {\r\n tabIndex,\r\n clientNameColumnColor,\r\n settlementStatusColumnColor,\r\n totalCreditNumberColumnColor,\r\n totalDebitNumberColumnColor,\r\n } = this.state;\r\n\r\n \r\n return [\r\n {\r\n Header: \"Client ID\",\r\n accessor: \"UniqueClientCode\",\r\n },\r\n {\r\n Header: \"Client Name\",\r\n accessor: \"ClientName\",\r\n Cell: (row) => {\r\n return (\r\n {\r\n this.openTransactionDetailDialog();\r\n this.GetTransactionList(row.original, \"ClientName\");\r\n }}\r\n onMouseEnter={() => {\r\n this.setState({\r\n clientNameColumnColor: \"#FF0000\",\r\n });\r\n }}\r\n onMouseLeave={() => {\r\n this.setState({\r\n clientNameColumnColor: \"#000000\",\r\n });\r\n }}\r\n >\r\n {row.original.ClientName}\r\n \r\n );\r\n },\r\n },\r\n {\r\n Header: \"Settlement Status\",\r\n accessor: \"SettlementStatus\",\r\n Cell: (row) => {\r\n return (\r\n {\r\n this.openTransactionDetailDialog();\r\n this.GetTransactionList(row.original, \"SettlementStatus\");\r\n }}\r\n onMouseEnter={() => {\r\n this.setState({\r\n settlementStatusColumnColor: \"#FF0000\",\r\n });\r\n }}\r\n onMouseLeave={() => {\r\n this.setState({\r\n settlementStatusColumnColor: \"#000000\",\r\n });\r\n }}\r\n >\r\n {row.original.SettlementStatus}\r\n \r\n );\r\n },\r\n },\r\n {\r\n Header: \"Date From\",\r\n accessor: \"TransactionDateFrom\",\r\n type: GridColumnType.DateUtc,\r\n },\r\n {\r\n Header: \"Date To\",\r\n accessor: \"TransactionDateTo\",\r\n type: GridColumnType.DateUtc,\r\n },\r\n {\r\n Header: \"Total Number Of Credits\",\r\n accessor: \"TotalCreditNumber\",\r\n Cell: (row) => {\r\n return (\r\n {\r\n this.openTransactionDetailDialog();\r\n this.GetTransactionList(row.original, \"TotalCreditNumber\");\r\n }}\r\n onMouseEnter={() => {\r\n this.setState({\r\n totalCreditNumberColumnColor: \"#FF0000\",\r\n });\r\n }}\r\n onMouseLeave={() => {\r\n this.setState({\r\n totalCreditNumberColumnColor: \"#000000\",\r\n });\r\n }}\r\n >\r\n {row.original.TotalCreditNumber}\r\n \r\n );\r\n },\r\n },\r\n {\r\n Header: \"Credit Balance\",\r\n accessor: \"CreditBalance\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Total Number Of Debits\",\r\n accessor: \"TotalDebitNumber\",\r\n Cell: (row) => {\r\n return (\r\n {\r\n this.openTransactionDetailDialog();\r\n this.GetTransactionList(row.original, \"TotalDebitNumber\");\r\n }}\r\n onMouseEnter={() => {\r\n this.setState({\r\n totalDebitNumberColumnColor: \"#FF0000\",\r\n });\r\n }}\r\n onMouseLeave={() => {\r\n this.setState({\r\n totalDebitNumberColumnColor: \"#000000\",\r\n });\r\n }}\r\n >\r\n {row.original.TotalDebitNumber}\r\n \r\n );\r\n },\r\n },\r\n {\r\n Header: \"Debit Balance\",\r\n accessor: \"DebitBalance\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Balance Difference\",\r\n accessor: \"Difference\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n ];\r\n \r\n };\r\n\r\n setValueToModel = (name, value) => {\r\n const model = { ...this.state.model };\r\n model[name] = value;\r\n this.setState({ model });\r\n };\r\n\r\n onValidate = () => {\r\n const { model } = this.state;\r\n\r\n if (!model.FromDate || !model.ToDate) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"Settlement Date is invalid\"\r\n );\r\n return false;\r\n }\r\n\r\n return true;\r\n };\r\n\r\n openTransactionDetailDialog = (row, headerName) => {\r\n this.setState({\r\n isLoading: true,\r\n isTransactionDetailDialogOpen: true,\r\n headerName,\r\n selectedRow: row,\r\n gridTransactionDetailRefreshToken:\r\n !this.state.gridTransactionDetailRefreshToken,\r\n });\r\n };\r\n\r\n getDataSource = () => {\r\n const {\r\n settlementListBySettTransactionDate,\r\n tabIndex,\r\n } = this.state;\r\n return settlementListBySettTransactionDate;\r\n };\r\n\r\n isExportRequestValid = () => {\r\n const { model } = this.state;\r\n\r\n if (model.FromDate == null || model.FromDate == undefined) {\r\n this.showMessage(\r\n \"warning\",\r\n \"Please select required field !\",\r\n \"Select a Settlement File Date !\"\r\n );\r\n return false;\r\n }\r\n\r\n return true;\r\n };\r\n\r\n showLoading() {\r\n this.setState({ isLoading: true });\r\n }\r\n\r\n hideLoading() {\r\n this.setState({ isLoading: false });\r\n }\r\n\r\n onExport = () => {\r\n if (this.isExportRequestValid()) {\r\n const { exportReportType } = this.state;\r\n const { SettlementDate, FromDate, UniqueClientId2, ...model2 } =\r\n this.state.model;\r\n\r\n const exportModel = {\r\n ...model2,\r\n TransactionDateTo: this.state.model.ToDate,\r\n UniqueClientId: this.state.model.UniqueClientId2,\r\n TransactionDateFrom: this.state.model.FromDate,\r\n SettlementDate: this.state.model.SettlementDate,\r\n jsonFile: {},\r\n };\r\n\r\n var exportColumns = this.getSelectedExportColumns() ?? [];\r\n\r\n exportModel.jsonFile = {\r\n colmns: exportColumns,\r\n format: exportReportType,\r\n title: \"Settled E-Transfer Transactions by Client Activities\",\r\n };\r\n\r\n this.showLoading();\r\n Proxy.DownloadGeneratedFile(\r\n \"/bankapi/v1.0/ClearingSettlement/GetSettledEtransferTransactionsByClientActivitiesExportDownload\",\r\n exportModel,\r\n (responseData) => {\r\n this.hideLoading();\r\n\r\n if (!responseData.IsSucceeded) {\r\n this.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n return;\r\n }\r\n },\r\n (errorMessage) => {\r\n this.hideLoading();\r\n this.showMessage(\"error\", \"Error\", errorMessage);\r\n },\r\n this.showMessage\r\n );\r\n }\r\n };\r\n\r\n openExportDialog = () => {\r\n this.setState({\r\n isDownloadDialogOpen: true,\r\n });\r\n };\r\n\r\n closeExportDialog = () => {\r\n this.setState({\r\n isDownloadDialogOpen: false,\r\n });\r\n };\r\n\r\n setExportSelection = (value) => {\r\n this.setState({ exportSelectedColumns: value });\r\n };\r\n\r\n getSelectedExportColumns = () => {\r\n const { exportSelectedColumns } = this.state;\r\n\r\n var columns = {};\r\n\r\n exportSelectedColumns.forEach((c) => {\r\n columns[c.value] = {\r\n value: c.value,\r\n title: c.title,\r\n columntype: c.columntype,\r\n type: c.type,\r\n };\r\n });\r\n\r\n var result = [];\r\n result.push(columns);\r\n\r\n return result;\r\n };\r\n\r\n setValueToState = (name, value) => {\r\n this.setState({ [name]: value });\r\n };\r\n\r\n render() {\r\n const {\r\n isLoading,\r\n tabIndex,\r\n filterName,\r\n isDownloadDialogOpen,\r\n exportReportType,\r\n exportSelectedColumns,\r\n } = this.state;\r\n\t const { model } = this.state;\r\n\t const {\r\n GrandTotalCreditBalance,\r\n GrandTotalCreditNumber,\r\n GrandTotalDebitBalance,\r\n GrandTotalDebitNumber,\r\n GrandTotalDifference,\r\n } = this.state;\r\n\r\n return (\r\n
\r\n {this.state.alert}\r\n \r\n \r\n \r\n \r\n \r\n\t\t\t\t\r\n \r\n \r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\tValue={model.UniqueClientId2 || \"\"}\r\n\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n \r\n \r\n \r\n \r\n \r\n\t\t \t \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\t\t\t\t\r\n\t\t\t\t\t\r\n \r\n \r\n \r\n \r\n \r\n\t\t\t\t\r\n\t\t\t\t\r\n \r\n {this.getTransactionDetailDialog()}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n d.title}\r\n options={this.exportColumns}\r\n className=\"basic-multi-select\"\r\n classNamePrefix=\"select\"\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\nSettlementEtransferFileByClient.propTypes = {\r\n classes: PropTypes.object,\r\n handleOperationType: func,\r\n SelectedRowChange: func,\r\n showQuestionMessage: func,\r\n setAppLeftTitle: func,\r\n setAppCenterTitle: func,\r\n Disabled: bool,\r\n menuId: number,\r\n ApprovalData: array,\r\n After: func,\r\n};\r\n\r\nexport default withArtifex(SettlementEtransferFileByClient, {});\r\n","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { EditIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport {\r\n GenericAlert,\r\n GenericDateInput,\r\n GenericDialog,\r\n GenericDialogActions,\r\n GenericExpansionPanel,\r\n GenericGrid,\r\n GenericLabel,\r\n GenericSelectInput,\r\n GenericTextInput,\r\n GenericTitle,\r\n GenericRadioInput,\r\n} from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant.js\";\r\nimport { Proxy } from \"core\";\r\nimport Select from \"react-select\";\r\n\r\nclass eTransferSettlementErrors extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n\r\n this.initialModel = {\r\n UniqueClientId: undefined,\r\n TransactionDate: undefined,\r\n InteracRefNo: undefined,\r\n TransactionId: undefined,\r\n SettlementFileDate: undefined,\r\n SourceIdentifierId: undefined,\r\n TransactionTypeId: undefined,\r\n DirectionId: undefined,\r\n CustomerInteracId: undefined,\r\n };\r\n\r\n this.initColumns();\r\n this.initExportColumns();\r\n\r\n this.state = {\r\n model: this.initialModel,\r\n isLoading: false,\r\n isMatchingDialogOpen: false,\r\n selectedMatchingModelRow: {\r\n InteracRefNo: undefined,\r\n TransactionReferenceNumber: undefined,\r\n },\r\n matchingModel: {\r\n InteracRefNo: undefined,\r\n TransactionReferenceNumber: undefined,\r\n },\r\n gridRefreshToken: false,\r\n loadAtStartup: false,\r\n exportReportType: \"PDF\",\r\n isDownloadDialogOpen: false,\r\n exportSelectedColumns: this.exportColumns,\r\n };\r\n\r\n this.settlementErrorsGridRef = React.createRef();\r\n }\r\n\r\n initColumns() {\r\n this.columns = [\r\n {\r\n Header: \"Actions\",\r\n accessor: \"Actions\",\r\n Cell: (row) => (\r\n
\r\n {\r\n this.setState({\r\n isMatchingDialogOpen: true,\r\n selectedMatchingModelRow: row,\r\n matchingModel: {\r\n InteracRefNo: row.original.InteracRefNo,\r\n TransactionReferenceNumber:\r\n row.original.TransactionReferenceNumber,\r\n },\r\n });\r\n }}\r\n />\r\n
\r\n ),\r\n sortable: false,\r\n filterable: false,\r\n width: 70,\r\n show: true,\r\n },\r\n {\r\n Header: \"Source Of Record\",\r\n accessor: \"SourceIdentifier\",\r\n },\r\n {\r\n Header: \"Transaction Date\",\r\n accessor: \"TransactionDate\",\r\n type: GridColumnType.DateTimeUtc,\r\n },\r\n {\r\n Header: \"Account Number\",\r\n accessor: \"AccountNumber\",\r\n },\r\n {\r\n Header: \"Customer Interac ID\",\r\n accessor: \"CustomerInteracId\",\r\n },\r\n {\r\n Header: \"Client Name\",\r\n accessor: \"ClientName\",\r\n },\r\n {\r\n Header: \"Customer Store\",\r\n accessor: \"CustomerStore\",\r\n },\r\n {\r\n Header: \"Store Code\",\r\n accessor: \"CustomerStoreCode\",\r\n },\r\n {\r\n Header: \"Interac Reference Number\",\r\n accessor: \"InteracRefNo\",\r\n },\r\n {\r\n Header: \"Transaction Reference Number\",\r\n accessor: \"TransactionReferenceNumber\",\r\n },\r\n {\r\n Header: \"Transaction Type\",\r\n accessor: \"TransactionType\",\r\n },\r\n {\r\n Header: \"Transaction Direction\",\r\n accessor: \"Direction\",\r\n },\r\n {\r\n Header: \"Channel Indicator\",\r\n accessor: \"ChannelIndicator\",\r\n },\r\n {\r\n Header: \"Bridge Transaction Status\",\r\n accessor: \"TransactionStatus\",\r\n },\r\n {\r\n Header: \"Settlement File Flag\",\r\n accessor: \"SettlementFileFlag\",\r\n },\r\n {\r\n Header: \"Amount\",\r\n accessor: \"Amount\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n ];\r\n }\r\n\r\n initExportColumns() {\r\n var exportColumns = [];\r\n\r\n this.columns.forEach((c) => {\r\n if (\r\n c.accessor != \"Actions\" &&\r\n c.accessor != \"ED\" &&\r\n (c.show == undefined || c.show)\r\n ) {\r\n var exportColumn = {};\r\n exportColumn.value = c.accessor;\r\n exportColumn.title = c.Header;\r\n if (c.type) {\r\n exportColumn.type = c.type;\r\n }\r\n\r\n exportColumns.push(exportColumn);\r\n }\r\n }, this);\r\n\r\n this.exportColumns = exportColumns;\r\n }\r\n\r\n componentDidMount() {\r\n this.props.setAppLeftTitle(\"E-Transfer Unmatched Transactions\");\r\n this.props.setAppCenterTitle(\"CLEARING & SETTLEMENT\");\r\n this.setState({ loadAtStartup: true });\r\n }\r\n\r\n clearSearchCriteria = () => {\r\n this.setState({ model: this.initialModel });\r\n };\r\n\r\n setValueToModel = (name, value) => {\r\n const model = { ...this.state.model };\r\n model[name] = value;\r\n this.setState({ model });\r\n };\r\n\r\n setValueToState = (name, value) => {\r\n this.setState({ [name]: value });\r\n };\r\n\r\n refreshGridToken = async () => {\r\n const { gridRefreshToken } = this.state;\r\n\r\n this.setState({ gridRefreshToken: !gridRefreshToken });\r\n };\r\n\r\n saveMatchingModel = async () => {\r\n const { matchingModel } = this.state;\r\n\r\n if (this.isMatchingModelValid()) {\r\n this.showLoading();\r\n\r\n Proxy.POST(\r\n \"/bankapi/v1.0/ClearingSettlement/MatchETransferTransactionManually\",\r\n matchingModel,\r\n (responseData) => {\r\n if (!responseData.IsSucceeded) {\r\n console.log(\"Error!\", responseData);\r\n this.hideLoading();\r\n this.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n return;\r\n }\r\n\r\n this.showMessage(\r\n \"success\",\r\n \"Success\",\r\n \"Operation Successfully Completed!\"\r\n );\r\n this.hideLoading();\r\n this.refreshGridToken();\r\n this.closeMatchingDialog();\r\n },\r\n (error) => {\r\n console.log(\"Error!\", error);\r\n this.hideLoading();\r\n this.showMessage(\"error\", \"Error\", error);\r\n }\r\n );\r\n }\r\n };\r\n\r\n showMessage = (type, title, message) => {\r\n this.setState({\r\n alert: (\r\n this.setState({ alert: \"\" })}\r\n />\r\n ),\r\n });\r\n };\r\n\r\n showLoading() {\r\n this.setState({ isLoading: true });\r\n }\r\n\r\n hideLoading() {\r\n this.setState({ isLoading: false });\r\n }\r\n\r\n openMatchingDialog() {\r\n this.setState({ isMatchingDialogOpen: true });\r\n }\r\n\r\n closeMatchingDialog = () => {\r\n this.setState({ isMatchingDialogOpen: false });\r\n };\r\n\r\n onValidate = () => {\r\n const { model } = this.state;\r\n\r\n if (!(model.SettlementFileDate || model.TransactionDate)) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"Settlement File Date or Transaction Date is invalid\"\r\n );\r\n return false;\r\n }\r\n\r\n return true;\r\n };\r\n\r\n isMatchingModelValid = () => {\r\n const { matchingModel } = this.state;\r\n if (\r\n matchingModel.TransactionReferenceNumber &&\r\n !matchingModel.InteracRefNo\r\n ) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill Interac Reference Number field!\",\r\n \"Interac Reference is empty\"\r\n );\r\n return false;\r\n }\r\n\r\n if (\r\n !matchingModel.TransactionReferenceNumber &&\r\n matchingModel.InteracRefNo\r\n ) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill Transaction Reference Number field!\",\r\n \"Request Reference is empty\"\r\n );\r\n return false;\r\n }\r\n return true;\r\n };\r\n\r\n isRowActionDisabled = (row) => {\r\n return (\r\n row.original.TransactionReferenceNumber !== undefined &&\r\n row.original.InteracRefNo !== \"\" &&\r\n row.original.InteracRefNo !== undefined &&\r\n row.original.TransactionReferenceNumber !== \"\"\r\n );\r\n };\r\n\r\n openExportDialog = () => {\r\n this.setState({\r\n isDownloadDialogOpen: true,\r\n });\r\n };\r\n\r\n closeExportDialog = () => {\r\n this.setState({\r\n isDownloadDialogOpen: false,\r\n });\r\n };\r\n\r\n isExportRequestValid = () => {\r\n const { model } = this.state;\r\n\r\n if (\r\n model.SettlementFileDate == null ||\r\n model.SettlementFileDate == undefined\r\n ) {\r\n this.showMessage(\r\n \"warning\",\r\n \"Please select required field !\",\r\n \"Select a Settlement File Date !\"\r\n );\r\n return false;\r\n }\r\n\r\n return true;\r\n };\r\n setExportSelection = (value) => {\r\n this.setState({ exportSelectedColumns: value });\r\n };\r\n\r\n getSelectedExportColumns = () => {\r\n const { exportSelectedColumns } = this.state;\r\n\r\n var columns = {};\r\n\r\n exportSelectedColumns.forEach((c) => {\r\n columns[c.value] = {\r\n value: c.value,\r\n title: c.title,\r\n columntype: c.columntype,\r\n type: c.type,\r\n };\r\n });\r\n\r\n var result = [];\r\n result.push(columns);\r\n\r\n return result;\r\n };\r\n onExport = () => {\r\n if (this.isExportRequestValid()) {\r\n const { model, exportReportType } = this.state;\r\n\r\n const exportModel = { ...model, jsonFile: {} };\r\n\r\n var exportColumns = this.getSelectedExportColumns() ?? [];\r\n\r\n exportModel.jsonFile = {\r\n colmns: exportColumns,\r\n format: exportReportType,\r\n title: \"Etransfer eTransferSettlementErrors\",\r\n };\r\n\r\n this.showLoading();\r\n\r\n Proxy.DownloadGeneratedFile(\r\n \"/bankapi/v1.0/BankInteracETransfer/GetETransferSettlementMatchingErrorsExcelDownload\",\r\n exportModel,\r\n (responseData) => {\r\n this.hideLoading();\r\n\r\n if (!responseData.IsSucceeded) {\r\n this.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n return;\r\n }\r\n },\r\n (errorMessage) => {\r\n this.hideLoading();\r\n this.showMessage(\"error\", \"Error\", errorMessage);\r\n },\r\n this.showMessage\r\n );\r\n }\r\n };\r\n\r\n render() {\r\n const { Disabled, menuId, ApprovalData, After } = this.props;\r\n const {\r\n alert,\r\n isLoading,\r\n model,\r\n isMatchingDialogOpen,\r\n matchingModel,\r\n selectedMatchingModelRow,\r\n gridRefreshToken,\r\n loadAtStartup,\r\n exportReportType,\r\n isDownloadDialogOpen,\r\n exportSelectedColumns,\r\n } = this.state;\r\n\r\n return (\r\n
\r\n \r\n {alert}\r\n model,\r\n FillDataFromModel: (model) => this.setState({ model }),\r\n ValidationFunction: this.onValidate,\r\n },\r\n { Code: \"Export\", OnClick: this.openExportDialog },\r\n ]}\r\n menuId={menuId}\r\n ApprovalData={ApprovalData}\r\n After={After}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {\r\n this.setValueToModel(\"TransactionDate\", undefined);\r\n this.setValueToModel(name, value);\r\n }}\r\n Value={\r\n model.SettlementFileDate\r\n ? Formatter.FormatDateUtc(model.SettlementFileDate)\r\n : \"\"\r\n }\r\n Disabled={model.TransactionDate}\r\n Utc\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {\r\n this.setValueToModel(\"SettlementFileDate\", undefined);\r\n this.setValueToModel(name, value);\r\n }}\r\n MaxDate={DateHelper.GetDate()}\r\n Disabled={model.SettlementFileDate}\r\n Utc\r\n />\r\n \r\n \r\n `${d.UniqueClientId} - ${d.Name}`}\r\n Value={model.UniqueClientId}\r\n ValueChanged={this.setValueToModel}\r\n CanClear\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {\r\n return model;\r\n }}\r\n ValidateRequest={this.onValidate}\r\n ShowPagination={true}\r\n LoadAtStartup={loadAtStartup}\r\n PageSize={20}\r\n Columns={this.columns}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {\r\n matchingModel[name] = value;\r\n this.setState({ matchingModel });\r\n }}\r\n />\r\n \r\n \r\n {\r\n matchingModel[name] = value;\r\n this.setState({ matchingModel });\r\n }}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n d.title}\r\n options={this.exportColumns}\r\n className=\"basic-multi-select\"\r\n classNamePrefix=\"select\"\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\neTransferSettlementErrors.propTypes = {\r\n classes: PropTypes.object,\r\n};\r\n\r\nexport default eTransferSettlementErrors;\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes, { array, bool, func, number } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport {\r\n GenericDateInput,\r\n GenericGrid,\r\n GenericNumberInput,\r\n GenericTextInput,\r\n GenericTitle,\r\n} from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\nimport DownloadButton from \"views/Components/DownloadButton\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport { Proxy } from \"core\";\r\n\r\nclass eTransferSettlementFile extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n model: {\r\n SettlementDate: DateHelper.GetDate(),\r\n },\r\n summaryModel: {},\r\n settlementSummaryDetailList: [],\r\n isLoading: false,\r\n DownloadButtonControl: false,\r\n };\r\n\r\n this.orginationColumns = [\r\n {\r\n FileId: {\r\n value: \"FileId\",\r\n title: \"File Id\",\r\n },\r\n PmtRefNo: {\r\n value: \"PmtRefNo\",\r\n title: \"PmtRefNo\",\r\n },\r\n Currency: {\r\n value: \"Currency\",\r\n title: \"Currency\",\r\n },\r\n CpTransactionDate: {\r\n value: \"CpTransactionDate\",\r\n title: \"CpTransaction Date\",\r\n type: \"datetime\",\r\n },\r\n PmtAmount: {\r\n value: \"PmtAmount\",\r\n title: \"Pmt Amount\",\r\n columntype: \"money\",\r\n type: \"money\",\r\n },\r\n PmtStatus: {\r\n value: \"PmtStatus\",\r\n title: \"Pmt Status\",\r\n },\r\n OrginatingRequestFiUserId: {\r\n value: \"OrginatingRequestFiUserId\",\r\n title: \"Orginating Request Fi User Id\",\r\n },\r\n UniqueClientId: {\r\n value: \"UniqueClientId\",\r\n title: \"Unique Client Id\",\r\n },\r\n ClientName: {\r\n value: \"ClientName\",\r\n title: \"Client Name\",\r\n },\r\n OrginatingRequestAccountNumber: {\r\n value: \"OrginatingRequestAccountNumber\",\r\n title: \"Orginating Request Account Number\",\r\n },\r\n OrginatingRequestFiRefNo: {\r\n value: \"OrginatingRequestFiRefNo\",\r\n title: \"Orginating Request Fi Ref No\",\r\n },\r\n OrginatingRequestTranDate: {\r\n value: \"OrginatingRequestTranDate\",\r\n title: \"Orginating Request Tran Date\",\r\n type: \"datetime\",\r\n },\r\n OrginatingRequestLocalTranDate: {\r\n value: \"OrginatingRequestLocalTranDate\",\r\n title: \"Orginating Request Local Tran Date\",\r\n type: \"datetime\",\r\n },\r\n OrginatingRequestInitiatedBy: {\r\n value: \"OrginatingRequestInitiatedBy\",\r\n title: \"Orginating Request Initiated By\",\r\n },\r\n OrginatingRequestChannelIndicator: {\r\n value: \"OrginatingRequestChannelIndicator\",\r\n title: \"Orginating Request Channel Indicator\",\r\n },\r\n DestinationRequestFiId: {\r\n value: \"DestinationRequestFiId\",\r\n title: \"Destination Request Fi Id\",\r\n },\r\n DestinationRequestFiRefNo: {\r\n value: \"DestinationRequestFiRefNo\",\r\n title: \"Destination Request Fi Ref No\",\r\n },\r\n DestinationRequestTranDate: {\r\n value: \"DestinationRequestTranDate\",\r\n title: \"Destination Request Tran Date\",\r\n type: \"datetime\",\r\n },\r\n DestinationRequestLocalTranDate: {\r\n value: \"DestinationRequestLocalTranDate\",\r\n title: \"Destination Request Local Tran Date\",\r\n type: \"datetime\",\r\n },\r\n DestinationRequestInitiatedBy: {\r\n value: \"DestinationRequestInitiatedBy\",\r\n title: \"Destination Request Initiated By\",\r\n },\r\n DestinationRequestChannelIndicator: {\r\n value: \"DestinationRequestChannelIndicator\",\r\n title: \"Destination Request Channel Indicator\",\r\n },\r\n DestinationRequestAccountHolderName: {\r\n value: \"DestinationRequestAccountHolderName\",\r\n title: \"Destination Request Account Holder Name\",\r\n },\r\n DestinationRequestAccountType: {\r\n value: \"DestinationRequestAccountType\",\r\n title: \"Destination Request Account Type\",\r\n },\r\n DestinationRequestAccountNumber: {\r\n value: \"DestinationRequestAccountNumber\",\r\n title: \"Destination Request Account Number\",\r\n },\r\n DestinationRequestClientID: {\r\n value: \"DestinationRequestClientID\",\r\n title: \"Destination Request Client ID\",\r\n },\r\n DestinationRequestClientName: {\r\n value: \"DestinationRequestClientName\",\r\n title: \"Destination Request Client Name\",\r\n },\r\n Source: {\r\n value: \"Source\",\r\n title: \"Source\",\r\n },\r\n Destination: {\r\n value: \"Destination\",\r\n title: \"Destination\",\r\n },\r\n Direction: {\r\n value: \"Direction\",\r\n title: \"Direction\",\r\n },\r\n TransferType: {\r\n value: \"TransferType\",\r\n title: \"Transfer Type\",\r\n },\r\n },\r\n ];\r\n this.destinationColumns = [\r\n {\r\n FileId: {\r\n value: \"FileId\",\r\n title: \"File Id\",\r\n },\r\n PmtRefNo: {\r\n value: \"PmtRefNo\",\r\n title: \"PmtRefNo\",\r\n },\r\n Currency: {\r\n value: \"Currency\",\r\n title: \"Currency\",\r\n },\r\n CpTransactionDate: {\r\n value: \"CpTransactionDate\",\r\n title: \"CpTransaction Date\",\r\n type: \"datetimeutc\",\r\n },\r\n PmtAmount: {\r\n value: \"PmtAmount\",\r\n title: \"Pmt Amount\",\r\n columntype: \"money\",\r\n type: \"money\",\r\n },\r\n DestinationCompleteFiUserId: {\r\n value: \"DestinationCompleteFiUserId\",\r\n title: \"DestinationCompleteFiUserId\",\r\n },\r\n UniqueClientId: {\r\n value: \"UniqueClientId\",\r\n title: \"Unique Client Id\",\r\n },\r\n ClientName: {\r\n value: \"ClientName\",\r\n title: \"Client Name\",\r\n },\r\n DestinationCompleteFiRefNo: {\r\n value: \"DestinationCompleteFiRefNo\",\r\n title: \"DestinationCompleteFiRefNo\",\r\n },\r\n DestinationCompleteTranDate: {\r\n value: \"DestinationCompleteTranDate\",\r\n title: \"DestinationCompleteTranDate\",\r\n type: \"datetimeutc\",\r\n },\r\n DestinationCompleteLocalTranDate: {\r\n value: \"DestinationCompleteLocalTranDate\",\r\n title: \"DestinationCompleteLocalTranDate\",\r\n type: \"datetimeutc\",\r\n },\r\n DestinationCompleteInitiatedBy: {\r\n value: \"DestinationCompleteInitiatedBy\",\r\n title: \"DestinationCompleteInitiatedBy\",\r\n },\r\n DestinationCompleteChannelIndicator: {\r\n value: \"DestinationCompleteChannelIndicator\",\r\n title: \"DestinationCompleteChannelIndicator\",\r\n },\r\n OrginationgCompleteFiId: {\r\n value: \"OrginationgCompleteFiId\",\r\n title: \"OrginationgCompleteFiId\",\r\n },\r\n OrginationgCompleteFiRefNo: {\r\n value: \"OrginationgCompleteFiRefNo\",\r\n title: \"OrginationgCompleteFiRefNo\",\r\n },\r\n OrginationgCompleteTranDate: {\r\n value: \"OrginationgCompleteTranDate\",\r\n title: \"OrginationgCompleteTranDate\",\r\n type: \"datetimeutc\",\r\n },\r\n OrginationgCompleteLocalTranDate: {\r\n value: \"OrginationgCompleteLocalTranDate\",\r\n title: \"OrginationgCompleteLocalTranDate\",\r\n type: \"datetimeutc\",\r\n },\r\n OrginationgCompleteAccountHolderName: {\r\n value: \"OrginationgCompleteAccountHolderName\",\r\n title: \"OrginationgCompleteAccountHolderName\",\r\n },\r\n OrginationgCompleteAccountNumber: {\r\n value: \"OrginationgCompleteAccountNumber\",\r\n title: \"OrginationgCompleteAccountNumber\",\r\n },\r\n },\r\n ];\r\n this.outStandingColumns = [\r\n {\r\n FileId: {\r\n value: \"FileId\",\r\n title: \"File Id\",\r\n },\r\n PmtRefNo: {\r\n value: \"PmtRefNo\",\r\n title: \"PmtRefNo\",\r\n },\r\n Currency: {\r\n value: \"Currency\",\r\n title: \"Currency\",\r\n },\r\n PmtAmount: {\r\n value: \"PmtAmount\",\r\n title: \"Pmt Amount\",\r\n columntype: \"money\",\r\n type: \"money\",\r\n },\r\n FiRefNo: {\r\n value: \"FiRefNo\",\r\n title: \"FiRefNo\",\r\n },\r\n InitiatedBy: {\r\n value: \"InitiatedBy\",\r\n title: \"InitiatedBy\",\r\n },\r\n ChannelIndicator: {\r\n value: \"ChannelIndicator\",\r\n title: \"ChannelIndicator\",\r\n },\r\n UniqueClientId: {\r\n value: \"UniqueClientId\",\r\n title: \"Unique Client Id\",\r\n },\r\n ClientName: {\r\n value: \"ClientName\",\r\n title: \"Client Name\",\r\n },\r\n },\r\n ];\r\n }\r\n componentDidMount() {\r\n this.props.setAppLeftTitle(\"Interac e-Transfer / Settlement File\");\r\n this.props.setAppCenterTitle(\"CLEARING & SETTLEMENT\");\r\n }\r\n\r\n handleChange = (name, newValue) => {\r\n this.setState((state) => {\r\n var model = state.model;\r\n model[name] = newValue;\r\n return { model, DownloadButtonControl: false };\r\n });\r\n };\r\n\r\n GetData = async () => {\r\n if (this.IsValid()) {\r\n const { ExecuteApiPost } = this.props;\r\n var { model, DownloadButtonControl } = this.state;\r\n\r\n var responseData = await ExecuteApiPost(\r\n \"/bankapi/v1.0/ClearingSettlement/GetSettlmentFileDetail\",\r\n model,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n );\r\n\r\n if (responseData != null) {\r\n if (\r\n responseData.SettlementFileDetail != null ||\r\n (responseData.SettlmentSummaryDetails != null &&\r\n responseData.SettlmentSummaryDetails.lenght > 0)\r\n )\r\n DownloadButtonControl = true;\r\n else DownloadButtonControl = false;\r\n\r\n this.setState({\r\n summaryModel: responseData.SettlementFileDetail,\r\n settlementSummaryDetailList: responseData.SettlmentSummaryDetails,\r\n DownloadButtonControl,\r\n });\r\n } else {\r\n this.setState({ DownloadButtonControl: false });\r\n }\r\n }\r\n };\r\n\r\n IsValid = () => {\r\n var vmodel = { ...this.state.model };\r\n if (!vmodel || !vmodel.SettlementDate) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"Settlement Date cannot be null\"\r\n );\r\n return false;\r\n } else if (typeof vmodel.SettlementDate != \"object\") {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"Settlement Date is invalid\"\r\n );\r\n return false;\r\n }\r\n return true;\r\n };\r\n hideAlert = () => {\r\n this.setState({ alert: null, isLoading: false });\r\n };\r\n\r\n hideLoading = () => {\r\n this.setState({ isLoading: false });\r\n };\r\n\r\n handleClear = () => {\r\n this.setState({\r\n model: { SettlementDate: DateHelper.GetDate() },\r\n summaryModel: {},\r\n settlementDetailList: [],\r\n });\r\n };\r\n\r\n ExcelDownload = (contentType) => {\r\n var { model, summaryModel } = this.state;\r\n\r\n if (model.SettlementDate == null || model.SettlementDate == undefined) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please select required field !\",\r\n \"Select a Settlement Date !\"\r\n );\r\n return;\r\n }\r\n\r\n var mytitle =\r\n \"Settlement.CA000352.\" +\r\n contentType +\r\n \".\" +\r\n model.SettlementDate.format(\"YYYY-MM-DD\");\r\n var apiUrl = \"\";\r\n var columns = [];\r\n\r\n if (\r\n contentType == \"OrginationPayments\" ||\r\n contentType == \"OrginationPaymentsOnUs\"\r\n ) {\r\n apiUrl = \"ETransferSettlementFileOrginationPaymentsExportDownload\";\r\n columns = this.orginationColumns;\r\n } else if (contentType == \"DestinationPayments\") {\r\n apiUrl = \"ETransferSettlementFileDestinationPaymentsExportDownload\";\r\n columns = this.destinationColumns;\r\n } else if (contentType == \"OutstandingPayments\") {\r\n apiUrl = \"ETransferSettlementFileOutstandingPaymentsExportDownload\";\r\n columns = this.outStandingColumns;\r\n } else {\r\n this.props.showMessage(\"error\", \"Error\", \"Content type is invalid !\");\r\n return;\r\n }\r\n\r\n model.FileId = summaryModel.FileId;\r\n model.ContentType = contentType;\r\n model.jsonFile = {\r\n colmns: columns,\r\n format: \"CSV\",\r\n title: mytitle,\r\n };\r\n\r\n this.setState({ isLoading: true });\r\n Proxy.DownloadGeneratedFile(\r\n \"/bankapi/v1.0/ClearingSettlement/\" + apiUrl,\r\n model,\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n if (!responseData.IsSucceeded) {\r\n this.props.showMessage(\r\n \"error\",\r\n \"Error\",\r\n responseData.ErrorDescription\r\n );\r\n return;\r\n }\r\n },\r\n (errorMessage) => {\r\n this.setState({ isLoading: false });\r\n this.props.showMessage(\"error\", \"Error\", errorMessage);\r\n },\r\n this.props.showMessage\r\n );\r\n };\r\n\r\n updateLegacyClients = async (contentType) => {\r\n const { ExecuteApiPost } = this.props;\r\n const { SettlementDate } = this.state.model;\r\n let requestData = {};\r\n\r\n if (contentType === \"OrginationPayments\") {\r\n requestData = {\r\n settlementDate: SettlementDate,\r\n contentType: \"OrginationPayments\",\r\n };\r\n }\r\n if (contentType === \"DestinationPayments\") {\r\n requestData = {\r\n settlementDate: SettlementDate,\r\n contentType: \"DestinationPayments\",\r\n };\r\n }\r\n if (contentType === \"OutstandingPayments\") {\r\n requestData = {\r\n settlementDate: SettlementDate,\r\n contentType: \"OutstandingPayments\",\r\n };\r\n }\r\n\r\n let responseData = await ExecuteApiPost(\r\n \"/bankapi/v1.0/ClearingSettlement/SettlementFileDataUpdate\",\r\n requestData\r\n );\r\n };\r\n\r\n render() {\r\n const { Disabled } = this.props;\r\n const { model, summaryModel, isLoading, DownloadButtonControl } =\r\n this.state;\r\n return (\r\n
\r\n {this.state.alert}\r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n {DownloadButtonControl && (\r\n
\r\n
\r\n \r\n Client Outgoing\r\n
\r\n Transactions\r\n \r\n }\r\n onClick={() =>\r\n this.ExcelDownload(\"OrginationPayments\")\r\n }\r\n />\r\n
\r\n \r\n this.updateLegacyClients(\"OrginationPayments\")\r\n }\r\n >\r\n Update Clients Data\r\n \r\n
\r\n )}\r\n
\r\n \r\n {DownloadButtonControl && (\r\n
\r\n
\r\n \r\n Client Outstanding\r\n
\r\n Transactions\r\n \r\n }\r\n onClick={() =>\r\n this.ExcelDownload(\"OutstandingPayments\")\r\n }\r\n />\r\n
\r\n \r\n this.updateLegacyClients(\"OutstandingPayments\")\r\n }\r\n >\r\n Update Clients Data\r\n \r\n
\r\n )}\r\n
\r\n \r\n {DownloadButtonControl && (\r\n
\r\n
\r\n ON US Transactions}\r\n onClick={() =>\r\n this.ExcelDownload(\"OrginationPaymentsOnUs\")\r\n }\r\n />\r\n
\r\n \r\n this.updateLegacyClients(\"OrginationPayments\")\r\n }\r\n >\r\n Update Clients Data\r\n \r\n
\r\n )}\r\n
\r\n \r\n {DownloadButtonControl && (\r\n
\r\n
\r\n \r\n Client Incoming\r\n
\r\n Transactions\r\n \r\n }\r\n onClick={() =>\r\n this.ExcelDownload(\"DestinationPayments\")\r\n }\r\n />\r\n
\r\n \r\n this.updateLegacyClients(\"DestinationPayments\")\r\n }\r\n >\r\n Update Clients Data\r\n \r\n
\r\n )}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n (\r\n
{row.value == true ? \"Yes\" : \"No\"}
\r\n ),\r\n },\r\n {\r\n Header: \"Total Number of Credit\",\r\n accessor: \"TotalCreditNumber\",\r\n },\r\n {\r\n Header: \"Credit Balance\",\r\n accessor: \"CreditBalance\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Total Number of Debit\",\r\n accessor: \"TotalDebitNumber\",\r\n },\r\n {\r\n Header: \"Debit Balance\",\r\n accessor: \"DebitBalance\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Different Balance\",\r\n accessor: \"Difference\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n ]}\r\n SelectedIndex={this.state.rowIndex}\r\n ProgramCode={ProgramCodes.Bank_Programs_e_Transfer}\r\n />\r\n
\r\n
\r\n
\r\n
\r\n
\r\n );\r\n }\r\n}\r\n\r\neTransferSettlementFile.propTypes = {\r\n classes: PropTypes.object,\r\n handleOperationType: func,\r\n SelectedRowChange: func,\r\n showQuestionMessage: func,\r\n setAppLeftTitle: func,\r\n setAppCenterTitle: func,\r\n Disabled: bool,\r\n menuId: number,\r\n ApprovalData: array,\r\n After: func,\r\n};\r\n\r\nexport default withArtifex(eTransferSettlementFile, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes, { array, bool, func, number } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport {\r\n GenericAlert,\r\n GenericDateInput,\r\n GenericDialog,\r\n GenericDialogActions,\r\n GenericGrid,\r\n GenericLabel,\r\n GenericNumberInput,\r\n GenericRadioInput,\r\n GenericSelectInput,\r\n GenericTitle,\r\n} from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\nimport TabsComponent from \"views/Components/TabsComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Select from \"react-select\";\r\nimport { EditIcon } from \"core/Icons\";\r\nimport { Proxy } from \"core\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\n\r\nclass eTransferSettlementFileByClient extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.initTransactionDetailColumns();\r\n this.initExportColumns();\r\n\r\n this.directionDataSource = [\r\n { Key: \"Incoming\", Value: 16307 },\r\n { Key: \"Outgoing\", Value: 16308 },\r\n ];\r\n\r\n this.state = {\r\n model: {\r\n\t\t SettlementDate: null,\r\n SettlementDateFrom: null,\r\n SettlementDateTo: null,\r\n UniqueClientId: null,\r\n UniqueClientId2: null,\r\n ToDate: DateHelper.GetDate(),\r\n FromDate: DateHelper.GetDate(),\r\n SettlementStatusId: -1,\r\n TransferTypeId: -1,\r\n DirectionId: -1,\r\n TimezoneOffset: 0,\r\n FinancialInstitutionId: -1,\r\n TransactionStatusId: null,\r\n\t\t SettlementFromDate: null,\r\n\t\t SettlementToDate: null,\r\n },\r\n filterName: \"Filter By\",\r\n tabIndex: 0,\r\n settlementListBySettlementDate: [],\r\n settlementListBySettTransactionDate: [],\r\n isLoading: false,\r\n GrandTotalCreditBalance: undefined,\r\n GrandTotalCreditNumber: undefined,\r\n GrandTotalDebitBalance: undefined,\r\n GrandTotalDebitNumber: undefined,\r\n GrandTotalDifference: undefined,\r\n TotalSettledBalance: undefined,\r\n TotalCanceledBalance: undefined,\r\n TotalOutstandingBalance: undefined,\r\n TotalUnmatchedBalance: undefined,\r\n NetTotalBalanceChange: undefined,\r\n TotalUnSettledBalance: undefined,\r\n isTransactionDetailDialogOpen: false,\r\n loadAtStartup: false,\r\n gridTransactionDetailRefreshToken: false,\r\n selectedRow: undefined,\r\n headerName: undefined,\r\n clientNameColumnColor: \"#000000\",\r\n settlementStatusColumnColor: \"#000000\",\r\n totalCreditNumberColumnColor: \"#000000\",\r\n totalDebitNumberColumnColor: \"#000000\",\r\n isDownloadDialogOpen: false,\r\n exportReportType: \"PDF\",\r\n exportSelectedColumns: this.exportColumns,\r\n };\r\n\r\n this.transactionDetailGridRef = React.createRef();\r\n }\r\n componentDidMount() {\r\n this.props.setAppLeftTitle(\"E-Transfer Transactions by Client Activities\");\r\n this.props.setAppCenterTitle(\"CLEARING & SETTLEMENT\");\r\n this.setState({ loadAtStartup: true });\r\n }\r\n\r\n handleChange = (name, newValue) => {\r\n this.setState((state) => {\r\n var model = state.model;\r\n model[name] = newValue;\r\n return { model };\r\n });\r\n }; \r\n\r\n initExportColumns() {\r\n var exportColumns = [];\r\n\r\n this.transactionDetailColumns.forEach((c) => {\r\n if (\r\n c.accessor != \"Actions\" &&\r\n c.accessor != \"ED\" &&\r\n (c.show == undefined || c.show)\r\n ) {\r\n console.log(c.accessor, c.Header, c.type);\r\n var exportColumn = {};\r\n exportColumn.value = c.accessor;\r\n exportColumn.title = c.Header;\r\n if (c.type) {\r\n exportColumn.type = c.type;\r\n }\r\n\r\n exportColumns.push(exportColumn);\r\n }\r\n }, this);\r\n\r\n this.exportColumns = exportColumns;\r\n }\r\n\r\n GetData = async () => {\r\n if (this.IsValid()) { \r\n const { ExecuteApiPost } = this.props;\r\n const { model, tabIndex } = this.state;\r\n if (tabIndex === 1) {\r\n let requestModel = {\r\n TransactionDateFrom: model.FromDate,\r\n TransactionDateTo: model.ToDate,\r\n uniqueClientId: model.UniqueClientId2,\r\n settlementStatusId: model.SettlementStatusId,\r\n TransferTypeId: model.TransferTypeId,\r\n FinancialInstitutionId: model.FinancialInstitutionId,\r\n DirectionId: model.DirectionId,\r\n TimezoneOffset: model.TimezoneOffset,\r\n\t\t\t SettlementDate: model.SettlementDate || null,\r\n SettlementDateFrom: model.SettlementDateFrom || null,\r\n SettlementDateTo: model.SettlementDateTo || null,\r\n TransactionStatusId: model.TransactionStatusId,\r\n };\r\n\r\n const responseData = await ExecuteApiPost(\r\n \"/bankapi/v1.0/ClearingSettlement/GetEtransferTransactionsSummaryByClients\",\r\n requestModel\r\n );\r\n\r\n this.setState({\r\n settlementListBySettTransactionDate:\r\n responseData.EtransferTransactionsSummaryByClients,\r\n GrandTotalCreditBalance: responseData.GrandTotalCreditBalance,\r\n GrandTotalCreditNumber: responseData.GrandTotalCreditNumber,\r\n GrandTotalDebitBalance: responseData.GrandTotalDebitBalance,\r\n GrandTotalDebitNumber: responseData.GrandTotalDebitNumber,\r\n GrandTotalDifference: responseData.GrandTotalDifference,\r\n TotalSettledBalance: responseData.TotalSettledBalance,\r\n TotalCanceledBalance: responseData.TotalCanceledBalance,\r\n TotalOutstandingBalance: responseData.TotalOutstandingBalance,\r\n TotalUnmatchedBalance: responseData.TotalUnmatchedBalance,\r\n NetTotalBalanceChange: responseData.NetTotalBalanceChange,\r\n TotalUnSettledBalance: responseData.TotalUnSettledBalance,\r\n });\r\n } else {\r\n let requestModel = {\r\n\t\t\t SettlementDate: model.SettlementDate,\r\n SettlementFromDate: model.SettlementFromDate,\r\n SettlementToDate: model.SettlementToDate,\r\n SettlementStatusId: model.SettlementStatusId,\r\n uniqueClientId: model.UniqueClientId,\r\n };\r\n\r\n const responseData = await ExecuteApiPost(\r\n \"/bankapi/v1.0/ClearingSettlement/GetEtransferSettlementSummaryByClients\",\r\n requestModel\r\n );\r\n this.setState({\r\n settlementListBySettlementDate:\r\n responseData.EtransferSettlementSummaryByClients,\r\n GrandTotalCreditBalance: responseData.GrandTotalCreditBalance,\r\n GrandTotalCreditNumber: responseData.GrandTotalCreditNumber,\r\n GrandTotalDebitBalance: responseData.GrandTotalDebitBalance,\r\n GrandTotalDebitNumber: responseData.GrandTotalDebitNumber,\r\n GrandTotalDifference: responseData.GrandTotalDifference,\r\n });\r\n }\r\n }\r\n };\r\n\r\n showMessage = (type, title, message) => {\r\n this.setState({\r\n alert: (\r\n this.setState({ alert: \"\" })}\r\n />\r\n ),\r\n });\r\n };\r\n\r\n IsValid = () => {\r\n var vmodel = { ...this.state.model };\r\n if (((!vmodel || !vmodel.SettlementFromDate) || (!vmodel || !vmodel.SettlementToDate) ) && this.state.tabIndex === 0) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"Settlement File From Date and Settlement File To Date cannot be null\"\r\n );\r\n return false;\r\n } else if (\r\n (typeof vmodel.SettlementFromDate != \"object\" &&\r\n this.state.tabIndex === 0) || (typeof vmodel.SettlementToDate != \"object\" &&\r\n this.state.tabIndex === 0)\r\n ) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"Settlement File From Date and Settlement File To Date is invalid\"\r\n );\r\n return false;\r\n }\r\n return true;\r\n };\r\n\r\n handleClear = () => {\r\n this.setState({\r\n model: { SettlementDate: DateHelper.GetDate(), SettlementDateFrom: DateHelper.GetDate(), SettlementDateTo: DateHelper.GetDate() },\r\n settlementListBySettlementDate: [],\r\n settlementListBySettTransactionDate: [],\r\n UniqueClientId: null,\r\n UniqueClientId2: undefined,\r\n FromDate: DateHelper.GetDate(),\r\n ToDate: DateHelper.GetDate(),\r\n GrandTotalCreditBalance: undefined,\r\n GrandTotalCreditNumber: undefined,\r\n GrandTotalDebitBalance: undefined,\r\n GrandTotalDebitNumber: undefined,\r\n GrandTotalDifference: undefined,\r\n TotalSettledBalance: undefined,\r\n TotalCanceledBalance: undefined,\r\n TotalOutstandingBalance: undefined,\r\n TotalUnmatchedBalance: undefined,\r\n NetTotalBalanceChange: undefined,\r\n });\r\n };\r\n handleChangeTab = (active) => {\r\n let filterName = \"\";\r\n if (active === 0) {\r\n filterName = \"Filter By\";\r\n }\r\n if (active === 1) {\r\n filterName = \"Filter By\";\r\n }\r\n this.setState({ tabIndex: active, filterName });\r\n };\r\n\r\n closeTransactionDetailDialog = () => {\r\n this.setState({\r\n transactionList: [],\r\n isTransactionDetailDialogOpen: false,\r\n });\r\n };\r\n\r\n GetTransactionList = async (selectedRow, headerName) => {\r\n const { ExecuteApiPost } = this.props;\r\n const { model } = this.state;\r\n let requestData = null;\r\n if (headerName === \"ClientName\" || headerName === \"SettlementStatus\") {\r\n requestData = {\r\n TransactionDateFrom: selectedRow.TransactionDateFrom,\r\n TransactionDateTo: selectedRow.TransactionDateTo,\r\n UniqueClientId: selectedRow.UniqueClientId,\r\n SettlementStatusId: selectedRow.SettlementStatusId,\r\n PageSize: 1_000_000,\r\n TransferTypeId: model.TransferTypeId,\r\n DirectionId: model.DirectionId,\r\n TimezoneOffset: model.TimezoneOffset,\r\n FinancialInstitutionId: model.FinancialInstitutionId,\r\n\t\t SettlementDate: model.SettlementDate,\r\n SettlementDateFrom: model.SettlementDateFrom,\r\n SettlementDateTo: model.SettlementDateTo,\r\n TransactionStatusId: model.TransactionStatusId,\r\n };\r\n }\r\n if (headerName === \"TotalCreditNumber\") {\r\n requestData = {\r\n TransactionDateFrom: selectedRow.TransactionDateFrom,\r\n TransactionDateTo: selectedRow.TransactionDateTo,\r\n UniqueClientId: selectedRow.UniqueClientId,\r\n SettlementStatusId: selectedRow.SettlementStatusId,\r\n TransactionTypeId: selectedRow.CreditTransactionTypeId,\r\n PageSize: 1_000_000,\r\n TransferTypeId: model.TransferTypeId,\r\n DirectionId: model.DirectionId,\r\n TimezoneOffset: model.TimezoneOffset,\r\n FinancialInstitutionId: model.FinancialInstitutionId,\r\n\t\t SettlementDate: model.SettlementDate,\r\n SettlementDateFrom: model.SettlementDateFrom,\r\n SettlementDateTo: model.SettlementDateTo,\r\n\t\t \r\n TransactionStatusId: model.TransactionStatusId,\r\n };\r\n }\r\n if (headerName === \"TotalDebitNumber\") {\r\n requestData = {\r\n TransactionDateFrom: selectedRow.TransactionDateFrom,\r\n TransactionDateTo: selectedRow.TransactionDateTo,\r\n UniqueClientId: selectedRow.UniqueClientId,\r\n SettlementStatusId: selectedRow.SettlementStatusId,\r\n TransactionTypeId: selectedRow.DebitTransactionTypeId,\r\n PageSize: 1_000_000,\r\n TransferTypeId: model.TransferTypeId,\r\n DirectionId: model.DirectionId,\r\n TimezoneOffset: model.TimezoneOffset,\r\n FinancialInstitutionId: model.FinancialInstitutionId,\r\n\t\t SettlementDate: model.SettlementDate,\r\n SettlementDateFrom: model.SettlementDateFrom,\r\n SettlementDateTo: model.SettlementDateTo,\r\n\r\n TransactionStatusId: model.TransactionStatusId,\r\n };\r\n }\r\n\r\n let responseData = await ExecuteApiPost(\r\n \"/bankapi/v1.0/ClearingSettlement/GetEtransferTransactionsByClientActivitiesPaged\",\r\n requestData\r\n );\r\n if (responseData != null) {\r\n this.setState({\r\n headerModel: {},\r\n transactionList: responseData.Data.length < 1 ? [] : responseData.Data,\r\n isLoading: false,\r\n });\r\n }\r\n };\r\n\r\n getTransactionDetailDialog = () => {\r\n const { isTransactionDetailDialogOpen, isLoading } = this.state;\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n };\r\n\r\n initTransactionDetailColumns() {\r\n this.transactionDetailColumns = [\r\n {\r\n Header: \"Actions\",\r\n accessor: \"Actions\",\r\n Cell: (row) => (\r\n \r\n ),\r\n sortable: false,\r\n filterable: false,\r\n width: 70,\r\n show: true,\r\n },\r\n {\r\n Header: \"Client Id\",\r\n accessor: \"UniqueClientId\",\r\n },\r\n {\r\n Header: \"Client Name\",\r\n accessor: \"ClientName\",\r\n width: 100,\r\n },\r\n {\r\n Header: \"Balance Date\",\r\n accessor: \"BalanceDate\",\r\n type: GridColumnType.DateTimeUtc,\r\n width: 100,\r\n },\r\n {\r\n Header: \"Settlement Date\",\r\n accessor: \"SettlementDate\",\r\n type: GridColumnType.DateTimeUtc,\r\n },\r\n {\r\n Header: \"Received/Sent\",\r\n accessor: \"ReceivedSent\",\r\n },\r\n {\r\n Header: \"Debit/Credit\",\r\n accessor: \"TransactionType\",\r\n },\r\n {\r\n Header: \"Amount\",\r\n accessor: \"Amount\",\r\n },\r\n {\r\n Header: \"Settlement Status\",\r\n accessor: \"SettlementStatus\",\r\n },\r\n {\r\n Header: \"Interac Ref Number\",\r\n accessor: \"InteracRefNumber\",\r\n },\r\n {\r\n Header: \"Reference Number\",\r\n accessor: \"TransactionReferenceNumber\",\r\n },\r\n {\r\n Header: \"Transaction Insert Date\",\r\n accessor: \"TransactionInsertDate\",\r\n type: GridColumnType.DateTimeUtc,\r\n },\r\n {\r\n Header: \"Transaction Status\",\r\n accessor: \"TransactionStatus\"\r\n },\r\n {\r\n Header: \"Priority Type\",\r\n accessor: \"PriorityType\"\r\n },\r\n {\r\n Header: \"Description\",\r\n accessor: \"Description\",\r\n width: 600,\r\n },\r\n ];\r\n }\r\n\r\n getColumns = () => {\r\n const {\r\n tabIndex,\r\n clientNameColumnColor,\r\n settlementStatusColumnColor,\r\n totalCreditNumberColumnColor,\r\n totalDebitNumberColumnColor,\r\n } = this.state;\r\n\r\n if (tabIndex === 1) {\r\n return [\r\n {\r\n Header: \"Client ID\",\r\n accessor: \"UniqueClientCode\",\r\n },\r\n {\r\n Header: \"Client Name\",\r\n accessor: \"ClientName\",\r\n Cell: (row) => {\r\n return (\r\n {\r\n this.openTransactionDetailDialog();\r\n this.GetTransactionList(row.original, \"ClientName\");\r\n }}\r\n >\r\n {row.original.ClientName}\r\n \r\n );\r\n },\r\n },\r\n {\r\n Header: \"Settlement Status\",\r\n accessor: \"SettlementStatus\",\r\n Cell: (row) => {\r\n return (\r\n {\r\n this.openTransactionDetailDialog();\r\n this.GetTransactionList(row.original, \"SettlementStatus\");\r\n }}\r\n >\r\n {row.original.SettlementStatus}\r\n \r\n );\r\n },\r\n },\r\n {\r\n Header: \"Date From\",\r\n accessor: \"TransactionDateFrom\",\r\n type: GridColumnType.DateUtc,\r\n },\r\n {\r\n Header: \"Date To\",\r\n accessor: \"TransactionDateTo\",\r\n type: GridColumnType.DateUtc,\r\n },\r\n {\r\n Header: \"Total Number Of Credits\",\r\n accessor: \"TotalCreditNumber\",\r\n Cell: (row) => {\r\n return (\r\n {\r\n this.openTransactionDetailDialog();\r\n this.GetTransactionList(row.original, \"TotalCreditNumber\");\r\n }}\r\n >\r\n {row.original.TotalCreditNumber}\r\n \r\n );\r\n },\r\n },\r\n {\r\n Header: \"Credit Balance\",\r\n accessor: \"CreditBalance\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Total Number Of Debits\",\r\n accessor: \"TotalDebitNumber\",\r\n Cell: (row) => {\r\n return (\r\n {\r\n this.openTransactionDetailDialog();\r\n this.GetTransactionList(row.original, \"TotalDebitNumber\");\r\n }}\r\n >\r\n {row.original.TotalDebitNumber}\r\n \r\n );\r\n },\r\n },\r\n {\r\n Header: \"Debit Balance\",\r\n accessor: \"DebitBalance\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Balance Difference\",\r\n accessor: \"Difference\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n ];\r\n } else {\r\n return [\r\n {\r\n Header: \"Client ID\",\r\n accessor: \"UniqueClientId\",\r\n },\r\n {\r\n Header: \"Client Name\",\r\n accessor: \"ClientName\",\r\n },\r\n {\r\n Header: \"Settlement Status\",\r\n accessor: \"SettlementStatus\",\r\n },\r\n {\r\n Header: \"Total Number of Credits\",\r\n accessor: \"TotalCreditNumber\",\r\n },\r\n {\r\n Header: \"Credit Balance\",\r\n accessor: \"CreditBalance\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Total Number of Debits\",\r\n accessor: \"TotalDebitNumber\",\r\n },\r\n {\r\n Header: \"Debit Balance\",\r\n accessor: \"DebitBalance\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Balance Difference \",\r\n accessor: \"Difference\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n ];\r\n }\r\n };\r\n\r\n setValueToModel = (name, value) => {\r\n const model = { ...this.state.model };\r\n model[name] = value;\r\n this.setState({ model });\r\n };\r\n\r\n onValidate = () => {\r\n const { model } = this.state;\r\n\r\n if (!model.FromDate || !model.ToDate) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"Transaction Date is invalid\"\r\n );\r\n return false;\r\n }\r\n\r\n return true;\r\n };\r\n\r\n filterBySettlementDate = () => {\r\n const { model } = this.state;\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n\t\t \r\n \r\n \r\n \r\n \r\n \r\n \r\n `${d.UniqueClientId} - ${d.Name}`}\r\n Value={model.UniqueClientId || \"\"}\r\n ValueChanged={this.handleChange}\r\n All\r\n CanClear\r\n />\r\n \r\n \r\n );\r\n };\r\n filterByTransactionDate = () => {\r\n const { model } = this.state;\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\t\t \r\n \r\n \r\n\t\t \r\n \r\n \r\n \r\n \r\n \r\n \r\n `${d.UniqueClientId} - ${d.Name}`}\r\n Value={model.UniqueClientId2 || \"\"}\r\n ValueChanged={this.handleChange}\r\n All\r\n CanClear\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n };\r\n\r\n getTabList = () => {\r\n var tabList = [\r\n {\r\n tabButton: \"Settlement File Date\",\r\n tabContent: this.filterBySettlementDate(),\r\n },\r\n {\r\n tabButton: \"Transaction Date\",\r\n tabContent: this.filterByTransactionDate(),\r\n },\r\n ];\r\n\r\n return tabList;\r\n };\r\n getTotalDetailPanel = () => {\r\n const {\r\n GrandTotalCreditBalance,\r\n GrandTotalCreditNumber,\r\n GrandTotalDebitBalance,\r\n GrandTotalDebitNumber,\r\n GrandTotalDifference,\r\n TotalSettledBalance,\r\n TotalCanceledBalance,\r\n TotalOutstandingBalance,\r\n TotalUnmatchedBalance,\r\n NetTotalBalanceChange,\r\n TotalUnSettledBalance,\r\n tabIndex,\r\n } = this.state;\r\n\r\n if (tabIndex === 1) {\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n }\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n };\r\n\r\n openTransactionDetailDialog = (row, headerName) => {\r\n this.setState({\r\n isLoading: true,\r\n isTransactionDetailDialogOpen: true,\r\n headerName,\r\n selectedRow: row,\r\n gridTransactionDetailRefreshToken:\r\n !this.state.gridTransactionDetailRefreshToken,\r\n });\r\n };\r\n\r\n getDataSource = () => {\r\n const {\r\n settlementListBySettlementDate,\r\n settlementListBySettTransactionDate,\r\n tabIndex,\r\n } = this.state;\r\n\r\n if (tabIndex === 1) {\r\n return settlementListBySettTransactionDate;\r\n } else {\r\n return settlementListBySettlementDate;\r\n }\r\n };\r\n\r\n isExportRequestValid = () => {\r\n const { model } = this.state;\r\n\r\n if (model.FromDate == null || model.FromDate == undefined) {\r\n this.showMessage(\r\n \"warning\",\r\n \"Please select required field !\",\r\n \"Select a Settlement File Date !\"\r\n );\r\n return false;\r\n }\r\n\r\n return true;\r\n };\r\n\r\n showLoading() {\r\n this.setState({ isLoading: true });\r\n }\r\n\r\n hideLoading() {\r\n this.setState({ isLoading: false });\r\n }\r\n\r\n onExport = () => {\r\n if (this.isExportRequestValid()) {\r\n const { exportReportType } = this.state;\r\n const { SettlementDate, FromDate, UniqueClientId2, ...model2 } =\r\n this.state.model;\r\n\r\n const exportModel = {\r\n ...model2,\r\n TransactionDateTo: this.state.model.ToDate,\r\n UniqueClientId: this.state.model.UniqueClientId2,\r\n TransactionDateFrom: this.state.model.FromDate,\r\n SettlementDate: this.state.model.SettlementDate,\r\n jsonFile: {},\r\n };\r\n\r\n var exportColumns = this.getSelectedExportColumns() ?? [];\r\n\r\n exportModel.jsonFile = {\r\n colmns: exportColumns,\r\n format: exportReportType,\r\n title: \"E-Transfer Transactions by Client Activities\",\r\n };\r\n\r\n this.showLoading();\r\n\r\n Proxy.DownloadGeneratedFile(\r\n \"/bankapi/v1.0/ClearingSettlement/GetEtransferTransactionsByClientActivitiesExportDownload\",\r\n exportModel,\r\n (responseData) => {\r\n this.hideLoading();\r\n\r\n if (!responseData.IsSucceeded) {\r\n this.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n return;\r\n }\r\n },\r\n (errorMessage) => {\r\n this.hideLoading();\r\n this.showMessage(\"error\", \"Error\", errorMessage);\r\n },\r\n this.showMessage\r\n );\r\n }\r\n };\r\n\r\n openExportDialog = () => {\r\n this.setState({\r\n isDownloadDialogOpen: true,\r\n });\r\n };\r\n\r\n closeExportDialog = () => {\r\n this.setState({\r\n isDownloadDialogOpen: false,\r\n });\r\n };\r\n\r\n setExportSelection = (value) => {\r\n console.log(value);\r\n this.setState({ exportSelectedColumns: value });\r\n };\r\n\r\n getSelectedExportColumns = () => {\r\n const { exportSelectedColumns } = this.state;\r\n\r\n var columns = {};\r\n\r\n exportSelectedColumns.forEach((c) => {\r\n columns[c.value] = {\r\n value: c.value,\r\n title: c.title,\r\n columntype: c.columntype,\r\n type: c.type,\r\n };\r\n });\r\n\r\n var result = [];\r\n result.push(columns);\r\n\r\n return result;\r\n };\r\n\r\n setValueToState = (name, value) => {\r\n this.setState({ [name]: value });\r\n };\r\n\r\n render() {\r\n const {\r\n isLoading,\r\n tabIndex,\r\n filterName,\r\n isDownloadDialogOpen,\r\n exportReportType,\r\n exportSelectedColumns,\r\n } = this.state;\r\n\r\n return (\r\n
\r\n {this.state.alert}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n this.handleChangeTab(e)}\r\n tabList={this.getTabList()}\r\n />\r\n \r\n \r\n \r\n {this.getTotalDetailPanel()}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {this.getTransactionDetailDialog()}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n d.title}\r\n options={this.exportColumns}\r\n className=\"basic-multi-select\"\r\n classNamePrefix=\"select\"\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\neTransferSettlementFileByClient.propTypes = {\r\n classes: PropTypes.object,\r\n handleOperationType: func,\r\n SelectedRowChange: func,\r\n showQuestionMessage: func,\r\n setAppLeftTitle: func,\r\n setAppCenterTitle: func,\r\n Disabled: bool,\r\n menuId: number,\r\n ApprovalData: array,\r\n After: func,\r\n};\r\n\r\nexport default withArtifex(eTransferSettlementFileByClient, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes, { array, bool, func, number } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport {\r\n GenericAlert,\r\n GenericDateInput,\r\n GenericDialog,\r\n GenericDialogActions,\r\n GenericGrid,\r\n GenericLabel,\r\n GenericNumberInput,\r\n GenericRadioInput,\r\n GenericSelectInput,\r\n GenericTextInput,\r\n GenericTitle,\r\n} from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport { EditIcon } from \"core/Icons\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport { Proxy } from \"core\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport Select from \"react-select\";\r\n\r\nclass eTransferSettlementFileByClient extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.initTransactionDetailColumns();\r\n this.initExportColumns();\r\n\r\n this.state = {\r\n model: {\r\n SettlementDate: DateHelper.GetDate(),\r\n UniqueClientId: null,\r\n UniqueClientId2: null,\r\n ToDate: DateHelper.GetDate(),\r\n FromDate: DateHelper.GetDate(),\r\n SettlementStatusId: -1,\r\n },\r\n filterName: \"Filter By\",\r\n settlementListBySettlementDate: [],\r\n settlementListBySettTransactionDate: [],\r\n isLoading: false,\r\n GrandTotalCreditBalance: undefined,\r\n GrandTotalCreditNumber: undefined,\r\n GrandTotalDebitBalance: undefined,\r\n GrandTotalDebitNumber: undefined,\r\n GrandTotalDifference: undefined,\r\n TotalSettledBalance: undefined,\r\n TotalCanceledBalance: undefined,\r\n TotalOutstandingBalance: undefined,\r\n TotalUnSettledBalance: undefined,\r\n TotalUnmatchedBalance: undefined,\r\n NetTotalBalanceChange: undefined,\r\n isTransactionDetailDialogOpen: false,\r\n loadAtStartup: false,\r\n gridTransactionDetailRefreshToken: false,\r\n selectedRow: undefined,\r\n headerName: undefined,\r\n clientNameColumnColor: \"#000000\",\r\n settlementStatusColumnColor: \"#000000\",\r\n totalCreditNumberColumnColor: \"#000000\",\r\n totalDebitNumberColumnColor: \"#000000\",\r\n isDownloadDialogOpen: false,\r\n exportReportType: \"PDF\",\r\n exportSelectedColumns: this.exportColumns,\r\n };\r\n\r\n this.transactionDetailGridRef = React.createRef();\r\n }\r\n\r\n componentDidMount() {\r\n this.props.setAppLeftTitle(\r\n \"E-Transfer Settlement and Reconciliation Report\"\r\n );\r\n this.props.setAppCenterTitle(\"CLEARING & SETTLEMENT\");\r\n this.setState({ loadAtStartup: true });\r\n }\r\n\r\n handleChange = (name, newValue) => {\r\n this.setState((state) => {\r\n var model = state.model;\r\n model[name] = newValue;\r\n return { model };\r\n });\r\n };\r\n\r\n GetData = async () => {\r\n if (this.IsValid()) {\r\n const { ExecuteApiPost } = this.props;\r\n const { model } = this.state;\r\n\r\n let requetModel = {\r\n TransactionDateFrom: model.FromDate,\r\n TransactionDateTo: model.FromDate,\r\n uniqueClientId: model.UniqueClientId,\r\n settlementStatusId: model.SettlementStatusId,\r\n };\r\n\r\n const responseData = await ExecuteApiPost(\r\n \"/bankapi/v1.0/ClearingSettlement/GetEtransferTransactionsLogSummaryByClients\",\r\n requetModel\r\n );\r\n\r\n this.setState({\r\n settlementListBySettTransactionDate:\r\n responseData.EtransferTransactionsLogSummaryByClients,\r\n GrandTotalCreditBalance: responseData.GrandTotalCreditBalance,\r\n GrandTotalCreditNumber: responseData.GrandTotalCreditNumber,\r\n GrandTotalDebitBalance: responseData.GrandTotalDebitBalance,\r\n GrandTotalDebitNumber: responseData.GrandTotalDebitNumber,\r\n GrandTotalDifference: responseData.GrandTotalDifference,\r\n TotalSettledBalance: responseData.TotalSettledBalance,\r\n TotalCanceledBalance: responseData.TotalCanceledBalance,\r\n TotalOutstandingBalance: responseData.TotalOutstandingBalance,\r\n TotalUnmatchedBalance: responseData.TotalUnmatchedBalance,\r\n NetTotalBalanceChange: responseData.NetTotalBalanceChange,\r\n TotalUnSettledBalance: responseData.TotalUnSettledBalance,\r\n });\r\n }\r\n };\r\n\r\n IsValid = () => {\r\n var vmodel = { ...this.state.model };\r\n if (!vmodel || !vmodel.SettlementDate) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"Settlement File Date cannot be null\"\r\n );\r\n return false;\r\n } else if (typeof vmodel.SettlementDate != \"object\") {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"Settlement File Date is invalid\"\r\n );\r\n return false;\r\n }\r\n return true;\r\n };\r\n\r\n handleClear = () => {\r\n this.setState({\r\n model: { SettlementDate: DateHelper.GetDate() },\r\n settlementListBySettlementDate: [],\r\n settlementListBySettTransactionDate: [],\r\n UniqueClientId: null,\r\n UniqueClientId2: undefined,\r\n FromDate: DateHelper.GetDate(),\r\n ToDate: DateHelper.GetDate(),\r\n GrandTotalCreditBalance: undefined,\r\n GrandTotalCreditNumber: undefined,\r\n GrandTotalDebitBalance: undefined,\r\n GrandTotalDebitNumber: undefined,\r\n GrandTotalDifference: undefined,\r\n TotalSettledBalance: undefined,\r\n TotalCanceledBalance: undefined,\r\n TotalOutstandingBalance: undefined,\r\n TotalUnmatchedBalance: undefined,\r\n NetTotalBalanceChange: undefined,\r\n });\r\n };\r\n\r\n closeTransactionDetailDialog = () => {\r\n this.setState({\r\n transactionList: [],\r\n isTransactionDetailDialogOpen: false,\r\n });\r\n };\r\n\r\n GetTransactionList = async (selectedRow, headerName) => {\r\n const { ExecuteApiPost } = this.props;\r\n let requestData = null;\r\n if (headerName === \"ClientName\" || headerName === \"SettlementStatus\") {\r\n requestData = {\r\n TransactionDateFrom: selectedRow.TransactionDateFrom,\r\n TransactionDateTo: selectedRow.TransactionDateTo,\r\n UniqueClientId: selectedRow.UniqueClientId,\r\n SettlementStatusId: selectedRow.SettlementStatusId,\r\n PageSize: 1_000_000,\r\n };\r\n }\r\n if (headerName === \"TotalCreditNumber\") {\r\n requestData = {\r\n TransactionDateFrom: selectedRow.TransactionDateFrom,\r\n TransactionDateTo: selectedRow.TransactionDateTo,\r\n UniqueClientId: selectedRow.UniqueClientId,\r\n SettlementStatusId: selectedRow.SettlementStatusId,\r\n TransactionTypeId: selectedRow.CreditTransactionTypeId,\r\n PageSize: 1_000_000,\r\n };\r\n }\r\n if (headerName === \"TotalDebitNumber\") {\r\n requestData = {\r\n TransactionDateFrom: selectedRow.TransactionDateFrom,\r\n TransactionDateTo: selectedRow.TransactionDateTo,\r\n UniqueClientId: selectedRow.UniqueClientId,\r\n SettlementStatusId: selectedRow.SettlementStatusId,\r\n TransactionTypeId: selectedRow.DebitTransactionTypeId,\r\n PageSize: 1_000_000,\r\n };\r\n }\r\n\r\n let responseData = await ExecuteApiPost(\r\n \"/bankapi/v1.0/ClearingSettlement/GetEtransferTransactionsLogByClientsPaged\",\r\n requestData\r\n );\r\n if (responseData != null) {\r\n this.setState({\r\n headerModel: {},\r\n transactionList: responseData.Data.length < 1 ? [] : responseData.Data,\r\n isLoading: false,\r\n });\r\n }\r\n };\r\n\r\n getTransactionDetailDialog = () => {\r\n const { isTransactionDetailDialogOpen, isLoading } = this.state;\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n };\r\n\r\n initTransactionDetailColumns() {\r\n this.transactionDetailColumns = [\r\n {\r\n Header: \"Actions\",\r\n accessor: \"Actions\",\r\n Cell: (row) => (\r\n \r\n ),\r\n sortable: false,\r\n filterable: false,\r\n width: 70,\r\n show: true,\r\n },\r\n {\r\n Header: \"Client Id\",\r\n accessor: \"UniqueClientId\",\r\n },\r\n {\r\n Header: \"Client Name\",\r\n accessor: \"ClientName\",\r\n width: 150,\r\n },\r\n {\r\n Header: \"Balance Date\",\r\n accessor: \"BalanceDate\",\r\n type: GridColumnType.DateTimeUtc,\r\n width: 100,\r\n },\r\n {\r\n Header: \"Settlement Date\",\r\n accessor: \"SettlementDate\",\r\n type: GridColumnType.DateUtc,\r\n },\r\n {\r\n Header: \"Received/Sent\",\r\n accessor: \"ReceivedSent\",\r\n },\r\n {\r\n Header: \"Debit/Credit\",\r\n accessor: \"TransactionType\",\r\n },\r\n {\r\n Header: \"Amount\",\r\n accessor: \"Amount\",\r\n type: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Settlement Status\",\r\n accessor: \"SettlementStatus\",\r\n },\r\n {\r\n Header: \"Interac Ref Number\",\r\n accessor: \"InteracRefNumber\",\r\n },\r\n {\r\n Header: \"Reference Number\",\r\n accessor: \"TransactionReferenceNumber\",\r\n },\r\n {\r\n Header: \"Transaction Insert Date\",\r\n accessor: \"TransactionInsertDate\",\r\n type: GridColumnType.DateTimeUtc,\r\n },\r\n {\r\n Header: \"Participant Id\",\r\n accessor: \"ParticipantId\",\r\n },\r\n {\r\n Header: \"Financial Ins. Name\",\r\n accessor: \"FinancialInstitutionName\",\r\n width: 150,\r\n },\r\n {\r\n Header: \"Description\",\r\n accessor: \"Description\",\r\n width: 600,\r\n },\r\n ];\r\n }\r\n\r\n getColumns = () => {\r\n const {\r\n clientNameColumnColor,\r\n settlementStatusColumnColor,\r\n totalCreditNumberColumnColor,\r\n totalDebitNumberColumnColor,\r\n } = this.state;\r\n\r\n return [\r\n {\r\n Header: \"Client ID\",\r\n accessor: \"UniqueClientCode\",\r\n },\r\n {\r\n Header: \"Client Name\",\r\n accessor: \"ClientName\",\r\n Cell: (row) => {\r\n return (\r\n {\r\n this.openTransactionDetailDialog();\r\n this.GetTransactionList(row.original, \"ClientName\");\r\n }}\r\n onMouseEnter={() => {\r\n this.setState({\r\n clientNameColumnColor: \"#FF0000\",\r\n });\r\n }}\r\n onMouseLeave={() => {\r\n this.setState({\r\n clientNameColumnColor: \"#000000\",\r\n });\r\n }}\r\n >\r\n {row.original.ClientName}\r\n \r\n );\r\n },\r\n },\r\n {\r\n Header: \"Settlement Status\",\r\n accessor: \"SettlementStatus\",\r\n Cell: (row) => {\r\n return (\r\n {\r\n this.openTransactionDetailDialog();\r\n this.GetTransactionList(row.original, \"SettlementStatus\");\r\n }}\r\n onMouseEnter={() => {\r\n this.setState({\r\n settlementStatusColumnColor: \"#FF0000\",\r\n });\r\n }}\r\n onMouseLeave={() => {\r\n this.setState({\r\n settlementStatusColumnColor: \"#000000\",\r\n });\r\n }}\r\n >\r\n {row.original.SettlementStatus}\r\n \r\n );\r\n },\r\n },\r\n {\r\n Header: \"Transaction Date\",\r\n accessor: \"TransactionDateFrom\",\r\n type: GridColumnType.DateUtc,\r\n },\r\n {\r\n Header: \"Total Number Of Credits\",\r\n accessor: \"TotalCreditNumber\",\r\n Cell: (row) => {\r\n return (\r\n {\r\n this.openTransactionDetailDialog();\r\n this.GetTransactionList(row.original, \"TotalCreditNumber\");\r\n }}\r\n onMouseEnter={() => {\r\n this.setState({\r\n totalCreditNumberColumnColor: \"#FF0000\",\r\n });\r\n }}\r\n onMouseLeave={() => {\r\n this.setState({\r\n totalCreditNumberColumnColor: \"#000000\",\r\n });\r\n }}\r\n >\r\n {row.original.TotalCreditNumber}\r\n \r\n );\r\n },\r\n },\r\n {\r\n Header: \"Credit Balance\",\r\n accessor: \"CreditBalance\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Total Number Of Debits\",\r\n accessor: \"TotalDebitNumber\",\r\n Cell: (row) => {\r\n return (\r\n {\r\n this.openTransactionDetailDialog();\r\n this.GetTransactionList(row.original, \"TotalDebitNumber\");\r\n }}\r\n onMouseEnter={() => {\r\n this.setState({\r\n totalDebitNumberColumnColor: \"#FF0000\",\r\n });\r\n }}\r\n onMouseLeave={() => {\r\n this.setState({\r\n totalDebitNumberColumnColor: \"#000000\",\r\n });\r\n }}\r\n >\r\n {row.original.TotalDebitNumber}\r\n \r\n );\r\n },\r\n },\r\n {\r\n Header: \"Debit Balance\",\r\n accessor: \"DebitBalance\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Balance Difference\",\r\n accessor: \"Difference\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n ];\r\n };\r\n\r\n onValidate = () => {\r\n const { model } = this.state;\r\n\r\n if (!model.FromDate || !model.ToDate) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"Transaction Date is invalid\"\r\n );\r\n return false;\r\n }\r\n\r\n return true;\r\n };\r\n\r\n getTotalDetailPanel = () => {\r\n const {\r\n GrandTotalCreditBalance,\r\n GrandTotalCreditNumber,\r\n GrandTotalDebitBalance,\r\n GrandTotalDebitNumber,\r\n GrandTotalDifference,\r\n TotalSettledBalance,\r\n TotalCanceledBalance,\r\n TotalOutstandingBalance,\r\n TotalUnmatchedBalance,\r\n NetTotalBalanceChange,\r\n TotalUnSettledBalance,\r\n } = this.state;\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n };\r\n\r\n openTransactionDetailDialog = (row, headerName) => {\r\n this.setState({\r\n isLoading: true,\r\n isTransactionDetailDialogOpen: true,\r\n headerName,\r\n selectedRow: row,\r\n gridTransactionDetailRefreshToken:\r\n !this.state.gridTransactionDetailRefreshToken,\r\n });\r\n };\r\n\r\n getDataSource = () => {\r\n return this.state.settlementListBySettTransactionDate;\r\n };\r\n\r\n openExportDialog = () => {\r\n this.setState({\r\n isDownloadDialogOpen: true,\r\n });\r\n };\r\n\r\n closeExportDialog = () => {\r\n this.setState({\r\n isDownloadDialogOpen: false,\r\n });\r\n };\r\n\r\n getSelectedExportColumns = () => {\r\n const { exportSelectedColumns } = this.state;\r\n\r\n var columns = {};\r\n\r\n exportSelectedColumns.forEach((c) => {\r\n columns[c.value] = {\r\n value: c.value,\r\n title: c.title,\r\n columntype: c.columntype,\r\n type: c.type,\r\n };\r\n });\r\n\r\n var result = [];\r\n result.push(columns);\r\n\r\n return result;\r\n };\r\n\r\n isExportRequestValid = () => {\r\n const { model } = this.state;\r\n\r\n if (model.FromDate == null || model.FromDate == undefined) {\r\n this.showMessage(\r\n \"warning\",\r\n \"Please select required field !\",\r\n \"Select a Settlement File Date !\"\r\n );\r\n return false;\r\n }\r\n\r\n return true;\r\n };\r\n\r\n showLoading() {\r\n this.setState({ isLoading: true });\r\n }\r\n\r\n hideLoading() {\r\n this.setState({ isLoading: false });\r\n }\r\n\r\n showMessage = (type, title, message) => {\r\n this.setState({\r\n alert: (\r\n this.setState({ alert: \"\" })}\r\n />\r\n ),\r\n });\r\n };\r\n\r\n onExport = () => {\r\n if (this.isExportRequestValid()) {\r\n const { exportReportType } = this.state;\r\n const { SettlementDate, FromDate, ToDate, UniqueClientId2, ...model2 } =\r\n this.state.model;\r\n\r\n const exportModel = {\r\n ...model2,\r\n TransactionDateTo: this.state.model.FromDate,\r\n UniqueClientId: this.state.model.UniqueClientId2,\r\n TransactionDateFrom: this.state.model.FromDate,\r\n jsonFile: {},\r\n };\r\n\r\n var exportColumns = this.getSelectedExportColumns() ?? [];\r\n\r\n exportModel.jsonFile = {\r\n colmns: exportColumns,\r\n format: exportReportType,\r\n title: \"E-Transfer Settlement and Reconciliation Report\",\r\n };\r\n\r\n this.showLoading();\r\n\r\n Proxy.DownloadGeneratedFile(\r\n \"/bankapi/v1.0/ClearingSettlement/GetEtransferTransactionsLogByClientsExportDownload\",\r\n exportModel,\r\n (responseData) => {\r\n this.hideLoading();\r\n\r\n if (!responseData.IsSucceeded) {\r\n this.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n return;\r\n }\r\n },\r\n (errorMessage) => {\r\n this.hideLoading();\r\n this.showMessage(\"error\", \"Error\", errorMessage);\r\n },\r\n this.showMessage\r\n );\r\n }\r\n };\r\n\r\n setExportSelection = (value) => {\r\n console.log(value);\r\n this.setState({ exportSelectedColumns: value });\r\n };\r\n\r\n initExportColumns() {\r\n var exportColumns = [];\r\n\r\n this.transactionDetailColumns.forEach((c) => {\r\n if (\r\n c.accessor != \"Actions\" &&\r\n c.accessor != \"ED\" &&\r\n (c.show == undefined || c.show)\r\n ) {\r\n console.log(c.accessor, c.Header, c.type);\r\n var exportColumn = {};\r\n exportColumn.value = c.accessor;\r\n exportColumn.title = c.Header;\r\n if (c.type) {\r\n exportColumn.type = c.type;\r\n }\r\n\r\n exportColumns.push(exportColumn);\r\n }\r\n }, this);\r\n\r\n this.exportColumns = exportColumns;\r\n }\r\n\r\n setValueToState = (name, value) => {\r\n this.setState({ [name]: value });\r\n };\r\n\r\n render() {\r\n const {\r\n isLoading,\r\n filterName,\r\n model,\r\n isDownloadDialogOpen,\r\n exportReportType,\r\n exportSelectedColumns,\r\n } = this.state;\r\n\r\n return (\r\n
\r\n {this.state.alert}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n `${d.UniqueClientId} - ${d.Name}`}\r\n Value={model.UniqueClientId || \"\"}\r\n ValueChanged={this.handleChange}\r\n All\r\n CanClear\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {this.getTotalDetailPanel()}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {this.getTransactionDetailDialog()}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n d.title}\r\n options={this.exportColumns}\r\n className=\"basic-multi-select\"\r\n classNamePrefix=\"select\"\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\neTransferSettlementFileByClient.propTypes = {\r\n classes: PropTypes.object,\r\n handleOperationType: func,\r\n SelectedRowChange: func,\r\n showQuestionMessage: func,\r\n setAppLeftTitle: func,\r\n setAppCenterTitle: func,\r\n Disabled: bool,\r\n menuId: number,\r\n ApprovalData: array,\r\n After: func,\r\n};\r\n\r\nexport default withArtifex(eTransferSettlementFileByClient, {});\r\n","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { EditIcon, PayIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport {\r\n GenericAlert,\r\n GenericDateInput,\r\n GenericDialog,\r\n GenericDialogActions,\r\n GenericExpansionPanel,\r\n GenericGrid,\r\n GenericLabel,\r\n GenericSelectInput,\r\n GenericTextInput,\r\n GenericTitle,\r\n GenericRadioInput,\r\n} from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, Direction } from \"views/Constants/Constant.js\";\r\nimport { Proxy } from \"core\";\r\nimport Select from \"react-select\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\n\r\nclass eTransferTransactionsSettlementByFI extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n\r\n this.initialModel = {\r\n TransactionDate: undefined,\r\n TransactionTypeId: -1,\r\n FundDirection: undefined,\r\n DirectionId: -1,\r\n };\r\n\r\n this.directionDataSource = [\r\n { Key: \"Incoming\", Value: 16307 },\r\n { Key: \"Outgoing\", Value: 16308 },\r\n ];\r\n\r\n this.initColumns();\r\n this.initExportColumns();\r\n this.initSettlementDetailColumns();\r\n this.initTransactionDetailColumns();\r\n this.state = {\r\n model: this.initialModel,\r\n isLoading: false,\r\n isMatchingDialogOpen: false,\r\n isSettlementDetailDialogOpen: false,\r\n isPayRedirect: false,\r\n selectedMatchingModelRow: {\r\n InteracRefNo: undefined,\r\n TransactionReferenceNumber: undefined,\r\n },\r\n matchingModel: {\r\n InteracRefNo: undefined,\r\n TransactionReferenceNumber: undefined,\r\n },\r\n gridRefreshToken: false,\r\n loadAtStartup: false,\r\n exportReportType: \"PDF\",\r\n isDownloadDialogOpen: false,\r\n exportSelectedColumns: this.exportColumns,\r\n gridSettlementDetailRefreshToken: false,\r\n selectedRow: undefined,\r\n isTransactionDetailDialogOpen: false,\r\n loadAtStartupForTransaction: false,\r\n gridTransactionDetailRefreshToken: false,\r\n selectedRowForTransaction: undefined,\r\n headerName: undefined,\r\n creditBalanceColumnColor: \"#000000\",\r\n debitBalanceColumnColor: \"#000000\",\r\n headerModel: {},\r\n transactionList: [],\r\n };\r\n\r\n this.settlementErrorsGridRef = React.createRef();\r\n this.settlementDetailGridRef = React.createRef();\r\n this.transactionDetailGridRef = React.createRef();\r\n }\r\n\r\n initColumns() {\r\n this.columns = [\r\n {\r\n Header: \"Actions\",\r\n accessor: \"Actions\",\r\n Cell: (row) => (\r\n
\r\n {\r\n this.openSettlementDetailDialog(row.original);\r\n }}\r\n />\r\n\r\n {\r\n RouteHelper.Push(\r\n this.props.history,\r\n \"/CreateWireTransfer\",\r\n \"row\",\r\n row\r\n );\r\n }}\r\n />\r\n
\r\n ),\r\n sortable: false,\r\n filterable: false,\r\n width: 70,\r\n show: true,\r\n },\r\n {\r\n Header: \"Participant ID\",\r\n accessor: \"ParticipantId\",\r\n },\r\n {\r\n Header: \"Financial Ins. Name\",\r\n accessor: \"FIName\",\r\n },\r\n {\r\n Header: \"Is Onus Record\",\r\n accessor: \"IsOnusRecord\",\r\n },\r\n {\r\n Header: \"Total No. of Credits\",\r\n accessor: \"TotalNumberOfCredits\",\r\n },\r\n {\r\n Header: \"Credit Balance\",\r\n accessor: \"CreditBalance\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n Cell: (row) => {\r\n return (\r\n {\r\n this.openTransactionDetailDialog();\r\n this.GetTransactionList(row.original, \"CreditBalance\");\r\n }}\r\n onMouseEnter={() => {\r\n this.setState({\r\n creditBalanceColumnColor: \"#FF0000\",\r\n });\r\n }}\r\n onMouseLeave={() => {\r\n this.setState({\r\n creditBalanceColumnColor: \"#000000\",\r\n });\r\n }}\r\n >\r\n {new Intl.NumberFormat(\"en-US\", {\r\n style: \"currency\",\r\n currency: \"USD\",\r\n }).format(row.original.CreditBalance)}\r\n \r\n );\r\n },\r\n },\r\n {\r\n Header: \"Total No. of Debits\",\r\n accessor: \"TotalNumberOfDebits\",\r\n },\r\n {\r\n Header: \"Debit Balance\",\r\n accessor: \"DebitBalance\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n Cell: (row) => {\r\n return (\r\n {\r\n this.openTransactionDetailDialog();\r\n this.GetTransactionList(row.original, \"DebitBalance\");\r\n }}\r\n onMouseEnter={() => {\r\n this.setState({\r\n debitBalanceColumnColor: \"#FF0000\",\r\n });\r\n }}\r\n onMouseLeave={() => {\r\n this.setState({\r\n debitBalanceColumnColor: \"#000000\",\r\n });\r\n }}\r\n >\r\n {new Intl.NumberFormat(\"en-US\", {\r\n style: \"currency\",\r\n currency: \"USD\",\r\n }).format(row.original.DebitBalance)}\r\n \r\n );\r\n },\r\n },\r\n {\r\n Header: \"Balance Difference\",\r\n accessor: \"BalanceDifference\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Legacy Debits\",\r\n accessor: \"LegacyDebits\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Legacy Credits\",\r\n accessor: \"LegacyCredits\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Total Debits\",\r\n accessor: \"TotalDebits\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Total Credits\",\r\n accessor: \"TotalCredits\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Net Balance\",\r\n accessor: \"NetBalance\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n ];\r\n }\r\n\r\n initExportColumns() {\r\n var exportColumns = [];\r\n\r\n this.columns.forEach((c) => {\r\n if (\r\n c.accessor != \"Actions\" &&\r\n c.accessor != \"ED\" &&\r\n (c.show == undefined || c.show)\r\n ) {\r\n var exportColumn = {};\r\n exportColumn.value = c.accessor;\r\n exportColumn.title = c.Header;\r\n if (c.type) {\r\n exportColumn.type = c.type;\r\n }\r\n\r\n exportColumns.push(exportColumn);\r\n }\r\n }, this);\r\n\r\n this.exportColumns = exportColumns;\r\n }\r\n\r\n initSettlementDetailColumns() {\r\n this.settlementDetailColumns = [\r\n {\r\n Header: \"Actions\",\r\n accessor: \"Actions\",\r\n Cell: (row) => (\r\n
\r\n {\r\n this.openMatchingDialog();\r\n this.setState({\r\n selectedMatchingModelRow: row,\r\n matchingModel: {\r\n InteracRefNo: row.original.InteracRefNo,\r\n TransactionReferenceNumber:\r\n row.original.TransactionReferenceNumber,\r\n },\r\n });\r\n }}\r\n />\r\n
\r\n ),\r\n sortable: false,\r\n filterable: false,\r\n width: 70,\r\n show: true,\r\n },\r\n {\r\n Header: \"Participant Id\",\r\n accessor: \"ParticipantId\",\r\n },\r\n {\r\n Header: \"Participant Name\",\r\n accessor: \"ParticipantName\",\r\n },\r\n {\r\n Header: \"Settlement Date\",\r\n accessor: \"TransactionDate\",\r\n type: GridColumnType.DateTimeUtc,\r\n },\r\n {\r\n Header: \"Client Id\",\r\n accessor: \"UniqueClientId\",\r\n },\r\n {\r\n Header: \"Client Name\",\r\n accessor: \"ClientName\",\r\n },\r\n {\r\n Header: \"Customer Store\",\r\n accessor: \"CustomerStore\",\r\n },\r\n {\r\n Header: \"Store Code\",\r\n accessor: \"CustomerStoreCode\",\r\n },\r\n {\r\n Header: \"Interac Reference Number\",\r\n accessor: \"InteracRefNo\",\r\n },\r\n {\r\n Header: \"Transaction Reference Number\",\r\n accessor: \"TransactionReferenceNumber\",\r\n },\r\n {\r\n Header: \"Transaction Type\",\r\n accessor: \"TransactionType\",\r\n },\r\n {\r\n Header: \"Transaction Direction\",\r\n accessor: \"Direction\",\r\n },\r\n {\r\n Header: \"Bridge Status\",\r\n accessor: \"TransactionStatus\",\r\n },\r\n {\r\n Header: \"Settlement File Flag\",\r\n accessor: \"SettlementFileFlag\",\r\n },\r\n {\r\n Header: \"Amount\",\r\n accessor: \"Amount\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n ];\r\n }\r\n\r\n closeTransactionDetailDialog = () => {\r\n this.setState({\r\n transactionList: [],\r\n isTransactionDetailDialogOpen: false,\r\n });\r\n };\r\n\r\n getMainMenuTransactionList = async () => {\r\n const { ExecuteApiPost } = this.props;\r\n const {\r\n model: { TransactionDate, TransactionTypeId, DirectionId },\r\n } = this.state;\r\n let requestData = null;\r\n\r\n requestData = {\r\n DirectionId,\r\n TransactionDate,\r\n TransactionTypeId,\r\n PageSize: 1_000_000,\r\n };\r\n console.log(requestData);\r\n\r\n let responseData = await ExecuteApiPost(\r\n \"/bankapi/v1.0/ClearingSettlement/GetEtransferTransactionsSummaryByFI\",\r\n requestData\r\n );\r\n\r\n if (responseData != null) {\r\n this.setState({\r\n mainMenuTransactionList:\r\n responseData.Data.length < 1 ? [] : responseData.Data,\r\n isLoading: false,\r\n });\r\n }\r\n };\r\n\r\n GetTransactionList = async (selectedRow, headerName) => {\r\n const { ExecuteApiPost } = this.props;\r\n const {\r\n model: { TransactionDate },\r\n DirectionId,\r\n } = this.state;\r\n let requestData = null;\r\n if (headerName === \"CreditBalance\") {\r\n requestData = {\r\n DirectionId,\r\n TransactionDate,\r\n FinancialInstitutionId: selectedRow.FIID,\r\n TransactionTypeId: selectedRow.CreditTransactionTypeId,\r\n PageSize: 1_000_000,\r\n };\r\n }\r\n if (headerName === \"DebitBalance\") {\r\n requestData = {\r\n DirectionId,\r\n TransactionDate,\r\n FinancialInstitutionId: selectedRow.FIID,\r\n TransactionTypeId: selectedRow.DebitTransactionTypeId,\r\n PageSize: 1_000_000,\r\n };\r\n }\r\n\r\n let responseData = await ExecuteApiPost(\r\n \"/bankapi/v1.0/ClearingSettlement/GetEtransferTransactionDetailsByFI\",\r\n requestData\r\n );\r\n if (responseData != null) {\r\n this.setState({\r\n headerModel: {},\r\n transactionList: responseData.Data.length < 1 ? [] : responseData.Data,\r\n isLoading: false,\r\n });\r\n }\r\n };\r\n\r\n getTransactionDetailDialog = () => {\r\n const { isTransactionDetailDialogOpen, isLoading } = this.state;\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n };\r\n\r\n initTransactionDetailColumns() {\r\n this.transactionDetailColumns = [\r\n {\r\n Header: \"Participant Id\",\r\n accessor: \"ParticipantId\",\r\n },\r\n {\r\n Header: \"Financial Ins. Name\",\r\n accessor: \"FinancialInstitutionName\",\r\n },\r\n {\r\n Header: \"Client Id\",\r\n accessor: \"UniqueClientId\",\r\n },\r\n {\r\n Header: \"Client Name\",\r\n accessor: \"ClientName\",\r\n width: 100,\r\n },\r\n {\r\n Header: \"Balance Date\",\r\n accessor: \"BalanceDate\",\r\n type: GridColumnType.DateTimeUtc,\r\n width: 100,\r\n },\r\n {\r\n Header: \"Settlement Date\",\r\n accessor: \"SettlementDate\",\r\n type: GridColumnType.DateUtc,\r\n },\r\n {\r\n Header: \"Received/Sent\",\r\n accessor: \"ReceivedSent\",\r\n },\r\n {\r\n Header: \"Debit/Credit\",\r\n accessor: \"TransactionType\",\r\n },\r\n {\r\n Header: \"Amount\",\r\n accessor: \"Amount\",\r\n },\r\n {\r\n Header: \"Settlement Status\",\r\n accessor: \"SettlementStatus\",\r\n },\r\n {\r\n Header: \"Interac Ref Number\",\r\n accessor: \"InteracRefNumber\",\r\n },\r\n {\r\n Header: \"Reference Number\",\r\n accessor: \"TransactionReferenceNumber\",\r\n },\r\n {\r\n Header: \"Transaction Insert Date\",\r\n accessor: \"TransactionInsertDate\",\r\n type: GridColumnType.DateTimeUtc,\r\n },\r\n {\r\n Header: \"Description\",\r\n accessor: \"Description\",\r\n width: 400,\r\n },\r\n ];\r\n }\r\n\r\n openTransactionDetailDialog = () => {\r\n this.setState({\r\n isLoading: true,\r\n isTransactionDetailDialogOpen: true,\r\n });\r\n };\r\n\r\n componentDidMount() {\r\n this.props.setAppLeftTitle(\"E-Transfer Transactions Settlement by FI\");\r\n this.props.setAppCenterTitle(\"CLEARING & SETTLEMENT\");\r\n this.setState({ loadAtStartup: true });\r\n this.setState({ loadAtStartupForTransaction: true });\r\n }\r\n\r\n clearSearchCriteria = () => {\r\n this.setState({ model: this.initialModel });\r\n };\r\n\r\n setValueToModel = (name, value) => {\r\n const model = { ...this.state.model };\r\n model[name] = value;\r\n this.setState({ model });\r\n };\r\n\r\n setValueToState = (name, value) => {\r\n this.setState({ [name]: value });\r\n };\r\n\r\n refreshGridToken = async () => {\r\n const { gridRefreshToken } = this.state;\r\n\r\n this.setState({ gridRefreshToken: !gridRefreshToken });\r\n };\r\n\r\n saveMatchingModel = async () => {\r\n const { matchingModel } = this.state;\r\n\r\n if (this.isMatchingModelValid()) {\r\n this.showLoading();\r\n\r\n Proxy.POST(\r\n \"/bankapi/v1.0/ClearingSettlement/MatchETransferTransactionManually\",\r\n matchingModel,\r\n (responseData) => {\r\n if (!responseData.IsSucceeded) {\r\n console.log(\"Error!\", responseData);\r\n this.hideLoading();\r\n this.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n return;\r\n }\r\n this.hideLoading();\r\n this.setState({\r\n isSettlementDetailDialogOpen: false,\r\n });\r\n\r\n this.showMessage(\r\n \"success\",\r\n \"Success\",\r\n \"Operation Successfully Completed!\"\r\n );\r\n\r\n this.refreshGridToken();\r\n this.closeMatchingDialog();\r\n },\r\n (error) => {\r\n console.log(\"Error!\", error);\r\n this.hideLoading();\r\n this.showMessage(\"error\", \"Error\", error);\r\n }\r\n );\r\n }\r\n };\r\n\r\n showMessage = (type, title, message) => {\r\n this.setState({\r\n alert: (\r\n this.setState({ alert: \"\" })}\r\n />\r\n ),\r\n });\r\n };\r\n\r\n showLoading() {\r\n this.setState({ isLoading: true });\r\n }\r\n\r\n hideLoading() {\r\n this.setState({ isLoading: false });\r\n }\r\n\r\n openMatchingDialog() {\r\n this.setState({ isMatchingDialogOpen: true });\r\n }\r\n\r\n closeMatchingDialog = () => {\r\n this.setState({ isMatchingDialogOpen: false });\r\n };\r\n\r\n onValidate = () => {\r\n const { model } = this.state;\r\n\r\n if (!model.TransactionDate) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"Transaction Date is invalid\"\r\n );\r\n return false;\r\n }\r\n\r\n return true;\r\n };\r\n\r\n isMatchingModelValid = () => {\r\n const { matchingModel } = this.state;\r\n if (\r\n matchingModel.TransactionReferenceNumber &&\r\n !matchingModel.InteracRefNo\r\n ) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill Interac Reference Number field!\",\r\n \"Interac Reference is empty\"\r\n );\r\n return false;\r\n }\r\n\r\n if (\r\n !matchingModel.TransactionReferenceNumber &&\r\n matchingModel.InteracRefNo\r\n ) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill Transaction Reference Number field!\",\r\n \"Request Reference is empty\"\r\n );\r\n return false;\r\n }\r\n return true;\r\n };\r\n\r\n isRowActionDisabled = (row) => {\r\n return (\r\n row.original.TransactionReferenceNumber !== undefined &&\r\n row.original.InteracRefNo !== \"\" &&\r\n row.original.InteracRefNo !== undefined &&\r\n row.original.TransactionReferenceNumber !== \"\"\r\n );\r\n };\r\n\r\n isPayRowActionDisabled = (row) => {\r\n return (\r\n row !== undefined &&\r\n row.original !== undefined &&\r\n row.original.IsTransferEnabled === false\r\n );\r\n };\r\n\r\n isSettlementDetailRowActionDisabled = (row) => {\r\n return (\r\n row !== undefined &&\r\n row.original !== undefined &&\r\n row.original.IsReviewRequired === false\r\n );\r\n };\r\n\r\n openExportDialog = () => {\r\n this.setState({\r\n isDownloadDialogOpen: true,\r\n });\r\n };\r\n\r\n closeExportDialog = () => {\r\n this.setState({\r\n isDownloadDialogOpen: false,\r\n });\r\n };\r\n\r\n isExportRequestValid = () => {\r\n const { model } = this.state;\r\n\r\n if (model.TransactionDate == null || model.TransactionDate == undefined) {\r\n this.showMessage(\r\n \"warning\",\r\n \"Please select required field !\",\r\n \"Select a Settlement Date !\"\r\n );\r\n return false;\r\n }\r\n\r\n return true;\r\n };\r\n\r\n setExportSelection = (value) => {\r\n this.setState({ exportSelectedColumns: value });\r\n };\r\n\r\n getSelectedExportColumns = () => {\r\n const { exportSelectedColumns } = this.state;\r\n\r\n var columns = {};\r\n\r\n exportSelectedColumns.forEach((c) => {\r\n columns[c.value] = {\r\n value: c.value,\r\n title: c.title,\r\n columntype: c.columntype,\r\n type: c.type,\r\n };\r\n });\r\n\r\n var result = [];\r\n result.push(columns);\r\n\r\n return result;\r\n };\r\n\r\n openSettlementDetailDialog = (row) => {\r\n const { gridSettlementDetailRefreshToken } = this.state;\r\n\r\n this.setState({\r\n isSettlementDetailDialogOpen: true,\r\n selectedRow: row,\r\n gridSettlementDetailRefreshToken: !gridSettlementDetailRefreshToken,\r\n });\r\n };\r\n\r\n closeSettlementDetailDialog = () => {\r\n this.setState({\r\n isSettlementDetailDialogOpen: false,\r\n });\r\n };\r\n\r\n onExport = () => {\r\n if (this.isExportRequestValid()) {\r\n const { model, exportReportType } = this.state;\r\n\r\n const exportModel = { ...model, jsonFile: {} };\r\n\r\n var exportColumns = this.getSelectedExportColumns() ?? [];\r\n\r\n exportModel.jsonFile = {\r\n colmns: exportColumns,\r\n format: exportReportType,\r\n title: \"Etransfer Transactions\",\r\n };\r\n\r\n this.showLoading();\r\n\r\n Proxy.DownloadGeneratedFile(\r\n \"/bankapi/v1.0/BankInteracETransfer/GetETransferSettlementMatchingErrorsExcelDownload\",\r\n exportModel,\r\n (responseData) => {\r\n this.hideLoading();\r\n\r\n if (!responseData.IsSucceeded) {\r\n this.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n return;\r\n }\r\n },\r\n (errorMessage) => {\r\n this.hideLoading();\r\n this.showMessage(\"error\", \"Error\", errorMessage);\r\n },\r\n this.showMessage\r\n );\r\n }\r\n };\r\n\r\n getSettlementDetailDialog = () => {\r\n const {\r\n isSettlementDetailDialogOpen,\r\n gridSettlementDetailRefreshToken,\r\n loadAtStartup,\r\n selectedRow,\r\n model,\r\n } = this.state;\r\n\r\n return (\r\n \r\n \r\n \r\n {\r\n return {\r\n FinancialInstitutionId: selectedRow.FIID,\r\n TransactionDate: model.TransactionDate,\r\n };\r\n }}\r\n ValidateRequest={this.onValidate}\r\n ShowPagination={true}\r\n LoadAtStartup={loadAtStartup}\r\n PageSize={20}\r\n Columns={this.settlementDetailColumns}\r\n HideLoadMore\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n };\r\n\r\n render() {\r\n const { menuId, ApprovalData, After } = this.props;\r\n const {\r\n alert,\r\n isLoading,\r\n model,\r\n isMatchingDialogOpen,\r\n matchingModel,\r\n selectedMatchingModelRow,\r\n gridRefreshToken,\r\n loadAtStartup,\r\n exportReportType,\r\n isDownloadDialogOpen,\r\n exportSelectedColumns,\r\n } = this.state;\r\n\r\n return (\r\n
\r\n \r\n {alert}\r\n model,\r\n FillDataFromModel: (model) => this.setState({ model }),\r\n ValidationFunction: this.onValidate,\r\n },\r\n { Code: \"Export\", OnClick: this.openExportDialog },\r\n ]}\r\n menuId={menuId}\r\n ApprovalData={ApprovalData}\r\n After={After}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {/* {\r\n return model;\r\n }}\r\n ValidateRequest={this.onValidate}\r\n ShowPagination={true}\r\n LoadAtStartup={loadAtStartup}\r\n PageSize={20}\r\n Columns={this.columns}\r\n /> */}\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {\r\n matchingModel[name] = value;\r\n this.setState({ matchingModel });\r\n }}\r\n />\r\n \r\n \r\n {\r\n matchingModel[name] = value;\r\n this.setState({ matchingModel });\r\n }}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n d.title}\r\n options={this.exportColumns}\r\n className=\"basic-multi-select\"\r\n classNamePrefix=\"select\"\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {this.getSettlementDetailDialog()}\r\n {this.getTransactionDetailDialog()}\r\n
\r\n );\r\n }\r\n}\r\n\r\neTransferTransactionsSettlementByFI.propTypes = {\r\n classes: PropTypes.object,\r\n};\r\n\r\nexport default eTransferTransactionsSettlementByFI;\r\n","import { DialogContent, DialogTitle,Slide } from \"@material-ui/core\";\r\n\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { EditIcon ,PayIcon} from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport {\r\n GenericAlert,\r\n GenericDateInput,\r\n GenericDialog,\r\n GenericDialogActions,\r\n GenericExpansionPanel,\r\n GenericGrid,\r\n GenericLabel,\r\n GenericSelectInput,\r\n GenericTextInput,\r\n GenericTitle,\r\n GenericRadioInput\r\n} from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { GridColumnType ,Direction} from \"views/Constants/Constant.js\";\r\nimport { Proxy } from \"core\";\r\nimport Select from \"react-select\";\r\nimport { Redirect } from \"react-router-dom\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\n\r\nclass eTransferUnmatchedTransactions extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n\r\n this.initialModel = {\r\n TransactionDate: undefined,\r\n TransactionTypeId: -1,\r\n FundDirection: undefined,\r\n FundDirectionId: -1,\r\n };\r\n\r\n this.directionDataSource = [\r\n { Key: \"Incoming\", Value: Direction.Incoming },\r\n { Key: \"Outgoing\", Value: Direction.Outgoing },\r\n ];\r\n\r\n this.initColumns();\r\n this.initExportColumns();\r\n this.initSettlementDetailColumns();\r\n\t \r\n this.state = {\r\n model: this.initialModel,\r\n isLoading: false,\r\n isMatchingDialogOpen: false,\r\n isSettlementDetailDialogOpen: false,\r\n isPayRedirect: false,\r\n selectedMatchingModelRow: {\r\n InteracRefNo: undefined,\r\n TransactionReferenceNumber: undefined,\r\n },\r\n matchingModel: {\r\n InteracRefNo: undefined,\r\n TransactionReferenceNumber: undefined,\r\n },\r\n gridRefreshToken: false,\r\n loadAtStartup: false,\r\n exportReportType: \"PDF\",\r\n isDownloadDialogOpen: false,\r\n exportSelectedColumns: this.exportColumns,\r\n gridSettlementDetailRefreshToken: false,\r\n selectedRow: undefined,\r\n };\r\n\r\n this.settlementErrorsGridRef = React.createRef();\r\n this.settlementDetailGridRef = React.createRef();\r\n }\r\n\r\n initColumns() {\r\n this.columns = [\r\n {\r\n Header: \"Actions\",\r\n accessor: \"Actions\",\r\n Cell: (row) => (\r\n
\r\n {\r\n this.openSettlementDetailDialog(row.original);\r\n }}\r\n />\r\n\r\n {\r\n\t\t\t\t\tRouteHelper.Push(\r\n this.props.history,\r\n \"/CreateWireTransfer\",\r\n \"row\",\r\n row\r\n ); \r\n }}\r\n />\r\n
\r\n ),\r\n sortable: false,\r\n filterable: false,\r\n width: 70,\r\n show: true,\r\n },\r\n {\r\n Header: \"Participant ID\",\r\n accessor: \"ParticipantId\",\r\n },\r\n {\r\n Header: \"Financial Ins. Name\",\r\n accessor: \"FIName\",\r\n },\r\n {\r\n Header: \"Is Onus Record\",\r\n accessor: \"IsOnusRecord\",\r\n },\r\n {\r\n Header: \"Total No. of Credits\",\r\n accessor: \"TotalNumberOfCredits\",\r\n },\r\n {\r\n Header: \"Credit Balance\",\r\n accessor: \"CreditBalance\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Total No. of Debits\",\r\n accessor: \"TotalNumberOfDebits\",\r\n },\r\n {\r\n Header: \"Debit Balance\",\r\n accessor: \"DebitBalance\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Balance Difference\",\r\n accessor: \"BalanceDifference\",\r\n\t\t type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Legacy Debits\",\r\n accessor: \"LegacyDebits\",\r\n\t\t type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Legacy Credits\",\r\n accessor: \"LegacyCredits\",\r\n\t\t type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Total Debits\",\r\n accessor: \"TotalDebits\",\r\n\t\t type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Total Credits\",\r\n accessor: \"TotalCredits\",\r\n\t\t type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Net Balance\",\r\n accessor: \"NetBalance\",\r\n\t\t type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n ];\r\n }\r\n\r\n initExportColumns() {\r\n var exportColumns = [];\r\n\r\n this.columns.forEach((c) => {\r\n if (\r\n c.accessor != \"Actions\" &&\r\n c.accessor != \"ED\" &&\r\n (c.show == undefined || c.show)\r\n ) {\r\n var exportColumn = {};\r\n exportColumn.value = c.accessor;\r\n exportColumn.title = c.Header;\r\n if (c.type) {\r\n exportColumn.type = c.type;\r\n }\r\n\r\n exportColumns.push(exportColumn);\r\n }\r\n }, this);\r\n\r\n this.exportColumns = exportColumns;\r\n }\r\n\r\n initSettlementDetailColumns() {\r\n this.settlementDetailColumns = [\r\n {\r\n Header: \"Actions\",\r\n accessor: \"Actions\",\r\n Cell: (row) => (\r\n
\r\n {\r\n\t\t\t\t\t this.openMatchingDialog();\r\n this.setState({\r\n selectedMatchingModelRow: row,\r\n matchingModel: {\r\n InteracRefNo: row.original.InteracRefNo,\r\n TransactionReferenceNumber:\r\n row.original.TransactionReferenceNumber,\r\n },\r\n });\r\n }}\r\n />\r\n
\r\n ),\r\n sortable: false,\r\n filterable: false,\r\n width: 70,\r\n show: true,\r\n },\r\n {\r\n Header: \"Participant Id\",\r\n accessor: \"ParticipantId\",\r\n },\r\n {\r\n Header: \"Participant Name\",\r\n accessor: \"ParticipantName\",\r\n },\r\n {\r\n Header: \"Settlement Date\",\r\n accessor: \"TransactionDate\",\r\n type: GridColumnType.DateTimeUtc,\r\n },\r\n {\r\n Header: \"Client Id\",\r\n accessor: \"ClientId\",\r\n },\r\n {\r\n Header: \"Client Name\",\r\n accessor: \"ClientName\",\r\n },\r\n {\r\n Header: \"Customer Store\",\r\n accessor: \"CustomerStore\",\r\n },\r\n {\r\n Header: \"Store Code\",\r\n accessor: \"CustomerStoreCode\",\r\n },\r\n {\r\n Header: \"Interac Reference Number\",\r\n accessor: \"InteracRefNo\",\r\n },\r\n {\r\n Header: \"Request Reference Number\",\r\n accessor: \"TransactionReferenceNumber\",\r\n },\r\n {\r\n Header: \"Transaction Type\",\r\n accessor: \"TransactionType\",\r\n },\r\n {\r\n Header: \"Transaction Direction\",\r\n accessor: \"Direction\",\r\n },\r\n {\r\n Header: \"Bridge Status\",\r\n accessor: \"TransactionStatus\",\r\n },\r\n {\r\n Header: \"Settlement File Flag\",\r\n accessor: \"SettlementFileFlag\",\r\n },\r\n {\r\n Header: \"Amount\",\r\n accessor: \"Amount\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n ];\r\n }\r\n\r\n componentDidMount() {\r\n this.props.setAppLeftTitle(\"E-Transfer Transactions Settlement by FI\");\r\n this.props.setAppCenterTitle(\"CLEARING & SETTLEMENT\");\r\n this.setState({ loadAtStartup: true });\r\n }\r\n\r\n clearSearchCriteria = () => {\r\n this.setState({ model: this.initialModel });\r\n };\r\n\r\n setValueToModel = (name, value) => {\r\n const model = { ...this.state.model };\r\n model[name] = value;\r\n this.setState({ model });\r\n };\r\n\r\n setValueToState = (name, value) => {\r\n this.setState({ [name]: value });\r\n };\r\n\r\n refreshGridToken = async () => {\r\n const { gridRefreshToken } = this.state;\r\n\r\n this.setState({ gridRefreshToken: !gridRefreshToken });\r\n };\r\n\r\n saveMatchingModel = async () => {\r\n const { matchingModel } = this.state;\r\n\r\n if (this.isMatchingModelValid()) {\r\n this.showLoading();\r\n\r\n Proxy.POST(\r\n \"/bankapi/v1.0/ClearingSettlement/MatchETransferTransactionManually\",\r\n matchingModel,\r\n (responseData) => {\r\n if (!responseData.IsSucceeded) {\r\n console.log(\"Error!\", responseData);\r\n this.hideLoading();\r\n this.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n return;\r\n }\r\n\r\n this.showMessage(\r\n \"success\",\r\n \"Success\",\r\n \"Operation Successfully Completed!\"\r\n );\r\n\r\n this.refreshGridToken();\r\n this.closeMatchingDialog();\r\n },\r\n (error) => {\r\n console.log(\"Error!\", error);\r\n this.hideLoading();\r\n this.showMessage(\"error\", \"Error\", error);\r\n }\r\n );\r\n }\r\n };\r\n\r\n showMessage = (type, title, message) => {\r\n this.setState({\r\n alert: (\r\n this.setState({ alert: \"\" })}\r\n />\r\n ),\r\n });\r\n };\r\n\r\n showLoading() {\r\n this.setState({ isLoading: true });\r\n }\r\n\r\n hideLoading() {\r\n this.setState({ isLoading: false });\r\n }\r\n\r\n openMatchingDialog() {\r\n this.setState({ isMatchingDialogOpen: true });\r\n }\r\n\r\n closeMatchingDialog = () => {\r\n this.setState({ isMatchingDialogOpen: false });\r\n };\r\n\r\n onValidate = () => {\r\n const { model } = this.state;\r\n\r\n if (!model.TransactionDate) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"Settlement Date is invalid\"\r\n );\r\n return false;\r\n }\r\n\r\n return true;\r\n };\r\n\r\n isMatchingModelValid = () => {\r\n const { matchingModel } = this.state;\r\n if (\r\n matchingModel.TransactionReferenceNumber &&\r\n !matchingModel.InteracRefNo\r\n ) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill Interac Reference Number field!\",\r\n \"Interac Reference is empty\"\r\n );\r\n return false;\r\n }\r\n\r\n if (\r\n !matchingModel.TransactionReferenceNumber &&\r\n matchingModel.InteracRefNo\r\n ) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill Request Reference Number field!\",\r\n \"Request Reference is empty\"\r\n );\r\n return false;\r\n }\r\n return true;\r\n };\r\n\r\n isRowActionDisabled = (row) => {\r\n \r\n return (\r\n row.original.TransactionReferenceNumber !== undefined &&\r\n row.original.InteracRefNo !== \"\" &&\r\n row.original.InteracRefNo !== undefined &&\r\n row.original.TransactionReferenceNumber !== \"\"\r\n );\r\n };\r\n\r\n isPayRowActionDisabled = (row) => {\r\n return (\r\n row !== undefined &&\r\n row.original !== undefined &&\r\n row.original.IsTransferEnabled ===false\r\n );\r\n };\r\n\r\n isSettlementDetailRowActionDisabled = (row) => {\r\n \r\n return (\r\n row !== undefined &&\r\n row.original !== undefined &&\r\n row.original.IsReviewRequired ===false\r\n );\r\n };\r\n\r\n openExportDialog = () => {\r\n this.setState({\r\n isDownloadDialogOpen: true,\r\n });\r\n };\r\n\r\n closeExportDialog = () => {\r\n this.setState({\r\n isDownloadDialogOpen: false,\r\n });\r\n };\r\n\r\n isExportRequestValid = () => {\r\n const { model } = this.state;\r\n\r\n if (model.TransactionDate == null || model.TransactionDate == undefined) {\r\n this.showMessage(\r\n \"warning\",\r\n \"Please select required field !\",\r\n \"Select a Settlement Date !\"\r\n );\r\n return false;\r\n }\r\n\r\n return true;\r\n };\r\n\r\n setExportSelection = (value) => {\r\n this.setState({ exportSelectedColumns: value });\r\n };\r\n\r\n getSelectedExportColumns = () => {\r\n const { exportSelectedColumns } = this.state;\r\n\r\n var columns = {};\r\n\r\n exportSelectedColumns.forEach((c) => {\r\n columns[c.value] = {\r\n value: c.value,\r\n title: c.title,\r\n columntype: c.columntype,\r\n type: c.type,\r\n };\r\n });\r\n\r\n var result = [];\r\n result.push(columns);\r\n\r\n return result;\r\n };\r\n\r\n openSettlementDetailDialog = (row) => {\r\n const { gridSettlementDetailRefreshToken } = this.state;\r\n\r\n this.setState({\r\n isSettlementDetailDialogOpen: true,\r\n selectedRow: row,\r\n gridSettlementDetailRefreshToken: !gridSettlementDetailRefreshToken,\r\n });\r\n };\r\n\r\n closeSettlementDetailDialog = () => {\r\n this.setState({\r\n isSettlementDetailDialogOpen: false,\r\n });\r\n };\r\n\r\n onExport = () => {\r\n if (this.isExportRequestValid()) {\r\n const { model, exportReportType } = this.state;\r\n\r\n const exportModel = { ...model, jsonFile: {} };\r\n\r\n var exportColumns = this.getSelectedExportColumns() ?? [];\r\n\r\n exportModel.jsonFile = {\r\n colmns: exportColumns,\r\n format: exportReportType,\r\n title: \"Etransfer Transactions\",\r\n };\r\n\r\n this.showLoading();\r\n\r\n Proxy.DownloadGeneratedFile(\r\n \"/bankapi/v1.0/BankInteracETransfer/GetETransferSettlementMatchingErrorsExcelDownload\",\r\n exportModel,\r\n (responseData) => {\r\n this.hideLoading();\r\n\r\n if (!responseData.IsSucceeded) {\r\n this.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n return;\r\n }\r\n },\r\n (errorMessage) => {\r\n this.hideLoading();\r\n this.showMessage(\"error\", \"Error\", errorMessage);\r\n },\r\n this.showMessage\r\n );\r\n }\r\n };\r\n\r\n getSettlementDetailDialog = () => {\r\n const {\r\n isSettlementDetailDialogOpen,\r\n gridSettlementDetailRefreshToken,\r\n loadAtStartup,\r\n selectedRow,\r\n\t\tmodel\r\n } = this.state;\r\n\r\n return (\r\n \r\n \r\n \r\n {\r\n return {\r\n FinancialInstitutionId: selectedRow.FIID,\r\n TransactionDate: model.TransactionDate,\r\n };\r\n }}\r\n ValidateRequest={this.onValidate}\r\n ShowPagination={true}\r\n LoadAtStartup={loadAtStartup}\r\n PageSize={20}\r\n Columns={this.settlementDetailColumns}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n };\r\n \r\n \r\n render() {\r\n const { menuId, ApprovalData, After } = this.props;\r\n const {\r\n alert,\r\n isLoading,\r\n model,\r\n isMatchingDialogOpen,\r\n matchingModel,\r\n selectedMatchingModelRow,\r\n gridRefreshToken,\r\n loadAtStartup,\r\n exportReportType,\r\n isDownloadDialogOpen,\r\n exportSelectedColumns,\r\n } = this.state;\r\n\r\n return (\r\n
\r\n \r\n {alert}\r\n model,\r\n FillDataFromModel: (model) => this.setState({ model }),\r\n ValidationFunction: this.onValidate,\r\n },\r\n { Code: \"Export\", OnClick: this.openExportDialog },\r\n ]}\r\n menuId={menuId}\r\n ApprovalData={ApprovalData}\r\n After={After}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {\r\n return model;\r\n }}\r\n ValidateRequest={this.onValidate}\r\n ShowPagination={true}\r\n LoadAtStartup={loadAtStartup}\r\n PageSize={20}\r\n Columns={this.columns}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {\r\n matchingModel[name] = value;\r\n this.setState({ matchingModel });\r\n }}\r\n />\r\n \r\n \r\n {\r\n matchingModel[name] = value;\r\n this.setState({ matchingModel });\r\n }}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n d.title}\r\n options={this.exportColumns}\r\n className=\"basic-multi-select\"\r\n classNamePrefix=\"select\"\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {this.getSettlementDetailDialog()}\r\n
\r\n );\r\n }\r\n}\r\n\r\neTransferUnmatchedTransactions.propTypes = {\r\n classes: PropTypes.object,\r\n};\r\n\r\nexport default eTransferUnmatchedTransactions;\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes, { bool, func } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { ProgramCodes } from \"views/Constants/Constant\";\r\n\r\nclass eftDailySettledItems extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tReceivedDate: DateHelper.GetDate()\r\n\t\t\t},\r\n\t\t\tgetDataList: [],\r\n\t\t\tsummaryModel: {},\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\t\tthis.handleChange = this.handleChange.bind(this);\r\n\t\tthis.GetData = this.GetData.bind(this);\r\n\t\tthis.errorCallback = this.errorCallback.bind(this);\r\n\t\tthis.hideAlert = this.hideAlert.bind(this);\r\n\t\tthis.showErrorMessage = this.showErrorMessage.bind(this);\r\n\t\tthis.successSummaryCallback = this.successSummaryCallback.bind(this);\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"EFT Daily Settled Items\");\r\n\t\tthis.props.setAppCenterTitle(\"CLEARING & SETTLEMENT\");\r\n\t}\r\n\r\n\thandleChange(name, newValue) {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tGetData() {\r\n\t\tif (this.state.model.ReceivedDate == null)\r\n\t\t\tthis.showErrorMessage(\"Received Date can not be empty !!\");\r\n\t\telse {\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\t// \"/bankapi/v1.0/ClearingSettlement/GetAllDailySettlementItemsByReceivedDate\",\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/bankapi/v1.0/BankBmoEFT/SearchEFTClearingDailySettledItems\",\r\n\t\t\t\tthis.state.model,\r\n\t\t\t\tthis.successSummaryCallback,\r\n\t\t\t\tthis.errorCallback\r\n\t\t\t);\r\n\t\t}\r\n\t}\r\n\r\n\tsuccessSummaryCallback(responseData) {\r\n\t\tvar summaryModel = { ...this.state.summaryModel };\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.showErrorMessage(responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (responseData.Item == null) {\r\n\t\t\tthis.setState({\r\n\t\t\t\tsummaryModel: {}, getDataList: [], isLoading: false\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\tsummaryModel = responseData.Item.summaryItemResponse == null || undefined ? {} : responseData.Item.summaryItemResponse;\r\n\t\t\tthis.setState({\r\n\t\t\t\tsummaryModel,\r\n\t\t\t\tgetDataList: responseData.Item.DailySettledItems == null || undefined ? [] : responseData.Item.DailySettledItems.length < 1 ? [] : responseData.Item.DailySettledItems.map(x => {\r\n\t\t\t\t\treturn {\r\n\t\t\t\t\t\tRecordType: x.RecordType == null ? \"\" : x.RecordType,\r\n\t\t\t\t\t\tFileType: x.FileType == null ? \"\" : x.FileType,\r\n\t\t\t\t\t\tUniqueClientId: x.UniqueClientId == null ? \"\" : x.UniqueClientId,\r\n\t\t\t\t\t\tValueDate: x.ValueDate == null ? \"\" : x.ValueDate,\r\n\t\t\t\t\t\tTransactionType: x.TransactionType == null ? \"\" : x.TransactionType,\r\n\t\t\t\t\t\tPayeeAccountNo: x.PayeeAccountNumber == null ? \"\" : x.PayeeAccountNumber,\r\n\t\t\t\t\t\tCrossReferenceNumber: x.CrossReferenceNumber == null ? \"\" : x.CrossReferenceNumber,\r\n\t\t\t\t\t\tPayeeName: x.PayeeDraweeName == null ? \"\" : x.PayeeDraweeName,\r\n\t\t\t\t\t\tAmount: x.Amount == null ? \"\" : x.Amount,\r\n\t\t\t\t\t\tTransactionId: x.TransactionId == null ? \"\" : x.TransactionId\r\n\t\t\t\t\t};\r\n\t\t\t\t}), isLoading: false\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\r\n\terrorCallback(error) {\r\n\t\tthis.showErrorMessage(\"An error occurred during the api visit\" + error);\r\n\t}\r\n\r\n\tshowErrorMessage(message) {\r\n\t\tthis.setState({\r\n\t\t\tisLoading: false,\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\r\n\thideAlert() {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, summaryModel, isLoading } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\tValue={model.ClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\t\tCanClear />\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{Formatter.FormatDate(String(row.value))}
\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Tran Type\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionType\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Payee Account No.\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"PayeeAccountNo\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Cross Reference Number\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"CrossReferenceNumber\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Payee Name\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"PayeeName\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"Amount\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Trans. ID\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionId\"\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_EFT} />\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\neftDailySettledItems.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\thandleOperationType: PropTypes.func,\r\n\tSelectedRowChange: PropTypes.func,\r\n\tshowQuestionMessage: func,\r\n\tsetAppLeftTitle: func,\r\n\tsetAppCenterTitle: func,\r\n\tDisabled: bool\r\n};\r\n\r\nexport default withArtifex(eftDailySettledItems, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport AlertHelper from \"core/AlertHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { Direction, GridColumnType, ProgramCodes } from \"views/Constants/Constant.js\";\r\n\r\nclass eftIncomingFile extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tFromDate: DateHelper.GetDate(),\r\n\t\t\t\tToDate: DateHelper.GetDate(),\r\n\t\t\t\tDirectionParameterValue: \"\",\r\n\t\t\t\tClientId: 0,\r\n\r\n\t\t\t},\r\n\t\t\tgetTransactionByFileIdModel: {\r\n\t\t\t\tDirectionParameterValue: \"\",\r\n\t\t\t\tFileId: 0,\r\n\t\t\t\tClientId: 0\r\n\t\t\t},\r\n\t\t\tdailyFileList: [],\r\n\t\t\tfileInfoModel: {},\r\n\t\t\theaderModel: {\r\n\t\t\t\tFileDate: null\r\n\t\t\t},\r\n\t\t\ttransactionList: [],\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"EFT Incoming File\");\r\n\t\tthis.props.setAppCenterTitle(\"CLEARING & SETTLEMENT\");\r\n\t\tvar model = { ...this.state.model };\r\n\t\tmodel.DirectionParameterValue = Direction.Incoming;\r\n\t\tvar getTransactionByFileIdModel = { ...this.state.getTransactionByFileIdModel };\r\n\t\tgetTransactionByFileIdModel.DirectionParameterValue = Direction.Incoming;\r\n\t\tthis.setState({ getTransactionByFileIdModel, model });\r\n\t}\r\n\r\n\thandleChange = (name, newValue) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tSelectedRowChange = (index) => {\r\n\t\tconst tempModel = this.state.dailyFileList[index];\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (tempModel.Id == null || tempModel.Id == undefined)\r\n\t\t\tthis.showErrorMessage(\"FileInformationId can not be null\");\r\n\t\telse {\r\n\t\t\tmodel.ClientId = tempModel.ClientId;\r\n\t\t\tthis.setState({ fileInfoModel: tempModel, model, isLoading: true, rowIndex: index });\r\n\t\t\tthis.GetTransactionList(tempModel.Id);\r\n\t\t}\r\n\t}\r\n\r\n\tGetDailyFileList = () => {\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/ClearingSettlement/GetEFTOutgoingDailyFileList\",\r\n\t\t\tthis.state.model,\r\n\t\t\tthis.successDailyFileList,\r\n\t\t\tthis.errorCallback\r\n\t\t);\r\n\r\n\t}\r\n\tsuccessDailyFileList = (responseData) => {\r\n\t\tthis.hideIsLoading();\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.showErrorMessage(responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (responseData.Item == null || responseData.Item.length < 1) {\r\n\t\t\tthis.setState({\r\n\t\t\t\ttransactionList: [], headerModel: {}, dailyFileList: []\r\n\t\t\t});\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.setState({\r\n\t\t\t\ttransactionList: [], headerModel: {},\r\n\t\t\t\tdailyFileList: responseData.Item == null ? [] : responseData.Item.length < 1 ? [] : responseData.Item, isLoading: false\r\n\t\t\t});\r\n\t\t\t// this.setState({\r\n\t\t\t// \ttransactionList: [], headerModel: {},\r\n\t\t\t// \tdailyFileList: responseData.Item == null ? [] : responseData.Item.length < 1 ? [] : responseData.Item.map(x => {\r\n\t\t\t// \t\treturn {\r\n\t\t\t// \t\t\tId: x.FileInformationId == null ? \"\" : x.FileInformationId,\r\n\t\t\t// \t\t\tFileName: x.FileName == null ? \"\" : x.FileName,\r\n\t\t\t// \t\t\tFileDate: x.FileDate == null ? \"\" : x.FileDate,\r\n\t\t\t// \t\t\tUniqueClientId: x.UniqueClientId == null ? \"\" : x.UniqueClientId,\r\n\t\t\t// \t\t\tClientId: x.ClientId == null ? 0 : x.ClientId,\r\n\t\t\t// \t\t\tFileCrationNumber: x.FileCreationNumber == null ? \"\" : x.FileCreationNumber,\r\n\t\t\t// \t\t\tFileSource: x.FileSource == null ? \"\" : x.FileSource,\r\n\t\t\t// \t\t\tRecordCount: x.RecordCount == null ? \"\" : x.RecordCount,\r\n\t\t\t// \t\t\tRejectedCount: x.RejectedCount == null ? \"\" : x.RejectedCount,\r\n\t\t\t// \t\t\tSendStatus: x.SendStatus == null ? \"\" : x.SendStatus\r\n\t\t\t// \t\t};\r\n\t\t\t// \t}), isLoading: false\r\n\t\t\t// });\r\n\t\t}\r\n\t}\r\n\r\n\tGetTransactionList = (Id) => {\r\n\t\tvar getTransactionByFileIdModel = { ...this.state.getTransactionByFileIdModel };\r\n\t\tgetTransactionByFileIdModel.FileId = (Id == \"\" || Id == null) ? 0 : Id;\r\n\t\tgetTransactionByFileIdModel.ClientId = this.state.model.ClientId == null ? null : this.state.model.ClientId;\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/BankBmoEFT/GetEFTClearingFileDetailsByFileId\",\r\n\t\t\tgetTransactionByFileIdModel,\r\n\t\t\tthis.successTransactionListCallback,\r\n\t\t\tthis.errorCallback\r\n\t\t);\r\n\t}\r\n\r\n\tsuccessTransactionListCallback = (responseData) => {\r\n\t\tvar headerModel = { ...this.state.headerModel };\r\n\t\tvar transactionList = { ...this.state.transactionList };\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.showErrorMessage(responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (responseData.Item != null) {\r\n\t\t\tif (responseData.Item.ClearingFileHeaderDetail != null) {\r\n\t\t\t\theaderModel = responseData.Item.ClearingFileHeaderDetail == null ? {} : responseData.Item.ClearingFileHeaderDetail;\r\n\t\t\t\theaderModel.FileDate = this.state.fileInfoModel.FileDate;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\theaderModel = { FileDate: null };\r\n\r\n\t\t\tif (responseData.Item.EFTClearingFileDetail != null && responseData.Item.EFTClearingFileDetail.length > 0) {\r\n\t\t\t\ttransactionList = responseData.Item.EFTClearingFileDetail;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\ttransactionList = [];\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.setState({ transactionList, headerModel, isLoading: false });\r\n\t}\r\n\r\n\terrorCallback = (error) => {\r\n\t\tthis.showErrorMessage(\"An error occurred during the api visit\" + error);\r\n\t}\r\n\r\n\tshowErrorMessage = (message) => {\r\n\t\tthis.setState({\r\n\t\t\tisLoading: false,\r\n\t\t\talert: AlertHelper.CreateAlert(\"Error\", message, \"warning\", this.hideAlert)\r\n\t\t});\r\n\t}\r\n\r\n\thideAlert = () => { this.setState({ alert: null, isLoading: false }); }\r\n\r\n\thideIsLoading = () => { this.setState({ isLoading: false }); };\r\n\r\n\tClearModel = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {\r\n\t\t\t\tFromDate: DateHelper.GetDate(),\r\n\t\t\t\tToDate: DateHelper.GetDate(),\r\n\t\t\t\tDirectionParameterValue: Direction.Incoming\r\n\t\t\t},\r\n\t\t\tdailyFileList: []\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, headerModel, isLoading } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\tValue={model.ClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\t\tCanClear />\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tthis.SelectedRowChange(index);\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\tSelectedIndex={this.state.rowIndex}\r\n\t\t\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_EFT} />\r\n\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t
Transaction List

\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\neftIncomingFile.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\thandleOperationType: PropTypes.func,\r\n\tshowQuestionMessage: PropTypes.func,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.number,\r\n\tApprovalData: PropTypes.array,\r\n\tAfter: PropTypes.func\r\n};\r\n\r\nexport default withArtifex(eftIncomingFile, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport AlertHelper from \"core/AlertHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericGrid, GenericNumberInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { BankFileStatus, Direction, GridColumnType, ProgramCodes } from \"views/Constants/Constant.js\";\r\n\r\nclass eftOutgoingFile extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tFromDate: DateHelper.GetDate(),\r\n\t\t\t\tToDate: DateHelper.GetDate(),\r\n\t\t\t\tDirectionParameterValue: \"\"\r\n\t\t\t},\r\n\t\t\tgetTransactionByFileIdModel: {\r\n\t\t\t\tDirectionParameterValue: \"\"\r\n\t\t\t},\r\n\t\t\tdailyFileList: [],\r\n\t\t\tfileInfoModel: {},\r\n\t\t\theaderModel: {},\r\n\t\t\ttransactionList: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tSettlementType: \"\"\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"EFT Outgoing File\");\r\n\t\tthis.props.setAppCenterTitle(\"CLEARING & SETTLEMENT\");\r\n\t\tvar model = { ...this.state.model };\r\n\t\tmodel.DirectionParameterValue = Direction.Outgoing;\r\n\t\tvar getTransactionByFileIdModel = { ...this.state.getTransactionByFileIdModel };\r\n\t\tgetTransactionByFileIdModel.DirectionParameterValue = Direction.Outgoing;\r\n\t\tthis.setState({ getTransactionByFileIdModel, model });\r\n\t}\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tvar { SettlementType } = this.state;\r\n\t\tif (name == \"EFTTypeId\")\r\n\t\t\tSettlementType = data != null ? data.ParameterDesc : \"\";\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model, SettlementType });\r\n\t}\r\n\r\n\tSelectedRowChange = (index) => {\r\n\t\tconst tempModel = this.state.dailyFileList[index];\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (tempModel.Id == null || tempModel.Id == undefined)\r\n\t\t\tthis.showBasicAlert(\"Error\", \"FileInformationId can not be null\", \"error\");\r\n\t\telse {\r\n\t\t\tmodel.ClientId = tempModel.ClientId;\r\n\t\t\tthis.setState({ fileInfoModel: tempModel, model, isLoading: true, rowIndex: index });\r\n\t\t\tthis.GetTransactionList(tempModel.Id);\r\n\r\n\t\t}\r\n\t}\r\n\r\n\tGetDailyFileList = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/ClearingSettlement/GetEFTOutgoingDailyFileList\",\r\n\t\t\tthis.state.model,\r\n\t\t\tthis.successDailyFileList,\r\n\t\t\terror => {\r\n\t\t\t\tthis.showBasicAlert(\"Error\", \"An error occurred during the api visit\" + error, \"error\");\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tsuccessDailyFileList = (responseData) => {\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.showBasicAlert(\"Error\", responseData.ErrorDescription, \"error\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({\r\n\t\t\ttransactionList: [], headerModel: {},\r\n\t\t\tdailyFileList: responseData.Item == null ? [] : responseData.Item.length < 1 ? [] : responseData.Item, isLoading: false\r\n\t\t});\r\n\t}\r\n\r\n\tGetTransactionList = (Id) => {\r\n\t\tvar getTransactionByFileIdModel = { ...this.state.getTransactionByFileIdModel };\r\n\t\tgetTransactionByFileIdModel.FileId = Id;\r\n\t\tgetTransactionByFileIdModel.ClientId = this.state.model.ClientId == null ? null : this.state.model.ClientId;\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/BankBmoEFT/GetEFTClearingFileDetailsByFileId\",\r\n\t\t\tgetTransactionByFileIdModel,\r\n\t\t\tthis.successTransactionListCallback,\r\n\t\t\terror => {\r\n\t\t\t\tthis.showBasicAlert(\"Error\", \"An error occurred during the api visit\" + error, \"error\");\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tsuccessTransactionListCallback = (responseData) => {\r\n\t\tvar headerModel = { ...this.state.headerModel };\r\n\t\tvar transactionList = { ...this.state.transactionList };\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.showBasicAlert(\"Error\", responseData.ErrorDescription, \"error\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (responseData.Item != null) {\r\n\t\t\tif (responseData.Item.ClearingFileHeaderDetail != null) {\r\n\t\t\t\theaderModel = responseData.Item.ClearingFileHeaderDetail == null ? {} : responseData.Item.ClearingFileHeaderDetail;\r\n\t\t\t\theaderModel.FileDate = this.state.fileInfoModel.FileDate;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\theaderModel = {};\r\n\r\n\t\t\tif (responseData.Item.EFTClearingFileDetail != null || responseData.Item.EFTClearingFileDetail.length > 0) {\r\n\t\t\t\ttransactionList = responseData.Item.EFTClearingFileDetail;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\ttransactionList = [];\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.setState({ transactionList, headerModel, isLoading: false });\r\n\t}\r\n\r\n\tCreateFile = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/BankBmoEFT/GenerateEftOutgoingFile\",\r\n\t\t\tthis.state.model,\r\n\t\t\tthis.successCreateFile,\r\n\t\t\terror => {\r\n\t\t\t\tthis.showBasicAlert(\"Error\", \"An error occurred during the api visit\" + error, \"error\");\r\n\t\t\t}\r\n\t\t);\r\n\r\n\t}\r\n\r\n\tsuccessCreateFile = (responseData) => {\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.showBasicAlert(\"Error\", responseData.ErrorDescription, \"error\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (responseData.GenerateEftOutgoingFileResponseItemList != null && responseData.GenerateEftOutgoingFileResponseItemList.length > 0) {\r\n\t\t\tvar messages = responseData.GenerateEftOutgoingFileResponseItemList.map((x, i) =>
{\"Processor : \" + x.EftProcessor + \" Success Count : \" + x.SuccessCount + \"Error Count : \" + x.ErrorCount}
);\r\n\t\t\tthis.showBasicAlert(\"Success\", messages, \"success\");\r\n\t\t\tthis.GetDailyFileList();\r\n\t\t}\r\n\t\telse\r\n\t\t\tthis.showBasicAlert(\"Warning\", \"File could not be created because there is no transaction !!\", \"warning\");\r\n\t}\r\n\r\n\tRollBack = () => {\r\n\t\tif (this.state.fileInfoModel.SendStatusParamValue == BankFileStatus.Pending) {\r\n\t\t\tthis.showConfirmAlert(\"Warning\", \"Are you sure to rollback this file ?\", \"warning\", () => {\r\n\t\t\t\tif (this.state.fileInfoModel == null || this.state.fileInfoModel == undefined)\r\n\t\t\t\t\tthis.showBasicAlert(\"Warning\", \"First, select a row in Daily File List.\", \"warning\");\r\n\t\t\t\telse {\r\n\t\t\t\t\tif (this.state.fileInfoModel.Id == null || this.state.fileInfoModel.Id == undefined)\r\n\t\t\t\t\t\tthis.showBasicAlert(\"Warning\", \"Selected row has not FileInformationId value !!!\", \"warning\");\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tProxy.POST(\r\n\t\t\t\t\t\t\t\"/bankapi/v1.0/BankBmoEFT/RollbackEftOutgoingFile\",\r\n\t\t\t\t\t\t\t{ FileInformationId: this.state.fileInfoModel.Id },\r\n\t\t\t\t\t\t\tresponseData => {\r\n\t\t\t\t\t\t\t\tif (!responseData.IsSucceeded)\r\n\t\t\t\t\t\t\t\t\tthis.showBasicAlert(\"Error\", \"Rollback Error : \" + responseData.ErrorDescription + \"!!!\", \"error\");\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tthis.showBasicAlert(\"Success\", \"Rollback operation is successfully completed.\", \"success\");\r\n\t\t\t\t\t\t\t\t\tthis.GetDailyFileList();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\terror => {\r\n\t\t\t\t\t\t\t\tthis.showBasicAlert(\"Error\", \"Rollback Error : \" + error + \"!!!\", \"error\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\telse\r\n\t\t\tthis.showBasicAlert(\"Warning\", \"File Send Status must be Pending !!!\", \"warning\");\r\n\t}\r\n\r\n\tSend = () => {\r\n\t\tif (this.state.fileInfoModel.SendStatusParamValue == BankFileStatus.Pending) {\r\n\t\t\tthis.showConfirmAlert(\"Warning\", \"Are you sure to send this file ?\", \"warning\", () => {\r\n\t\t\t\tif (this.state.fileInfoModel == null || this.state.fileInfoModel == undefined)\r\n\t\t\t\t\tthis.showBasicAlert(\"Warning\", \"First, select a row in Daily File List.\", \"warning\");\r\n\t\t\t\telse {\r\n\t\t\t\t\tif (this.state.fileInfoModel.Id == null || this.state.fileInfoModel == undefined)\r\n\t\t\t\t\t\tthis.showBasicAlert(\"Warning\", \"Selected row has not FileInformationId value !!!\", \"warning\");\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tthis.hideAlert();\r\n\t\t\t\t\t\tthis.showLoading();\r\n\t\t\t\t\t\tProxy.POST(\r\n\t\t\t\t\t\t\t\"/bankapi/v1.0/BankBmoEFT/SendEftOutgoingFile\",\r\n\t\t\t\t\t\t\t{ FileInformationId: this.state.fileInfoModel.Id },\r\n\t\t\t\t\t\t\tresponseData => {\r\n\t\t\t\t\t\t\t\tif (!responseData.IsSucceeded)\r\n\t\t\t\t\t\t\t\t\tthis.showBasicAlert(\"Error\", \"Send operation error : \" + responseData.ErrorDescription + \"!!!\", \"error\");\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tthis.showBasicAlert(\"Success\", \"Send operation is successfully completed.\", \"success\");\r\n\t\t\t\t\t\t\t\t\tthis.GetDailyFileList();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\terror => {\r\n\t\t\t\t\t\t\t\tthis.showBasicAlert(\"Error\", \"Send operation error : \" + error + \"!!!\", \"error\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\telse\r\n\t\t\tthis.showBasicAlert(\"Warning\", \"File Send Status must be Pending !!!\", \"warning\");\r\n\r\n\t}\r\n\r\n\tshowBasicAlert = (title, message, type) => {\r\n\t\tthis.setState({ isLoading: false, alert: AlertHelper.CreateAlert(title, message, type, this.hideAlert) });\r\n\t}\r\n\r\n\tshowConfirmAlert = (title, message, type, onConfirm) => {\r\n\t\tthis.setState({ isLoading: false, alert: AlertHelper.CreateQuestionAlert(title, message, type, onConfirm, this.hideAlert) });\r\n\t}\r\n\r\n\thideAlert = () => { this.setState({ alert: null, isLoading: false }); }\r\n\r\n\tshowLoading = () => { this.setState({ alert: null, isLoading: true }); }\r\n\r\n\tClearModel = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {\r\n\t\t\t\tFromDate: DateHelper.GetDateTime(), ToDate: DateHelper.GetDateTime(),\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, headerModel, isLoading } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t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t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tthis.SelectedRowChange(index);\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\tSelectedIndex={this.state.rowIndex}\r\n\t\t\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_EFT} />\r\n\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t
Transaction List

\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\neftOutgoingFile.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\thandleOperationType: PropTypes.func,\r\n\tshowQuestionMessage: PropTypes.func,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(eftOutgoingFile, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { EditIcon } from \"core/Icons\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport PropTypes, { func, object } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericCheckInput, GenericDateInput, GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { BankTransactionStatus, ProgramCodes } from \"views/Constants/Constant.js\";\r\n\r\nclass eftReturnedItemList extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tTransactionStatus: BankTransactionStatus.Return,\r\n\t\t\t\tSearchEndDate: DateHelper.GetDate(),\r\n\t\t\t\tSearchStartDate: DateHelper.GetDate()\r\n\t\t\t},\r\n\t\t\tisLoading: false,\r\n\t\t\tgetDataList: [],\r\n\t\t\tsummaryModel: {},\r\n\t\t\tSelectedList: []\r\n\t\t};\r\n\t\tthis.handleChange = this.handleChange.bind(this);\r\n\t\tthis.GetData = this.GetData.bind(this);\r\n\t\tthis.errorCallback = this.errorCallback.bind(this);\r\n\t\tthis.hideAlert = this.hideAlert.bind(this);\r\n\t\tthis.showErrorMessage = this.showErrorMessage.bind(this);\r\n\t\tthis.successSummaryCallback = this.successSummaryCallback.bind(this);\r\n\r\n\t\tthis.handleCheck = this.handleCheck.bind(this);\r\n\t\tthis.handleDelete = this.handleDelete.bind(this);\r\n\t\tthis.handleDeleteOk = this.handleDeleteOk.bind(this);\r\n\t\tthis.successDeleteCallback = this.successDeleteCallback.bind(this);\r\n\r\n\t\tthis.handleReSubmit = this.handleReSubmit.bind(this);\r\n\t\tthis.handleReSubmitOk = this.handleReSubmitOk.bind(this);\r\n\t\tthis.successReSubmitCallback = this.successReSubmitCallback.bind(this);\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"EFT Returned & Rejected Items\");\r\n\t\tthis.props.setAppCenterTitle(\"CLEARING & SETTLEMENT\");\r\n\t}\r\n\r\n\thandleChange(name, newValue) {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\thandleCheck(e, x) {\r\n\t\tthis.setState(state => ({\r\n\t\t\tSelectedList: state.SelectedList.includes(x)\r\n\t\t\t\t? state.SelectedList.filter(c => c !== x)\r\n\t\t\t\t: [...state.SelectedList, x]\r\n\t\t}));\r\n\t}\r\n\r\n\tGetData() {\r\n\t\tif (this.state.model.SearchStartDate == null)\r\n\t\t\tthis.showErrorMessage(\"Warning\", \"Date / To can not be empty !!\");\r\n\t\telse {\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/bankapi/v1.0/ClearingSettlement/GetEFTReturnedItems\",\r\n\t\t\t\tthis.state.model,\r\n\t\t\t\tthis.successSummaryCallback,\r\n\t\t\t\tthis.errorCallback\r\n\t\t\t);\r\n\t\t}\r\n\t}\r\n\r\n\thandleDelete() {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()}\r\n\t\t\t\tOnConfirm={() => this.handleDeleteOk()} />\r\n\t\t});\r\n\t}\r\n\r\n\thandleDeleteOk() {\r\n\t\tthis.hideAlert();\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/ClearingSettlement/DeleteEftReturnItems\",\r\n\t\t\t{ DeleteList: this.state.SelectedList },\r\n\t\t\tthis.successDeleteCallback,\r\n\t\t\tthis.errorCallback\r\n\t\t);\r\n\t}\r\n\tsuccessDeleteCallback() {\r\n\t\tthis.GetData();\r\n\t\tthis.setState({\r\n\t\t\tSelectedList: [],\r\n\t\t\tisLoading: false,\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\r\n\thandleReSubmit() {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()}\r\n\t\t\t\tOnConfirm={() => this.handleReSubmitOk()} />\r\n\t\t});\r\n\t}\r\n\r\n\thandleReSubmitOk() {\r\n\t\tthis.hideAlert();\r\n\t\tif (this.state.SelectedList.length > 0) {\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/bankapi/v1.0/ClearingSettlement/ReSumbitEftReturnItems\",\r\n\t\t\t\t{ ReSubmitList: this.state.SelectedList },\r\n\t\t\t\tthis.successReSubmitCallback,\r\n\t\t\t\tthis.errorCallback\r\n\t\t\t);\r\n\t\t}\r\n\t\telse\r\n\t\t\tthis.showErrorMessage(\"Warning\", \"Request list not be null !!\");\r\n\t}\r\n\r\n\tsuccessReSubmitCallback() {\r\n\t\tthis.GetData();\r\n\t\tthis.setState({\r\n\t\t\tSelectedList: [],\r\n\t\t\tisLoading: false,\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\r\n\tsuccessSummaryCallback(responseData) {\r\n\t\tvar summaryModel = { ...this.state.summaryModel };\r\n\t\tvar getDataList = { ...this.state.getDataList };\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.showErrorMessage(\"Error\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (responseData.Item == null) {\r\n\t\t\tthis.setState({ summaryModel: {}, getDataList: [], isLoading: false });\r\n\t\t} else {\r\n\t\t\tsummaryModel = responseData.Item.SummaryItems == null ? {} : responseData.Item.SummaryItems;\r\n\t\t\tgetDataList = responseData.Item.TransactionList == null || undefined || responseData.Item.TransactionList.length <= 0 ? [] : responseData.Item.TransactionList;\r\n\t\t\tthis.setState({ summaryModel, getDataList, isLoading: false });\r\n\t\t}\r\n\t}\r\n\r\n\terrorCallback(error) {\r\n\t\tthis.showErrorMessage(\"Error\", \"An error occurred during the api visit\" + error);\r\n\t}\r\n\r\n\tshowErrorMessage(title, message) {\r\n\t\tthis.setState({\r\n\t\t\tisLoading: false,\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\r\n\thideAlert() {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, summaryModel, isLoading } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\tValue={model.ClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\t\tCanClear />\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\t\t\t\t\tTransactionId: item.TransactionId == null || undefined ? \"\" : item.TransactionId,\r\n\t\t\t\t\t\t\t\t\t\t\tActions: (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t c.TransactionId == item.TransactionId).length > 0}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={(e) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.handleCheck(e, item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}} />\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tRouteHelper.Push(this.props.history, \"/CreateEFT\", \"CreateEFT_Id\", item.TransactionId);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\tRecordType: item.RecordType == null || undefined ? \"\" : item.RecordType,\r\n\t\t\t\t\t\t\t\t\t\t\tReturnType: item.ReturnType == null || undefined ? \"\" : item.ReturnType,\r\n\t\t\t\t\t\t\t\t\t\t\tFileType: item.FileType == null || undefined ? \"\" : item.FileType,\r\n\t\t\t\t\t\t\t\t\t\t\tUniqueClientId: item.UniqueClientId == null || undefined ? \"\" : item.UniqueClientId,\r\n\t\t\t\t\t\t\t\t\t\t\tReasonCode: item.Name == null || undefined ? \"\" : item.Name,\r\n\t\t\t\t\t\t\t\t\t\t\tValueDate: item.ValueDate == null || undefined ? \"\" : item.ValueDate,\r\n\t\t\t\t\t\t\t\t\t\t\tDestinationInstance: item.DestinationInstance == null || undefined ? \"\" : item.DestinationInstance,\r\n\t\t\t\t\t\t\t\t\t\t\tPayeeAccountNo: item.EMail == null || undefined ? \"\" : item.EMail,\r\n\t\t\t\t\t\t\t\t\t\t\tPayeeName: item.PayeeName == null || undefined ? \"\" : item.PayeeName,\r\n\t\t\t\t\t\t\t\t\t\t\tCrossReferenceNumber: item.CrossReferenceNumber == null || undefined ? \"\" : item.CrossReferenceNumber,\r\n\t\t\t\t\t\t\t\t\t\t\tItemTraceNo: item.ItemTraceNo == null || undefined ? \"\" : item.ItemTraceNo,\r\n\t\t\t\t\t\t\t\t\t\t\tAmount: item.Amount == null || undefined ? \"\" : item.Amount\r\n\t\t\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\tColumns={[\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\t\t\t\t\t\t\t\tsortable: false,\r\n\t\t\t\t\t\t\t\t\t\t\tfilterable: false,\r\n\t\t\t\t\t\t\t\t\t\t\twidth: 100\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Rec. Type\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"RecordType\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Return Type\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ReturnType\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"File Type\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"FileType\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Unique Client Id\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"UniqueClientId\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"ReasonCode\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ReasonCode\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Value Date\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ValueDate\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{Formatter.FormatDate(String(row.value))}
\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Dest. Inst.\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"DestinationInstance\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Payee Account No.\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"PayeeAccountNo\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Request Date\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"RequestDate\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Payee Name\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"PayeeName\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Cross Reference Number\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"CrossReferenceNumber\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Item Trace No\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ItemTraceNo\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"Amount\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Trans. Id\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionId\"\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_EFT} />
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\neftReturnedItemList.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\thandleOperationType: PropTypes.func,\r\n\tSelectedRowChange: PropTypes.func,\r\n\tshowQuestionMessage: func,\r\n\tpush: func,\r\n\tsetAppLeftTitle: func,\r\n\tsetAppCenterTitle: func,\r\n\thistory: object,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(eftReturnedItemList, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport AlertHelper from \"core/AlertHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes, { bool, func } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTitle, GenericDialog, GenericLabel, GenericRadioInput, GenericDialogActions } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, ProgramCodes, TransactionTraceStatus } from \"views/Constants/Constant\";\r\nimport { DialogTitle, DialogContent } from \"@material-ui/core\";\r\nimport Select from \"react-select\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport MenuAuthorityRightHelper from \"core/MenuAuthorityRightHelper\";\r\nimport { ApproveIcon, TraceIcon } from \"core/Icons\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\n\r\n\r\nclass eftTraceTransactions extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tFromDate: null,\r\n\t\t\t\tToDate: null\r\n\t\t\t},\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tisDownloadDialogOpen: false,\r\n\t\t\tExportReportType: null,\r\n\t\t\tgridButtonRightDetail: []\r\n\t\t};\r\n\r\n\t\tthis.handleChange = this.handleChange.bind(this);\r\n\t\tthis.trxTable = React.createRef();\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\ttype: GridColumnType.DateTimeUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Settlement Date\",\r\n\t\t\t\taccessor: \"SettlementDate\",\r\n\t\t\t\ttype: GridColumnType.DateTimeUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Unique Client Id\",\r\n\t\t\t\taccessor: \"UniqueClientId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"UniqueClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"CustomerName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Trace Status\",\r\n\t\t\t\taccessor: \"TraceStatus\"\r\n\t\t\t},\r\n\t\t\t// {\r\n\t\t\t// \tHeader: \"Trace Reject Reason\",\r\n\t\t\t// \taccessor: \"TraceRejectReason\"\r\n\t\t\t// },\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Type\",\r\n\t\t\t\taccessor: \"TransactionType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Financial Institution\",\r\n\t\t\t\taccessor: \"FID\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Financial Institution Branch\",\r\n\t\t\t\taccessor: \"FIBranch\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Account Number\",\r\n\t\t\t\taccessor: \"AccountNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"Amount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Fee Amount\",\r\n\t\t\t\taccessor: \"FeeAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Status\",\r\n\t\t\t\taccessor: \"TransactionStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"EFT Type\",\r\n\t\t\t\taccessor: \"EFTType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Financial Institution Id\",\r\n\t\t\t\taccessor: \"FinancialInstitutionId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transit Number\",\r\n\t\t\t\taccessor: \"TransitNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"EFT Transaction Type\",\r\n\t\t\t\taccessor: \"EFTTransactionType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Direction\",\r\n\t\t\t\taccessor: \"Direction\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Source\",\r\n\t\t\t\taccessor: \"TransactionSource\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client User\",\r\n\t\t\t\taccessor: \"InsertUser\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Reference Number\",\r\n\t\t\t\taccessor: \"ReferenceNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Approve Date Time\",\r\n\t\t\t\taccessor: \"ApproveDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTimeUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Trace Reason\",\r\n\t\t\t\taccessor: \"TraceReason\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.MenuAuthorityRightHelper = new MenuAuthorityRightHelper();\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"EFT Trace Transactions\");\r\n\t\tthis.props.setAppCenterTitle(\"CLEARING & SETTLEMENT\");\r\n\t\tthis.setState({ loadingCompleted: true });\r\n\t\tthis.GetGridButtonsRight();\r\n\t}\r\n\r\n\tGetGridButtonsRight = async () => {\r\n\t\tconst { MenuCode } = this.props;\r\n\t\tvar gridButtonRightDetail = await this.MenuAuthorityRightHelper.RightCheckList(MenuCode, [\"EFTTRACECOMPLETE\"]);\r\n\t\tthis.setState({ gridButtonRightDetail });\r\n\t}\r\n\r\n\thandleChange(name, newValue) {\r\n\t\tif (name == \"ExportReportType\") {\r\n\t\t\tthis.setState({\r\n\t\t\t\tExportReportType: newValue\r\n\t\t\t});\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tconst model = { ...this.state.model };\r\n\t\t\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\r\n\t}\r\n\r\n\thandleGetList = () => {\r\n\r\n\t\tconst model = { ...this.state.model };\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/ClearingSettlement/GetEFTTraceTransactionsV2\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ data: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: AlertHelper.CreateAlert(title, message, type, () => this.setState({ alert: \"\" }))\r\n\t\t});\r\n\t}\r\n\r\n\thandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {},\r\n\t\t\tlist: [],\r\n\t\t});\r\n\t}\r\n\r\n\tGetExportButtonDialog() {\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t/>\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t);\r\n\t}\r\n\r\n\tExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.accessor != \"Actions\" && c.accessor != \"ED\" && (c.show == undefined || c.show)) {\r\n\t\t\t\ttrxColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\t\tconsole.log(this.trxTable);\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: trxColumns, ExportSelectedColumns: trxColumns });\r\n\t}\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tconst temp = { ...this.state.model };\r\n\r\n\t\tvar jsonColList = [];\r\n\r\n\t\tvar trxColumns = {};\r\n\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\ttrxColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t});\r\n\t\tjsonColList.push(trxColumns);\r\n\r\n\t\tvar mytitle = \"EFT Trace Transactions\";\r\n\r\n\t\ttemp.jsonFile = {\r\n\t\t\tcolmns: jsonColList,\r\n\t\t\tformat: this.state.ExportReportType,\r\n\t\t\ttitle: mytitle\r\n\t\t};\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\"/bankapi/v1.0/ClearingSettlement/GetEFTTraceTransactionExportDownload\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t},\r\n\t\t\tthis.props.showMessage\r\n\t\t);\r\n\t}\r\n\r\n\tGetHandleTraceApprove = (model) => async () => {\r\n\t\tif (!await this.props.showConfirmMessage(\"warning\", \"Warning\", \"Are you sure you want to save trace transaction as completed?\")) return;\r\n\r\n\t\tvar result = await this.props.ExecuteApiPost(\"/bankapi/v1.0/TransactionTrace/ApproveTracedTransactionById\", { Id: model.TransactionId });\r\n\t\tif (result) {\r\n\t\t\tthis.handleGetList();\r\n\t\t\tthis.props.showMessage(\"success\", \"Success\", \"Transaction Trace successfully saved as completed!\");\r\n\t\t}\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, isLoading, gridButtonRightDetail, data } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{this.GetExportButtonDialog()}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t x.Code == \"EFTTRACECOMPLETE\")?.HasAuthority\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tIcon={ApproveIcon}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tOnClick={this.GetHandleTraceApprove(row.original)} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsortable: false,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfilterable: false,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 60\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t...this.columns\r\n\t\t\t\t\t\t\t\t\t\t\t\t]\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t// ref={this.cpverTable}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\neftTraceTransactions.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\thandleOperationType: PropTypes.func,\r\n\tSelectedRowChange: PropTypes.func,\r\n\tshowQuestionMessage: func,\r\n\tsetAppLeftTitle: func,\r\n\tsetAppCenterTitle: func,\r\n\tDisabled: bool\r\n};\r\n\r\nexport default withArtifex(eftTraceTransactions, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent\";\r\nimport {\r\n GenericAlert,\r\n GenericDateInput,\r\n GenericExpansionPanel,\r\n GenericGrid,\r\n GenericSelectInput,\r\n GenericNumberInput,\r\n} from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport {\r\n ProgramCodes,\r\n GridColumnType,\r\n MenuCodes,\r\n BankingAccountTypes,\r\n ClientType,\r\n} from \"views/Constants/Constant.js\";\r\nimport moment from \"moment\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { TaskPool } from \"core/TaskPool.js\";\r\n\r\nclass CardTransaction extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n\r\n this.loadTaskPool = new TaskPool(\r\n this.handleLoadTaskPoolAppend,\r\n this.handleLoadTaskPoolCompleted\r\n );\r\n\r\n this.initialModel = {\r\n Id: 0,\r\n UniqueClientId: null,\r\n Customer: null,\r\n DefaultAccount: null,\r\n DefaultCard: null,\r\n CardId: null,\r\n ValidFrom: DateHelper.GetLocalDateAsUtc(),\r\n ValidTo: DateHelper.GetLocalDateAsUtc(),\r\n IsUniqueDataSearch: null,\r\n ReferenceNumber: null,\r\n };\r\n\r\n this.CloumnsData = [\r\n\t\t{\r\n\t\t\tHeader: \"Client Name\",\r\n\t\t\taccessor: \"UniqueClient.ClientName\"\r\n\t\t},\r\n {\r\n Header: \"Program\",\r\n accessor: \"Program.Description\",\r\n },\r\n {\r\n Header: \"Account Type\",\r\n accessor: \"BankingAccountType.ParameterDesc\",\r\n Cell: (row) => (\r\n
{this.RenderAccountTypeParameter(row.original)}
\r\n ),\r\n },\r\n {\r\n Header: \"Currency\",\r\n accessor: \"Currency.Code\",\r\n },\r\n {\r\n Header: \"Account Name\",\r\n accessor: \"AccountName\",\r\n },\r\n {\r\n Header: \"Transit\",\r\n accessor: \"Branch.TransitNo\",\r\n },\r\n {\r\n Header: \"Account Number\",\r\n accessor: \"AccountNumber\",\r\n Cell: (row) =>\r\n ClientHelper.IsClient()\r\n ? this.FilterIdentityNumber(row.value)\r\n : row.value,\r\n },\r\n {\r\n Header: \"Full Account Number\",\r\n accessor: \"IBAN\",\r\n Cell: (row) =>\r\n ClientHelper.IsClient()\r\n ? this.FilterIdentityNumber(row.value)\r\n : row.value,\r\n },\r\n {\r\n Header: \"Balance\",\r\n accessor: \"Balance\",\r\n Cell: (row) => (\r\n
\r\n {row.original.Balance == null || row.original.Balance == \"\"\r\n ? Formatter.FormatMoney(0)\r\n : Formatter.FormatMoney(row.original.Balance)}\r\n
\r\n ),\r\n },\r\n {\r\n Header: \"Pending Balance\",\r\n accessor: \"PendingBalance\",\r\n Cell: (row) => (\r\n
\r\n {row.original.PendingBalance == null ||\r\n row.original.PendingBalance == \"\"\r\n ? Formatter.FormatMoney(0)\r\n : Formatter.FormatMoney(row.original.PendingBalance)}\r\n
\r\n ),\r\n },\r\n {\r\n Header: \"Total Balance\",\r\n accessor: \"TotalBalance\",\r\n Cell: (row) => (\r\n
\r\n {row.original.Balance == null || row.original.Balance == \"\"\r\n ? Formatter.FormatMoney(0)\r\n : Formatter.FormatMoney(\r\n row.original.Balance +\r\n (row.original.PendingBalance == null ||\r\n row.original.PendingBalance == \"\"\r\n ? 0\r\n : row.original.PendingBalance)\r\n )}\r\n
\r\n ),\r\n },\r\n {\r\n Header: \"Existing System Account\",\r\n accessor: \"IsExistingSystemAccount\",\r\n Cell: (row) => (\r\n
\r\n {row.original.IsExistingSystemAccount == true ? \"Yes\" : \"No\"}\r\n
\r\n ),\r\n },\r\n {\r\n Header: \"Chequing Account\",\r\n accessor: \"IsChequingAccount\",\r\n Cell: (row) => (\r\n
{row.original.IsChequingAccount == true ? \"Yes\" : \"No\"}
\r\n ),\r\n },\r\n {\r\n Header: \"Account Status\",\r\n accessor: \"AccountStatus.ParameterDesc\",\r\n },\r\n {\r\n Header: \"Intend Use Of Account\",\r\n accessor: \"IntendUseOfAccount.ParameterDesc\",\r\n },\r\n {\r\n Header: \"Store\",\r\n accessor: \"Store\",\r\n Cell: (row) => {\r\n const store = row.value;\r\n const value =\r\n store != null ? store.StoreCode + \" - \" + store.StoreName : \"\";\r\n return
{value}
;\r\n },\r\n },\r\n ];\r\n\r\n this.state = {\r\n list: [],\r\n vModel: {},\r\n model: this.initialModel,\r\n filterModel: {},\r\n isLoading: false,\r\n LimitToken: false,\r\n LimitBalanceData: {\r\n AvailableCreditLimit: 0,\r\n AvailableDebitLimit: 0,\r\n AvailableBalance: 0,\r\n },\r\n };\r\n }\r\n\r\n handleLoadTaskPoolCompleted = () => {\r\n this.setState({ isLoading: false });\r\n };\r\n handleLoadTaskPoolAppend = () => {\r\n this.setState({ isLoading: true });\r\n };\r\n\r\n RenderAccountTypeParameter = (data) => {\r\n const global = { ...this.props.paramGlobalModel };\r\n if (data == null) {\r\n return \"\";\r\n }\r\n if (data.BankingAccountType == null) {\r\n return \"\";\r\n }\r\n if (\r\n data.BankingAccountType.ParameterValue == null ||\r\n data.BankingAccountType.ParameterValue == \"\"\r\n ) {\r\n return \"\";\r\n }\r\n if (\r\n data.BankingAccountType.ParameterValue !=\r\n BankingAccountTypes.PrimaryAccount\r\n ) {\r\n return data.BankingAccountType.ParameterDesc;\r\n }\r\n if (data.Program == null || data.Program.ProgramCode == null) {\r\n return data.BankingAccountType.ParameterDesc;\r\n }\r\n if (data.Program.ProgramCode != ProgramCodes.Bank_Programs_Bank_Account) {\r\n return data.BankingAccountType.ParameterDesc;\r\n }\r\n if (\r\n global.ClientType == ClientType.Corporate ||\r\n global.ClientType == ClientType.SalesAgentCorporate\r\n ) {\r\n return \"Corporate Account\";\r\n } else if (\r\n global.ClientType == ClientType.Personal ||\r\n global.ClientType == ClientType.SalesAgentPersonal\r\n ) {\r\n return \"Individual Account\";\r\n } else {\r\n return data.BankingAccountType.ParameterDesc;\r\n }\r\n };\r\n\r\n FilterIdentityNumber = (number) => {\r\n if (number == null) return \"\";\r\n\r\n var regexp = new RegExp(\"(.*)(.{4})\");\r\n var onEk = regexp.exec(number)[1].replace(/([^ ])/g, \"*\");\r\n var sonEk = regexp.exec(number)[2];\r\n\r\n return onEk + sonEk;\r\n };\r\n\r\n componentDidMount() {\r\n this.props.setAppLeftTitle(\"Client Account List\");\r\n this.props.setAppCenterTitle(\"CLIENT\");\r\n }\r\n\r\n IsValid = () => {\r\n var vmodel = { ...this.state.model };\r\n const kModel = { ...this.state.vModel };\r\n\r\n if (\r\n (!vmodel.IsUniqueDataSearch && vmodel.ValidFrom == null) ||\r\n vmodel.ValidFrom == \"\"\r\n ) {\r\n kModel.ValidFrom = true;\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"Select From Date to continue!\"\r\n );\r\n this.setState({\r\n kModel: kModel,\r\n });\r\n return false;\r\n } else {\r\n kModel.ValidFrom = false;\r\n }\r\n if (\r\n (!vmodel.IsUniqueDataSearch && vmodel.ValidTo == null) ||\r\n vmodel.ValidTo == \"\"\r\n ) {\r\n kModel.ValidTo = true;\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"Select To Date to continue!\"\r\n );\r\n this.setState({\r\n kModel: kModel,\r\n });\r\n return false;\r\n } else {\r\n kModel.ValidTo = false;\r\n }\r\n\r\n if (\r\n !vmodel.IsUniqueDataSearch &&\r\n typeof vmodel.ValidFrom != \"object\" &&\r\n vmodel.ValidFrom != \"\" &&\r\n vmodel.ValidFrom != null\r\n ) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"From Date is invalid\"\r\n );\r\n return false;\r\n }\r\n\r\n if (\r\n !vmodel.IsUniqueDataSearch &&\r\n typeof vmodel.ValidTo != \"object\" &&\r\n vmodel.ValidTo != \"\" &&\r\n vmodel.ValidTo != null\r\n ) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"To Date is invalid\"\r\n );\r\n return false;\r\n }\r\n\r\n if (\r\n !vmodel.IsUniqueDataSearch &&\r\n typeof vmodel.ValidFrom == \"object\" &&\r\n typeof vmodel.ValidTo == \"object\" &&\r\n vmodel.ValidTo < vmodel.ValidFrom\r\n ) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"From Date cannot be greater than To Date!\"\r\n );\r\n return false;\r\n }\r\n\r\n if (\r\n !vmodel.IsUniqueDataSearch &&\r\n typeof vmodel.ValidFrom == \"object\" &&\r\n typeof vmodel.ValidTo == \"object\"\r\n ) {\r\n var interval = moment\r\n .duration(vmodel.ValidTo.diff(vmodel.ValidFrom))\r\n .asDays();\r\n if (interval > 30) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"Between two dates cannot be longer than 30 days!\"\r\n );\r\n return false;\r\n }\r\n }\r\n this.setState({\r\n kModel: kModel,\r\n });\r\n return true;\r\n };\r\n\r\n handleChange = (name, newValue) => {\r\n const model = { ...this.state.model };\r\n const initialModel = { ...this.initialModel };\r\n if (name === \"UniqueClientId\") {\r\n if (\r\n ClientHelper.IsClient() &&\r\n initialModel.UniqueClientId == null &&\r\n newValue != null\r\n ) {\r\n this.initialModel.UniqueClientId = newValue;\r\n console.log(this.initialModel.UniqueClientId + \"initial\");\r\n }\r\n model.UniqueClientId = newValue;\r\n console.log(model.UniqueClientId + \"model\");\r\n }\r\n this.setState({ model });\r\n };\r\n\r\n HandleClear = () => {\r\n this.setState({\r\n model: this.initialModel,\r\n filterModel: {},\r\n selected: null,\r\n list: [],\r\n });\r\n };\r\n\r\n HandleSearch = () => {\r\n if (!this.IsValid()) return;\r\n\r\n const model = { ...this.state.model };\r\n this.setState({ isLoading: true });\r\n\r\n this.loadTaskPool.AppendTask(\r\n Proxy.GET(\r\n \"/bankapi/v1.0/Account/GetByCustomerIdForClientSetup/Id?Id=\" +\r\n model.UniqueClientId,\r\n (responseData) => {\r\n console.log(\r\n \"GetCustomerDCBankAccountModels ->\",\r\n responseData.IsSucceeded\r\n );\r\n\r\n if (!responseData.IsSucceeded) {\r\n this.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n return;\r\n }\r\n if (responseData.Item != null) {\r\n this.setState({\r\n model,\r\n list: responseData.Item,\r\n });\r\n }\r\n },\r\n (error) => {\r\n this.ShowMessage(\"error\", \"Error\", error);\r\n }\r\n )\r\n );\r\n };\r\n\r\n ShowMessage = (type, title, message) => {\r\n this.setState({\r\n alert: (\r\n this.setState({ alert: \"\" })}\r\n />\r\n ),\r\n });\r\n };\r\n\r\n render() {\r\n const { Disabled } = this.props;\r\n const { alert, model, list, isLoading, vModel } = this.state;\r\n\r\n return (\r\n
\r\n \r\n {alert}\r\n 0,\r\n ModelFunction: () => model,\r\n FillDataFromModel: (model) => this.setState({ model }),\r\n },\r\n { Code: \"Clear\", OnClick: this.HandleClear, Disabled: Disabled },\r\n ]}\r\n menuId={this.props.menuId}\r\n ApprovalData={this.props.ApprovalData}\r\n After={this.props.After}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n `${d.UniqueClientId} - ${d.Name}`}\r\n Value={model.UniqueClientId || \"\"}\r\n ValueChanged={this.handleChange}\r\n CanClear\r\n All\r\n Disabled={ClientHelper.IsClient()}\r\n DefaultIndex={ClientHelper.IsClient() ? 0 : -1}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\nCardTransaction.propTypes = {\r\n classes: PropTypes.object,\r\n setAppLeftTitle: PropTypes.func,\r\n setAppCenterTitle: PropTypes.func,\r\n Disabled: PropTypes.bool,\r\n};\r\n\r\nexport default withArtifex(CardTransaction, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericNumberInput, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericCheckInput } from \"views/Components/Generic\";\r\nimport { ParameterEmptyObject } from \"views/Constants/Constant.Parameter\";\r\nimport { SortedName } from \"views/Constants/Constant.Sorted\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\nimport { Proxy } from \"core\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\n\r\nclass ClientAutoDepositProfileDefinition extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"UniqueClient.ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Source Account Number\",\r\n\t\t\t\taccessor: \"SourceAccount.AccountNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Destination Account Number\",\r\n\t\t\t\taccessor: \"DestinationAccount.AccountNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Active\",\r\n\t\t\t\taccessor: \"IsActive\",\r\n\t\t\t\ttype: GridColumnType.YesNo,\r\n\t\t\t\tColumnType: GridColumnType.YesNo\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Monday Limit\",\r\n\t\t\t\taccessor: \"MondayLimit\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Tuesday Limit\",\r\n\t\t\t\taccessor: \"TuesdayLimit\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Wednesday Limit\",\r\n\t\t\t\taccessor: \"WednesdayLimit\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Thursday Limit\",\r\n\t\t\t\taccessor: \"ThursdayLimit\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Friday Limit\",\r\n\t\t\t\taccessor: \"FridayLimit\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Saturday Limit\",\r\n\t\t\t\taccessor: \"SaturdayLimit\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sunday Limit\",\r\n\t\t\t\taccessor: \"SundayLimit\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tCurrencyId: 0\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tisEdit: false\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"CLIENT\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Client AutoLimit Profile Definition\");\r\n\t\t}\r\n\t}\r\n\r\n\tValueChanged = (name, value, data) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\tif(name == \"SourceAccountId\"){\r\n\t\t\t\tmodel[\"CurrencyId\"] = data.CurrencyId;\r\n\t\t\t}\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\r\n\t\tvar result = await ExecuteApiPost(\"/bankapi/v1.0/ClientAutoDepositProfile/Search\", model);\r\n\r\n\t\tthis.setState({ list: result || [] });\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, isEdit: false });\r\n\t}\r\n\r\n\t\r\n\tGetRenderItemAccount = (x) => {\r\n\t\tconst { model } = this.state;\r\n\t\tthis.renderItemAccount = `${x.AccountNumber} - ${x.AccountName} - ${x.CurrencyCode}`;\r\n\t\treturn this.renderItemAccount;\r\n\t}\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tlet { model, list } = this.state;\r\n\t\tmodel = list[index];\r\n\t\tmodel.CurrencyId = model.DestinationAccount.CurrencyId;\r\n\t\tthis.setState({ isEdit: true, model, index });\r\n\t\tconsole.log(model);\r\n\t}\r\n\r\n\tHandleSubmit = () => {\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/dynamic/do\",\r\n\t\t\t{\r\n\t\t\t\toperation: this.state.isEdit ? \"Update\" : \"Insert\",\r\n\t\t\t\tdataModel: \"Bank.ClientAutoDepositProfile\",\r\n\t\t\t\tvalue: this.state.model\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ model: { ...this.initialModel }, index: -1 });\r\n\t\t\t\t\tthis.props.showMessage(\"success\", \"Succeeded\", \"Operation is successfully!\");\r\n\t\t\t\t\tthis.Search();\r\n\t\t\t\t\tthis.Clear();\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleDelete = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/dynamic/do\",\r\n\t\t\t{\r\n\t\t\t\toperation: \"Delete\",\r\n\t\t\t\tdataModel: \"Bank.ClientAutoDepositProfile\",\r\n\t\t\t\tvalue: { Id: this.state.model.Id }\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ model: { ...this.initialModel }, index: -1 });\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Succeeded\", \"Deleted successfully!\");\r\n\t\t\t\tthis.Search();\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, list, isLoading } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\r\n\t\t\t\t 0\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{ \r\n\t\t\t\t\t\t\tCode: \"Update\", \r\n\t\t\t\t\t\t\tOnClick: this.HandleSubmit, \r\n\t\t\t\t\t\t\tDisabled: Disabled || model.Id === 0\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{ \r\n\t\t\t\t\t\t\tCode: \"Delete\", \r\n\t\t\t\t\t\t\tOnClick: this.HandleDelete, \r\n\t\t\t\t\t\t\tDisabled: Disabled || model.Id === 0 \r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t 0 && model.UniqueClientId > 0 ? \"/bankapi/v1.0/Account/GetClientAccountsByCurrency\" : \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\tParameter={{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tUniqueClientId: model.UniqueClientId,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCurrencyId: model.CurrencyId\r\n\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"AccountId\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tTextValueMember=\"AccountNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tRenderItem={this.GetRenderItemAccount}\r\n\t\t\t\t\t\t\t\t\t\t\t\tSorted={{ Member: \"AccountNumber\" }}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={!(model.SourceAccountId > 0 && model.UniqueClientId > 0)}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={model.DestinationAccountId}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.ValueChanged} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t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PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default ClientAutoDepositProfileDefinition;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericNumberInput, GenericSelectInput, GenericLabel } from \"views/Components/Generic\";\r\nimport { ClientType, FeeProfileType, SalesChannel } from \"views/Constants/Constant.js\";\r\nimport { withArtifex } from \"core\";\r\n\r\nclass ContractApprove extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tApprovalData: {}\r\n\t\t};\r\n\t}\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.ApprovalData };\r\n\t\tif (name == \"SalesChannelTypeId\" && data != null) {\r\n\t\t\tif (data.ParameterValue == SalesChannel.SalesPerson) {\r\n\t\t\t\tmodel.IsSalesChannel = true;\r\n\t\t\t} else {\r\n\t\t\t\tmodel.IsSalesChannel = false;\r\n\t\t\t\tmodel.SalesChannelTypeId = null;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (name == \"ProgramId\") {\r\n\t\t\tmodel.LimitProfileId = 0;\r\n\t\t\tmodel.FeeProfileId = 0;\r\n\t\t\tmodel.CommissionFeeProfileId = 0;\r\n\t\t}\r\n\t\tif (name == \"FeeProfileId\" && data != null) {\r\n\t\t\tif (data.FeeProfileType != null && data.FeeProfileType.ParameterValue == FeeProfileType.UnWeighed) {\r\n\t\t\t\tmodel.IsUnWeighedFeeProfile = true;\r\n\t\t\t} else {\r\n\t\t\t\tmodel.IsUnWeighedFeeProfile = false;\r\n\t\t\t}\r\n\r\n\t\t\tif (data.FeeProfileType != null && data.FeeProfileType.ParameterValue == FeeProfileType.CombineUnWeighted) {\r\n\t\t\t\tmodel.IsCombineUnWeighedFeeProfile = true;\r\n\t\t\t} else {\r\n\t\t\t\tmodel.IsCombineUnWeighedFeeProfile = false;\r\n\t\t\t}\r\n\r\n\t\t\tmodel.AggrementPriorityTransactionCount = null;\r\n\t\t\tmodel.AggrementRegularTransactionCount = null;\r\n\t\t\tmodel.AggrementTransactionCount = null;\r\n\r\n\t\t}\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ ApprovalData: model });\r\n\t}\r\n\r\n\tupdateCustomerContract = (workflowId, after, accessToken) => {\r\n\t\tvar temp = this.state.ApprovalData;\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/CustomerContract/Update\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.showErrorMessage(\"Error \" + responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.showSuccessMessage();\r\n\t\t\t\t}\r\n\t\t\t\tif (after) after();\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.showErrorMessage(\"Error \" + error);\r\n\t\t\t},\r\n\t\t\tworkflowId,\r\n\t\t\taccessToken\r\n\t\t);\r\n\t}\r\n\r\n\tClearData = () => {\r\n\r\n\t}\r\n\r\n\tshowSuccessMessage = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tshowErrorMessage = (message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\trender() {\r\n\t\tconst { paramGlobalModel, Disabled } = this.props;\r\n\t\tconst { ApprovalData } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\t\t this.ClearData(), Disabled: Disabled },\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Submit\", OnClick: this.updateCustomerContract, Disabled: Disabled,\r\n\t\t\t\t\t\t\tModelFunction: () => {\r\n\t\t\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\t\t\tApprovalData: this.state.ApprovalData\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\tFillDataFromModel: model => {\r\n\t\t\t\t\t\t\t\tthis.setState({ ApprovalData: model });\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\tRowId: ApprovalData == null ? 0 : ApprovalData.Id\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
Main Parameters
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t 0}\r\n\t\t\t\t\t\t\t\t\t\t\t\tName=\"ProgramId\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tLabelText=\"Program\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={ApprovalData == null ? \"\" : ApprovalData.ProgramId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"Id\" TextValueMember=\"Description\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tMethod=\"GET\" Url=\"/bankapi/v1.0/Bank/ValidBankProgramsForLimitProfile\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tDataRoot=\"Item\" />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{paramGlobalModel && (paramGlobalModel.ClientType == ClientType.SalesAgentPersonal || paramGlobalModel.ClientType == ClientType.SalesAgentCorporate) && (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t{paramGlobalModel && (paramGlobalModel.ClientType == ClientType.Personal || paramGlobalModel.ClientType == ClientType.Corporate) && (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t 0) == false} MinDate={ApprovalData && ApprovalData.AgreementEndDate ? DateHelper.ToMoment(ApprovalData.AgreementEndDate) : null} Name=\"LastRenewalDate\" LabelText=\"Last Renewal Date\" Value={ApprovalData == null ? \"\" : ApprovalData.LastRenewalDate == null ? \"\" : DateHelper.ToDateInputValue(ApprovalData.LastRenewalDate) || \"\"} ValueChanged={this.handleChange} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{ApprovalData != null && ((ApprovalData.SalesChannelType != null && ApprovalData.SalesChannelType.ParameterValue == SalesChannel.SalesPerson) || (ApprovalData.IsSalesChannel == true)) && (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t{paramGlobalModel && (paramGlobalModel.ClientType == ClientType.SalesAgentCorporate || paramGlobalModel.ClientType == ClientType.SalesAgentPersonal) && (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t{((ApprovalData != null && ApprovalData.IsUnWeighedFeeProfile) || (ApprovalData != null && ApprovalData.AggrementPriorityTransactionCount != null)) && (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t{((ApprovalData != null && ApprovalData.IsUnWeighedFeeProfile) || (ApprovalData != null && ApprovalData.AggrementRegularTransactionCount != null)) && (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t{((ApprovalData != null && ApprovalData.IsCombineUnWeighedFeeProfile) || (ApprovalData != null && ApprovalData.AggrementTransactionCount != null)) && (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nContractApprove.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(ContractApprove, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericLabel, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport { BankingAccountTypes } from \"views/Constants/Constant.js\";\r\n\r\nclass DCBankAccountApprove extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tApprovalData: {},\r\n\t\t\tbranchModel: {}\r\n\t\t};\r\n\t}\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.ApprovalData };\r\n\t\tconst branch = { ...this.state.branchModel };\r\n\t\tmodel[name] = newValue;\r\n\t\tif (name == \"FinancialInstitutionId\" && data != null) {\r\n\t\t\tbranch.FinancialInstitutionDescription = data.Description;\r\n\t\t\tmodel.BankNumber = data.FinancialInstitutionId;\r\n\t\t}\r\n\t\tif (name == \"FinancialInstitutionBranchId\" && data != null) {\r\n\t\t\tbranch.FinancialInstitutionBranchDescription = data.Description;\r\n\t\t\tbranch.FinancialInstitutionBranchAddress1 = data.Address1;\r\n\t\t\tbranch.FinancialInstitutionBranchAddress2 = data.Address2;\r\n\t\t\tmodel.BranchNumber = data.TransitNumber;\r\n\t\t}\r\n\t\tif (name == \"BankingAccountTypeId\" && data != null) {\r\n\t\t\tif (data.ParameterValue == BankingAccountTypes.FeeAccount) {\r\n\t\t\t\tmodel.IsFeeAccount = true;\r\n\t\t\t} else {\r\n\t\t\t\tmodel.IsFeeAccount = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.setState({ ApprovalData: model, branchModel: branch });\r\n\t}\r\n\r\n\tupdateAccount = (workflowId, after, accessToken) => {\r\n\t\tvar temp = this.state.ApprovalData;\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Account/Update\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.showErrorMessage(\"Error \" + responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.showSuccessMessage();\r\n\t\t\t\t}\r\n\t\t\t\tif (after) after();\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.showErrorMessage(\"Error \" + error);\r\n\t\t\t},\r\n\t\t\tworkflowId,\r\n\t\t\taccessToken\r\n\t\t);\r\n\t}\r\n\r\n\tClearData = () => {\r\n\r\n\t}\r\n\r\n\tshowSuccessMessage = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tshowErrorMessage = (message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { ApprovalData } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\t\t this.ClearData(), Disabled: Disabled },\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Submit\", OnClick: this.updateAccount, Disabled: Disabled,\r\n\t\t\t\t\t\t\tModelFunction: () => {\r\n\t\t\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\t\t\tApprovalData: this.state.ApprovalData\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\tFillDataFromModel: model => {\r\n\t\t\t\t\t\t\t\tthis.setState({ ApprovalData: model });\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\tRowId: ApprovalData == null ? 0 : ApprovalData.Id\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
{window.Title} Accounts
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t 0}\r\n\t\t\t\t\t\t\t\t\t\t\t\tName=\"ProgramId\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tLabelText=\"Program\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={ApprovalData == null ? \"\" : ApprovalData.ProgramId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"Id\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tTextValueMember=\"Description\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tMethod=\"GET\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tUrl=\"/bankapi/v1.0/Bank/ValidBankProgramsForLimitProfile\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tDataRoot=\"Item\" />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t 0 ? true : Disabled}\r\n\t\t\t\t\t\t\t\t\t\t\t\tName=\"BankingAccountTypeId\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tLabelText=\"Account Type\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tMethod=\"POST\" Url=\"/coreapi/v1.0/Parameter/Search\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tParameter={{ ParameterCode: \"BankingAccountType\", ParameterValue2: \"SettlementAccount\" }}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"Id\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tTextValueMember=\"ParameterDesc\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={ApprovalData == null ? \"\" : ApprovalData.BankingAccountTypeId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{ApprovalData != null && ApprovalData.Id == 0 && ((ApprovalData.BankingAccountType != null && ApprovalData.BankingAccountType.ParameterValue == BankingAccountTypes.FeeAccount) || (ApprovalData.IsFeeAccount == true)) && (\r\n\t\t\t\t\t\t\t\t\t\t 0 ? true : Disabled}\r\n\t\t\t\t\t\t\t\t\t\t\tName=\"FeeAccountMinBalanceId\"\r\n\t\t\t\t\t\t\t\t\t\t\tLabelText=\"Fee Account Min. Balance\"\r\n\t\t\t\t\t\t\t\t\t\t\tMethod=\"POST\"\r\n\t\t\t\t\t\t\t\t\t\t\tUrl=\"/coreapi/v1.0/Parameter/Search\"\r\n\t\t\t\t\t\t\t\t\t\t\tParameter={{ ParameterCode: \"FeeAccountBalanceAmount\" }}\r\n\t\t\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"Id\"\r\n\t\t\t\t\t\t\t\t\t\t\tTextValueMember=\"ParameterDesc\"\r\n\t\t\t\t\t\t\t\t\t\t\tValue={ApprovalData == null ? \"\" : ApprovalData.FeeAccountMinBalanceId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange} />\r\n\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nDCBankAccountApprove.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(DCBankAccountApprove, {});","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericDialog, GenericDialogActions, GenericGrid, GenericLabel, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { ClientType, GridColumnType } from \"views/Constants/Constant\";\r\nimport ClientSummaryTab from \"../BankingClientSetup/ClientSteps/ClientSummaryTab\";\r\n\r\nclass ContractList extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tparamGlobalModel: {},\r\n\t\t\tparamCustomerProfile: {},\r\n\t\t\tparamBankCustomerCorporate: {},\r\n\t\t\tparamBankCustomerInternalAccountList: [],\r\n\t\t\tparamBankCustomerExternalAccountList: [],\r\n\t\t\tparamBankCustomerSecurityList: [],\r\n\t\t\tmodel: {},\r\n\t\t\tdata: [],\r\n\t\t\tcontract: {},\r\n\t\t\taccountModel: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tisConfirmDialogOpen: false\r\n\t\t};\r\n\r\n\t}\r\n\tshowErrorMessage = (message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({\r\n\t\t\t\talert: null,\r\n\t\t\t\tisLoading: false\r\n\t\t\t})} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Contract List\");\r\n\t\tthis.props.setAppCenterTitle(\"CLIENT\");\r\n\t}\r\n\tSelectedRowChange = (index) => {\r\n\t\tconst { data } = this.state;\r\n\t\tif (index != null && data != null && data[index] != null && data[index].UniqueClientId != null && data[index].UniqueClientId > 0) {\r\n\t\t\tthis.GetCustomerContractModel(data[index].Id)\r\n\t\t\tthis.GetCorporateProfile(data[index].UniqueClientId);\r\n\t\t\tthis.GetCustomerProfile(data[index].UniqueClientId);\r\n\t\t\tthis.GetCustomerSecurityModels(data[index].UniqueClientId);\r\n\t\t\tthis.GetCustomerExternalBankAccountModels(data[index].UniqueClientId);\r\n\t\t\tthis.GetCustomerDCBankAccountModels(data[index].UniqueClientId);\r\n\t\t}\r\n\t\tconst { contract, paramGlobalModel, paramCustomerProfile, paramBankCustomerCorporate, paramBankCustomerInternalAccountList, paramBankCustomerExternalAccountList, paramBankCustomerSecurityList } = this.state;\r\n\t\tif ((!contract) || (!paramGlobalModel) || (!paramBankCustomerInternalAccountList) || (!paramBankCustomerExternalAccountList) || (!paramBankCustomerSecurityList) || ((!paramCustomerProfile) && (!paramBankCustomerCorporate))) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({ isConfirmDialogOpen: true });\r\n\t}\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, data: [], isLoading: false, accountModel: {} });\r\n\t}\r\n\tSearch = () => {\r\n\t\tlet { accountModel } = this.state;\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/CustomerContract/SearchContract\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tconsole.log(\"Error!\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (responseData.Item != null) {\r\n\r\n\t\t\t\t\taccountModel.FeeAccount = responseData.Item.reduce(function (acc, val) { return acc + val.FeeAccount; }, 0);\r\n\t\t\t\t\taccountModel.SecurityAccount = responseData.Item.reduce(function (acc, val) { return acc + val.SecurityAccount; }, 0);\r\n\t\t\t\t\taccountModel.AdditionalAccount = responseData.Item.reduce(function (acc, val) { return acc + val.AdditionalAccount; }, 0);\r\n\t\t\t\t\taccountModel.StoreAccount = responseData.Item.reduce(function (acc, val) { return acc + val.StoreAccount; }, 0);\r\n\t\t\t\t\taccountModel.PrimaryAccount = responseData.Item.reduce(function (acc, val) { return acc + val.PrimaryAccount; }, 0);\r\n\t\t\t\t\taccountModel.TotalContract = responseData.Item.reduce(function (acc, val) { return acc + val.PrimaryAccount + val.AdditionalAccount + val.FeeAccount + val.SecurityAccount + val.StoreAccount; }, 0);\r\n\t\t\t\t\taccountModel.TotalBalance = responseData.Item.reduce(function (acc, val) { return acc + val.AccountBalance; }, 0);\r\n\r\n\t\t\t\t\tthis.setState({ data: responseData.Item || [], accountModel });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\te => {\r\n\t\t\t\tconsole.log(\"Error!\");\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t}\r\n\t\t);\r\n\r\n\t}\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst temp = { ...this.state.model };\r\n\t\ttemp[name] = newValue;\r\n\t\tthis.setState({ model: temp });\r\n\t}\r\n\tGetCorporateProfile = (UniqueClientId) => {\r\n\t\tProxy.GET(\r\n\t\t\t\"/bankapi/v1.0/CustomerCorporate/GetCorporateById/Id?Id=\" + UniqueClientId,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.showErrorMessage(responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tconst model = { ...this.state.paramGlobalModel };\r\n\t\t\t\t\tmodel.UniqueClientId = responseData.Item.UniqueClient.UniqueClientId;\r\n\t\t\t\t\tmodel.CustomerName = responseData.Item.Name;\r\n\t\t\t\t\tmodel.Id = responseData.Item.UniqueClientId;\r\n\t\t\t\t\tmodel.ClientType = responseData.Item.ClientType;\r\n\t\t\t\t\tthis.setState({ paramGlobalModel: model, paramBankCustomerCorporate: responseData.Item || {} });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\te => {\r\n\t\t\t\tconsole.log(\"Error!\");\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tGetCustomerProfile = (UniqueClientId) => {\r\n\t\tProxy.GET(\r\n\t\t\t\"/bankapi/v1.0/BankCustomer/GetById/Id?Id=\" + UniqueClientId,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tconst model = { ...this.state.paramGlobalModel };\r\n\t\t\t\t\tmodel.UniqueClientId = responseData.Item.UniqueClient.UniqueClientId;\r\n\t\t\t\t\tmodel.CustomerName = responseData.Item.Name;\r\n\t\t\t\t\tmodel.Id = responseData.Item.UniqueClientId;\r\n\t\t\t\t\tmodel.ClientType = responseData.Item.ClientType;\r\n\t\t\t\t\tthis.setState({ paramGlobalModel: model, paramCustomerProfile: responseData.Item || {} });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\te => {\r\n\t\t\t\tconsole.log(\"Error!\");\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tGetCustomerSecurityModels = (UniqueClientId) => {\r\n\t\tProxy.GET(\r\n\t\t\t\"/bankapi/v1.0/CustomerSecurity/GetByCustomerId/Id?Id=\" + UniqueClientId,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.showErrorMessage(responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ paramBankCustomerSecurityList: responseData.Item || [] });\r\n\t\t\t},\r\n\t\t\te => {\r\n\t\t\t\tconsole.log(\"Error!\");\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tGetCustomerExternalBankAccountModels = (UniqueClientId) => {\r\n\t\tProxy.GET(\r\n\t\t\t\"/bankapi/v1.0/CustomerSettlementAccount/GetByCustomerId/Id?Id=\" + UniqueClientId,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.showErrorMessage(responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ paramBankCustomerExternalAccountList: responseData.Item || [] });\r\n\t\t\t},\r\n\t\t\te => {\r\n\t\t\t\tconsole.log(\"Error!\");\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tGetCustomerDCBankAccountModels = (UniqueClientId) => {\r\n\t\tProxy.GET(\r\n\t\t\t\"/bankapi/v1.0/Account/GetByCustomerId/Id?Id=\" + UniqueClientId,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.showErrorMessage(responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ paramBankCustomerInternalAccountList: responseData.Item || [] });\r\n\t\t\t},\r\n\t\t\te => {\r\n\t\t\t\tconsole.log(\"Error!\");\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tGetCustomerContractModel = (ContractId) => {\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/CustomerContract/GetById\",\r\n\t\t\t{ Id: ContractId },\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.showErrorMessage(responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ contract: responseData.Item || {} });\r\n\t\t\t},\r\n\t\t\te => {\r\n\t\t\t\tconsole.log(\"Error!\");\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\trender() {\r\n\t\tconst { accountModel, model, data } = this.state;\r\n\t\tconst { Disabled, classes } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t{this.state.alert}\r\n\t\t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\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
{row.value}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Contract Status\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ContractStatusStr\"\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Sales Person/Agent\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"SalesAgentUniqueClintNumber\",\r\n\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
{row.value ? \"(\" + row.value + \")\" + \" \" + row.original.SalesPerson : \"-\"}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Created Date\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Agreement Start Date\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"AgreementStartDate\",\r\n\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Agreement End Date\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"AgreementEndDate\",\r\n\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Sales Channel\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"SalesChannelTypeStr\"\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Renewal Type\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"RenewalTypeStr\"\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Last Renewal Date\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"LastRenewalDate\",\r\n\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Notification Period\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"NotificationPeriod\"\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Limit Profile\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"LimitProfileStr\"\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Fee Profile\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"FeeProfileStr\"\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Fee Account\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"FeeAccount\"\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Security Account\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"SecurityAccount\"\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Store Account\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"StoreAccount\"\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Additional Account\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"AdditionalAccount\"\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Funding Account\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"PrimaryAccount\"\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Balance\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"AccountBalance\",\r\n\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\t\tRowSelected={index => {\r\n\t\t\t\t\t\t\t\t\t\t\tthis.SelectedRowChange(index);\r\n\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\tSelectedIndex={this.state.rowIndex}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t{/* \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t this.setState({ isConfirmDialogOpen: false })}>\r\n\t\t\t\t\t\t\t\t\tclose\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t */}\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t
\r\n\r\n\t\t);\r\n\t}\r\n}\r\nContractList.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func\r\n};\r\n\r\n\r\nexport default withArtifex(ContractList, {});","import { DialogContent, DialogTitle, Slide } from \"@material-ui/core\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport { DeleteIcon, EditIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericTitle, GenericDateInput, GenericDialog, GenericGrid, GenericDialogActions, GenericEmailInput, GenericLabel, GenericNumberInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport moment from \"moment\";\r\nimport { ClientType, ProgramCodes } from \"views/Constants/Constant.js\";\r\n\r\n\r\nfunction Transition(props) {\r\n\treturn ;\r\n}\r\n\r\nclass CustomerContactList extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tconsole.log(this.props)\r\n\r\n\t\tthis.isBackoffice = ClientHelper.IsBackOffice();\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tClientCustomerId: this.props.ClientCustomerId,\r\n\t\t\tIsClientCustomerPayee: this.props.IsClientCustomerPayee,\r\n\t\t\tProgramCode: this.props.ProgramCode,\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tvModel: {},\r\n\t\t\tphoneModel: {},\r\n\t\t\tlist: [],\r\n\t\t\tUniqueClientId: props.UserContext.user.UniqueClientId,\r\n\t\t\tIsContactPopUpOpen: false,\r\n\t\t\tisPersonal: null,\r\n\t\t\tisLoading: false,\r\n\t\t\tselected: -1,\r\n\t\t\talert: null,\r\n\t\t\tContactSelectKey: false,\r\n\t\t\tMustBeCountryCanada: false\r\n\t\t};\r\n\r\n\t\tthis.maxLength20 = { maxLength: 20 };\r\n\t\tthis.maxLength30 = { maxLength: 30 };\r\n\t\tthis.maxLength64 = { maxLength: 64 };\r\n\t\tthis.maxLength100 = { maxLength: 100 };\r\n\t\tthis.marginLeft2 = { marginLeft: 2 };\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.parameterCustomerName = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: props.UserContext.user.UniqueClientId\r\n\t\t};\r\n\t\tconsole.log(this.parameterCustomerName);\r\n\r\n\t\tthis.parameterClientType = {\r\n\t\t\tParameterCode: \"ClientType\",\r\n\t\t\tParameterValue3: \"D\"\r\n\t\t};\r\n\r\n\t\tthis.parameterLanguage = {\r\n\t\t\tParameterCode: \"Language\"\r\n\t\t};\r\n\r\n\t\tthis.parameterCountry = {};\r\n\t\tthis.parameterProvince = {};\r\n\r\n\t\tthis.sortedOrderIndex = { Member: \"OrderIndex\" };\r\n\t\tthis.sortedParameterDesc = { Member: \"ParameterDesc\" };\r\n\r\n\t\tthis.renderItemPhoneCode = {};\r\n\t\tthis.getappCenterTitle = \"Empty\";\r\n\t\tthis.getappLeftTitle = \"Empty\";\r\n\t\tthis.ColumnsData = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t { this.SelectedRowChange(row.index); }} />\r\n\t\t\t\t\t\t { this.HandleDelete(row.original.Id); }} />\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\twidth: 100\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"ClientCustomer.CustomerName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Contact Name\",\r\n\t\t\t\taccessor: \"AliasName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Contact E-Mail\",\r\n\t\t\t\taccessor: \"Email\"\r\n\t\t\t}\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\r\n\t\tif (setAppLeftTitle) setAppLeftTitle(\"Customer Contacts\");this.getappLeftTitle = \"Customer Contacts\";\r\n\t\tif (setAppCenterTitle) setAppCenterTitle(\"CUSTOMER SYSTEM\");this.getappCenterTitle = \"CUSTOMER SYSTEM\";\r\n\t\tthis.FetchCanadaPost();\r\n\t\tthis.GetCanadaCountry();\r\n\t}\r\n\r\n\tContactPopUpCallback = () => { this.setState({ IsContactPopUpOpen: !this.state.IsContactPopUpOpen }); }\r\n\r\n\tFetchCanadaPost = () => {\r\n\t\tvar parent = this;\r\n\r\n\t\tProxy.POST(\"/coreapi/v1.0/Parameter/Search\",\r\n\t\t\t{\r\n\t\t\t\tParameterCode: \"CanadaPostApiKey\",\r\n\t\t\t\tParameterValue: \"CP\"\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tconsole.log(\"Canada Post Api key not fetched !\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item == null) {\r\n\t\t\t\t\tconsole.log(\"Canada Post Api key not fetched !\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item[0] == null) {\r\n\t\t\t\t\tconsole.log(\"Canada Post Api key not fetched !\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvar apikey = responseData.Item[0].ParameterDesc;\r\n\t\t\t\tconsole.log(\"KEY CP \", apikey);\r\n\r\n\t\t\t\tvar url = window.CanadaPostAddressCompleteUrl;\r\n\t\t\t\tvar path = url + apikey;\r\n\t\t\t\tvar CanadaPostRequest=this.SubmitCanadaPostRequest;\r\n\t\t\t\tvar pca;\r\n\r\n\t\t\t\tvar CanadaPostSubmit = this.SubmitCanadaPostAddressModel;\r\n\r\n\t\t\t\tconst script = document.createElement(\"script\");\r\n\t\t\t\tscript.src = path;\r\n\t\t\t\tscript.async = false;\r\n\t\t\t\tdocument.head.appendChild(script);\r\n\t\t\t\tscript.onload = function () {\r\n\t\t\t\t\tpca = window.pca;\r\n\t\t\t\t\tif (pca != null) {\r\n\t\t\t\t\t\tvar fields =\r\n\t\t\t\t\t\t\t[\r\n\t\t\t\t\t\t\t\t{ element: \"street-address\", field: \"Line1\", mode: pca.fieldMode.SEARCH },\r\n\t\t\t\t\t\t\t\t{ element: \"street-address2\", field: \"Line2\", mode: pca.fieldMode.POPULATE },\r\n\t\t\t\t\t\t\t\t{ element: \"postcode\", field: \"PostalCode\", mode: pca.fieldMode.SEARCH },\r\n\t\t\t\t\t\t\t],\r\n\t\t\t\t\t\t\toptions = {\r\n\t\t\t\t\t\t\t\tkey: apikey\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\tcontrol = new pca.Address(fields, options);\r\n\t\t\t\t\t\tCanadaPostRequest();\r\n\t\t\t\t\t\tcontrol.listen(\"populate\", function (address) {\r\n\t\t\t\t\t\t\tCanadaPostSubmit(address);\r\n\t\t\t\t\t\t\tparent.setState(state => {\r\n\t\t\t\t\t\t\t\tstate.model.Address1 = address.Line1;\r\n\t\t\t\t\t\t\t\tstate.model.Address2 = address.Line2;\r\n\t\t\t\t\t\t\t\tstate.model.ZipCode = address.PostalCode;\r\n\t\t\t\t\t\t\t\treturn state;\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\te => {\r\n\t\t\t\tconsole.log(\"Canada Post Api key not fetched !\");\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tSubmitCanadaPostAddressModel = (model) => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Country/CanadaPost\",\r\n\t\t\tmodel,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tvar address = { ...this.state.model };\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\taddress.CountryId = responseData.Item.CountryId;\r\n\t\t\t\t\taddress.ProvinceId = responseData.Item.ProvinceId;\r\n\t\t\t\t\taddress.CityId = responseData.Item.CityId;\r\n\t\t\t\t} else {\r\n\t\t\t\t\taddress.CountryId = 0;\r\n\t\t\t\t\taddress.ProvinceId = 0;\r\n\t\t\t\t\taddress.CityId = 0;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ model: address });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tSubmitCanadaPostRequest = async () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tvar requestdata = { \r\n\r\n\t\t\tUniqueClientId: null,\r\n\t\t\tMenuCode:this.props.MenuCode,\r\n\t\t\tAppCenterTitle:this.getappCenterTitle,\r\n\t\t\tAppLeftTitle:this.getappLeftTitle\r\n\t\t};\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Reporting/CanadaPostRequestReportInsert\",\r\n\t\t\trequestdata,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (responseData.Item != null ) {\r\n\t\t\t\t\t \r\n\t\t\t\t}\r\n\t\t\t},\r\n \t\t);\r\n\t\t// var result = await this.props.ExecuteApiPost(\"/bankapi/v1.0/Reporting/CanadaPostRequestReportInsert\", requestdata);\r\n\t}\r\n\tHandleChange = (name, value, data) => {\r\n\t\tvar { model, vModel, ContactSelectKey } = this.state;\r\n\r\n\t\tif (name == \"ClientTypeId\") {\r\n\t\t\tif (data.ParameterValue == ClientType.Personal) {\r\n\t\t\t\tthis.setState({ isPersonal: true });\r\n\t\t\t\tdelete model.CompanyName;\r\n\t\t\t\tdelete model.TradeName;\r\n\t\t\t}\r\n\t\t\tif (data.ParameterValue == ClientType.Corporate) {\r\n\t\t\t\tthis.setState({ isPersonal: false });\r\n\t\t\t\tdelete model.FirstName;\r\n\t\t\t\tdelete model.MiddleName;\r\n\t\t\t\tdelete model.LastName;\r\n\t\t\t\tdelete model.BirthDate;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (name == \"Email\")\r\n\t\t\tvModel.Email = !data.IsValid;\r\n\r\n\t\tif (name == \"CountryId\")\r\n\t\t\tvModel.CountryCode = data != null ? data.IsoCode2 : \"\";\r\n\r\n\t\tif (name == \"UniqueClientId\")\r\n\t\t\tContactSelectKey = !ContactSelectKey;\r\n\r\n\t\tmodel[name] = value;\r\n\t\tthis.setState({ model, vModel, ContactSelectKey });\r\n\t}\r\n\r\n\tHandleChangePhone = (name, newValue, data) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.phoneModel || {};\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\treturn { phoneModel: model };\r\n\t\t});\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/bankapi/v1.0/BankInteracETransfer/GetContactsByCustomer\",\r\n\t\t\t{ CustomerId: this.state.model.Id },\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ list: [] });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t});\r\n\t}\r\n\r\n\tHandleDelete = (Id) => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.GET(\"/bankapi/v1.0/ClientCustomerPayee/Delete/Id?Id=\" + Id,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Contact removed!\");\r\n\t\t\t\tthis.setState({ model: { ...this.initialModel }, selected: -1 }, this.HandleSearch);\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t});\r\n\t}\r\n\r\n\tHandleSubmit = () => {\r\n\t\tconst { model, phoneModel } = this.state;\r\n\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tif (model.ProgramCode == null) {\r\n\t\t\tmodel.ProgramCode = ProgramCodes.Bank_Programs_e_Transfer\r\n\t\t}\r\n\t\tvar CheckOld = true;\r\n\t\tif (model.BirthDate)\r\n\t\t\tCheckOld = this.CheckOld();\r\n\r\n\t\tif (CheckOld) {\r\n\t\t\tmodel.Phone = phoneModel;\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tProxy.POST(\"/bankapi/v1.0/ClientCustomerPayee/InsertOrUpdate\",\r\n\t\t\t\tmodel,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.Cancel();\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Entry Updated successfully\");\r\n\t\t\t\t\t\tthis.setState({ model: { ...this.initialModel }, selected: -1 }, this.HandleSearch);\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t});\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", \"Customer age must be bigger then 18 !\");\r\n\t\t}\r\n\t}\r\n\r\n\tCheckOld = () => {\r\n\t\tvar interval = moment.duration(DateHelper.GetDate() - DateHelper.ToMoment(this.state.model.BirthDate)).asYears();\r\n\t\tif (interval < 18) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\tGetCanadaCountry = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/coreapi/v1.0/Country/GetAll\",\r\n\t\t\tthis.emptyObject,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null && responseData.Item.length > 0) {\r\n\t\t\t\t\tmodel.CountryId = responseData.Item.filter(x => x.Code == \"1\" && x.IsoCode == \"CAN\")[0].Id;\r\n\t\t\t\t\tthis.setState({ model, MustBeCountryCanada: true, CanadaId: model.CountryId });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t});\r\n\t}\r\n\r\n\tRenderItemPhoneCode = (d) => {\r\n\t\tthis.renderItemPhoneCode = \"+\" + d.Code + \" (\" + d.Name + \")\";\r\n\t\treturn this.renderItemPhoneCode;\r\n\t}\r\n\r\n\tSelectedRowChange = (index) => {\r\n\t\tvar model = this.state.list[index];\r\n\t\tthis.setState({ selected: index, model, phoneModel: model.Phone });\r\n\r\n\t\tif (model.ClientType == null || model.ClientType.ParameterValue == ClientType.Personal) {\r\n\t\t\tthis.setState({ isPersonal: true });\r\n\t\t\tdelete model.CompanyName;\r\n\t\t\tdelete model.TradeName;\r\n\t\t}\r\n\t\telse if (model.ClientType.ParameterValue == ClientType.Corporate) {\r\n\t\t\tthis.setState({ isPersonal: false });\r\n\t\t\tdelete model.FirstName;\r\n\t\t\tdelete model.MiddleName;\r\n\t\t\tdelete model.LastName;\r\n\t\t\tdelete model.BirthDate;\r\n\t\t}\r\n\r\n\t\tthis.setState({ IsContactPopUpOpen: true });\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({ isLoading: false, alert: this.setState({ alert: \"\" })} /> });\r\n\t}\r\n\r\n\tShowConfirmMessage(type, title, message, onConfirm, isShowCancel = true) {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: \"\" })} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model, vModel, phoneModel, isPersonal } = this.state;\r\n\t\tvar messages = [];\r\n\r\n\t\tvModel.ClientTypeId = model.ClientTypeId == null;\r\n\t\tif (vModel.ClientTypeId) messages.push(\"Customer Type must be select\");\r\n\r\n\t\tif (model.Email == null || model.Email == \"\") {\r\n\t\t\tvModel.Email = true;\r\n\t\t\tif (vModel.Email) messages.push(\"E-Mail cannot be empty\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (vModel.Email) messages.push(\"E-Mail is invalid\");\r\n\t\t}\r\n\r\n\t\tif (isPersonal) {\r\n\t\t\tvModel.FirstName = (model.FirstName == null || model.FirstName == \"\");\r\n\t\t\tif (vModel.FirstName) messages.push(\"First Name cannot be empty\");\r\n\r\n\t\t\tvModel.LastName = (model.LastName == null || model.LastName == \"\");\r\n\t\t\tif (vModel.LastName) messages.push(\"Last Name cannot be empty\");\r\n\t\t} else {\r\n\t\t\tvModel.CompanyName = (model.CompanyName == null || model.CompanyName == \"\");\r\n\t\t\tif (vModel.CompanyName) messages.push(\"Company Name cannot be empty\");\r\n\r\n\t\t\tvModel.TradeName = (model.TradeName == null || model.TradeName == \"\");\r\n\t\t\tif (model.TradeName == null || model.TradeName == \"\") messages.push(\"Legal Name cannot be empty\");\r\n\t\t}\r\n\r\n\t\tif (phoneModel.PhoneNumber) {\r\n\t\t\tvModel.PhoneNumber = (phoneModel.PhoneNumber.toString().length != 10);\r\n\t\t\tif (vModel.PhoneNumber) messages.push(\"Phone Number must be 10 Digits !.\");\r\n\t\t}\r\n\r\n\t\tvModel.CountryId = model.CountryId == null;\r\n\t\tif (vModel.CountryId) messages.push(\"Address Country cannot be empty.\");\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tGetCountryParameter = () => {\r\n\t\tthis.parameterCountry.CountryId = this.state.model.CountryId\r\n\t\treturn this.parameterCountry;\r\n\t}\r\n\r\n\tGetProvinceParameter = () => {\r\n\t\tthis.parameterProvince.ProvinceId = this.state.model.ProvinceId\r\n\t\treturn this.parameterProvince;\r\n\t}\r\n\r\n\tCancel = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tselected: -1,\r\n\t\t\tIsContactPopUpOpen: false\r\n\t\t});\r\n\t};\r\n\r\n\thideAlert = () => { this.setState({ alert: null, isLoading: false }); }\r\n\r\n\trender() {\r\n\t\tconst { ReadOnly } = this.props;\r\n\t\tconst { alert, model, vModel, phoneModel, list, isLoading, isPersonal, IsContactPopUpOpen, MustBeCountryCanada, } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t<>\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t this.HandleSearch(), Disabled: false }\r\n\t\t\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t `${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"Id\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.Id}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCanClear />\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\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\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCustomerContactList.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(CustomerContactList, {});","import GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport { Proxy, withArtifex } from \"core\";\r\n\r\nclass EmptyFile extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\r\n\t\t};\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes } = this.props;\r\n\t\tconst { model } = this.state;\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nEmptyFile.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(EmptyFile, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent\";\r\nimport {\r\n GenericAlert,\r\n GenericExpansionPanel,\r\n GenericGrid,\r\n GenericLabel,\r\n GenericNumberInput,\r\n GenericSelectInput,\r\n GenericTextInput,\r\n GenericTitle,\r\n} from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport {\r\n GridColumnType,\r\n MenuCodes,\r\n ProgramCodes,\r\n TransactionMoneyTransferType,\r\n} from \"views/Constants/Constant\";\r\n\r\nclass FundsTransferFromSubAccountToDCBank extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n\r\n this.initialModel = {\r\n UniqueClientId: ClientHelper.IsClient()\r\n ? ClientHelper.GetClientRowId()\r\n : undefined,\r\n TransactionCode: 0,\r\n };\r\n this.maxLenght = 21;\r\n\r\n this.state = {\r\n vCustomerModel: {},\r\n vCardModel: {},\r\n list: [],\r\n CardModel: this.initialModel,\r\n CustomerModel: this.initialModel,\r\n SelectedCustomerItem: \"\",\r\n model: this.initialModel,\r\n isLoading: false,\r\n selected: null,\r\n bankAccounts: [],\r\n cardList: [],\r\n TransactionType: [],\r\n };\r\n\r\n this.CardDisactive = true;\r\n this.CustomerDisactive = true;\r\n this.IsCustomerAccountSelected = true;\r\n\r\n this.parameterMainCard = {};\r\n this.parameterUniqueClientId = {\r\n UniqueClientId: ClientHelper.IsClient()\r\n ? ClientHelper.GetClientId()\r\n : undefined,\r\n };\r\n\r\n this.renderItemUniqueClient = {};\r\n }\r\n\r\n componentDidMount() {\r\n this.props.setAppLeftTitle(\"Funds Transfer From Sub Account To DC Bank\");\r\n this.props.setAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n this.ProgramCode = ProgramCodes.Lender;\r\n this.state.model.ProgramCode = ProgramCodes.Lender;\r\n this.CardDisactive = true;\r\n this.CustomerDisactive = false;\r\n this.IsCustomerAccountSelected = true;\r\n this.setState({ model: this.state.model });\r\n }\r\n RenderItemUniqueClient = (d) => {\r\n this.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n return this.renderItemUniqueClient;\r\n };\r\n HandleChange = (name, value, data) => {\r\n const model = { ...this.state.model };\r\n model[name] = value;\r\n \r\n\r\n this.setState({ model });\r\n };\r\n CustomerModelChange = (name, value, data) => {\r\n const model = { ...this.state.CustomerModel };\r\n const model2 = this.state.SelectedCustomerItem;\r\n\r\n var IsTrxDisabled = false;\r\n\r\n if (\r\n name === \"DestinationAccountId\" &&\r\n data !== null &&\r\n data !== undefined\r\n ) {\r\n this.setState({ SelectedCustomerItem: data.AccountName });\r\n this.IsCustomerAccountSelected = false;\r\n }\r\n\t \r\n\tIsTrxDisabled = false;\r\n if (!IsTrxDisabled) {\r\n model[name] = value;\r\n }\r\n\r\n if (name === \"Customer\") {\r\n if (value) {\r\n model.ClientCustomerId = value.Id;\r\n model.CustomerNumber = value.CustomerNumber;\r\n } else {\r\n delete model.ClientCustomerId;\r\n delete model.CustomerNumber;\r\n delete model.CardId;\r\n delete model.CardTokenNumber;\r\n }\r\n }\r\n if (name === \"TransactionCode\") {\r\n model[name] = value;\r\n }\r\n this.setState({ CustomerModel: model });\r\n };\r\n\r\n HandleSelectModel = (model, index) => {\r\n this.setState({ model, selected: index });\r\n this.HandleGetList();\r\n };\r\n\r\n HandleClear = () => {\r\n this.CardDisactive = true;\r\n this.CustomerDisactive = true;\r\n this.IsCustomerAccountSelected = true;\r\n if (this.ProgramCode == ProgramCodes.Lender) this.CustomerDisactive = false;\r\n\r\n this.setState({\r\n model: this.initialModel,\r\n CardModel: this.initialModel,\r\n CustomerModel: this.initialModel,\r\n });\r\n };\r\n\r\n HandleGetList = () => {\r\n this.setState({ isLoading: true });\r\n var model = this.CustomerDisactive\r\n ? this.state.CardModel\r\n : this.state.CustomerModel;\r\n var searchRequest = {\r\n ClientCustomerId: model.ClientCustomerId,\r\n TransactionTypeId: model.TransactionTypeId,\r\n ProgramCode: this.ProgramCode,\r\n SourceAccountId: model.SourceAccountId,\r\n DestinationAccountId: model.DestinationAccountId,\r\n CardId: model.CardId,\r\n ReferenceNumber: model.ReferenceNumber,\r\n };\r\n\r\n Proxy.POST(\r\n \"/bankapi/v1.0/Transaction/GetAllDcBankFundsTransaction\",\r\n searchRequest,\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n if (!responseData.IsSucceeded) {\r\n this.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n return;\r\n }\r\n if (responseData.Item != null) {\r\n this.setState({ list: responseData.Item });\r\n } else {\r\n this.setState({ list: [] });\r\n }\r\n },\r\n (error) => {\r\n this.setState({ isLoading: false });\r\n this.ShowMessage(\"error\", \"Error\", error);\r\n }\r\n );\r\n };\r\n\r\n HandleSubmit = () => {\r\n if (!this.Validate()) return;\r\n\r\n this.setState({ isLoading: true });\r\n this.state.CardModel.ProgramCode = this.ProgramCode;\r\n this.state.CustomerModel.ProgramCOde = this.ProgramCode;\r\n Proxy.POST(\r\n \"/bankapi/v1.0/Transaction/MoneySendToDcBankAccount\",\r\n this.CustomerDisactive ? this.state.CardModel : this.state.CustomerModel,\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n if (!responseData.IsSucceeded) {\r\n this.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n return;\r\n }\r\n this.ShowMessage(\"success\", \"Success\", \"Operation is successfully!\");\r\n this.HandleClear();\r\n this.HandleGetList();\r\n },\r\n (error) => {\r\n this.setState({ isLoading: false });\r\n this.ShowMessage(\"error\", \"Error\", error);\r\n }\r\n );\r\n };\r\n\r\n Validate = () => {\r\n const { vCustomerModel, vCardModel, CustomerModel, CardModel } = this.state;\r\n\r\n if (this.CardDisactive) {\r\n if (!CustomerModel.SourceAccountId) {\r\n vCustomerModel.SourceAccountId = true;\r\n this.ShowMessage(\r\n \"warning\",\r\n \"Invalid\",\r\n \"Please select client account !\"\r\n );\r\n return;\r\n } else {\r\n vCustomerModel.SourceAccountId = false;\r\n }\r\n if (!CustomerModel.ClientCustomerId) {\r\n vCustomerModel.ClientCustomerId = true;\r\n this.ShowMessage(\"warning\", \"Invalid\", \"Please select customer !\");\r\n return;\r\n } else {\r\n vCustomerModel.ClientCustomerId = false;\r\n }\r\n if (!CustomerModel.Amount) {\r\n vCustomerModel.Amount = true;\r\n this.ShowMessage(\r\n \"warning\",\r\n \"Invalid\",\r\n \"Please fill transaction amount !\"\r\n );\r\n return;\r\n } else {\r\n vCustomerModel.Amount = false;\r\n }\r\n if (!CustomerModel.DestinationAccountId) {\r\n vCustomerModel.DestinationAccountId = true;\r\n this.ShowMessage(\r\n \"warning\",\r\n \"Invalid\",\r\n \"Please fill Customer account !\"\r\n );\r\n return;\r\n } else {\r\n vCustomerModel.DestinationAccountId = false;\r\n }\r\n\r\n if (!CustomerModel.TransactionTypeId) {\r\n vCustomerModel.TransactionTypeId = true;\r\n this.ShowMessage(\r\n \"warning\",\r\n \"Invalid\",\r\n \"Please fill Transaction Type !\"\r\n );\r\n return;\r\n } else {\r\n vCustomerModel.TransactionTypeId = false;\r\n }\r\n\r\n if (CardModel.TransactionCode == null) {\r\n CardModel.TransactionCode = 0;\r\n this.setState({ CardModel });\r\n }\r\n\r\n if (vCustomerModel.Description?.length > 21) {\r\n this.ShowMessage(\r\n \"Warning\",\r\n \"Invalid\",\r\n \"Description cannot be longer than 30 characters!\"\r\n );\r\n }\r\n } else if (!this.CardDisactive) {\r\n if (!CardModel.SourceAccountId) {\r\n vCardModel.SourceAccountId = true;\r\n this.ShowMessage(\r\n \"warning\",\r\n \"Invalid\",\r\n \"Please select client account !\"\r\n );\r\n return;\r\n } else {\r\n vCustomerModel.SourceAccountId = false;\r\n }\r\n if (!CardModel.ClientCustomerId) {\r\n vCardModel.ClientCustomerId = true;\r\n this.ShowMessage(\"warning\", \"Invalid\", \"Please select customer !\");\r\n return;\r\n } else {\r\n vCustomerModel.ClientCustomerId = false;\r\n }\r\n if (!CardModel.Amount) {\r\n vCardModel.Amount = true;\r\n this.ShowMessage(\r\n \"warning\",\r\n \"Invalid\",\r\n \"Please fill transaction amount !\"\r\n );\r\n return;\r\n } else {\r\n vCardModel.Amount = false;\r\n }\r\n if (!CardModel.CardId) {\r\n vCardModel.CardId = true;\r\n this.ShowMessage(\"warning\", \"Invalid\", \"Please fill Card !\");\r\n return;\r\n } else {\r\n vCardModel.DestinationAccountId = false;\r\n }\r\n\r\n if (!CardModel.TransactionTypeId) {\r\n vCardModel.TransactionTypeId = true;\r\n this.ShowMessage(\r\n \"warning\",\r\n \"Invalid\",\r\n \"Please fill Transaction Type !\"\r\n );\r\n return;\r\n } else {\r\n vCardModel.TransactionTypeId = false;\r\n }\r\n\r\n if (vCardModel.Description?.length > 21) {\r\n this.ShowMessage(\r\n \"Warning\",\r\n \"Invalid\",\r\n \"Description cannot be longer than 30 characters!\"\r\n );\r\n }\r\n if (CustomerModel.TransactionCode == null) {\r\n CustomerModel.TransactionCode = 0;\r\n this.setState({ CustomerModel });\r\n }\r\n }\r\n\r\n this.setState({ vCustomerModel });\r\n return true;\r\n };\r\n\r\n ShowMessage = (type, title, message) => {\r\n this.setState({\r\n alert: (\r\n this.setState({ alert: \"\" })}\r\n />\r\n ),\r\n });\r\n };\r\n\r\n ShowMessageNode = (type, title, message) => {\r\n this.setState({\r\n alert: (\r\n this.setState({ alert: \"\" })}\r\n />\r\n ),\r\n });\r\n };\r\n\r\n ShowConfirmMessage = (type, title, message, onConfirm) => {\r\n this.setState({\r\n alert: (\r\n this.setState({ alert: \"\" })}\r\n OnConfirm={onConfirm}\r\n />\r\n ),\r\n });\r\n };\r\n GetMainCardParameter = () => {\r\n this.parameterMainCard.ClientCustomerId = this.state.model.ClientCustomerId;\r\n this.parameterMainCard.IsActive = true;\r\n this.parameterMainCard.CardSearchCriteria = 2;\r\n return this.parameterMainCard;\r\n };\r\n FillMainCard = () => {\r\n this.setState({ isLoading: true });\r\n Proxy.POST(\r\n \"/prepaidapi/v1.0/Card/CardSearch\",\r\n this.GetMainCardParameter(),\r\n (responseData) => {\r\n this.setState({ isLoading: false }, () => {\r\n if (!responseData.IsSucceeded) {\r\n this.props.showMessage(\r\n \"error\",\r\n \"Error\",\r\n responseData.ErrorDescription\r\n );\r\n return;\r\n }\r\n this.setState({ cardList: responseData.Item }, () => {\r\n if (responseData.Item == null || responseData.Item.length == 0) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Warning\",\r\n \"Main card could not found.\"\r\n );\r\n }\r\n });\r\n });\r\n },\r\n (error) => {\r\n this.setState({ isLoading: false });\r\n this.props.showMessage(\"error\", \"Error\", error);\r\n }\r\n );\r\n };\r\n\r\n RenderItemAccount = (d) => {\r\n this.renderItemAccount = `${d.AccountName} - ${d.AccountNumber}`;\r\n return this.renderItemAccount;\r\n };\r\n FillCustomerForCustomer = (customer) => {\r\n this.CustomerModelChange(\"Customer\", customer);\r\n };\r\n\r\n render() {\r\n const { Disabled } = this.props;\r\n const {\r\n alert,\r\n CustomerModel,\r\n CardModel,\r\n list,\r\n isLoading,\r\n model,\r\n bankAccounts,\r\n vCustomerModel,\r\n vCardModel,\r\n } = this.state;\r\n\r\n var sourceAccount = bankAccounts.map((d) => {\r\n return {\r\n Id: d.Id,\r\n CustomerBankAccountId: d.CustomerBankAccountId,\r\n AccountShortName: d.AccountShortName,\r\n BankAccountId: d.BankAccountId,\r\n UniqueClientId: d.UniqueClientId,\r\n Balance: d.Balance,\r\n AccountName: d.AccountName,\r\n TotalBalance: d.TotalBalance,\r\n AccountNumber: d.AccountNumber,\r\n AccountNumberStr: d.AccountNumberStr,\r\n BranchNumber: d.BranchNumber,\r\n BankNumber: d.BankNumber,\r\n AccountTypeId: d.AccountTypeId,\r\n AccountType: d.AccountType,\r\n ProgramName: d.ProgramName,\r\n ProgramCode: d.ProgramCode,\r\n AccountCode: d.AccountCode,\r\n CurrencyCode: d.CurrencyCode,\r\n };\r\n });\r\n return (\r\n
\r\n \r\n\r\n {alert}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\nFundsTransferFromSubAccountToDCBank.propTypes = {\r\n classes: PropTypes.object.isRequired,\r\n};\r\n\r\nexport default withArtifex(FundsTransferFromSubAccountToDCBank, {});\r\n","\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent\";\r\nimport { GenericAlert, GenericDateInput, GenericExpansionPanel, GenericGrid, GenericSelectInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass WaitingPaymentList extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tId: 0,\r\n\t\t\t\tUniqueClientId: ClientHelper.IsClient()\r\n\t\t\t\t\t? ClientHelper.GetClientRowId()\r\n\t\t\t\t\t: undefined,\r\n\t\t\t\tCustomer: null,\r\n\t\t\t\tCustomerNumber: null,\r\n\t\t\t\tCustomerId: 0,\r\n\t\t\t},\r\n\t\t\tdata: [],\r\n\t\t\tisLoading: false,\r\n\t\t};\r\n\r\n\t\tthis.isBackOffice = ClientHelper.IsBackOffice();\r\n\r\n\t}\r\n\thandleChangeForCustomer = (name, newValue) => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tif (name === \"Customer\") {\r\n\t\t\tif (newValue != null) {\r\n\t\t\t\tmodel.Customer = newValue;\r\n\t\t\t\tif (newValue.Accounts != null && newValue.Accounts.length > 0) {\r\n\t\t\t\t\tmodel.CustomerNumber = newValue.Accounts[0].CustomerNumber;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmodel.CustomerNumber = null;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tmodel.Customer = null;\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\tFillCustomer = (customer) => {\r\n\t\tthis.handleChangeForCustomer(\"Customer\", customer);\r\n\t};\r\n\r\n\r\n\tshowErrorMessage = (message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({\r\n\t\t\t\talert: null,\r\n\t\t\t\tisLoading: false\r\n\t\t\t})} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tcomponentDidMount() {\r\n\r\n\t\tthis.props.setAppLeftTitle(\"Waiting Payment List\");\r\n\t\tthis.props.setAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, data: [], isLoading: false });\r\n\t}\r\n\tSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/losapi/v1.0/Applicant/WaitingPaymentListSearch\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (responseData.Item != null) {\r\n\r\n\t\t\t\t\tthis.setState({ data: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\te => {\r\n\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t}\r\n\t\t);\r\n\r\n\t}\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst temp = { ...this.state.model };\r\n\t\ttemp[name] = newValue;\r\n\t\tthis.setState({ model: temp });\r\n\t}\r\n\r\n\r\n\r\n\r\n\r\n\trender() {\r\n\t\tconst { accountModel, model, data } = this.state;\r\n\t\tconst { Disabled, classes } = this.props;\r\n\t\tconst pagination = true;\r\n\t\tconst paginationPageSize = 10;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t{this.state.alert}\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\tDisabled={!this.isBackOffice}\r\n\t\t\t\t\t\t\t\t\t\tDefaultIndex={ClientHelper.IsClient() ? 0 : -1} />\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\nWaitingPaymentList.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func\r\n};\r\n\r\n\r\nexport default withArtifex(WaitingPaymentList, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { DeleteIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport {GenericAlert, GenericCheckInput, GenericGrid, GenericSelectInput, GenericLabel} from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport {GridColumnType} from \"views/Constants/Constant\";\r\nclass RestrictedClients extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tvModel: {},\r\n\t\t\tmodel: {},\r\n\t\t\tkey: {},\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t\tlist: []\r\n\t\t};\r\n\r\n\t\tthis.sortName = { Member: \"Name\" };\r\n\t\tthis.EmptyParameter = {};\r\n\r\n\t\tthis.ColumnsData = [\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Status\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t { this.Delete(row.original); }} />\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Program\",\r\n\t\t\t\taccessor: \"ProgramDescription\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Id\",\r\n\t\t\t\taccessor: \"UniqueClientId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"UniqueClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Create\",\r\n\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t}\r\n\r\n\t\t];\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\tif (this.props.setAppCenterTitle) {\r\n\t\t\tthis.props.setAppCenterTitle(\"CLIENT\");\r\n\t\t}\r\n\r\n\t\tif (this.props.setAppLeftTitle)\r\n\t\t\tthis.props.setAppLeftTitle(\"EFT Restricted Client\");\r\n\r\n\t}\r\n\tOperationCheck = () => {\r\n\t\tvar ErrorList = [];\r\n\t\tvar data = { ...this.state.model };\r\n\t\tconst vModel = this.state.vModel;\r\n\r\n\t\tif (data.ProgramId == null || data.ProgramId == \"\") {\r\n\t\t\tvModel.ProgramId = true;\r\n\t\t\tErrorList.push(\"Program must be defined!\");\r\n\t\t} else { vModel.ProgramId = false; }\r\n\r\n\t\tif (data.UniqueClientId == null || data.UniqueClientId == \"\") {\r\n\t\t\tvModel.UniqueClientId = true;\r\n\t\t\tErrorList.push(\"Client Name must be defined!\");\r\n\t\t} else { vModel.UniqueClientId = false; }\r\n\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.props.showMessageNode(\"warning\", \"Please fill required fields!\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tthis.setState({ vModel });\r\n\t\tthis.Submit();\r\n\t}\r\n\tSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tvar temp = { ...this.state.model };\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/RestrictedClient/SearchRestrictedClient\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.setState({ list: responseData.Item || [] });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm, showCancel = true) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: null })} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\tDelete = (model) => {\r\n\t\tthis.ShowConfirmMessage(\"warning\", \"Warning\",\r\n\t\t\t\"Are you sure you want to delete?\", () => {\r\n\t\t\t\tthis.setState({ alert: null, isLoading: true });\r\n\t\t\t\tProxy.POST(\r\n\t\t\t\t\t\"/bankapi/v1.0/RestrictedClient/DeleteRestrictedClient\", this.state.model,\r\n\t\t\t\t\tresponseData => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\t\tthis.props.showMessage(\"error\", responseData.Code, responseData.ErrorDescription);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (responseData.IsSucceeded) {\r\n\t\t\t\t\t\t\tthis.ClearData();\r\n\t\t\t\t\t\t\tthis.Search();\r\n\t\t\t\t\t\t\tthis.props.showMessage(\"success\", \"Success\", \"Success\");\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", \"There was an error adding to the Restricted Client\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t);\r\n\t\t\t});\r\n\t}\r\n\tSubmit = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/RestrictedClient/InsertRestrictedClient\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Success\", \"The Restricted Client Completed Successfully.\");\r\n\t\t\t\tthis.Search();\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tGetRenderItemUniqueClient = (x) => {\r\n\t\tthis.renderItemUniqueClient = `${x.Name} - ${x.UniqueClientId}`;\r\n\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\tSelectedRowChange = (e, index) => {\r\n\t\tconst model = this.state.list[index];\r\n\t\tthis.setState({ model: model || {} });\r\n\t}\r\n\tClearData = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {},\r\n\t\t\tkey: DateHelper.GetDateTime(),\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t\tlist: []\r\n\t\t});\r\n\t}\r\n\tHandleChange = (name, value) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, list, vModel, key } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t

Restricted Clients

\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t this.HandleChange(\"BlockNonDdtDebit\", !model[\"BlockNonDdtDebit\"])}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t this.HandleChange(\"BlockNonDdtCredit\", !model[\"BlockNonDdtCredit\"])}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t this.HandleChange(\"BlockDdtDebit\", !model[\"BlockDdtDebit\"])}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t this.HandleChange(\"BlockDdtCredit\", !model[\"BlockDdtCredit\"])}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t this.HandleChange(\"UseCorporateAccount\", !model[\"UseCorporateAccount\"])}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t

Restricted Client

\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tthis.SelectedRowChange(0, index);\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\nRestrictedClients.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(RestrictedClients, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericExpansionPanel, GenericGrid, GenericDateInput, GenericNumberInput, GenericSelectInput, GenericCheckInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant.js\";\r\n\r\nclass RefundAdjustment extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tAccountId: 0,\r\n\t\t\tIsRefundAdjustmentStatus: true,\r\n\t\t\tFromDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tToDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tlist: [],\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tisLoading: false,\r\n\t\t\tselected: null,\r\n\t\t\tcheckedAccounts: [],\r\n\t\t\tFilterStatus: false,\r\n\t\t\ttransactionlist: [],\r\n\t\t\tvModel: {}\r\n\t\t};\r\n\t\tthis.maxLength10 = { maxLength: 10 };\r\n\r\n\t\tthis.renderItemAccount = {};\r\n\r\n\t\tthis.parameterDestAcc = {};\r\n\r\n\t\tthis.sortedList = [{ id: \"ReferenceNumber\", desc: true }];\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\ttype: GridColumnType.DateTimeUtc,\r\n\t\t\t\tstyle: this.RenderStyle()\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reference Number\",\r\n\t\t\t\taccessor: \"ReferenceNumber\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"From Account Name\",\r\n\t\t\t\taccessor: \"FromAccountName\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"From Account Number\",\r\n\t\t\t\taccessor: \"FromAccountNumber\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"TransactionType\",\r\n\t\t\t\taccessor: \"TransactionDesc\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Currency\",\r\n\t\t\t\taccessor: \"Currency\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t)\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"Amount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tstyle: this.RenderStyle(),\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Description\",\r\n\t\t\t\taccessor: \"Description\",\r\n\t\t\t\twidth: 200,\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t)\r\n\t\t\t}\r\n\r\n\t\t]\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Refund Adjustment Screen\");\r\n\t\tthis.props.setAppCenterTitle(\"CLIENT\");\r\n\t}\r\n\tIsValid = () => {\r\n\t\tvar vmodel = { ...this.state.model };\r\n\r\n\t\tif (typeof vmodel.FromDate != \"object\" && vmodel.FromDate != \"\" && vmodel.FromDate != null) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"From Date is invalid\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (typeof vmodel.ToDate != \"object\" && vmodel.ToDate != \"\" && vmodel.ToDate != null) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"To Date is invalid\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif ((typeof vmodel.FromDate == \"object\" && typeof vmodel.ToDate == \"object\") && vmodel.ToDate < vmodel.FromDate) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"From Date cannot be bigger than To Date\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\r\n\t\treturn true;\r\n\t}\r\n\tHandleChange = (name, value, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (name == \"ReferenceNumber\" && value == \"\") {\r\n\t\t\tmodel[name] = undefined;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\tif (name == \"ReferenceNumber\" && model.ReferenceNumber.length > 17 && !model.Isworkflow) {\r\n\t\t\t\tthis.GetRefundAdjustmentTransction(model);\r\n\t\t\t}\r\n\r\n\t\t\tif (name == \"CheckAllAccounts\" && value == true) {\r\n\t\t\t\tconst list = this.state.transactionlist;\r\n\t\t\t\tthis.setState({ checkedAccounts: list });\r\n\t\t\t} else if (name == \"CheckAllAccounts\" && value == false) {\r\n\t\t\t\tthis.setState({ checkedAccounts: [] });\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleSelectModel = (model, index) => {\r\n\t\tthis.setState({ model, selected: index });\r\n\t\tthis.HandleGetList();\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: this.initialModel, list: [], transactionlist: [], checkedAccounts: [] });\r\n\t}\r\n\r\n\tGetRefundAdjustmentTransction = (model) => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tmodel.FilterStatus = false;\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Transaction/GetRefundAdjustmentTransction\",\r\n\t\t\tmodel,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error !\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ transactionlist: responseData.Item || [], list: [], checkedAccounts: [] });\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\r\n\tHandleGetList = () => {\r\n\r\n\t\tif (!this.IsValid())\r\n\t\t\treturn;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel.FilterStatus = true;\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Transaction/GetRefundAdjustmentTransction\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ list: [] });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleSubmit = (workflowId, after, accessToken) => {\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tconst temp = { ...this.state.model };\r\n\t\tvar ids = [];\r\n\t\tthis.state.checkedAccounts.forEach(element => {\r\n\t\t\tids.push(element.Id);\r\n\t\t});\r\n\r\n\t\ttemp.TransactionIds = ids;\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Transaction/InsertRefundAdjustment\",\r\n\t\t\ttemp,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Operation is successfully!\");\r\n\t\t\t\tthis.HandleClear();\r\n\t\t\t\tthis.HandleGetList();\r\n\t\t\t\tif (after) after();\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t},\r\n\t\t\tworkflowId,\r\n\t\t\taccessToken\r\n\t\t);\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst vModel = { ...this.state.vModel };\r\n\r\n\t\tif (model.ReferenceNumber == null || model.ReferenceNumber == \"\") {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Reference Number cannot be null!\");\r\n\t\t\tvModel.ReferenceNumber = true; this.setState({ vModel });\r\n\t\t\treturn;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvModel.ReferenceNumber = false;\r\n\t\t}\r\n\t\tthis.setState({ vModel });\r\n\r\n\r\n\t\tif (model.ReferenceNumber.length > 17) {\r\n\r\n\t\t\tif (this.state.checkedAccounts.length == 0 || this.state.checkedAccounts == null) {\r\n\t\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Transaction is not selected!\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Invalid Reference Number!\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\tRenderItemAccount = (d) => {\r\n\t\tthis.renderItemAccount = `${d.AccountName} - ${d.Program.Description}`;\r\n\t\treturn this.renderItemAccount;\r\n\t}\r\n\r\n\tGetDestinationAccountParameter = () => {\r\n\t\tthis.parameterDestAcc.UniqueClientId = this.state.model.ToClientId;\r\n\t\tthis.parameterDestAcc.ProgramId = this.state.model.ProgramId;\r\n\t\treturn this.parameterDestAcc;\r\n\t}\r\n\r\n\tShowMessage = (type = \"info\", title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: \"\" })} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\tHandleCheckCustomerAccounts = (e, x) => {\r\n\t\tconst { checkedAccounts } = this.state;\r\n\t\tvar temp = true;\r\n\r\n\t\tconst items = checkedAccounts.map((item, key) => {\r\n\t\t\tif (item.Id == x.Id) {\r\n\t\t\t\tcheckedAccounts.splice(key, 1);\r\n\t\t\t\ttemp = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t);\r\n\r\n\t\tif (checkedAccounts.length == 0 && temp) { checkedAccounts.push(x); }\r\n\t\telse if (temp) { checkedAccounts.push(x); }\r\n\r\n\t\tthis.setState({ checkedAccounts });\r\n\t}\r\n\tRenderStyle = () => {\r\n\t\treturn {\r\n\t\t\tcolumn: \"TransactionDesc\",\r\n\t\t\tcondition: \"Debit\",\r\n\t\t\tstyle: { fontWeight: \"600\" },\r\n\t\t\tprefix: [\"+\", \"\"]\r\n\t\t};\r\n\t}\r\n\r\n\tModelFunction = () => {\r\n\t\tvar tempworkflow = { ...this.state.model };\r\n\t\tvar ids = [];\r\n\t\tthis.state.checkedAccounts.forEach(element => {\r\n\t\t\tids.push(element.Id);\r\n\t\t});\r\n\t\ttempworkflow.TransactionIds = ids;\r\n\t\ttempworkflow.transactionlist = this.state.transactionlist;\r\n\t\treturn tempworkflow;\r\n\r\n\t}\r\n\tFillData = (data) => {\r\n\r\n\t\tvar checkedAccounts = [];\r\n\t\tdata.Isworkflow = true;\r\n\t\tdata.TransactionIds.map((item, key) => {\r\n\t\t\tvar index = data.transactionlist.findIndex(x => x.Id == item);\r\n\t\t\tif (index > -1)\r\n\t\t\t\tcheckedAccounts.push(data.transactionlist[index]);\r\n\t\t\treturn null;\r\n\t\t});\r\n\r\n\t\tdata.FromDate = data.FromDate ? DateHelper.ToMoment(data.FromDate) : null;\r\n\t\tdata.ToDate = data.ToDate ? DateHelper.ToMoment(data.ToDate) : null;\r\n\r\n\t\tthis.setState({ model: data, transactionlist: data.transactionlist, checkedAccounts });\r\n\t}\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, transactionlist, isLoading, checkedAccounts, vModel } = this.state;\r\n\t\tvar GridDataList = transactionlist == null ? [] : transactionlist.map(d => {\r\n\t\t\treturn {\r\n\t\t\t\tAP: (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t c.Id == d.Id).length > 0}\r\n\t\t\t\t\t\t\tValueChanged={(e) => {\r\n\t\t\t\t\t\t\t\tthis.HandleCheckCustomerAccounts(e, d);\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tId: d.Id,\r\n\t\t\t\tAmount: d.Amount,\r\n\t\t\t\tTransactionDesc: d.TransactionDesc,\r\n\t\t\t\tReferenceNumber: d.ReferenceNumber,\r\n\t\t\t\tDescription: d.Description,\r\n\t\t\t\tAccountId: d.AccountId,\r\n\t\t\t\tAccountName: d.AccountName,\r\n\t\t\t\tCurrency: d.Currency,\r\n\t\t\t\tToAccountName: d.ToAccountName,\r\n\t\t\t\tToAccountNumber: d.ToAccountNumber,\r\n\t\t\t\tFromAccountName: d.FromAccountName,\r\n\t\t\t\tFromAccountNumber: d.FromAccountNumber,\r\n\t\t\t\tProgramName: d.ProgramName,\r\n\t\t\t\tCurrencySymbol: d.CurrencySymbol,\r\n\t\t\t\tTransactionDate: d.TransactionDate\r\n\t\t\t};\r\n\t\t});\r\n\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\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t\t\t\t\t\t\t\t\t\t\t\twidth: 100,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t

{row.value}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"From Account Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"FromAccountName\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t

{row.value}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"From Account Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"FromAccountNumber\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t

{row.value}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"TransactionType\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionDesc\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t

{row.value}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Currency\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Currency\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t

{row.value}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tstyle: this.RenderStyle(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Description\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Description\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 300,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t

{row.value}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nRefundAdjustment.propTypes = {\r\n\tclasses: PropTypes.object.isRequired\r\n};\r\n\r\nexport default withArtifex(RefundAdjustment, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { DeleteIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericCheckInput, GenericDateFilterInput, GenericDialog, GenericExpansionPanel, GenericGrid, GenericLabel, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle,GenericDialogActions } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { BankFileStatus, BankTransactionStatus, GridColumnType, MenuCodes, TransactionType } from \"views/Constants/Constant.js\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nclass TransactionAdjustment extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tDateFilter: {\r\n\t\t\t\tBeginDate: DateHelper.GetDate(),\r\n\t\t\t\tEndDate: DateHelper.GetDate()\r\n\t\t\t},\r\n\t\t\tIsRefundAdjustmentStatus: false,\r\n\t\t\tIsUniqueDataSearch: false\r\n\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tlist: [],\r\n\t\t\tvModel: {},\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tisLoading: false,\r\n\t\t\tselected: null,\r\n\t\t\tisManualTransactionEntryMenu: this.props.MenuCode == MenuCodes.ManualTransactionEntry,\r\n\t\t\tcancelRequestModel: {\r\n\t\t\t\tSelectedTransfer: {},\r\n\t\t\t\tcancellationReason: null,\r\n\t\t\t },\r\n\t\t\t cancelDialog: false,\r\n\t\t};\r\n\t\tthis.maxLength400 = { maxLength: 400 };\r\n\r\n\r\n\r\n\t\tthis.renderItemAccount = {};\r\n\r\n\t\tthis.parameterDestAcc = {};\r\n\r\n\t\tthis.sortedList = [{ id: \"ReferenceNumber\", desc: true }];\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: (row) => (\r\n\t\t\t\t
\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t this.handleCancel(row.original);\r\n\t\t\t\t\t\t}}\r\n\t\t\t\t\t />\r\n\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t },\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reference Number\",\r\n\t\t\t\taccessor: \"ReferenceNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Source Account\",\r\n\t\t\t\taccessor: \"SourceAccount.AccountNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Source\",\r\n\t\t\t\taccessor: \"SourceOwnerName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Destination Account\",\r\n\t\t\t\taccessor: \"DestinationAccount.AccountNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Destination\",\r\n\t\t\t\taccessor: \"DestinationOwnerName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Type\",\r\n\t\t\t\taccessor: \"TransactionType.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Code\",\r\n\t\t\t\taccessor: \"TransactionCode.TxnName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"TransactionAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Description\",\r\n\t\t\t\taccessor: \"Description\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"User Name\",\r\n\t\t\t\taccessor: \"UserName\"\r\n\t\t\t}\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppCenterTitle(\"ACCOUNT\");\r\n\r\n\t\tif (this.state.isManualTransactionEntryMenu) {\r\n\t\t\tthis.props.setAppLeftTitle(\"Manual Transaction Entry\");\r\n\t\t} else {\r\n\t\t\tthis.props.setAppLeftTitle(\"Transaction Adjustment\");\r\n\t\t}\r\n\t}\r\n\r\n\tHandleChange = (name, value, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\r\n\t\tif (name == \"ReferenceNumber\") {\r\n\t\t\tmodel.IsUniqueDataSearch = value.length > 0;\r\n\t\t}\r\n\t\tif (name == \"SourceAccountId\") {\r\n\t\t\tmodel.sourceAccountName = data ? data.AccountName + \" \" + data.AccountNumber : \"\";\r\n\t\t}\r\n\t\tif (name == \"DestinationAccountId\") {\r\n\t\t\tmodel.destinationAccountName = data ? data.AccountName + \" \" + data.AccountNumber : \"\";\r\n\t\t}\r\n\t\tif (name == \"TransactionTypeId\") {\r\n\t\t\tmodel.transactionTypeName = data ? data.ParameterValue : \"\";\r\n\t\t}\r\n\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleSelectModel = (model, index) => {\r\n\t\tthis.setState({ model, selected: index });\r\n\t\tthis.HandleGetList();\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: this.initialModel });\r\n\t}\r\n\r\n\tshowLoading = () => {\r\n\t\tthis.setState({ alert: null, isLoading: true });\r\n\t };\r\n\t hideLoading = () => {\r\n\t\tthis.setState({ alert: null, isLoading: false });\r\n\t };\r\n\t hideDialog = () => {\r\n\t\tthis.setState({ cancelDialog: false, remindDialog: false });\r\n\t };\r\n\r\n\thandleCancel = (row) => {\r\n\t\tif (!this.state.isBackOffice) {\r\n\t\t\tvar cancelRequestModel = { ...this.state.cancelRequestModel };\r\n\t\t\tconst selectTransfer = row;\r\n\t\t\tcancelRequestModel.SelectedTransfer = selectTransfer;\r\n\t\t\tif (cancelRequestModel.SelectedTransfer.TransactionStatus == \"Pending\")\r\n\t\t\t this.setState({ cancelRequestModel, cancelDialog: true });\r\n\t\t\telse\r\n\t\t\t this.ShowMessage(\r\n\t\t\t\t \"warning\",\r\n\t\t\t\t \"Warning\",\r\n\t\t\t\t \"Selected transaction status is not Pending !!!\"\r\n\t\t\t );\r\n\t\t }\r\n\t}\r\n\r\n\tIsValid = () => {\r\n\t\tvar vmodel = { ...this.state.model };\r\n\r\n\t\tif (!vmodel.IsUniqueDataSearch && typeof vmodel.DateFilter.BeginDate != \"object\" && vmodel.DateFilter.BeginDate != \"\" && vmodel.DateFilter.BeginDate != null) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Begin Date is invalid\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!vmodel.IsUniqueDataSearch && typeof vmodel.DateFilter.EndDate != \"object\" && vmodel.DateFilter.EndDate != \"\" && vmodel.DateFilter.EndDate != null) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"End Date is invalid\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tHandleGetList = () => {\r\n\r\n\t\tif (!this.IsValid())\r\n\t\t\treturn;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Transaction/GetAllTransactionAdjustment\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ list: [] });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleSubmit = (workflowId, after, accessToken) => {\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tvar temp = { ...this.state.model };\r\n\t\ttemp.IsManualTransactionEntry = this.state.isManualTransactionEntryMenu;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Transaction/InsertTransactionAdjustment\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Operation is successfully!\");\r\n\t\t\t\tthis.HandleClear();\r\n\t\t\t\tthis.HandleGetList();\r\n\r\n\t\t\t\tif (after) after();\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t},\r\n\t\t\tworkflowId,\r\n\t\t\taccessToken\r\n\t\t);\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst vModel = this.state.vModel;\r\n\r\n\t\tif (!this.state.isManualTransactionEntryMenu) {\r\n\t\t\tif (!model.SourceAccountId) {\r\n\t\t\t\tvModel.SourceAccountId = true;\r\n\t\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Settlement Account is not selected!\");\r\n\t\t\t\treturn;\r\n\t\t\t} else { vModel.SourceAccountId = false; }\r\n\t\t}\r\n\t\tif (!model.ProgramId) {\r\n\t\t\tvModel.ProgramId = true;\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Program is not selected!\");\r\n\t\t\treturn;\r\n\t\t} else { vModel.ProgramId = false; }\r\n\t\tif (!model.ToClientId) {\r\n\t\t\tvModel.ToClientId = true;\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Client is not selected!\");\r\n\t\t\treturn;\r\n\t\t} else { vModel.ToClientId = false };\r\n\t\tif (!model.DestinationAccountId) {\r\n\t\t\tvModel.DestinationAccountId = true;\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Client Account is not selected!\");\r\n\t\t\treturn;\r\n\t\t} else { vModel.DestinationAccountId = false };\r\n\t\tif (!model.TransactionTypeId) {\r\n\t\t\tvModel.TransactionTypeId = true;\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Transaction Type is not selected!\");\r\n\t\t\treturn;\r\n\t\t} else { vModel.TransactionTypeId = false; }\r\n\t\tif (model.Amount == null) {\r\n\t\t\tvModel.Amount = true;\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Amount is not selected!\");\r\n\t\t\treturn;\r\n\t\t} else { vModel.Amount = false; }\r\n\t\tthis.setState({ vModel });\r\n\t\treturn true;\r\n\t}\r\n\r\n\tRenderItemAccount = (d) => {\r\n\t\tthis.renderItemAccount = `${d?.BankingAccountType?.ParameterDesc || \"\"} - ${d.AccountName} - ${d?.AccountNumber || \"\"}`;\r\n\t\treturn this.renderItemAccount;\r\n\t}\r\n\r\n\tGetDestinationAccountParameter = () => {\r\n\t\tthis.parameterDestAcc.UniqueClientId = this.state.model.ToClientId;\r\n\t\tthis.parameterDestAcc.ProgramId = this.state.model.ProgramId;\r\n\t\treturn this.parameterDestAcc;\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: \"\" })} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\thandleChangeCancelModel = (name, newValue) => {\r\n\t\tconst cancelRequestModel = { ...this.state.cancelRequestModel };\r\n\t\tcancelRequestModel.cancellationReason = newValue;\r\n\t\tthis.setState({ cancelRequestModel });\r\n\t };\r\n\r\n\t confirmCancel = () => {\r\n\t\tvar cancelRequestModel = { ...this.state.cancelRequestModel };\r\n\t\tif (\r\n\t\t cancelRequestModel.cancellationReason != null &&\r\n\t\t cancelRequestModel.cancellationReason != \"\"\r\n\t\t) {\r\n\t\t this.hideDialog();\r\n\t\t this.showLoading();\r\n \r\n\t\t Proxy.POST(\r\n\t\t\t \"/bankapi/v1.0/Transaction/CancelManuelEntryTransactionIsCheque\",\r\n\t\t\t cancelRequestModel,\r\n\t\t\t (responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t this.setState({ IsConfirm: false });\r\n\t\t\t\t this.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t return;\r\n\t\t\t\t}\r\n\t\t\t\tthis.ShowMessage(\r\n\t\t\t\t \"success\",\r\n\t\t\t\t \"Success\",\r\n\t\t\t\t \"Transfer cancelled successfuly\"\r\n\t\t\t\t);\r\n\t\t\t\tthis.HandleClear();\r\n\t\t\t\tthis.HandleGetList();\r\n\t\t\t },\r\n\t\t\t (error) => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t }\r\n\t\t );\r\n\t\t} else {\r\n\t\t this.ShowMessage(\r\n\t\t\t \"warning\",\r\n\t\t\t \"Warning\",\r\n\t\t\t \"Cancellation Reason can not be null !!!\"\r\n\t\t );\r\n\t\t}\r\n\t };\r\n\r\n\tgetTransactionMessage = () => {\r\n\t\tif (!this.state ||\r\n\t\t\t!this.state.model ||\r\n\t\t\t!this.state.model.transactionTypeName ||\r\n\t\t\t!this.state.model.Amount ||\r\n\t\t\t!this.state.model.destinationAccountName ||\r\n\t\t\t(!this.state.isManualTransactionEntryMenu &&\r\n\t\t\t\t!this.state.model.sourceAccountName)) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tvar model = { ...this.state.model };\r\n\t\tlet amount = model.Amount.toFixed(2); //300000000.00\r\n\t\tif (this.state.isManualTransactionEntryMenu) {\r\n\r\n\t\t\tif (this.state.model.transactionTypeName == TransactionType.Credit) {\r\n\t\t\t\treturn `The amount of $${amount} will be deposited to account ${model.destinationAccountName}.`\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\treturn `The amount of $${amount} will be withdrawn from account ${model.destinationAccountName}.`\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (this.state.model.transactionTypeName == TransactionType.Credit) {\r\n\t\t\t\treturn `The amount of $${amount} will be deposited from account ${model.sourceAccountName} to ${model.destinationAccountName}`;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\treturn `The amount of $${amount} will be deposited from account ${model.destinationAccountName} to ${model.sourceAccountName}`;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\trender() {\r\n\t\tconst { classes, Disabled } = this.props;\r\n\t\tconst { alert, model, list, isLoading, vModel,cancelDialog ,cancelRequestModel} = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t model, FillDataFromModel: model => this.setState({ model }), ValidationFunction: this.Validate },\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t
Cancel Transfer
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\tthis.setState({ cancelDialog: false, cancelRequestModel: {} })\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\tNo\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{!this.state.isManualTransactionEntryMenu && (\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t `${d.AccountNumber} - ${d.AccountName} - ${d.SettlementAccountType}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.SourceAccountId}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tRequired={!model.IsUniqueDataSearch && !this.state.isManualTransactionEntryMenu == true ? true : false}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.SourceAccountId}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={Disabled}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={model.ToClientId}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\tRequired={!model.IsUniqueDataSearch && model.ProgramId != null ? true : false}\r\n\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.ToClientId}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={Disabled}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{this.state.isManualTransactionEntryMenu && (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t {this.getTransactionMessage()}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t\t\r\n\t\t);\r\n\r\n\t}\r\n}\r\n\r\nTransactionAdjustment.propTypes = {\r\n\tclasses: PropTypes.object.isRequired\r\n};\r\n\r\nexport default withArtifex(TransactionAdjustment, {});\r\n\r\n","import Card from \"components/Card/Card\";\r\nimport CardBody from \"components/Card/CardBody\";\r\nimport GridContainer from \"components/Grid/GridContainer\";\r\nimport GridItem from \"components/Grid/GridItem\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport {\r\n\tGenericDateInput,\r\n\tGenericExpansionPanel,\r\n\tGenericGrid,\r\n\tGenericSelectInput,\r\n\tGenericTextInput\r\n} from \"views/Components/Generic\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\nimport { DeleteIcon } from \"core/Icons\";\r\nimport GridButton from \"views/Components/GridButton\";\r\n\r\nclass ExpiredTransactionsManualRelease extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t this.TransactionReleaseConfirm(row.original.Id)} \r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\twidth: 150,\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"CustomerName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reference Number\",\r\n\t\t\t\taccessor: \"ReferenceNumber\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Type\",\r\n\t\t\t\taccessor: \"CardType\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Token Number\",\r\n\t\t\t\taccessor: \"CardTokenNumber\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"CardId\",\r\n\t\t\t\taccessor: \"CardId\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"WalletAccountId\",\r\n\t\t\t\taccessor: \"WalletAccountId\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Available Credit Limit\",\r\n\t\t\t\taccessor: \"AvailableCreditLimit\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Date Time\",\r\n\t\t\t\taccessor: \"TransactionDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tColumnType: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Code\",\r\n\t\t\t\taccessor: \"TransactionCode\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Type\",\r\n\t\t\t\taccessor: \"TransactionType\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Response Code\",\r\n\t\t\t\taccessor: \"ResponseCode\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Billing Amount\",\r\n\t\t\t\taccessor: \"BillingAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Billing Currency Code\",\r\n\t\t\t\taccessor: \"BillingCurrencyCode\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"F4\",\r\n\t\t\t\taccessor: \"F4\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"F49\",\r\n\t\t\t\taccessor: \"F49\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"F6\",\r\n\t\t\t\taccessor: \"F6\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"F51\",\r\n\t\t\t\taccessor: \"F51\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Reversed\",\r\n\t\t\t\taccessor: \"IsReversed\",\r\n\t\t\t\ttype: GridColumnType.YesNo,\r\n\t\t\t\tColumnType: GridColumnType.YesNo\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reversal Type\",\r\n\t\t\t\taccessor: \"ReversalType\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reversed Date Time\",\r\n\t\t\t\taccessor: \"ReversedDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tColumnType: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Txn Description\",\r\n\t\t\t\taccessor: \"TxnDescription\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Settlement Status\",\r\n\t\t\t\taccessor: \"SettlementStatus\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Settlement Date\",\r\n\t\t\t\taccessor: \"SettlementDate\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tColumnType: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Mti\",\r\n\t\t\t\taccessor: \"Mti\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Entry Type\",\r\n\t\t\t\taccessor: \"TransactionEntryType\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"F43Name\",\r\n\t\t\t\taccessor: \"F43Name\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"F43City\",\r\n\t\t\t\taccessor: \"F43City\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Has Partial Reversal\",\r\n\t\t\t\taccessor: \"HasPartialReversal\",\r\n\t\t\t\ttype: GridColumnType.YesNo,\r\n\t\t\t\tColumnType: GridColumnType.YesNo\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Has Incremental Authorization\",\r\n\t\t\t\taccessor: \"HasIncrementalAuthorization\",\r\n\t\t\t\ttype: GridColumnType.YesNo,\r\n\t\t\t\tColumnType: GridColumnType.YesNo\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Incremental Authorization Count\",\r\n\t\t\t\taccessor: \"IncrmentalAuthorizationCount\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Last Incremental Authorization Date Time\",\r\n\t\t\t\taccessor: \"LastIncrementalAuthorizationDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tColumnType: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Category Code\",\r\n\t\t\t\taccessor: \"TransactionCategoryCode\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Insert Date Time\",\r\n\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tColumnType: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"StatementId\",\r\n\t\t\t\taccessor: \"StatementId\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Transaction Source\",\r\n\t\t\t\taccessor: \"CardTransactionSource\",\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.emptyObject = {};\r\n\t\tthis.validateProperties = [\r\n\t\t\t// { ReferenceNumber: \"Reference Number\" }\r\n\t\t];\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"SYSTEM ADMIN\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Expired Transactions Manual Release\");\r\n\t\t}\r\n\t}\r\n\r\n\tTransactionReleaseConfirm = (transactionId) => {\r\n\t\tconst { ExecuteApiPost, showConfirmMessage } = this.props;\r\n\r\n\t\tshowConfirmMessage(\"warning\", \"Warning\", \"Do you want to release this transaction ?\", () => ExecuteApiPost(\"/bankapi/v1.0/Transaction/TransactionReleaseById\", { TransactionId: transactionId }, null, null, null, [this.Search], true));\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState((state) => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t};\r\n\r\n\tSearch = async () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\r\n\t\t\t\"/bankapi/v1.0/Transaction/ExpiredTransactionsList\",\r\n\t\t\tmodel,\r\n\t\t\tmodel,\r\n\t\t\tthis.validateProperties\r\n\t\t);\r\n\r\n\t\tthis.setState({ list: result || [] });\r\n\t};\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, list: [] });\r\n\t};\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, list } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\tTextValueMember=\"Name\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.ValueChanged}\r\n\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t{/* */}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nExpiredTransactionsManualRelease.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any,\r\n};\r\n\r\nexport default ExpiredTransactionsManualRelease;\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericCheckInput, GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle, GenericLabel, GenericRadioInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\nimport Select from \"react-select\";\r\nimport { DialogTitle, DialogContent } from \"@material-ui/core\";\r\nimport Button from \"components/CustomButtons/Button\";\r\n\r\nclass AccountMovements extends Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\tisLoading: false,\r\n\t\t\talert: null,\r\n\t\t\thasChanged: false,\r\n\t\t};\r\n\t\tthis.sortName = { Member: \"Name\" };\r\n\t\tthis.sortListName = [{ id: \"CustomerName\" }];\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.trxTable = React.createRef();\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tstyle: this.RenderStyle()\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Channel Type\",\r\n\t\t\t\taccessor: \"ChannelType\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Received / Sent\",\r\n\t\t\t\taccessor: \"TransactionType\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"Amount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tstyle: this.RenderStyle(),\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\twidth: 200,\r\n\t\t\t\tHeader: \"From Account Number\",\r\n\t\t\t\taccessor: \"SourceAccountNumber\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"From Account\",\r\n\t\t\t\taccessor: \"SourceAccountName\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\twidth: 230,\r\n\t\t\t\tHeader: \"To Account\",\r\n\t\t\t\taccessor: \"DestinationAccountName\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"To Account Number\",\r\n\t\t\t\taccessor: \"DestinationAccountNumber\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value ?? \" - \"}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Destination Customer Name\",\r\n\t\t\t\taccessor: \"DestinationCustomerName\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\r\n\r\n\t\t\t{\r\n\t\t\t\twidth: 300,\r\n\t\t\t\tHeader: \"Description\",\r\n\t\t\t\taccessor: \"SummaryDescription\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t)\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reference Number\",\r\n\t\t\t\taccessor: \"ReferenceNumber\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t)\r\n\t\t\t}\r\n\r\n\t\t];\r\n\r\n\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Account Activities\");\r\n\t\tthis.props.setAppCenterTitle(\"BANKING\");\r\n\t\tthis.ProgramCode = ProgramCodes.Prepaid;\r\n\t\tthis.state.model.ProgramCode = ProgramCodes.Prepaid;\r\n\r\n\t\tthis.setState({ loadingCompleted: true });\r\n\r\n\t}\r\n\tIsValid = () => {\r\n\t\tvar vmodel = { ...this.state.model };\r\n\r\n\r\n\r\n\t\tif (!vmodel.IsUniqueDataSearch && !vmodel.ClientCustomerId) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Customer Name is invalid\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!vmodel.IsUniqueDataSearch && typeof vmodel.FromDate != \"object\" && vmodel.FromDate != \"\" && !vmodel.FromDate) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"From Date is invalid\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!vmodel.IsUniqueDataSearch && typeof vmodel.ToDate != \"object\" && vmodel.ToDate != \"\" && !vmodel.ToDate) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"To Date is invalid\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!vmodel.IsUniqueDataSearch && (typeof vmodel.FromDate == \"object\" && typeof vmodel.ToDate == \"object\") && vmodel.ToDate < vmodel.FromDate) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"From Date cannot be greater than To Date!\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\r\n\thandleChange = (name, newValue) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tif (name == \"ReferenceNumber\") {\r\n\t\t\tmodel.IsUniqueDataSearch = newValue.length > 0;\r\n\t\t}\r\n\t\tthis.setState({ model: model });\r\n\t}\r\n\tClearData = () => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tmodel: {},\r\n\t\t\tisLoading: false,\r\n\t\t});\r\n\t}\r\n\tRenderStyle = () => {\r\n\t\treturn {\r\n\t\t\tcolumn: \"TransactionType\",\r\n\t\t\tcondition: \"Received\",\r\n\t\t\tstyle: { fontWeight: \"600\" },\r\n\t\t\tprefix: [\"+\", \"\"]\r\n\t\t};\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\r\n\tHandleGetList = () => {\r\n\t\tthis.setState(state => ({ trxGridToken: !state.trxGridToken }));\r\n\t}\r\n\r\n\tExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.accessor != \"Actions\" && c.accessor != \"ED\" && (c.show == undefined || c.show)) {\r\n\t\t\t\ttrxColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: trxColumns, ExportSelectedColumns: trxColumns });\r\n\t}\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tif (!this.IsValid())\r\n\t\t\treturn;\r\n\r\n\t\tconst temp = { ...this.state.model };\r\n\r\n\t\tvar jsonColList = [];\r\n\r\n\t\tvar trxColumns = {};\r\n\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\ttrxColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t});\r\n\t\tjsonColList.push(trxColumns);\r\n\r\n\t\tvar mytitle = \"Account Movements Transactions Report\";\r\n\r\n\t\ttemp.jsonFile = {\r\n\t\t\tcolmns: jsonColList,\r\n\t\t\tformat: this.state.ExportReportType,\r\n\t\t\ttitle: mytitle\r\n\t\t};\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\"/bankapi/v1.0/Transaction/AccountMovementTransactionExport\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t},\r\n\t\t\tthis.props.showMessage\r\n\t\t);\r\n\t}\r\n\r\n\r\n\trender() {\r\n\t\tconst { model, hasChanged } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{/* */}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t { return this.state.model; }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tRequestUrl=\"/bankapi/v1.0/Transaction/AccountMovementTransactionPaged\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tRequestMethod=\"POST\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nAccountMovements.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\n\r\nexport default withArtifex(AccountMovements, {}); ","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport { PropTypes } from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericCheckInput, GenericExpansionPanel, GenericGrid, GenericLabel, GenericNumberInput, GenericSelectInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\n\r\nclass AutoLoadingInstruction extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tIsPeriodic: true,\r\n\t\t\tIsExternalAccount: false,\r\n\t\t\tIsClientInstruct: true,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tlist: [],\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tvModel: {},\r\n\t\t\tisLoading: false,\r\n\t\t\trowIndex: -1\r\n\t\t};\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.parameterPeriod = { ParameterCode: \"Period\" };\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Auto-Loading Between Accounts\");\r\n\t\tthis.props.setAppCenterTitle(\"BANKING\");\r\n\t}\r\n\r\n\tHandleChange = (name, value, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\r\n\t\tif (name === \"IsPeriodic\")\r\n\t\t\tdelete model.MinimumBalance;\r\n\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tconst model = this.state.list[index];\r\n\t\tthis.setState({ model, rowIndex: index });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, rowIndex: -1 });\r\n\t}\r\n\r\n\tHandleGetList = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/AutoLoadingInstruction/GetAll\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ list: [] });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleSubmit = () => {\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/AutoLoadingInstruction/InsertOrUpdate\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Operation is successfully!\");\r\n\t\t\t\tthis.HandleClear();\r\n\t\t\t\tthis.HandleGetList();\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleDelete = () => {\r\n\t\tthis.ShowConfirmMessage(\"warning\", \"Warning\", \"Are you sure do you want to remove the Auto-load Instruction?\", () => {\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tProxy.GET(\r\n\t\t\t\t\"/bankapi/v1.0/AutoLoadingInstruction/Delete/Id?Id=\" + this.state.model.Id,\r\n\t\t\t\t(responseData) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.ShowMessage(\"success\", \"Deleted successfully!\");\r\n\t\t\t\t\tthis.HandleClear();\r\n\t\t\t\t\tthis.HandleGetList();\r\n\t\t\t\t},\r\n\t\t\t\t(error) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while deleting data\", error.message);\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t});\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tvar messages = [];\r\n\r\n\t\tvModel.SourceAccountId = !model.IsExternalAccount && model.SourceAccountId == null;\r\n\t\tif (vModel.SourceAccountId) messages.push(\"Source Account must be select\");\r\n\r\n\t\tvModel.ExternalSourceAccountId = model.IsExternalAccount && model.SourceAccountId == null;\r\n\t\tif (vModel.ExternalSourceAccountId) messages.push(\"Source Account must be select\");\r\n\r\n\t\tvModel.DestinationAccountId = !model.IsExternalAccount && model.DestinationAccountId == null;\r\n\t\tif (vModel.DestinationAccountId) messages.push(\"Receiver Account must be select\");\r\n\r\n\t\tvModel.ExternalDestinationAccountId = model.IsExternalAccount && model.DestinationAccountId == null;\r\n\t\tif (vModel.ExternalDestinationAccountId) messages.push(\"Receiver Account must be select\");\r\n\r\n\t\tvModel.MinimumBalance = !model.IsPeriodic && (model.MinimumBalance == null || model.MinimumBalance == 0);\r\n\t\tif (vModel.MinimumBalance) messages.push(\"Minimum Balance cannot be empty\");\r\n\r\n\t\tvModel.PeriodId = model.IsPeriodic && model.PeriodId == null;\r\n\t\tif (vModel.PeriodId) messages.push(\"Period must be select\");\r\n\r\n\t\tvModel.Amount = model.Amount == null || model.Amount == 0;\r\n\t\tif (vModel.Amount) messages.push(\"Transaction Amount cannot be empty\");\r\n\r\n\t\tvModel.UserId = model.UserId == null;\r\n\t\tif (vModel.UserId) messages.push(\"User must be select\");\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (model.SourceAccountId == model.DestinationAccountId) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Invalid\", \"Accounts must be different !\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ vModel });\r\n\t\treturn true;\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: \"\" })} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes, Disabled } = this.props;\r\n\t\tconst { alert, model, vModel, list, isLoading } = this.state;\r\n\t\treturn (\r\n\t\t\t<>\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\r\n\t\t\t\t 0, ModelFunction: () => model, FillDataFromModel: model => this.setState({ model }), ValidationFunction: this.Validate },\r\n\t\t\t\t\t{ Code: \"Update\", OnClick: this.HandleSubmit, Disabled: Disabled || model.Id === 0, ModelFunction: () => model, FillDataFromModel: model => this.setState({ model }), ValidationFunction: this.Validate },\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{/* */}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t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\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{row.value == true ? \"Periodic Loading\" : \"Load According to Minimum Balance\"}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 250\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Minimum Available Balance\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"MinimumBalance\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 200\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Period\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Period.ParameterDesc\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 200\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Auto-Loading Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 200\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"User for Mail to Send\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"User.UserEmail\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 300\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\t\t\tRowSelected={this.RowSelected}\r\n\t\t\t\t\t\t\t\t\t\t\tSelectedIndex={this.state.rowIndex}\r\n\t\t\t\t\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_Bank_Account} />\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nAutoLoadingInstruction.propTypes = {\r\n\tclasses: PropTypes.object.isRequired\r\n};\r\n\r\nexport default withArtifex(AutoLoadingInstruction, {});\r\n","import { DialogContent, DialogTitle, Slide } from \"@material-ui/core\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport PropTypes, { any } from \"prop-types\";\r\nimport React from \"react\";\r\nimport BillFromFile from \"views/BankAccount/BillPayment/BillDefinition/BillFromFile\";\r\nimport BillIndividual from \"views/BankAccount/BillPayment/BillDefinition/BillIndividual\";\r\nimport BillRecurring from \"views/BankAccount/BillPayment/BillDefinition/BillRecurring\";\r\nimport AccountLimitToolbar from \"views/Components/AccountLimitToolbar\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericCheckInput, GenericDateInput, GenericDialog, GenericDialogActions, GenericGrid, GenericIcon, GenericLabel, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { BillPayType, PeriodCodes, ProgramCodes } from \"views/Constants/Constant\";\r\nimport CustomerDefinition from \"views/Customer/CustomerDefinition\";\r\n\r\nfunction Transition(props) {\r\n\treturn ;\r\n}\r\n\r\nclass BillDefinition extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.renderItemBiller = {};\r\n\t\tthis.defaultModel = {\r\n\t\t\tBillPayType: \"\",\r\n\t\t\tBillPayTypeId: null,\r\n\r\n\t\t\tIsUpdate: false,\r\n\t\t\tClientId: 0,\r\n\r\n\t\t\tBillerCode: \"\",\r\n\t\t\tBillerName: \"\",\r\n\t\t\tBillerId: null,\r\n\r\n\t\t\tIsCustomerPopupOpen: false,\r\n\t\t\tClientCustomerId: 0,\r\n\t\t\tClientCustomerName: \"\",\r\n\t\t\tNewCustomer: false,\r\n\t\t};\r\n\t\tthis.defaultRecurringModel = {\r\n\t\t\tId: null,\r\n\t\t\tClientCustomerId: null,\r\n\t\t\tPayeeName: \"\",\r\n\t\t\tTransitNumber: \"\",\r\n\t\t\tAccountNumber: \"\",\r\n\t\t\tStartDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tEndDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tPaymentCount: null,\r\n\t\t\tRecurringAmount: null,\r\n\t\t\tTotalAmount: null,\r\n\t\t\tBillDescription: \"\",\r\n\t\t\tPeriodId: null,\r\n\t\t\tPeriodCode: \"\",\r\n\t\t\tWeeklyId: null,\r\n\t\t\tWeeklyNumber: null,\r\n\t\t\tBiWeeklyId: null,\r\n\t\t\tBiWeeklyNumber: null,\r\n\t\t\tMonthlyId: null,\r\n\t\t\tMonthlyNumber: null,\r\n\t\t\tQuarterlyId: null,\r\n\t\t\tQuarterlyNumber: null,\r\n\t\t\tIsCustomerPopupOpen: false,\r\n\t\t\tFreezeStartDate: null,\r\n\t\t\tFreezeEndDate: null,\r\n\t\t\tBillPayTypeId: null,\r\n\t\t\tIsPayed: false,\r\n\t\t\tPayIndex: 0,\r\n\t\t\tBillerCode: \"\",\r\n\t\t\tBillerName: \"\"\r\n\t\t};\r\n\t\tthis.defaultFromFileModel = {\r\n\t\t\tAutoApprove: false,\r\n\t\t\tFileName: \"\",\r\n\t\t\tFile: null\r\n\t\t};\r\n\t\tthis.defaultIndividualModel = {\r\n\t\t\tId: null,\r\n\t\t\tClientCustomerId: null,\r\n\t\t\tPayeeName: \"\",\r\n\t\t\tNewCustomer: false,\r\n\t\t\tTransitNumber: \"\",\r\n\t\t\tAccountNumber: \"\",\r\n\t\t\tAmount: null,\r\n\t\t\tAccountName: \"\",\r\n\t\t\tBillDescription: \"\",\r\n\t\t\tIsCustomerPopupOpen: false,\r\n\t\t\tTransactionType: \"\",\r\n\t\t\tTransactionTypeCode: \"\",\r\n\t\t\tTransactionCode: \"\",\r\n\t\t\tBillPayTypeId: null,\r\n\t\t\tBillerCode: \"\",\r\n\t\t\tBillerName: \"\"\r\n\t\t};\r\n\t\tthis.defaultBillerModel = {\r\n\t\t\tId: 0,\r\n\t\t\tName: \"\",\r\n\t\t\tCode: \"\",\r\n\t\t\tIsNewBiller: false,\r\n\t\t\tIsAgainNewBiller: false,\r\n\t\t\tNewBiller: false\r\n\t\t};\r\n\t\tthis.state = {\r\n\t\t\tisLoading: false,\r\n\t\t\talert: null,\r\n\r\n\t\t\tvFromFileModel: {},\r\n\t\t\tvIndividualModel: {},\r\n\t\t\tvRecurringModel: {},\r\n\t\t\tvModel: {},\r\n\r\n\t\t\tIsPayIndivudalPassive: true,\r\n\t\t\tIsPayRecurringPassive: true,\r\n\t\t\tIsPayFromFilePassive: true,\r\n\r\n\t\t\tidIndividualClientWarningOpen: false,\r\n\t\t\tisIndividualDialogOpen: false,\r\n\t\t\tisRecurringDialogOpen: false,\r\n\t\t\tisFileDialogOpen: false,\r\n\t\t\tisBillerDialogOpen: false,\r\n\t\t\tisClearDialogOpen: false,\r\n\t\t\tisFileResultDialogOpen: false,\r\n\r\n\r\n\t\t\tBillFromFileModel: { ...this.defaultFromFileModel },\r\n\t\t\tBillRecurringModel: { ...this.defaultRecurringModel },\r\n\t\t\tBillIndividualModel: { ...this.defaultIndividualModel },\r\n\t\t\tBillerModel: { ...this.defaultBillerModel },\r\n\t\t\tmodel: { ...this.defaultModel },\r\n\r\n\t\t\tLimitToken: false,\r\n\t\t\tLimitBalanceData: {\r\n\t\t\t\tAvailableCreditLimit: 0,\r\n\t\t\t\tAvailableDebitLimit: 0,\r\n\t\t\t\tAvailableBalance: 0\r\n\t\t\t},\r\n\t\t\tcustomertoken: 0,\r\n\r\n\t\t\tBillList: [],\r\n\t\t\tBillerList: [],\r\n\t\t\tFileResultList: [],\r\n\t\t};\r\n\t\tthis.RecurringModelChange = this.RecurringModelChange.bind(this);\r\n\t\tthis.IndividualModelChange = this.IndividualModelChange.bind(this);\r\n\t\tthis.BillerModelChange = this.BillerModelChange.bind(this);\r\n\t\tthis.FromFileModelChange = this.FromFileModelChange.bind(this);\r\n\t\tthis.RefreshToolBar = this.RefreshToolBar.bind(this);\r\n\r\n\t\tthis.addCustomerDialogClose = this.addCustomerDialogClose.bind(this);\r\n\t\tthis.addCustomerSaved = this.addCustomerSaved.bind(this);\r\n\t\tthis.hideAlert = this.hideAlert.bind(this);\r\n\r\n\t}\r\n\r\n\tValidate = () => {\r\n\r\n\t\tconst { model, BillIndividualModel, BillRecurringModel, BillFromFileModel, vModel, vIndividualModel, vRecurringModel, vFromFileModel } = this.state;\r\n\t\tvar billMessages = [];\r\n\r\n\t\tif (model.BillPayType != BillPayType.File) {\r\n\t\t\tif (model.BillerCode == null || model.BillerCode == \"\") { vModel.BillerCode = true; billMessages.push(\"Payee Name can not be null\"); } else { vModel.BillerCode = false; }\r\n\t\t\tif (!model.ClientCustomerId) { vModel.ClientCustomerId = true; billMessages.push(\"Customer name can not be null\"); } else { vModel.ClientCustomerId = false; }\r\n\t\t}\r\n\t\tswitch (model.BillPayType) {\r\n\t\t\tcase BillPayType.Individual:\r\n\t\t\t\tvModel.BillPayTypeId = false;\r\n\t\t\t\tif (!BillIndividualModel.AccountNumber) { vIndividualModel.AccountNumber = true; billMessages.push(\"Payee Account Number cannot be null.\"); } else { vIndividualModel.AccountNumber = false; }\r\n\t\t\t\tif (!BillIndividualModel.Amount) { vIndividualModel.Amount = true; billMessages.push(\"Amount cannot be null.\"); } else { vIndividualModel.Amount = false; }\r\n\r\n\t\t\t\t// if (IsClient) {\r\n\t\t\t\t// \tif (LimitBalanceData == null) billMessages.push(\"Limit Balance data is empty.\");\r\n\t\t\t\t// \telse if (!Disabled && !model.IsUpdate && LimitBalanceData.AvailableBalance != null && LimitBalanceData.AvailableBalance < BillIndividualModel.Amount) billMessages.push(\"Transaction Amount cannot be higher than balance.\");\r\n\t\t\t\t// }\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase BillPayType.Recurring:\r\n\t\t\t\tvModel.BillPayTypeId = false;\r\n\t\t\t\tif (BillRecurringModel.AccountNumber == \"\") { vRecurringModel.AccountNumber = true; billMessages.push(\"Payee Account Number cannot be null.\"); } else { vRecurringModel.AccountNumber = false; }\r\n\r\n\t\t\t\tif (BillRecurringModel.StartDate == null) { vRecurringModel.StartDate = true; billMessages.push(\"Start Date cannot be null.\"); }\r\n\t\t\t\telse if (typeof BillRecurringModel.StartDate != \"object\") { vRecurringModel.StartDate = true; billMessages.push(\"Start Date is invalid.\"); }\r\n\t\t\t\telse { vRecurringModel.StartDate = false; }\r\n\r\n\t\t\t\tif (BillRecurringModel.EndDate == null) { vRecurringModel.EndDate = true; billMessages.push(\"End Date cannot be null.\"); }\r\n\t\t\t\telse if (typeof BillRecurringModel.EndDate != \"object\") { vRecurringModel.EndDate = true; billMessages.push(\"End Date is invalid.\"); }\r\n\t\t\t\telse if (DateHelper.ToMoment(BillRecurringModel.EndDate).startOf(\"day\") < DateHelper.GetDate()) { vRecurringModel.EndDate = true; billMessages.push(\"End Date cannot be past.\"); }\r\n\t\t\t\telse { vRecurringModel.EndDate = false; }\r\n\r\n\t\t\t\tif (typeof BillRecurringModel.StartDate == \"object\" && typeof BillRecurringModel.EndDate == \"object\" && BillRecurringModel.StartDate > BillRecurringModel.EndDate) billMessages.push(\"Start Date cannot be after End Date.\");\r\n\r\n\t\t\t\tif (model.IsUpdate) {\r\n\t\t\t\t\tif (BillRecurringModel.FreezeStartDate != null && typeof BillRecurringModel.FreezeStartDate != \"object\") { vRecurringModel.FreezeStartDate = true; billMessages.push(\"Freeze Start Date is invalid.\"); }\r\n\t\t\t\t\telse if (DateHelper.ToMoment(BillRecurringModel.FreezeStartDate).startOf(\"day\") < DateHelper.ToMoment(BillRecurringModel.StartDate).startOf(\"day\")) { vRecurringModel.FreezeStartDate = true; billMessages.push(\"Freeze Start Date cannot be before Start Date.\"); }\r\n\t\t\t\t\telse { vRecurringModel.FreezeStartDate = false; }\r\n\r\n\r\n\t\t\t\t\tif (BillRecurringModel.FreezeEndDate != null && typeof BillRecurringModel.FreezeEndDate != \"object\") { vRecurringModel.FreezeEndDate = true; billMessages.push(\"Freeze End Date is invalid.\"); }\r\n\t\t\t\t\telse if (DateHelper.ToMoment(BillRecurringModel.FreezeEndDate).startOf(\"day\") > DateHelper.ToMoment(BillRecurringModel.EndDate).startOf(\"day\")) { vRecurringModel.FreezeEndDate = true; billMessages.push(\"Freeze End Date cannot be after End Date.\"); }\r\n\t\t\t\t\telse { vRecurringModel.FreezeEndDate = false; }\r\n\r\n\t\t\t\t\tif (!BillRecurringModel.FreezeStartDate && BillRecurringModel.FreezeEndDate) { vRecurringModel.FreezeStartDate = true; billMessages.push(\"Freeze Start Date cannot be empty.\"); }\r\n\t\t\t\t\telse { vRecurringModel.FreezeStartDate = false; }\r\n\r\n\t\t\t\t\tif (!BillRecurringModel.FreezeEndDate && BillRecurringModel.FreezeStartDate) { vRecurringModel.FreezeEndDate = true; billMessages.push(\"Freeze End Date cannot be empty.\"); }\r\n\t\t\t\t\telse { vRecurringModel.FreezeEndDate = false; }\r\n\t\t\t\t}\r\n\t\t\t\tif (BillRecurringModel.PaymentCount == null || BillRecurringModel.PaymentCount == \"0\") { vRecurringModel.PaymentCount = true; billMessages.push(\"Period/No. Of Payment cannot be null.\"); } else { vRecurringModel.PaymentCount = false; }\r\n\t\t\t\tif (BillRecurringModel.RecurringAmount == null || BillRecurringModel.RecurringAmount == \"\" || BillRecurringModel.RecurringAmount == 0) { vRecurringModel.RecurringAmount = true; billMessages.push(\"Recurring Amount cannot be null.\"); } else { vRecurringModel.RecurringAmount = false; }\r\n\t\t\t\tif (BillRecurringModel.PeriodId == null || BillRecurringModel.PeriodId == \"\") { vRecurringModel.PeriodId = true; billMessages.push(\"First Due Date Options is not selected.\"); } else { vRecurringModel.PeriodId = false; }\r\n\t\t\t\tif (BillRecurringModel.PeriodCode == PeriodCodes.Weekly && (BillRecurringModel.WeeklyNumber == null || BillRecurringModel.WeeklyNumber == \"\")) billMessages.push(\"Day of week is not selected.\");\r\n\t\t\t\tif (BillRecurringModel.PeriodCode == PeriodCodes.BiWeekly && (BillRecurringModel.BiWeeklyNumber == null || BillRecurringModel.BiWeeklyNumber == \"\")) billMessages.push(\"Day of week is not selected.\");\r\n\t\t\t\tif (BillRecurringModel.PeriodCode == PeriodCodes.Monthly && (BillRecurringModel.MonthlyNumber == null || BillRecurringModel.MonthlyNumber == \"\")) billMessages.push(\"Day of month is not selected.\");\r\n\t\t\t\tif (BillRecurringModel.PeriodCode == PeriodCodes.Quarterly && (BillRecurringModel.QuarterlyNumber == null || BillRecurringModel.QuarterlyNumber == \"\")) billMessages.push(\"Day of first month of quarter is not selected.\");\r\n\r\n\t\t\t\tbreak;\r\n\t\t\tcase BillPayType.File:\r\n\t\t\t\tvFromFileModel.File = BillFromFileModel.File;\r\n\t\t\t\tif (!vFromFileModel.File) {\r\n\t\t\t\t\tthis.props.showMessage(\"warning\", \"File not selected\", \"Select File to continue.\");\r\n\t\t\t\t\tthis.setState({ vFromFileModel });\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tthis.ShowMessage(\"warning\", \"Bill Payment Type not selected\", \"Bill Payment Type not selected.\");\r\n\t\t\t\tvModel.BillPayTypeId = true;\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\tif (billMessages.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", billMessages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn true;\r\n\r\n\t}\r\n\r\n\tFillLastData = (data) => {\r\n\t\tif (data) {\r\n\t\t\tconst { BillIndividualModel, BillRecurringModel } = data;\r\n\r\n\t\t\tif (BillIndividual && BillIndividualModel != null && BillIndividualModel != any) {\r\n\t\t\t\tthis.setState({ BillIndividualModel });\r\n\t\t\t}\r\n\t\t\telse if (BillRecurringModel && BillRecurringModel != any) {\r\n\t\t\t\tBillRecurringModel.RecurringAmount = null;\r\n\t\t\t\tBillRecurringModel.TotalAmount = null;\r\n\t\t\t\tBillRecurringModel.PeriodId = BillRecurringModel.FirstDueDateOptionId;\r\n\t\t\t\tBillRecurringModel.WeeklyId = BillRecurringModel.PeriodWeeklyId;\r\n\t\t\t\tBillRecurringModel.WeeklyNumber = BillRecurringModel.PeriodWeekly != null ? BillRecurringModel.PeriodWeekly : \"\";\r\n\t\t\t\tBillRecurringModel.BiWeeklyId = BillRecurringModel.PeriodBiWeeklyId;\r\n\t\t\t\tBillRecurringModel.BiWeeklyNumber = BillRecurringModel.PeriodBiWeekly != null ? BillRecurringModel.PeriodBiWeekly : \"\";\r\n\t\t\t\tBillRecurringModel.MonthlyId = BillRecurringModel.PeriodMonthlyId;\r\n\t\t\t\tBillRecurringModel.MonthlyNumber = BillRecurringModel.PeriodMonthly != null ? BillRecurringModel.PeriodMonthly : \"\";\r\n\t\t\t\tBillRecurringModel.QuarterlyId = BillRecurringModel.PeriodQuarterlyId;\r\n\t\t\t\tBillRecurringModel.QuarterlyNumber = BillRecurringModel.PeriodQuarterly != null ? BillRecurringModel.PeriodQuarterly : \"\";\r\n\t\t\t\tBillRecurringModel.StartDate = BillRecurringModel.StartDate ? DateHelper.ToMoment(BillRecurringModel.StartDate) : null;\r\n\t\t\t\tBillRecurringModel.EndDate = BillRecurringModel.EndDate ? DateHelper.ToMoment(BillRecurringModel.EndDate) : null;\r\n\t\t\t\tBillRecurringModel.FreezeStartDate = null;\r\n\t\t\t\tBillRecurringModel.FreezeEndDate = null;\r\n\t\t\t\tBillRecurringModel.PayeeAccountNumber=\r\n\t\t\t\tthis.setState({ BillRecurringModel });\r\n\t\t\t} else {\r\n\t\t\t\tthis.setState({ BillIndividualModel: { ...this.defaultIndividualModel }, BillRecurringModel: { ...this.defaultRecurringModel } });\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.setState({ BillIndividualModel: { ...this.defaultIndividualModel }, BillRecurringModel: { ...this.defaultRecurringModel } });\r\n\t\t}\r\n\t}\r\n\r\n\tGetLastBill = (model) => {\r\n\t\tif (model.BillPayTypeId && model.BillerCode && model.ClientCustomerId && !model.IsUpdate) {\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/bankapi/v1.0/Bill/LastBillTransaction\",\r\n\t\t\t\t{\r\n\t\t\t\t\t\"BillPayType\": model.BillPayType == BillPayType.Individual ? 1 : 2,\r\n\t\t\t\t\t\"BillPayTypeId\": model.BillPayTypeId,\r\n\t\t\t\t\t\"ClientCustomerId\": model.ClientCustomerId,\r\n\t\t\t\t\t\"BillerCode\": model.BillerCode\r\n\t\t\t\t},\r\n\t\t\t\t(responseData) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.FillLastData(responseData.Item);\r\n\t\t\t\t},\r\n\t\t\t\t(error) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t}\r\n\r\n\tRecurringModelChange(modelFunction) {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.BillRecurringModel || {};\r\n\t\t\tif (modelFunction)\r\n\t\t\t\tmodel = modelFunction(model);\r\n\t\t\treturn { BillRecurringModel: model };\r\n\t\t});\r\n\t}\r\n\r\n\tBillerModelChange(name, newValue, data) {\r\n\t\tthis.setState(function (state) {\r\n\t\t\tvar model = state.model || {};\r\n\t\t\tif (data) {\r\n\t\t\t\tmodel.BillerId = data.Id;\r\n\t\t\t\tmodel[name] = newValue;\r\n\t\t\t\tmodel.BillerCode = data.BillerCode;\r\n\t\t\t\tmodel.BillerName = data.BillerName;\r\n\t\t\t\tthis.GetLastBill(model);\r\n\t\t\t}\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tIndividualModelChange(modelFunction) {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.BillIndividualModel || {};\r\n\r\n\t\t\tif (modelFunction)\r\n\t\t\t\tmodel = modelFunction(model);\r\n\r\n\t\t\treturn { BillIndividualModel: model };\r\n\t\t});\r\n\t}\r\n\r\n\tTransactionModelChange(modelFunction) {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.BillIndividualModel || {};\r\n\r\n\t\t\tif (modelFunction)\r\n\t\t\t\tmodel = modelFunction(model);\r\n\r\n\t\t\treturn { BillIndividualModel: model };\r\n\t\t});\r\n\r\n\t}\r\n\r\n\tFromFileModelChange(modelFunction) {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.BillFromFileModel || {};\r\n\r\n\t\t\tif (modelFunction)\r\n\t\t\t\tmodel = modelFunction(model);\r\n\r\n\t\t\treturn { BillFromFileModel: model };\r\n\t\t});\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\r\n\t\tif (setAppLeftTitle)\r\n\t\t\tthis.props.setAppLeftTitle(\"Create Bill Payment\");\r\n\t\tif (setAppCenterTitle)\r\n\t\t\tthis.props.setAppCenterTitle(\"BILL PAYMENT\");\r\n\r\n\t\tthis.isClient = ClientHelper.IsClient();\r\n\t\tvar model = { ...this.state.model };\r\n\t\tif (this.isClient) {\r\n\t\t\tmodel.ClientId = ClientHelper.GetClientRowId();\r\n\t\t}\r\n\t\tmodel.IsUpdate = false;\r\n\t\tthis.setState({ model });\r\n\t\tProxy.GET(\"/bankapi/v1.0/BankCustomer/CheckClientIndividual\",\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tvar data = responseData.Item;\r\n\t\t\t\tif (data) {\r\n\t\t\t\t\tif (data.IsClient && data.IsIndividual)\r\n\t\t\t\t\t\tthis.setState({ idIndividualClientWarningOpen: true });\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\tvar tempmodel = RouteHelper.ReadAndClear(\"BillModel\");\r\n\t\tif (tempmodel != any && tempmodel != null) {\r\n\t\t\tthis.SelectedRowChange(0, tempmodel);\r\n\t\t\tthis.GetBiller(this.state.model);\r\n\t\t}\r\n\t}\r\n\r\n\tCancelModel = (model) => {\r\n\t\tconst { BillRecurringModel } = { ...this.state };\r\n\t\tvar ErrorList = [];\r\n\t\tProxy.POST(\"/bankapi/v1.0/Bill/CancelRecurringBill\",\r\n\t\t\t{\r\n\t\t\t\tId: BillRecurringModel.Id\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false, isRecurringDialogOpen: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessageNode(\"warning\", \"\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tmodel.IsDisable = true;\r\n\t\t\t\t\tthis.ClearScreen();\r\n\t\t\t\t\tthis.ShowMessage(\"success\", \"Recurring Transaction successfully canceled.\");\r\n\t\t\t\t\tthis.RefreshToolBar();\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\te => {\r\n\t\t\t\tthis.setState({ isLoading: false, isRecurringDialogOpen: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while inserting data\", typeof e == \"object\" ? JSON.stringify(e) : e);\r\n\t\t\t}\r\n\t\t);\r\n\t\tthis.setState({ model: model });\r\n\t}\r\n\r\n\tClearDialog = () => {\r\n\t\tconst { model } = { ...this.state };\r\n\t\tthis.showClearQuestionMessage(\"Are you sure you want to clear on the screen entered information? \", model);\r\n\t}\r\n\r\n\tUpdateDialog = () => {\r\n\t\tconst { model } = { ...this.state };\r\n\t\tif (model.IsUpdate && !model.IsDisable) {\r\n\t\t\tif (!this.Validate())\r\n\t\t\t\treturn false;\r\n\t\t\tswitch (model.BillPayType) {\r\n\t\t\t\tcase BillPayType.Individual:\r\n\t\t\t\t\tthis.setState({ isIndividualDialogOpen: true });\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase BillPayType.Recurring:\r\n\t\t\t\t\tthis.setState({ isRecurringDialogOpen: true });\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase BillPayType.File:\r\n\t\t\t\t\tthis.setState({ isFileDialogOpen: true });\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}\r\n\r\n\terrorDefinitionCallback(error) {\r\n\t\tthis.ShowMessage(\"error\", \"Error !\", \"An error occurred while requesting data\" + error);\r\n\t}\r\n\tShowMessage(type, title, message) {\r\n\t\tthis.setState({ alert: this.hideAlert()} /> });\r\n\t}\r\n\r\n\thideAlert() {\r\n\t\tthis.setState({ alert: null, isLoading: false });\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\thandleChange = (name, value, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tconst BillRecurringModel = { ...this.state.BillRecurringModel };\r\n\t\tconst BillIndividualModel = { ...this.state.BillIndividualModel };\r\n\r\n\t\tmodel[name] = value;\r\n\t\tif (name == \"NewCustomer\") {\r\n\t\t\tif (value) {\r\n\t\t\t\tmodel.IsCustomerPopupOpen = true;\r\n\t\t\t\tthis.setState({ isCustomerAdded: false, customertoken: 0 });\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (data) {\r\n\t\t\tif (name == \"BillPayTypeId\") {\r\n\t\t\t\tif (data.ParameterValue == BillPayType.Individual) {\r\n\t\t\t\t\tmodel.BillPayType = BillPayType.Individual;\r\n\t\t\t\t\tthis.setState({ IsPayIndivudalPassive: false, IsPayRecurringPassive: true });\r\n\t\t\t\t\tthis.GetBiller(model);\r\n\t\t\t\t\tthis.GetLastBill(model);\r\n\t\t\t\t}\r\n\t\t\t\telse if (data.ParameterValue == BillPayType.Recurring) {\r\n\t\t\t\t\tmodel.BillPayType = BillPayType.Recurring;\r\n\t\t\t\t\tthis.setState({ IsPayIndivudalPassive: true, IsPayRecurringPassive: false });\r\n\t\t\t\t\tthis.GetBiller(model);\r\n\t\t\t\t\tthis.GetLastBill(model);\r\n\t\t\t\t}\r\n\t\t\t\telse if (data.ParameterValue == BillPayType.File) {\r\n\t\t\t\t\tmodel.BillPayType = BillPayType.File;\r\n\t\t\t\t\tthis.setState({ IsPayIndivudalPassive: true, IsPayRecurringPassive: true });\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (name == \"ClientCustomerId\") {\r\n\t\t\t\tmodel.ClientCustomerId = data.Id;\r\n\t\t\t\tmodel.ClientCustomerName = data.Name;\r\n\t\t\t\tBillRecurringModel.ClientCustomerId = data.Id;\r\n\t\t\t\tBillIndividualModel.ClientCustomerId = data.Id;\r\n\t\t\t\tthis.GetLastBill(model);\r\n\t\t\t}\r\n\r\n\t\t\tif (name == \"IsCustomerPopupOpen\") {\r\n\t\t\t\tmodel.NewCustomer = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\r\n\t\tif (name == \"ClientCustomerId\")\r\n\t\t\tthis.GetBiller(model);\r\n\r\n\r\n\t}\r\n\r\n\tSelectedRowChange = (e, d) => {\r\n\r\n\t\tconst { model, BillerModel, BillRecurringModel, BillIndividualModel } = { ...this.state };\r\n\r\n\t\tif (d.BillPayTypeValue == BillPayType.Individual) {\r\n\t\t\tmodel.BillPayType = BillPayType.Individual;\r\n\t\t\tmodel.BillPayTypeId = d.BillPayTypeId;\r\n\t\t\tmodel.ClientCustomerId = d.ClientCustomerId;\r\n\t\t\tmodel.BillerId = d.BillerId;\r\n\t\t\tmodel.BillerCode = d.BillerCode;\r\n\t\t\tmodel.BillerName = d.BillerName;\r\n\t\t\tmodel.ClientCustomerName = d.ClientCustomerName;\r\n\t\t\tmodel.IsUpdate = true;\r\n\t\t\tBillIndividualModel.Id = d.Id;\r\n\t\t\tBillIndividualModel.Amount = d.Amount;\r\n\t\t\tBillIndividualModel.AccountNumber = d.BillAccountNumber;\r\n\t\t\tBillIndividualModel.BillDescription = d.BillDescription;\r\n\t\t\tthis.setState({ BillerModel: BillerModel, BillIndividualModel: BillIndividualModel, IsPayRecurringPassive: true, IsPayIndivudalPassive: false, model: model });\r\n\r\n\t\t}\r\n\r\n\t\telse if (d.BillPayTypeValue == BillPayType.Recurring) {\r\n\r\n\t\t\tmodel.BillPayType = BillPayType.Recurring;\r\n\t\t\tmodel.BillPayTypeId = d.BillPayTypeId;\r\n\t\t\tmodel.ClientCustomerId = d.ClientCustomerId;\r\n\t\t\tmodel.IsUpdate = true;\r\n\t\t\tmodel.BillerId = d.BillerId;\r\n\t\t\tmodel.BillerCode = d.BillerCode;\r\n\t\t\tmodel.BillerName = d.BillerName;\r\n\t\t\tmodel.ClientCustomerName = d.ClientCustomerName;\r\n\t\t\tBillRecurringModel.Id = d.BillId;\r\n\t\t\tBillRecurringModel.RecurringAmount = d.AutoPayAmount;\r\n\t\t\tBillRecurringModel.PaymentCount = d.PaymentCount;\r\n\t\t\tBillRecurringModel.TotalAmount = d.TotalAmount;\r\n\t\t\tBillRecurringModel.AccountNumber = d.BillAccountNumber;\r\n\t\t\tBillRecurringModel.StartDate = d.StartDate ? DateHelper.ToMoment(d.StartDate) : null;\r\n\t\t\tBillRecurringModel.EndDate = d.EndDate ? DateHelper.ToMoment(d.EndDate) : null;\r\n\t\t\tBillRecurringModel.FreezeStartDate = d.FreezeStartDate ? DateHelper.ToMoment(d.FreezeStartDate) : null;\r\n\t\t\tBillRecurringModel.FreezeEndDate = d.FreezeEndDate ? DateHelper.ToMoment(d.FreezeEndDate) : null;\r\n\t\t\tBillRecurringModel.PeriodId = d.FirstDueDateOptionId;\r\n\t\t\tBillRecurringModel.PeriodCode = d.PeriodCode;\r\n\t\t\tBillRecurringModel.BillDescription = d.BillDescription;\r\n\t\t\tBillRecurringModel.IsPayed = d.IsHaveTransaction;\r\n\r\n\t\t\tBillRecurringModel.WeeklyId = d.PeriodWeeklyId;\r\n\t\t\tBillRecurringModel.WeeklyNumber = d.PeriodWeekly != null ? d.PeriodWeekly : \"\";\r\n\r\n\t\t\tBillRecurringModel.BiWeeklyId = d.PeriodBiWeeklyId;\r\n\t\t\tBillRecurringModel.BiWeeklyNumber = d.PeriodBiWeekly != null ? d.PeriodBiWeekly : \"\";\r\n\r\n\t\t\tBillRecurringModel.MonthlyId = d.PeriodMonthlyId;\r\n\t\t\tBillRecurringModel.MonthlyNumber = d.PeriodMonthly != null ? d.PeriodMonthly : \"\";\r\n\r\n\t\t\tBillRecurringModel.QuarterlyId = d.PeriodQuarterlyId;\r\n\t\t\tBillRecurringModel.QuarterlyNumber = d.PeriodQuarterly != null ? d.PeriodQuarterly : \"\";\r\n\r\n\r\n\t\t\tBillRecurringModel.PayIndex = d.PayIndex;\r\n\t\t\tthis.setState({ BillerModel: BillerModel, BillRecurringModel: BillRecurringModel, IsPayRecurringPassive: false, IsPayIndivudalPassive: true, model: model, });\r\n\t\t}\r\n\t}\r\n\tClearScreen = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tthis.FromFileModelChange(() => { return { ...this.defaultFromFileModel }; });\r\n\t\tthis.IndividualModelChange(() => { return { ...this.defaultIndividualModel }; });\r\n\t\tthis.RecurringModelChange(() => { return { ...this.defaultRecurringModel }; });\r\n\t\tthis.BillerModelChange(() => { return { ...this.defaultBillerModel }; });\r\n\t\tthis.setState({ model: { ...any }, isClearDialogOpen: false, isLoading: false, alert: null, IsPayIndivudalPassive: true, IsPayRecurringPassive: true });\r\n\t\tthis.GetBiller();\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\r\n\r\n\tSubmitDialog = (workflowId, after, accessToken) => {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tif (!model.IsUpdate) {\r\n\t\t\tif (!this.Validate())\r\n\t\t\t\treturn false;\r\n\r\n\t\t\tswitch (model.BillPayType) {\r\n\t\t\t\tcase BillPayType.Individual:\r\n\t\t\t\t\tthis.setState({ workflowId, after, isIndividualDialogOpen: true, accessToken });\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase BillPayType.Recurring:\r\n\t\t\t\t\tthis.setState({ workflowId, after, isRecurringDialogOpen: true, accessToken });\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase BillPayType.File:\r\n\t\t\t\t\tthis.setState({ workflowId, after, isFileDialogOpen: true, accessToken });\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst { model } = this.state;\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Bill/GetCustomerBaseBillList\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ BillList: responseData.Item || [], isLoading: false });\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tRefreshToolBar() {\r\n\t\tthis.setState({ LimitToken: !this.state.LimitToken });\r\n\t}\r\n\r\n\tSubmit = () => {\r\n\r\n\t\tconst { BillRecurringModel, BillIndividualModel } = this.state;\r\n\t\tconst { model, workflowId, after,accessToken } = this.state;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tif (model.BillPayType == BillPayType.Recurring) {\r\n\t\t\tvar recurringRequest = {\r\n\t\t\t\tBillerName: model.BillerName,\r\n\t\t\t\tBillerCode: model.BillerCode,\r\n\t\t\t\tId: BillRecurringModel.Id,\r\n\t\t\t\tClientCustomerId: model.ClientCustomerId,\r\n\t\t\t\tClientCustomerName: model.ClientCustomerName,\r\n\t\t\t\tBillerId: model.BillerId,\r\n\t\t\t\tRecurringAmount: BillRecurringModel.RecurringAmount,\r\n\t\t\t\tTotalAmount: BillRecurringModel.TotalAmount,\r\n\t\t\t\tBillDescription: BillRecurringModel.BillDescription,\r\n\t\t\t\tStartDate: BillRecurringModel.StartDate,\r\n\t\t\t\tEndDate: BillRecurringModel.EndDate,\r\n\t\t\t\tFreezeStartDate: BillRecurringModel.FreezeStartDate,\r\n\t\t\t\tFreezeEndDate: BillRecurringModel.FreezeEndDate,\r\n\t\t\t\tPaymentCount: BillRecurringModel.PaymentCount,\r\n\t\t\t\tFirstDueDateOptionId: BillRecurringModel.PeriodId,\r\n\t\t\t\tPeriodWeeklyId: BillRecurringModel.PeriodCode == PeriodCodes.Weekly ? BillRecurringModel.WeeklyId : \"\",\r\n\t\t\t\tPeriodBiWeeklyId: BillRecurringModel.PeriodCode == PeriodCodes.BiWeekly ? BillRecurringModel.BiWeeklyId : \"\",\r\n\t\t\t\tPeriodMonthlyId: BillRecurringModel.PeriodCode == PeriodCodes.Monthly ? BillRecurringModel.MonthlyId : \"\",\r\n\t\t\t\tPeriodQuarterlyId: BillRecurringModel.PeriodCode == PeriodCodes.Quarterly ? BillRecurringModel.QuarterlyId : \"\",\r\n\t\t\t\tAccountNumber: BillRecurringModel.AccountNumber,\r\n\t\t\t\tUniqueClientId: ClientHelper.GetClientRowId(),\r\n\t\t\t\tBillPayTypeId: model.BillPayTypeId,\r\n\t\t\t};\r\n\r\n\t\t\tthis.setState({ isLoading: true });\r\n\r\n\t\t\tif (!model.IsUpdate) {\r\n\t\t\t\tProxy.POST(\"/bankapi/v1.0/Bill/InsertRecurringBill\",\r\n\t\t\t\t\t{ BillRecurringModel: recurringRequest },\r\n\t\t\t\t\tresponseData => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false, isRecurringDialogOpen: false });\r\n\r\n\t\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\t\tif (responseData.ErrorCode == \"SysError\")\r\n\t\t\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\tthis.ShowMessage(\"warning\", \"Warning\", responseData.ErrorDescription);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tif (after) after();\r\n\t\t\t\t\t\t\tthis.ClearScreen();\r\n\t\t\t\t\t\t\tthis.RefreshToolBar();\r\n\t\t\t\t\t\t\tthis.GetBiller();\r\n\t\t\t\t\t\t\tthis.ShowMessage(\"success\", \"Recurring Transaction successfully saved.\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\te => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false, isRecurringDialogOpen: false });\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while updating data\", typeof e == \"object\" ? JSON.stringify(e) : e);\r\n\t\t\t\t\t},\r\n\t\t\t\t\tworkflowId,\r\n\t\t\t\t\taccessToken\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tProxy.POST(\"/bankapi/v1.0/Bill/UpdateRecurringBill\",\r\n\t\t\t\t\t{ BillRecurringModel: recurringRequest },\r\n\t\t\t\t\tresponseData => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false, isRecurringDialogOpen: false });\r\n\r\n\t\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\t\tif (responseData.ErrorCode == \"SysError\")\r\n\t\t\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\tthis.ShowMessage(\"warning\", \"Warning\", responseData.ErrorDescription);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tif (after) after();\r\n\t\t\t\t\t\t\tthis.ClearScreen();\r\n\t\t\t\t\t\t\tthis.RefreshToolBar();\r\n\t\t\t\t\t\t\tthis.GetBiller();\r\n\t\t\t\t\t\t\tthis.ShowMessage(\"success\", \"Recurring Transaction successfully updated.\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\te => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false, isRecurringDialogOpen: false });\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while inserting data\", typeof e == \"object\" ? JSON.stringify(e) : e);\r\n\t\t\t\t\t},\r\n\t\t\t\t\tworkflowId,\r\n\t\t\t\t\taccessToken\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\r\n\t\t\tvar individualRequest = {\r\n\t\t\t\tId: BillIndividualModel.Id,\r\n\t\t\t\tAmount: BillIndividualModel.Amount,\r\n\t\t\t\tClientCustomerId: model.ClientCustomerId,\r\n\t\t\t\tBillerId: model.BillerId,\r\n\t\t\t\tAccountNumber: BillIndividualModel.AccountNumber,\r\n\t\t\t\tBillDescription: BillIndividualModel.BillDescription,\r\n\t\t\t\tClientCustomerName: model.ClientCustomerName,\r\n\t\t\t\tBillerName: model.BillerName,\r\n\t\t\t\tBillerCode: model.BillerCode,\r\n\t\t\t\tUniqueClientId: ClientHelper.GetClientRowId()\r\n\t\t\t};\r\n\r\n\r\n\t\t\tif (!model.IsUpdate) {\r\n\t\t\t\tthis.setState({ isLoading: true });\r\n\r\n\t\t\t\tProxy.POST(\"/bankapi/v1.0/Bill/InsertIndividualBill\",\r\n\t\t\t\t\t{ BillIndividualModel: individualRequest },\r\n\t\t\t\t\tresponseData => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false, isIndividualDialogOpen: false });\r\n\r\n\t\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\t\tif (responseData.ErrorCode == \"SysError\")\r\n\t\t\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\tthis.ShowMessage(\"warning\", \"Warning\", responseData.ErrorDescription);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tif (after) after();\r\n\t\t\t\t\t\t\tthis.ClearScreen();\r\n\t\t\t\t\t\t\tthis.ShowMessage(\"success\", \"Individual Transaction Entry successfully saved.\");\r\n\t\t\t\t\t\t\tthis.RefreshToolBar();\r\n\t\t\t\t\t\t\tthis.GetBiller();\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\te => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false, isIndividualDialogOpen: false });\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while inserting data\", typeof e == \"object\" ? JSON.stringify(e) : e);\r\n\t\t\t\t\t},\r\n\t\t\t\t\tworkflowId,\r\n\t\t\t\t\taccessToken\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tProxy.POST(\"/bankapi/v1.0/Bill/UpdateIndividualBill\",\r\n\t\t\t\t\t{ BillIndividualModel: individualRequest },\r\n\t\t\t\t\tresponseData => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false, isIndividualDialogOpen: false });\r\n\r\n\t\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\t\tif (responseData.ErrorCode == \"SysError\")\r\n\t\t\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\tthis.ShowMessage(\"warning\", \"Warning\", responseData.ErrorDescription);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tif (after) after();\r\n\t\t\t\t\t\t\tthis.ClearScreen();\r\n\t\t\t\t\t\t\tthis.RefreshToolBar();\r\n\t\t\t\t\t\t\tthis.GetBiller();\r\n\t\t\t\t\t\t\tthis.ShowMessage(\"success\", \"Individual Transaction successfully updated.\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\te => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false, isRecurringDialogOpen: false });\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while inserting data\", typeof e == \"object\" ? JSON.stringify(e) : e);\r\n\t\t\t\t\t},\r\n\t\t\t\t\tworkflowId,\r\n\t\t\t\t\taccessToken\r\n\t\t\t\t);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}\r\n\taddCustomerSaved(customerData) {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (customerData != null) {\r\n\t\t\tmodel.ClientCustomerId = customerData.Id;\r\n\t\t\tmodel.ClientCustomerName = customerData.CustomerName;\r\n\t\t}\r\n\r\n\t\tvar newCustomerToken = this.state.customerToken == \"1\" ? \"0\" : \"1\";\r\n\t\tthis.setState({ model: model, customerToken: newCustomerToken });\r\n\t\tthis.addCustomerDialogClose();\r\n\t}\r\n\r\n\tSubmitFileClick = () => {\r\n\t\tconst { BillFromFileModel } = this.state;\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tvar formData = new FormData();\r\n\t\tformData.append(\"file\", BillFromFileModel.File, BillFromFileModel.FileName);\r\n\t\tformData.append(\"approved\", String(BillFromFileModel.AutoApprove));\r\n\r\n\t\tProxy.FileUpload(\"/bankapi/v1.0/Bill/UploadCreateTransactionFile\",\r\n\t\t\tformData,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false, isFileDialogOpen: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while upload file\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvar fileId = responseData.Item ? responseData.Item.FileId : 0;\r\n\t\t\t\tthis.setState({ isLoading: true });\r\n\t\t\t\tProxy.POST(\"/bankapi/v1.0/Bill/GetFileInformation\",\r\n\t\t\t\t\t{ Id: fileId },\r\n\t\t\t\t\tfileResponseData => {\r\n\t\t\t\t\t\tif (!fileResponseData.IsSucceeded) {\r\n\t\t\t\t\t\t\tthis.setState({ isLoading: false, isFileDialogOpen: false });\r\n\r\n\t\t\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while load file information\", fileResponseData.ErrorDescription);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tthis.setState({ FileResultList: fileResponseData.Item, isFileResultDialogOpen: true, isLoading: false, isFileDialogOpen: false });\r\n\t\t\t\t\t\tthis.ClearScreen();\r\n\t\t\t\t\t\tthis.RefreshToolBar();\r\n\t\t\t\t\t},\r\n\t\t\t\t\terrorMessage => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false, isFileDialogOpen: false });\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while load file information\", errorMessage);\r\n\t\t\t\t\t}\r\n\t\t\t\t);\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false, isFileDialogOpen: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while upload file\", errorMessage);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\taddCustomerDialogClose() {\r\n\t\tthis.handleChange(\"IsCustomerPopupOpen\", false);\r\n\t\tthis.setState({\r\n\t\t\tcustomertoken: 1\r\n\t\t});\r\n\t}\r\n\r\n\tshowClearQuestionMessage = (message, model) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} OnConfirm={() => this.ClearScreen()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\tGetBiller = (model) => {\r\n\t\tif (!model || !model.ClientCustomerId || !model.BillPayType) {\r\n\t\t\tthis.setState({ BillerList: [] });\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/bankapi/v1.0/Biller/GetAllBiller\",\r\n\t\t\t{\r\n\t\t\t\tIsCustomer: true,\r\n\t\t\t\tClientCustomerId: model.ClientCustomerId,\r\n\t\t\t\tBillPayType: model.BillPayType == BillPayType.Individual ? 1 : 2\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (responseData.IsSucceeded != false) {\r\n\t\t\t\t\tthis.setState({ BillerList: responseData.Item, model, isLoading: false });\r\n\t\t\t\t}\r\n\t\t\t\telse { this.setState({ BillerList: [], StaticBillerList: [], isLoading: false }); }\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t});\r\n\t}\r\n\r\n\tGetAllBiller = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/bankapi/v1.0/Biller/GetAllBiller\",\r\n\t\t\t{\r\n\t\t\t\tIsCustomer: true\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (responseData.IsSucceeded != false) {\r\n\t\t\t\t\tthis.setState({ BillerList: responseData.Item, isLoading: false });\r\n\t\t\t\t}\r\n\t\t\t\telse { this.setState({ BillerList: [], StaticBillerList: [], isLoading: false }); }\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t});\r\n\t}\r\n\r\n\tGetTelpayBiller = (billerName) => {\r\n\t\tProxy.POST(\"/bankapi/v1.0/Biller/GetTelpayBiller\",\r\n\t\t\t{\r\n\t\t\t\tName: billerName\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (responseData.IsSucceeded != false) {\r\n\t\t\t\t\tthis.setState({ BillerList: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.setState({ BillerList: [] });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t});\r\n\t}\r\n\r\n\r\n\tBillerNameChange = (name, newValue) => {\r\n\t\tif (name == \"BillerCode\" && newValue != \"\") {\r\n\t\t\tif (newValue.length > 2)\r\n\t\t\t\tthis.GetTelpayBiller(newValue);\r\n\t\t}\r\n\t}\r\n\r\n\tGetModel = () => {\r\n\t\tconst { model, BillIndividualModel, BillRecurringModel, BillFromFileModel } = this.state;\r\n\r\n\t\tswitch (model.BillPayType) {\r\n\t\t\tcase BillPayType.Individual:\r\n\t\t\t\tmodel.ClientId = ClientHelper.GetClientRowId();\r\n\t\t\t\tBillIndividualModel.BillerCode = model.BillerCode;\r\n\t\t\t\tBillIndividualModel.ClientCustomerId = model.ClientCustomerId;\r\n\t\t\t\tBillIndividualModel.BillerName = model.BillerName;\r\n\t\t\t\treturn { model, BillIndividualModel: BillIndividualModel };\r\n\t\t\tcase BillPayType.Recurring:\r\n\t\t\t\tmodel.ClientId = ClientHelper.GetClientRowId();\r\n\t\t\t\tBillRecurringModel.BillerCode = model.BillerCode;\r\n\t\t\t\tBillRecurringModel.ClientCustomerId = model.ClientCustomerId;\r\n\t\t\t\tBillRecurringModel.BillerName = model.BillerName;\r\n\t\t\t\treturn { model, BillRecurringModel: BillRecurringModel };\r\n\t\t\tcase BillPayType.File:\r\n\t\t\t\treturn { model, BillFromFileModel };\r\n\t\t\tdefault: return null;\r\n\t\t}\r\n\t}\r\n\r\n\r\n\tFillData = (data) => {\r\n\t\tconst { model, BillIndividualModel, BillRecurringModel } = data;\r\n\r\n\t\tswitch (model.BillPayType) {\r\n\t\t\tcase BillPayType.File:\r\n\t\t\t\tthis.setState({ model, BillFromFile });\r\n\t\t\t\tbreak;\r\n\t\t\tcase BillPayType.Individual:\r\n\t\t\t\tBillIndividualModel.BillerName = model.BillerName;\r\n\t\t\t\tthis.setState({ model, BillIndividualModel });\r\n\t\t\t\tbreak;\r\n\t\t\tcase BillPayType.Recurring:\r\n\t\t\t\tBillRecurringModel.BillerName = model.BillerName;\r\n\t\t\t\tBillRecurringModel.StartDate = BillRecurringModel.StartDate ? DateHelper.ToMoment(BillRecurringModel.StartDate) : null;\r\n\t\t\t\tBillRecurringModel.EndDate = BillRecurringModel.EndDate ? DateHelper.ToMoment(BillRecurringModel.EndDate) : null;\r\n\t\t\t\tBillRecurringModel.FreezeStartDate = BillRecurringModel.FreezeStartDate ? DateHelper.ToMoment(BillRecurringModel.FreezeStartDate) : null;\r\n\t\t\t\tBillRecurringModel.FreezeEndDate = BillRecurringModel.FreezeEndDate ? DateHelper.ToMoment(BillRecurringModel.FreezeEndDate) : null;\r\n\t\t\t\tthis.setState({ model, BillRecurringModel });\r\n\t\t\t\tbreak;\r\n\t\t\tdefault: return;\r\n\t\t}\r\n\t}\r\n\r\n\tBillerCodeDisable = () => {\r\n\t\tconst { model, BillRecurringModel } = this.state;\r\n\r\n\t\tif (model.IsUpdate && model.BillPayType == BillPayType.Individual)\r\n\t\t\treturn false;\r\n\r\n\t\telse if (model.BillPayType == BillPayType.Recurring) {\r\n\t\t\tif (model.IsUpdate && BillRecurringModel && BillRecurringModel.PayIndex && BillRecurringModel.PayIndex > 0)\r\n\t\t\t\treturn true;\r\n\t\t}\r\n\t\telse if (model.BillPayType == BillPayType.File)\r\n\t\t\treturn true;\r\n\t}\r\n\r\n\tGetModelId() {\r\n\t\tconst { model, BillIndividualModel, BillRecurringModel } = this.state;\r\n\r\n\t\tswitch (model.BillPayType) {\r\n\t\t\tcase BillPayType.File: return null;\r\n\t\t\tcase BillPayType.Individual: return BillIndividualModel.Id;\r\n\t\t\tcase BillPayType.Recurring: return BillRecurringModel.Id;\r\n\t\t\tdefault: return null;\r\n\t\t}\r\n\t}\r\n\r\n\tGetRenderItemBiller = (x) => {\r\n\t\tthis.renderItemBiller = `${x.BillerName} - ${x.BillerCode}`;\r\n\t\treturn this.renderItemBiller;\r\n\t}\r\n\r\n\trender() {\r\n\r\n\t\tconst { model, BillRecurringModel, BillIndividualModel, BillFromFileModel, BillerList, LimitToken, idIndividualClientWarningOpen, FileResultList, isFileResultDialogOpen, isRecurringDialogOpen, isIndividualDialogOpen, isFileDialogOpen, vFromFileModel, vRecurringModel, vIndividualModel, vModel } = this.state;\r\n\t\tconst { Disabled, history } = this.props;\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t{this.state.alert}\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{this.state.alert}\r\n\t\t\t\t\t\t{!Disabled &&\r\n\t\t\t\t\t\t\t { this.setState({ LimitBalanceData: data, isLoading: false }); }} />\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t{this.state.alert}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t\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\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{/* */}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t this.setState({ isFileResultDialogOpen: false })}>\r\n\t\t\t\t\t\t\t\t\tclose\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t row.value ? \"Yes\" : \"No\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Comment\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"Comment\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Pay Type\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"BillPayType\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Customer Number\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"CustomerNumber\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Payee Name\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"PayeeName\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Payee Code\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"PayeeCode\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Payee Account Number\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"PayeeAccountNumber\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"Amount\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Start Date\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"StartDate\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"End Date\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"EndDate\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"First Due Date Option\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"FirstDueDateOption\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Period Weekly\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"PeriodWeekly\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Period BiWeekly\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"PeriodBiWeekly\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Period Monthly\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"PeriodMonthly\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Period Quarterly\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"PeriodQuarterly\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Freeze Start Date\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"FreezeStartDate\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Freeze End Date\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"FreezeEndDate\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Description\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"Description\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\tData={FileResultList}\r\n\t\t\t\t\t\t\tSorted={[{ id: \"LineId\", desc: false }]}\r\n\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_Bank_Account} />\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t
\r\n\r\n\r\n\t\t);\r\n\t}\r\n\r\n}\r\n\r\nBillDefinition.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tPayeeId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tonModelChange: PropTypes.func,\r\n\tAfter: PropTypes.any,\r\n\tmodel: PropTypes.object,\r\n};\r\n\r\nexport default BillDefinition;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes, { bool, func } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericGrid, GenericNumberInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { Direction, GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\n\r\nclass BillPaymentOutgoingFile extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tFromDate: DateHelper.GetDate(),\r\n\t\t\t\tToDate: DateHelper.GetDate(),\r\n\t\t\t\tDirectionParameterValue: \"\"\r\n\t\t\t},\r\n\t\t\tgetTransactionByFileIdModel: {\r\n\t\t\t\tDirectionParameterValue: \"\"\r\n\t\t\t},\r\n\t\t\tdailyFileList: [],\r\n\t\t\tfileInfoModel: {},\r\n\t\t\theaderModel: {},\r\n\t\t\ttransactionList: [],\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Bill Payment Outgoing File\");\r\n\t\tthis.props.setAppCenterTitle(\"CLEARING & SETTLEMENT\");\r\n\t\tvar model = { ...this.state.model };\r\n\t\tmodel.DirectionParameterValue = Direction.Outgoing;\r\n\t\tvar getTransactionByFileIdModel = { ...this.state.getTransactionByFileIdModel };\r\n\t\tgetTransactionByFileIdModel.DirectionParameterValue = Direction.Outgoing;\r\n\t\tthis.setState({ getTransactionByFileIdModel, model });\r\n\t}\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tSelectedRowChange = (index) => {\r\n\t\tconst tempModel = this.state.dailyFileList[index];\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (tempModel.Id == null || tempModel.Id == undefined)\r\n\t\t\tthis.showBasicAlert(\"Error\", \"FileInformationId can not be null\", \"error\");\r\n\t\telse {\r\n\t\t\tmodel.ClientId = tempModel.ClientId;\r\n\t\t\tthis.setState({ fileInfoModel: tempModel, model, isLoading: true, rowIndex: index });\r\n\t\t\tthis.GetTransactionList(tempModel.Id);\r\n\r\n\t\t}\r\n\t}\r\n\r\n\tGetDailyFileList = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Bill/GetTelpayOutgoingFileList\",\r\n\t\t\tthis.state.model,\r\n\t\t\tthis.successDailyFileList,\r\n\t\t\terror => {\r\n\t\t\t\tthis.showBasicAlert(\"Error\", \"An error occurred during the api visit\" + error, \"error\");\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tsuccessDailyFileList = (responseData) => {\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.showBasicAlert(\"Error\", responseData.ErrorDescription, \"error\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({\r\n\t\t\ttransactionList: [], headerModel: {},\r\n\t\t\tdailyFileList: responseData.Item == null ? [] : responseData.Item.length < 1 ? [] : responseData.Item.map(x => {\r\n\t\t\t\treturn {\r\n\t\t\t\t\tId: x.FileInformationId == null || undefined ? \"\" : x.FileInformationId,\r\n\t\t\t\t\tFileName: x.FileName == null || undefined ? \"\" : x.FileName,\r\n\t\t\t\t\tFileDate: x.FileDate == null || undefined ? \"\" : x.FileDate,\r\n\t\t\t\t\tUniqueClientId: x.UniqueClientId == null || undefined ? \"\" : x.UniqueClientId,\r\n\t\t\t\t\tClientId: x.ClientId == null || undefined ? 0 : x.ClientId,\r\n\t\t\t\t\tFileCrationNumber: x.FileCreationNumber == null || undefined ? \"\" : x.FileCreationNumber,\r\n\t\t\t\t\tFileSource: x.FileSource == null || undefined ? \"\" : x.FileSource,\r\n\t\t\t\t\tRecordCount: x.RecordCount == null || undefined ? \"\" : x.RecordCount,\r\n\t\t\t\t\tRejectedCount: x.RejectedCount == null || undefined ? \"\" : x.RejectedCount,\r\n\t\t\t\t\tSendStatus: x.SendStatus == null || undefined ? \"\" : x.SendStatus,\r\n\t\t\t\t\tSendStatusParamValue: x.SendStatusParamValue == null ? \"\" : x.SendStatusParamValue\r\n\t\t\t\t};\r\n\t\t\t}), isLoading: false\r\n\t\t});\r\n\t}\r\n\r\n\tGetTransactionList = (Id) => {\r\n\t\tvar getTransactionByFileIdModel = { ...this.state.getTransactionByFileIdModel };\r\n\t\tgetTransactionByFileIdModel.FileInformationId = Id;\r\n\t\tgetTransactionByFileIdModel.ClientId = this.state.model.ClientId == null ? null : this.state.model.ClientId;\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Bill/GetBillOutgoingFileDetailsByFileId\",\r\n\t\t\tgetTransactionByFileIdModel,\r\n\t\t\tthis.successTransactionListCallback,\r\n\t\t\terror => {\r\n\t\t\t\tthis.showBasicAlert(\"Error\", \"An error occurred during the api visit\" + error, \"error\");\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tsuccessTransactionListCallback = (responseData) => {\r\n\t\tvar headerModel = { ...this.state.headerModel };\r\n\t\tvar transactionList = { ...this.state.transactionList };\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.showBasicAlert(\"Error\", responseData.ErrorDescription, \"error\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (responseData.Item != null) {\r\n\t\t\tif (responseData.Item.BillFileHeaderDetail != null) {\r\n\t\t\t\theaderModel = responseData.Item.BillFileHeaderDetail == null ? {} : responseData.Item.BillFileHeaderDetail;\r\n\t\t\t\theaderModel.FileDate = this.state.fileInfoModel.FileDate;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\theaderModel = {};\r\n\r\n\t\t\tif (responseData.Item.BillFileDetail != null || responseData.Item.BillFileDetail.length > 1) {\r\n\t\t\t\ttransactionList = responseData.Item.BillFileDetail;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\ttransactionList = [];\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.setState({ transactionList, headerModel, isLoading: false });\r\n\t}\r\n\r\n\tCreateFile = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Bill/GenerateTelpayOutgoingFile\",\r\n\t\t\tthis.state.model,\r\n\t\t\tthis.successCreateFile,\r\n\t\t\terror => {\r\n\t\t\t\tthis.showBasicAlert(\"Error\", \"An error occurred during the api visit\" + error, \"error\");\r\n\t\t\t}\r\n\t\t);\r\n\r\n\t}\r\n\r\n\tsuccessCreateFile = (responseData) => {\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.showBasicAlert(\"Error\", responseData.ErrorDescription, \"error\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (responseData != null) {\r\n\t\t\tif (responseData.SuccessCount > 0 || responseData.ErrorCount > 0) {\r\n\t\t\t\tvar successCount = responseData.SuccessCount + \"\";\r\n\t\t\t\tvar errorCount = responseData.ErrorCount + \"\";\r\n\t\t\t\tthis.showBasicAlert(\"Success\", \"Success Count :\" + successCount + \", Error Count : \" + errorCount, \"success\");\r\n\t\t\t\tthis.GetDailyFileList();\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\tthis.showBasicAlert(\"Warning\", \"Not have any transaction !!!\", \"warning\");\r\n\t\t}\r\n\t}\r\n\r\n\r\n\tSend = () => {\r\n\r\n\t\tthis.showConfirmAlert(\"Warning\", \"Are you sure to send this file ?\", \"warning\", () => {\r\n\t\t\tif (this.state.fileInfoModel == null || this.state.fileInfoModel == undefined)\r\n\t\t\t\tthis.showBasicAlert(\"Warning\", \"First, select a row in Daily File List.\", \"warning\");\r\n\t\t\telse {\r\n\t\t\t\tif (this.state.fileInfoModel.Id == null || this.state.fileInfoModel == undefined)\r\n\t\t\t\t\tthis.showBasicAlert(\"Warning\", \"Selected row has not FileInformationId value !!!\", \"warning\");\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.hideAlert();\r\n\t\t\t\t\tthis.showLoading();\r\n\t\t\t\t\tProxy.POST(\r\n\t\t\t\t\t\t\"/bankapi/v1.0/Bill/SendTelpayOutgoingFile\",\r\n\t\t\t\t\t\t{ FileInformationId: this.state.fileInfoModel.Id },\r\n\t\t\t\t\t\tresponseData => {\r\n\t\t\t\t\t\t\tif (!responseData.IsSucceeded)\r\n\t\t\t\t\t\t\t\tthis.showBasicAlert(\"Error\", \"Send operation error : \" + responseData.ErrorDescription + \"!!!\", \"error\");\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tthis.showBasicAlert(\"Success\", \"Send operation is successfully completed.\", \"success\");\r\n\t\t\t\t\t\t\t\tthis.GetDailyFileList();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\terror => {\r\n\t\t\t\t\t\t\tthis.showBasicAlert(\"Error\", \"Send operation error : \" + error + \"!!!\", \"error\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\r\n\t}\r\n\r\n\tshowBasicAlert = (title, message, type) => {\r\n\t\tthis.setState({ isLoading: false, alert: this.hideAlert()} /> });\r\n\t}\r\n\r\n\tshowConfirmAlert = (title, message, type, onConfirm) => {\r\n\t\tthis.setState({ isLoading: false, alert: this.hideAlert()} OnConfirm={onConfirm} /> });\r\n\t}\r\n\r\n\thideAlert = () => { this.setState({ alert: null, isLoading: false }); }\r\n\r\n\tshowLoading = () => { this.setState({ alert: null, isLoading: true }); }\r\n\r\n\tClearModel = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {\r\n\t\t\t\tFromDate: DateHelper.GetDate(),\r\n\t\t\t\tToDate: DateHelper.GetDate(),\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, headerModel, isLoading } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tthis.SelectedRowChange(index);\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\tSelectedIndex={this.state.rowIndex}\r\n\t\t\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_Bank_Account} />\r\n\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t
Transaction List

\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nBillPaymentOutgoingFile.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\thandleOperationType: PropTypes.func,\r\n\tshowQuestionMessage: func,\r\n\tsetAppLeftTitle: func,\r\n\tsetAppCenterTitle: func,\r\n\tDisabled: bool\r\n};\r\n\r\nexport default withArtifex(BillPaymentOutgoingFile, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { DeleteIcon, EditIcon } from \"core/Icons\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport AccountLimitToolbar from \"views/Components/AccountLimitToolbar\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTitle } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { BillStatusType, GridColumnType, MenuCodes, ProgramCodes } from \"views/Constants/Constant\";\r\n\r\n\r\n\r\nclass BillTransactionList extends React.Component {\r\n\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.emptyObject = {};\r\n\t\tthis.renderItemUniqueClient = {};\r\n\t\tthis.sortedName = { Member: \"Name\" };\r\n\t\tthis.IsClient = ClientHelper.IsClient();\r\n\t\tthis.ProgramCode = \"\";\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t\tStartDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tEndDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tIsUpdate: false,\r\n\t\t\tBillerCode: \"\",\r\n\t\t\tBillStatusTypeId: null,\r\n\t\t\tReferenceNumber: null\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tBillList: [],\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tisLoading: false,\r\n\t\t\talert: null,\r\n\t\t};\r\n\r\n\t\tthis.hideAlert = this.hideAlert.bind(this);\r\n\t\tthis.IsCustomer = false;\r\n\r\n\t}\r\n\r\n\tGetRenderItemUniqueClient = (x) => {\r\n\t\tthis.renderItemUniqueClient = `${x.Name} - ${x.UniqueClientId}`;\r\n\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Customer Transaction List\");\r\n\r\n\t\tvar isBackOff = ClientHelper.IsBackOffice();\r\n\t\tvar model = { ...this.state.model };\r\n\t\tthis.IsClient = false;\r\n\t\tif (!isBackOff) {\r\n\t\t\tthis.IsClient = true;\r\n\t\t\tmodel.UniqueClientId = ClientHelper.GetClientRowId();\r\n\t\t}\r\n\t\tmodel.IsUpdate = false;\r\n\t\tthis.setState({ model });\r\n\r\n\t\tswitch (this.props.MenuCode) {\r\n\t\t\tcase MenuCodes.BillCustomerTransactionList:\r\n\t\t\t\tthis.props.setAppCenterTitle(\"BILL PAYMENT\");\r\n\t\t\t\tthis.props.setAppLeftTitle(\"Customer Transaction List\");\r\n\t\t\t\tthis.Url = \"/bankapi/v1.0/Bill/GetCustomerBaseBillList\";\r\n\t\t\t\tthis.IsCustomer = true;\r\n\t\t\t\tthis.ProgramCode = ProgramCodes.BillPayment;\r\n\t\t\t\tbreak;\r\n\t\t\tcase MenuCodes.BillClientTransactionList:\r\n\t\t\t\tthis.props.setAppCenterTitle(\"BANKING\");\r\n\t\t\t\tthis.props.setAppLeftTitle(\"Client Transaction List\");\r\n\t\t\t\tthis.Url = \"/bankapi/v1.0/Bill/GetClientBaseBillList\";\r\n\t\t\t\tthis.IsCustomer = false;\r\n\t\t\t\tthis.ProgramCode = ProgramCodes.Bank_Programs_Bank_Account;\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t}\r\n\r\n\r\n\tClearDialog = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel } });\r\n\t}\r\n\r\n\terrorDefinitionCallback(error) {\r\n\t\tthis.ShowMessage(\"error\", \"Error !\", \"An error occurred while requesting data\" + error);\r\n\t}\r\n\tShowMessage(type, title, message) {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\tshowCancelMessage(type, title, message, model) {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\thideAlert() {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\r\n\tIsValid = () => {\r\n\t\tvar vmodel = { ...this.state.model };\r\n\r\n\t\tif (vmodel.StartDate && typeof vmodel.StartDate != \"object\") {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Start Date is invalid\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (vmodel.EndDate && typeof vmodel.EndDate != \"object\") {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"To Dateis invalid\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (vmodel.StartDate && vmodel.EndDate && vmodel.EndDate < vmodel.StartDate) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Start Date cannot be bigger than End Date\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\r\n\tSearch = () => {\r\n\r\n\t\tif (!this.IsValid())\r\n\t\t\treturn false;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tProxy.POST(\r\n\t\t\tthis.Url,\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tisLoading: false\r\n\t\t\t\t\t});\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ BillList: responseData.Item || [], isLoading: false });\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tshowQuestionMessage = (message, model) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} OnConfirm={() => this.CancelBill(model)} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\tCancelDialog = (model) => {\r\n\t\tthis.showQuestionCancelMessage(\"Are you sure you want to cancel the bill? \", model);\r\n\t}\r\n\tshowQuestionCancelMessage = (message, model) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} OnConfirm={() => this.CancelBill(model)} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\tCancelBill = (model) => {\r\n\t\tthis.setState({ isLoading: true, alert: null });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Bill/CancelBillTransaction\",\r\n\t\t\t{\r\n\t\t\t\tReferenceNumber: model.TransactionReferenceNumber,\r\n\t\t\t\tUniqueClientId: model.UniqueClientId\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (responseData.IsSucceeded != false) {\r\n\t\t\t\t\tthis.props.showMessage(\"success\", \"Success\", \"Cancel Transaction Succesfuly!\");\r\n\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tisLoading: false,\r\n\t\t\t\t\t\talert: null\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\tthis.Search();\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error !\", responseData.ErrorDescription);\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tisLoading: false,\r\n\t\t\t\t\t\talert: null\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tRejectedDialog = (model) => {\r\n\t\tthis.showQuestionRejectMessage(\"Are you sure you want to reject the bill? \", model);\r\n\t}\r\n\r\n\tshowQuestionRejectMessage = (message, model) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} OnConfirm={() => this.RejectBill(model)} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\tRejectBill = (model) => {\r\n\t\tthis.setState({ isLoading: true, alert: null });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Bill/RejectBillTransaction\",\r\n\t\t\t{\r\n\t\t\t\tReferenceNumber: model.TransactionReferenceNumber,\r\n\t\t\t\tUniqueClientId: model.UniqueClientId\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (responseData.IsSucceeded != false) {\r\n\t\t\t\t\tthis.props.showMessage(\"success\", \"Success\", \"Rejected Transaction Succesfuly!\");\r\n\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tisLoading: false,\r\n\t\t\t\t\t\talert: null\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\tthis.Search();\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error !\", responseData.ErrorDescription);\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tisLoading: false,\r\n\t\t\t\t\t\talert: null\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t);\r\n\r\n\t}\r\n\r\n\r\n\trender() {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t{this.IsClient && this.IsCustomer == false &&\r\n\t\t\t\t\t { this.setState({ LimitBalanceData: data, isLoading: false }); }} />\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\t{this.state.alert}\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{this.state.alert}\r\n\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t{this.state.alert}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t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\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{this.IsClient == true &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.CancelDialog(d)}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{this.IsClient == true &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (this.IsCustomer)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tRouteHelper.Push(this.props.history, \"/BillDefinition\", \"BillModel\", d);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tRouteHelper.Push(this.props.history, \"/ClientBillDefinition\", \"BillModel\", d);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tBillerName: d.BillerName,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tBillerCode: d.BillerCode,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tBillAccountNumber: d.BillAccountNumber,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tClientCustomerName: d.ClientCustomerName,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tBillerTypeName: d.BillerTypeName,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tBillerGroupName: d.BillerGroupName,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAutoPayInstructions: d.AutoPayInstructions,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tIsAutoPayPeriod: d.IsAutoPayPeriod,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAutoPayAmount: d.AutoPayAmount,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAutoPayPeriod: d.AutoPayPeriod,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDate: d.Date,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tBillerProvinceName: d.BillerProvinceName,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tLastPayment: d.LastPayment,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tLastPaymentDate: d.LastPaymentDate,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tTelpaySend: d.TelpaySend,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAmount: d.Amount,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tTotalAmount: d.TotalAmount,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tFee: d.Fee,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tTransactionDate: d.TransactionDate,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tBillStatusValue: d.BillStatusValue,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tIsFileWrite: d.IsFileWrite,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tId: d.Id,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUniqueClientId: d.UniqueClientId,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSettlementDate: d.TelpaySendDate,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tTransactionReferenceNumber: d.TransactionReferenceNumber,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUserName: d.UserName,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tTransactionSource: d.TransactionSource\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t})}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tColumns={[\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsortable: false,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfilterable: false,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 60\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Unique Client Id\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"UniqueClientId\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Settlement Date\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"SettlementDate\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ClientCustomerName\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tshow: this.IsCustomer\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Fee Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Fee\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Status\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TelpaySend\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Payee Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"BillerName\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Payee Account No.\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"BillAccountNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Total Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TotalAmount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Last Payment\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"LastPayment\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Last Payment Date\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"LastPaymentDate\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Auto-pay Intructions\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"IsAutoPayPeriod\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{row.value ? \"Yes\" : \"No\"}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Auto-pay Period\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"AutoPayPeriod\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Auto-pay Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"AutoPayAmount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Source\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionSource\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{row.value == \"Manuel\" ? \"Manuel\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: row.value == \"Sftp\" ? \"Sftp\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: row.Value == \"FileUpload\" ? \"File Upload\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: \"Api\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Reference Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionReferenceNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t]\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tPageSize={500}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tIsSorted={false}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tProgramCode={this.ProgramCode} \r\n\t\t\t\t\t\t\t\t\t\t\t\t\tShowPagination={true}/>\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n\r\n}\r\n\r\nBillTransactionList.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tPayeeId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tonModelChange: PropTypes.func,\r\n\tAfter: PropTypes.any,\r\n\tmodel: PropTypes.object,\r\n};\r\n\r\nexport default BillTransactionList;","import { CardMedia, Icon } from \"@material-ui/core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { PureComponent } from \"react\";\r\nimport withStyles from \"@material-ui/core/styles/withStyles\";\r\nimport genericCardMediaStyle from \"assets/jss/generic/genericCardMediaStyle.jsx\";\r\nimport cx from \"classnames\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport ImageHelper from \"core/ImageHelper\";\r\n\r\nclass GenericCardMedia extends PureComponent {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\timageBase64: null\r\n\t\t};\r\n\t\tthis.emptyObject = {};\r\n\t\tthis.WhiteDot1x1 = \"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\";\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\tthis.UpdateImages();\r\n\t}\r\n\tUpdateImages = () => {\r\n\t\tconst { ImageFileId, Image, ImageFileIdPlaceholder, ImagePlaceholder, OnLoaded, Name } = this.props;\r\n\r\n\t\tvar imageBase64 = null;\r\n\t\tvar imageBase64Placeholder = null;\r\n\t\tif (ImageFileId && typeof ImageFileId === \"number\" && ImageFileId > 0) {\r\n\t\t\tthis.downloadImageFromFileId(ImageFileId)\r\n\t\t\t\t.then(item => {\r\n\t\t\t\t\timageBase64 = ImageHelper.GenerateImageFromRawBase64(item);\r\n\t\t\t\t\tthis.setState({ imageBase64 }, () => {\r\n\t\t\t\t\t\tOnLoaded && imageBase64 && OnLoaded(Name, imageBase64);\r\n\t\t\t\t\t});\r\n\t\t\t\t});\r\n\t\t} \r\n\t\tif (Image && typeof Image === \"string\") {\r\n\t\t\timageBase64 = ImageHelper.GenerateImageFromRawBase64(Image);\r\n\t\t}\r\n\r\n\r\n\t\tif (ImageFileIdPlaceholder && typeof ImageFileIdPlaceholder === \"number\" && ImageFileIdPlaceholder > 0) {\r\n\t\t\tthis.downloadImageFromFileId(ImageFileIdPlaceholder)\r\n\t\t\t\t.then(item => {\r\n\t\t\t\t\timageBase64Placeholder = ImageHelper.GenerateImageFromRawBase64(item);\r\n\t\t\t\t\tthis.setState({ imageBase64Placeholder });\r\n\t\t\t\t});\r\n\t\t} else if (ImagePlaceholder && typeof ImagePlaceholder === \"string\") {\r\n\t\t\timageBase64Placeholder = ImageHelper.GenerateImageFromRawBase64(ImagePlaceholder);\r\n\t\t}\r\n\r\n\t\tthis.setState({ imageBase64, imageBase64Placeholder });\r\n\t}\r\n\tcomponentDidUpdate(prevProps, prevState) {\r\n\t\tif (prevProps.ImageFileId != this.props.ImageFileId ||\r\n\t\t\tprevProps.ImageFileIdPlaceholder != this.props.ImageFileIdPlaceholder ||\r\n\t\t\tprevProps.Image != this.props.Image ||\r\n\t\t\tprevProps.ImagePlaceholder != this.props.ImagePlaceholder\r\n\t\t) {\r\n\t\t\tthis.UpdateImages();\r\n\t\t}\r\n\t}\r\n\tdownloadImageFromFileId = async (id) => {\r\n\t\tconst { ExecuteApiPost, TaskPoolDomain, Width, Heigth, Stretch, OnFetch } = this.props;\r\n\t\tOnFetch && OnFetch(id);\r\n\t\tvar request = ExecuteApiPost(\"/coreapi/v1.0/Image/ShowBase64\", {\r\n\t\t\tFileId: id,\r\n\t\t\tWidth: Width,\r\n\t\t\tHeigth: Heigth,\r\n\t\t\tStretch: Stretch\r\n\t\t});\r\n\t\tif (TaskPoolDomain) {\r\n\t\t\tTaskPoolDomain.AppendTask(request);\r\n\t\t}\r\n\t\tvar result = await request;\r\n\t\treturn Promise.resolve(result);\r\n\t}\r\n\tgetImageFromFile = (file) => {\r\n\t\tvar image = null;\r\n\t\tif (file && file.FileDataBase64) {\r\n\t\t\timage = ImageHelper.GenerateImageFromRawBase64(file.FileDataBase64);\r\n\t\t}\r\n\t\treturn image;\r\n\t}\r\n\t\r\n\thandleOnClick = (e) => {\r\n\t\tconst { OnClick, Name } = this.props;\r\n\t\tOnClick && OnClick(Name, e);\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { className, style, CardMediaProps, classes, OnClickRotate } = this.props;\r\n\t\tconst { imageBase64, imageBase64Placeholder } = this.state;\r\n\t\tvar showingBase64Data = imageBase64 || imageBase64Placeholder || this.WhiteDot1x1;\r\n\r\n\t\tvar containerStyle = cx({\r\n\t\t\t[classes.container]: true,\r\n\t\t\t[className]: true\r\n\t\t});\r\n\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t{OnClickRotate &&\r\n\t\t\t\t\t\r\n\t\t\t\t\t\trotate_right\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\r\n\r\n\t\t);\r\n\t}\r\n}\r\n\r\nGenericCardMedia.propTypes = {\r\n\tName: PropTypes.string,\r\n\tCardMediaProps: PropTypes.any,\r\n\tExecuteApiPost: PropTypes.any,\r\n\tHeigth: PropTypes.number,\r\n\tImage: PropTypes.string,\r\n\tImageFileId: PropTypes.number,\r\n\tImageFileIdPlaceholder: PropTypes.number,\r\n\tImagePlaceholder: PropTypes.string,\r\n\tOnFetch: PropTypes.any,\r\n\tOnLoaded: PropTypes.func,\r\n\tStretch: PropTypes.bool,\r\n\tTaskPoolDomain: PropTypes.object,\r\n\tWidth: PropTypes.number,\r\n\tclassName: PropTypes.any,\r\n\tstyle: PropTypes.any,\r\n\tOnClickRotate: PropTypes.func\r\n};\r\nexport default withStyles(genericCardMediaStyle)(GenericCardMedia)","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { DeleteIcon, EditIcon } from \"core/Icons\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericAlert, GenericDateInput, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTitle, GenericNumberInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { BillStatusType, GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\n\r\nclass BillTransactionSearch extends Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t\tStartDate: DateHelper.GetDate(),\r\n\t\t\tEndDate: DateHelper.GetDate(),\r\n\t\t\tIsUpdate: false,\r\n\t\t\tBillStatusTypeId: null,\r\n\t\t\tBillerId: null,\r\n\t\t\tBillerCode: \"\",\r\n\t\t\tReferenceNumber: null,\r\n\t\t\tIsUniqueDataSearch: false\r\n\t\t};\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\r\n\t\tthis.sortedName = { Member: \"Name\" };\r\n\r\n\t\tthis.state = {\r\n\t\t\talert: null,\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tBillList: [],\r\n\t\t\tisLoading: false,\r\n\t\t\trowindex: 0\r\n\t\t};\r\n\t\tthis.IsClient = false;\r\n\t\tthis.GetBillList = this.GetBillList.bind(this);\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tif (name == \"ReferenceNumber\") {\r\n\t\t\tmodel.IsUniqueDataSearch = value.length > 0;\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tIsValid = () => {\r\n\t\tvar vmodel = { ...this.state.model };\r\n\r\n\t\tif (!vmodel.IsUniqueDataSearch && vmodel.StartDate && typeof vmodel.StartDate != \"object\") {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"From Date is invalid\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!vmodel.IsUniqueDataSearch && vmodel.EndDate && typeof vmodel.EndDate != \"object\") {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"To Date is invalid\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!vmodel.IsUniqueDataSearch && vmodel.StartDate && vmodel.EndDate && vmodel.EndDate < vmodel.StartDate) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"From Date cannot be bigger than End Date\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\tSearch = () => {\r\n\t\tif (!this.IsValid())\r\n\t\t\treturn false;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tthis.GetBillList();\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tvar isBackOff = ClientHelper.IsBackOffice();\r\n\t\tvar model = { ...this.state.model };\r\n\t\tif (!isBackOff) {\r\n\t\t\tthis.IsClient = true;\r\n\t\t\tmodel.UniqueClientId = ClientHelper.GetClientRowId();\r\n\t\t\tmodel.IsUpdate = true;\r\n\t\t\tthis.props.setAppLeftTitle(\"All Transaction List\");\r\n\t\t\tthis.props.setAppCenterTitle(\"BILL PAYMENT\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tmodel.IsUpdate = false;\r\n\r\n\t\t\tthis.props.setAppLeftTitle(\"All Bill List\");\r\n\t\t\tthis.props.setAppCenterTitle(\"BILL PAYMENT\");\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tGetBillList() {\r\n\r\n\t\tconst { model } = this.state;\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Bill/GetAllTransationBill\",\r\n\t\t\t{\r\n\t\t\t\t\"BillerId\": model.BillerId,\r\n\t\t\t\t\"BillerCode\": model.BillerCode,\r\n\t\t\t\t\"UniqueClientId\": model.UniqueClientId,\r\n\t\t\t\t\"StartDate\": model.StartDate,\r\n\t\t\t\t\"EndDate\": model.EndDate,\r\n\t\t\t\t\"BillStatusTypeId\": model.BillStatusTypeId,\r\n\t\t\t\t\"ReferenceNumber\": model.ReferenceNumber\r\n\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (responseData.Item != null && responseData.Item.length > 0) {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tisLoading: false,\r\n\t\t\t\t\t\tBillList: responseData.Item\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tisLoading: false,\r\n\t\t\t\t\t\tBillList: []\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tRejectBill = (model) => {\r\n\t\tthis.setState({ isLoading: true, alert: null });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Bill/RejectBillTransaction\",\r\n\t\t\t{\r\n\t\t\t\tReferenceNumber: model.TransactionReferenceNumber,\r\n\t\t\t\tUniqueClientId: model.UniqueClientId\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (responseData.IsSucceeded != false) {\r\n\t\t\t\t\tthis.props.showMessage(\"success\", \"Success\", \"Rejected Transaction Succesfuly!\");\r\n\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tisLoading: false,\r\n\t\t\t\t\t\talert: null\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\tthis.GetBillList();\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error !\", responseData.ErrorDescription);\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tisLoading: false,\r\n\t\t\t\t\t\talert: null\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tCancelDialog = (model) => {\r\n\t\tthis.showQuestionCancelMessage(\"Are you sure you want to cancel the bill? \", model);\r\n\t}\r\n\tshowQuestionCancelMessage = (message, model) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} OnConfirm={() => this.CancelBill(model)} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\tCancelBill = (model) => {\r\n\t\tthis.setState({ isLoading: true, alert: null });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Bill/CancelBillTransaction\",\r\n\t\t\t{\r\n\t\t\t\tReferenceNumber: model.TransactionReferenceNumber,\r\n\t\t\t\tUniqueClientId: model.UniqueClientId\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (responseData.IsSucceeded != false) {\r\n\t\t\t\t\tthis.props.showMessage(\"success\", \"Success\", \"Cancel Transaction Succesfuly!\");\r\n\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tisLoading: false,\r\n\t\t\t\t\t\talert: null\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\tthis.GetBillList();\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error !\", responseData.ErrorDescription);\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tisLoading: false,\r\n\t\t\t\t\t\talert: null\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tRejectedDialog = (model) => {\r\n\t\tthis.showQuestionMessage(\"Are you sure you want to reject the bill? \", model);\r\n\t}\r\n\thideAlert() {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\tshowQuestionMessage = (message, model) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} OnConfirm={() => this.RejectBill(model)} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, isEdit: false, index: -1 });\r\n\t}\r\n\r\n\tGetRenderItemUniqueClient = (x) => {\r\n\t\tthis.renderItemUniqueClient = `${x.Name} - ${x.UniqueClientId}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\trender() {\r\n\r\n\t\tconst { model } = this.state;\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn {\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tActions: (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{IsClient == true &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (d.ClientCustomerId)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tRouteHelper.Push(this.props.history, \"/BillDefinition\", \"BillModel\", d);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tRouteHelper.Push(this.props.history, \"/ClientBillDefinition\", \"BillModel\", d);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{IsClient == false &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.RejectedDialog(d)}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{IsClient == true &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.CancelDialog(d)}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tBillerName: d.BillerName,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tBillerCode: d.BillerCode,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tBillAccountNumber: d.BillAccountNumber,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tClientCustomerName: d.ClientCustomerName,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tBillerTypeName: d.BillerTypeName,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tBillerGroupName: d.BillerGroupName,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tAutoPayInstructions: d.AutoPayInstructions,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tIsAutoPayPeriod: d.IsAutoPayPeriod,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tAutoPayAmount: d.AutoPayAmount,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tAutoPayPeriod: d.AutoPayPeriod,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tDate: d.Date,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tBillerProvinceName: d.BillerProvinceName,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tLastPayment: d.LastPayment,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tTelpaySend: d.TelpaySend,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tAmount: d.Amount,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tTotalAmount: d.TotalAmount,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tFee: d.Fee,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tLastPaymentDate: d.LastPaymentDate,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tClientName: d.ClientName,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tTransactionDate: d.TransactionDate,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tUniqueClientId: d.UniqueClientId,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tSettlementDate: d.TelpaySendDate,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tTransactionReferenceNumber: d.TransactionReferenceNumber,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tUserName: d.UserName,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tTransactionSource: d.TransactionSource,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tSettlementStatus: d.SettlementStatus,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tSentDate: d.SentDate,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tOutgoingFileName: d.OutgoingFileName,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tSettlementFileName: d.SettlementFileName\r\n\t\t\t\t\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\tColumns={[\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsortable: false,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tfilterable: false,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 100\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTimeUtc,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.DateTimeUtc\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Sent Date\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"SentDate\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTimeUtc,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.DateTimeUtc\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Settlement Date\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"SettlementDate\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTimeUtc,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.DateTimeUtc\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Status\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TelpaySend\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Settlement Status\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"SettlementStatus\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Unique Client Id\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"UniqueClientId\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"File Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"OutgoingFileName\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Settlement File Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"SettlementFileName\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ClientCustomerName\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Fee Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Fee\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Payee Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"BillerName\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Payee Account No.\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"BillAccountNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Total Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TotalAmount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Last Payment\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"LastPayment\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Last Payment Date\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"LastPaymentDate\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Auto-pay Intructions\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"IsAutoPayPeriod\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{row.value ? \"Yes\" : \"No\"}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Auto-pay Period\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"AutoPayPeriod\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Auto-pay Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"AutoPayAmount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Source\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionSource\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{row.value == \"Manuel\" ? \"Manuel\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: row.value == \"Sftp\" ? \"Sftp\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: row.Value == \"FileUpload\" ? \"File Upload\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: \"Api\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Reference Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionReferenceNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\t\t\tIsSorted={false}\r\n\t\t\t\t\t\t\t\t\t\t\tSelectedIndex={this.state.rowIndex}\r\n\t\t\t\t\t\t\t\t\t\t\tShowPagination={true}\r\n\t\t\t\t\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_Bank_Account} />\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nBillTransactionSearch.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tmodel: PropTypes.object,\r\n\tonModelChange: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default BillTransactionSearch;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes, { any } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport { GenericCheckInput, GenericExpansionPanel, GenericSelectInput } from \"views/Components/Generic\";\r\n\r\n\r\nclass Biller extends Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tcustomerToken: \"0\",\r\n\t\t\tDisabled: false\r\n\t\t};\r\n\r\n\r\n\t\tthis.ValueChanged = this.ValueChanged.bind(this);\r\n\t}\r\n\r\n\tValueChanged(name, newValue, data) {\r\n\t\tthis.props.onModelChange(model => {\r\n\t\t\tmodel[name] = newValue;\r\n\r\n\t\t\tif (name == \"PayeeId\") {\r\n\t\t\t\tmodel.PayeeName = data.Name;\r\n\t\t\t\tmodel.PayeerFinancialInstitutionRowId = data.FinancialInstitutionRowId;\r\n\t\t\t\tmodel.PayeerFinancialInstitutionBranchRowId = data.FinancialInstitutionBranchRowId;\r\n\t\t\t\tmodel.PayeerFinancialInstitutionId = Formatter.PadLeft(data.BankNumber, 3, \"0\");\r\n\t\t\t\tmodel.PayeerTransitNumber = Formatter.PadLeft(data.BranchNumber, 5, \"0\");\r\n\t\t\t\tmodel.PayeerAccountNumber = data.AccountNumber;\r\n\t\t\t}\r\n\t\t\tif (name == \"Id\") {\r\n\t\t\t\tmodel.GroupId = data.GroupId;\r\n\t\t\t\tmodel.TypeId = data.TypeId;\r\n\t\t\t\tmodel.Name = data.Name;\r\n\t\t\t\tmodel.Code = data.Code;\r\n\t\t\t\tmodel.BillerId = data.Id;\r\n\t\t\t\tmodel.ProvinceId = data.ProvinceId;\r\n\t\t\t}\r\n\t\t\tif (name == \"NewClient\") {\r\n\t\t\t\tif (newValue) {\r\n\t\t\t\t\tmodel.IsCustomerPopupOpen = true;\r\n\t\t\t\t\tthis.setState({ isCustomerAdded: false });\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (name == \"TransferMemoId\") {\r\n\t\t\t\tmodel.TransferMemo = data.Memo;\r\n\t\t\t}\r\n\t\t\tif (name == \"IsHaveMemo\") {\r\n\t\t\t\tif (newValue) model.TransferMemo = \"\";\r\n\t\t\t\tmodel.TransferMemoId = \"\";\r\n\t\t\t}\r\n\t\t\tif (name == \"TransactionType\")\r\n\t\t\t\tmodel.TransactionTypeCode = data.ParameterValue;\r\n\r\n\t\t\tif (name == \"NewBiller\") {\r\n\t\t\t\tif (newValue == true) {\r\n\t\t\t\t\tmodel.IsAgainNewBiller = true;\r\n\t\t\t\t\tmodel.IsNewBiller = false;\r\n\t\t\t\t\tmodel.Id = any;\r\n\t\t\t\t\tmodel.Code = any;\r\n\t\t\t\t\tmodel.GroupId = any;\r\n\t\t\t\t\tmodel.TypeId = any;\r\n\t\t\t\t\tmodel.ProvinceId = any;\r\n\t\t\t\t\tmodel.Name = any;\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tmodel: model\r\n\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tmodel.IsAgainNewBiller = false;\r\n\t\t\t\t\tmodel.Id = any;\r\n\t\t\t\t\tmodel.Code = any;\r\n\t\t\t\t\tmodel.GroupId = any;\r\n\t\t\t\t\tmodel.TypeId = any;\r\n\t\t\t\t\tmodel.ProvinceId = any;\r\n\t\t\t\t\tmodel.IsNewBiller = true;\r\n\t\t\t\t\tmodel.Id = any;\r\n\t\t\t\t\tmodel.Name = any;\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tmodel: model\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn model;\r\n\t\t});\r\n\t}\r\n\r\n\r\n\r\n\r\n\trender() {\r\n\r\n\t\tconst { model, Disabled } = this.props;\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{/* */}\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\r\n\r\n\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nBiller.propTypes = {\r\n\tmodel: PropTypes.object,\r\n\tonModelChange: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default Biller;","\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport moment from \"moment\";\r\nimport PropTypes, { any } from \"prop-types\";\r\nimport React from \"react\";\r\nimport BillIndividual from \"views/BankAccount/BillPayment/BillDefinition/BillIndividual\";\r\nimport BillRecurring from \"views/BankAccount/BillPayment/BillDefinition/BillRecurring\";\r\nimport AccountLimitToolbar from \"views/Components/AccountLimitToolbar\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericDialog, GenericDialogActions, GenericLabel, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { BillPayType, PeriodCodes, ProgramCodes } from \"views/Constants/Constant\";\r\n\r\n\r\n\r\nclass ClientBillDefinition extends React.Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.isClient = ClientHelper.IsClient();\r\n\t\tthis.renderItemBiller = {};\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0\r\n\t\t};\r\n\t\tthis.defaultRecurringModel = {\r\n\t\t\tId: null,\r\n\t\t\tClientCustomerId: null,\r\n\t\t\tPayeeName: \"\",\r\n\t\t\tNewClient: false,\r\n\t\t\tStartDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tEndDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tPaymentCount: null,\r\n\t\t\tRecurringAmount: null,\r\n\t\t\tTotalAmount: null,\r\n\t\t\tBillDescription: \"\",\r\n\t\t\tPeriodId: null,\r\n\t\t\tPeriodCode: null,\r\n\t\t\tWeeklyId: null,\r\n\t\t\tWeeklyNumber: null,\r\n\t\t\tBiWeeklyId: null,\r\n\t\t\tBiWeeklyNumber: null,\r\n\t\t\tMonthlyId: null,\r\n\t\t\tMonthlyNumber: null,\r\n\t\t\tQuarterlyId: null,\r\n\t\t\tQuarterlyNumber: null,\r\n\t\t\tIsCustomerPopupOpen: false,\r\n\t\t\tTransactionType: \"\",\r\n\t\t\tTransactionTypeCode: \"\",\r\n\t\t\tTransactionCode: \"\",\r\n\t\t\tFreezeStartDate: null,\r\n\t\t\tFreezeEndDate: null,\r\n\t\t\tBillPayTypeId: null,\r\n\t\t\tIsPayed: false,\r\n\t\t\tPayIndex: null,\r\n\t\t\tTransactionDate: moment().startOf(\"day\").toDate(),\r\n\t\t\tAccountNumber: null\r\n\t\t};\r\n\r\n\t\tthis.defaultIndividualModel = {\r\n\t\t\tId: null,\r\n\t\t\tClientCustomerId: null,\r\n\t\t\tPayeeName: \"\",\r\n\t\t\tNewClient: false,\r\n\t\t\tTransitNumber: \"\",\r\n\t\t\tAccountNumber: null,\r\n\t\t\tAmount: null,\r\n\t\t\tAccountName: \"\",\r\n\t\t\tTransactionDate: moment().startOf(\"day\").toDate(),\r\n\t\t\tBillDescription: \"\",\r\n\t\t\tIsCustomerPopupOpen: false,\r\n\t\t\tBillPayTypeId: null\r\n\t\t};\r\n\r\n\r\n\t\tthis.defaultBillerModel = {\r\n\t\t\tId: 0,\r\n\t\t\tName: \"\",\r\n\t\t\tCode: \"\",\r\n\t\t\tGroupId: \"\",\r\n\t\t\tTypeId: 0,\r\n\t\t\tProvinceId: 0,\r\n\t\t\tIsNewBiller: false,\r\n\t\t\tNewBiller: false\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\r\n\t\t\tvIndividualModel: {},\r\n\t\t\tvRecurringModel: {},\r\n\t\t\tvModel: {},\r\n\r\n\t\t\tBillerList: [],\r\n\t\t\tStaticBillerList: [],\r\n\t\t\tOnlineBillerList: [],\r\n\t\t\tBillList: [],\r\n\t\t\tmodel: {},\r\n\t\t\tlist: [],\r\n\t\t\tselected: null,\r\n\t\t\tisLoading: false,\r\n\t\t\talert: null,\r\n\t\t\tsearchModel: {},\r\n\t\t\tBillProfile: {},\r\n\t\t\tbankAccounts: [],\r\n\t\t\tIsPayIndivudalActive: true,\r\n\t\t\tIsPayRecurringActive: true,\r\n\t\t\tcustomerAccountProfile: {},\r\n\t\t\tValidationMessage: \"\",\r\n\t\t\tClientCustomerName: \"\",\r\n\t\t\tIsOpenPayeeDefinitionDialog: false,\r\n\t\t\tisIndividualDialogOpen: false,\r\n\t\t\tisRecurringDialogOpen: false,\r\n\t\t\tisBillerDialogOpen: false,\r\n\t\t\tisClearDialogOpen: false,\r\n\t\t\tBillRecurringModel: { ...this.defaultRecurringModel },\r\n\t\t\tBillIndividualModel: { ...this.defaultIndividualModel },\r\n\t\t\tBillerModel: { ...this.defaultBillerModel },\r\n\t\t\tErrorList: [],\r\n\t\t\tLimitToken: false,\r\n\t\t\treadOnlyData: {},\r\n\t\t\tLimitBalanceData: {\r\n\t\t\t\tAvailableCreditLimit: 0,\r\n\t\t\t\tAvailableDebitLimit: 0,\r\n\t\t\t\tAvailableBalance: 0\r\n\t\t\t},\r\n\t\t\tcustomertoken: 0\r\n\t\t};\r\n\t\tthis.RecurringModelChange = this.RecurringModelChange.bind(this);\r\n\t\tthis.IndividualModelChange = this.IndividualModelChange.bind(this);\r\n\t\tthis.BillerModelChange = this.BillerModelChange.bind(this);\r\n\t\tthis.RefreshToolBar = this.RefreshToolBar.bind(this);\r\n\r\n\t\tthis.hideAlert = this.hideAlert.bind(this);\r\n\t\tthis.GetClientType = this.GetClientType.bind(this);\r\n\r\n\t}\r\n\r\n\r\n\r\n\tcomponentDidMount() {\r\n\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\t\tvar model = { ...this.state.model };\r\n\r\n\t\tif (setAppLeftTitle)\r\n\t\t\tsetAppLeftTitle(\"Create Bill Payment\");\r\n\t\tif (setAppCenterTitle)\r\n\t\t\tsetAppCenterTitle(\"BANKING\");\r\n\r\n\t\tvar tempmodel = RouteHelper.ReadAndClear(\"BillModel\");\r\n\t\tif (!setAppLeftTitle || tempmodel != any && tempmodel != null) {\r\n\t\t\tthis.SelectedRowChange(0, tempmodel);\r\n\t\t\tmodel.ClientId = ClientHelper.GetClientRowId();\r\n\t\t\tmodel.IsUpdate = true;\r\n\t\t\tthis.GetClientType(model.ClientId);\r\n\t\t\tthis.GetBiller(this.state.model);\r\n\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.setState({ model });\r\n\t\t}\r\n\r\n\t}\r\n\r\n\r\n\tValidate = () => {\r\n\t\tconst { model, BillIndividualModel, BillRecurringModel, vModel, vIndividualModel, vRecurringModel } = this.state;\r\n\t\t\r\n\t\tvar billMessages = [];\r\n\r\n\t\tif (model.BillerCode == null || model.BillerCode == \"\") { vModel.BillerCode = true; billMessages.push(\"Payee Name can not be null\"); } else { vModel.BillerCode = false; }\r\n\r\n\t\tswitch (model.BillPayType) {\r\n\t\t\tcase BillPayType.Individual:\r\n\t\t\t\tvModel.BillPayTypeId = false;\r\n\t\t\t\tif (!BillIndividualModel.AccountNumber) { vIndividualModel.AccountNumber = true; billMessages.push(\"Payee Account Number cannot be null.\"); } else { vIndividualModel.AccountNumber = false; }\r\n\t\t\t\tif (!BillIndividualModel.Amount) { vIndividualModel.Amount = true; billMessages.push(\"Amount cannot be null.\"); } else { vIndividualModel.Amount = false; }\r\n\r\n\t\t\t\t// if (IsClient) {\r\n\t\t\t\t// \tif (LimitBalanceData == null) billMessages.push(\"Limit Balance data is empty.\");\r\n\t\t\t\t// \telse if (!Disabled && !model.IsUpdate && LimitBalanceData.AvailableBalance != null && LimitBalanceData.AvailableBalance < BillIndividualModel.Amount) billMessages.push(\"Transaction Amount cannot be higher than balance.\");\r\n\t\t\t\t// }\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase BillPayType.Recurring:\r\n\t\t\t\tvModel.BillPayTypeId = false;\r\n\t\t\t\tif (BillRecurringModel.AccountNumber == null || BillRecurringModel.AccountNumber == \"\") { vRecurringModel.AccountNumber = true; billMessages.push(\"Payee Account Number cannot be null.\"); } else { vRecurringModel.AccountNumber = false; }\r\n\r\n\t\t\t\tif (BillRecurringModel.StartDate == null) { vRecurringModel.StartDate = true; billMessages.push(\"Start Date cannot be null.\"); }\r\n\t\t\t\telse if (typeof BillRecurringModel.StartDate != \"object\") { vRecurringModel.StartDate = true; billMessages.push(\"Start Date is invalid.\"); }\r\n\t\t\t\telse { vRecurringModel.StartDate = false; }\r\n\r\n\t\t\t\tif (BillRecurringModel.EndDate == null) { vRecurringModel.EndDate = true; billMessages.push(\"End Date cannot be null.\"); }\r\n\t\t\t\telse if (typeof BillRecurringModel.EndDate != \"object\") { vRecurringModel.EndDate = true; billMessages.push(\"End Date is invalid.\"); }\r\n\t\t\t\telse if (DateHelper.ToMoment(BillRecurringModel.EndDate).startOf(\"day\") < DateHelper.GetDate()) { vRecurringModel.EndDate = true; billMessages.push(\"End Date cannot be past.\"); }\r\n\t\t\t\telse { vRecurringModel.EndDate = false; }\r\n\r\n\t\t\t\tif (typeof BillRecurringModel.StartDate == \"object\" && typeof BillRecurringModel.EndDate == \"object\" && BillRecurringModel.StartDate > BillRecurringModel.EndDate) billMessages.push(\"Start Date cannot be after End Date.\");\r\n\r\n\t\t\t\tif (model.IsUpdate) {\r\n\t\t\t\t\tif (BillRecurringModel.FreezeStartDate != null && typeof BillRecurringModel.FreezeStartDate != \"object\") { vRecurringModel.FreezeStartDate = true; billMessages.push(\"Freeze Start Date is invalid.\"); }\r\n\t\t\t\t\telse if (DateHelper.ToMoment(BillRecurringModel.FreezeStartDate).startOf(\"day\") < DateHelper.ToMoment(BillRecurringModel.StartDate).startOf(\"day\")) { vRecurringModel.FreezeStartDate = true; billMessages.push(\"Freeze Start Date cannot be before Start Date.\"); }\r\n\t\t\t\t\telse { vRecurringModel.FreezeStartDate = false; }\r\n\r\n\r\n\t\t\t\t\tif (BillRecurringModel.FreezeEndDate != null && typeof BillRecurringModel.FreezeEndDate != \"object\") { vRecurringModel.FreezeEndDate = true; billMessages.push(\"Freeze End Date is invalid.\"); }\r\n\t\t\t\t\telse if (DateHelper.ToMoment(BillRecurringModel.FreezeEndDate).startOf(\"day\") > DateHelper.ToMoment(BillRecurringModel.EndDate).startOf(\"day\")) { vRecurringModel.FreezeEndDate = true; billMessages.push(\"Freeze End Date cannot be after End Date.\"); }\r\n\t\t\t\t\telse { vRecurringModel.FreezeEndDate = false; }\r\n\r\n\t\t\t\t\tif (!BillRecurringModel.FreezeStartDate && BillRecurringModel.FreezeEndDate) { vRecurringModel.FreezeStartDate = true; billMessages.push(\"Freeze Start Date cannot be empty.\"); }\r\n\t\t\t\t\telse { vRecurringModel.FreezeStartDate = false; }\r\n\r\n\t\t\t\t\tif (!BillRecurringModel.FreezeEndDate && BillRecurringModel.FreezeStartDate) { vRecurringModel.FreezeEndDate = true; billMessages.push(\"Freeze End Date cannot be empty.\"); }\r\n\t\t\t\t\telse { vRecurringModel.FreezeEndDate = false; }\r\n\t\t\t\t}\r\n\t\t\t\tif (BillRecurringModel.PaymentCount == null || BillRecurringModel.PaymentCount == \"0\") { vRecurringModel.PaymentCount = true; billMessages.push(\"Period/No. Of Payment cannot be null.\"); } else { vRecurringModel.PaymentCount = false; }\r\n\t\t\t\tif (BillRecurringModel.RecurringAmount == null || BillRecurringModel.RecurringAmount == \"\" || BillRecurringModel.RecurringAmount == 0) { vRecurringModel.RecurringAmount = true; billMessages.push(\"Recurring Amount cannot be null.\"); } else { vRecurringModel.RecurringAmount = false; }\r\n\t\t\t\tif (BillRecurringModel.PeriodId == null || BillRecurringModel.PeriodId == \"\") { vRecurringModel.PeriodId = true; billMessages.push(\"First Due Date Options is not selected.\"); } else { vRecurringModel.PeriodId = false; }\r\n\t\t\t\tif (BillRecurringModel.PeriodCode == PeriodCodes.Weekly && (BillRecurringModel.WeeklyNumber == null || BillRecurringModel.WeeklyNumber == \"\")) billMessages.push(\"Day of week is not selected.\");\r\n\t\t\t\tif (BillRecurringModel.PeriodCode == PeriodCodes.BiWeekly && (BillRecurringModel.BiWeeklyNumber == null || BillRecurringModel.BiWeeklyNumber == \"\")) billMessages.push(\"Day of week is not selected.\");\r\n\t\t\t\tif (BillRecurringModel.PeriodCode == PeriodCodes.Monthly && (BillRecurringModel.MonthlyNumber == null || BillRecurringModel.MonthlyNumber == \"\")) billMessages.push(\"Day of month is not selected.\");\r\n\t\t\t\tif (BillRecurringModel.PeriodCode == PeriodCodes.Quarterly && (BillRecurringModel.QuarterlyNumber == null || BillRecurringModel.QuarterlyNumber == \"\")) billMessages.push(\"Day of first month of quarter is not selected.\");\r\n\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tdefault:\r\n\t\t\t\tthis.ShowMessage(\"warning\", \"Bill Payment Type not selected\", \"Bill Payment Type not selected.\");\r\n\t\t\t\tvModel.BillPayTypeId = true;\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\tif (billMessages.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", billMessages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn true;\r\n\r\n\t}\r\n\r\n\tRecurringModelChange(modelFunction) {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.BillRecurringModel || {};\r\n\r\n\t\t\tif (modelFunction)\r\n\t\t\t\tmodel = modelFunction(model);\r\n\r\n\t\t\treturn { BillRecurringModel: model };\r\n\t\t});\r\n\t}\r\n\r\n\tBillerModelChange(name, newValue, data) {\r\n\r\n\t\tthis.setState(function (state) {\r\n\t\t\tvar model = state.model || {};\r\n\t\t\tif (data) {\r\n\t\t\t\tmodel.BillerId = data.Id;\r\n\t\t\t\tmodel[name] = newValue;\r\n\t\t\t\tmodel.BillerCode = data.BillerCode;\r\n\t\t\t\tmodel.BillerName = data.BillerName;\r\n\t\t\t\tthis.GetLastBill(model);\r\n\t\t\t}\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\r\n\tIndividualModelChange(modelFunction) {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.BillIndividualModel || {};\r\n\r\n\t\t\tif (modelFunction)\r\n\t\t\t\tmodel = modelFunction(model);\r\n\r\n\t\t\treturn { BillIndividualModel: model };\r\n\t\t});\r\n\t}\r\n\r\n\r\n\tClearDialog = () => {\r\n\t\tconst { model } = { ...this.state };\r\n\t\tthis.showClearQuestionMessage(\"Are you sure you want to clear on the screen entered information? \", model);\r\n\t}\r\n\r\n\tUpdateDialog = () => {\r\n\r\n\t\tconst { model } = { ...this.state };\r\n\t\tif (model.IsUpdate && !model.IsDisable) {\r\n\t\t\tif (!this.Validate())\r\n\t\t\t\treturn false;\r\n\t\t\tswitch (model.BillPayType) {\r\n\t\t\t\tcase BillPayType.Individual:\r\n\t\t\t\t\tthis.setState({ isIndividualDialogOpen: true });\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase BillPayType.Recurring:\r\n\t\t\t\t\tthis.setState({ isRecurringDialogOpen: true });\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}\r\n\terrorDefinitionCallback(error) {\r\n\t\tthis.ShowMessage(\"error\", \"Error !\", \"An error occurred while requesting data\" + error);\r\n\t}\r\n\tShowMessage(type, title, message) {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\r\n\t}\r\n\r\n\thideAlert() {\r\n\t\tthis.setState({ alert: null, isLoading: false });\r\n\t}\r\n\r\n\tGetTelpayBiller = (billerName) => {\r\n\t\tProxy.POST(\"/bankapi/v1.0/Biller/GetTelpayBiller\",\r\n\t\t\t{\r\n\t\t\t\tName: billerName\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (responseData.IsSucceeded != false) {\r\n\t\t\t\t\tthis.setState({ BillerList: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.setState({ BillerList: [] });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t});\r\n\t}\r\n\r\n\r\n\tGetBiller = (model) => {\r\n\r\n\t\tif (!model || !model.BillPayType) {\r\n\t\t\tthis.setState({ BillerList: [] });\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tProxy.POST(\"/bankapi/v1.0/Biller/GetAllBiller\",\r\n\t\t\t{\r\n\t\t\t\tIsCustomer: false,\r\n\t\t\t\tBillPayType: model.BillPayType == BillPayType.Individual ? 1 : 2\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (responseData.IsSucceeded != false) {\r\n\t\t\t\t\tthis.setState({ BillerList: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t\telse { this.setState({ BillerList: [] }); }\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t});\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tif (name == \"Code\") {\r\n\t\t\tthis.GetTelpayBiller(value);\r\n\t\t}\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\thandleChange = (name, value, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tconst BillRecurringModel = { ...this.state.BillRecurringModel };\r\n\t\tconst BillIndividualModel = { ...this.state.BillIndividualModel };\r\n\t\tif (data) {\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\tif (name == \"NewClient\") {\r\n\t\t\t\tif (value) {\r\n\t\t\t\t\tmodel.IsCustomerPopupOpen = true;\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tisCustomerAdded: false,\r\n\t\t\t\t\t\tcustomertoken: 0\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (name == \"BillPayTypeId\") {\r\n\t\t\t\tif (data.ParameterValue == BillPayType.Individual) {\r\n\t\t\t\t\tmodel.BillPayType = BillPayType.Individual;\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tIsPayIndivudalActive: false,\r\n\t\t\t\t\t\tIsPayRecurringActive: true\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tmodel.BillPayType = BillPayType.Recurring;\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tIsPayIndivudalActive: true,\r\n\t\t\t\t\t\tIsPayRecurringActive: false\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\tthis.GetLastBill(model);\r\n\t\t\t\tthis.GetBiller(model);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tthis.setState({ model, BillRecurringModel, BillIndividualModel });\r\n\t}\r\n\r\n\tSelectedRowChange = (e, d) => {\r\n\r\n\t\tconst { model, BillerModel, BillRecurringModel, BillIndividualModel } = { ...this.state };\r\n\t\tif (d) {\r\n\t\t\tif (d.BillPayTypeValue == BillPayType.Individual) {\r\n\t\t\t\tmodel.BillPayType = BillPayType.Individual;\r\n\t\t\t\tmodel.BillPayTypeId = d.BillPayTypeId;\r\n\t\t\t\tmodel.ClientCustomer = d.ClientCustomerId;\r\n\t\t\t\tmodel.ClientCustomerId = d.ClientCustomerId;\r\n\t\t\t\tmodel.IsUpdate = true;\r\n\t\t\t\tmodel.BillerId = d.BillerId;\r\n\t\t\t\tmodel.BillerCode = d.BillerCode;\r\n\t\t\t\tmodel.SourceAccountId = d.SourceAccountId;\r\n\t\t\t\tmodel.BillerName = d.BillerName;\r\n\r\n\t\t\t\tBillIndividualModel.Id = d.Id;\r\n\t\t\t\tBillIndividualModel.Amount = d.Amount;\r\n\t\t\t\tBillIndividualModel.AccountNumber = d.BillAccountNumber;\r\n\t\t\t\tBillIndividualModel.BillDescription = d.BillDescription;\r\n\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tBillerModel: BillerModel,\r\n\t\t\t\t\tBillIndividualModel: BillIndividualModel,\r\n\t\t\t\t\tIsPayRecurringActive: true,\r\n\t\t\t\t\tIsPayIndivudalActive: false,\r\n\t\t\t\t\tmodel: model\r\n\t\t\t\t});\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if (d.BillPayTypeValue == BillPayType.Recurring) {\r\n\t\t\t\tmodel.BillPayType = BillPayType.Recurring;\r\n\t\t\t\tmodel.BillPayTypeId = d.BillPayTypeId;\r\n\t\t\t\tmodel.ClientCustomer = d.ClientCustomerId;\r\n\t\t\t\tmodel.ClientCustomerId = d.ClientCustomerId;\r\n\t\t\t\tmodel.IsUpdate = true;\r\n\t\t\t\tmodel.BillerId = d.BillerId;\r\n\t\t\t\tmodel.BillerCode = d.BillerCode;\r\n\t\t\t\tmodel.SourceAccountId = d.SourceAccountId;\r\n\t\t\t\tmodel.BillerName = d.BillerName;\r\n\r\n\t\t\t\tBillRecurringModel.IsPayed = d.IsHaveTransaction;\r\n\t\t\t\tBillRecurringModel.Id = d.BillId;\r\n\t\t\t\tBillRecurringModel.RecurringAmount = d.AutoPayAmount;\r\n\t\t\t\tBillRecurringModel.PaymentCount = d.PaymentCount;\r\n\t\t\t\tBillRecurringModel.TotalAmount = d.TotalAmount;\r\n\t\t\t\tBillRecurringModel.AccountNumber = d.BillAccountNumber;\r\n\t\t\t\tBillRecurringModel.StartDate = d.StartDate ? DateHelper.ToMoment(d.StartDate) : null;\r\n\t\t\t\tBillRecurringModel.EndDate = d.EndDate ? DateHelper.ToMoment(d.EndDate) : null;\r\n\t\t\t\tBillRecurringModel.FreezeStartDate = d.FreezeStartDate ? DateHelper.ToMoment(d.FreezeStartDate) : null;\r\n\t\t\t\tBillRecurringModel.FreezeEndDate = d.FreezeEndDate ? DateHelper.ToMoment(d.FreezeEndDate) : null;\r\n\t\t\t\tBillRecurringModel.PeriodId = d.FirstDueDateOptionId;\r\n\t\t\t\tBillRecurringModel.PeriodCode = d.PeriodCode;\r\n\t\t\t\tBillRecurringModel.BillDescription = d.BillDescription;\r\n\r\n\t\t\t\tBillRecurringModel.WeeklyId = d.PeriodWeeklyId;\r\n\t\t\t\tBillRecurringModel.WeeklyNumber = d.PeriodWeekly != null ? d.PeriodWeekly : \"\";\r\n\r\n\t\t\t\tBillRecurringModel.BiWeeklyId = d.PeriodBiWeeklyId;\r\n\t\t\t\tBillRecurringModel.BiWeeklyNumber = d.PeriodBiWeekly != null ? d.PeriodBiWeekly : \"\";\r\n\r\n\t\t\t\tBillRecurringModel.MonthlyId = d.PeriodMonthlyId;\r\n\t\t\t\tBillRecurringModel.MonthlyNumber = d.PeriodMonthly != null ? d.PeriodMonthly : \"\";\r\n\r\n\t\t\t\tBillRecurringModel.QuarterlyId = d.PeriodQuarterlyId;\r\n\t\t\t\tBillRecurringModel.QuarterlyNumber = d.PeriodQuarterly != null ? d.PeriodQuarterly : \"\";\r\n\r\n\t\t\t\tBillRecurringModel.PayIndex = d.PayIndex;\r\n\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tBillerModel: BillerModel,\r\n\t\t\t\t\tBillRecurringModel: BillRecurringModel,\r\n\t\t\t\t\tIsPayRecurringActive: false,\r\n\t\t\t\t\tIsPayIndivudalActive: true,\r\n\t\t\t\t\tmodel: model,\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tGetLastBill = (model) => {\r\n\t\tif (model.BillPayTypeId && model.BillerCode && !model.IsUpdate) {\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/bankapi/v1.0/Bill/LastBillTransaction\",\r\n\t\t\t\t{\r\n\t\t\t\t\t\"BillPayType\": model.BillPayType == BillPayType.Individual ? 1 : 2,\r\n\t\t\t\t\t\"BillPayTypeId\": model.BillPayTypeId,\r\n\t\t\t\t\t\"ClientCustomerId\": 0,\r\n\t\t\t\t\t\"BillerCode\": model.BillerCode\r\n\t\t\t\t},\r\n\t\t\t\t(responseData) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.FillLastData(responseData.Item);\r\n\t\t\t\t},\r\n\t\t\t\t(error) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t}\r\n\r\n\tGetClientType(clientId) {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Bill/GetClientType\",\r\n\t\t\t{\r\n\t\t\t\t\"Id\": clientId\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tmodel.ClientType = responseData.Item;\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tisLoading: false,\r\n\t\t\t\t\tmodel: model,\r\n\t\t\t\t\tLimitToken: true\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\r\n\tClearScreen = () => {\r\n\t\tthis.setState({ model: { ...any }, isClearDialogOpen: false, isLoading: true, alert: null, BillerList: [] });\r\n\t\tthis.IndividualModelChange(() => { return { ...this.defaultIndividualModel }; });\r\n\t\tthis.RecurringModelChange(() => { return { ...this.defaultRecurringModel }; });\r\n\t\tthis.setState({ isLoading: false, IsPayIndivudalActive: true, IsPayRecurringActive: true, BillerList: [] });\r\n\t\tthis.state.model = any;\r\n\t\tthis.GetBiller();\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\r\n\tSubmitDialog = (workflowId, after, accessToken) => {\r\n\t\tconst { model } = this.state;\r\n\t\tif (!model.IsUpdate) {\r\n\t\t\tif (!this.Validate())\r\n\t\t\t\treturn false;\r\n\r\n\t\t\tswitch (model.BillPayType) {\r\n\t\t\t\tcase BillPayType.Individual:\r\n\t\t\t\t\tthis.setState({ workflowId, after, isIndividualDialogOpen: true, accessToken });\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase BillPayType.Recurring:\r\n\t\t\t\t\tthis.setState({ workflowId, after, isRecurringDialogOpen: true, accessToken });\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tRefreshToolBar() {\r\n\t\tthis.setState({ LimitToken: !this.state.LimitToken });\r\n\t}\r\n\r\n\tGetModelId() {\r\n\t\tconst { model, BillIndividualModel, BillRecurringModel } = this.state;\r\n\r\n\t\tswitch (model.BillPayType) {\r\n\t\t\tcase BillPayType.Individual: return BillIndividualModel.Id;\r\n\t\t\tcase BillPayType.Recurring: return BillRecurringModel.Id;\r\n\t\t\tdefault: return null;\r\n\t\t}\r\n\t}\r\n\tSubmit = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst { BillRecurringModel, BillIndividualModel } = this.state;\r\n\t\tconst { model, workflowId, after, accessToken } = { ...this.state };\r\n\r\n\t\tif (model.BillPayType == BillPayType.Recurring) {\r\n\t\t\tvar recurringRequest = {\r\n\t\t\t\tBillerName: model.BillerName,\r\n\t\t\t\tBillerCode: model.BillerCode,\r\n\t\t\t\tId: BillRecurringModel.Id,\r\n\t\t\t\tBillerId: model.BillerId,\r\n\t\t\t\tRecurringAmount: BillRecurringModel.RecurringAmount,\r\n\t\t\t\tTotalAmount: BillRecurringModel.TotalAmount,\r\n\t\t\t\tClientCustomerId: 0,\r\n\t\t\t\tBillDescription: BillRecurringModel.BillDescription,\r\n\t\t\t\tStartDate: BillRecurringModel.StartDate,\r\n\t\t\t\tEndDate: BillRecurringModel.EndDate,\r\n\t\t\t\tFreezeStartDate: BillRecurringModel.FreezeStartDate,\r\n\t\t\t\tFreezeEndDate: BillRecurringModel.FreezeEndDate,\r\n\t\t\t\tPaymentCount: BillRecurringModel.PaymentCount,\r\n\t\t\t\tFirstDueDateOptionId: BillRecurringModel.PeriodId,\r\n\t\t\t\tPeriodWeeklyId: BillRecurringModel.PeriodCode == PeriodCodes.Weekly ? BillRecurringModel.WeeklyId : \"\",\r\n\t\t\t\tPeriodBiWeeklyId: BillRecurringModel.PeriodCode == PeriodCodes.BiWeekly ? BillRecurringModel.BiWeeklyId : \"\",\r\n\t\t\t\tPeriodMonthlyId: BillRecurringModel.PeriodCode == PeriodCodes.Monthly ? BillRecurringModel.MonthlyId : \"\",\r\n\t\t\t\tPeriodQuarterlyId: BillRecurringModel.PeriodCode == PeriodCodes.Quarterly ? BillRecurringModel.QuarterlyId : \"\",\r\n\t\t\t\tUniqueClientId: ClientHelper.GetClientRowId(),\r\n\t\t\t\tBillPayTypeId: model.BillPayTypeId,\r\n\t\t\t\tSourceAccountId: model.SourceAccountId,\r\n\t\t\t\tAccountNumber: BillRecurringModel.AccountNumber,\r\n\r\n\t\t\t};\r\n\r\n\t\t\tthis.setState({ isLoading: true });\r\n\r\n\t\t\tif (!model.IsUpdate) {\r\n\t\t\t\tProxy.POST(\"/bankapi/v1.0/Bill/InsertRecurringBill\",\r\n\t\t\t\t\t{ BillRecurringModel: recurringRequest },\r\n\t\t\t\t\tresponseData => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false, isRecurringDialogOpen: false });\r\n\r\n\t\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\t\tif (responseData.ErrorCode == \"SysError\")\r\n\t\t\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\tthis.ShowMessage(\"warning\", \"Warning\", responseData.ErrorDescription);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tif (after) after();\r\n\t\t\t\t\t\t\tthis.ClearScreen();\r\n\t\t\t\t\t\t\tthis.RefreshToolBar();\r\n\t\t\t\t\t\t\tthis.GetBiller();\r\n\t\t\t\t\t\t\tthis.ShowMessage(\"success\", \"Recurring Transaction successfully saved.\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\te => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false, isRecurringDialogOpen: false });\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while updating data\", typeof e == \"object\" ? JSON.stringify(e) : e);\r\n\t\t\t\t\t},\r\n\t\t\t\t\tworkflowId,\r\n\t\t\t\t\taccessToken\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tProxy.POST(\"/bankapi/v1.0/Bill/UpdateRecurringBill\",\r\n\t\t\t\t\t{ BillRecurringModel: recurringRequest },\r\n\t\t\t\t\tresponseData => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false, isRecurringDialogOpen: false });\r\n\r\n\t\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\t\tif (responseData.ErrorCode == \"SysError\")\r\n\t\t\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\tthis.ShowMessage(\"warning\", \"Warning\", responseData.ErrorDescription);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tif (after) after();\r\n\t\t\t\t\t\t\tthis.ClearScreen();\r\n\t\t\t\t\t\t\tthis.RefreshToolBar();\r\n\t\t\t\t\t\t\tthis.GetBiller();\r\n\t\t\t\t\t\t\tthis.ShowMessage(\"success\", \"Recurring Transaction successfully updated.\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\te => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false, isRecurringDialogOpen: false });\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while inserting data\", typeof e == \"object\" ? JSON.stringify(e) : e);\r\n\t\t\t\t\t},\r\n\t\t\t\t\tworkflowId,\r\n\t\t\t\t\taccessToken\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\r\n\t\t\tvar individualRequest = {\r\n\t\t\t\tId: BillIndividualModel.Id,\r\n\t\t\t\tAmount: BillIndividualModel.Amount,\r\n\t\t\t\tClientCustomerId: model.ClientCustomerId,\r\n\t\t\t\tUniqueClientId: model.ClientId,\r\n\t\t\t\tBillerId: model.BillerId,\r\n\t\t\t\tAccountNumber: BillIndividualModel.AccountNumber,\r\n\t\t\t\tBillDescription: BillIndividualModel.BillDescription,\r\n\t\t\t\tAccountName: BillIndividualModel.AccountName,\r\n\t\t\t\tBillPayTyeId: model.BillPayTypeId,\r\n\t\t\t\tClientCustomerName: model.ClientCustomerName,\r\n\t\t\t\tBillerCode: model.BillerCode,\r\n\t\t\t\tBillerName: model.BillerName,\r\n\t\t\t\tSourceAccountId: model.SourceAccountId\r\n\r\n\t\t\t};\r\n\r\n\t\t\tif (!model.IsUpdate) {\r\n\t\t\t\tthis.setState({ isLoading: true });\r\n\r\n\t\t\t\tProxy.POST(\"/bankapi/v1.0/Bill/InsertIndividualBill\",\r\n\t\t\t\t\t{ BillIndividualModel: individualRequest },\r\n\t\t\t\t\tresponseData => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false, isIndividualDialogOpen: false });\r\n\r\n\t\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\t\tif (responseData.ErrorCode == \"SysError\")\r\n\t\t\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\tthis.ShowMessage(\"warning\", \"Warning\", responseData.ErrorDescription);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tif (after) after();\r\n\t\t\t\t\t\t\tthis.GetBiller();\r\n\t\t\t\t\t\t\tthis.ClearScreen();\r\n\t\t\t\t\t\t\tthis.ShowMessage(\"success\", \"Individual Transaction Entry successfully saved.\");\r\n\t\t\t\t\t\t\tthis.RefreshToolBar();\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\te => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false, isIndividualDialogOpen: false });\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while inserting data\", typeof e == \"object\" ? JSON.stringify(e) : e);\r\n\t\t\t\t\t},\r\n\t\t\t\t\tworkflowId,\r\n\t\t\t\t\taccessToken\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tProxy.POST(\"/bankapi/v1.0/Bill/UpdateIndividualBill\",\r\n\t\t\t\t\t{ BillIndividualModel: individualRequest },\r\n\t\t\t\t\tresponseData => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false, isIndividualDialogOpen: false });\r\n\r\n\t\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\t\tif (responseData.ErrorCode == \"SysError\")\r\n\t\t\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\tthis.ShowMessage(\"warning\", \"Warning\", responseData.ErrorDescription);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tif (after) after();\r\n\r\n\t\t\t\t\t\t\tthis.ClearScreen();\r\n\t\t\t\t\t\t\tthis.GetBiller();\r\n\t\t\t\t\t\t\tthis.RefreshToolBar();\r\n\t\t\t\t\t\t\tthis.ShowMessage(\"success\", \"Individual Transaction successfully updated.\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\te => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false, isRecurringDialogOpen: false });\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while inserting data\", typeof e == \"object\" ? JSON.stringify(e) : e);\r\n\t\t\t\t\t},\r\n\t\t\t\t\tworkflowId,\r\n\t\t\t\t\taccessToken\r\n\t\t\t\t);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}\r\n\r\n\r\n\r\n\tshowClearQuestionMessage = (message, model) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} OnConfirm={() => this.ClearScreen()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\r\n\tBillerNameChange = (name, newValue) => {\r\n\r\n\t\tif (name == \"BillerCode\" && newValue != \"\") {\r\n\t\t\t//var result = this.state.BillerList.filter(x => x.BillerName != null && x.BillerName.toLocaleLowerCase().indexOf(newValue.toLocaleLowerCase()) != -1);\r\n\t\t\tif (newValue.length > 2)\r\n\t\t\t\tthis.GetTelpayBiller(newValue);\r\n\t\t}\r\n\t}\r\n\r\n\tGetModel = () => {\r\n\t\tconst { model, BillIndividualModel, BillRecurringModel } = this.state;\r\n\r\n\t\tswitch (model.BillPayType) {\r\n\t\t\tcase BillPayType.Individual:\r\n\t\t\t\tmodel.ClientId = ClientHelper.GetClientRowId();\r\n\t\t\t\tBillIndividualModel.BillerCode = model.BillerCode;\r\n\t\t\t\tBillIndividualModel.ClientCustomerId = model.ClientCustomerId;\r\n\t\t\t\tBillIndividualModel.BillerName = model.BillerName;\r\n\t\t\t\treturn { model, BillIndividualModel: BillIndividualModel };\r\n\t\t\tcase BillPayType.Recurring:\r\n\t\t\t\tmodel.ClientId = ClientHelper.GetClientRowId();\r\n\t\t\t\tBillRecurringModel.BillerCode = model.BillerCode;\r\n\t\t\t\tBillRecurringModel.ClientCustomerId = model.ClientCustomerId;\r\n\t\t\t\tBillRecurringModel.BillerName = model.BillerName;\r\n\t\t\t\treturn { model, BillRecurringModel: BillRecurringModel };\r\n\t\t\tdefault: return null;\r\n\t\t}\r\n\t}\r\n\r\n\r\n\tFillData = (data) => {\r\n\r\n\t\tconst { model, BillIndividualModel, BillRecurringModel } = data;\r\n\r\n\r\n\t\tswitch (model.BillPayType) {\r\n\t\t\tcase BillPayType.Individual:\r\n\t\t\t\tBillIndividualModel.BillerName = model.BillerName;\r\n\t\t\t\tthis.setState({ model, BillIndividualModel });\r\n\t\t\t\tbreak;\r\n\t\t\tcase BillPayType.Recurring:\r\n\t\t\t\tBillRecurringModel.BillerName = model.BillerName;\r\n\t\t\t\tBillRecurringModel.StartDate = BillRecurringModel.StartDate ? DateHelper.ToMoment(BillRecurringModel.StartDate) : null;\r\n\t\t\t\tBillRecurringModel.EndDate = BillRecurringModel.EndDate ? DateHelper.ToMoment(BillRecurringModel.EndDate) : null;\r\n\t\t\t\tBillRecurringModel.FreezeStartDate = BillRecurringModel.FreezeStartDate ? DateHelper.ToMoment(BillRecurringModel.FreezeStartDate) : null;\r\n\t\t\t\tBillRecurringModel.FreezeEndDate = BillRecurringModel.FreezeEndDate ? DateHelper.ToMoment(BillRecurringModel.FreezeEndDate) : null;\r\n\t\t\t\tthis.setState({ model, BillRecurringModel });\r\n\t\t\t\tbreak;\r\n\t\t\tdefault: return;\r\n\t\t}\r\n\t}\r\n\r\n\tFillLastData = (data) => {\r\n\r\n\t\tif (data) {\r\n\t\t\tconst { BillIndividualModel, BillRecurringModel } = data;\r\n\r\n\t\t\tif (BillIndividual && BillIndividualModel != null && BillIndividualModel != any) {\r\n\t\t\t\tthis.setState({ BillIndividualModel });\r\n\t\t\t}\r\n\t\t\telse if (BillRecurringModel && BillRecurringModel != null && BillRecurringModel != any) {\r\n\t\t\t\tBillRecurringModel.RecurringAmount = null;\r\n\t\t\t\tBillRecurringModel.TotalAmount = null;\r\n\t\t\t\tBillRecurringModel.PeriodId = BillRecurringModel.FirstDueDateOptionId;\r\n\t\t\t\tBillRecurringModel.WeeklyId = BillRecurringModel.PeriodWeeklyId;\r\n\t\t\t\tBillRecurringModel.WeeklyNumber = BillRecurringModel.PeriodWeekly != null ? BillRecurringModel.PeriodWeekly : \"\";\r\n\t\t\t\tBillRecurringModel.BiWeeklyId = BillRecurringModel.PeriodBiWeeklyId;\r\n\t\t\t\tBillRecurringModel.BiWeeklyNumber = BillRecurringModel.PeriodBiWeekly != null ? BillRecurringModel.PeriodBiWeekly : \"\";\r\n\t\t\t\tBillRecurringModel.MonthlyId = BillRecurringModel.PeriodMonthlyId;\r\n\t\t\t\tBillRecurringModel.MonthlyNumber = BillRecurringModel.PeriodMonthly != null ? BillRecurringModel.PeriodMonthly : \"\";\r\n\t\t\t\tBillRecurringModel.QuarterlyId = BillRecurringModel.PeriodQuarterlyId;\r\n\t\t\t\tBillRecurringModel.QuarterlyNumber = BillRecurringModel.PeriodQuarterly != null ? BillRecurringModel.PeriodQuarterly : \"\";\r\n\t\t\t\tBillRecurringModel.StartDate = BillRecurringModel.StartDate ? DateHelper.ToMoment(BillRecurringModel.StartDate) : null;\r\n\t\t\t\tBillRecurringModel.EndDate = BillRecurringModel.EndDate ? DateHelper.ToMoment(BillRecurringModel.EndDate) : null;\r\n\t\t\t\tBillRecurringModel.FreezeStartDate = null;\r\n\t\t\t\tBillRecurringModel.FreezeEndDate = null;\r\n\t\t\t\tthis.setState({ BillRecurringModel });\r\n\t\t\t} else {\r\n\t\t\t\tthis.setState({ BillIndividualModel: { ...this.defaultIndividualModel }, BillRecurringModel: { ...this.defaultRecurringModel } });\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.setState({ BillIndividualModel: { ...this.defaultIndividualModel }, BillRecurringModel: { ...this.defaultRecurringModel } });\r\n\t\t}\r\n\t}\r\n\r\n\tBillerCodeDisable = () => {\r\n\t\tconst { model, BillRecurringModel } = this.state;\r\n\r\n\t\tif (model.IsUpdate && model.BillPayType == BillPayType.Individual)\r\n\t\t\treturn false;\r\n\r\n\t\telse if (model.BillPayType == BillPayType.Recurring && model.IsUpdate && BillRecurringModel && BillRecurringModel.PayIndex && BillRecurringModel.PayIndex > 0)\r\n\t\t\t\treturn true;\r\n\t\t\telse\r\n\t\t\t\treturn false;\r\n\t\t\r\n\t}\r\n\r\n\tGetRenderItemBiller = (x) => {\r\n\t\tthis.renderItemBiller = `${x.BillerName} - ${x.BillerCode}`;\r\n\t\treturn this.renderItemBiller;\r\n\t}\r\n\trender() {\r\n\t\tconst { model, BillRecurringModel, BillIndividualModel, BillerList, LimitToken, isRecurringDialogOpen, isIndividualDialogOpen, vRecurringModel, vIndividualModel, vModel } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t{this.state.alert}\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\r\n\t\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\r\n\r\nClientBillDefinition.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tPayeeId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any,\r\n\tmodel: PropTypes.object,\r\n};\r\n\r\nexport default ClientBillDefinition;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes, { any } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericDateInput, GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\n\r\n\r\nclass BillIndividualList extends Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.emptyObject = {};\r\n\t\tthis.renderItemUniqueClient = {};\r\n\t\tthis.sortedName = { Member: \"Name\" };\r\n\t\tthis.isClient = true;\r\n\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t\tStartDate: DateHelper.GetDate(),\r\n\t\t\tEndDate: DateHelper.GetDate(),\r\n\t\t};\r\n\t\tthis.state = {\r\n\t\t\tmodel: {...this.initialModel},\r\n\t\t\tBillIndividualList: [],\r\n\t\t\tisLoading: false,\r\n\t\t\r\n\t\t};\r\n\r\n\t\tthis.GetBillIndividualList = this.GetBillIndividualList.bind(this);\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tthis.GetBillIndividualList();\r\n\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\r\n\t\tvar isBackOff = ClientHelper.IsBackOffice();\r\n\r\n\t\tif (!isBackOff) {\r\n\t\t\tthis.IsClient = true;\r\n\t\t}\r\n\r\n\t\tthis.props.setAppLeftTitle(\"Individual Bill List\");\r\n\t\tthis.props.setAppCenterTitle(\"BILL PAYMENT\");\r\n\r\n\t}\r\n\r\n\tGetBillIndividualList() {\r\n\r\n\t\tconst { model } = this.state;\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Bill/GetAllIndividualBill\",\r\n\t\t\t{\r\n\t\t\t\t\"BillerId\": model.BillerId,\r\n\t\t\t\t\"BillerCode\": model.BillerCode,\r\n\t\t\t\t\"UniqueClientId\": model.UniqueClientId,\r\n\t\t\t\t\"StartDate\": model.StartDate,\r\n\t\t\t\t\"EndDate\": model.EndDate,\r\n\t\t\t\t\"ReferenceNumber\": model.ReferenceNumber\r\n\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (responseData.Item != null && responseData.Item.length > 0) {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tisLoading: false,\r\n\t\t\t\t\t\tBillIndividualList: responseData.Item\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tisLoading: false,\r\n\t\t\t\t\t\tBillIndividualList: []\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t);\r\n\r\n\t}\r\n\r\n\tSelectedRowChange = (index) => {\r\n\t\tvar tempModel = { ...this.state.model };\r\n\t\tconst data = this.state.BillIndividualList[index];\r\n\r\n\t\ttempModel.BillerId = data.BillerId;\r\n\t\ttempModel.BillerCode = data.BillerCode;\r\n\t\ttempModel.UniqueClientId = data.UniqueClientId;\r\n\r\n\t\tthis.setState({ model: tempModel, tempModel, rowIndex: index });\r\n\t}\r\n\tClear = () => {\r\n\t\tthis.setState({ model: any });\r\n\t}\r\n\r\n\tGetRenderItemUniqueClient = (x) => {\r\n\t\tthis.renderItemUniqueClient = `${x.Name} - ${x.UniqueClientId}`;\r\n\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\trender() {\r\n\r\n\t\tconst { model } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nBillIndividualList.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tmodel: PropTypes.object,\r\n\tonModelChange: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default BillIndividualList;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { DeleteIcon, EditIcon } from \"core/Icons\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport AccountLimitToolbar from \"views/Components/AccountLimitToolbar\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericAlert, GenericDateInput, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTitle } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { GridColumnType, MenuCodes, ProgramCodes, TransactionOrderStatus } from \"views/Constants/Constant\";\r\n\r\nclass BillRecurringList extends Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\r\n\t\tthis.sortedName = { Member: \"Name\" };\r\n\r\n\t\tthis.isClient = ClientHelper.IsClient();\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t\tStartDate: DateHelper.GetDate(),\r\n\t\t\tEndDate: DateHelper.GetDate(),\r\n\t\t\tBillerId: null,\r\n\t\t\tBillerCode: \"\",\r\n\t\t\tTransactionOrderStatusId: null\r\n\t\t};\r\n\t\tthis.state = {\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tBillRecurringList: [],\r\n\t\t\tisLoading: false,\r\n\t\t};\r\n\r\n\t\tthis.GetBillRecurringList = this.GetBillRecurringList.bind(this);\r\n\t\tthis.IsCustomer = true;\r\n\t\tthis.ProgramCode = \"\";\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tif (name = \"UniqueClientId\" && value == null) {\r\n\t\t\tmodel[name] = 0;\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tSearch = () => {\r\n\t\tif (!this.IsValid())\r\n\t\t\treturn false;\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tthis.GetBillRecurringList();\r\n\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tvar isBackOff = ClientHelper.IsBackOffice();\r\n\t\tvar model = { ...this.state.model };\r\n\t\tif (!isBackOff) {\r\n\t\t\tthis.isClient = true;\r\n\t\t\tmodel.UniqueClientId = ClientHelper.GetClientRowId();\r\n\t\t}\r\n\r\n\t\tswitch (this.props.MenuCode) {\r\n\t\t\tcase MenuCodes.ClientBillRecurringList:\r\n\t\t\t\tthis.props.setAppCenterTitle(\"BANKING\");\r\n\t\t\t\tthis.props.setAppLeftTitle(\"Client Recurring List\");\r\n\t\t\t\tthis.Url = \"/bankapi/v1.0/Bill/GetAllClientBaseRecurringBill\";\r\n\t\t\t\tthis.IsCustomer = false;\r\n\t\t\t\tthis.ProgramCode = ProgramCodes.Bank_Programs_Bank_Account;\r\n\t\t\t\tbreak;\r\n\t\t\tcase MenuCodes.CustomerBillRecurringList:\r\n\t\t\t\tthis.props.setAppCenterTitle(\"BILL PAYMENT\");\r\n\t\t\t\tthis.props.setAppLeftTitle(\"Customer Recurring List\");\r\n\t\t\t\tthis.Url = \"/bankapi/v1.0/Bill/GetAllCustomerBaseRecurringBill\";\r\n\t\t\t\tthis.IsCustomer = true;\r\n\t\t\t\tthis.ProgramCode = ProgramCodes.BillPayment;\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tthis.props.setAppCenterTitle(\"BILL PAYMENT\");\r\n\t\t\t\tthis.props.setAppLeftTitle(\"Recurring Bill List\");\r\n\t\t\t\tthis.Url = \"/bankapi/v1.0/Bill/GetAllRecurringBill\";\r\n\t\t\t\tthis.IsCustomer = null;\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tIsValid = () => {\r\n\t\tvar vmodel = { ...this.state.model };\r\n\r\n\t\tif (vmodel.StartDate && typeof vmodel.StartDate != \"object\") {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"From Date is invalid\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (vmodel.EndDate && typeof vmodel.EndDate != \"object\") {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"To Date is invalid\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (vmodel.StartDate && vmodel.EndDate && vmodel.EndDate < vmodel.StartDate) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"From Date cannot be bigger than End Date\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\r\n\tGetBillRecurringList() {\r\n\r\n\t\tProxy.POST(\r\n\t\t\tthis.Url,\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (responseData.Item != null && responseData.Item.length > 0) {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tisLoading: false,\r\n\t\t\t\t\t\tBillRecurringList: responseData.Item\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tisLoading: false,\r\n\t\t\t\t\t\tBillRecurringList: []\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t);\r\n\r\n\t}\r\n\r\n\tSelectedRowChange = (index) => {\r\n\t\tconst { model } = { ...this.state };\r\n\t\tconst data = this.state.BillRecurringList[index];\r\n\r\n\t\tmodel.BillerId = data.BillerId;\r\n\t\tmodel.BillerCode = data.BillerCode;\r\n\t\tmodel.UniqueClientId = data.ClientId;\r\n\t\tmodel.TransactionOrderStatusId = data.TransactionOrderStatusId;\r\n\t\tthis.setState({ model, rowIndex: index });\r\n\t}\r\n\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, isEdit: false, index: -1 });\r\n\t}\r\n\r\n\tGetRenderItemUniqueClient = (x) => {\r\n\t\tthis.renderItemUniqueClient = `${x.Name} - ${x.UniqueClientId}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\thideAlert() {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\r\n\tshowQuestionMessage = (message, model) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} OnConfirm={() => this.CancelModel(model)} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\r\n\tCancelDialog = (model) => {\r\n\t\tthis.showQuestionMessage(\"Are you sure you want to cancel the recurring bill? \", model);\r\n\t}\r\n\r\n\r\n\tCancelModel = (model) => {\r\n\t\tProxy.POST(\"/bankapi/v1.0/Bill/CancelRecurringBill\",\r\n\t\t\t{\r\n\t\t\t\tId: model.BillId\r\n\t\t\t}\r\n\t\t\t,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false, alert: null });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"warning\", \"Recurring Transaction cannot be canceled.\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\r\n\t\t\t\t\tthis.Search();\r\n\t\t\t\t\tthis.ShowMessage(\"success\", \"Recurring Transaction successfully canceled.\");\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\te => {\r\n\t\t\t\tthis.setState({ isLoading: false, isRecurringDialogOpen: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while inserting data\", typeof e == \"object\" ? JSON.stringify(e) : e);\r\n\t\t\t}\r\n\t\t);\r\n\r\n\r\n\t}\r\n\r\n\tShowMessage(type, title, message) {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\r\n\r\n\trender() {\r\n\r\n\t\tconst { model } = this.state;\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.isClient && this.IsCustomer == false &&\r\n\t\t\t\t\t { this.setState({ LimitBalanceData: data, isLoading: false }); }} />\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t{this.state.alert}\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\t\t\t\t\tActions: (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (this.IsCustomer)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tRouteHelper.Push(this.props.history, \"/BillDefinition\", \"BillModel\", d);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tRouteHelper.Push(this.props.history, \"/ClientBillDefinition\", \"BillModel\", d);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 0)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tOnClick={() => this.CancelDialog(d)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\tBillerName: d.BillerName,\r\n\t\t\t\t\t\t\t\t\t\t\tClientName: d.ClientName,\r\n\t\t\t\t\t\t\t\t\t\t\tPaymentPeriod: d.PaymentPeriod,\r\n\t\t\t\t\t\t\t\t\t\t\tLastCheckDate: d.LastCheckDate,\r\n\t\t\t\t\t\t\t\t\t\t\tBillAccountNumber: d.BillAccountNumber,\r\n\t\t\t\t\t\t\t\t\t\t\tClientCustomerName: d.ClientCustomerName,\r\n\t\t\t\t\t\t\t\t\t\t\tIsAutoPayPeriod: d.IsAutoPayPeriod,\r\n\t\t\t\t\t\t\t\t\t\t\tAutoPayAmount: d.AutoPayAmount,\r\n\t\t\t\t\t\t\t\t\t\t\tAutoPayPeriod: d.AutoPayPeriod,\r\n\t\t\t\t\t\t\t\t\t\t\tCreateDate: d.CreateDate,\r\n\t\t\t\t\t\t\t\t\t\t\tTelpaySend: d.TelpaySend,\r\n\t\t\t\t\t\t\t\t\t\t\tAmount: d.Amount,\r\n\t\t\t\t\t\t\t\t\t\t\tTotalAmount: d.TotalAmount,\r\n\t\t\t\t\t\t\t\t\t\t\tStartDate: d.StartDate,\r\n\t\t\t\t\t\t\t\t\t\t\tEndDate: d.EndDate,\r\n\t\t\t\t\t\t\t\t\t\t\tPayIndex: d.PayIndex,\r\n\t\t\t\t\t\t\t\t\t\t\tOrderStatusDesc: d.OrderStatusDesc,\r\n\t\t\t\t\t\t\t\t\t\t\tOrderStatusValue: d.OrderStatusValue,\r\n\t\t\t\t\t\t\t\t\t\t\tUniqueClientId: d.UniqueClientId,\r\n\t\t\t\t\t\t\t\t\t\t\tTransactionSource: d.TransactionSource,\r\n\t\t\t\t\t\t\t\t\t\t\tTransactionOrderStatusId: d.TransactionOrderStatusId\r\n\t\t\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tColumns={[\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\t\t\t\t\t\t\t\tsortable: false,\r\n\t\t\t\t\t\t\t\t\t\t\tfilterable: false,\r\n\t\t\t\t\t\t\t\t\t\t\twidth: 80,\r\n\t\t\t\t\t\t\t\t\t\t\tshow: IsClient\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"CreateDate\",\r\n\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTimeUtc,\r\n\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.DateTimeUtc\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Unique Client Id\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"UniqueClientId\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ClientCustomerName\",\r\n\t\t\t\t\t\t\t\t\t\t\tshow: this.IsCustomer\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Status\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"OrderStatusDesc\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Payee Name\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"BillerName\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Payee Account No.\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"BillAccountNumber\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Future Payment Date\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"LastCheckDate\",\r\n\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateUtc,\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Start Date\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"StartDate\",\r\n\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateUtc,\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"End Date\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"EndDate\",\r\n\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateUtc,\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Payment Period\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"PaymentPeriod\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Auto Pay Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"AutoPayAmount\",\r\n\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Total Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"TotalAmount\",\r\n\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Source\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionSource\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{row.value == \"Manuel\" ? \"Manuel\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: row.value == \"Sftp\" ? \"Sftp\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: row.Value == \"FileUpload\" ? \"File Upload\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: \"Api\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\tRowSelected={index => {\r\n\t\t\t\t\t\t\t\t\t\tthis.SelectedRowChange(index);\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\tIsSorted={false}\r\n\t\t\t\t\t\t\t\t\tSelectedIndex={this.state.rowIndex}\r\n\t\t\t\t\t\t\t\t\tProgramCode={this.ProgramCode}\r\n\t\t\t\t\t\t\t\t\tShowPagination={true}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nBillRecurringList.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tmodel: PropTypes.object,\r\n\tonModelChange: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default BillRecurringList;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes, { any } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericAlert, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTitle, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { ClientType, ProgramCodes } from \"views/Constants/Constant\";\r\n\r\nclass BillerList extends Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.emptyObject = {};\r\n\t\tthis.ParameterMaxLength7 = { maxLength: 7 };\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\r\n\t\tthis.sortedName = { Member: \"Name\" };\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\talert: null,\r\n\t\t\tBillerList: [],\r\n\t\t\tStaticBillerList: [],\r\n\t\t\tIsDelete: false\r\n\r\n\t\t};\r\n\t\tthis.IsClient = ClientHelper.IsClient();\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: this.IsClient ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t};\r\n\r\n\t\tthis.IsAvailable = false;\r\n\r\n\t\tthis.GetBillerList = this.GetBillerList.bind(this);\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tif (name == \"UniqueClientId\" && value == null) {\r\n\t\t\tmodel[name] = value;\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tthis.GetBillerList();\r\n\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Payee List\");\r\n\t\tthis.props.setAppCenterTitle(\"BILL PAYMENT\");\r\n\r\n\t\tvar isBackOff = ClientHelper.IsBackOffice();\r\n\t\tvar model = { ...this.state.model };\r\n\r\n\t\tif (!isBackOff) {\r\n\t\t\tthis.IsAvailable = true;\r\n\t\t\tmodel.IsClient = true;\r\n\t\t\tmodel.UniqueClientId = ClientHelper.GetClientRowId();\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\t}\r\n\tGetBillerList() {\r\n\r\n\t\tconst { model } = this.state;\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Biller/GetBillerList\",\r\n\t\t\t{\r\n\t\t\t\t\"Code\": model.Code,\r\n\t\t\t\t\"UniqueClientId\": model.UniqueClientId\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (responseData.Item != null && responseData.Item.length > 0) {\r\n\r\n\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tisLoading: false,\r\n\t\t\t\t\t\tBillerList: responseData.Item\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tisLoading: false,\r\n\t\t\t\t\t\tBillerList: []\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t);\r\n\r\n\t}\r\n\tDeleteDialog = () => {\r\n\t\tconst { model } = { ...this.state };\r\n\t\tthis.showQuestionMessage(\"Are you sure you want to delete payee? \", model);\r\n\t}\r\n\r\n\tshowQuestionMessage = (message, model) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} OnConfirm={() => this.Delete()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\thideAlert() {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\tShowMessage(type, title, message) {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\r\n\r\n\tSelectedRowChange = (index) => {\r\n\t\tconst biller = this.state.BillerList[index];\r\n\t\tthis.setState({ model: biller, rowIndex: index });\r\n\t}\r\n\r\n\tClear = () => {\r\n\r\n\t\tvar model = { ...this.state.model };\r\n\t\tvar UniqueClientId = model.UniqueClientId;\r\n\t\tmodel = any;\r\n\t\tmodel.UniqueClientId = UniqueClientId;\r\n\t\tif (!this.IsAvailable) {\r\n\t\t\tmodel.UniqueClientId = any;\r\n\t\t}\r\n\t\tthis.setState({ model: model });\r\n\t}\r\n\r\n\tGetRenderItemUniqueClient = (x) => {\r\n\t\tthis.renderItemUniqueClient = `${x.Name} - ${x.UniqueClientId}`;\r\n\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\trender() {\r\n\r\n\t\tconst { model } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\r\n\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nBillerList.propTypes = {\r\n\tmodel: PropTypes.object,\r\n\tonModelChange: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default BillerList;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport { DeleteIcon, EditIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton.jsx\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\n\r\nclass ClientAccountSetProgram extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.UniqueClientId = ClientHelper.GetClientRowId();\r\n\t\tthis.state = {\r\n\t\t\tvModel: {},\r\n\t\t\tmodel: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tlist: []\r\n\t\t};\r\n\t\tthis.isBackoffice = ClientHelper.IsBackOffice();\r\n\t\tthis.getClientId = ClientHelper.GetClientId();\r\n\t\tthis.getClientRowId = ClientHelper.GetClientRowId();\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\r\n\t\tif (setAppLeftTitle) setAppLeftTitle(\"Change Program Default Account\");\r\n\t\tif (setAppCenterTitle) setAppCenterTitle(\"CLIENT\");\r\n\r\n\t}\r\n\tSelectedRowChange = (index) => {\r\n\t\tconst model = this.state.list[index];\r\n\t\tif (model.Id == null || model.Id == undefined)\r\n\t\t\tthis.props.showMessage(\"warning\", \"File Information\", \"FileInformationId can not be null\");\r\n\t\telse {\r\n\t\t\tthis.setState({ model, isLoading: false });\r\n\r\n\t\t}\r\n\t}\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.model || {};\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\tClear = () => {\r\n\t\tthis.setState({ vModel: {}, model: {},list:[] });\r\n\t}\r\n\r\n\tshowQuestionMessage = (message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} OnConfirm={() => this.Delete()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\tValidate = () => {\r\n\t\tvar ErrorList = [];\r\n\t\tconst vModel = this.state.vModel;\r\n\t\tconst model = this.state.model;\r\n\t\tif (this.isBackoffice) {\r\n\t\t\tvModel.UniqueClientId = model.UniqueClientId == null || model.UniqueClientId <= 0;\r\n\t\t\tif (vModel.UniqueClientId) ErrorList.push(\"Unique Client must be defined !.\");\r\n\t\t}\r\n\r\n\t\tvModel.ProgramId = model.ProgramId == null || model.ProgramId <= 0;\r\n\t\tif (vModel.ProgramId) ErrorList.push(\"Program must be defined !.\");\r\n\t\tvModel.AccountId = model.AccountId == null || model.AccountId <= 0;\r\n\t\tif (vModel.AccountId) ErrorList.push(\"Account must be defined !.\");\r\n\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\tHandleDeleteButton = model => async () => {\r\n\t\tlet confirmResult = await this.props.showConfirmMessage(\"warning\", \"Warning\", \"Delete this record !. Are you sure?\");\r\n\t\tif (confirmResult) {\r\n\t\t\tthis.Delete(model);\r\n\t\t}\r\n\t}\r\n\tDelete = () => {\r\n\t\tif (this.state.model == null || this.state.model.Id == null || this.state.model.Id == 0) {\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Record must be selected for delete operation !\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Account/DeleteAccountProgramMap\", { Id: this.state.model.Id },\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tisLoading: false,\r\n\t\t\t\t\talert: null\r\n\t\t\t\t});\r\n\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Success\", \"Operation Successfully Completed!\");\r\n\t\t\t\tthis.Clear();\r\n\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tisLoading: false,\r\n\t\t\t\t\talert: null\r\n\t\t\t\t});\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tSubmit = () => {\r\n\t\tif (!this.Validate()) return;\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tvar model = this.state.model;\r\n\t\tif (!this.isBackoffice) {\r\n\t\t\tmodel.UniqueClientId = this.getClientRowId;\r\n\t\t\tthis.setState({ model });\r\n\t\t}\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Account/InsertOrUpdateAccountProgramMap\",\r\n\t\t\tmodel,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: true });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Success\", \"Operation Successfully Completed!\");\r\n\t\t\t\tthis.Clear();\r\n\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tvar model = this.state.model;\r\n\t\tif (!this.isBackoffice) {\r\n\t\t\tmodel.UniqueClientId = this.getClientRowId;\r\n\t\t\tthis.setState({ model });\r\n\t\t}\r\n\t\tif(model.UniqueClientId == null){\r\n\t\t\tmodel.UniqueClientId = 0;\r\n\t\t}\r\n\t\tif(model.AccountId == null){\r\n\t\t\tmodel.AccountId = 0;\r\n\t\t}\r\n\t\tif(model.ProgramId == null){\r\n\t\t\tmodel.ProgramId = 0;\r\n\t\t}\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Account/SearchAccountProgramMap\",\r\n\t\t\tmodel,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: true });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.setState({ list: [] });\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item && responseData.Item.length > 0) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t//this.props.showMessage(\"warning\", \"Warning\", \"Any Record Not Found!\");\r\n\t\t\t\t\tthis.setState({ list: [], isLoading: false });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false, list: [] });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, vModel, list } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t this.Clear(), Disabled: Disabled || model == {} },\r\n\t\t\t\t\t\t\t{ Code: \"Search\", OnClick: () => this.Search(), Disabled: Disabled || model.Id != null },\r\n\t\t\t\t\t\t\t{ Code: \"Submit\", OnClick: () => this.Submit(), Disabled: Disabled || model.Id != null },\r\n\t\t\t\t\t\t\t{ Code: \"Delete\", OnClick: () => this.showQuestionMessage(), Disabled: Disabled || model.Id == null },\r\n\t\t\t\t\t\t\t{ Code: \"Update\", OnClick: () => this.Submit(), Disabled: Disabled || model.Id == null },\r\n\r\n\t\t\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{this.isBackoffice && (\r\n\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\tParameter={{ UniqueClientId: !this.isBackoffice ? this.getClientId : null }}\r\n\t\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.UniqueClientId}\r\n\t\t\t\t\t\t\t\t\t\t\tDisabled={model.Id > 0}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t 0}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t `${d.AccountNumber} - ${d.AccountName}`}\r\n\t\t\t\t\t\t\t\t\t\t\tUrl=\"/bankapi/v1.0/Account/ClientAccount\"\r\n\t\t\t\t\t\t\t\t\t\t\tMethod=\"POST\"\r\n\t\t\t\t\t\t\t\t\t\t\tParameter={{ UniqueClientId: !this.isBackoffice ? this.getClientRowId : model.UniqueClientId }}\r\n\t\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.AccountId}\r\n\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t\t\t// \t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t// \t\t\t this.setState({ model: { ...row.original } })} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t// \t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t// \t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t// \tsortable: false,\r\n\t\t\t\t\t\t\t\t\t\t\t\t// \tfilterable: false,\r\n\t\t\t\t\t\t\t\t\t\t\t\t// },\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Unique Client Id\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"UniqueClient.UniqueClientId\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tshow: this.isBackoffice\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"UniqueClient.ClientName\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tshow: this.isBackoffice\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Program\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Program.Description\",\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Account Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Account.AccountName\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Account Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Account.AccountNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\t\t\tRowSelected={index => {\r\n\t\t\t\t\t\t\t\t\t\t\t\tthis.SelectedRowChange(index);\r\n\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nClientAccountSetProgram.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func\r\n};\r\n\r\n\r\nexport default ClientAccountSetProgram;","import { DialogContent, DialogTitle, Slide } from \"@material-ui/core\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport { DeleteIcon, EditIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericTitle, GenericDateInput, GenericDialog, GenericGrid, GenericDialogActions, GenericEmailInput, GenericLabel, GenericNumberInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { MenuCodes } from \"views/Constants/Constant.js\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport moment from \"moment\";\r\nimport { ClientType } from \"views/Constants/Constant.js\";\r\n\r\n\r\nfunction Transition(props) {\r\n\treturn ;\r\n}\r\n\r\nclass CustomerContactList extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.isBackoffice = ClientHelper.IsBackOffice();\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tClientCustomerId: this.props.ClientCustomerId,\r\n\t\t\tIsClientCustomerPayee: this.props.IsClientCustomerPayee,\r\n\t\t\tProgramCode: this.props.ProgramCode,\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tvModel: {},\r\n\t\t\tphoneModel: {},\r\n\t\t\tlist: [],\r\n\t\t\tIsContactPopUpOpen: false,\r\n\t\t\tisPersonal: null,\r\n\t\t\tisLoading: false,\r\n\t\t\tselected: -1,\r\n\t\t\talert: null,\r\n\t\t\tMustBeCountryCanada: false\r\n\t\t};\r\n\r\n\t\tthis.maxLength20 = { maxLength: 20 };\r\n\t\tthis.maxLength30 = { maxLength: 30 };\r\n\t\tthis.maxLength64 = { maxLength: 64 };\r\n\t\tthis.maxLength100 = { maxLength: 100 };\r\n\t\tthis.marginLeft2 = { marginLeft: 2 };\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.parameterClientType = {\r\n\t\t\tParameterCode: \"ClientType\",\r\n\t\t\tParameterValue3: \"D\"\r\n\t\t};\r\n\r\n\t\tthis.parameterLanguage = {\r\n\t\t\tParameterCode: \"Language\"\r\n\t\t};\r\n\r\n\t\tthis.parameterCountry = {};\r\n\t\tthis.parameterProvince = {};\r\n\r\n\t\tthis.sortedOrderIndex = { Member: \"OrderIndex\" };\r\n\t\tthis.sortedParameterDesc = { Member: \"ParameterDesc\" };\r\n\r\n\t\tthis.renderItemPhoneCode = {};\r\n\t\tthis.getappCenterTitle = \"Empty\";\r\n\t\tthis.getappLeftTitle = \"Empty\";\r\n\t\tthis.ColumnsData = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t { this.SelectedRowChange(row.index); }} />\r\n\t\t\t\t\t\t { this.HandleDelete(row.original.Id); }} />\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\twidth: 100\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"UniqueClient.ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Contact Name\",\r\n\t\t\t\taccessor: \"AliasName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Type\",\r\n\t\t\t\taccessor: \"ClientType.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"E-Mail\",\r\n\t\t\t\taccessor: \"Email\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Phone Number\",\r\n\t\t\t\taccessor: \"Phone.PhoneNumber\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\trow.original.Phone && row.original.Phone.PhoneCountryCode &&\r\n\t\t\t\t\t
{\"+\" + row.original.Phone.PhoneCountryCode.Code + \" \" + row.original.Phone.PhoneNumber}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Address Line 1\",\r\n\t\t\t\taccessor: \"Address1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Address Line 2\",\r\n\t\t\t\taccessor: \"Address2\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"City\",\r\n\t\t\t\taccessor: \"City.Name\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Province\",\r\n\t\t\t\taccessor: \"Province.Name\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Postal Code\",\r\n\t\t\t\taccessor: \"ZipCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Country\",\r\n\t\t\t\taccessor: \"Country.Name\"\r\n\t\t\t}\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\r\n\t\tif (setAppLeftTitle) setAppLeftTitle(\"CONTACT LIST\");this.getappLeftTitle = \"CONTACT LIST\";\r\n\t\tif (setAppCenterTitle) setAppCenterTitle(\"BANKING\");this.getappCenterTitle = \"BANKING\";\r\n\t\tthis.FetchCanadaPost();\r\n\t\tthis.GetCanadaCountry();\r\n\t}\r\n\t\r\n\tContactPopUpCallback = () => { this.setState({ IsContactPopUpOpen: !this.state.IsContactPopUpOpen }); }\r\n\r\n\tFetchCanadaPost = () => {\r\n\t\tvar parent = this;\r\n\r\n\t\tProxy.POST(\"/coreapi/v1.0/Parameter/Search\",\r\n\t\t\t{\r\n\t\t\t\tParameterCode: \"CanadaPostApiKey\",\r\n\t\t\t\tParameterValue: \"CP\"\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tconsole.log(\"Canada Post Api key not fetched !\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item == null) {\r\n\t\t\t\t\tconsole.log(\"Canada Post Api key not fetched !\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item[0] == null) {\r\n\t\t\t\t\tconsole.log(\"Canada Post Api key not fetched !\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvar apikey = responseData.Item[0].ParameterDesc;\r\n\t\t\t\tconsole.log(\"KEY CP \", apikey);\r\n\r\n\t\t\t\tvar url = window.CanadaPostAddressCompleteUrl;\r\n\t\t\t\tvar path = url + apikey;\r\n\r\n\t\t\t\tvar pca;\r\n\t\t\t\tvar CanadaPostRequest=this.SubmitCanadaPostRequest;\r\n\t\t\t\tvar CanadaPostSubmit = this.SubmitCanadaPostAddressModel;\r\n\r\n\t\t\t\tconst script = document.createElement(\"script\");\r\n\t\t\t\tscript.src = path;\r\n\t\t\t\tscript.async = false;\r\n\t\t\t\tdocument.head.appendChild(script);\r\n\t\t\t\tscript.onload = function () {\r\n\t\t\t\t\tpca = window.pca;\r\n\t\t\t\t\tif (pca != null) {\r\n\t\t\t\t\t\tvar fields =\r\n\t\t\t\t\t\t\t[\r\n\t\t\t\t\t\t\t\t{ element: \"street-address\", field: \"Line1\", mode: pca.fieldMode.SEARCH },\r\n\t\t\t\t\t\t\t\t{ element: \"street-address2\", field: \"Line2\", mode: pca.fieldMode.POPULATE },\r\n\t\t\t\t\t\t\t\t{ element: \"postcode\", field: \"PostalCode\", mode: pca.fieldMode.SEARCH },\r\n\t\t\t\t\t\t\t],\r\n\t\t\t\t\t\t\toptions = {\r\n\t\t\t\t\t\t\t\tkey: apikey\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\tcontrol = new pca.Address(fields, options);\r\n\t\t\t\t\t\t\tCanadaPostRequest();\r\n\t\t\t\t\t\tcontrol.listen(\"populate\", function (address) {\r\n\t\t\t\t\t\t\tCanadaPostSubmit(address);\r\n\t\t\t\t\t\t\tparent.setState(state => {\r\n\t\t\t\t\t\t\t\tstate.model.Address1 = address.Line1;\r\n\t\t\t\t\t\t\t\tstate.model.Address2 = address.Line2;\r\n\t\t\t\t\t\t\t\tstate.model.ZipCode = address.PostalCode;\r\n\t\t\t\t\t\t\t\treturn state;\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\te => {\r\n\t\t\t\tconsole.log(\"Canada Post Api key not fetched !\");\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tSubmitCanadaPostAddressModel = (model) => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Country/CanadaPost\",\r\n\t\t\tmodel,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tvar address = { ...this.state.model };\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\taddress.CountryId = responseData.Item.CountryId;\r\n\t\t\t\t\taddress.ProvinceId = responseData.Item.ProvinceId;\r\n\t\t\t\t\taddress.CityId = responseData.Item.CityId;\r\n\t\t\t\t} else {\r\n\t\t\t\t\taddress.CountryId = 0;\r\n\t\t\t\t\taddress.ProvinceId = 0;\r\n\t\t\t\t\taddress.CityId = 0;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ model: address });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tSubmitCanadaPostRequest = async () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tvar requestdata = { \r\n\r\n\t\t\tUniqueClientId: null,\r\n\t\t\tMenuCode:this.props.MenuCode,\r\n\t\t\tAppCenterTitle:this.getappCenterTitle,\r\n\t\t\tAppLeftTitle:this.getappLeftTitle\r\n\t\t};\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Reporting/CanadaPostRequestReportInsert\",\r\n\t\t\trequestdata,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (responseData.Item != null ) {\r\n\t\t\t\t\t \r\n\t\t\t\t}\r\n\t\t\t},\r\n \t\t);\r\n\t\t// var result = await this.props.ExecuteApiPost(\"/bankapi/v1.0/Reporting/CanadaPostRequestReportInsert\", requestdata);\r\n\t}\r\n\tHandleChange = (name, value, data) => {\r\n\t\tvar { model, vModel } = this.state;\r\n\r\n\t\tif (name == \"ClientTypeId\") {\r\n\t\t\tif (data.ParameterValue == ClientType.Personal) {\r\n\t\t\t\tthis.setState({ isPersonal: true });\r\n\t\t\t\tdelete model.CompanyName;\r\n\t\t\t\tdelete model.TradeName;\r\n\t\t\t}\r\n\t\t\tif (data.ParameterValue == ClientType.Corporate) {\r\n\t\t\t\tthis.setState({ isPersonal: false });\r\n\t\t\t\tdelete model.FirstName;\r\n\t\t\t\tdelete model.MiddleName;\r\n\t\t\t\tdelete model.LastName;\r\n\t\t\t\tdelete model.BirthDate;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (name == \"Email\")\r\n\t\t\tvModel.Email = !data.IsValid;\r\n\r\n\t\tif (name == \"CountryId\")\r\n\t\t\tvModel.CountryCode = data != null ? data.IsoCode2 : \"\";\r\n\r\n\t\tmodel[name] = value;\r\n\t\tthis.setState({ model, vModel });\r\n\t}\r\n\r\n\tHandleChangePhone = (name, newValue, data) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.phoneModel || {};\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\treturn { phoneModel: model };\r\n\t\t});\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconsole.log(this.state.model)\r\n\t\tProxy.POST(\"/bankapi/v1.0/ClientCustomerPayee/Search\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ list: [] });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t});\r\n\t}\r\n\r\n\tHandleDelete = (Id) => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.GET(\"/bankapi/v1.0/ClientCustomerPayee/Delete/Id?Id=\" + Id,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ model: { ...this.initialModel }, selected: -1 }, this.HandleSearch);\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t});\r\n\t}\r\n\r\n\tHandleSubmit = () => {\r\n\t\tconst { model, phoneModel } = this.state;\r\n\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tvar CheckOld = true;\r\n\t\tif (model.BirthDate)\r\n\t\t\tCheckOld = this.CheckOld();\r\n\r\n\t\tif (CheckOld) {\r\n\t\t\tmodel.Phone = phoneModel;\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tProxy.POST(\"/bankapi/v1.0/ClientCustomerPayee/InsertOrUpdate\",\r\n\t\t\t\tmodel,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.Cancel();\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\t\tthis.setState({ model: { ...this.initialModel }, selected: -1 }, this.HandleSearch);\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t});\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", \"Customer age must be bigger then 18 !\");\r\n\t\t}\r\n\t}\r\n\r\n\tCheckOld = () => {\r\n\t\tvar interval = moment.duration(DateHelper.GetDate() - DateHelper.ToMoment(this.state.model.BirthDate)).asYears();\r\n\t\tif (interval < 18) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\tGetCanadaCountry = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/coreapi/v1.0/Country/GetAll\",\r\n\t\t\tthis.emptyObject,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null && responseData.Item.length > 0) {\r\n\t\t\t\t\tmodel.CountryId = responseData.Item.filter(x => x.Code == \"1\" && x.IsoCode == \"CAN\")[0].Id;\r\n\t\t\t\t\tthis.setState({ model, MustBeCountryCanada: true });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t});\r\n\t}\r\n\r\n\tRenderItemPhoneCode = (d) => {\r\n\t\tthis.renderItemPhoneCode = \"+\" + d.Code + \" (\" + d.Name + \")\";\r\n\t\treturn this.renderItemPhoneCode;\r\n\t}\r\n\r\n\tSelectedRowChange = (index) => {\r\n\t\tvar model = this.state.list[index];\r\n\t\tthis.setState({ selected: index, model, phoneModel: model.Phone });\r\n\r\n\t\tif (model.ClientType.ParameterValue == ClientType.Personal) {\r\n\t\t\tthis.setState({ isPersonal: true });\r\n\t\t\tdelete model.CompanyName;\r\n\t\t\tdelete model.TradeName;\r\n\t\t}\r\n\t\tif (model.ClientType.ParameterValue == ClientType.Corporate) {\r\n\t\t\tthis.setState({ isPersonal: false });\r\n\t\t\tdelete model.FirstName;\r\n\t\t\tdelete model.MiddleName;\r\n\t\t\tdelete model.LastName;\r\n\t\t\tdelete model.BirthDate;\r\n\t\t}\r\n\r\n\t\tthis.setState({IsContactPopUpOpen: true});\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({ isLoading: false, alert: this.setState({ alert: \"\" })} /> });\r\n\t}\r\n\r\n\tShowConfirmMessage(type, title, message, onConfirm, isShowCancel = true) {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: \"\" })} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model, vModel, phoneModel, isPersonal } = this.state;\r\n\t\tvar messages = [];\r\n\r\n\t\tvModel.ClientTypeId = model.ClientTypeId == null;\r\n\t\tif (vModel.ClientTypeId) messages.push(\"Customer Type must be select\");\r\n\r\n\t\tif (model.Email == null || model.Email == \"\") {\r\n\t\t\tvModel.Email = true;\r\n\t\t\tif (vModel.Email) messages.push(\"E-Mail cannot be empty\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (vModel.Email) messages.push(\"E-Mail is invalid\");\r\n\t\t}\r\n\r\n\t\tif (isPersonal) {\r\n\t\t\tvModel.FirstName = (model.FirstName == null || model.FirstName == \"\");\r\n\t\t\tif (vModel.FirstName) messages.push(\"First Name cannot be empty\");\r\n\r\n\t\t\tvModel.LastName = (model.LastName == null || model.LastName == \"\");\r\n\t\t\tif (vModel.LastName) messages.push(\"Last Name cannot be empty\");\r\n\t\t} else {\r\n\t\t\tvModel.CompanyName = (model.CompanyName == null || model.CompanyName == \"\");\r\n\t\t\tif (vModel.CompanyName) messages.push(\"Company Name cannot be empty\");\r\n\r\n\t\t\tvModel.TradeName = (model.TradeName == null || model.TradeName == \"\");\r\n\t\t\tif (model.TradeName == null || model.TradeName == \"\") messages.push(\"Legal Name cannot be empty\");\r\n\t\t}\r\n\r\n\t\tif (phoneModel.PhoneNumber) {\r\n\t\t\tvModel.PhoneNumber = (phoneModel.PhoneNumber.toString().length != 10);\r\n\t\t\tif (vModel.PhoneNumber) messages.push(\"Phone Number must be 10 Digits !.\");\r\n\t\t}\r\n\r\n\t\tvModel.CountryId = model.CountryId == null;\r\n\t\tif (vModel.CountryId) messages.push(\"Address Country cannot be empty.\");\r\n\r\n\t\t// vModel.ProvinceId = model.ProvinceId == null;\r\n\t\t// if (vModel.ProvinceId) messages.push(\"Province must be select\");\r\n\r\n\t\t// vModel.CityId = model.CityId == null;\r\n\t\t// if (vModel.CityId) messages.push(\"City must be select\");\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tGetCountryParameter = () => {\r\n\t\tthis.parameterCountry.CountryId = this.state.model.CountryId\r\n\t\treturn this.parameterCountry;\r\n\t}\r\n\r\n\tGetProvinceParameter = () => {\r\n\t\tthis.parameterProvince.ProvinceId = this.state.model.ProvinceId\r\n\t\treturn this.parameterProvince;\r\n\t}\r\n\r\n\tCancel = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tselected: -1,\r\n\t\t\tIsContactPopUpOpen: false\r\n\t\t});\r\n\t};\r\n\r\n\thideAlert = () => { this.setState({ alert: null, isLoading: false }); }\r\n\r\n\trender() {\r\n\t\tconst { ReadOnly } = this.props;\r\n\t\tconst { alert, model, vModel, phoneModel, list, isLoading, isPersonal, IsContactPopUpOpen, MustBeCountryCanada } = this.state;\r\n\t\tlet IsCallCenter = this.props.MenuCode === MenuCodes.ClientAccountActivities;\r\n\r\n\t\treturn (\r\n\t\t\t<>\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t this.HandleSearch(), Disabled: false }\r\n\t\t\t\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{(IsCallCenter || this.isBackoffice) &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.UniqueClientId}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tCanClear />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t `${d.AliasName}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.AliasName || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.AliasName}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCanClear />\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\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\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCustomerContactList.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(CustomerContactList, {});","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { DetailIcon } from \"core/Icons\";\r\nimport moment from \"moment\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport {\r\n GenericAlert,\r\n GenericCheckInput,\r\n GenericDateInput,\r\n GenericDialog,\r\n GenericDialogActions,\r\n GenericExpansionPanel,\r\n GenericGrid,\r\n GenericNumberInput,\r\n GenericSelectInput,\r\n GenericTextInput,\r\n GenericTitle,\r\n} from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton.jsx\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport {\r\n ActionCodes,\r\n BankingAccountTypes,\r\n ClientType,\r\n GridColumnType,\r\n MenuCodes,\r\n ProgramCodes,\r\n TransactionType,\r\n} from \"views/Constants/Constant.js\";\r\n\r\nclass CustomerAcvitiviteAccounts extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n\r\n this.isBackoffice = ClientHelper.IsBackOffice();\r\n let IsCallCenter =\r\n this.props.MenuCode === MenuCodes.ClientAccountActivities;\r\n let IsSettlement = this.props.MenuCode == MenuCodes.Backoffice_Accounts;\r\n this.state = {\r\n model: {},\r\n checkedAccounts: [],\r\n customerAccountList: [],\r\n vModel: {},\r\n searchModel: {\r\n IsRequiredDate: false,\r\n IsRequiredStatementPeriod: false,\r\n IsInvalidStatementPeriod: false,\r\n IsInvalidFromDate: false,\r\n IsInvalidToDate: false,\r\n },\r\n customerTransactions: [],\r\n IsTxnDetailOpen: false,\r\n TxnDetail: {},\r\n isLoading: false,\r\n ClientTypeParameter: {},\r\n hasChanged: false,\r\n kModel: {},\r\n };\r\n this.sortName = { Member: \"Name\" };\r\n this.sortListName = [{ id: \"CustomerName\" }];\r\n this.emptyObject = {};\r\n this.columns = [\r\n {\r\n width: 100,\r\n Header: \"Actions\",\r\n accessor: \"ED\",\r\n Cell: (d) => (\r\n \r\n this.setState({ IsTxnDetailOpen: true, TxnDetail: d.original })\r\n }\r\n />\r\n ),\r\n sortable: false,\r\n filterable: false,\r\n show: !IsCallCenter,\r\n },\r\n {\r\n Header: \"Transaction Date\",\r\n accessor: \"TransactionDate\",\r\n type: GridColumnType.DateTimeUtc,\r\n style: this.RenderStyle(),\r\n },\r\n\t\t{\r\n\t\t\tHeader: \"Settlement Date\",\r\n\t\t\taccessor: \"SettlementDate\",\r\n\t\t\ttype: GridColumnType.DateTimeUtc,\r\n\t\t\tstyle: this.RenderStyle(),\r\n\t\t },\r\n {\r\n Header: \"Merchant\",\r\n accessor: \"F43Name\",\r\n Cell: (row) =>

{row.value}

,\r\n },\r\n {\r\n Header: \"Settlement Status\",\r\n accessor: \"SettlementStatus\",\r\n Cell: (row) =>

{row.value}

,\r\n },\r\n {\r\n Header: \"Running Balance\",\r\n accessor: \"WalletBalance\",\r\n type: GridColumnType.Money,\r\n style: this.RenderStyle(),\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Client\",\r\n accessor: \"UniqueClientName\",\r\n width: 120,\r\n Cell: (row) => (\r\n \r\n {row.value ?? \" - \"}\r\n \r\n ),\r\n show: IsSettlement,\r\n },\r\n {\r\n Header: \"Channel Name\",\r\n accessor: \"ChannelType\",\r\n Cell: (row) => (\r\n \r\n {\" \"}\r\n {row.value}\r\n

\r\n ),\r\n },\r\n {\r\n Header: \"Received / Sent\",\r\n accessor: \"TransactionType\",\r\n Cell: (row) => (\r\n \r\n {row.value}\r\n

\r\n ),\r\n },\r\n {\r\n Header: \"Amount\",\r\n accessor: \"Amount\",\r\n type: GridColumnType.Money,\r\n style: this.RenderStyle(),\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Currency\",\r\n accessor: \"SourceCurrencyCode\",\r\n Cell: (row) => (\r\n \r\n {row.value}\r\n \r\n ),\r\n },\r\n {\r\n Header: \"From Account Number\",\r\n accessor: \"SourceAccountNumber\",\r\n Cell: (row) => (\r\n \r\n {row.value ?? \" - \"}\r\n \r\n ),\r\n },\r\n {\r\n width: 180,\r\n Header: \"From Account\",\r\n accessor: \"SourceAccountName\",\r\n Cell: (row) => (\r\n \r\n {row.value}\r\n \r\n ),\r\n },\r\n\r\n {\r\n width: 180,\r\n Header: \"To Account\",\r\n accessor: \"DestinationAccountName\",\r\n Cell: (row) => (\r\n \r\n {row.value}\r\n \r\n ),\r\n },\r\n {\r\n Header: \"To Account Number\",\r\n accessor: \"DestinationAccountNumber\",\r\n Cell: (row) => (\r\n \r\n {row.value ?? \" - \"}\r\n \r\n ),\r\n },\r\n {\r\n Header: \"Destination Account Owner Name\",\r\n accessor: \"DestinationCustomerName\",\r\n Cell: (row) => (\r\n \r\n {row.value ?? \" - \"}\r\n \r\n ),\r\n },\r\n {\r\n Header: \"Reference Number\",\r\n accessor: \"ReferenceNumber\",\r\n Cell: (row) => (\r\n \r\n {\" \"}\r\n {row.value}\r\n

\r\n ),\r\n },\r\n {\r\n width: 350,\r\n Header: \"Description\",\r\n accessor: \"SummaryDescription\",\r\n Cell: (row) => (\r\n \r\n {\" \"}\r\n {row.value}\r\n

\r\n ),\r\n },\r\n ];\r\n }\r\n\r\n componentDidMount() {\r\n this.props.setAppCenterTitle(\"CUSTOMER SYSTEM\");\r\n this.props.setAppLeftTitle(\"Customer Account Activities\");\r\n this.ProgramCode = ProgramCodes.Prepaid;\r\n this.state.searchModel.ProgramCode = ProgramCodes.Prepaid;\r\n //this.setState({ loadingCompleted: true });\r\n this.GetClientType();\r\n }\r\n TrxFunc = (data) => {\r\n if (data == null) {\r\n return \"\";\r\n }\r\n if (data.ParameterValue == TransactionType.Debit) {\r\n return \"Received\";\r\n }\r\n if (data.ParameterValue == TransactionType.Credit) {\r\n return \"Sent\";\r\n }\r\n return \"\";\r\n };\r\n RenderAccountTypeParameter = (data) => {\r\n const parameter = { ...this.state.ClientTypeParameter };\r\n if (data == null) {\r\n return \"\";\r\n }\r\n if (data.AccountCode == null || data.AccountCode == \"\") {\r\n return data.AccountType;\r\n }\r\n if (data.AccountCode != BankingAccountTypes.PrimaryAccount) {\r\n return data.AccountType;\r\n }\r\n if (data.ProgramCode == null || data.ProgramCode == \"\") {\r\n return data.AccountType;\r\n }\r\n if (data.ProgramCode != ProgramCodes.Bank_Programs_Bank_Account) {\r\n return data.AccountType;\r\n }\r\n\r\n if (\r\n parameter.ParameterValue == ClientType.Corporate ||\r\n parameter.ParameterValue == ClientType.SalesAgentCorporate\r\n ) {\r\n return \"Corporate Account\";\r\n } else if (\r\n parameter.ParameterValue == ClientType.Personal ||\r\n parameter.ParameterValue == ClientType.SalesAgentPersonal\r\n ) {\r\n return \"Individual Account\";\r\n } else {\r\n return data.AccountType;\r\n }\r\n };\r\n GetClientType = () => {\r\n this.setState({ isLoading: true });\r\n Proxy.POST(\r\n \"/bankapi/v1.0/BankCustomer/GetClientType\",\r\n {},\r\n (responseData) => {\r\n if (!responseData.IsSucceeded) {\r\n this.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n return;\r\n }\r\n this.setState({\r\n ClientTypeParameter: responseData.Item,\r\n isLoading: false,\r\n });\r\n },\r\n (error) => {\r\n this.setState({ isLoading: false });\r\n this.ShowMessage(\"error\", \"Error\", error);\r\n }\r\n );\r\n };\r\n handleChangeSearchModel = (name, newValue) => {\r\n this.setState(function (state, props) {\r\n var model = state.searchModel || {};\r\n\r\n model[name] = newValue;\r\n if (name == \"CheckAllAccounts\" && newValue == true) {\r\n const list = this.state.customerAccountList;\r\n this.setState({ checkedAccounts: list });\r\n } else if (name == \"CheckAllAccounts\" && newValue == false) {\r\n this.setState({ checkedAccounts: [] });\r\n }\r\n if (name == \"ClientCustomerId\") {\r\n this.setState({ checkedAccounts: [] });\r\n }\r\n\r\n if (\r\n name == \"ClientCustomerId\" &&\r\n newValue !== undefined &&\r\n newValue != null\r\n ) {\r\n this.GetCustomerBankAccounts(true);\r\n this.setState({\r\n customerTransactions: [],\r\n customerAccountList: [],\r\n checkedAccounts: [],\r\n });\r\n } else if (\r\n name == \"ClientCustomerId\" &&\r\n (newValue == undefined || newValue == null)\r\n ) {\r\n this.setState({\r\n customerTransactions: [],\r\n checkedAccounts: [],\r\n customerAccountList: [],\r\n });\r\n }\r\n\r\n // if (name == \"ReferenceNumber\") {\r\n\r\n // \tlet isUniqueDataSearch = newValue?.length > 0;\r\n // \tmodel.IsUniqueDataSearch = isUniqueDataSearch;\r\n\r\n // \tmodel.IsRequiredStatementPeriod = !isUniqueDataSearch;\r\n // \tmodel.IsRequiredDate = !isUniqueDataSearch;\r\n // \tmodel.IsRequiredUniqueClientId = !isUniqueDataSearch;\r\n // }\r\n\r\n if (name == \"StatementPeriod\" || name == \"ToDate\" || name == \"FromDate\") {\r\n if (\r\n model.StatementPeriod == undefined ||\r\n model.StatementPeriod == null ||\r\n model.StatementPeriod == \"\"\r\n ) {\r\n model.StatementControl = false;\r\n model.IsRequiredStatementPeriod = !model.IsUniqueDataSearch;\r\n model.IsRequiredDate = !model.IsUniqueDataSearch;\r\n\r\n this.setState({ searchModel: model });\r\n\r\n if (\r\n (model.ToDate == undefined ||\r\n model.ToDate == \"\" ||\r\n model.ToDate == null) &&\r\n (model.FromDate == undefined ||\r\n model.FromDate == \"\" ||\r\n model.FromDate == null)\r\n ) {\r\n model.IsInvalidFromDate = false;\r\n model.IsInvalidToDate = false;\r\n\r\n model.DateControl = false;\r\n this.setState({ searchModel: model });\r\n } else {\r\n model.StatementControl = true;\r\n model.DateControl = false;\r\n model.IsRequiredStatementPeriod = false;\r\n }\r\n } else {\r\n model.DateControl = true;\r\n model.IsInvalidFromDate = false;\r\n model.IsInvalidToDate = false;\r\n model.IsRequiredDate = false;\r\n this.setState({ searchModel: model });\r\n }\r\n }\r\n return { searchModel: model };\r\n });\r\n };\r\n HandleCheckCustomerAccounts = (e, x) => {\r\n const { checkedAccounts } = this.state;\r\n var temp = true;\r\n\r\n const items = checkedAccounts.map((item, key) => {\r\n if (item.Id == x.Id) {\r\n checkedAccounts.splice(key, 1);\r\n temp = false;\r\n }\r\n });\r\n\r\n if (checkedAccounts.length == 0 && temp) {\r\n checkedAccounts.push(x);\r\n } else if (temp) {\r\n checkedAccounts.push(x);\r\n }\r\n\r\n this.setState({ checkedAccounts });\r\n };\r\n\r\n IsValid = () => {\r\n var temp = { ...this.state.searchModel };\r\n var kModel = { ...this.state.kModel };\r\n\r\n if (\r\n (!temp.IsUniqueDataSearch && temp.ClientCustomerId == null) ||\r\n temp.ClientCustomerId == 0\r\n ) {\r\n this.ShowMessage(\"error\", \"Error\", \"Customer Name must be selected!\");\r\n kModel.ClientCustomerId = true;\r\n this.setState({ kModel });\r\n return false;\r\n } else {\r\n kModel.ClientCustomerId = false;\r\n }\r\n this.setState({ kModel });\r\n\r\n // if (\r\n // !temp.IsUniqueDataSearch &&\r\n // (temp.StatementPeriod == undefined ||\r\n // temp.StatementPeriod == null ||\r\n // temp.StatementPeriod == \"\") &&\r\n // (temp.FromDate == null ||\r\n // temp.FromDate == undefined ||\r\n // temp.FromDate == \"\") &&\r\n // (temp.ToDate == null || temp.ToDate == undefined || temp.ToDate == \"\")\r\n // ) {\r\n // this.props.showMessage(\r\n // \"warning\",\r\n // \"Please fill required fields!\",\r\n // \"Please select Statement Period or Date Interval\"\r\n // );\r\n // temp.IsRequiredDate = true;\r\n // temp.IsRequiredStatementPeriod = true;\r\n // this.setState({ searchModel: temp });\r\n // return false;\r\n // } else {\r\n if (temp.StatementPeriod != null && temp.StatementPeriod != \"\") {\r\n temp.DateControl = true;\r\n temp.IsRequiredDate = false;\r\n temp.IsRequiredStatementPeriod = false;\r\n temp.IsRequiredDate = false;\r\n\r\n this.setState({ searchModel: temp });\r\n } else {\r\n if (\r\n !temp.IsUniqueDataSearch &&\r\n typeof temp.FromDate != \"object\" &&\r\n temp.FromDate != \"\" &&\r\n temp.FromDate != null\r\n ) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"From Date is invalid\"\r\n );\r\n temp.IsRequiredDate = true;\r\n temp.IsRequiredStatementPeriod = false;\r\n temp.IsInvalidFromDate = true;\r\n this.setState({ searchModel: temp });\r\n return false;\r\n }\r\n if (\r\n !temp.IsUniqueDataSearch &&\r\n typeof temp.ToDate != \"object\" &&\r\n temp.ToDate != \"\" &&\r\n temp.ToDate != null\r\n ) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"To Date is invalid\"\r\n );\r\n temp.IsRequiredDate = true;\r\n temp.IsRequiredStatementPeriod = false;\r\n temp.IsInvalidToDate = true;\r\n this.setState({ searchModel: temp });\r\n return false;\r\n }\r\n // else if (\r\n // (!temp.IsUniqueDataSearch && temp.ToDate == undefined) ||\r\n // temp.ToDate == \"\"\r\n // ) {\r\n // this.props.showMessage(\r\n // \"warning\",\r\n // \"Please fill required fields!\",\r\n // \"To Date must be defined \"\r\n // );\r\n // temp.IsRequiredDate = true;\r\n // temp.IsRequiredStatementPeriod = false;\r\n // temp.IsInvalidToDate = true;\r\n // this.setState({ searchModel: temp });\r\n // return false;\r\n // }\r\n // else if (\r\n // (!temp.IsUniqueDataSearch && temp.FromDate == undefined) ||\r\n // temp.FromDate == \"\"\r\n // ) {\r\n // this.props.showMessage(\r\n // \"warning\",\r\n // \"Please fill required fields!\",\r\n // \"From Date must be defined \"\r\n // );\r\n // temp.IsRequiredDate = true;\r\n // temp.IsRequiredStatementPeriod = false;\r\n // temp.IsInvalidFromDate = true;\r\n // this.setState({ searchModel: temp });\r\n // return false;\r\n // }\r\n if (\r\n !temp.IsUniqueDataSearch &&\r\n typeof temp.FromDate == \"object\" &&\r\n typeof temp.ToDate == \"object\" &&\r\n temp.ToDate < temp.FromDate\r\n ) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"From Date cannot be bigger than To Date\"\r\n );\r\n return false;\r\n }\r\n\r\n if (\r\n !temp.IsUniqueDataSearch &&\r\n typeof temp.FromDate == \"object\" &&\r\n typeof temp.ToDate == \"object\"\r\n ) {\r\n var interval = moment\r\n .duration(temp.ToDate.diff(temp.FromDate))\r\n .asDays();\r\n if (interval > 30) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"Between two dates cannot be longer than 30 days!\"\r\n );\r\n return false;\r\n }\r\n }\r\n temp.IsRequiredStatementPeriod = !temp.IsUniqueDataSearch;\r\n temp.IsRequiredDate = !temp.IsUniqueDataSearch;\r\n temp.IsInvalidFromDate = false;\r\n temp.IsInvalidToDate = false;\r\n temp.StatementControl = true;\r\n this.setState({ searchModel: temp });\r\n }\r\n // }\r\n\r\n return true;\r\n };\r\n\r\n PerformSearch = () => {\r\n if (!this.IsValid()) return;\r\n\r\n this.BankAccountTransactions();\r\n };\r\n\r\n GetCustomerBankAccounts = (status) => {\r\n const req = { ...this.state.searchModel };\r\n\r\n if (status == undefined) {\r\n if (this.IsValid() == false) return;\r\n } else if (status == false && this.IsValid() == false) {\r\n return;\r\n }\r\n this.setState({ isLoading: true, req });\r\n\r\n Proxy.POST(\r\n \"/bankapi/v1.0/Account/CustomerAccountsActivitiesForBankingPortal\",\r\n req,\r\n (responseData) => {\r\n if (!responseData.IsSucceeded) {\r\n this.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n return;\r\n }\r\n if (!responseData.IsSucceeded) {\r\n this.ShowMessage(\"error\", \"Error !\", responseData.ErrorDescription);\r\n return;\r\n } else {\r\n this.setState({ customerAccountList: responseData.Item || [] });\r\n }\r\n this.setState({ isLoading: false });\r\n },\r\n (error) => {\r\n this.setState({ isLoading: false });\r\n this.ShowMessage(\"error\", \"Error\", error);\r\n }\r\n );\r\n };\r\n\r\n BankAccountTransactions = () => {\r\n const temp = { ...this.state.searchModel };\r\n const model = { ...this.state.model };\r\n var ids = [];\r\n this.state.checkedAccounts.forEach((element) => {\r\n ids.push(element.Id);\r\n });\r\n temp.AccountIds = ids;\r\n this.setState({ isLoading: true, customerTransactions: [], temp });\r\n Proxy.POST(\r\n \"/bankapi/v1.0/Transaction/SearchCustomerActivitiesAccountTransaction\",\r\n temp,\r\n (responseData) => {\r\n if (!responseData.IsSucceeded) {\r\n this.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n return;\r\n }\r\n if (!responseData.IsSucceeded) {\r\n this.ShowMessage(\"error\", \"Error !\", responseData.ErrorDescription);\r\n return;\r\n } else {\r\n if (responseData.Item != null) {\r\n this.setState({\r\n customerTransactions: responseData.Item || [],\r\n });\r\n }\r\n }\r\n this.setState({ isLoading: false });\r\n },\r\n (error) => {\r\n this.setState({ isLoading: false });\r\n this.ShowMessage(\"error\", \"Error\", error);\r\n }\r\n );\r\n };\r\n\r\n SendToWorkflow = (id) => {\r\n var data = { Id: id };\r\n var jsonData = JSON.stringify(data);\r\n\r\n var requestData = {\r\n MenuCode: MenuCodes.CloseAccount,\r\n ActionCode: ActionCodes.Submit,\r\n JsonData: jsonData,\r\n RowId: id,\r\n };\r\n\r\n this.setState({ isLoading: true });\r\n Proxy.POST(\r\n \"/coreapi/v1.0/WorkflowData/InsertWorkflowData\",\r\n requestData,\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n\r\n if (!responseData.IsSucceeded) {\r\n this.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n return;\r\n }\r\n this.ShowMessage(\r\n \"success\",\r\n \"Success\",\r\n \"Request successfully sent for approval\"\r\n );\r\n },\r\n (errorMessage) => {\r\n this.setState({ isLoading: false });\r\n this.ShowMessage(\r\n \"error\",\r\n \"Error\",\r\n \"An error occurred while sending approve request \" + errorMessage\r\n );\r\n }\r\n );\r\n };\r\n\r\n ShowMessage = (type, title, message) => {\r\n this.setState({\r\n alert: (\r\n this.hideAlert()}\r\n />\r\n ),\r\n });\r\n this.setState({ isLoading: false });\r\n };\r\n ShowConfirmMessage = (type, title, message, onConfirm) => {\r\n this.setState({\r\n alert: (\r\n this.hideAlert()}\r\n OnConfirm={onConfirm}\r\n />\r\n ),\r\n });\r\n };\r\n hideAlert = () => {\r\n this.setState({\r\n alert: null,\r\n isLoading: false,\r\n });\r\n };\r\n ClearData = () => {\r\n let searchModel = {\r\n IsRequiredStatementPeriod: true,\r\n IsRequiredDate: true,\r\n IsRequiredUniqueClientId: true,\r\n UniqueClientId: this.isBackoffice\r\n ? null\r\n : this.state.searchModel.UniqueClientId,\r\n };\r\n\r\n let model = {};\r\n this.setState({\r\n alert: null,\r\n isLoading: false,\r\n checkedAccounts: [],\r\n customerAccountList: [],\r\n searchModel,\r\n model,\r\n customerTransactions: [],\r\n IsTxnDetailOpen: false,\r\n TxnDetail: {},\r\n });\r\n };\r\n handleChangeFilterPanel = (panel) => (event, expanded) => {\r\n this.setState({\r\n active: expanded ? panel : -1,\r\n });\r\n };\r\n\r\n RenderStyle = () => {\r\n return {\r\n column: \"TransactionType\",\r\n condition: \"Received\",\r\n style: { fontWeight: \"600\" },\r\n prefix: [\"+\", \"\"],\r\n };\r\n };\r\n\r\n ExcelDownload = () => {\r\n if (!this.IsValid()) return;\r\n\r\n this.setState({ isLoading: true });\r\n const temp = { ...this.state.searchModel };\r\n var ids = [];\r\n this.state.checkedAccounts.forEach((element) => {\r\n ids.push(element.Id);\r\n });\r\n temp.AccountIds = ids;\r\n\r\n var keyValueObject = {};\r\n var keyvalueList = [];\r\n this.columns.forEach(function (gridColumnElement) {\r\n if (\r\n gridColumnElement.accessor != \"ED\" &&\r\n (gridColumnElement.show == undefined || gridColumnElement.show)\r\n ) {\r\n keyValueObject[gridColumnElement.accessor] = {\r\n value: gridColumnElement.accessor,\r\n title: gridColumnElement.Header,\r\n columntype: gridColumnElement.ColumnType,\r\n type: gridColumnElement.type,\r\n };\r\n }\r\n }, this);\r\n keyvalueList.push(keyValueObject);\r\n\r\n temp.jsonFile = {\r\n colmns: keyvalueList,\r\n format: \"PDF\",\r\n title: \"Customer Account Activities Report\",\r\n };\r\n\r\n Proxy.DownloadGeneratedFile(\r\n \"/bankapi/v1.0/Transaction/ExcelDownloadCustomerActivities\",\r\n temp,\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n if (!responseData.IsSucceeded) {\r\n this.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n return;\r\n }\r\n },\r\n (errorMessage) => {\r\n this.setState({ isLoading: false });\r\n this.ShowMessage(\"error\", \"Error\", errorMessage);\r\n },\r\n this.props.showMessage\r\n );\r\n };\r\n\r\n RenderItemClientCustomer = (d) => {\r\n return `${d.Name}`;\r\n };\r\n\r\n render() {\r\n const { Disabled } = this.props;\r\n var IsClient = ClientHelper.IsClient();\r\n const {\r\n customerAccountList,\r\n checkedAccounts,\r\n searchModel,\r\n customerTransactions,\r\n TxnDetail,\r\n IsTxnDetailOpen,\r\n alert,\r\n kModel,\r\n vModel,\r\n model,\r\n } = this.state;\r\n var endDate =\r\n searchModel.FromDate instanceof moment\r\n ? searchModel.FromDate.clone()\r\n : \"\";\r\n\r\n var GridDataAccounts =\r\n customerAccountList == null\r\n ? []\r\n : customerAccountList.map((d) => {\r\n return {\r\n AP: (\r\n
\r\n c.Id == d.Id).length > 0\r\n }\r\n ValueChanged={(e) => {\r\n this.HandleCheckCustomerAccounts(e, d);\r\n }}\r\n />\r\n
\r\n ),\r\n Id: d.Id,\r\n ProgramId: d.ProgramId,\r\n CustomerBankAccountId: d.CustomerBankAccountId,\r\n AccountShortName: d.AccountShortName,\r\n BankAccountId: d.BankAccountId,\r\n UniqueClientId: d.UniqueClientId,\r\n Balance: d.Balance,\r\n AccountName: d.AccountName,\r\n PendingBalance: d.PendingBalance,\r\n AccountNumber: d.AccountNumber,\r\n AccountNumberStr: d.AccountNumberStr,\r\n BranchNumber: d.BranchNumber,\r\n BankNumber: d.BankNumber,\r\n AccountTypeId: d.AccountTypeId,\r\n AccountType: d.AccountType,\r\n AccountType4: d.AccountType4,\r\n AccountType6: d.AccountType6,\r\n AccountCode: d.AccountCode,\r\n ProgramCode: d.ProgramCode,\r\n ProgramName: d.ProgramName,\r\n CurrencyCode: d.CurrencyCode,\r\n CurrencyDesc: d.CurrencyDesc,\r\n CurrencySymbol: d.CurrencySymbol,\r\n AmountDisplay: d.AmountDisplay,\r\n CustomerName: d.CustomerName,\r\n CustomerNumber: d.CustomerNumber,\r\n };\r\n });\r\n return (\r\n
\r\n \r\n {alert}\r\n \r\n \r\n {\r\n this.PerformSearch();\r\n this.GetCustomerBankAccounts();\r\n },\r\n Disabled: Disabled,\r\n },\r\n {\r\n Code: \"Export\",\r\n OnClick: this.ExcelDownload,\r\n Disabled: Disabled,\r\n },\r\n ]}\r\n menuId={this.props.menuId}\r\n ApprovalData={this.props.ApprovalData}\r\n After={this.props.After}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n

\r\n
\r\n \r\n \r\n \r\n \r\n \r\n `${d.UniqueClientId} - ${d.Name}`}\r\n Value={searchModel.UniqueClientId || \"\"}\r\n ValueChanged={this.handleChangeSearchModel}\r\n CanClear\r\n All\r\n Required\r\n IsInvalid={searchModel.UniqueClientId}\r\n Disabled={IsClient}\r\n DefaultIndex={IsClient ? 0 : -1}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n ),\r\n },\r\n {\r\n Header: \"Customer Name\",\r\n accessor: \"CustomerName\",\r\n },\r\n {\r\n Header: \"Customer Number\",\r\n accessor: \"CustomerNumber\",\r\n },\r\n {\r\n Header: \"Account Name\",\r\n accessor: \"AccountName\",\r\n Footer: (\r\n \r\n All Accounts{\" \"}\r\n \r\n ),\r\n },\r\n {\r\n Header: \"Account Type\",\r\n accessor: \"AccountType\",\r\n Cell: (row) => (\r\n
\r\n {this.RenderAccountTypeParameter(row.original)}{\" \"}\r\n
\r\n ),\r\n Footer: (\r\n \r\n \r\n Total{\" \"}{\" \"}\r\n {customerAccountList == null\r\n ? 0\r\n : customerAccountList.length}\r\n {\" \"}\r\n \r\n ),\r\n },\r\n {\r\n Header: \"Program Name\",\r\n accessor: \"ProgramName\",\r\n },\r\n {\r\n Header: \"Account Number\",\r\n accessor: \"AccountNumber\",\r\n },\r\n {\r\n Header: \"Currency\",\r\n accessor: \"CurrencyCode\",\r\n },\r\n {\r\n Header: \"Balance\",\r\n accessor: \"Balance\",\r\n Cell: (row) => (\r\n
\r\n {Formatter.FormatMoneySpecial(\r\n row.original.CurrencySymbol,\r\n row.value\r\n )}\r\n
\r\n ),\r\n // Footer: (\r\n // \t\r\n // \t\t\r\n // \t\t\t{Formatter.FormatMoney(customerAccountList.TotalAccountBalance)}\r\n // \t\t\r\n // \t\r\n // )\r\n },\r\n\r\n {\r\n Header: \"Pending Balance\",\r\n accessor: \"PendingBalance\",\r\n Cell: (row) => (\r\n
\r\n {Formatter.FormatMoneySpecial(\r\n row.original.CurrencySymbol,\r\n row.value\r\n )}\r\n
\r\n ),\r\n // Footer: (\r\n // \t\r\n // \t\t{Formatter.FormatMoney(customerAccountList.TotalAccountBalance)}\r\n // \t\r\n // )\r\n },\r\n ]}\r\n ProgramCode={ProgramCodes.Bank_Programs_Bank_Account}\r\n />\r\n
\r\n
\r\n
\r\n
\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n Transaction Details\r\n \r\n

\r\n {\" \"}\r\n Reference Number: {TxnDetail.ReferenceNumber}{\" \"}\r\n

\r\n

\r\n {\" \"}\r\n Transaction Date:{\" \"}\r\n \r\n {Formatter.FormatDateUtc(TxnDetail.TransactionDate)}\r\n {\" \"}\r\n

\r\n

\r\n {\" \"}\r\n Transaction Amount:\r\n \r\n {\" \"}\r\n {Formatter.FormatMoneySpecial(\r\n TxnDetail.CurrencySymbol,\r\n TxnDetail.Amount\r\n )}\r\n {\" \"}\r\n

\r\n

\r\n {\" \"}\r\n Description: {TxnDetail.Description}{\" \"}\r\n

\r\n

\r\n {\" \"}\r\n Transaction Type:{\" \"}\r\n \r\n {TxnDetail.EtransferType == null\r\n ? TxnDetail.TransactionType\r\n : TxnDetail.EtransferType}\r\n {\" \"}\r\n

\r\n

\r\n {\" \"}\r\n From Account Name: {TxnDetail.SourceAccountName}{\" \"}\r\n

\r\n

\r\n {\" \"}\r\n From Account Number: \r\n {TxnDetail.SourceAccountNumber}\r\n {\" \"}\r\n

\r\n

\r\n {\" \"}\r\n To Account Name: \r\n {TxnDetail.DestinationAccountName}\r\n {\" \"}\r\n

\r\n

\r\n {\" \"}\r\n To Account Number: \r\n {TxnDetail.DestinationAccountNumber}\r\n {\" \"}\r\n

\r\n {/* {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t } */}\r\n
\r\n \r\n this.setState({ IsTxnDetailOpen: false })}\r\n >\r\n Close\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n );\r\n }\r\n}\r\n\r\nCustomerAcvitiviteAccounts.propTypes = {\r\n classes: PropTypes.object,\r\n setAppLeftTitle: PropTypes.func,\r\n setAppCenterTitle: PropTypes.func,\r\n};\r\n\r\nexport default CustomerAcvitiviteAccounts;\r\n","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { DownloadIcon, UploadIcon } from \"core/Icons\";\r\nimport PropTypes, { array, bool, func, number } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent.jsx\";\r\nimport { DefaultBankInformation, GridColumnType, Portals, ProgramCodes } from \"views/Constants/Constant\";\r\nimport DDTListStyle from \"./../../../assets/jss/material-dashboard-pro-react/views/DDTListStyle.jsx\";\r\nimport ToolBar from \"./../../Components/DynamicToolbar.jsx\";\r\n\r\nclass DdtMoneyTransfer extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {};\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tUniqueClientId: \"\"\r\n\t\t\t},\r\n\r\n\t\t\ttoolBarModel: {},\r\n\t\t\tDdtTotalInfo: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tpoolModel: {},\r\n\t\t\tisBackOffice: false,\r\n\t\t\topenDepositDialog: false,\r\n\t\t\topenWithDrawalDialog: false,\r\n\t\t\tddtModel: {\r\n\t\t\t\tId: 0,\r\n\t\t\t\tName: \"\",\r\n\t\t\t\tEmail: \"\",\r\n\t\t\t\tPhone: {\r\n\t\t\t\t\tId: 0,\r\n\t\t\t\t\tPhoneCountryCodeId: 0,\r\n\t\t\t\t\tPhoneNumber: \"\"\r\n\t\t\t\t},\r\n\t\t\t},\r\n\t\t\tdepositModel: {\r\n\t\t\t\tDDTId: 0,\r\n\t\t\t\tDescription: \"\"\r\n\t\t\t},\r\n\t\t\twithDrawalModel: {\r\n\t\t\t\tDDTId: 0,\r\n\t\t\t\tDescription: \"\"\r\n\t\t\t}\r\n\t\t};\r\n\t\tthis.handleChange = this.handleChange.bind(this);\r\n\t\tthis.GetAllData = this.GetAllData.bind(this);\r\n\t\tthis.errorCallback = this.errorCallback.bind(this);\r\n\t\tthis.hideAlert = this.hideAlert.bind(this);\r\n\t\tthis.showErrorMessage = this.showErrorMessage.bind(this);\r\n\t\tthis.successCallback = this.successCallback.bind(this);\r\n\t\tthis.trxTable = React.createRef();\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"AC\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t this.openDepositModal(row.original)} />\r\n\t\t\t\t\t\t this.openWithDrawalModal(row.original)} />\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\twidth: 70\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Number\",\r\n\t\t\t\taccessor: \"CustomerNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transit Number\",\r\n\t\t\t\taccessor: \"TransitNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"DDT Number\",\r\n\t\t\t\taccessor: \"DDTNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Issued Date\",\r\n\t\t\t\taccessor: \"IssuedDate\",\r\n\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"ExpireDate\",\r\n\t\t\t\taccessor: \"ExpireDate\",\r\n\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Status\",\r\n\t\t\t\taccessor: \"Status\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Balance\",\r\n\t\t\t\taccessor: \"Balance\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Name\",\r\n\t\t\t\taccessor: \"Name\"\r\n\t\t\t}\r\n\t\t\t,\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Phone Number\",\r\n\t\t\t\taccessor: \"Phone\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.original.Phone != null\r\n\t\t\t\t\t\t? row.original.Phone.PhoneCountryCode != null\r\n\t\t\t\t\t\t\t? row.original.Phone.PhoneCountryCode != null\r\n\t\t\t\t\t\t\t\t? row.original.Phone.PhoneCountryCode.Code\r\n\t\t\t\t\t\t\t\t: \"\"\r\n\t\t\t\t\t\t\t: \"\"\r\n\t\t\t\t\t\t\t\t+ \" \" +\r\n\t\t\t\t\t\t\t\trow.original.Phone.PhoneNumber != null\r\n\t\t\t\t\t\t\t\t? row.original.Phone.PhoneNumber\r\n\t\t\t\t\t\t\t\t: \"\"\r\n\t\t\t\t\t\t: \"\"}\r\n\t\t\t\t\t
\r\n\t\t\t\t)\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"EMail\",\r\n\t\t\t\taccessor: \"Email\"\r\n\t\t\t}\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tvar { isBackOffice } = this.state;\r\n\r\n\t\tisBackOffice = ClientHelper.IsBackOffice();\r\n\t\tif (!isBackOffice) {\r\n\t\t\tthis.GetToolbarData();\r\n\t\t\tthis.initialModel = {\r\n\t\t\t\tUniqueClientId: ClientHelper.GetClientRowId()\r\n\t\t\t};\r\n\t\t}\r\n\r\n\t\tthis.props.setAppLeftTitle(\"DDT Money Transfer\");\r\n\t\tthis.props.setAppCenterTitle(\"BANKING\");\r\n\t\tthis.props.setPortal(Portals.DDT);\r\n\t\tthis.setState({ model: { ...this.initialModel }, isBackOffice, loadingCompleted: true });\r\n\t}\r\n\r\n\thandleChange(name, newValue) {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\thandleChangeDepositModel = (name, newValue) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar depositModel = state.depositModel;\r\n\t\t\tdepositModel[name] = newValue;\r\n\t\t\treturn { depositModel };\r\n\t\t});\r\n\t}\r\n\r\n\thandleChangeWithDrawalModel = (name, newValue) => {\r\n\r\n\t\tthis.setState(state => {\r\n\t\t\tvar withDrawalModel = state.withDrawalModel;\r\n\t\t\twithDrawalModel[name] = newValue;\r\n\t\t\treturn { withDrawalModel };\r\n\t\t});\r\n\t}\r\n\r\n\tIsValid = () => {\r\n\t\tvar vmodel = { ...this.state.model };\r\n\t\tif (vmodel.FromDate && typeof vmodel.FromDate != \"object\") {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"From Date is invalid\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\telse if (vmodel.ToDate && typeof vmodel.ToDate != \"object\") {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"To Date is invalid\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (vmodel.FromDate && vmodel.ToDate && vmodel.FromDate > vmodel.ToDate) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"From Date cannot be bigger than To Date\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tGetAllData() {\r\n\t\tif (!this.IsValid()) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (this.state.poolModel.BranchId == null || this.state.poolModel.AccountNumber == null) {\r\n\t\t\tthis.setState(state => ({ trxGridToken: !state.trxGridToken }));\r\n\t\t} else {\r\n\t\t\tif (this.state.poolModel.BranchId == \"\" || this.state.poolModel.AccountNumber == \"\")\r\n\t\t\t\tthis.showErrorMessage(\"No DDT program definition has been made in your name. Please contact the bank manager.\");\r\n\t\t\telse {\r\n\t\t\t\tthis.setState(state => ({ trxGridToken: !state.trxGridToken }));\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\r\n\tCalculateDdtTotalInfo = async (newData) => {\r\n\t\tconst info = {\r\n\t\t\tActive: 0,\r\n\t\t\tInactive: 0,\r\n\t\t\tTotal: 0,\r\n\t\t\tBalance: 0,\r\n\t\t};\r\n\t\tnewData.forEach(item => {\r\n\t\t\tconsole.log(item);\r\n\t\t\tif (item.Status == \"Active\") {\r\n\t\t\t\tinfo.Active++;\r\n\t\t\t\tinfo.Balance += item.AccountBalance;\r\n\t\t\t}\r\n\t\t\tif (item.Status == \"Inactive\") {\r\n\t\t\t\tinfo.Inactive++;\r\n\t\t\t\tinfo.Balance += item.AccountBalance;\r\n\t\t\t}\r\n\t\t\tinfo.Total = info.Active + info.Inactive;\r\n\t\t});\r\n\t\tthis.setState({ DdtTotalInfo: info });\r\n\t}\r\n\r\n\tGetToolbarData = async () => {\r\n\t\tthis.showLoading();\r\n\t\tProxy.GET(\r\n\t\t\t\"/bankapi/v1.0/Ddt/GetAllDDTCDICNumberAndBalance\",\r\n\t\t\tthis.successCallback,\r\n\t\t\tthis.errorCallback\r\n\t\t);\r\n\t}\r\n\r\n\tsuccessCallback(responseData) {\r\n\t\tvar toolBarModel = { ...this.state.toolBarModel };\r\n\t\tvar poolModel = { ...this.state.poolModel };\r\n\t\tvar model = { ...this.state.model };\r\n\r\n\t\tmodel.PrimaryBranchId = responseData.Item == null || undefined ? \"\" : responseData.Item.DDTPoolAccountInfo == null || undefined ? \"\" : responseData.Item.DDTPoolAccountInfo.BranchId == null || undefined ? \"\" : responseData.Item.DDTPoolAccountInfo.BranchId;\r\n\t\tmodel.PrimaryAccountNumber = responseData.Item == null || undefined ? \"\" : responseData.Item.DDTPoolAccountInfo == null || undefined ? \"\" : responseData.Item.DDTPoolAccountInfo.AccountNumber == null || undefined ? \"\" : responseData.Item.DDTPoolAccountInfo.AccountNumber;\r\n\r\n\t\ttoolBarModel.TotalDDTNumber = responseData.Item == null || undefined ? 0 : responseData.Item.TotalDDTNumber == null || undefined ? 0 : responseData.Item.TotalDDTNumber;\r\n\t\ttoolBarModel.TotalDDTBalance = responseData.Item == null || undefined ? 0 : responseData.Item.DDTPoolAccountInfo == null || undefined ? 0 : responseData.Item.DDTPoolAccountInfo.Balance == null || undefined ? 0 : responseData.Item.DDTPoolAccountInfo.Balance;\r\n\t\ttoolBarModel.TotalCDICNumber = responseData.Item == null || undefined ? 0 : responseData.Item.TotalCDICNumber == null || undefined ? 0 : responseData.Item.TotalCDICNumber;\r\n\t\ttoolBarModel.TotalCDICBalance = responseData.Item == null || undefined ? 0 : responseData.Item.CDICPoolAccountInfo == null || undefined ? 0 : responseData.Item.CDICPoolAccountInfo.Balance == null || undefined ? 0 : responseData.Item.CDICPoolAccountInfo.Balance;\r\n\r\n\t\tthis.setState({ model, toolBarModel, poolModel, isLoading: false });\r\n\t}\r\n\r\n\terrorCallback(error) {\r\n\t\tthis.showErrorMessage(\"An error occurred during the api visit\" + error);\r\n\t\tthis.hideLoading();\r\n\t}\r\n\r\n\tshowErrorMessage(message) {\r\n\t\tthis.setState({\r\n\t\t\tDDTList: [],\r\n\t\t\tDdtTotalInfo: null,\r\n\t\t\tisLoading: false,\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\r\n\thideAlert() {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\tshowLoading = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t}\r\n\r\n\tClearModel = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel } });\r\n\t}\r\n\r\n\thideLoading = () => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\topenDepositModal = (selectedDDT) => {\r\n\t\tvar ddtModel = { ...this.state.ddtModel };\r\n\t\tvar depositModel = { ...this.state.depositModel };\r\n\t\tddtModel = selectedDDT;\r\n\t\tdepositModel.DDTId = ddtModel.AccountId;\r\n\t\tthis.setState({ openDepositDialog: true, ddtModel, depositModel });\r\n\t}\r\n\r\n\topenWithDrawalModal = (selectedDDT) => {\r\n\t\tvar ddtModel = { ...this.state.ddtModel };\r\n\t\tvar withDrawalModel = { ...this.state.withDrawalModel };\r\n\t\tddtModel = selectedDDT;\r\n\t\twithDrawalModel.DDTId = ddtModel.AccountId;\r\n\t\tthis.setState({ openWithDrawalDialog: true, ddtModel, withDrawalModel });\r\n\t}\r\n\r\n\tIsValidDepositModel = () => {\r\n\t\tvar depositModel = { ...this.state.depositModel };\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errorMessages = [];\r\n\t\tif (depositModel.DDTId == null || depositModel.DDTId == 0) errorMessages.push(\"Account number is invalid !\");\r\n\t\tif (depositModel.Amount == null || depositModel.Amount == 0) errorMessages.push(\"Amount can not be null or zero (0) !\");\r\n\r\n\t\tif (errorMessages.length > 0) {\r\n\t\t\tshowValidationErrors(errorMessages);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\tIsValidWithDrawalModel = () => {\r\n\t\tvar withDrawalModel = { ...this.state.withDrawalModel };\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errorMessages = [];\r\n\t\tif (withDrawalModel.DDTId == null || withDrawalModel.DDTId == 0) errorMessages.push(\"Account number is invalid !\");\r\n\t\tif (withDrawalModel.Amount == null || withDrawalModel.Amount == 0) errorMessages.push(\"Amount can not be null or zero (0) !\");\r\n\r\n\t\tif (errorMessages.length > 0) {\r\n\t\t\tshowValidationErrors(errorMessages);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\thandleClose = () => { this.setState({ openDepositDialog: false, openWithDrawalDialog: false, ddtModel: {}, depositModel: {}, withDrawalModel: {} }); }\r\n\r\n\trender() {\r\n\t\tconst { model, toolBarModel, isLoading, poolModel, isBackOffice, DdtTotalInfo, ddtModel, depositModel, withDrawalModel } = this.state;\r\n\t\tconst { Disabled, classes, ExecuteApiPost } = this.props;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\t\t\t\t{!isBackOffice &&\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d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tPaginationFetchDataCallback={this.CalculateDdtTotalInfo} />\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t

Active

\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t

Inactive

\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t

Total

\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t

Client Total Balance

\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tTOTAL\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{DdtTotalInfo == null || undefined ? 0 : DdtTotalInfo.Active == null || undefined ? 0 : typeof DdtTotalInfo.Active == \"number\" ? Formatter.FormatNumber(DdtTotalInfo.Active) : DdtTotalInfo.Active}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{DdtTotalInfo == null || undefined ? 0 : DdtTotalInfo.Inactive == null || undefined ? 0 : typeof DdtTotalInfo.Inactive == \"number\" ? Formatter.FormatNumber(DdtTotalInfo.Inactive) : DdtTotalInfo.Inactive}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{DdtTotalInfo == null || undefined ? 0 : DdtTotalInfo.Total == null || undefined ? 0 : typeof DdtTotalInfo.Total == \"number\" ? Formatter.FormatNumber(DdtTotalInfo.Total) : DdtTotalInfo.Total}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{DdtTotalInfo == null || undefined ? 0 : DdtTotalInfo.Balance == null || undefined ? 0 : typeof DdtTotalInfo.Balance == \"number\" ? Formatter.FormatMoney(DdtTotalInfo.Balance) : DdtTotalInfo.Balance}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nDdtMoneyTransfer.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\thandleOperationType: PropTypes.func,\r\n\tSelectedRowChange: PropTypes.func,\r\n\tshowQuestionMessage: func,\r\n\tsetAppLeftTitle: func,\r\n\tsetAppCenterTitle: func,\r\n\tsetPortal: func,\r\n\tDisabled: bool,\r\n\tmenuId: number,\r\n\tApprovalData: array,\r\n\tAfter: func\r\n};\r\n// DdtMoneyTransfer.whyDidYouRender = true;\r\nexport default withArtifex(DdtMoneyTransfer, DDTListStyle);","\r\nconst kycManualPhotoDefinitionStyle = {\r\n\r\n\tprofileHeader: {\r\n\t\tmargin: \"0px 0px 5px 40px\"\r\n\t},\r\n\tmediaProfile: {\r\n\t\twidth: \"70%\",\r\n\t\tmargin: \"auto\",\r\n\t\theight: 200,\r\n\t\tborderRadius: 20,\r\n\t\tborderColor: \"rgb(179, 179, 179)\",\r\n\t\tborderWidth: 2,\r\n\t},\r\n\timageProfile: {\r\n\t\twidth: 323,\r\n\t\theight: 204,\r\n\t\tmargin: \"auto\",\r\n\t\tborderRadius: 20,\r\n\t\tborderColor: \"rgb(179, 179, 179)\",\r\n\t\tborderWidth: 2,\r\n\t},\r\n\tpreviewTitle:{\r\n\t\tmarginLeft:5\r\n\t}\r\n};\r\n\r\nexport default kycManualPhotoDefinitionStyle;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport moment from \"moment\";\r\nimport PropTypes, { bool, func } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle, GenericLabel, GenericRadioInput } from \"views/Components/Generic\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { withArtifex } from \"core\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, MenuCodes } from \"views/Constants/Constant\";\r\nimport MenuAuthorityRightHelper from \"core/MenuAuthorityRightHelper\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Select from \"react-select\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\n\r\nclass FeeTransactionSearch extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tvModel: {},\r\n\t\t\tmodel: {},\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\t\tthis.parameterValueTemp = {\r\n\t\t\tParamterValue: \"FeeType\"\r\n\t\t};\r\n\t\tthis.parameterFeeTypeValueTemp = {\t};\r\n\t\tthis.renderItemFeeGroup = {};\r\n\t\tthis.parameterClient = {};\r\n\t\tthis.trxTable = React.createRef();\r\n\t\tthis.MenuAuthorityRightHelper = new MenuAuthorityRightHelper();\r\n\t}\r\n\tcomponentDidMount() {\r\n\r\n\t\tlet IsFeeTransaction = this.props.MenuCode === MenuCodes.Fee_Transaction;\r\n\t\tif (IsFeeTransaction) {\r\n\t\t\tthis.props.setAppLeftTitle(\"Fee Transaction Detail Search\");\r\n\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.props.setAppLeftTitle(\"Fee Transaction Search\");\r\n\r\n\t\t}\r\n\t\tthis.props.setAppCenterTitle(\"ACCOUNTS\");\r\n\t\tthis.setState({ loadingCompleted: true });\r\n\t}\r\n\r\n\thandleChange = (name, newValue) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tif (name == \"ReferenceNumber\") {\r\n\t\t\tmodel.IsUniqueDataSearchMode = newValue?.length > 0;\r\n\t\t}\r\n\t\tif (name == \"UniqueClientId\" && newValue==null) {\r\n\t\t\tmodel.UniqueClientId = 0;\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\t}\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\tvalidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tvar messages = [];\r\n\t\tif (!model.IsUniqueDataSearchMode && (!model.UniqueClientId || model.UniqueClientId <= 0)) {\r\n\t\t\tvModel.UniqueClientId = true;\r\n\t\t\tmessages.push(\"Client Name cannot be null!\");\r\n\t\t} else { vModel.UniqueClientId = false; }\r\n\t\tif (!model.IsUniqueDataSearchMode && !model.FromDate) {\r\n\t\t\tvModel.FromDate = true;\r\n\t\t\tmessages.push(\"Start Date cannot be null!\");\r\n\t\t} else { vModel.FromDate = false; }\r\n\t\tif (!model.IsUniqueDataSearchMode && !model.ToDate) {\r\n\t\t\tvModel.ToDate = true;\r\n\t\t\tmessages.push(\"End Date cannot be null!\");\r\n\t\t} else { vModel.ToDate = false; }\r\n\t\tif (!model.IsUniqueDataSearchMode && model.FromDate && model.ToDate && moment(model.ToDate).diff(moment(model.FromDate), 'days') > 90) {\r\n\t\t\tmessages.push(\"Difference between two dates cannot be longer than 90 days.\");\r\n\t\t}\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", messages.slice(0, 10).map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tthis.setState({ vModel });\r\n\t\treturn true;\r\n\t}\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert:\r\n\t\t\t\t this.setState({ alert: null })}\r\n\t\t\t\t/>\r\n\t\t});\r\n\t}\r\n\thandleGetList = () => {\r\n\t\tthis.setState(state => ({ trxGridToken: !state.trxGridToken }));\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\thandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {},\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\tExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.accessor != \"Actions\" && c.accessor != \"ED\" && (c.show == undefined || c.show)) {\r\n\t\t\t\ttrxColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: trxColumns, ExportSelectedColumns: trxColumns });\r\n\t}\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tif (!this.validate())\r\n\t\t\treturn;\r\n\r\n\t\tthis.props.showConfirmMessage(\"question\", \"Long Process Warning\", \"This process may take a while. Continue ?\", () => {\r\n\t\t\tthis.hideAlert();\r\n\t\t\tconst { model } = this.state;\r\n\r\n\t\t\tmodel.IsFeeTrx = this.props.MenuCode === MenuCodes.Fee_Transaction;\r\n\t\t\tvar jsonColList = [];\r\n\r\n\t\t\tvar trxColumns = {};\r\n\t\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\t\ttrxColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t\t});\r\n\t\t\tjsonColList.push(trxColumns);\r\n\r\n\t\t\tvar mytitle = \"\";\r\n\t\t\tif (this.props.MenuCode === MenuCodes.Fee_Transaction) { mytitle = \"Fee Transactions Detail Report\"; }\r\n\t\t\telse { mytitle = \"Fee Transactions Report\"; }\r\n\r\n\t\t\tmodel[\"jsonFile\"] = {\r\n\t\t\t\tcolmns: jsonColList,\r\n\t\t\t\tformat: this.state.ExportReportType,\r\n\t\t\t\ttitle: mytitle\r\n\t\t\t};\r\n\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\t\"/bankapi/v1.0/FeeTransaction/SearchFeeTransactionExport\",\r\n\t\t\t\tmodel,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terrorMessage => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t\t},\r\n\t\t\t\tthis.props.showMessage\r\n\t\t\t);\r\n\t\t});\r\n\t}\r\n\tGetFeeGroupValue = () => {\r\n\t\tthis.parameterFeeTypeValueTemp.ParameterValue = this.state.model.FeeGroupValue;\r\n\t\treturn this.parameterFeeTypeValueTemp;\r\n\t}\r\n\tRenderItemFeeGroup = (d) => {\r\n\t\tthis.renderItemFeeGroup = `${d.ParameterValue}`;\r\n\t\treturn this.renderItemFeeGroup;\r\n\t}\r\n\tGetClientParameter = () => {\r\n\t\tthis.parameterClient.UniqueClientId = this.state.model.UniqueClientId;\r\n\t\treturn this.parameterClient;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, isLoading, vModel } = this.state;\r\n\t\tlet IsFeeTransaction = this.props.MenuCode === MenuCodes.Fee_Transaction;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t this.ExportClick(), Disabled: Disabled }\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\r\n\r\n\t\t\t\t\t\t\t\t{!IsFeeTransaction &&\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t{!IsFeeTransaction &&\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tconst temp = { ...this.state.model };\r\n\t\t\t\t\t\t\t\t\t\ttemp.IsFeeTrx = this.props.MenuCode === MenuCodes.Fee_Transaction;\r\n\r\n\t\t\t\t\t\t\t\t\t\treturn temp;\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\tRequestUrl=\"/bankapi/v1.0/FeeTransaction/SearchFeeTransactionPaged\"\r\n\t\t\t\t\t\t\t\t\tRequestMethod=\"POST\"\r\n\t\t\t\t\t\t\t\t\tColumns={[\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTimeUtc\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"UniqueClientName\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\trow.value ? row.value : \"-\"\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Account Name\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"AccountName\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\trow.value ? row.value : \"-\"\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Account Number\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"AccountNumber\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\trow.value ? row.value : \"-\"\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Fee Group\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"FeeGroup\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\trow.value ? row.value : \"-\"\r\n\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t// show: !IsFeeTransaction\r\n\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Fee Type\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"FeeType\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\trow.value ? row.value : \"-\"\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Fee Profile Type\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"FeeProfile\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\trow.value ? row.value : \"-\"\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Fee Profile Name\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ProfileName\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\trow.value ? row.value : \"-\"\r\n\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\tshow: IsFeeTransaction\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Calculate Commission\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"CalculateCommission\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\trow.value == true ? \"Yes\" : \"No\"\r\n\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\tshow: IsFeeTransaction\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Sales Agent Type\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"SalesAgentType\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\trow.value ? row.value : \"-\"\r\n\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\tshow: IsFeeTransaction\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Sales Agent Name\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"SalesName\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\trow.value ? row.value : \"-\"\r\n\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\tshow: IsFeeTransaction\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Cost Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"CostAmount\",\r\n\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Program\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ProgramDescription\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\trow.value ? row.value : \"-\"\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Description\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"Description\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\trow.value ? row.value : \"-\"\r\n\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\tshow: IsFeeTransaction\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Reference Number\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ReferenceNumber\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\trow.value ? row.value : \"-\"\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nFeeTransactionSearch.propTypes = {\r\n\tshowQuestionMessage: func,\r\n\tsetAppLeftTitle: func,\r\n\tsetAppCenterTitle: func,\r\n\tDisabled: bool\r\n};\r\n\r\n\r\nexport default withArtifex(FeeTransactionSearch, {});","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport Formatter from \"core/Formatter\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport { default as React } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDialog, GenericDialogActions, GenericEmailInput, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericLabel, GenericCheckInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { InteracRedirectURL } from \"views/Constants/Constant\";\r\n\r\n\r\nclass InteracApproveRequest extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t\tinteracData: {},\r\n\t\t\tIncomingResponse: {},\r\n\t\t\tauthTransferStatus: false,\r\n\t\t\tisConfirmDialogOpen: false,\r\n\t\t\tisDeclineDialogOpen: false,\r\n\t\t\tisManualTransactionEntry: false\r\n\t\t};\r\n\r\n\t\tthis.EmptyParameter = {};\r\n\t\tthis.maxLength20 = { maxLength: 20 };\r\n\t\tthis.maxLength100 = { maxLength: 100 };\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tif (this.props.setAppCenterTitle) {\r\n\t\t\tthis.props.setAppCenterTitle(\"NOTIFICATIONS\");\r\n\t\t}\r\n\r\n\t\tif (this.props.setAppLeftTitle)\r\n\t\t\tthis.props.setAppLeftTitle(\"Money Deposit\");\r\n\r\n\r\n\r\n\t\tif (this.CheckIncomingData()) {\r\n\t\t\tthis.ParseIncomingData();\r\n\t\t}\r\n\t}\r\n\r\n\tCheckIncomingData = () => {\r\n\t\tvar interacData = RouteHelper.Read(InteracRedirectURL.LocalStorageKey);\r\n\t\tif (interacData == null) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (interacData == null || interacData.IsValidUrl != true) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (interacData.IsMoneySend == true) {\r\n\t\t\tif (interacData.ETID == null || interacData.ETID == \"\") {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (interacData.IsMoneyRequest == true) {\r\n\t\t\tif (interacData.RQETID == null || interacData.RQETID == \"\") {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tGetManualTransactionDetails = () => {\r\n\t\tif (this.CheckIncomingData()) {\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Operation cannot be performed.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tvar model = { ...this.state.model };\r\n\t\tif (model.isManualTransactionEntry != true) {\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Operation cannot be performed.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (model.ManualReferanceNumber == null || model.ManualReferanceNumber == \"\") {\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Operation cannot be performed. Please fill reference number\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (model.ManualTransactionType == null || model.ManualTransactionType == \"\") {\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Operation cannot be performed. Please fill reference number\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\r\n\t\tvar temp = {};\r\n\t\ttemp.IsValidUrl = true;\r\n\t\ttemp.IsMoneySend = false;\r\n\t\ttemp.IsMoneyRequest = false;\r\n\t\ttemp.ETID = null;\r\n\t\ttemp.RQETID = null;\r\n\r\n\t\tif (model.ManualTransactionType == \"MoneyRequest\") {\r\n\t\t\ttemp.IsMoneyRequest = true;\r\n\t\t\ttemp.RQETID = model.ManualReferanceNumber;\r\n\t\t}\r\n\t\tif (model.ManualTransactionType == \"MoneySend\") {\r\n\t\t\ttemp.IsMoneySend = true;\r\n\t\t\ttemp.ETID = model.ManualReferanceNumber;\r\n\t\t}\r\n\r\n\t\tthis.ParseIncomingData(temp);\r\n\t}\r\n\r\n\tParseIncomingData = (data) => {\r\n\t\tvar interacData = RouteHelper.ReadAndClear(InteracRedirectURL.LocalStorageKey);\r\n\t\tif (interacData != null) {\r\n\t\t\tthis.setState({ interacData: interacData || {} });\r\n\t\t}\r\n\r\n\t\tif (data != null) {\r\n\t\t\tthis.setState({ interacData: data });\r\n\t\t\tinteracData = data;\r\n\t\t}\r\n\r\n\t\tif (interacData == null || interacData.IsValidUrl != true) {\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Invalid Approval Request URL. Approve Operation can not be done. \");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (interacData.IsMoneySend == true) {\r\n\t\t\tif (interacData.ETID == null || interacData.ETID == \"\") {\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Missing Interac data for incoming money send. Approve Operation can not be done. \");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (interacData.IsMoneyRequest == true) {\r\n\t\t\tif (interacData.RQETID == null || interacData.RQETID == \"\") {\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Missing Interac data for incoming money request. Approve Operation can not be done. \");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.GetInteracDefaultEmail();\r\n\t}\r\n\r\n\tGetInteracDefaultEmail = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/InteracApprovePayment/GetInteracDefaultEmail\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.handleChange(\"Email\", responseData.Item || \"\");\r\n\t\t\t\tthis.FetchRequest(responseData.Item);\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tFetchRequest = (email) => {\r\n\t\tvar interacData = { ...this.state.interacData };\r\n\r\n\t\tvar data = {};\r\n\t\tif (email == null || email == \"\") {\r\n\t\t\tdata.Email = email;\r\n\t\t} else {\r\n\t\t\tdata.Email = this.state.model?.Email;\r\n\t\t}\r\n\r\n\t\tif (data.Email == \"\" || data.Email == null || !this.ValidateEmail(data.Email)) {\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Email must be valid\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tdata.ReferenceNumber = this.GetReferenceNumber();\r\n\t\tif (data.ReferenceNumber == null || data.ReferenceNumber == \"\") {\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Referance number must be valid\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (interacData.IsValidUrl && interacData.IsMoneySend && interacData.ETID != null && interacData.ETID != \"\") {\r\n\t\t\t// money send\r\n\t\t\tthis.GetIncomingTransfer(data);\r\n\t\t} else if (interacData.IsValidUrl && interacData.IsMoneyRequest && interacData.RQETID != null && interacData.RQETID != \"\") {\r\n\t\t\t//money request\r\n\t\t\tthis.GetIncomingMoneyRequests(data);\r\n\t\t} else {\r\n\t\t\t// invalid\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Invalid Approval Request\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t}\r\n\r\n\r\n\r\n\tOperationCheck = () => {\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tGetIncomingTransfer = (data) => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/InteracApprovePayment/GetIncomingTransfers\",\r\n\t\t\tdata,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Success\", \"Get Incoming Transfer Success\");\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.setState({ IncomingResponse: responseData.Item || {} });\r\n\r\n\t\t\t\tconsole.log(\"GetIncomingMoneyRequests Response \" + responseData.IsSucceeded);\r\n\t\t\t\tconsole.log(JSON.stringify(responseData.Item));\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tAuthenticateTransfer = () => {\r\n\t\tvar data = {};\r\n\t\tconst model = { ...this.state.model };\r\n\t\tconst interacModel = { ...this.state.interacData };\r\n\t\tdata.Email = model?.Email;\r\n\t\tdata.ReferenceNumber = this.GetReferenceNumber();\r\n\t\tdata.SecurityAnswer = model?.SecurityAnswer;\r\n\t\tdata.HashSalt = this.state.IncomingResponse?.incomingTransfer?.hashSalt;\r\n\r\n\t\tvar ErrorList = [];\r\n\r\n\t\tif (data.Email == null || data.Email == \"\") {\r\n\t\t\tErrorList.push(\"Email must be defined !.\");\r\n\t\t}\r\n\t\tif (data.ReferenceNumber == null || data.ReferenceNumber == \"\") {\r\n\t\t\tErrorList.push(\"Referance Number must be defined !.\");\r\n\t\t}\r\n\t\tif (data.SecurityAnswer == null || data.SecurityAnswer == \"\") {\r\n\t\t\tErrorList.push(\"Security Answer must be defined !.\");\r\n\t\t}\r\n\t\tif (data.HashSalt == null || data.HashSalt == \"\") {\r\n\t\t\tErrorList.push(\"Hash Salt must be defined !.\");\r\n\t\t}\r\n\t\tif (!this.ValidateEmail(data.Email)) {\r\n\t\t\tErrorList.push(\"Email must be valid\");\r\n\t\t}\r\n\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.props.showMessageNode(\"warning\", \"Please fill required fields!\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/InteracApprovePayment/AuthenticateTransfer\",\r\n\t\t\tdata,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Success\", \"Authenticate Transfer Success\");\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.setState({ authTransferStatus: responseData.IsSucceeded });\r\n\r\n\t\t\t\tconsole.log(\"AuthenticateTransfer Response \" + responseData.IsSucceeded);\r\n\t\t\t\tconsole.log(JSON.stringify(responseData.Item));\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tGetIncomingMoneyRequests = (data) => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/InteracApprovePayment/GetIncomingMoneyRequests\",\r\n\t\t\tdata,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Success\", \"Get Incoming Money Requests Success\");\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.setState({ IncomingResponse: responseData.Item || {} });\r\n\r\n\t\t\t\tconsole.log(\"GetIncomingMoneyRequests Response \" + responseData.IsSucceeded);\r\n\t\t\t\tconsole.log(JSON.stringify(responseData.Item));\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tCompleteTransfer = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tvar data = {};\r\n\r\n\t\tdata.Email = model.Email;\r\n\t\tdata.AccountId = model.AccountId;\r\n\t\tdata.GetIncomingTransferResponse = this.state.IncomingResponse;\r\n\r\n\t\tif (data.GetIncomingTransferResponse == null) {\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Invalid Decline Transfer Response\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (data.AccountId == null || data.AccountId == \"\") {\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Please select your account\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (data.Email == \"\" || data.Email == null || !this.ValidateEmail(data.Email)) {\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Email must be valid\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/InteracApprovePayment/CompleteTransfer\",\r\n\t\t\tdata,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Success\", \"Complete Transfer Success\");\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ClearData();\r\n\r\n\t\t\t\tconsole.log(\"CompleteTransfer Response \" + responseData.IsSucceeded);\r\n\t\t\t\tconsole.log(JSON.stringify(responseData.Item));\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tDeclineTransfer = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tvar data = {};\r\n\t\tdata.DeclineReason = model.DeclineReason;\r\n\t\tdata.Email = model.Email;\r\n\r\n\t\tdata.ReferenceNumber = this.GetReferenceNumber();\r\n\t\tif (data.ReferenceNumber == null || data.ReferenceNumber == \"\") {\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Invalid Decline Referance Number\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (data.DeclineReason == null || data.DeclineReason == \"\") {\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Please type your decline reason\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (data.Email == null || data.Email == \"\") {\r\n\t\t\tthis.props.showMessage(\"Email must be defined !.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!this.ValidateEmail(data.Email)) {\r\n\t\t\tthis.props.showMessage(\"Email must be valid\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/InteracApprovePayment/DeclineTransfer\",\r\n\t\t\tdata,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Success\", \"Decline Transfer Success\");\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ClearData();\r\n\r\n\t\t\t\tconsole.log(\"DeclineTransfer Response \" + responseData.IsSucceeded);\r\n\t\t\t\tconsole.log(JSON.stringify(responseData.Item));\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\r\n\t}\r\n\r\n\tDeclineMoneyRequest = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tvar data = {};\r\n\t\tdata.DeclineReason = model.DeclineReason;\r\n\t\tdata.Email = model.Email;\r\n\r\n\t\tdata.ReferenceNumber = this.GetReferenceNumber();\r\n\t\tif (data.ReferenceNumber == null || data.ReferenceNumber == \"\") {\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Invalid Decline Referance Number\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (data.DeclineReason == null || data.DeclineReason == \"\") {\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Please type your decline reason\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (data.Email == null || data.Email == \"\") {\r\n\t\t\tthis.props.showMessage(\"Email must be defined !.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!this.ValidateEmail(data.Email)) {\r\n\t\t\tthis.props.showMessage(\"Email must be valid\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/InteracApprovePayment/DeclineRequest\",\r\n\t\t\tdata,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Success\", \"Decline Request Success\");\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ClearData();\r\n\r\n\t\t\t\tconsole.log(\"DeclineRequest Response \" + responseData.IsSucceeded);\r\n\t\t\t\tconsole.log(JSON.stringify(responseData.Item));\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\r\n\t}\r\n\r\n\tCompleteMoneyRequest = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tvar data = {};\r\n\r\n\t\tdata.Email = model.Email;\r\n\t\tdata.AccountId = model.AccountId;\r\n\t\tdata.IncomingRequest = this.state.IncomingResponse;\r\n\t\tdata.ManualReferanceNumber = model.ManualReferanceNumber;\r\n\t\tif (data.IncomingRequest == null) {\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Invalid Incoming Money Request Response\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (data.AccountId == null || data.AccountId == \"\") {\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Please select your account\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (data.Email == \"\" || data.Email == null || !this.ValidateEmail(data.Email)) {\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Email must be valid\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/InteracApprovePayment/CompleteMoneyRequest\",\r\n\t\t\tdata,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Success\", \"Complete Money Request Success\");\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ClearData();\r\n\r\n\t\t\t\tconsole.log(\"CompleteMoneyRequest Response \" + responseData.IsSucceeded);\r\n\t\t\t\tconsole.log(JSON.stringify(responseData.Item));\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\r\n\tGetReferenceNumber = () => {\r\n\t\tvar interacData = { ...this.state.interacData };\r\n\t\tif (interacData.IsValidUrl && interacData.IsMoneySend && interacData.ETID != null && interacData.ETID != \"\") {\r\n\t\t\treturn interacData.ETID\r\n\t\t} else if (interacData.IsValidUrl && interacData.IsMoneyRequest && interacData.RQETID != null && interacData.RQETID != \"\") {\r\n\t\t\treturn interacData.RQETID\r\n\t\t} else {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar temp = state.model || {};\r\n\t\t\ttemp[name] = newValue;\r\n\t\t\treturn { model: temp };\r\n\t\t});\r\n\t}\r\n\tRenderClientAccountSelect = (d) => {\r\n\t\treturn `${d.AccountName} -${d.AccountNumber} (${d.AccountType})`;\r\n\t}\r\n\tValidateEmail = (email) => {\r\n\t\tvar re = /^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\r\n\t\treturn re.test(String(email).toLowerCase());\r\n\t}\r\n\tGetRequestStatus = (code) => {\r\n\t\tswitch (code) {\r\n\t\t\tcase 1:\r\n\t\t\t\treturn \"Initiated\";\r\n\t\t\tcase 2:\r\n\t\t\t\treturn \"Available\";\r\n\t\t\tcase 3:\r\n\t\t\t\treturn \"Fulfilled\";\r\n\t\t\tcase 4:\r\n\t\t\t\treturn \"Declined\";\r\n\t\t\tcase 5:\r\n\t\t\t\treturn \"Cancelled\";\r\n\t\t\tcase 6:\r\n\t\t\t\treturn \"Expired\";\r\n\t\t\tcase 7:\r\n\t\t\t\treturn \"Deposit Failed\";\r\n\t\t\tcase 8:\r\n\t\t\t\treturn \"Deposit Complete\";\r\n\t\t\tdefault:\r\n\t\t\t\treturn \"-\";\r\n\t\t}\r\n\t}\r\n\tGetTransferStatus = (code) => {\r\n\t\tswitch (code) {\r\n\t\t\tcase 1:\r\n\t\t\t\treturn \"Transfer Initiated\";\r\n\t\t\tcase 3:\r\n\t\t\t\treturn \"Transfer Available\";\r\n\t\t\tcase 5:\r\n\t\t\t\treturn \"Authentication Failure\";\r\n\t\t\tcase 6:\r\n\t\t\t\treturn \"Authentication Successfull\";\r\n\t\t\tcase 7:\r\n\t\t\t\treturn \"Declined\";\r\n\t\t\tcase 8:\r\n\t\t\t\treturn \"Cancelled\";\r\n\t\t\tcase 10:\r\n\t\t\t\treturn \"Completed\";\r\n\t\t\tdefault:\r\n\t\t\t\treturn \"-\";\r\n\t\t}\r\n\t}\r\n\tFillApproveGridData = (interacData, IncomingResponse,model) => {\r\n\t\treturn (\r\n\t\t\t<>\r\n\t\t\t\t{(interacData.IsMoneySend == true) && (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t)}\r\n\t\t\t\t{(interacData.IsMoneyRequest == true) && (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t)}\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n\tClearData = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {},\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t\tinteracData: {},\r\n\t\t\tIncomingResponse: {},\r\n\t\t\tauthTransferStatus: false,\r\n\t\t\tisConfirmDialogOpen: false,\r\n\t\t\tisDeclineDialogOpen: false,\r\n\t\t\tisManualTransactionEntry: false\r\n\t\t});\r\n\t}\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { isLoading, model, IncomingResponse, interacData, authTransferStatus } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t

Complete e-Transfer

\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{interacData?.IsValidUrl != true && (\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{model.isManualTransactionEntry == true && (\r\n\t\t\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t{(interacData?.IsMoneySend == true) && (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{(IncomingResponse?.incomingTransfer?.securityQuestion != null && IncomingResponse?.incomingTransfer?.securityQuestion != \"\") && (\r\n\t\t\t\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t{(IncomingResponse?.incomingTransfer?.transferStatus == 3 || IncomingResponse?.incomingTransfer?.authenticationRequired == 1) && (\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t{(IncomingResponse?.incomingTransfer?.authenticationRequired == 0 || IncomingResponse?.incomingTransfer?.transferStatus == 6 || authTransferStatus) && (\r\n\t\t\t\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t)}\r\n\r\n\r\n\t\t\t\t\t\t{(interacData?.IsMoneyRequest == true && IncomingResponse?.incomingRequest?.moneyRequestStatus == 2) && (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t)}\r\n\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\tUrl Valid : {interacData?.IsValidUrl == true ? \"OK\" : \"-\"}
\r\n\t\t\t\t\t\t\t\t\tOperation Type : {interacData?.IsMoneySend == true ? \"Incoming Transfer\" : interacData?.IsMoneyRequest == true ? \"Incoming Request\" : \"-\"}
\r\n\t\t\t\t\t\t\t\t\tReference Number : {interacData?.IsMoneySend == true ? interacData?.ETID : interacData?.IsMoneyRequest == true ? interacData?.RQETID : \"-\"}
\r\n\t\t\t\t\t\t\t\t\tStatus : {interacData?.IsMoneySend == true ? this.GetTransferStatus(IncomingResponse?.incomingTransfer?.transferStatus) : interacData?.IsMoneyRequest == true ? this.GetRequestStatus(IncomingResponse?.incomingRequest?.moneyRequestStatus) : \"-\"}
\r\n\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t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\t\r\n\t\t\t\t\t Transaction Confirmation \r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{this.FillApproveGridData(interacData, IncomingResponse,model)}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{(interacData.IsMoneySend == true) && (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t{(interacData.IsMoneyRequest == true) && (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t Transaction Confirmation \r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{this.FillApproveGridData(interacData, IncomingResponse,model)}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{(interacData.IsMoneySend == true) && (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t{(interacData.IsMoneyRequest == true) && (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nInteracApproveRequest.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(InteracApproveRequest, {});","import { DialogContent, DialogTitle, List, Slide } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDialog, GenericCheckInput, GenericDialogActions, GenericEmailInput, GenericNumberInput, GenericExpansionPanel, GenericLabel, GenericSelectInput, GenericTitle, GenericGrid, GenericRadioInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, ProgramCodes, MenuCodes } from \"views/Constants/Constant\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport { DeleteIcon, ApproveIcon, UndoIcon } from \"core/Icons\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport GenericTextInput from \"../../Components/Generic/GenericTextInput\";\r\n\r\nfunction Transition(props) {\r\n\treturn ;\r\n}\r\n\r\nclass CreateInteracETransferUser extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.initialModel = {\r\n\t\t\tClientId: 0\r\n\t\t};\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tvModel: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tisConfirmMainUserDialogOpen: false,\r\n\t\t\tisConfirmAdrDialogOpen: false,\r\n\t\t\tisConfirmAdrDialogOpenUpdate: false,\r\n\t\t\tisConfirmDeleteDialogOpen: false,\r\n\t\t\tisConfirmStoreDialogOpen: false,\r\n\t\t\tisConfirmDeleteStoreDialogOpen: false,\r\n\t\t\tlist: [],\r\n\t\t\tdirectDepositRegistrationId: 0,\r\n\t\t\tstoreId: 0,\r\n\t\t\taccountSelectKey: false,\r\n\r\n\t\t\tServiceType: \"EMAIL\",\r\n\t\t\tisBackOffice: false,\r\n\t\t\tautoDepositAccountIdForDcRequestMoney: 0,\r\n\t\t\tisConfirmDcRequestMoneyDialogOpen: false,\r\n\t\t\tgatewayUrl: false,\r\n\t\t\tfulFillDelayTurnedOn: false,\r\n\t\t\tfulFillDelayMaxWait: 0,\r\n\t\t\tfulFillDelayAutoReject: false\r\n\t\t};\r\n\t\tthis.parameterYesNo = {\r\n\t\t\tParameterCode: \"YesNo\"\r\n\t\t};\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"e-Transfer Set Up\");\r\n\t\tif (this.props.MenuCode == MenuCodes.Backoffice_ClientSetupAutoDeposit) {\r\n\t\t\tthis.props.setAppCenterTitle(\"CLIENT\");\r\n\t\t} else {\r\n\t\t\tthis.props.setAppCenterTitle(\"BANKING\");\r\n\t\t}\r\n\r\n\t\tvar { model, isBackOffice } = this.state;\r\n\t\tvar initialModel = this.initialModel;\r\n\r\n\t\tisBackOffice = ClientHelper.IsBackOffice();\r\n\t\tif (!isBackOffice) {\r\n\t\t\tmodel.ClientId = ClientHelper.GetClientRowId();\r\n\t\t\tinitialModel.ClientId = model.ClientId;\r\n\t\t}\r\n\t\tthis.setState({ model, isBackOffice });\r\n\t\tif (!isBackOffice)\r\n\t\t\tthis.GetInteracUserDetail(model.ClientId);\r\n\t}\r\n\r\n\tGetInteracUserDetail = (clientId) => {\r\n\t\tvar { model, accountSelectKey } = this.state;\r\n\t\tvar initialModel = this.initialModel;\r\n\t\tvar list = this.state.list;\r\n\t\tvar storeList = this.state.storeList;\r\n\t\tvar clientSettings = this.state.ClientSettings;\r\n\r\n\t\tProxy.POST(\"/bankapi/v1.0/BankInteracETransfer/GetInteracUserDetail\",\r\n\t\t\t{ ClientId: clientId },\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.hideAlert();\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", \"An error occurred while interac request \" + responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tmodel.MainUserEmail = responseData.Item.CustomerETransfer?.EMail ?? \"\";\r\n\t\t\t\t\tmodel.GatewayUrlTurnedOff = responseData.Item.ClientSettings.GatewayUrlTurnedOff;\r\n\t\t\t\t\tmodel.FulFillDelayTurnedOn = responseData.Item.ClientSettings.FulFillDelayTurnedOn;\r\n\t\t\t\t\tmodel.FulFillDelayMaxWait = responseData.Item.ClientSettings.FulFillDelayMaxWait;\r\n\t\t\t\t\tmodel.FulFillDelayAutoReject = responseData.Item.ClientSettings.FulFillDelayAutoReject;\r\n\t\t\t\t\tinitialModel.MainUserEmail = model.MainUserEmail;\r\n\t\t\t\t\tlist = responseData.Item.DdrList;\r\n\t\t\t\t\tstoreList = responseData.Item.StoreList;\r\n\t\t\t\t\tmodel.templateId = responseData.Item.StoreList?.find(x => x.IsClientMainAccount && x.IsRecordValid)?.BulkTemplateId;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ model, list, storeList, clientSettings, accountSelectKey: !accountSelectKey, isLoading: false });\r\n\t\t\t},\r\n\t\t\te => {\r\n\t\t\t\tthis.hideAlert();\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", \"An error occurred while interac request \");\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tInsertOrUpdateIntearacMainUserValidate = () => {\r\n\t\tvar ErrorList = [];\r\n\t\tconst { model, vModel } = this.state;\r\n\r\n\t\tif (model.ClientId == null || model.ClientId == 0) {\r\n\t\t\tvModel.ClientId = true;\r\n\t\t\tErrorList.push(\"Client cannot be be null !\");\r\n\t\t}\r\n\r\n\t\tif (model.MainUserEmail == null || model.MainUserEmail == undefined || model.MainUserEmail == \"\") {\r\n\t\t\tErrorList.push(\"Interac Main User Email must be defined !\");\r\n\t\t\tvModel.MainUserEmail = true;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (vModel.MainUserEmailValid) {\r\n\t\t\t\tErrorList.push(\"Interac Main User Email is invalid !\");\r\n\t\t\t\tvModel.MainUserEmail = true;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.setState({ vModel });\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please control fields!\", ErrorList.slice(0, 10).map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tthis.setState({ isConfirmMainUserDialogOpen: true });\r\n\t};\r\n\r\n\tInsertOrUpdateMainUser = () => {\r\n\t\tthis.setState({ isConfirmAdrDialogOpen: false, isLoading: true });\r\n\t\tvar { model } = this.state;\r\n\r\n\t\tmodel.IsClientMainAccount = true;\r\n\t\tmodel.IsMainUser = true;\r\n\t\tmodel.InteracType = \"EMAIL\";\r\n\r\n\t\tProxy.POST(\"/bankapi/v1.0/BankInteracETransfer/InsertOrUpdateInteracUser\",\r\n\t\t\tmodel,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.hideAlert();\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", \"An error occurred while interac request \" + responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Success\", \"The operation completed successfully.\");\r\n\t\t\t\tthis.ClearData();\r\n\t\t\t\tthis.GetInteracUserDetail(model.ClientId);\r\n\t\t\t},\r\n\t\t\te => {\r\n\t\t\t\tthis.hideAlert();\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", \"An error occurred while interac request \");\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tInsertOrUpdateIntearacUserValidate = () => {\r\n\t\tvar ErrorList = [];\r\n\t\tconst { model, vModel, list } = this.state;\r\n\r\n\t\tif ( (model.InteracEMail == null || model.InteracEMail == undefined || model.InteracEMail == \"\") && (this.state.ServiceType == \"EMAIL\" || this.state.ServiceType == \"PHONE\")) {\r\n\t\t\tErrorList.push(\"Registration Email must be defined !\");\r\n\t\t\tvModel.InteracEMail = true;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (vModel.InteracEMailValid) {\r\n\t\t\t\tErrorList.push(\"Registration Email is invalid !\");\r\n\t\t\t\tvModel.InteracEMail = true;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif ( (model.PhoneCountryCodeId == null || model.PhoneCountryCodeId == undefined || model.PhoneCountryCodeId == \"\") && this.state.ServiceType == \"PHONE\") {\r\n\t\t\tErrorList.push(\"Phone Number[Country Code] must be defined !\");\r\n\t\t\tvModel.PhoneCountryCodeId = true;\r\n\t\t}\r\n\t\tif ( (model.PhoneNumber == null || model.PhoneNumber == undefined || model.PhoneNumber == \"\") && this.state.ServiceType == \"PHONE\") {\r\n\t\t\tErrorList.push(\"Phone Number must be defined !\");\r\n\t\t\tvModel.PhoneNumber = true;\r\n\t\t}\r\n\r\n\t\tvar existEmailControl = list.some(k => k.EMail == model.InteracEMail && k.ServiceType==\"EMAIL\" && (k.DeleteStatus == 1));\r\n\t\tif(this.state.ServiceType == \"EMAIL\" && existEmailControl) {\t\t\t\r\n\t\t\tErrorList.push(\"The Registration Email is already in use !\");\r\n\t\t\tvModel.InteracEMail = true;\r\n\t\t}\r\n\t\tvar existPhoneControl = list.some(k => k.Phone == model.InteracPhone && k.ServiceType==\"PHONE\" && (k.DeleteStatus == 1));\r\n\t\tif(this.state.ServiceType == \"PHONE\" && existPhoneControl) {\t\t\t\r\n\t\t\tErrorList.push(\"The Registration Phone is already in use !\");\r\n\t\t\tvModel.InteracEMail = true;\r\n\t\t}\r\n\r\n\t\tvModel.SourceAccountId = model.SourceAccountId == null || (model.SourceAccountId <= 0);\r\n\t\tif (vModel.SourceAccountId)\r\n\t\t\tErrorList.push(\"AutoDeposit Account must be defined !\");\r\n\r\n\t\tthis.setState({ vModel });\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", ErrorList.slice(0, 10).map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif(existPhoneControl && this.state.ServiceType == \"PHONE\" )\r\n\t\t{\r\n\t\t\tthis.setState({ isConfirmAdrDialogOpenUpdate: true });\r\n\t\t}\r\n\t\telse{\r\n\t\tthis.setState({ isConfirmAdrDialogOpen: true });\r\n\t\t}\r\n\t};\r\n\t\r\n\tInsertOrUpdateeTransferClientSettings = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tlet {model, GatewayUrlTurnedOff} = this.state;\r\n\t\t\r\n\t\tmodel.gatewayUrlTurnedOff = GatewayUrlTurnedOff;\r\n\t\t\r\n\t\tProxy.POST(\"/bankapi/v1.0/BankInteracETransfer/UpdateETransferClientSettings\",\r\n\t\t\tmodel,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.hideAlert();\r\n\t\t\t\t\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", \"An error occurred while updating eTransfer Client Settings \" + responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Success\", \"eTransfer Client Settings updated successfully.\");\r\n\t\t\t\tthis.ClearData();\r\n\t\t\t\tthis.GetInteracUserDetail(model.ClientId);\r\n\t\t\t},\r\n\t\t\te => {\r\n\t\t\t\tthis.hideAlert();\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", \"An error occurred while updating eTransfer Client Settings\");\r\n\t\t\t}\r\n\t);\r\n\t};\r\n\t\r\n\tInsertOrUpdateIntearacUser = () => {\r\n\t\tthis.setState({ isConfirmAdrDialogOpen: false, isLoading: true });\r\n\t\tvar { model, MainUserEmail } = this.state;\r\n\r\n\t\tif (model.InteracEMail == MainUserEmail)\r\n\t\t\tmodel.IsClientMainAccount = true;\r\n\t\telse\r\n\t\t\tmodel.IsClientMainAccount = false;\r\n\r\n\t\tmodel.IsMainUser = false;\r\n\r\n\t\tmodel.InteracType = this.state.ServiceType;\r\n\r\n\t\tProxy.POST(\"/bankapi/v1.0/BankInteracETransfer/InsertOrUpdateInteracUser\",\r\n\t\t\tmodel,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.hideAlert();\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", \"An error occurred while interac request \" + responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Success\", \"Interac User created successfully.\");\r\n\t\t\t\tthis.ClearData();\r\n\t\t\t\tthis.GetInteracUserDetail(model.ClientId);\r\n\t\t\t},\r\n\t\t\te => {\r\n\t\t\t\tthis.hideAlert();\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", \"An error occurred while interac request \");\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({ isLoading: false, alert: this.hideAlert()} /> });\r\n\t\tthis.setState({});\r\n\t}\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tthis.setState(function (state) {\r\n\t\t\tvar model = state.model || {};\r\n\t\t\tvar accountSelectKey = this.state;\r\n\t\t\tvar vModel = state.vModel || {};\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\t\r\n\t\t\tif (name == \"MainUserEmail\" && data != null)\r\n\t\t\t\tvModel.MainUserEmailValid = !data.IsValid;\r\n\r\n\t\t\tif (name == \"InteracEMail\" && data != null)\r\n\t\t\t\tvModel.InteracEMailValid = !data.IsValid;\r\n\r\n\t\t\tif (name == \"SourceAccountId\" && data != null)\r\n\t\t\t\tmodel.ProgramId = data.ProgramId;\r\n\r\n\t\t\tif (name == \"ClientId\") {\r\n\t\t\t\taccountSelectKey = !accountSelectKey;\r\n\t\t\t\tmodel.StoreId = null;\r\n\t\t\t}\r\n\r\n\t\t\tif (name == \"PhoneCountryCodeId\" || name == \"PhoneNumber\") {\r\n\t\t\t\tmodel.InteracPhone = model.PhoneCountryCodeId + model.PhoneNumber;\r\n\t\t\t}\r\n\r\n\r\n\t\t\treturn { model: model, vModel: vModel, accountSelectKey };\r\n\t\t});\r\n\t\tif (name == \"ClientId\" && this.state.isBackOffice) {\r\n\t\t\tthis.GetInteracUserDetail(newValue);\r\n\t\t}\r\n\t}\r\n\r\n\thandleDelete = (id) => {\r\n\t\tif (id == null || id == 0)\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Record is invalid !\");\r\n\r\n\t\tthis.setState({ isConfirmDeleteDialogOpen: true, directDepositRegistrationId: id });\r\n\t}\r\n\r\n\tconfirmDelete = () => {\r\n\t\tthis.hideAlert();\r\n\t\tthis.showLoading();\r\n\t\tvar { model } = this.state;\r\n\t\tProxy.POST(\"/bankapi/v1.0/BankInteracETransfer/DeleteDirectDepositRegistration\",\r\n\t\t\tthis.state.directDepositRegistrationId,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.hideAlert();\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", \"An error occurred while interac request \" + responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.GetInteracUserDetail(model.ClientId);\r\n\t\t\t\tthis.hideAlert();\r\n\t\t\t},\r\n\t\t\te => {\r\n\t\t\t\tthis.hideAlert();\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", \"An error occurred while interac request \");\r\n\t\t\t}\r\n\t\t);\t\r\n\t}\r\n\r\n\tconfirmSetForDcRequestMoney = () => {\r\n\t\tthis.hideAlert();\r\n\t\tthis.showLoading();\r\n\t\t\r\n\t\tProxy.POST(\"/bankapi/v1.0/BankInteracETransfer/SetAutoDepositAccountForDcRequestMoney\",\r\n\t\t\t{ Id: this.state.autoDepositAccountIdForDcRequestMoney},\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.hideAlert(responseData);\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.GetInteracUserDetail(this.state.model.ClientId);\r\n\t\t\t\tthis.hideAlert();\r\n\t\t\t},\r\n\t\t\te => {\r\n\t\t\t\tthis.hideAlert();\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", \"An error occurred\");\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\thandleDeleteStore = (id) => {\r\n\t\tif (id == null || id == 0)\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Record is invalid !\");\r\n\r\n\t\tthis.setState({ isConfirmDeleteStoreDialogOpen: true, storeId: id });\r\n\t}\r\n\r\n\tconfirmDeleteStore = () => {\r\n\t\tthis.hideAlert();\r\n\t\tthis.showLoading();\r\n\t\tvar { model } = this.state;\r\n\t\tProxy.POST(\"/bankapi/v1.0/BankInteracETransfer/DeleteInteracStore\",\r\n\t\t\tthis.state.storeId,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.hideAlert();\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", \"An error occurred while interac request \" + responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.GetInteracUserDetail(model.ClientId);\r\n\t\t\t\tthis.hideAlert();\r\n\t\t\t},\r\n\t\t\te => {\r\n\t\t\t\tthis.hideAlert();\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", \"An error occurred while interac request \");\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tClearData = () => {\r\n\t\tvar initialModel = this.initialModel;\r\n\t\tinitialModel.InteracEMail = null;\r\n\t\tinitialModel.PhoneCountryCodeId = null;\r\n\t\tinitialModel.PhoneNumber = null;\r\n\t\tinitialModel.SourceAccountId = null;\r\n\t\tthis.setState({ alert: null, isLoading: false, model: this.initialModel, isConfirmMainUserDialogOpen: false, isConfirmAdrDialogOpen: false, isConfirmAdrDialogOpenUpdate: false, isConfirmDeleteDialogOpen: false, isConfirmStoreDialogOpen: false, isConfirmDeleteStoreDialogOpen: false });\r\n\t}\r\n\r\n\tInsertInteracStoreValidate = () => {\r\n\t\tvar ErrorList = [];\r\n\t\tconst { model, vModel } = this.state;\r\n\r\n\t\tif (model.ClientId == null || model.ClientId == 0) {\r\n\t\t\tvModel.ClientId = true;\r\n\t\t\tErrorList.push(\"Client cannot be be null !\");\r\n\t\t}\r\n\r\n\t\tif (model.MainUserEmail == null || model.MainUserEmail == undefined || model.MainUserEmail == \"\") {\r\n\t\t\tErrorList.push(\"Interac Main User Email must be defined !\");\r\n\t\t\tvModel.MainUserEmail = true;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (vModel.MainUserEmailValid) {\r\n\t\t\t\tErrorList.push(\"Interac Main User Email is invalid !\");\r\n\t\t\t\tvModel.MainUserEmail = true;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (model.StoreId == null || model.StoreId <= 0) {\r\n\t\t\tvModel.Store = true;\r\n\t\t\tErrorList.push(\"Store cannot be null !\");\r\n\t\t}\r\n\r\n\t\tthis.setState({ vModel });\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please control fields!\", ErrorList.slice(0, 10).map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tthis.setState({ isConfirmStoreDialogOpen: true });\r\n\t}\r\n\r\n\tInsertInteracStore = () => {\r\n\t\tthis.setState({ isConfirmAdrDialogOpen: false, isLoading: true });\r\n\t\tthis.setState({ isConfirmAdrDialogOpenUpdate: false, isLoading: true });\r\n\t\tvar { model, MainUserEmail } = this.state;\r\n\r\n\t\tif (model.InteracEMail == MainUserEmail)\r\n\t\t\tmodel.IsClientMainAccount = true;\r\n\t\telse\r\n\t\t\tmodel.IsClientMainAccount = false;\r\n\r\n\t\tmodel.IsMainUser = false;\r\n\r\n\t\tProxy.POST(\"/bankapi/v1.0/BankInteracETransfer/InsertInteracStore\",\r\n\t\t\tmodel,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.hideAlert();\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", \"An error occurred while interac request \" + responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Success\", \"Interac Store created successfully.\");\r\n\t\t\t\tthis.ClearData();\r\n\t\t\t\tthis.GetInteracUserDetail(model.ClientId);\r\n\t\t\t},\r\n\t\t\te => {\r\n\t\t\t\tthis.hideAlert();\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", \"An error occurred while interac request \");\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tValueChangedForServiceType = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\t\r\n\tValueChangedForGatewayUrl = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\r\n\tUpdateBulkEmailTemplate = () => {\r\n\t\tconst body = {\r\n\t\t\tBulkTemplateId: this.state.model.templateId,\r\n\t\t\tCustomerETransferId: this.state.storeList?.find(x => x.IsClientMainAccount && x.IsRecordValid)?.Id\r\n\t\t};\r\n\r\n\t\tconst clientId = this.state.model.ClientId;\r\n\r\n\t\tif(body.BulkTemplateId){\r\n\t\t\tProxy.POST(\"/bankapi/v1.0/BankInteracETransfer/UpdateBulkTemplateId\",\r\n\t\t\t\tbody,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tthis.hideAlert();\r\n\t\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", \"An error occurred. \" + responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.props.showMessage(\"success\", \"Success\", \"Bulk template Id is stored successfully\");\r\n\t\t\t\t\tthis.ClearData();\r\n\t\t\t\t\tthis.GetInteracUserDetail(clientId);\r\n\t\t\t\t},\r\n\t\t\t\te => {\r\n\t\t\t\t\tthis.hideAlert();\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", \"An error occurred while updating bulk template id\");\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\t\r\n\t}\r\n\r\n\thideAlert = () => { this.setState({ alert: null, isLoading: false, isConfirmMainUserDialogOpen: false, isConfirmAdrDialogOpen: false,isConfirmAdrDialogOpenUpdate:false, isConfirmStoreDialogOpen: false, isConfirmDeleteDialogOpen: false, isConfirmDeleteStoreDialogOpen: false, isConfirmDcRequestMoneyDialogOpen: false }); }\r\n\tshowLoading = () => { this.setState({ isLoading: true }); }\r\n\r\n\trender() {\r\n\t\tconst { model, isConfirmMainUserDialogOpen, isConfirmAdrDialogOpen, isConfirmAdrDialogOpenUpdate, isConfirmDeleteDialogOpen, isConfirmDcRequestMoneyDialogOpen, vModel, list, accountSelectKey, isBackOffice, isConfirmStoreDialogOpen, storeList, isConfirmDeleteStoreDialogOpen } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tDo you want to save this Interac main user?\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tDo you want to add this AutoDeposit registration?\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tThis email is already registered. Do you want to update this AutoDeposit registration?\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tDo you want to add this Store registration?\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tDo you want to delete this AutoDeposit registration record ?\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tDo you want to set this AutoDeposit account for DC Request Payment?\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t{/* Delete Store */}\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tDo you want to delete this Store registration record ?\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t this.ClearData(), Disabled: Disabled },\r\n\t\t\t\t\t{ Code: \"Search\", OnClick: () => this.GetInteracUserDetail(model.ClientId), Disabled: Disabled },\r\n\t\t\t\t\t{ Code: \"Submit\", OnClick: () => { this.UpdateBulkEmailTemplate(); this.InsertOrUpdateIntearacMainUserValidate() }, Disabled: Disabled }\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\tValue={model.ClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\tDisabled={!isBackOffice}\r\n\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.ClientId} />\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t{/* */}\r\n\t\t\t\t\t\t\t\t{/* {model.ClientId != null && model.ClientId > 0 && isBackOffice && model.MainUserEmail != null && model.MainUserEmail != \"\" &&\r\n\t\t\t\t\t\t\t\t\t\t `${d.StoreCode} - ${d.StoreName}`}\r\n\t\t\t\t\t\t\t\t\t\t\tValue={model.StoreId}\r\n\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\t\tSorted={{ Member: \"StoreName\" }}\r\n\t\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.Store} />} */}\r\n\t\t\t\t\t\t\t\t{/* */}\r\n\t\t\t\t\t\t\t\t{/* */}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t this.handleChange(name, value)}\r\n\t\t\t\t\t\t\t\t\t\tDisabled={!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t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t



\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t \"+\" + d.Code + \" (\" + d.Name + \")\"}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t



\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{/* {isBackOffice && model.MainUserEmail != null && model.MainUserEmail != \"\" && } */}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t { this.handleDelete(row.original.Id); }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={row.original.DeleteStatus == 2 ||\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(row.original.IsRegisteredToDirectDeposit != null\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& row.original.IsRegisteredToDirectDeposit == true\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& (row.original.DirectDepositReferenceNumber != null\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t|| row.original.DirectDepositReferenceNumber != undefined)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& row.original.IsDirectDepositRegistrationDeletion == true\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t) ? true :\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\trow.original.DeleteStatus == 1 ? false :\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\trow.original.DeleteStatus == 3 ||\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(row.original.DirectDepositReferenceNumber == null\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& row.original.DirectDepositRegistrationDate == null\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& (row.original.DirectDepositRegistrationStatus == 0 || row.original.DirectDepositRegistrationStatus == null)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& (row.original.IsRegisteredToDirectDeposit == false || row.original.IsRegisteredToDirectDeposit == null)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& (row.original.IsDirectDepositRegistrationDeletion == false || row.original.IsDirectDepositRegistrationDeletion == null)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? true : false\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t { this.setState({ isConfirmDcRequestMoneyDialogOpen: true, autoDepositAccountIdForDcRequestMoney: row.original.Id }); }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={row.original.DeleteStatus == 2 ||\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(row.original.IsRegisteredToDirectDeposit != null\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& row.original.IsRegisteredToDirectDeposit == true\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& (row.original.DirectDepositReferenceNumber != null\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t|| row.original.DirectDepositReferenceNumber != undefined)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& row.original.IsDirectDepositRegistrationDeletion == true\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t) ? true :\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\trow.original.DeleteStatus == 1 ? false :\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\trow.original.DeleteStatus == 3 ||\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(row.original.DirectDepositReferenceNumber == null\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& row.original.DirectDepositRegistrationDate == null\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& (row.original.DirectDepositRegistrationStatus == 0 || row.original.DirectDepositRegistrationStatus == null)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& (row.original.IsRegisteredToDirectDeposit == false || row.original.IsRegisteredToDirectDeposit == null)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& (row.original.IsDirectDepositRegistrationDeletion == false || row.original.IsDirectDepositRegistrationDeletion == null)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? true : false\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Registration\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row=>{\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
{(row.original.ServiceType == \"PHONE\") ? row.original.Phone: row.original.EMail}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Destination Account\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => {\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
{row.original.WalletAccount.AccountName + \" - \" + row.original.WalletAccount.AccountNumber}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"DCRP\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => {\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
{row.original.IsDcMoneyRequest ? \"✔\" : \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"AD Ref #\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"DirectDepositReferenceNumber\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Date\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Status\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\trow.original.DeleteStatus == 2 ||\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(row.original.IsRegisteredToDirectDeposit != null\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& row.original.IsRegisteredToDirectDeposit == true\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& (row.original.DirectDepositReferenceNumber != null\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t|| row.original.DirectDepositReferenceNumber != undefined)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& row.original.IsDirectDepositRegistrationDeletion == true)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? \"Pending\" :\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\trow.original.DeleteStatus == 1 ? \"Active\" :\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\trow.original.DeleteStatus == 3 ||\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(row.original.DirectDepositReferenceNumber == null\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& row.original.DirectDepositRegistrationDate == null\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& (row.original.DirectDepositRegistrationStatus == 0 || row.original.DirectDepositRegistrationStatus == null)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& (row.original.IsRegisteredToDirectDeposit == false || row.original.IsRegisteredToDirectDeposit == null)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& (row.original.IsDirectDepositRegistrationDeletion == false || row.original.IsDirectDepositRegistrationDeletion == null))\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? \"Deleted\" : \"Active\")}
\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_Bank_Account} />\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t\t\t { this.handleDeleteStore(row.original.Id); }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={!isBackOffice || row.original.IsClientMainAccount} />\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Date\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Store Name\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"Store.StoreName\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{row.original.IsClientMainAccount == true ? \"Main Store\" : \"SubStore\"}
\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"E-Mail\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"EMail\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Store Code\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"CustomerInteractId\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Store Available Limit\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"StoreAvailableLimit\",\r\n\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_Bank_Account} />\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCreateInteracETransferUser.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func\r\n};\r\n\r\nexport default withArtifex(CreateInteracETransferUser, {});\r\n","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { DeleteIcon, EditIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport FlinksAccountPreviewCard from \"views/BankAccount/LinkedAccounts/FlinksAccountPreviewCard\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDialog, GenericDialogActions, GenericGrid, GenericLabel } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { ProgramCodes } from \"views/Constants/Constant\";\r\n\r\nclass LinkedAccounts extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tflinksAccountModel: {},\r\n\t\t\tlinkedModel: {},\r\n\t\t\tcustomerLinkedAccounts: [],\r\n\t\t\tisFlinksLoginDialog: false,\r\n\t\t\tisLoading: false,\r\n\t\t\tflinksLoginModel: {},\r\n\t\t\tflinksAccounts: [],\r\n\t\t\tflinksResponse: {}\r\n\t\t};\r\n\t}\r\n\r\n\r\n\r\n\tcomponentDidMount() {\r\n\t\t//this.props.hideSidebar();\r\n\t\tthis.props.setAppLeftTitle(\"Create Linked Account\");\r\n\t\tthis.props.setAppCenterTitle(\"BANKING\");\r\n\r\n\t\tthis.GetLinkedAccounts();\r\n\r\n\t\tvar flinksHandle = this.HandleFlinksIframeResponse;\r\n\t\twindow.addEventListener('message', function (e) {\r\n\t\t\tflinksHandle(e.data)\r\n\t\t})\r\n\t}\r\n\tHandleFlinksIframeResponse = (data) => {\r\n\t\tif (data != null) {\r\n\t\t\t// if (data.step == \"INSTITUTION_SELECTED\") {\r\n\r\n\t\t\t// }\r\n\t\t\tif (data.institution != null && data.loginId != null && data.requestId != null) {\r\n\t\t\t\tthis.setState({ flinksLoginModel: data });\r\n\r\n\t\t\t\tthis.setState({ isFlinksLoginDialog: false });\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Account Linked Successfully !\");\r\n\t\t\t\tthis.FlinksAccountSummaryRequest();\r\n\t\t\t}\r\n\t\t}\r\n\t\tconsole.log(data);\r\n\t}\r\n\tSaveFlinksModel = () => {\r\n\t\tvar data = this.FlinksDataModelParse(this.state.flinksAccountModel);\r\n\t\tif (data == null || data.AccountId == null || data.AccountId == \"\") {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", \"Account must be selected !\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/CustomerLinkedAccount/Update\",\r\n\t\t\tdata,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.ClearData();\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Account saved succesfully !\");\r\n\t\t\t\tthis.GetLinkedAccounts();\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tFlinksDataModelParse = (model) => {\r\n\t\tvar temp = {};\r\n\t\tconst flinks = { ...this.state.flinksResponse };\r\n\t\tif (flinks != null) {\r\n\t\t\ttemp.HttpStatusCode = flinks.HttpStatusCode;\r\n\t\t\ttemp.Institution = flinks.Institution;\r\n\t\t\ttemp.RequestId = flinks.RequestId; // RequestId\r\n\t\t\ttemp.Tag = flinks.Tag;\r\n\t\t}\r\n\t\tif (flinks != null && flinks.Login != null) {\r\n\t\t\ttemp.Username = flinks.Login.Username;\r\n\t\t\ttemp.LastRefresh = flinks.Login.LastRefresh;\r\n\t\t\ttemp.Type = flinks.Login.Type;\r\n\t\t\ttemp.LoginId = flinks.Login.Id; // LoginId\r\n\t\t}\r\n\t\tif (model != null) {\r\n\t\t\ttemp.Title = model.Title;\r\n\t\t\ttemp.AccountNumber = model.AccountNumber;\r\n\t\t\ttemp.Category = model.Category;\r\n\t\t\ttemp.Currency = model.Currency;\r\n\t\t\ttemp.AccountId = model.Id; // AccountId\r\n\t\t\ttemp.TransitNumber = model.TransitNumber;\r\n\t\t\ttemp.InstitutionNumber = model.InstitutionNumber; \r\n\t\t}\r\n\t\tif (model != null && model.Balance != null) {\r\n\t\t\ttemp.AvailableBalance = model.Balance.Available;\r\n\t\t\ttemp.CurrentBalance = model.Balance.Current;\r\n\t\t\ttemp.Limit = model.Balance.Limit;\r\n\t\t}\r\n\t\tif (model != null && model.Holder != null) {\r\n\t\t\ttemp.Name = model.Holder.Name;\r\n\t\t\ttemp.Email = model.Holder.Email;\r\n\t\t\ttemp.PhoneNumber = model.Holder.PhoneNumber;\r\n\t\t}\r\n\t\tif (model != null && model.Holder != null && model.Holder.Address != null) {\r\n\t\t\ttemp.CivicAddress = model.Holder.Address.CivicAddress;\r\n\t\t\ttemp.City = model.Holder.Address.City;\r\n\t\t\ttemp.Province = model.Holder.Address.Province;\r\n\t\t\ttemp.PostalCode = model.Holder.Address.PostalCode;\r\n\t\t\ttemp.Pobox = model.Holder.Address.POBox;\r\n\t\t\ttemp.Country = model.Holder.Address.Country;\r\n\t\t}\r\n\r\n\r\n\r\n\t\treturn temp;\r\n\t}\r\n\tFlinksAccountSummaryRequest = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/integrationapi/v1.0/Flinks/GetAccountsSummary\",\r\n\t\t\tthis.state.flinksLoginModel,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tflinksAccounts: responseData.Item.Accounts,\r\n\t\t\t\t\t\tflinksResponse: responseData.Item\r\n\t\t\t\t\t});\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ flinksAccounts: [], flinksResponse: {} });\r\n\t\t\t\t}\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Accounts fetched succesfully !\");\r\n\t\t\t\tthis.setState({ isLoading: false, isFlinksLoginDialog: false });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tSelectedRowChange = (e, index) => {\r\n\t\tconst model = this.state.flinksAccounts[index];\r\n\t\tthis.setState({ flinksAccountModel: model });\r\n\t}\r\n\thandleChangeFlinksLogin = (name, newValue, data) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.flinksLoginModel || {};\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\treturn { flinksLoginModel: model };\r\n\t\t});\r\n\t}\r\n\t\r\n\tGetLinkedAccounts = () => {\r\n\t\t//GetAllCustomerLinkedAccountByCustomerIdOp class\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/CustomerLinkedAccount/GetByCustomerId\",\r\n\t\t\t{},\r\n\t\t\tresponseData => {\r\n\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.setState({ customerLinkedAccounts: responseData.Item || [] });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error !\", \"An error occurred while requesting data \" + error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tDeleteLinkedAccount = (model) => {\r\n\t\tif (model == null || model.Id == null || model.Id == 0) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", \"Account must be selected for delete operation !\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.GET(\r\n\t\t\t\"/bankapi/v1.0/CustomerLinkedAccount/Delete/Id?Id=\" + model.Id,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Account deleted !\");\r\n\t\t\t\tthis.ClearData();\r\n\t\t\t\tthis.GetLinkedAccounts();\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\thandleKeyPress = (e) => {\r\n\t\tif (e.key == \"Enter\") {\r\n\t\t\tthis.FlinksAccountSummaryRequest();\r\n\t\t}\r\n\t}\r\n\tshowQuestionMessage = (message, model) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} OnConfirm={() => this.DeleteLinkedAccount(model)} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\tClearData = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t\tmodel: {},\r\n\t\t\tisFlinksLoginDialog: false,\r\n\t\t\tflinksLoginModel: {},\r\n\t\t\tflinksAccountModel: {}\r\n\t\t});\r\n\t}\r\n\r\n\tHandleClickConnect = () => {\r\n\t\tthis.setState({ isFlinksLoginDialog: true });\r\n\t};\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { flinksAccountModel, flinksAccounts, customerLinkedAccounts } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\r\n\t\t\t\t this.ClearData(), Disabled: Disabled },\r\n\t\t\t\t\t{ Code: \"Submit\", OnClick: () => this.SaveFlinksModel(), Disabled: Disabled }\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\tAccounts\r\n\t\t\t\t\t

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t this.setState({ flinksAccountModel: row.original })} />\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\tsortable: false,\r\n\t\t\t\t\t\t\t\t\tfilterable: false,\r\n\t\t\t\t\t\t\t\t\twidth: 100\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Title\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"Title\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Account Number\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"AccountNumber\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Balance\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"Balance\",\r\n\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t
{row.original.Balance == null ? \"\" : row.original.Balance.Current == null || 0 ? \"\" : Formatter.FormatMoney(row.original.Balance.Current)}
\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Category\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"Category\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Currency\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"Currency\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Name\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"Holder.Name\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Email\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"Holder.Email\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Phone\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"Holder.PhoneNumber\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Address\",\r\n\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t
{row.original.Holder == null ? \"\" : row.original.Holder.Address == null ? \"\" :\r\n\t\t\t\t\t\t\t\t\t\t\trow.original.Holder.Address.CivicAddress + \" \" +\r\n\t\t\t\t\t\t\t\t\t\t\trow.original.Holder.Address.PostalCode + \" \" +\r\n\t\t\t\t\t\t\t\t\t\t\trow.original.Holder.Address.City + \" \" +\r\n\t\t\t\t\t\t\t\t\t\t\trow.original.Holder.Address.Country + \" \"\r\n\t\t\t\t\t\t\t\t\t\t}
\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\tRowSelected={index => {\r\n\t\t\t\t\t\t\t\tthis.SelectedRowChange(0, index);\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_Bank_Account}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t

Client Linked Accounts

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t this.showQuestionMessage(\"Delete this record !\", row.original)} />\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\tsortable: false,\r\n\t\t\t\t\t\t\t\t\tfilterable: false,\r\n\t\t\t\t\t\t\t\t\twidth: 100\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Title\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"Title\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Account Number\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"AccountNumber\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Balance\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"CurrentBalance\",\r\n\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t
{row.original.CurrentBalance == null ? \"\" : Formatter.FormatMoney(row.original.CurrentBalance)}
\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Currency\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"Currency\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Name\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"Name\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Email\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"Email\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Phone\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"PhoneNumber\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Address\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"CivicAddress\"\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_Bank_Account} />\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t \t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nLinkedAccounts.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func\r\n};\r\n\r\nexport default withArtifex(LinkedAccounts, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericRadioInput,GenericGrid,GenericLabel,GenericDialog,GenericDialogActions, GenericSelectInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { BankingAccountTypes, ClientType, ProgramCodes, GridColumnType } from \"views/Constants/Constant.js\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport MenuAuthorityRightHelper from \"core/MenuAuthorityRightHelper\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Select from \"react-select\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\n\r\nclass AccountBalanceSummary extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.isBackoffice = ClientHelper.IsBackOffice();\r\n\t\tthis.defaultModel = {\r\n\t\t\tUniqueClientId: 0\r\n\t\t};\r\n\t\tthis.state = {\r\n\t\t\tvModel: {},\r\n\t\t\tsearchModel: { ...this.defaultModel },\r\n\t\t\tcustomerTransactions: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tClientTypeParameter: {}\r\n\t\t};\r\n\t\tthis.trxTable = React.createRef();\r\n\t\tthis.MenuAuthorityRightHelper = new MenuAuthorityRightHelper();\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppCenterTitle(\"BANKING\");\r\n\r\n\t\tif (!this.isBackoffice) {\r\n\t\t\tthis.GetClientType();\r\n\t\t\tvar tempDefaultModel = this.defaultModel;\r\n\t\t\ttempDefaultModel.UniqueClientId = ClientHelper.GetClientRowId();\r\n\t\t\tthis.setState(function (state, props) {\r\n\t\t\t\tvar model = state.searchModel || {};\r\n\t\t\t\tmodel.UniqueClientId = tempDefaultModel.UniqueClientId;\r\n\t\t\t\treturn { searchModel: model };\r\n\t\t\t});\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.props.setAppCenterTitle(\"WALLETS\");\r\n\r\n\t\t}\r\n\t\tthis.props.setAppLeftTitle(\"Account Summary Balance\");\r\n\r\n\t}\r\n\r\n\tRenderAccountTypeParameter = (data) => {\r\n\t\tconst parameter = { ...this.state.ClientTypeParameter };\r\n\t\tif (data == null) {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t\tif (data.AccountCode == null || data.AccountCode == \"\") {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\t\tif (data.AccountCode != BankingAccountTypes.PrimaryAccount) {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\t\tif (data.ProgramCode == null || data.ProgramCode == \"\") {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\t\tif (data.ProgramCode != ProgramCodes.Bank_Programs_Bank_Account) {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\t\tif (parameter.ParameterValue == ClientType.Corporate || parameter.ParameterValue == ClientType.SalesAgentCorporate) {\r\n\t\t\treturn \"Corporate Wallet\";\r\n\t\t} else if (parameter.ParameterValue == ClientType.Personal || parameter.ParameterValue == ClientType.SalesAgentPersonal) {\r\n\t\t\treturn \"Individual Wallet\";\r\n\t\t} else {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\r\n\t}\r\n\tGetClientType = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/BankCustomer/GetClientType\",\r\n\t\t\t{},\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ ClientTypeParameter: responseData.Item });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\thandleChangeSearchModel = (name, newValue) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.searchModel || {};\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\treturn { searchModel: model };\r\n\t\t});\r\n\t}\r\n\tPerformSearch = () => {\r\n\t\tif (!this.IsValid())\r\n\t\t\treturn;\r\n\t\tthis.BankAccountTransactions();\r\n\t}\r\n\tIsValid = () => {\r\n\t\tvar temp = { ...this.state.searchModel };\r\n\t\tconst vModel = this.state.vModel;\r\n\r\n\t\tvModel.SearchDate = temp.SearchDate == null || temp.SearchDate == \"\";\r\n\t\tif (vModel.SearchDate) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Date must be selected for search operation !\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ vModel });\r\n\t\treturn true;\r\n\t}\r\n\r\n\tBankAccountTransactions = () => {\r\n\t\tlet temp = { ...this.state.searchModel };\r\n\t\ttemp.UniqueClientId = temp.UniqueClientId == null ? 0 : temp.UniqueClientId;\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Transaction/AccountBalanceSummaryList\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ customerTransactions: [] });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (responseData.Item != null && responseData.Item.length > 0) {\r\n\t\t\t\t\t\tthis.setState({ customerTransactions: responseData.Item });\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tthis.setState({ customerTransactions: [] });\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false, customerTransactions: [] });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\tClearData = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null, isLoading: false, searchModel: { ...this.defaultModel }, customerTransactions: [],\r\n\t\t});\r\n\r\n\t}\r\n\thandleChangeFilterPanel = panel => (event, expanded) => {\r\n\t\tthis.setState({\r\n\t\t\tactive: expanded ? panel : -1\r\n\t\t});\r\n\t};\r\n\r\n\tRenderStyle = () => {\r\n\t\treturn {\r\n\t\t\tcolumn: \"TransactionType\",\r\n\t\t\tcondition: \"Received\",\r\n\t\t\tstyle: { fontWeight: \"600\" },\r\n\t\t\tprefix: [\"+\", \"\"]\r\n\t\t};\r\n\t}\r\n\tBalanceRenderStyle = () => {\r\n\t\treturn {\r\n\t\t\tcolumn: \"TransactionType\",\r\n\t\t\tcondition: \"Received\",\r\n\t\t\tstyle: { fontWeight: \"600\" },\r\n\t\t\tprefix: [\"\", \"\"]\r\n\t\t};\r\n\t}\r\n\r\n\r\n\tExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.accessor != \"Actions\" && c.accessor != \"ED\" && (c.show == undefined || c.show)) {\r\n\t\t\t\ttrxColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: trxColumns, ExportSelectedColumns: trxColumns });\r\n\t}\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tif (!this.IsValid())\r\n\t\t\treturn;\r\n\r\n\t\tthis.ShowConfirmMessage(\"question\", \"Long Process Warning\", \"This process may take a while. Continue ?\", () => {\r\n\t\t\tthis.hideAlert();\r\n\t\t\tconst { searchModel } = this.state;\r\n\r\n\t\t\t// Add jsonFile\r\n\t\t\tvar jsonColList = [];\r\n\r\n\t\t\tvar trxColumns = {};\r\n\t\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\t\ttrxColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t\t});\r\n\t\t\tjsonColList.push(trxColumns);\r\n\r\n\t\t\tsearchModel[\"jsonFile\"] = {\r\n\t\t\t\tcolmns: jsonColList,\r\n\t\t\t\tformat: this.state.ExportReportType,\r\n\t\t\t\ttitle: \"Account Summary Balance Report\"\r\n\t\t\t};\r\n\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\t\"/bankapi/v1.0/Transaction/AccountBalanceSummaryReportExportList\",\r\n\t\t\t\tsearchModel,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terrorMessage => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t\t},\r\n\t\t\t\tthis.props.showMessage\r\n\t\t\t);\r\n\t\t});\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { searchModel, vModel, customerTransactions, alert } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t this.ClearData(), Disabled: Disabled },\r\n\t\t\t\t\t\t\t{ Code: \"Search\", OnClick: () => this.PerformSearch(), Disabled: Disabled },\r\n\t\t\t\t\t\t\t{ Code: \"Export\", OnClick: () => this.ExportClick(), Disabled: Disabled }\r\n\t\t\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{(this.isBackoffice) &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tValue={searchModel.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChangeSearchModel}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tCanClear />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{row.value==1?\"Yes\":\"No\"}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Wallet Type\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"AccountType\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{this.RenderAccountTypeParameter(row.original)}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Total Received Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TotalDebitAmount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Total Received Count\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TotalDebitCount\",\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Total Sent Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TotalCreditAmount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Total Sent Count\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TotalCreditCount\",\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"End of Day Balance\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TotalBalanceAmount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\t\t\tIsSorted={false}\r\n\t\t\t\t\t\t\t\t\t\t\tPageSize={50}\r\n\t\t\t\t\t\t\t\t\t\t\tShowPagination={true}\r\n\t\t\t\t\t\t\t\t\t\t\tref={this.trxTable}\r\n\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nAccountBalanceSummary.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func\r\n};\r\n\r\n\r\nexport default AccountBalanceSummary;","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { DeleteIcon, DetailIcon, EftIcon, ETransferIcon } from \"core/Icons\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericCheckInput, GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle, GenericLabel, GenericRadioInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton.jsx\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { ActionCodes, BankingAccountTypes, ClientType, MenuCodes, ProgramCodes, TransactionType, GridColumnType } from \"views/Constants/Constant.js\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport moment from \"moment\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport Select from \"react-select\";\r\n\r\nclass AllAccountMovements extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.isBackoffice = ClientHelper.IsBackOffice();\r\n\t\tthis.isClient = ClientHelper.IsClient();\r\n\t\tlet IsCallCenter = this.props.MenuCode === MenuCodes.ClientAccountActivities;\r\n\t\tlet IsSettlement = this.props.MenuCode == MenuCodes.Backoffice_Accounts;\r\n\r\n\t\tthis.state = {\r\n\t\t\tcheckedAccounts: [],\r\n\t\t\tcustomerAccountList: [],\r\n\t\t\tsearchModel: {\r\n\t\t\t\tIsRequiredUniqueClientId: true,\r\n\t\t\t\tIsRequiredDate: true,\r\n\t\t\t\tIsRequiredStatementPeriod: true,\r\n\t\t\t\tIsInvalidStatementPeriod: false,\r\n\t\t\t\tIsInvalidFromDate: false,\r\n\t\t\t\tIsInvalidToDate: false,\r\n\t\t\t\tMSTOffset: DateHelper.GetDateTimeMst().format(\"Z\"),\r\n\t\t\t\tUseMstTimezone: false,\r\n\t\t\t\tUniqueClientId: this.isClient ? ClientHelper.GetClientRowId() : null,\r\n\t\t\t},\r\n\t\t\tIsTxnDetailOpen: false,\r\n\t\t\tTxnDetail: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tClientTypeParameter: {},\r\n\t\t\tkModel: {}\r\n\t\t};\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\twidth: 100,\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"ED\",\r\n\t\t\t\tCell: d => (\r\n\t\t\t\t\t this.setState({ IsTxnDetailOpen: true, TxnDetail: d.original })} />\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\tshow: !IsCallCenter\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\ttype: GridColumnType.DateTimeUtc,\r\n\t\t\t\tstyle: this.RenderStyle()\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"UniqueClientName\",\r\n\t\t\t\twidth: 120,\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value ?? \" - \"}
\r\n\t\t\t\t),\r\n\t\t\t\tshow: IsSettlement\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Channel Name\",\r\n\t\t\t\taccessor: \"ChannelType\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Fee Type\",\r\n\t\t\t\taccessor: \"FeeTypeDesc\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value == 0 ? \"-\" : row.value ?? \" - \"}

\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Received / Sent\",\r\n\t\t\t\taccessor: \"TransactionType\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"Amount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tstyle: this.RenderStyle(),\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Remaining Balance\",\r\n\t\t\t\taccessor: \"RemainingBalance\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tstyle: this.BalanceRenderStyle(),\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Currency\",\r\n\t\t\t\taccessor: \"SourceCurrencyCode\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"From Account Number\",\r\n\t\t\t\taccessor: \"SourceAccountNumber\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value == 0 ? \"-\" : row.value ?? \" - \"}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\twidth: 180,\r\n\t\t\t\tHeader: \"From Account\",\r\n\t\t\t\taccessor: \"SourceAccountName\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\twidth: 180,\r\n\t\t\t\tHeader: \"To Account\",\r\n\t\t\t\taccessor: \"DestinationAccountName\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"To Account Number\",\r\n\t\t\t\taccessor: \"DestinationAccountNumber\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value == 0 ? \"-\" : row.value ?? \" - \"}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Destination Account Owner Name\",\r\n\t\t\t\taccessor: \"DestinationCustomerName\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value ?? \" - \"}
\r\n\t\t\t\t),\r\n\t\t\t\tshow: !IsSettlement\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"SenderBank\",\r\n\t\t\t\taccessor: \"SenderBank\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t),\r\n\t\t\t\tshow: !IsSettlement\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"SenderName\",\r\n\t\t\t\taccessor: \"SenderName\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t), show: !IsSettlement\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reference Number\",\r\n\t\t\t\taccessor: \"ReferenceNumber\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Interac Reference Number\",\r\n\t\t\t\taccessor: \"InteracReferenceNumber\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\twidth: 250,\r\n\t\t\t\tHeader: \"Description\",\r\n\t\t\t\taccessor: \"SummaryDescription\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t)\r\n\t\t\t},\r\n\r\n\t\t];\r\n\r\n\t\tthis.trxTable = React.createRef();\r\n\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\r\n\t\tif (this.props.MenuCode == MenuCodes.Backoffice_Accounts) {\r\n\t\t\tthis.props.setAppLeftTitle(\"Settlement Accounts Activities\");\r\n\t\t\tthis.GetCustomerBankAccounts(true);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.props.setAppLeftTitle(\"Client Accounts Activities\");\r\n\r\n\t\t}\r\n\r\n\t\tif (!this.isBackoffice) {\r\n\t\t\tthis.props.setAppCenterTitle(\"BANKING\");\r\n\t\t\tthis.GetCustomerBankAccounts(true);\r\n\t\t\tthis.GetClientType();\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.props.setAppCenterTitle(\"ACCOUNTS\");\r\n\t\t}\r\n\r\n\t\tthis.setState({ loadingCompleted: true });\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t\tvar trxColumns = [];\r\n\t\tif (value === \"SpecialPDF\") {\r\n\t\t\tconst newColumn = {\r\n\t\t\t\tcolumntype: \"undefined\",\r\n\t\t\t\ttitle: \"DATE\",\r\n\t\t\t\ttype: \"date\",\r\n\t\t\t\tvalue: \"TransactionDatePDF\"\r\n\t\t\t };\r\n\r\n\t\t\t trxColumns.push(newColumn);\r\n\r\n\t\t\t const newColumn2 = {\r\n\t\t\t\tcolumntype: \"undefined\",\r\n\t\t\t\ttitle: \"DESCRIPTION\",\r\n\t\t\t\ttype: \"undefined\",\r\n\t\t\t\tvalue: \"DescriptionPDF\"\r\n\t\t\t };\r\n\r\n\t\t\t trxColumns.push(newColumn2);\r\n\r\n\t\t\t const newColumn3 = {\r\n\t\t\t\tcolumntype: \"money\",\r\n\t\t\t\ttitle: \"WITHDRAWALS\",\r\n\t\t\t\ttype: \"money\",\r\n\t\t\t\tvalue: \"Withdrawals\"\r\n\t\t\t };\r\n\r\n\t\t\t trxColumns.push(newColumn3);\r\n\r\n\t\t\t const newColumn4 = {\r\n\t\t\t\tcolumntype: \"money\",\r\n\t\t\t\ttitle: \"DEPOSITS\",\r\n\t\t\t\ttype: \"money\",\r\n\t\t\t\tvalue: \"Deposits\"\r\n\t\t\t };\r\n\r\n\t\t\t trxColumns.push(newColumn4);\r\n\t\t\t \r\n\t\t\t const newColumn5 = {\r\n\t\t\t\tcolumntype: \"money\",\r\n\t\t\t\ttitle: \"BALANCE\",\r\n\t\t\t\ttype: \"money\",\r\n\t\t\t\tvalue: \"RemainingBalancePDF\"\r\n\t\t\t };\r\n\r\n\t\t\t trxColumns.push(newColumn5);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tthis.trxTable.current.props.Columns.forEach(c => {\r\n\t\t\t\tif (c.accessor != \"Actions\" && c.accessor != \"ED\" && (c.show == undefined || c.show)) {\r\n\t\t\t\t\ttrxColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t\t}\r\n\t\t\t}, this);\r\n\t\t}\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: trxColumns, ExportSelectedColumns: trxColumns });\r\n\t}\r\n\t\r\n\tTrxFunc = (data) => {\r\n\r\n\t\tif (data == null) {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t\tif (data.ParameterValue == TransactionType.Debit) {\r\n\t\t\treturn \"Received\";\r\n\t\t}\r\n\t\tif (data.ParameterValue == TransactionType.Credit) {\r\n\t\t\treturn \"Sent\";\r\n\t\t}\r\n\t\treturn \"\";\r\n\r\n\t}\r\n\tRenderAccountTypeParameter = (data) => {\r\n\t\tconst parameter = { ...this.state.ClientTypeParameter };\r\n\t\tif (data == null) {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t\tif (data.AccountCode == null || data.AccountCode == \"\") {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\t\tif (data.AccountCode != BankingAccountTypes.PrimaryAccount) {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\t\tif (data.ProgramCode == null || data.ProgramCode == \"\") {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\t\tif (data.ProgramCode != ProgramCodes.Bank_Programs_Bank_Account) {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\r\n\t\tif (parameter.ParameterValue == ClientType.Corporate || parameter.ParameterValue == ClientType.SalesAgentCorporate) {\r\n\t\t\treturn \"Corporate Account\";\r\n\t\t} else if (parameter.ParameterValue == ClientType.Personal || parameter.ParameterValue == ClientType.SalesAgentPersonal) {\r\n\t\t\treturn \"Individual Account\";\r\n\t\t} else {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\r\n\t}\r\n\tGetClientType = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/BankCustomer/GetClientType\",\r\n\t\t\t{},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ ClientTypeParameter: responseData.Item });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\thandleChangeSearchModel = (name, newValue) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.searchModel || {};\r\n\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\tif (name == \"CheckAllAccounts\" && newValue == true) {\r\n\t\t\t\tconst list = this.state.customerAccountList;\r\n\t\t\t\tthis.setState({ checkedAccounts: list });\r\n\t\t\t} else if (name == \"CheckAllAccounts\" && newValue == false) {\r\n\t\t\t\tthis.setState({ checkedAccounts: [] });\r\n\t\t\t}\r\n\r\n\t\t\tif (name == \"UniqueClientId\" && newValue !== undefined && newValue != null) {\r\n\t\t\t\tthis.GetCustomerBankAccounts(true);\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tcustomerAccountList: [], checkedAccounts: []\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t\telse if (name == \"UniqueClientId\" && (newValue == undefined || newValue == null)) {\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tcheckedAccounts: [], customerAccountList: []\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t\tif (name == \"Amount\") {\r\n\t\t\t\tmodel.MinAmount = newValue;\r\n\t\t\t\tmodel.MaxAmount = newValue;\r\n\t\t\t}\r\n\r\n\t\t\tif (name == \"ReferenceNumber\") {\r\n\r\n\t\t\t\tlet hasReferenceNumberSearch = model[\"ReferenceNumber\"]?.length > 0;\r\n\r\n\t\t\t\tmodel.IsRequiredStatementPeriod = !hasReferenceNumberSearch;\r\n\t\t\t\tmodel.IsRequiredDate = !hasReferenceNumberSearch;\r\n\t\t\t\tmodel.IsRequiredUniqueClientId = !hasReferenceNumberSearch;\r\n\t\t\t}\r\n\r\n\t\t\tif (name == \"StatementPeriod\" || name == \"ToDate\" || name == \"FromDate\") {\r\n\r\n\t\t\t\tif (model.StatementPeriod == undefined || model.StatementPeriod == null || model.StatementPeriod == \"\") {\r\n\t\t\t\t\tmodel.StatementControl = false;\r\n\t\t\t\t\tmodel.IsRequiredStatementPeriod = true;\r\n\t\t\t\t\tmodel.IsRequiredDate = true;\r\n\t\t\t\t\tthis.setState({ searchModel: model });\r\n\r\n\t\t\t\t\tif ((model.ToDate == undefined || model.ToDate == \"\" || model.ToDate == null) && (model.FromDate == undefined || model.FromDate == \"\" || model.FromDate == null)) {\r\n\r\n\t\t\t\t\t\tmodel.IsInvalidFromDate = false;\r\n\t\t\t\t\t\tmodel.IsInvalidToDate = false;\r\n\r\n\t\t\t\t\t\tmodel.DateControl = false;\r\n\t\t\t\t\t\tthis.setState({ searchModel: model });\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\r\n\t\t\t\t\t\tmodel.StatementControl = true;\r\n\t\t\t\t\t\tmodel.DateControl = false;\r\n\t\t\t\t\t\tmodel.IsRequiredStatementPeriod = false;\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmodel.DateControl = true;\r\n\t\t\t\t\tmodel.IsInvalidFromDate = false;\r\n\t\t\t\t\tmodel.IsInvalidToDate = false;\r\n\t\t\t\t\tmodel.IsRequiredDate = false;\r\n\t\t\t\t\tthis.setState({ searchModel: model });\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn { searchModel: model };\r\n\t\t});\r\n\t}\r\n\tHandleCheckCustomerAccounts = (e, x) => {\r\n\r\n\t\tconst { checkedAccounts } = this.state;\r\n\t\tvar temp = true;\r\n\r\n\t\tconst items = checkedAccounts.map((item, key) => {\r\n\t\t\tif (item.Id == x.Id) {\r\n\t\t\t\tcheckedAccounts.splice(key, 1);\r\n\t\t\t\ttemp = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t);\r\n\r\n\t\tif (checkedAccounts.length == 0 && temp) { checkedAccounts.push(x); }\r\n\t\telse if (temp) { checkedAccounts.push(x); }\r\n\r\n\t\tthis.setState({ checkedAccounts });\r\n\r\n\t}\r\n\tIsValid = () => {\r\n\t\tvar temp = { ...this.state.searchModel };\r\n\t\tvar kModel = { ...this.state.kModel };\r\n\t\tlet IsSettlement = this.props.MenuCode == MenuCodes.Backoffice_Accounts;\r\n\t\tif (!IsSettlement) {\r\n\r\n\t\t\tif (this.isBackoffice) {\r\n\t\t\t\tif (temp.IsRequiredUniqueClientId && temp.UniqueClientId == null || temp.UniqueClientId == \"\") {\r\n\t\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \" Client must be defined\");\r\n\t\t\t\t\tkModel.UniqueClientId = true;\r\n\t\t\t\t\tthis.setState({ kModel });\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tkModel.UniqueClientId = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.setState({ kModel });\r\n\r\n\t\tif ((temp.IsRequiredStatementPeriod || temp.IsRequiredDate)\r\n\t\t\t&&\r\n\t\t\t(temp.StatementPeriod == undefined || temp.StatementPeriod == null || temp.StatementPeriod == \"\")\r\n\t\t\t&&\r\n\t\t\t(temp.FromDate == null || temp.FromDate == undefined || temp.FromDate == \"\")\r\n\t\t\t&&\r\n\t\t\t(temp.ToDate == null || temp.ToDate == undefined || temp.ToDate == \"\")) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Please select Statement Period or Date Interval\");\r\n\t\t\tthis.setState({ searchModel: temp });\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif ((temp.StatementPeriod != null && temp.StatementPeriod != \"\")) {\r\n\t\t\t\ttemp.DateControl = true;\r\n\t\t\t\ttemp.IsRequiredDate = false;\r\n\r\n\t\t\t\tthis.setState({ searchModel: temp });\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif (temp.IsRequiredDate && typeof temp.FromDate != \"object\" && temp.FromDate != \"\" && temp.FromDate != null) {\r\n\t\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"From Date is invalid\");\r\n\t\t\t\t\ttemp.IsInvalidFromDate = true;\r\n\t\t\t\t\tthis.setState({ searchModel: temp });\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\tif (temp.IsRequiredDate && typeof temp.ToDate != \"object\" && temp.ToDate != \"\" && temp.ToDate != null) {\r\n\t\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"To Date is invalid\");\r\n\t\t\t\t\ttemp.IsInvalidToDate = true;\r\n\t\t\t\t\tthis.setState({ searchModel: temp });\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t} else if (temp.IsRequiredDate && temp.ToDate == undefined || temp.ToDate == \"\") {\r\n\t\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"To Date must be defined \");\r\n\t\t\t\t\ttemp.IsInvalidToDate = true;\r\n\t\t\t\t\tthis.setState({ searchModel: temp });\r\n\t\t\t\t\treturn false;\r\n\r\n\t\t\t\t} else if (temp.IsRequiredDate && temp.FromDate == undefined || temp.FromDate == \"\") {\r\n\t\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"From Date must be defined \");\r\n\t\t\t\t\ttemp.IsInvalidFromDate = true;\r\n\t\t\t\t\tthis.setState({ searchModel: temp });\r\n\t\t\t\t\treturn false;\r\n\r\n\t\t\t\t}\r\n\t\t\t\tif (temp.IsRequiredDate && (typeof temp.FromDate == \"object\" && typeof temp.ToDate == \"object\") && temp.ToDate < temp.FromDate) {\r\n\t\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"From Date cannot be bigger than To Date\");\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (temp.IsRequiredDate && (typeof temp.FromDate == \"object\" && typeof temp.ToDate == \"object\")) {\r\n\t\t\t\t\tvar interval = moment.duration(temp.ToDate.diff(temp.FromDate)).asDays();\r\n\t\t\t\t\tif (interval > 30) {\r\n\t\t\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Between two dates cannot be longer than 30 days!\");\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\ttemp.IsInvalidFromDate = false;\r\n\t\t\t\ttemp.IsInvalidToDate = false;\r\n\t\t\t\ttemp.StatementControl = true;\r\n\t\t\t\tthis.setState({ searchModel: temp });\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tlet IsCallCenter = this.props.MenuCode == MenuCodes.ClientAccountActivities;\r\n\t\tif (IsCallCenter && (temp.UniqueClientId == null || temp.UniqueClientId == 0)) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", \"Client must be selected for search operation !\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tGetCustomerBankAccounts = (status) => {\r\n\t\tconst temp = { ...this.state.searchModel };\r\n\t\tlet IsSettlement = this.props.MenuCode == MenuCodes.Backoffice_Accounts;\t\r\n\r\n\t\tif (IsSettlement) temp.SettlementAccountStatus = true;\r\n\t\telse temp.SettlementAccountStatus = false;\r\n\r\n\t\tif (IsSettlement) {\r\n\t\t\tif (status == undefined) {\r\n\t\t\t\tvar isvalidControl = this.IsValid();\r\n\t\t\t\tif (isvalidControl == false) return;\r\n\t\t\t\tthis.GetAccountList(temp);\r\n\t\t\t}\r\n\t\t\tthis.GetAccountList(temp);\r\n\t\t} else if (this.isBackoffice) {\r\n\t\t\tif ((temp.UniqueClientId == null || temp.UniqueClientId == \"\")) return;\r\n\t\t\telse if (status) {\r\n\t\t\t\tthis.GetAccountList(temp);\r\n\t\t\t\treturn;\r\n\t\t\t} else if (status == undefined && !this.IsValid()) return;\r\n\r\n\t\t\tthis.GetAccountList(temp);\r\n\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (status) {\r\n\t\t\t\ttemp.IsClient = this.isClient;\r\n\t\t\t\tthis.GetAccountList(temp);\r\n\t\t\t\treturn;\r\n\t\t\t} else {\r\n\t\t\t\tvar isvalidControl1 = this.IsValid();\r\n\t\t\t\tif (isvalidControl1 == false) return;\r\n\r\n\t\t\t\tthis.GetAccountList(temp);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}\r\n\tGetAccountList = (temp) => {\r\n\t\tthis.handleChangeSearchModel(\"UseMstTimezone\",false);\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Account/ClientAccountActivites\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error !\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ customerAccountList: responseData.Item || [] });\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tSendToWorkflow = id => {\r\n\t\tvar data = { Id: id };\r\n\t\tvar jsonData = JSON.stringify(data);\r\n\r\n\t\tvar requestData = {\r\n\t\t\tMenuCode: MenuCodes.CloseAccount,\r\n\t\t\tActionCode: ActionCodes.Submit,\r\n\t\t\tJsonData: jsonData,\r\n\t\t\tRowId: id\r\n\t\t};\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/coreapi/v1.0/WorkflowData/InsertWorkflowData\",\r\n\t\t\trequestData,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Request successfully sent for approval\");\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", \"An error occurred while sending approve request \" + errorMessage);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\tClearData = () => {\r\n\r\n\t\tif (this.isBackoffice && this.props.MenuCode != MenuCodes.Backoffice_Accounts) //Settlement Acc Acvt\r\n\t\t{\r\n\t\t\tthis.setState({\r\n\t\t\t\tcustomerAccountList: [], alert: null, isLoading: false, checkedAccounts: [], searchModel: {\r\n\t\t\t\t\tIsRequiredDate: true,\r\n\t\t\t\t\tIsRequiredStatementPeriod: true,\r\n\r\n\t\t\t\t}, IsTxnDetailOpen: false, TxnDetail: {},\r\n\t\t\t});\r\n\t\t}\r\n\t\tthis.setState({\r\n\t\t\talert: null, isLoading: false, checkedAccounts: [], searchModel: {\r\n\t\t\t\tIsRequiredDate: true,\r\n\t\t\t\tIsRequiredStatementPeriod: true,\r\n\t\t\t\tIsRequiredUniqueClientId: true,\r\n\t\t\t}, IsTxnDetailOpen: false, TxnDetail: {},\r\n\t\t});\r\n\t}\r\n\thandleChangeFilterPanel = panel => (event, expanded) => {\r\n\t\tthis.setState({\r\n\t\t\tactive: expanded ? panel : -1\r\n\t\t});\r\n\t};\r\n\tRenderStyle = () => {\r\n\t\treturn {\r\n\t\t\tcolumn: \"TransactionType\",\r\n\t\t\tcondition: \"Received\",\r\n\t\t\tstyle: { fontWeight: \"600\" },\r\n\t\t\tprefix: [\"+\", \"\"]\r\n\t\t};\r\n\t}\r\n\tBalanceRenderStyle = () => {\r\n\t\treturn {\r\n\t\t\tcolumn: \"TransactionType\",\r\n\t\t\tcondition: \"Received\",\r\n\t\t\tstyle: { fontWeight: \"600\" },\r\n\t\t\tprefix: [\"\", \"\"]\r\n\t\t};\r\n\t}\r\n\r\n\r\n\tHandleGetList = () => {\r\n\t\tthis.setState(state => ({ trxGridToken: !state.trxGridToken }));\r\n\t}\r\n\r\n\tHandleGetListMst = () => {\r\n\t\tthis.handleChangeSearchModel(\"UseMstTimezone\",true);\r\n\t\tthis.HandleGetList();\r\n\t}\r\n\r\n\tExportClick = (timezone) => {\r\n\t\tvar trxColumns = [];\r\n\t\t// this.trxTable.current.props.Columns.forEach(c => {\r\n\t\t// \tif (c.accessor != \"Actions\" && c.accessor != \"ED\" && (c.show == undefined || c.show)) {\r\n\t\t// \t\ttrxColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t// \t}\r\n\t\t// }, this);\r\n\t\tthis.handleChangeSearchModel(\"UseMstTimezone\",timezone===\"MST\");\r\n\t\tthis.setState( { ExportReportType: ''});\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: trxColumns, ExportSelectedColumns: trxColumns });\r\n\t}\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tif (!this.IsValid())\r\n\t\t\treturn;\r\n\r\n\t\tconst temp = { ...this.state.searchModel };\r\n\r\n\t\tlet IsSettlement = this.props.MenuCode == MenuCodes.Backoffice_Accounts;\r\n\t\tif (IsSettlement)\r\n\t\t\ttemp.SettlementAccountStatus = true;\r\n\t\telse\r\n\t\t\ttemp.SettlementAccountStatus = false;\r\n\r\n\t\tvar ids = [];\r\n\t\tthis.ShowConfirmMessage(\"question\", \"Long Process Warning\", \"This process may take a while. Continue ?\", () => {\r\n\t\t\tthis.hideAlert();\r\n\t\t\tthis.state.checkedAccounts.forEach(element => {\r\n\t\t\t\tids.push(element.Id);\r\n\t\t\t\tif (element.SubAccountList != null) {\r\n\t\t\t\t\telement.SubAccountList.forEach(x => {\r\n\t\t\t\t\t\tids.push(x);\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\ttemp.AccountIds = ids;\r\n\t\t\tvar jsonColList = [];\r\n\r\n\t\t\tif (this.state.ExportReportType == \"SpecialPDF\") {\r\n\t\t\t\tif (ids.length === 0 || ids.length > 1) {\r\n\t\t\t\t\tthis.ShowMessage(\"warning\", \"Account selection error\", \"Select only one account to continue.\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tvar trxColumns = {};\r\n\t\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\t\ttrxColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t\t});\r\n\t\t\tjsonColList.push(trxColumns);\r\n\r\n\t\t\tvar mytitle = \"\";\r\n\t\t\tif (IsSettlement) { mytitle = \"Settlement Accounts Activities Report\"; }\r\n\t\t\telse if (this.state.ExportReportType == \"SpecialPDF\") { mytitle = \"Account Summary Report\"; } \r\n\t\t\telse { mytitle = \"Client Accounts Activities Report\"; }\r\n\r\n\t\t\ttemp.jsonFile = {\r\n\t\t\t\tcolmns: jsonColList,\r\n\t\t\t\tformat: this.state.ExportReportType,\r\n\t\t\t\ttitle: mytitle\r\n\t\t\t};\r\n\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tif (this.state.ExportReportType == \"SpecialPDF\") {\r\n\t\t\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\t\t\"/bankapi/v1.0/Transaction/SearchAllAccountMovementsExportSpecialPDF\",\r\n\t\t\t\t\ttemp,\r\n\t\t\t\t\tresponseData => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\terrorMessage => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t\t\t},\r\n\t\t\t\t\tthis.props.showMessage\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\t\t\"/bankapi/v1.0/Transaction/SearchAllAccountMovementsExport\",\r\n\t\t\t\t\ttemp,\r\n\t\t\t\t\tresponseData => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\terrorMessage => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t\t\t},\r\n\t\t\t\t\tthis.props.showMessage\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t}\r\n\r\n\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { customerAccountList, checkedAccounts, searchModel, TxnDetail, IsTxnDetailOpen, alert, SettlementAccountStatus, kModel } = this.state;\r\n\t\tlet IsCallCenter = this.props.MenuCode === MenuCodes.ClientAccountActivities;\r\n\t\tlet IsSettlement = this.props.MenuCode == MenuCodes.Backoffice_Accounts;\r\n\t\tvar endDate = (searchModel.FromDate instanceof moment) ? searchModel.FromDate.clone() : \"\";\r\n\r\n\t\tvar GridDataAccounts = customerAccountList == null ? [] : customerAccountList.map(d => {\r\n\t\t\treturn {\r\n\t\t\t\tED: (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{(!IsCallCenter && d.AccountCode == BankingAccountTypes.PrimaryAccount) &&\r\n\t\t\t\t\t\t\t { RouteHelper.Push(this.props.history, \"/TransferToLinkedAccount\", \"TransferToLinkedAccount_ID\", 0); }} />\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t{(!IsCallCenter && d.AccountCode == BankingAccountTypes.PrimaryAccount) &&\r\n\t\t\t\t\t\t\t { RouteHelper.Push(this.props.history, \"/EtransferFromAccount\", \"EtransferFromAccount_ID\", 0); }} />\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t{IsCallCenter &&\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tthis.ShowConfirmMessage(\"warning\", \"Workflow Confirmation\", \"Are you sure to send it for workflow confirmation ?\", () => {\r\n\t\t\t\t\t\t\t\t\t\tthis.hideAlert();\r\n\t\t\t\t\t\t\t\t\t\tthis.SendToWorkflow(d.Id);\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t}} />\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tAP: (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t c.Id == d.Id).length > 0}\r\n\t\t\t\t\t\t\tValueChanged={(value) => {\r\n\t\t\t\t\t\t\t\tthis.HandleCheckCustomerAccounts(value, d);\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tId: d.Id,\r\n\t\t\t\tProgramId: d.ProgramId,\r\n\t\t\t\tCustomerBankAccountId: d.CustomerBankAccountId,\r\n\t\t\t\tAccountShortName: d.AccountShortName,\r\n\t\t\t\tBankAccountId: d.BankAccountId,\r\n\t\t\t\tUniqueClientId: d.UniqueClientId,\r\n\t\t\t\tBalance: d.Balance,\r\n\t\t\t\tAccountName: d.AccountName,\r\n\t\t\t\tPendingBalance: d.PendingBalance,\r\n\t\t\t\tAccountNumber: d.AccountNumber,\r\n\t\t\t\tAccountNumberStr: d.AccountNumberStr,\r\n\t\t\t\tBranchNumber: d.BranchNumber,\r\n\t\t\t\tBankNumber: d.BankNumber,\r\n\t\t\t\tAccountTypeId: d.AccountTypeId,\r\n\t\t\t\tAccountType: d.AccountType,\r\n\t\t\t\tAccountType4: d.AccountType4,\r\n\t\t\t\tAccountType6: d.AccountType6,\r\n\t\t\t\tAccountCode: d.AccountCode,\r\n\t\t\t\tProgramCode: d.ProgramCode,\r\n\t\t\t\tProgramName: d.ProgramName,\r\n\t\t\t\tCurrencyCode: d.CurrencyCode,\r\n\t\t\t\tCurrencyDesc: d.CurrencyDesc,\r\n\t\t\t\tCurrencySymbol: d.CurrencySymbol,\r\n\t\t\t\tAmountDisplay: d.AmountDisplay,\r\n\t\t\t\tIsChequingAccount: d.IsChequingAccount,\r\n\t\t\t\tSubAccountList: d.SubAccountList\r\n\t\t\t};\r\n\t\t});\r\n\r\n\t\tconst isSpecialPDF = this.state.ExportReportType === \"SpecialPDF\";\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t this.ClearData(), Disabled: Disabled },\r\n\t\t\t\t\t\t\t{ Code: \"Search\", OnClick: () => { this.HandleGetList(); this.GetCustomerBankAccounts(); }, Disabled: Disabled },\r\n\t\t\t\t\t\t\t{ Code: \"Export\", OnClick: () => this.ExportClick(\"UTC\"), Disabled: Disabled },\r\n\t\t\t\t\t\t\t{ Code: \"SearchStatement\", OnClick: () => this.HandleGetListMst(), Disabled: Disabled },\r\n\t\t\t\t\t\t\t{ Code: \"GetStatement\", OnClick: () => this.ExportClick(\"MST\"), Disabled: Disabled },\r\n\t\t\t\t\t\t\t//{ Code: \"SearchStatement\", OnClick: () => { this.HandleGetList(); this.GetCustomerBankAccounts(); }, Disabled: Disabled },\r\n\t\t\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{(IsCallCenter || this.isBackoffice) && (!IsSettlement) &&\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tValue={searchModel.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChangeSearchModel}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tRequired={searchModel.IsRequiredUniqueClientId}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={kModel.UniqueClientId}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{ this.props.MenuCode == MenuCodes.Backoffice_Accounts &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tValue={searchModel.UniqueClientId}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChangeSearchModel}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={Disabled || this.isClient} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\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r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Account Type\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"AccountType\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{this.RenderAccountTypeParameter(row.original)}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tTotal{\" \"} {customerAccountList == null ? 0 : customerAccountList.length}{\" \"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Program Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ProgramName\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tshow: !IsSettlement\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Account Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"AccountNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Chequing Account\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"IsChequingAccount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tshow: (IsSettlement != true && this.isBackoffice == true)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Currency\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"CurrencyCode\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Balance\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Balance\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{Formatter.FormatMoneySpecial(row.original.CurrencySymbol, row.value)}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// Footer: (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\t\t{Formatter.FormatMoney(customerAccountList.TotalAccountBalance)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// )\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Pending Balance\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"PendingBalance\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{Formatter.FormatMoneySpecial(row.original.CurrencySymbol, row.value)}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tshow: !IsSettlement\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// Footer: (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\t{Formatter.FormatMoney(customerAccountList.TotalAccountBalance)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// )\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_Bank_Account} />\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\tconst temp = { ...this.state.searchModel };\r\n\t\t\t\t\t\t\t\t\t\t\t\tvar ids = [];\r\n\t\t\t\t\t\t\t\t\t\t\t\tthis.state.checkedAccounts.forEach(element => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tids.push(element.Id);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (element.SubAccountList != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\telement.SubAccountList.forEach(x => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tids.push(x);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t\t\ttemp.AccountIds = ids;\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tlet IsSettlement = this.props.MenuCode == MenuCodes.Backoffice_Accounts;\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (IsSettlement) temp.SettlementAccountStatus = true;\r\n\t\t\t\t\t\t\t\t\t\t\t\telse temp.SettlementAccountStatus = false;\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn temp;\r\n\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\tRequestUrl=\"/bankapi/v1.0/Transaction/SearchAllAccountMovementsPaged\"\r\n\t\t\t\t\t\t\t\t\t\t\tRequestMethod=\"POST\"\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tTransaction Details\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t

Reference Number: {TxnDetail.ReferenceNumber}

\r\n\t\t\t\t\t\t\t\t

Transaction Date: {Formatter.FormatDateUtc(TxnDetail.TransactionDate)}

\r\n\t\t\t\t\t\t\t\t

Transaction Amount: {\r\n\t\t\t\t\t\t\t\t\tFormatter.FormatMoneySpecial(TxnDetail.CurrencySymbol, TxnDetail.Amount)}\r\n\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t

Description: {TxnDetail.Description}

\r\n\t\t\t\t\t\t\t\t

Transaction Type: {TxnDetail.EtransferType == null ? TxnDetail.TransactionType : TxnDetail.EtransferType}

\r\n\t\t\t\t\t\t\t\t

From Account Name: {TxnDetail.SourceAccountName}

\r\n\t\t\t\t\t\t\t\t

From Account Number: {TxnDetail.SourceAccountNumber}

\r\n\t\t\t\t\t\t\t\t

To Account Name: {TxnDetail.DestinationAccountName}

\r\n\t\t\t\t\t\t\t\t

To Account Number: {TxnDetail.DestinationAccountNumber}

\r\n\t\t\t\t\t\t\t\t{/* {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t } */}\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\tname=\"columns\"//\"reportColumns\"//\r\n\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t isClearable={!isSpecialPDF} // Prevents clearing the selected options if \"SpecialPDF\" is selected\r\n\t\t\t\t\t\t\t isDisabled={isSpecialPDF} // Disables the select component if \"SpecialPDF\" is selected\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nAllAccountMovements.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func\r\n};\r\n\r\n\r\nexport default AllAccountMovements;","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { DeleteIcon, DetailIcon, EftIcon, ETransferIcon } from \"core/Icons\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericCheckInput, GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle, GenericLabel, GenericRadioInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton.jsx\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { ActionCodes, BankingAccountTypes, ClientType, MenuCodes, ProgramCodes, TransactionType, GridColumnType } from \"views/Constants/Constant.js\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport moment from \"moment\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport Select from \"react-select\";\r\n\r\nclass AllAccountMovements extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.isBackoffice = ClientHelper.IsBackOffice();\r\n\t\tlet IsCallCenter = this.props.MenuCode === MenuCodes.ClientAccountActivities;\r\n\t\tlet IsSettlement = this.props.MenuCode == MenuCodes.Backoffice_Accounts;\r\n\r\n\t\tthis.state = {\r\n\t\t\tcheckedAccounts: [],\r\n\t\t\tcustomerAccountList: [],\r\n\t\t\tsearchModel: {\r\n\t\t\t\tIsRequiredUniqueClientId: true,\r\n\t\t\t\tIsRequiredDate: true,\r\n\t\t\t\tIsRequiredStatementPeriod: true,\r\n\t\t\t\tIsInvalidStatementPeriod: false,\r\n\t\t\t\tIsInvalidFromDate: false,\r\n\t\t\t\tIsInvalidToDate: false,\r\n\t\t\t\tMSTOffset: DateHelper.GetDateTimeMst().format(\"Z\"),\r\n\t\t\t\tUseMstTimezone: false\r\n\t\t\t},\r\n\t\t\tIsTxnDetailOpen: false,\r\n\t\t\tTxnDetail: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tClientTypeParameter: {},\r\n\t\t\tkModel: {}\r\n\t\t};\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\twidth: 100,\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"ED\",\r\n\t\t\t\tCell: d => (\r\n\t\t\t\t\t this.setState({ IsTxnDetailOpen: true, TxnDetail: d.original })} />\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\tshow: !IsCallCenter\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\ttype: GridColumnType.DateTimeUtc,\r\n\t\t\t\tstyle: this.RenderStyle()\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"UniqueClientName\",\r\n\t\t\t\twidth: 120,\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value ?? \" - \"}
\r\n\t\t\t\t),\r\n\t\t\t\tshow: IsSettlement\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Channel Name\",\r\n\t\t\t\taccessor: \"ChannelType\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Received / Sent\",\r\n\t\t\t\taccessor: \"TransactionType\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"Amount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tstyle: this.RenderStyle(),\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Remaining Balance\",\r\n\t\t\t\taccessor: \"RemainingBalance\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tstyle: this.BalanceRenderStyle(),\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Currency\",\r\n\t\t\t\taccessor: \"SourceCurrencyCode\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"From Account Number\",\r\n\t\t\t\taccessor: \"SourceAccountNumber\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value == 0 ? \"-\" : row.value ?? \" - \"}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\twidth: 180,\r\n\t\t\t\tHeader: \"From Account\",\r\n\t\t\t\taccessor: \"SourceAccountName\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\twidth: 180,\r\n\t\t\t\tHeader: \"To Account\",\r\n\t\t\t\taccessor: \"DestinationAccountName\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"To Account Number\",\r\n\t\t\t\taccessor: \"DestinationAccountNumber\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value == 0 ? \"-\" : row.value ?? \" - \"}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Destination Account Owner Name\",\r\n\t\t\t\taccessor: \"DestinationCustomerName\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value ?? \" - \"}
\r\n\t\t\t\t),\r\n\t\t\t\tshow: !IsSettlement\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"SenderBank\",\r\n\t\t\t\taccessor: \"SenderBank\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t),\r\n\t\t\t\tshow: !IsSettlement\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"SenderName\",\r\n\t\t\t\taccessor: \"SenderName\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t), show: !IsSettlement\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reference Number\",\r\n\t\t\t\taccessor: \"ReferenceNumber\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Interac Reference Number\",\r\n\t\t\t\taccessor: \"InteracReferenceNumber\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\twidth: 250,\r\n\t\t\t\tHeader: \"Description\",\r\n\t\t\t\taccessor: \"SummaryDescription\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t)\r\n\t\t\t},\r\n\r\n\t\t];\r\n\r\n\t\tthis.trxTable = React.createRef();\r\n\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\r\n\t\tif (this.props.MenuCode == MenuCodes.Backoffice_Accounts) {\r\n\t\t\tthis.props.setAppLeftTitle(\"Settlement Accounts Activities - Performance\");\r\n\t\t\tthis.GetCustomerBankAccounts(true);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.props.setAppLeftTitle(\"Client Accounts Activities - Performance\");\r\n\r\n\t\t}\r\n\r\n\t\tif (!this.isBackoffice) {\r\n\t\t\tthis.props.setAppCenterTitle(\"BANKING\");\r\n\t\t\tthis.GetCustomerBankAccounts(true);\r\n\t\t\tthis.GetClientType();\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.props.setAppCenterTitle(\"ACCOUNTS\");\r\n\t\t}\r\n\r\n\t\tthis.setState({ loadingCompleted: true });\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\tTrxFunc = (data) => {\r\n\r\n\t\tif (data == null) {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t\tif (data.ParameterValue == TransactionType.Debit) {\r\n\t\t\treturn \"Received\";\r\n\t\t}\r\n\t\tif (data.ParameterValue == TransactionType.Credit) {\r\n\t\t\treturn \"Sent\";\r\n\t\t}\r\n\t\treturn \"\";\r\n\r\n\t}\r\n\tRenderAccountTypeParameter = (data) => {\r\n\t\tconst parameter = { ...this.state.ClientTypeParameter };\r\n\t\tif (data == null) {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t\tif (data.AccountCode == null || data.AccountCode == \"\") {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\t\tif (data.AccountCode != BankingAccountTypes.PrimaryAccount) {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\t\tif (data.ProgramCode == null || data.ProgramCode == \"\") {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\t\tif (data.ProgramCode != ProgramCodes.Bank_Programs_Bank_Account) {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\r\n\t\tif (parameter.ParameterValue == ClientType.Corporate || parameter.ParameterValue == ClientType.SalesAgentCorporate) {\r\n\t\t\treturn \"Corporate Account\";\r\n\t\t} else if (parameter.ParameterValue == ClientType.Personal || parameter.ParameterValue == ClientType.SalesAgentPersonal) {\r\n\t\t\treturn \"Individual Account\";\r\n\t\t} else {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\r\n\t}\r\n\tGetClientType = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/BankCustomer/GetClientType\",\r\n\t\t\t{},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ ClientTypeParameter: responseData.Item });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\thandleChangeSearchModel = (name, newValue) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.searchModel || {};\r\n\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\tif (name == \"CheckAllAccounts\" && newValue == true) {\r\n\t\t\t\tconst list = this.state.customerAccountList;\r\n\t\t\t\tthis.setState({ checkedAccounts: list });\r\n\t\t\t} else if (name == \"CheckAllAccounts\" && newValue == false) {\r\n\t\t\t\tthis.setState({ checkedAccounts: [] });\r\n\t\t\t}\r\n\r\n\t\t\tif (name == \"UniqueClientId\" && newValue !== undefined && newValue != null) {\r\n\t\t\t\tthis.GetCustomerBankAccounts(true);\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tcustomerAccountList: [], checkedAccounts: []\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t\telse if (name == \"UniqueClientId\" && (newValue == undefined || newValue == null)) {\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tcheckedAccounts: [], customerAccountList: []\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t\tif (name == \"Amount\") {\r\n\t\t\t\tmodel.MinAmount = newValue;\r\n\t\t\t\tmodel.MaxAmount = newValue;\r\n\t\t\t}\r\n\r\n\t\t\tif (name == \"ReferenceNumber\") {\r\n\r\n\t\t\t\tlet hasReferenceNumberSearch = model[\"ReferenceNumber\"]?.length > 0;\r\n\r\n\t\t\t\tmodel.IsRequiredStatementPeriod = !hasReferenceNumberSearch;\r\n\t\t\t\tmodel.IsRequiredDate = !hasReferenceNumberSearch;\r\n\t\t\t\tmodel.IsRequiredUniqueClientId = !hasReferenceNumberSearch;\r\n\t\t\t}\r\n\r\n\t\t\tif (name == \"StatementPeriod\" || name == \"ToDate\" || name == \"FromDate\") {\r\n\r\n\t\t\t\tif (model.StatementPeriod == undefined || model.StatementPeriod == null || model.StatementPeriod == \"\") {\r\n\t\t\t\t\tmodel.StatementControl = false;\r\n\t\t\t\t\tmodel.IsRequiredStatementPeriod = true;\r\n\t\t\t\t\tmodel.IsRequiredDate = true;\r\n\t\t\t\t\tthis.setState({ searchModel: model });\r\n\r\n\t\t\t\t\tif ((model.ToDate == undefined || model.ToDate == \"\" || model.ToDate == null) && (model.FromDate == undefined || model.FromDate == \"\" || model.FromDate == null)) {\r\n\r\n\t\t\t\t\t\tmodel.IsInvalidFromDate = false;\r\n\t\t\t\t\t\tmodel.IsInvalidToDate = false;\r\n\r\n\t\t\t\t\t\tmodel.DateControl = false;\r\n\t\t\t\t\t\tthis.setState({ searchModel: model });\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\r\n\t\t\t\t\t\tmodel.StatementControl = true;\r\n\t\t\t\t\t\tmodel.DateControl = false;\r\n\t\t\t\t\t\tmodel.IsRequiredStatementPeriod = false;\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmodel.DateControl = true;\r\n\t\t\t\t\tmodel.IsInvalidFromDate = false;\r\n\t\t\t\t\tmodel.IsInvalidToDate = false;\r\n\t\t\t\t\tmodel.IsRequiredDate = false;\r\n\t\t\t\t\tthis.setState({ searchModel: model });\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn { searchModel: model };\r\n\t\t});\r\n\t}\r\n\tHandleCheckCustomerAccounts = (e, x) => {\r\n\r\n\t\tconst { checkedAccounts } = this.state;\r\n\t\tvar temp = true;\r\n\r\n\t\tconst items = checkedAccounts.map((item, key) => {\r\n\t\t\tif (item.Id == x.Id) {\r\n\t\t\t\tcheckedAccounts.splice(key, 1);\r\n\t\t\t\ttemp = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t);\r\n\r\n\t\tif (checkedAccounts.length == 0 && temp) { checkedAccounts.push(x); }\r\n\t\telse if (temp) { checkedAccounts.push(x); }\r\n\r\n\t\tthis.setState({ checkedAccounts });\r\n\r\n\t}\r\n\tIsValid = () => {\r\n\t\tvar temp = { ...this.state.searchModel };\r\n\t\tvar kModel = { ...this.state.kModel };\r\n\t\tlet IsSettlement = this.props.MenuCode == MenuCodes.Backoffice_Accounts;\r\n\t\tif (!IsSettlement) {\r\n\r\n\t\t\tif (this.isBackoffice) {\r\n\t\t\t\tif (temp.IsRequiredUniqueClientId && temp.UniqueClientId == null || temp.UniqueClientId == \"\") {\r\n\t\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \" Client must be defined\");\r\n\t\t\t\t\tkModel.UniqueClientId = true;\r\n\t\t\t\t\tthis.setState({ kModel });\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tkModel.UniqueClientId = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.setState({ kModel });\r\n\r\n\t\tif ((temp.IsRequiredStatementPeriod || temp.IsRequiredDate)\r\n\t\t\t&&\r\n\t\t\t(temp.StatementPeriod == undefined || temp.StatementPeriod == null || temp.StatementPeriod == \"\")\r\n\t\t\t&&\r\n\t\t\t(temp.FromDate == null || temp.FromDate == undefined || temp.FromDate == \"\")\r\n\t\t\t&&\r\n\t\t\t(temp.ToDate == null || temp.ToDate == undefined || temp.ToDate == \"\")) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Please select Statement Period or Date Interval\");\r\n\t\t\tthis.setState({ searchModel: temp });\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif ((temp.StatementPeriod != null && temp.StatementPeriod != \"\")) {\r\n\t\t\t\ttemp.DateControl = true;\r\n\t\t\t\ttemp.IsRequiredDate = false;\r\n\r\n\t\t\t\tthis.setState({ searchModel: temp });\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif (temp.IsRequiredDate && typeof temp.FromDate != \"object\" && temp.FromDate != \"\" && temp.FromDate != null) {\r\n\t\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"From Date is invalid\");\r\n\t\t\t\t\ttemp.IsInvalidFromDate = true;\r\n\t\t\t\t\tthis.setState({ searchModel: temp });\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\tif (temp.IsRequiredDate && typeof temp.ToDate != \"object\" && temp.ToDate != \"\" && temp.ToDate != null) {\r\n\t\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"To Date is invalid\");\r\n\t\t\t\t\ttemp.IsInvalidToDate = true;\r\n\t\t\t\t\tthis.setState({ searchModel: temp });\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t} else if (temp.IsRequiredDate && temp.ToDate == undefined || temp.ToDate == \"\") {\r\n\t\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"To Date must be defined \");\r\n\t\t\t\t\ttemp.IsInvalidToDate = true;\r\n\t\t\t\t\tthis.setState({ searchModel: temp });\r\n\t\t\t\t\treturn false;\r\n\r\n\t\t\t\t} else if (temp.IsRequiredDate && temp.FromDate == undefined || temp.FromDate == \"\") {\r\n\t\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"From Date must be defined \");\r\n\t\t\t\t\ttemp.IsInvalidFromDate = true;\r\n\t\t\t\t\tthis.setState({ searchModel: temp });\r\n\t\t\t\t\treturn false;\r\n\r\n\t\t\t\t}\r\n\t\t\t\tif (temp.IsRequiredDate && (typeof temp.FromDate == \"object\" && typeof temp.ToDate == \"object\") && temp.ToDate < temp.FromDate) {\r\n\t\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"From Date cannot be bigger than To Date\");\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (temp.IsRequiredDate && (typeof temp.FromDate == \"object\" && typeof temp.ToDate == \"object\")) {\r\n\t\t\t\t\tvar interval = moment.duration(temp.ToDate.diff(temp.FromDate)).asDays();\r\n\t\t\t\t\tif (interval > 30) {\r\n\t\t\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Between two dates cannot be longer than 30 days!\");\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\ttemp.IsInvalidFromDate = false;\r\n\t\t\t\ttemp.IsInvalidToDate = false;\r\n\t\t\t\ttemp.StatementControl = true;\r\n\t\t\t\tthis.setState({ searchModel: temp });\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tlet IsCallCenter = this.props.MenuCode == MenuCodes.ClientAccountActivities;\r\n\t\tif (IsCallCenter && (temp.UniqueClientId == null || temp.UniqueClientId == 0)) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", \"Client must be selected for search operation !\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tGetCustomerBankAccounts = (status) => {\r\n\t\tconst temp = { ...this.state.searchModel };\r\n\t\tlet IsSettlement = this.props.MenuCode == MenuCodes.Backoffice_Accounts;\t\r\n\r\n\t\tif (IsSettlement) temp.SettlementAccountStatus = true;\r\n\t\telse temp.SettlementAccountStatus = false;\r\n\r\n\t\tif (IsSettlement) {\r\n\t\t\tif (status == undefined) {\r\n\t\t\t\tvar isvalidControl = this.IsValid();\r\n\t\t\t\tif (isvalidControl == false) return;\r\n\t\t\t\tthis.GetAccountList(temp);\r\n\t\t\t}\r\n\t\t\tthis.GetAccountList(temp);\r\n\t\t} else if (this.isBackoffice) {\r\n\t\t\tif ((temp.UniqueClientId == null || temp.UniqueClientId == \"\")) return;\r\n\t\t\telse if (status) {\r\n\t\t\t\tthis.GetAccountList(temp);\r\n\t\t\t\treturn;\r\n\t\t\t} else if (status == undefined && !this.IsValid()) return;\r\n\r\n\t\t\tthis.GetAccountList(temp);\r\n\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (status) {\r\n\t\t\t\tthis.GetAccountList(temp);\r\n\t\t\t\treturn;\r\n\t\t\t} else {\r\n\t\t\t\tvar isvalidControl1 = this.IsValid();\r\n\t\t\t\tif (isvalidControl1 == false) return;\r\n\r\n\t\t\t\tthis.GetAccountList(temp);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}\r\n\tGetAccountList = (temp) => {\r\n\t\tthis.handleChangeSearchModel(\"UseMstTimezone\",false);\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Account/ClientAccountActivites\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error !\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ customerAccountList: responseData.Item || [] });\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tSendToWorkflow = id => {\r\n\t\tvar data = { Id: id };\r\n\t\tvar jsonData = JSON.stringify(data);\r\n\r\n\t\tvar requestData = {\r\n\t\t\tMenuCode: MenuCodes.CloseAccount,\r\n\t\t\tActionCode: ActionCodes.Submit,\r\n\t\t\tJsonData: jsonData,\r\n\t\t\tRowId: id\r\n\t\t};\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/coreapi/v1.0/WorkflowData/InsertWorkflowData\",\r\n\t\t\trequestData,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Request successfully sent for approval\");\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", \"An error occurred while sending approve request \" + errorMessage);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\tClearData = () => {\r\n\r\n\t\tif (this.isBackoffice && this.props.MenuCode != MenuCodes.Backoffice_Accounts) //Settlement Acc Acvt\r\n\t\t{\r\n\t\t\tthis.setState({\r\n\t\t\t\tcustomerAccountList: [], alert: null, isLoading: false, checkedAccounts: [], searchModel: {\r\n\t\t\t\t\tIsRequiredDate: true,\r\n\t\t\t\t\tIsRequiredStatementPeriod: true,\r\n\r\n\t\t\t\t}, IsTxnDetailOpen: false, TxnDetail: {},\r\n\t\t\t});\r\n\t\t}\r\n\t\tthis.setState({\r\n\t\t\talert: null, isLoading: false, checkedAccounts: [], searchModel: {\r\n\t\t\t\tIsRequiredDate: true,\r\n\t\t\t\tIsRequiredStatementPeriod: true,\r\n\t\t\t\tIsRequiredUniqueClientId: true,\r\n\t\t\t}, IsTxnDetailOpen: false, TxnDetail: {},\r\n\t\t});\r\n\t}\r\n\thandleChangeFilterPanel = panel => (event, expanded) => {\r\n\t\tthis.setState({\r\n\t\t\tactive: expanded ? panel : -1\r\n\t\t});\r\n\t};\r\n\tRenderStyle = () => {\r\n\t\treturn {\r\n\t\t\tcolumn: \"TransactionType\",\r\n\t\t\tcondition: \"Received\",\r\n\t\t\tstyle: { fontWeight: \"600\" },\r\n\t\t\tprefix: [\"+\", \"\"]\r\n\t\t};\r\n\t}\r\n\tBalanceRenderStyle = () => {\r\n\t\treturn {\r\n\t\t\tcolumn: \"TransactionType\",\r\n\t\t\tcondition: \"Received\",\r\n\t\t\tstyle: { fontWeight: \"600\" },\r\n\t\t\tprefix: [\"\", \"\"]\r\n\t\t};\r\n\t}\r\n\r\n\r\n\tHandleGetList = () => {\r\n\t\tthis.setState(state => ({ trxGridToken: !state.trxGridToken }));\r\n\t}\r\n\r\n\tHandleGetListMst = () => {\r\n\t\tthis.handleChangeSearchModel(\"UseMstTimezone\",true);\r\n\t\tthis.HandleGetList();\r\n\t}\r\n\r\n\tExportClick = (timezone) => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.accessor != \"Actions\" && c.accessor != \"ED\" && (c.show == undefined || c.show)) {\r\n\t\t\t\ttrxColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\t\tthis.handleChangeSearchModel(\"UseMstTimezone\",timezone===\"MST\");\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: trxColumns, ExportSelectedColumns: trxColumns });\r\n\t}\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tif (!this.IsValid())\r\n\t\t\treturn;\r\n\r\n\t\tconst temp = { ...this.state.searchModel };\r\n\r\n\t\tlet IsSettlement = this.props.MenuCode == MenuCodes.Backoffice_Accounts;\r\n\t\tif (IsSettlement)\r\n\t\t\ttemp.SettlementAccountStatus = true;\r\n\t\telse\r\n\t\t\ttemp.SettlementAccountStatus = false;\r\n\r\n\t\tvar ids = [];\r\n\t\tthis.ShowConfirmMessage(\"question\", \"Long Process Warning\", \"This process may take a while. Continue ?\", () => {\r\n\t\t\tthis.hideAlert();\r\n\t\t\tthis.state.checkedAccounts.forEach(element => {\r\n\t\t\t\tids.push(element.Id);\r\n\t\t\t\tif (element.SubAccountList != null) {\r\n\t\t\t\t\telement.SubAccountList.forEach(x => {\r\n\t\t\t\t\t\tids.push(x);\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\ttemp.AccountIds = ids;\r\n\t\t\tvar jsonColList = [];\r\n\r\n\t\t\tvar trxColumns = {};\r\n\t\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\t\ttrxColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t\t});\r\n\t\t\tjsonColList.push(trxColumns);\r\n\r\n\t\t\tvar mytitle = \"\";\r\n\t\t\tif (IsSettlement) { mytitle = \"Settlement Accounts Activities Report\"; }\r\n\t\t\telse { mytitle = \"Client Accounts Activities Report\"; }\r\n\r\n\t\t\ttemp.jsonFile = {\r\n\t\t\t\tcolmns: jsonColList,\r\n\t\t\t\tformat: this.state.ExportReportType,\r\n\t\t\t\ttitle: mytitle\r\n\t\t\t};\r\n\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\t\"/bankapi/v1.0/Transaction/SearchAllAccountMovementsExport\",\r\n\t\t\t\ttemp,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terrorMessage => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t\t},\r\n\t\t\t\tthis.props.showMessage\r\n\t\t\t);\r\n\t\t});\r\n\r\n\t}\r\n\r\n\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { customerAccountList, checkedAccounts, searchModel, TxnDetail, IsTxnDetailOpen, alert, SettlementAccountStatus, kModel } = this.state;\r\n\t\tlet IsCallCenter = this.props.MenuCode === MenuCodes.ClientAccountActivities;\r\n\t\tlet IsSettlement = this.props.MenuCode == MenuCodes.Backoffice_Accounts;\r\n\t\tvar endDate = (searchModel.FromDate instanceof moment) ? searchModel.FromDate.clone() : \"\";\r\n\r\n\t\tvar GridDataAccounts = customerAccountList == null ? [] : customerAccountList.map(d => {\r\n\t\t\treturn {\r\n\t\t\t\tED: (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{(!IsCallCenter && d.AccountCode == BankingAccountTypes.PrimaryAccount) &&\r\n\t\t\t\t\t\t\t { RouteHelper.Push(this.props.history, \"/TransferToLinkedAccount\", \"TransferToLinkedAccount_ID\", 0); }} />\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t{(!IsCallCenter && d.AccountCode == BankingAccountTypes.PrimaryAccount) &&\r\n\t\t\t\t\t\t\t { RouteHelper.Push(this.props.history, \"/EtransferFromAccount\", \"EtransferFromAccount_ID\", 0); }} />\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t{IsCallCenter &&\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tthis.ShowConfirmMessage(\"warning\", \"Workflow Confirmation\", \"Are you sure to send it for workflow confirmation ?\", () => {\r\n\t\t\t\t\t\t\t\t\t\tthis.hideAlert();\r\n\t\t\t\t\t\t\t\t\t\tthis.SendToWorkflow(d.Id);\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t}} />\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tAP: (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t c.Id == d.Id).length > 0}\r\n\t\t\t\t\t\t\tValueChanged={(value) => {\r\n\t\t\t\t\t\t\t\tthis.HandleCheckCustomerAccounts(value, d);\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tId: d.Id,\r\n\t\t\t\tProgramId: d.ProgramId,\r\n\t\t\t\tCustomerBankAccountId: d.CustomerBankAccountId,\r\n\t\t\t\tAccountShortName: d.AccountShortName,\r\n\t\t\t\tBankAccountId: d.BankAccountId,\r\n\t\t\t\tUniqueClientId: d.UniqueClientId,\r\n\t\t\t\tBalance: d.Balance,\r\n\t\t\t\tAccountName: d.AccountName,\r\n\t\t\t\tPendingBalance: d.PendingBalance,\r\n\t\t\t\tAccountNumber: d.AccountNumber,\r\n\t\t\t\tAccountNumberStr: d.AccountNumberStr,\r\n\t\t\t\tBranchNumber: d.BranchNumber,\r\n\t\t\t\tBankNumber: d.BankNumber,\r\n\t\t\t\tAccountTypeId: d.AccountTypeId,\r\n\t\t\t\tAccountType: d.AccountType,\r\n\t\t\t\tAccountType4: d.AccountType4,\r\n\t\t\t\tAccountType6: d.AccountType6,\r\n\t\t\t\tAccountCode: d.AccountCode,\r\n\t\t\t\tProgramCode: d.ProgramCode,\r\n\t\t\t\tProgramName: d.ProgramName,\r\n\t\t\t\tCurrencyCode: d.CurrencyCode,\r\n\t\t\t\tCurrencyDesc: d.CurrencyDesc,\r\n\t\t\t\tCurrencySymbol: d.CurrencySymbol,\r\n\t\t\t\tAmountDisplay: d.AmountDisplay,\r\n\t\t\t\tIsChequingAccount: d.IsChequingAccount,\r\n\t\t\t\tSubAccountList: d.SubAccountList\r\n\t\t\t};\r\n\t\t});\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t this.ClearData(), Disabled: Disabled },\r\n\t\t\t\t\t\t\t{ Code: \"Search\", OnClick: () => { this.HandleGetList(); this.GetCustomerBankAccounts(); }, Disabled: Disabled },\r\n\t\t\t\t\t\t\t{ Code: \"Export\", OnClick: () => this.ExportClick(\"UTC\"), Disabled: Disabled },\r\n\t\t\t\t\t\t\t{ Code: \"SearchStatement\", OnClick: () => this.HandleGetListMst(), Disabled: Disabled },\r\n\t\t\t\t\t\t\t{ Code: \"GetStatement\", OnClick: () => this.ExportClick(\"MST\"), Disabled: Disabled },\r\n\t\t\t\t\t\t\t//{ Code: \"SearchStatement\", OnClick: () => { this.HandleGetList(); this.GetCustomerBankAccounts(); }, Disabled: Disabled },\r\n\t\t\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{(IsCallCenter || this.isBackoffice) && (!IsSettlement) &&\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tValue={searchModel.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChangeSearchModel}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tRequired={searchModel.IsRequiredUniqueClientId}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={kModel.UniqueClientId}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\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\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Account Type\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"AccountType\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{this.RenderAccountTypeParameter(row.original)}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tTotal{\" \"} {customerAccountList == null ? 0 : customerAccountList.length}{\" \"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Program Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ProgramName\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tshow: !IsSettlement\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Account Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"AccountNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Chequing Account\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"IsChequingAccount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tshow: (IsSettlement != true && this.isBackoffice == true)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Currency\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"CurrencyCode\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Balance\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Balance\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{Formatter.FormatMoneySpecial(row.original.CurrencySymbol, row.value)}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// Footer: (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\t\t{Formatter.FormatMoney(customerAccountList.TotalAccountBalance)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// )\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Pending Balance\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"PendingBalance\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{Formatter.FormatMoneySpecial(row.original.CurrencySymbol, row.value)}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tshow: !IsSettlement\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// Footer: (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\t{Formatter.FormatMoney(customerAccountList.TotalAccountBalance)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// )\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_Bank_Account} />\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\tconst temp = { ...this.state.searchModel };\r\n\t\t\t\t\t\t\t\t\t\t\t\tvar ids = [];\r\n\t\t\t\t\t\t\t\t\t\t\t\tthis.state.checkedAccounts.forEach(element => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tids.push(element.Id);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (element.SubAccountList != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\telement.SubAccountList.forEach(x => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tids.push(x);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t\t\ttemp.AccountIds = ids;\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tlet IsSettlement = this.props.MenuCode == MenuCodes.Backoffice_Accounts;\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (IsSettlement) temp.SettlementAccountStatus = true;\r\n\t\t\t\t\t\t\t\t\t\t\t\telse temp.SettlementAccountStatus = false;\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn temp;\r\n\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\tRequestUrl=\"/bankapi/v1.0/Transaction/SearchAllAccountMovementsPagedPerformance\"\r\n\t\t\t\t\t\t\t\t\t\t\tRequestMethod=\"POST\"\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tTransaction Details\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t

Reference Number: {TxnDetail.ReferenceNumber}

\r\n\t\t\t\t\t\t\t\t

Transaction Date: {Formatter.FormatDateUtc(TxnDetail.TransactionDate)}

\r\n\t\t\t\t\t\t\t\t

Transaction Amount: {\r\n\t\t\t\t\t\t\t\t\tFormatter.FormatMoneySpecial(TxnDetail.CurrencySymbol, TxnDetail.Amount)}\r\n\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t

Description: {TxnDetail.Description}

\r\n\t\t\t\t\t\t\t\t

Transaction Type: {TxnDetail.EtransferType == null ? TxnDetail.TransactionType : TxnDetail.EtransferType}

\r\n\t\t\t\t\t\t\t\t

From Account Name: {TxnDetail.SourceAccountName}

\r\n\t\t\t\t\t\t\t\t

From Account Number: {TxnDetail.SourceAccountNumber}

\r\n\t\t\t\t\t\t\t\t

To Account Name: {TxnDetail.DestinationAccountName}

\r\n\t\t\t\t\t\t\t\t

To Account Number: {TxnDetail.DestinationAccountNumber}

\r\n\t\t\t\t\t\t\t\t{/* {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t } */}\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nAllAccountMovements.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func\r\n};\r\n\r\n\r\nexport default AllAccountMovements;","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { DeleteIcon, DetailIcon, EftIcon, ETransferIcon } from \"core/Icons\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericCheckInput, GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle, GenericLabel, GenericRadioInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton.jsx\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { ActionCodes, BankingAccountTypes, ClientType, MenuCodes, ProgramCodes, TransactionType, GridColumnType } from \"views/Constants/Constant.js\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport moment from \"moment\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport Select from \"react-select\";\r\n\r\nclass AllAggregateTransactionGroupReport extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.isBackoffice = ClientHelper.IsBackOffice();\r\n\t\tlet IsCallCenter = this.props.MenuCode === MenuCodes.ClientAccountActivities;\r\n\t\tlet IsSettlement = this.props.MenuCode == MenuCodes.Backoffice_Accounts;\r\n\r\n\t\tthis.state = {\r\n\t\t\tcheckedAccounts: [],\r\n\t\t\tcustomerAccountList: [],\r\n\t\t\tsearchModel: {\r\n\t\t\t\tIsRequiredUniqueClientId: true,\r\n\t\t\t\tIsRequiredDate: true,\r\n\t\t\t\tIsRequiredStatementPeriod: true,\r\n\t\t\t\tIsInvalidStatementPeriod: false,\r\n\t\t\t\tIsInvalidFromDate: false,\r\n\t\t\t\tIsInvalidToDate: false,\r\n\t\t\t\tMSTOffset: DateHelper.GetDateTimeMst().format(\"Z\"),\r\n\t\t\t\tUseMstTimezone: false\r\n\t\t\t},\r\n\t\t\tIsTxnDetailOpen: false,\r\n\t\t\tTxnDetail: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tClientTypeParameter: {},\r\n\t\t\tkModel: {}\r\n\t\t};\r\n\r\n\t\tthis.columns = [\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\ttype: GridColumnType.DateTimeUtc,\r\n\t\t\t\tstyle: this.RenderStyle()\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"UniqueClientName\",\r\n\t\t\t\twidth: 120,\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value ?? \" - \"}
\r\n\t\t\t\t),\r\n\t\t\t\tshow: IsSettlement\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Channel Name\",\r\n\t\t\t\taccessor: \"ChannelType\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Received / Sent\",\r\n\t\t\t\taccessor: \"TransactionType\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"Amount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tstyle: this.RenderStyle(),\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"NoOfTransaction\",\r\n\t\t\t\taccessor: \"NoOfTransaction\"\r\n\t\t\t}\r\n\r\n\t\t];\r\n\r\n\t\tthis.trxTable = React.createRef();\r\n\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\r\n\t\tif (this.props.MenuCode == MenuCodes.Backoffice_Accounts) {\r\n\t\t\tthis.props.setAppLeftTitle(\"Settlement Aggregate Transaction Group Report\");\r\n\t\t\tthis.GetCustomerBankAccounts(true);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.props.setAppLeftTitle(\"Aggregate Transaction Group Report\");\r\n\r\n\t\t}\r\n\r\n\t\tif (!this.isBackoffice) {\r\n\t\t\tthis.props.setAppCenterTitle(\"BANKING\");\r\n\t\t\tthis.GetCustomerBankAccounts(true);\r\n\t\t\tthis.GetClientType();\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.props.setAppCenterTitle(\"ACCOUNTS\");\r\n\t\t}\r\n\r\n\t\tthis.setState({ loadingCompleted: true });\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\tTrxFunc = (data) => {\r\n\r\n\t\tif (data == null) {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t\tif (data.ParameterValue == TransactionType.Debit) {\r\n\t\t\treturn \"Received\";\r\n\t\t}\r\n\t\tif (data.ParameterValue == TransactionType.Credit) {\r\n\t\t\treturn \"Sent\";\r\n\t\t}\r\n\t\treturn \"\";\r\n\r\n\t}\r\n\tRenderAccountTypeParameter = (data) => {\r\n\t\tconst parameter = { ...this.state.ClientTypeParameter };\r\n\t\tif (data == null) {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t\tif (data.AccountCode == null || data.AccountCode == \"\") {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\t\tif (data.AccountCode != BankingAccountTypes.PrimaryAccount) {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\t\tif (data.ProgramCode == null || data.ProgramCode == \"\") {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\t\tif (data.ProgramCode != ProgramCodes.Bank_Programs_Bank_Account) {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\r\n\t\tif (parameter.ParameterValue == ClientType.Corporate || parameter.ParameterValue == ClientType.SalesAgentCorporate) {\r\n\t\t\treturn \"Corporate Account\";\r\n\t\t} else if (parameter.ParameterValue == ClientType.Personal || parameter.ParameterValue == ClientType.SalesAgentPersonal) {\r\n\t\t\treturn \"Individual Account\";\r\n\t\t} else {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\r\n\t}\r\n\tGetClientType = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/BankCustomer/GetClientType\",\r\n\t\t\t{},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ ClientTypeParameter: responseData.Item });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\thandleChangeSearchModel = (name, newValue) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.searchModel || {};\r\n\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\tif (name == \"CheckAllAccounts\" && newValue == true) {\r\n\t\t\t\tconst list = this.state.customerAccountList;\r\n\t\t\t\tthis.setState({ checkedAccounts: list });\r\n\t\t\t} else if (name == \"CheckAllAccounts\" && newValue == false) {\r\n\t\t\t\tthis.setState({ checkedAccounts: [] });\r\n\t\t\t}\r\n\r\n\t\t\tif (name == \"UniqueClientId\" && newValue !== undefined && newValue != null) {\r\n\t\t\t\tthis.GetCustomerBankAccounts(true);\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tcustomerAccountList: [], checkedAccounts: []\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t\telse if (name == \"UniqueClientId\" && (newValue == undefined || newValue == null)) {\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tcheckedAccounts: [], customerAccountList: []\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t\tif (name == \"Amount\") {\r\n\t\t\t\tmodel.MinAmount = newValue;\r\n\t\t\t\tmodel.MaxAmount = newValue;\r\n\t\t\t}\r\n\r\n\t\t\tif (name == \"ReferenceNumber\") {\r\n\r\n\t\t\t\tlet hasReferenceNumberSearch = model[\"ReferenceNumber\"]?.length > 0;\r\n\r\n\t\t\t\tmodel.IsRequiredStatementPeriod = !hasReferenceNumberSearch;\r\n\t\t\t\tmodel.IsRequiredDate = !hasReferenceNumberSearch;\r\n\t\t\t\tmodel.IsRequiredUniqueClientId = !hasReferenceNumberSearch;\r\n\t\t\t}\r\n\r\n\t\t\tif (name == \"StatementPeriod\" || name == \"ToDate\" || name == \"FromDate\") {\r\n\r\n\t\t\t\tif (model.StatementPeriod == undefined || model.StatementPeriod == null || model.StatementPeriod == \"\") {\r\n\t\t\t\t\tmodel.StatementControl = false;\r\n\t\t\t\t\tmodel.IsRequiredStatementPeriod = true;\r\n\t\t\t\t\tmodel.IsRequiredDate = true;\r\n\t\t\t\t\tthis.setState({ searchModel: model });\r\n\r\n\t\t\t\t\tif ((model.ToDate == undefined || model.ToDate == \"\" || model.ToDate == null) && (model.FromDate == undefined || model.FromDate == \"\" || model.FromDate == null)) {\r\n\r\n\t\t\t\t\t\tmodel.IsInvalidFromDate = false;\r\n\t\t\t\t\t\tmodel.IsInvalidToDate = false;\r\n\r\n\t\t\t\t\t\tmodel.DateControl = false;\r\n\t\t\t\t\t\tthis.setState({ searchModel: model });\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\r\n\t\t\t\t\t\tmodel.StatementControl = true;\r\n\t\t\t\t\t\tmodel.DateControl = false;\r\n\t\t\t\t\t\tmodel.IsRequiredStatementPeriod = false;\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmodel.DateControl = true;\r\n\t\t\t\t\tmodel.IsInvalidFromDate = false;\r\n\t\t\t\t\tmodel.IsInvalidToDate = false;\r\n\t\t\t\t\tmodel.IsRequiredDate = false;\r\n\t\t\t\t\tthis.setState({ searchModel: model });\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn { searchModel: model };\r\n\t\t});\r\n\t}\r\n\tHandleCheckCustomerAccounts = (e, x) => {\r\n\r\n\t\tconst { checkedAccounts } = this.state;\r\n\t\tvar temp = true;\r\n\r\n\t\tconst items = checkedAccounts.map((item, key) => {\r\n\t\t\tif (item.Id == x.Id) {\r\n\t\t\t\tcheckedAccounts.splice(key, 1);\r\n\t\t\t\ttemp = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t);\r\n\r\n\t\tif (checkedAccounts.length == 0 && temp) { checkedAccounts.push(x); }\r\n\t\telse if (temp) { checkedAccounts.push(x); }\r\n\r\n\t\tthis.setState({ checkedAccounts });\r\n\r\n\t}\r\n\tIsValid = () => {\r\n\t\tvar temp = { ...this.state.searchModel };\r\n\t\tvar kModel = { ...this.state.kModel };\r\n\t\tlet IsSettlement = this.props.MenuCode == MenuCodes.Backoffice_Accounts;\r\n\t\tif (!IsSettlement) {\r\n\r\n\t\t\tif (this.isBackoffice) {\r\n\t\t\t\tif (temp.IsRequiredUniqueClientId && temp.UniqueClientId == null || temp.UniqueClientId == \"\") {\r\n\t\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \" Client must be defined\");\r\n\t\t\t\t\tkModel.UniqueClientId = true;\r\n\t\t\t\t\tthis.setState({ kModel });\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tkModel.UniqueClientId = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.setState({ kModel });\r\n\r\n\t\tif ((temp.IsRequiredStatementPeriod || temp.IsRequiredDate)\r\n\t\t\t&&\r\n\t\t\t(temp.StatementPeriod == undefined || temp.StatementPeriod == null || temp.StatementPeriod == \"\")\r\n\t\t\t&&\r\n\t\t\t(temp.FromDate == null || temp.FromDate == undefined || temp.FromDate == \"\")\r\n\t\t\t&&\r\n\t\t\t(temp.ToDate == null || temp.ToDate == undefined || temp.ToDate == \"\")) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Please select Statement Period or Date Interval\");\r\n\t\t\tthis.setState({ searchModel: temp });\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif ((temp.StatementPeriod != null && temp.StatementPeriod != \"\")) {\r\n\t\t\t\ttemp.DateControl = true;\r\n\t\t\t\ttemp.IsRequiredDate = false;\r\n\r\n\t\t\t\tthis.setState({ searchModel: temp });\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif (temp.IsRequiredDate && typeof temp.FromDate != \"object\" && temp.FromDate != \"\" && temp.FromDate != null) {\r\n\t\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"From Date is invalid\");\r\n\t\t\t\t\ttemp.IsInvalidFromDate = true;\r\n\t\t\t\t\tthis.setState({ searchModel: temp });\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\tif (temp.IsRequiredDate && typeof temp.ToDate != \"object\" && temp.ToDate != \"\" && temp.ToDate != null) {\r\n\t\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"To Date is invalid\");\r\n\t\t\t\t\ttemp.IsInvalidToDate = true;\r\n\t\t\t\t\tthis.setState({ searchModel: temp });\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t} else if (temp.IsRequiredDate && temp.ToDate == undefined || temp.ToDate == \"\") {\r\n\t\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"To Date must be defined \");\r\n\t\t\t\t\ttemp.IsInvalidToDate = true;\r\n\t\t\t\t\tthis.setState({ searchModel: temp });\r\n\t\t\t\t\treturn false;\r\n\r\n\t\t\t\t} else if (temp.IsRequiredDate && temp.FromDate == undefined || temp.FromDate == \"\") {\r\n\t\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"From Date must be defined \");\r\n\t\t\t\t\ttemp.IsInvalidFromDate = true;\r\n\t\t\t\t\tthis.setState({ searchModel: temp });\r\n\t\t\t\t\treturn false;\r\n\r\n\t\t\t\t}\r\n\t\t\t\tif (temp.IsRequiredDate && (typeof temp.FromDate == \"object\" && typeof temp.ToDate == \"object\") && temp.ToDate < temp.FromDate) {\r\n\t\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"From Date cannot be bigger than To Date\");\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (temp.IsRequiredDate && (typeof temp.FromDate == \"object\" && typeof temp.ToDate == \"object\")) {\r\n\t\t\t\t\tvar interval = moment.duration(temp.ToDate.diff(temp.FromDate)).asDays();\r\n\t\t\t\t\tif (interval > 30) {\r\n\t\t\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Between two dates cannot be longer than 30 days!\");\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\ttemp.IsInvalidFromDate = false;\r\n\t\t\t\ttemp.IsInvalidToDate = false;\r\n\t\t\t\ttemp.StatementControl = true;\r\n\t\t\t\tthis.setState({ searchModel: temp });\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tlet IsCallCenter = this.props.MenuCode == MenuCodes.ClientAccountActivities;\r\n\t\tif (IsCallCenter && (temp.UniqueClientId == null || temp.UniqueClientId == 0)) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", \"Client must be selected for search operation !\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tGetCustomerBankAccounts = (status) => {\r\n\t\tconst temp = { ...this.state.searchModel };\r\n\t\tlet IsSettlement = this.props.MenuCode == MenuCodes.Backoffice_Accounts;\r\n\r\n\t\tif (IsSettlement) temp.SettlementAccountStatus = true;\r\n\t\telse temp.SettlementAccountStatus = false;\r\n\r\n\t\tif (IsSettlement) {\r\n\t\t\tif (status == undefined) {\r\n\t\t\t\tvar isvalidControl = this.IsValid();\r\n\t\t\t\tif (isvalidControl == false) return;\r\n\t\t\t\tthis.GetAccountList(temp);\r\n\t\t\t}\r\n\t\t\tthis.GetAccountList(temp);\r\n\t\t} else if (this.isBackoffice) {\r\n\t\t\tif ((temp.UniqueClientId == null || temp.UniqueClientId == \"\")) return;\r\n\t\t\telse if (status) {\r\n\t\t\t\tthis.GetAccountList(temp);\r\n\t\t\t\treturn;\r\n\t\t\t} else if (status == undefined && !this.IsValid()) return;\r\n\r\n\t\t\tthis.GetAccountList(temp);\r\n\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (status) {\r\n\t\t\t\tthis.GetAccountList(temp);\r\n\t\t\t\treturn;\r\n\t\t\t} else {\r\n\t\t\t\tvar isvalidControl1 = this.IsValid();\r\n\t\t\t\tif (isvalidControl1 == false) return;\r\n\r\n\t\t\t\tthis.GetAccountList(temp);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}\r\n\tGetAccountList = (temp) => {\r\n\t\tthis.handleChangeSearchModel(\"UseMstTimezone\", false);\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Account/ClientAccountActivites\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error !\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ customerAccountList: responseData.Item || [] });\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tSendToWorkflow = id => {\r\n\t\tvar data = { Id: id };\r\n\t\tvar jsonData = JSON.stringify(data);\r\n\r\n\t\tvar requestData = {\r\n\t\t\tMenuCode: MenuCodes.CloseAccount,\r\n\t\t\tActionCode: ActionCodes.Submit,\r\n\t\t\tJsonData: jsonData,\r\n\t\t\tRowId: id\r\n\t\t};\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/coreapi/v1.0/WorkflowData/InsertWorkflowData\",\r\n\t\t\trequestData,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Request successfully sent for approval\");\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", \"An error occurred while sending approve request \" + errorMessage);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\tClearData = () => {\r\n\r\n\t\tif (this.isBackoffice && this.props.MenuCode != MenuCodes.Backoffice_Accounts) //Settlement Acc Acvt\r\n\t\t{\r\n\t\t\tthis.setState({\r\n\t\t\t\tcustomerAccountList: [], alert: null, isLoading: false, checkedAccounts: [], searchModel: {\r\n\t\t\t\t\tIsRequiredDate: true,\r\n\t\t\t\t\tIsRequiredStatementPeriod: true,\r\n\r\n\t\t\t\t}, IsTxnDetailOpen: false, TxnDetail: {},\r\n\t\t\t});\r\n\t\t}\r\n\t\tthis.setState({\r\n\t\t\talert: null, isLoading: false, checkedAccounts: [], searchModel: {\r\n\t\t\t\tIsRequiredDate: true,\r\n\t\t\t\tIsRequiredStatementPeriod: true,\r\n\t\t\t\tIsRequiredUniqueClientId: true,\r\n\t\t\t}, IsTxnDetailOpen: false, TxnDetail: {},\r\n\t\t});\r\n\t}\r\n\thandleChangeFilterPanel = panel => (event, expanded) => {\r\n\t\tthis.setState({\r\n\t\t\tactive: expanded ? panel : -1\r\n\t\t});\r\n\t};\r\n\tRenderStyle = () => {\r\n\t\treturn {\r\n\t\t\tcolumn: \"TransactionType\",\r\n\t\t\tcondition: \"Received\",\r\n\t\t\tstyle: { fontWeight: \"600\" },\r\n\t\t\tprefix: [\"+\", \"\"]\r\n\t\t};\r\n\t}\r\n\tBalanceRenderStyle = () => {\r\n\t\treturn {\r\n\t\t\tcolumn: \"TransactionType\",\r\n\t\t\tcondition: \"Received\",\r\n\t\t\tstyle: { fontWeight: \"600\" },\r\n\t\t\tprefix: [\"\", \"\"]\r\n\t\t};\r\n\t}\r\n\r\n\r\n\tHandleGetList = () => {\r\n\t\tthis.setState(state => ({ trxGridToken: !state.trxGridToken }));\r\n\t}\r\n\r\n\tHandleGetListMst = () => {\r\n\t\tthis.handleChangeSearchModel(\"UseMstTimezone\", true);\r\n\t\tthis.HandleGetList();\r\n\t}\r\n\r\n\tExportClick = (timezone) => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.accessor != \"Actions\" && c.accessor != \"ED\" && (c.show == undefined || c.show)) {\r\n\t\t\t\ttrxColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\t\tthis.handleChangeSearchModel(\"UseMstTimezone\", timezone === \"MST\");\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: trxColumns, ExportSelectedColumns: trxColumns });\r\n\t}\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tif (!this.IsValid())\r\n\t\t\treturn;\r\n\r\n\t\tconst temp = { ...this.state.searchModel };\r\n\r\n\t\tlet IsSettlement = this.props.MenuCode == MenuCodes.Backoffice_Accounts;\r\n\t\tif (IsSettlement)\r\n\t\t\ttemp.SettlementAccountStatus = true;\r\n\t\telse\r\n\t\t\ttemp.SettlementAccountStatus = false;\r\n\r\n\t\tvar ids = [];\r\n\t\tthis.ShowConfirmMessage(\"question\", \"Long Process Warning\", \"This process may take a while. Continue ?\", () => {\r\n\t\t\tthis.hideAlert();\r\n\t\t\tthis.state.checkedAccounts.forEach(element => {\r\n\t\t\t\tids.push(element.Id);\r\n\t\t\t\tif (element.SubAccountList != null) {\r\n\t\t\t\t\telement.SubAccountList.forEach(x => {\r\n\t\t\t\t\t\tids.push(x);\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\ttemp.AccountIds = ids;\r\n\t\t\tvar jsonColList = [];\r\n\r\n\t\t\tvar trxColumns = {};\r\n\t\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\t\ttrxColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t\t});\r\n\t\t\tjsonColList.push(trxColumns);\r\n\r\n\t\t\tvar mytitle = \"\";\r\n\t\t\tif (IsSettlement) { mytitle = \"Settlement Accounts Activities Report\"; }\r\n\t\t\telse { mytitle = \"Client Accounts Activities Report\"; }\r\n\r\n\t\t\ttemp.jsonFile = {\r\n\t\t\t\tcolmns: jsonColList,\r\n\t\t\t\tformat: this.state.ExportReportType,\r\n\t\t\t\ttitle: mytitle\r\n\t\t\t};\r\n\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\t\"/bankapi/v1.0/Transaction/SearchAllAggregateTransactionGroupExport\",\r\n\t\t\t\ttemp,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terrorMessage => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t\t},\r\n\t\t\t\tthis.props.showMessage\r\n\t\t\t);\r\n\t\t});\r\n\r\n\t}\r\n\r\n\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { customerAccountList, checkedAccounts, searchModel, TxnDetail, IsTxnDetailOpen, alert, SettlementAccountStatus, kModel } = this.state;\r\n\t\tlet IsCallCenter = this.props.MenuCode === MenuCodes.ClientAccountActivities;\r\n\t\tlet IsSettlement = this.props.MenuCode == MenuCodes.Backoffice_Accounts;\r\n\t\tvar endDate = (searchModel.FromDate instanceof moment) ? searchModel.FromDate.clone() : \"\";\r\n\r\n\t\tvar GridDataAccounts = customerAccountList == null ? [] : customerAccountList.map(d => {\r\n\t\t\treturn {\r\n\t\t\t \r\n\t\t\t\tAP: (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t c.Id == d.Id).length > 0}\r\n\t\t\t\t\t\t\tValueChanged={(value) => {\r\n\t\t\t\t\t\t\t\tthis.HandleCheckCustomerAccounts(value, d);\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tId: d.Id,\r\n\t\t\t\tProgramId: d.ProgramId,\r\n\t\t\t\tCustomerBankAccountId: d.CustomerBankAccountId,\r\n\t\t\t\tAccountShortName: d.AccountShortName,\r\n\t\t\t\tBankAccountId: d.BankAccountId,\r\n\t\t\t\tUniqueClientId: d.UniqueClientId,\r\n\t\t\t\tBalance: d.Balance,\r\n\t\t\t\tAccountName: d.AccountName,\r\n\t\t\t\tPendingBalance: d.PendingBalance,\r\n\t\t\t\tAccountNumber: d.AccountNumber,\r\n\t\t\t\tAccountNumberStr: d.AccountNumberStr,\r\n\t\t\t\tBranchNumber: d.BranchNumber,\r\n\t\t\t\tBankNumber: d.BankNumber,\r\n\t\t\t\tAccountTypeId: d.AccountTypeId,\r\n\t\t\t\tAccountType: d.AccountType,\r\n\t\t\t\tAccountType4: d.AccountType4,\r\n\t\t\t\tAccountType6: d.AccountType6,\r\n\t\t\t\tAccountCode: d.AccountCode,\r\n\t\t\t\tProgramCode: d.ProgramCode,\r\n\t\t\t\tProgramName: d.ProgramName,\r\n\t\t\t\tCurrencyCode: d.CurrencyCode,\r\n\t\t\t\tCurrencyDesc: d.CurrencyDesc,\r\n\t\t\t\tCurrencySymbol: d.CurrencySymbol,\r\n\t\t\t\tAmountDisplay: d.AmountDisplay,\r\n\t\t\t\tIsChequingAccount: d.IsChequingAccount,\r\n\t\t\t\tSubAccountList: d.SubAccountList\r\n\t\t\t};\r\n\t\t});\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t this.ClearData(), Disabled: Disabled },\r\n\t\t\t\t\t\t\t{ Code: \"Search\", OnClick: () => { this.HandleGetList(); this.GetCustomerBankAccounts(); }, Disabled: Disabled },\r\n\t\t\t\t\t\t\t{ Code: \"Export\", OnClick: () => this.ExportClick(\"UTC\"), Disabled: Disabled },\r\n\t\t\t\t\t\t\t{ Code: \"SearchStatement\", OnClick: () => this.HandleGetListMst(), Disabled: Disabled },\r\n\t\t\t\t\t\t\t{ Code: \"GetStatement\", OnClick: () => this.ExportClick(\"MST\"), Disabled: Disabled },\r\n\t\t\t\t\t\t\t//{ Code: \"SearchStatement\", OnClick: () => { this.HandleGetList(); this.GetCustomerBankAccounts(); }, Disabled: Disabled },\r\n\t\t\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{(IsCallCenter || this.isBackoffice) && (!IsSettlement) &&\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tValue={searchModel.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChangeSearchModel}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tRequired={searchModel.IsRequiredUniqueClientId}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={kModel.UniqueClientId}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t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\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAll Accounts{\" \"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Account Type\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"AccountType\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{this.RenderAccountTypeParameter(row.original)}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tTotal{\" \"} {customerAccountList == null ? 0 : customerAccountList.length}{\" \"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Program Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ProgramName\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tshow: !IsSettlement\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Account Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"AccountNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Chequing Account\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"IsChequingAccount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tshow: (IsSettlement != true && this.isBackoffice == true)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Currency\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"CurrencyCode\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Balance\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Balance\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{Formatter.FormatMoneySpecial(row.original.CurrencySymbol, row.value)}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// Footer: (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\t\t{Formatter.FormatMoney(customerAccountList.TotalAccountBalance)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// )\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Pending Balance\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"PendingBalance\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{Formatter.FormatMoneySpecial(row.original.CurrencySymbol, row.value)}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tshow: !IsSettlement\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// Footer: (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\t{Formatter.FormatMoney(customerAccountList.TotalAccountBalance)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// )\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_Bank_Account} />\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\tconst temp = { ...this.state.searchModel };\r\n\t\t\t\t\t\t\t\t\t\t\t\tvar ids = [];\r\n\t\t\t\t\t\t\t\t\t\t\t\tthis.state.checkedAccounts.forEach(element => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tids.push(element.Id);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (element.SubAccountList != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\telement.SubAccountList.forEach(x => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tids.push(x);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t\t\ttemp.AccountIds = ids;\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tlet IsSettlement = this.props.MenuCode == MenuCodes.Backoffice_Accounts;\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (IsSettlement) temp.SettlementAccountStatus = true;\r\n\t\t\t\t\t\t\t\t\t\t\t\telse temp.SettlementAccountStatus = false;\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn temp;\r\n\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\tRequestUrl=\"/bankapi/v1.0/Transaction/SearchAllAggregateTransactionGroupPaged\"\r\n\t\t\t\t\t\t\t\t\t\t\tRequestMethod=\"POST\"\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nAllAggregateTransactionGroupReport.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func\r\n};\r\n\r\n\r\nexport default AllAggregateTransactionGroupReport;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericRadioInput,GenericGrid,GenericLabel,GenericDialog,GenericDialogActions, GenericSelectInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { BankingAccountTypes, ClientType, ProgramCodes, GridColumnType } from \"views/Constants/Constant.js\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport MenuAuthorityRightHelper from \"core/MenuAuthorityRightHelper\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Select from \"react-select\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\n\r\nclass BalanceAccount extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.isBackoffice = ClientHelper.IsBackOffice();\r\n\t\tthis.defaultModel = {\r\n\t\t\tUniqueClientId: 0\r\n\t\t}\r\n\t\tthis.state = {\r\n\t\t\tvModel: {},\r\n\t\t\tsearchModel: { ...this.defaultModel },\r\n\t\t\tcustomerTransactions: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tClientTypeParameter: {}\r\n\t\t};\r\n\t\tthis.trxTable = React.createRef();\r\n\t\tthis.MenuAuthorityRightHelper = new MenuAuthorityRightHelper();\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppCenterTitle(\"BANKING\");\r\n\r\n\t\tif (!this.isBackoffice) {\r\n\t\t\tthis.GetClientType();\r\n\t\t\tvar tempDefaultModel = this.defaultModel;\r\n\t\t\ttempDefaultModel.UniqueClientId = ClientHelper.GetClientRowId();\r\n\t\t\tthis.setState(function (state, props) {\r\n\t\t\t\tvar model = state.searchModel || {};\r\n\t\t\t\tmodel.UniqueClientId = tempDefaultModel.UniqueClientId;\r\n\t\t\t\treturn { searchModel: model };\r\n\t\t\t});\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.props.setAppCenterTitle(\"ACCOUNTS\");\r\n\r\n\t\t}\r\n\t\tthis.props.setAppLeftTitle(\"Balance\");\r\n\r\n\t}\r\n\r\n\tRenderAccountTypeParameter = (data) => {\r\n\t\tconst parameter = { ...this.state.ClientTypeParameter };\r\n\t\tif (data == null) {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t\tif (data.AccountCode == null || data.AccountCode == \"\") {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\t\tif (data.AccountCode != BankingAccountTypes.PrimaryAccount) {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\t\tif (data.ProgramCode == null || data.ProgramCode == \"\") {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\t\tif (data.ProgramCode != ProgramCodes.Bank_Programs_Bank_Account) {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\t\tif (parameter.ParameterValue == ClientType.Corporate || parameter.ParameterValue == ClientType.SalesAgentCorporate) {\r\n\t\t\treturn \"Corporate Account\";\r\n\t\t} else if (parameter.ParameterValue == ClientType.Personal || parameter.ParameterValue == ClientType.SalesAgentPersonal) {\r\n\t\t\treturn \"Individual Account\";\r\n\t\t} else {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\r\n\t}\r\n\tGetClientType = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/BankCustomer/GetClientType\",\r\n\t\t\t{},\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ ClientTypeParameter: responseData.Item });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\thandleChangeSearchModel = (name, newValue) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.searchModel || {};\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\treturn { searchModel: model };\r\n\t\t});\r\n\t}\r\n\tPerformSearch = () => {\r\n\t\tif (!this.IsValid())\r\n\t\t\treturn;\r\n\t\tthis.BankAccountTransactions();\r\n\t}\r\n\tIsValid = () => {\r\n\t\tvar temp = { ...this.state.searchModel };\r\n\t\tconst vModel = this.state.vModel;\r\n\r\n\t\tvModel.SearchDate = temp.SearchDate == null || temp.SearchDate == \"\";\r\n\t\tif (vModel.SearchDate) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Date must be selected for search operation !\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ vModel });\r\n\t\treturn true;\r\n\t}\r\n\r\n\tBankAccountTransactions = () => {\r\n\t\tlet temp = { ...this.state.searchModel };\r\n\t\ttemp.UniqueClientId = temp.UniqueClientId == null ? 0 : temp.UniqueClientId;\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Transaction/BalanceList\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ customerTransactions: [] });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (responseData.Item != null && responseData.Item.length > 0) {\r\n\t\t\t\t\t\tthis.setState({ customerTransactions: responseData.Item });\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tthis.setState({ customerTransactions: [] });\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false, customerTransactions: [] });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\tClearData = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null, isLoading: false, searchModel: { ...this.defaultModel }, customerTransactions: [],\r\n\t\t});\r\n\r\n\t}\r\n\thandleChangeFilterPanel = panel => (event, expanded) => {\r\n\t\tthis.setState({\r\n\t\t\tactive: expanded ? panel : -1\r\n\t\t});\r\n\t};\r\n\r\n\tRenderStyle = () => {\r\n\t\treturn {\r\n\t\t\tcolumn: \"TransactionType\",\r\n\t\t\tcondition: \"Received\",\r\n\t\t\tstyle: { fontWeight: \"600\" },\r\n\t\t\tprefix: [\"+\", \"\"]\r\n\t\t};\r\n\t}\r\n\tBalanceRenderStyle = () => {\r\n\t\treturn {\r\n\t\t\tcolumn: \"TransactionType\",\r\n\t\t\tcondition: \"Received\",\r\n\t\t\tstyle: { fontWeight: \"600\" },\r\n\t\t\tprefix: [\"\", \"\"]\r\n\t\t};\r\n\t}\r\n\r\n\r\n\tExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.accessor != \"Actions\" && c.accessor != \"ED\" && (c.show == undefined || c.show)) {\r\n\t\t\t\ttrxColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: trxColumns, ExportSelectedColumns: trxColumns });\r\n\t}\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tif (!this.IsValid())\r\n\t\t\treturn;\r\n\r\n\t\tthis.ShowConfirmMessage(\"question\", \"Long Process Warning\", \"This process may take a while. Continue ?\", () => {\r\n\t\t\tthis.hideAlert();\r\n\t\t\tconst { searchModel } = this.state;\r\n\r\n\t\t\t// Add jsonFile\r\n\t\t\tvar jsonColList = [];\r\n\r\n\t\t\tvar trxColumns = {};\r\n\t\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\t\ttrxColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t\t});\r\n\t\t\tjsonColList.push(trxColumns);\r\n\r\n\t\t\tsearchModel[\"jsonFile\"] = {\r\n\t\t\t\tcolmns: jsonColList,\r\n\t\t\t\tformat: this.state.ExportReportType,\r\n\t\t\t\ttitle: \"Balance Report\"\r\n\t\t\t};\r\n\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\t\"/bankapi/v1.0/Transaction/BalanceReportExportList\",\r\n\t\t\t\tsearchModel,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terrorMessage => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t\t},\r\n\t\t\t\tthis.props.showMessage\r\n\t\t\t);\r\n\t\t});\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { searchModel, vModel, customerTransactions, alert } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t this.ClearData(), Disabled: Disabled },\r\n\t\t\t\t\t\t\t{ Code: \"Search\", OnClick: () => this.PerformSearch(), Disabled: Disabled },\r\n\t\t\t\t\t\t\t{ Code: \"Export\", OnClick: () => this.ExportClick(), Disabled: Disabled }\r\n\t\t\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{(this.isBackoffice) &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tValue={searchModel.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChangeSearchModel}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tCanClear />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{row.value==1?\"Yes\":\"No\"}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Account Type\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"AccountType\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{this.RenderAccountTypeParameter(row.original)}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Total Received Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TotalDebitAmount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Total Received Count\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TotalDebitCount\",\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Total Sent Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TotalCreditAmount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Total Sent Count\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TotalCreditCount\",\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"End of Day Balance\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TotalBalanceAmount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\t\t\tIsSorted={false}\r\n\t\t\t\t\t\t\t\t\t\t\tPageSize={50}\r\n\t\t\t\t\t\t\t\t\t\t\tShowPagination={true}\r\n\t\t\t\t\t\t\t\t\t\t\tref={this.trxTable}\r\n\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nBalanceAccount.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func\r\n};\r\n\r\n\r\nexport default BalanceAccount;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericRadioInput,GenericGrid,GenericLabel,GenericDialog,GenericDialogActions, GenericSelectInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { BankingAccountTypes, ClientType, ProgramCodes, GridColumnType } from \"views/Constants/Constant.js\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport MenuAuthorityRightHelper from \"core/MenuAuthorityRightHelper\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Select from \"react-select\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\n\r\nclass BalanceAccount extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.isBackoffice = ClientHelper.IsBackOffice();\r\n\t\tthis.defaultModel = {\r\n\t\t\tUniqueClientId: 0\r\n\t\t}\r\n\t\tthis.state = {\r\n\t\t\tvModel: {},\r\n\t\t\tsearchModel: { ...this.defaultModel },\r\n\t\t\tcustomerTransactions: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tClientTypeParameter: {}\r\n\t\t};\r\n\t\tthis.trxTable = React.createRef();\r\n\t\tthis.MenuAuthorityRightHelper = new MenuAuthorityRightHelper();\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppCenterTitle(\"BANKING\");\r\n\r\n\t\tif (!this.isBackoffice) {\r\n\t\t\tthis.GetClientType();\r\n\t\t\tvar tempDefaultModel = this.defaultModel;\r\n\t\t\ttempDefaultModel.UniqueClientId = ClientHelper.GetClientRowId();\r\n\t\t\tthis.setState(function (state, props) {\r\n\t\t\t\tvar model = state.searchModel || {};\r\n\t\t\t\tmodel.UniqueClientId = tempDefaultModel.UniqueClientId;\r\n\t\t\t\treturn { searchModel: model };\r\n\t\t\t});\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.props.setAppCenterTitle(\"ACCOUNTS\");\r\n\r\n\t\t}\r\n\t\tthis.props.setAppLeftTitle(\"Balance MST\");\r\n\r\n\t}\r\n\r\n\tRenderAccountTypeParameter = (data) => {\r\n\t\tconst parameter = { ...this.state.ClientTypeParameter };\r\n\t\tif (data == null) {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t\tif (data.AccountCode == null || data.AccountCode == \"\") {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\t\tif (data.AccountCode != BankingAccountTypes.PrimaryAccount) {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\t\tif (data.ProgramCode == null || data.ProgramCode == \"\") {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\t\tif (data.ProgramCode != ProgramCodes.Bank_Programs_Bank_Account) {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\t\tif (parameter.ParameterValue == ClientType.Corporate || parameter.ParameterValue == ClientType.SalesAgentCorporate) {\r\n\t\t\treturn \"Corporate Account\";\r\n\t\t} else if (parameter.ParameterValue == ClientType.Personal || parameter.ParameterValue == ClientType.SalesAgentPersonal) {\r\n\t\t\treturn \"Individual Account\";\r\n\t\t} else {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\r\n\t}\r\n\tGetClientType = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/BankCustomer/GetClientType\",\r\n\t\t\t{},\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ ClientTypeParameter: responseData.Item });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\thandleChangeSearchModel = (name, newValue) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.searchModel || {};\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\treturn { searchModel: model };\r\n\t\t});\r\n\t}\r\n\tPerformSearch = () => {\r\n\t\tif (!this.IsValid())\r\n\t\t\treturn;\r\n\t\tthis.BankAccountTransactions();\r\n\t}\r\n\tIsValid = () => {\r\n\t\tvar temp = { ...this.state.searchModel };\r\n\t\tconst vModel = this.state.vModel;\r\n\r\n\t\tvModel.SearchDate = temp.SearchDate == null || temp.SearchDate == \"\";\r\n\t\tif (vModel.SearchDate) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Date must be selected for search operation !\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ vModel });\r\n\t\treturn true;\r\n\t}\r\n\r\n\tBankAccountTransactions = () => {\r\n\t\tlet temp = { ...this.state.searchModel };\r\n\t\ttemp.UniqueClientId = temp.UniqueClientId == null ? 0 : temp.UniqueClientId;\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Transaction/BalanceListMST\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ customerTransactions: [] });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (responseData.Item != null && responseData.Item.length > 0) {\r\n\t\t\t\t\t\tthis.setState({ customerTransactions: responseData.Item });\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tthis.setState({ customerTransactions: [] });\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false, customerTransactions: [] });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\tClearData = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null, isLoading: false, searchModel: { ...this.defaultModel }, customerTransactions: [],\r\n\t\t});\r\n\r\n\t}\r\n\thandleChangeFilterPanel = panel => (event, expanded) => {\r\n\t\tthis.setState({\r\n\t\t\tactive: expanded ? panel : -1\r\n\t\t});\r\n\t};\r\n\r\n\tRenderStyle = () => {\r\n\t\treturn {\r\n\t\t\tcolumn: \"TransactionType\",\r\n\t\t\tcondition: \"Received\",\r\n\t\t\tstyle: { fontWeight: \"600\" },\r\n\t\t\tprefix: [\"+\", \"\"]\r\n\t\t};\r\n\t}\r\n\tBalanceRenderStyle = () => {\r\n\t\treturn {\r\n\t\t\tcolumn: \"TransactionType\",\r\n\t\t\tcondition: \"Received\",\r\n\t\t\tstyle: { fontWeight: \"600\" },\r\n\t\t\tprefix: [\"\", \"\"]\r\n\t\t};\r\n\t}\r\n\r\n\r\n\tExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.accessor != \"Actions\" && c.accessor != \"ED\" && (c.show == undefined || c.show)) {\r\n\t\t\t\ttrxColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: trxColumns, ExportSelectedColumns: trxColumns });\r\n\t}\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tif (!this.IsValid())\r\n\t\t\treturn;\r\n\r\n\t\tthis.ShowConfirmMessage(\"question\", \"Long Process Warning\", \"This process may take a while. Continue ?\", () => {\r\n\t\t\tthis.hideAlert();\r\n\t\t\tconst { searchModel } = this.state;\r\n\r\n\t\t\t// Add jsonFile\r\n\t\t\tvar jsonColList = [];\r\n\r\n\t\t\tvar trxColumns = {};\r\n\t\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\t\ttrxColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t\t});\r\n\t\t\tjsonColList.push(trxColumns);\r\n\r\n\t\t\tsearchModel[\"jsonFile\"] = {\r\n\t\t\t\tcolmns: jsonColList,\r\n\t\t\t\tformat: this.state.ExportReportType,\r\n\t\t\t\ttitle: \"Balance Report\"\r\n\t\t\t};\r\n\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\t\"/bankapi/v1.0/Transaction/BalanceReportExportListMST\",\r\n\t\t\t\tsearchModel,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terrorMessage => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t\t},\r\n\t\t\t\tthis.props.showMessage\r\n\t\t\t);\r\n\t\t});\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { searchModel, vModel, customerTransactions, alert } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t this.ClearData(), Disabled: Disabled },\r\n\t\t\t\t\t\t\t{ Code: \"Search\", OnClick: () => this.PerformSearch(), Disabled: Disabled },\r\n\t\t\t\t\t\t\t{ Code: \"Export\", OnClick: () => this.ExportClick(), Disabled: Disabled }\r\n\t\t\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{(this.isBackoffice) &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tValue={searchModel.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChangeSearchModel}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tCanClear />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{row.value==1?\"Yes\":\"No\"}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Account Type\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"AccountType\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{this.RenderAccountTypeParameter(row.original)}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Total Received Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TotalDebitAmount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Total Received Count\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TotalDebitCount\",\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Total Sent Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TotalCreditAmount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Total Sent Count\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TotalCreditCount\",\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"End of Day Balance\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TotalBalanceAmount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\t\t\tIsSorted={false}\r\n\t\t\t\t\t\t\t\t\t\t\tPageSize={50}\r\n\t\t\t\t\t\t\t\t\t\t\tShowPagination={true}\r\n\t\t\t\t\t\t\t\t\t\t\tref={this.trxTable}\r\n\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nBalanceAccount.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func\r\n};\r\n\r\n\r\nexport default BalanceAccount;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericRadioInput,GenericGrid,GenericLabel,GenericDialog,GenericDialogActions, GenericSelectInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { BankingAccountTypes, ClientType, ProgramCodes, GridColumnType } from \"views/Constants/Constant.js\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport MenuAuthorityRightHelper from \"core/MenuAuthorityRightHelper\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Select from \"react-select\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\n\r\nclass BalanceAccount extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.isBackoffice = ClientHelper.IsBackOffice();\r\n\t\tthis.defaultModel = {\r\n\t\t\tUniqueClientId: 0\r\n\t\t}\r\n\t\tthis.state = {\r\n\t\t\tvModel: {},\r\n\t\t\tsearchModel: { ...this.defaultModel },\r\n\t\t\tcustomerTransactions: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tClientTypeParameter: {}\r\n\t\t};\r\n\t\tthis.trxTable = React.createRef();\r\n\t\tthis.MenuAuthorityRightHelper = new MenuAuthorityRightHelper();\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppCenterTitle(\"BANKING\");\r\n\r\n\t\tif (!this.isBackoffice) {\r\n\t\t\tthis.GetClientType();\r\n\t\t\tvar tempDefaultModel = this.defaultModel;\r\n\t\t\ttempDefaultModel.UniqueClientId = ClientHelper.GetClientRowId();\r\n\t\t\tthis.setState(function (state, props) {\r\n\t\t\t\tvar model = state.searchModel || {};\r\n\t\t\t\tmodel.UniqueClientId = tempDefaultModel.UniqueClientId;\r\n\t\t\t\treturn { searchModel: model };\r\n\t\t\t});\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.props.setAppCenterTitle(\"ACCOUNTS\");\r\n\r\n\t\t}\r\n\t\tthis.props.setAppLeftTitle(\"Balance - Performance\");\r\n\r\n\t}\r\n\r\n\tRenderAccountTypeParameter = (data) => {\r\n\t\tconst parameter = { ...this.state.ClientTypeParameter };\r\n\t\tif (data == null) {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t\tif (data.AccountCode == null || data.AccountCode == \"\") {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\t\tif (data.AccountCode != BankingAccountTypes.PrimaryAccount) {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\t\tif (data.ProgramCode == null || data.ProgramCode == \"\") {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\t\tif (data.ProgramCode != ProgramCodes.Bank_Programs_Bank_Account) {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\t\tif (parameter.ParameterValue == ClientType.Corporate || parameter.ParameterValue == ClientType.SalesAgentCorporate) {\r\n\t\t\treturn \"Corporate Account\";\r\n\t\t} else if (parameter.ParameterValue == ClientType.Personal || parameter.ParameterValue == ClientType.SalesAgentPersonal) {\r\n\t\t\treturn \"Individual Account\";\r\n\t\t} else {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\r\n\t}\r\n\tGetClientType = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/BankCustomer/GetClientType\",\r\n\t\t\t{},\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ ClientTypeParameter: responseData.Item });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\thandleChangeSearchModel = (name, newValue) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.searchModel || {};\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\treturn { searchModel: model };\r\n\t\t});\r\n\t}\r\n\tPerformSearch = () => {\r\n\t\tif (!this.IsValid())\r\n\t\t\treturn;\r\n\t\tthis.BankAccountTransactions();\r\n\t}\r\n\tIsValid = () => {\r\n\t\tvar temp = { ...this.state.searchModel };\r\n\t\tconst vModel = this.state.vModel;\r\n\r\n\t\tvModel.SearchDate = temp.SearchDate == null || temp.SearchDate == \"\";\r\n\t\tif (vModel.SearchDate) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Date must be selected for search operation !\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ vModel });\r\n\t\treturn true;\r\n\t}\r\n\r\n\tBankAccountTransactions = () => {\r\n\t\tlet temp = { ...this.state.searchModel };\r\n\t\ttemp.UniqueClientId = temp.UniqueClientId == null ? 0 : temp.UniqueClientId;\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Transaction/BalanceListPerformance\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ customerTransactions: [] });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (responseData.Item != null && responseData.Item.length > 0) {\r\n\t\t\t\t\t\tthis.setState({ customerTransactions: responseData.Item });\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tthis.setState({ customerTransactions: [] });\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false, customerTransactions: [] });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\tClearData = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null, isLoading: false, searchModel: { ...this.defaultModel }, customerTransactions: [],\r\n\t\t});\r\n\r\n\t}\r\n\thandleChangeFilterPanel = panel => (event, expanded) => {\r\n\t\tthis.setState({\r\n\t\t\tactive: expanded ? panel : -1\r\n\t\t});\r\n\t};\r\n\r\n\tRenderStyle = () => {\r\n\t\treturn {\r\n\t\t\tcolumn: \"TransactionType\",\r\n\t\t\tcondition: \"Received\",\r\n\t\t\tstyle: { fontWeight: \"600\" },\r\n\t\t\tprefix: [\"+\", \"\"]\r\n\t\t};\r\n\t}\r\n\tBalanceRenderStyle = () => {\r\n\t\treturn {\r\n\t\t\tcolumn: \"TransactionType\",\r\n\t\t\tcondition: \"Received\",\r\n\t\t\tstyle: { fontWeight: \"600\" },\r\n\t\t\tprefix: [\"\", \"\"]\r\n\t\t};\r\n\t}\r\n\r\n\r\n\tExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.accessor != \"Actions\" && c.accessor != \"ED\" && (c.show == undefined || c.show)) {\r\n\t\t\t\ttrxColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: trxColumns, ExportSelectedColumns: trxColumns });\r\n\t}\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tif (!this.IsValid())\r\n\t\t\treturn;\r\n\r\n\t\tthis.ShowConfirmMessage(\"question\", \"Long Process Warning\", \"This process may take a while. Continue ?\", () => {\r\n\t\t\tthis.hideAlert();\r\n\t\t\tconst { searchModel } = this.state;\r\n\r\n\t\t\t// Add jsonFile\r\n\t\t\tvar jsonColList = [];\r\n\r\n\t\t\tvar trxColumns = {};\r\n\t\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\t\ttrxColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t\t});\r\n\t\t\tjsonColList.push(trxColumns);\r\n\r\n\t\t\tsearchModel[\"jsonFile\"] = {\r\n\t\t\t\tcolmns: jsonColList,\r\n\t\t\t\tformat: this.state.ExportReportType,\r\n\t\t\t\ttitle: \"Balance Report\"\r\n\t\t\t};\r\n\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\t\"/bankapi/v1.0/Transaction/BalanceReportExportList\",\r\n\t\t\t\tsearchModel,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terrorMessage => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t\t},\r\n\t\t\t\tthis.props.showMessage\r\n\t\t\t);\r\n\t\t});\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { searchModel, vModel, customerTransactions, alert } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t this.ClearData(), Disabled: Disabled },\r\n\t\t\t\t\t\t\t{ Code: \"Search\", OnClick: () => this.PerformSearch(), Disabled: Disabled },\r\n\t\t\t\t\t\t\t{ Code: \"Export\", OnClick: () => this.ExportClick(), Disabled: Disabled }\r\n\t\t\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{(this.isBackoffice) &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tValue={searchModel.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChangeSearchModel}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tCanClear />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{row.value==1?\"Yes\":\"No\"}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Account Type\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"AccountType\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{this.RenderAccountTypeParameter(row.original)}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Total Received Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TotalDebitAmount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Total Received Count\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TotalDebitCount\",\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Total Sent Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TotalCreditAmount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Total Sent Count\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TotalCreditCount\",\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"End of Day Balance\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TotalBalanceAmount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\t\t\tIsSorted={false}\r\n\t\t\t\t\t\t\t\t\t\t\tPageSize={50}\r\n\t\t\t\t\t\t\t\t\t\t\tShowPagination={true}\r\n\t\t\t\t\t\t\t\t\t\t\tref={this.trxTable}\r\n\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nBalanceAccount.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func\r\n};\r\n\r\n\r\nexport default BalanceAccount;","import PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport { Proxy, withArtifex } from \"core\"; import ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert } from \"views/Components/Generic\";\r\n\r\nclass ChequeTransactionImageDetail extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\r\n\t\t\tchqtransaction: {}\r\n\t\t};\r\n\t\tthis.handleChange = this.handleChange.bind(this);\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\t// var tempuniq = Formatter.PadLeft(ClientHelper.GetClientRowId(), 3, \"0\");\r\n\t\tvar { chqtransaction } = this.props;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/chequeapi/v1.0/Cheque/ChequeTransactionImageDetail\",\r\n\r\n\t\t\t{\r\n\t\t\t\tAccountNumber: chqtransaction.AccountNumber,\r\n\t\t\t\tReferenceNumber: chqtransaction.ReferenceNumber\r\n\r\n\t\t\t},\r\n\t\t\tthis.successImageData,\r\n\t\t\tthis.errorCallback\r\n\t\t);\r\n\r\n\t\tthis.setState({ openDialog: false });\r\n\t}\r\n\terrorCallback = (error) => {\r\n\t\tthis.showErrorMessage(\"An error occurred during the api visit\" + error);\r\n\t}\r\n\r\n\tsuccessImageData = (responseData) => {\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.showErrorMessage(responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({\r\n\t\t\tchqtransaction: responseData.Item\r\n\t\t\t, isLoading: false\r\n\t\t});\r\n\r\n\r\n\t}\r\n\tshowErrorMessage = (message) => {\r\n\t\tthis.setState({\r\n\t\t\tisLoading: false,\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\r\n\thideAlert = () => {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\thandleChange(name, newValue) {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\trender() {\r\n\t\tconst { chqtransaction } = this.state;\r\n\t\t/* height: 160px; */\r\n\t\treturn (\r\n\r\n\t\t\t
\r\n\r\n\t\t\t\t{\r\n\t\t\t\t\tchqtransaction !== null ?\r\n\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t: \r\n\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\r\n\r\n\r\n\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nChequeTransactionImageDetail.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tchqtransaction: PropTypes.object,\r\n\thandleChange: PropTypes.func,\r\n\tPhoneModel: PropTypes.object,\r\n\tpropModel: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(ChequeTransactionImageDetail, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericGrid, GenericSelectInput, GenericTitle, GenericDialog, GenericLabel, GenericDialogActions, GenericRadioInput, GenericDateInput } from \"views/Components/Generic\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport { GridColumnType } from \"views/Constants/Constant.js\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport MenuAuthorityRightHelper from \"core/MenuAuthorityRightHelper\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Select from \"react-select\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nclass ClientAccountBalanceList extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Insert Date\",\r\n\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateUtc,\r\n\t\t\t\tColumnType: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name \",\r\n\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Unique Id\",\r\n\t\t\t\taccessor: \"ClientUniqueId\"\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"Total Balance of All Client Account\",\r\n\t\t\t\taccessor: \"TotalAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t];\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {}\r\n\t\t};\r\n\r\n\t\tthis.trxTable = React.createRef();\r\n\t\tthis.MenuAuthorityRightHelper = new MenuAuthorityRightHelper();\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"ACCOUNTS\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Client Account Balance List\");\r\n\t\t}\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tconst { list } = this.state;\r\n\r\n\t\tthis.setState({ model: list[index], selected: index });\r\n\t}\r\n\r\n\tList = async () => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tconst { model } = this.state;\r\n\t\tmodel.IsClientBalanceScreen = true;\r\n\t\tvar result = await ExecuteApiPost(\"/bankapi/v1.0/Transaction/BalanceList\", model);\r\n\r\n\t\tthis.setState({ list: result || [] });\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, list: [], selected: null });\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\tHandleValueChanged = (name, value) => {\r\n\t\tthis.setState(state => {\r\n\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\tExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.accessor != \"Actions\" && c.accessor != \"ED\" && (c.show == undefined || c.show)) {\r\n\t\t\t\ttrxColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: trxColumns, ExportSelectedColumns: trxColumns });\r\n\t}\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tthis.props.showConfirmMessage(\"question\", \"Long Process Warning\", \"This process may take a while. Continue ?\", () => {\r\n\t\t\tthis.hideAlert();\r\n\t\t\tconst { model } = this.state;\r\n\t\t\tmodel.IsClientBalanceScreen = true;\r\n\r\n\t\t\t// Add jsonFile\r\n\t\t\tvar jsonColList = [];\r\n\r\n\t\t\tvar trxColumns = {};\r\n\t\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\t\ttrxColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t\t});\r\n\t\t\tjsonColList.push(trxColumns);\r\n\r\n\t\t\tmodel[\"jsonFile\"] = {\r\n\t\t\t\tcolmns: jsonColList,\r\n\t\t\t\tformat: this.state.ExportReportType,\r\n\t\t\t\ttitle: \"Client Account Balance List Report\"\r\n\t\t\t};\r\n\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\t\"/bankapi/v1.0/Transaction/BalanceReportExportList\",\r\n\t\t\t\tmodel,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terrorMessage => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t\t},\r\n\t\t\t\tthis.props.showMessage\r\n\t\t\t);\r\n\t\t});\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, list, selected } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t this.ExportClick(), Disabled: Disabled }\r\n\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.HandleValueChanged}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\t// Required\r\n\t\t\t\t\t\t\t\t\t\t\t\t// IsInvalid={kModel.UniqueClientId}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nClientAccountBalanceList.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default ClientAccountBalanceList;","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card\";\r\nimport CardBody from \"components/Card/CardBody\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { DetailIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericDialog, GenericDialogActions, GenericGrid, GenericSelectInput, GenericTitle, GenericNumberInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton.jsx\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant.js\";\r\n\r\nclass ClientActivities extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tTxnDetail: {},\r\n\t\t\tIsTxnDetailOpen: false\r\n\t\t};\r\n\r\n\t\tthis.txnDateRenderStyle = {\r\n\t\t\tcolumn: \"TransactionType\",\r\n\t\t\tcondition: \"Incoming\",\r\n\t\t\tstyle: { fontWeight: \"600\" },\r\n\t\t\tprefix: [\"+\", \"\"]\r\n\t\t};\r\n\r\n\t\tthis.balanceDateRenderStyle = {\r\n\t\t\tcolumn: \"TransactionType\",\r\n\t\t\tcondition: \"Incoming\",\r\n\t\t\tstyle: { fontWeight: \"600\" },\r\n\t\t\tprefix: [\"\", \"\"]\r\n\t\t};\r\n\r\n\t\tthis.ValueChanged = this.ValueChanged.bind(this);\r\n\t\tthis.ClearClick = this.ClearClick.bind(this);\r\n\t\tthis.SearchClick = this.SearchClick.bind(this);\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\r\n\t\tif (setAppLeftTitle)\r\n\t\t\tsetAppLeftTitle(\"Client Activities\");\r\n\r\n\t\tif (setAppCenterTitle)\r\n\t\t\tsetAppCenterTitle(\"Accounts\");\r\n\t}\r\n\r\n\tValueChanged(name, newValue) {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model || {};\r\n\t\t\tmodel[name] = newValue;\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tClearClick() {\r\n\t\tthis.setState({ model: {} });\r\n\t}\r\n\r\n\tSearchClick() {\r\n\t\tconst { showMessage } = this.props;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Transaction/SearchClientActivities\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ TransactionList: responseData.Item ?? [] });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { isLoading, alert, model, TransactionList, IsTxnDetailOpen, TxnDetail } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.ValueChanged}\r\n\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\tDisabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.setState({ IsTxnDetailOpen: true, TxnDetail: row.original })} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTimeUtc,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tstyle: this.txnDateRenderStyle\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Incoming / Outgoing\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionType\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t

{row.value == \"D\" ? \"Received\" : \"Sent\"}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Currency\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"CurrencyCode\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t

{row.value}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tstyle: this.txnDateRenderStyle\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Remaining Balance\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"RemainingBalance\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tstyle: this.balanceDateRenderStyle\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Account Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"AccountName\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t

{row.value}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Explanation\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Description\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Account Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"AccountNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Reference Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ReferenceNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_Bank_Account} />\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tTransaction Details\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t

Reference Number: {TxnDetail.ReferenceNumber}

\r\n\t\t\t\t\t\t\t\t

Transaction Date: {Formatter.FormatDateUtc(TxnDetail.TransactionDate)}

\r\n\t\t\t\t\t\t\t\t

Transaction Amount: {TxnDetail.Amount}

\r\n\t\t\t\t\t\t\t\t

Description: {TxnDetail.Description}

\r\n\t\t\t\t\t\t\t\t

Transaction Type: {TxnDetail.TransactionType}

\r\n\t\t\t\t\t\t\t\t

Account Name: {TxnDetail.AccountName}

\r\n\t\t\t\t\t\t\t\t

Account Number: {TxnDetail.AccountNumber}

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n\r\n}\r\n\r\nClientActivities.propTypes = {\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nClientActivities.defaultProps = {\r\n\tDisabled: false\r\n};\r\n\r\nexport default ClientActivities;","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport {EditIcon} from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDialog, GenericDialogActions, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTitle,} from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType} from \"views/Constants/Constant.js\";\r\n\r\nclass ClientSubAccountList extends React.Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.isClient = ClientHelper.IsClient();\r\n\t\tthis.isBackoffice = ClientHelper.IsBackOffice();\r\n\t\tlet isClientVisible = this.isClient;\r\n\t\tthis.initalModel = {\r\n\t\t\tUniqueClientId: 0\r\n\t\t};\r\n\t\tthis.state = {\r\n\t\t\tsearchModel: this.initalModel,\r\n\t\t\tstatusAccountDialog: false,\r\n\t\t\tstatusAccountModel: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tremindModel: {},\r\n\t\t\tremindDialog: false\r\n\r\n\t\t};\r\n\r\n\t\tthis.columns = [{\r\n\t\t\tHeader: \"Actions\",\r\n\t\t\taccessor: \"AC\",\r\n\t\t\tCell: row => (\r\n\t\t\t\t
\r\n\r\n\t\t\t\t\t { this.AccountStatusUpdate(row.original); }} />\r\n\r\n\t\t\t\t
\r\n\t\t\t),\r\n\t\t\twidth: 80,\r\n\t\t\tshow: true //!isClieentVisibl\r\n\r\n\t\t},\r\n\t\t{\r\n\t\t\tHeader: \"Account Id\",\r\n\t\t\taccessor: \"Id\", width: 100\r\n\t\t},\r\n\t\t{\r\n\t\t\tHeader: \"UniqueClientId\",\r\n\t\t\taccessor: \"UniqueClientId\", width: 100\r\n\t\t},\r\n\t\t{\r\n\t\t\tHeader: \"Client\",\r\n\t\t\taccessor: \"ClientName\",\r\n\t\t\twidth: 120\r\n\t\t},\r\n\t\t{\r\n\t\t\tHeader: \"Account Owner Name\",\r\n\t\t\taccessor: \"AccountOwnerName\",\r\n\t\t\twidth: 120,\r\n\t\t},\r\n\t\t{\r\n\t\t\tHeader: \"SubAccount Name\",\r\n\t\t\taccessor: \"SubAccountName\",\r\n\t\t\twidth: 120,\r\n\t\t},\r\n\t\t{\r\n\t\t\tHeader: \"SubAccount Number\",\r\n\t\t\taccessor: \"SubAccountNumber\",\r\n\t\t\twidth: 120,\r\n\t\t},\r\n\t\t{\r\n\t\t\tHeader: \"Banking Account Type\",\r\n\t\t\taccessor: \"BankAccountType\",\r\n\t\t\twidth: 120,\r\n\t\t},\r\n\t\t{\r\n\t\t\tHeader: \"Balance\",\r\n\t\t\taccessor: \"Balance\",\r\n\t\t\ttype: GridColumnType.Money,\r\n\t\t\tColumnType: GridColumnType.Money ,width: 100\r\n\t\t},\r\n\t\t{\r\n\t\t\tHeader: \"Account Status\",\r\n\t\t\taccessor: \"AccountStatus\", width: 100\r\n\r\n\t\t},\r\n\t\t{\r\n\t\t\tHeader: \"ProgramName\",\r\n\t\t\taccessor: \"ProgramName\", width: 100\r\n\r\n\t\t}, {\r\n\t\t\tHeader: \"Insert Date\",\r\n\t\t\taccessor: \"InsertAccountDate\",\r\n\t\t\ttype: GridColumnType.DateTimeUtc,\r\n\t\t},\r\n\t\t{\r\n\t\t\tHeader: \"Update Date\",\r\n\t\t\taccessor: \"UpdateAccountDate\",\r\n\t\t\ttype: GridColumnType.DateTimeUtc,\r\n\t\t}\r\n\t\t]\r\n\r\n\t}\r\n\tcomponentDidMount() {\r\n\r\n\t\tconst { searchModel } = this.state;\r\n\t\tif (!this.isBackoffice) {\r\n\t\t\tthis.props.setAppCenterTitle(\"BANKING\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.props.setAppCenterTitle(\"ACCOUNTS\");\r\n\t\t}\r\n\t\tthis.props.setAppLeftTitle(\"SubAccount List\")\r\n\r\n\t} Clear = () => {\r\n\t\tthis.setState({ searchModel: {}, list: [], selected: null, Month: [] });\r\n\t}\r\n\r\n\tAccountStatusUpdate = (value) => {\r\n\t\tvar { remindModel } = this.state;\r\n\t\tif (value == null || value == 0) {\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Transaction Type information of line is invalid !\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tremindModel.Id = value.Id;\r\n\t\tremindModel.AccountType = value.AccountStatus;\r\n\t\tthis.setState({ remindModel, remindDialog: true });\r\n\r\n\t}\r\n\thideDialog = () => { this.setState({ remindDialog: false }); }\r\n\tshowLoading = () => { this.setState({ alert: null, isLoading: true }); }\r\n\thideLoading = () => { this.setState({ isLoading: false }); }\r\n\r\n\t// ShowMessage = (type, title, message) => {\r\n\t// \tthis.setState({\r\n\t// \t\tisLoading: false, cancelDialog: false, remindDialog: false,\r\n\t// \t\talert: this.hideAlert()} />\r\n\t// \t});\r\n\t// }\r\n\tconfirmAccountPassiveStatus = () => {\r\n\t\tvar { remindModel } = this.state;\r\n\t\tthis.hideDialog();\r\n\t\tthis.showLoading();\r\n\t\tremindModel.AccountStatus = false;\r\n\t\tProxy.POST(\"/bankapi/v1.0/Account/SubAccountStatusUpdate\",\r\n\t\t\tremindModel,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\tthis.hideLoading();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.hideLoading();\r\n\t\t\t\tthis.Search();\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Success\", \"Account Status Update successfully\");\r\n\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t});\r\n\r\n\t}\r\n\tconfirmAccountActiveStatus = () => {\r\n\t\tvar { remindModel } = this.state;\r\n\t\tthis.hideDialog();\r\n\t\tthis.showLoading();\r\n\t\tremindModel.AccountStatus = true;\r\n\t\tProxy.POST(\"/bankapi/v1.0/Account/SubAccountStatusUpdate\",\r\n\t\t\tremindModel,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\tthis.hideLoading();\r\n\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t// if (value) this.props.showMessage(\"success\", \"Success\", \"Account Status Active successfully\");\r\n\t\t\t\t// else this.props.showMessage(\"success\", \"Success\", \"Account Status Passive successfully\");\r\n\t\t\t\tthis.hideLoading()\r\n\t\t\t\tthis.Search();\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Success\", \"Account Status Update successfully\");\r\n\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t});\r\n\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tconst model = { ...this.state.searchModel };\r\n\t\tif (!this.validata()) return;\r\n\t\tvar result = await ExecuteApiPost(\"/bankapi/v1.0/Account/AllSubAccountList\", model, null, null, null);\r\n\t\tthis.setState({ list: result || [] });\r\n\t\tthis.hideLoading();\r\n\r\n\t}\r\n\r\n\tvalidata = () => {\r\n\t\tconst model = { ...this.state.searchModel };\r\n\r\n\t\t// if(this.isBackoffice &&( model.UniqueClientId==undefined || model.UniqueClientId==null || model.UniqueClientId==0 )){\r\n\t\t// \tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \" UniqueClientId must be defined\");\r\n\r\n\t\t// \treturn false;\r\n\t\t// }\r\n\t\tif(( model.SubAccountNumber==undefined || model.SubAccountNumber==null || model.SubAccountNumber==0 || model.SubAccountNumber==\"\")){\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \" SubAccountNumber must be defined\");\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar searchModel = state.searchModel;\r\n\t\t\tsearchModel[name] = value;\r\n\r\n\t\t\treturn { searchModel };\r\n\t\t});\r\n\t}\r\n\r\n\tshowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t\t),\r\n\t\t});\r\n\t};\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { searchModel, list, remindDialog, remindModel } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t this.Clear(), Disabled: Disabled },\r\n\t\t\t\t\t\t\t{ Code: \"Search\", OnClick: () => this.Search(), Disabled: Disabled },\r\n\r\n\t\t\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
Account Status Update
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
Do you want to make this account Active or Passive?
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{this.isBackoffice &&\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tValue={searchModel.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.ValueChanged}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\r\n\t\t\t
\r\n\t\t)\r\n\r\n\r\n\t}\r\n}\r\n\r\nClientSubAccountList.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func\r\n};\r\n\r\nexport default ClientSubAccountList;\r\n","import Card from \"components/Card/Card\";\r\nimport CardBody from \"components/Card/CardBody\";\r\nimport GridContainer from \"components/Grid/GridContainer\";\r\nimport GridItem from \"components/Grid/GridItem\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericAlert, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\n\r\nclass CloseAccountApprove extends Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\taccountData: {},\r\n\t\t\tisLoading: false,\r\n\t\t\taccountId: 0\r\n\t\t};\r\n\r\n\t\tthis.GetAccountInfo = this.GetAccountInfo.bind(this);\r\n\t\tthis.CloseAccount = this.CloseAccount.bind(this);\r\n\r\n\t\tthis.ShowMessage = this.ShowMessage.bind(this);\r\n\t\tthis.ShowConfirmMessage = this.ShowConfirmMessage.bind(this);\r\n\t\tthis.hideAlert = this.hideAlert.bind(this);\r\n\t}\r\n\r\n\tGetAccountInfo(accountId) {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/bankapi/v1.0/Account/GetAccountInfo\", accountId,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ accountData: responseData.Item, accountId });\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while fetching account data.\", errorMessage);\r\n\t\t\t});\r\n\t}\r\n\r\n\tCloseAccount(workflowId, after, accessToken) {\r\n\t\tconst { accountId } = this.state;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/bankapi/v1.0/Account/CloseAccount\", accountId,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (after) after();\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while fetching account data.\", errorMessage);\r\n\t\t\t}, workflowId, accessToken);\r\n\t}\r\n\r\n\tShowMessage(type, title, message) {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage(type, title, message, onConfirm) {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\r\n\thideAlert() {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { accountData, isLoading, alert, accountId } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t { return { Id: accountId }; },\r\n\t\t\t\t\t\tFillDataFromModel: model => { this.GetAccountInfo(model.Id); },\r\n\t\t\t\t\t\tRowId: accountId\r\n\t\t\t\t\t}\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCloseAccountApprove.propTypes = {\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(CloseAccountApprove, {});","import Card from \"components/Card/Card\";\r\nimport CardBody from \"components/Card/CardBody\";\r\nimport GridContainer from \"components/Grid/GridContainer\";\r\nimport GridItem from \"components/Grid/GridItem\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport {\r\n\tGenericDateInput,\r\n\tGenericExpansionPanel,\r\n\tGenericGrid,\r\n\tGenericSelectInput,\r\n\tGenericTitle,\r\n\tGenericCheckInput,\r\n\tGenericAlert,\r\n\tGenericDialog, GenericDialogActions,GenericRadioInput,GenericLabel\r\n} from \"views/Components/Generic\";\r\nimport { GridColumnType, BankingAccountTypes, ProgramCodes, ClientType } from \"views/Constants/Constant\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridButton from \"views/Components/GridButton.jsx\";\r\nimport { EftIcon, ETransferIcon } from \"core/Icons\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { Proxy } from \"core\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Select from \"react-select\";\r\nimport DateHelper from \"core/DateHelper\";\r\n\r\nclass FromToAccountingTransaction extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Id\",\r\n\t\t\t\taccessor: \"AccountId\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\ttype: GridColumnType.DateTimeUtc,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Merchant Name\",\r\n\t\t\t\taccessor: \"MerchantName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Settlement Status\",\r\n\t\t\t\taccessor: \"SettlementStatus\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Channel Type\",\r\n\t\t\t\taccessor: \"ChannelType\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Currency Code\",\r\n\t\t\t\taccessor: \"CurrencyCode\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Currency Symbol\",\r\n\t\t\t\taccessor: \"CurrencySymbol\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Wallet Balance\",\r\n\t\t\t\taccessor: \"WalletBalance\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"Amount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Name\",\r\n\t\t\t\taccessor: \"AccountName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Source Account Number\",\r\n\t\t\t\taccessor: \"SourceAccountNumber\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Destination Account Number\",\r\n\t\t\t\taccessor: \"DestinationAccountNumber\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sender Bank\",\r\n\t\t\t\taccessor: \"SenderBank\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sender Name\",\r\n\t\t\t\taccessor: \"SenderName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sender Short Name\",\r\n\t\t\t\taccessor: \"SenderShortName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reference Number\",\r\n\t\t\t\taccessor: \"ReferenceNumber\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Interact Reference Number\",\r\n\t\t\t\taccessor: \"InteractReferenceNumber\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Description\",\r\n\t\t\t\taccessor: \"Description\",\r\n\t\t\t},\r\n\t\t];\r\n\r\n\t\tthis.trxTable = React.createRef();\r\n\r\n\t\tthis.isBackoffice = ClientHelper.IsBackOffice();\r\n\t\tthis.uniqueClientId = ClientHelper.GetClientRowId();\r\n\r\n\t\tthis.emptyObject = {};\r\n\t\tthis.parameterUniqueClientId = {};\r\n\r\n\t\tthis.sortedFullName = { Member: \"FullName\" };\r\n\r\n\t\tthis.validateProperties = [\r\n\t\t\t{ ToDate: \"End Date\" },\r\n\t\t\t{ FromDate: \"Start Date\" },\r\n\t\t];\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tUniqueClientId: this.uniqueClientId,\r\n\t\t\t},\r\n\t\t\tsearchModel: {\r\n\t\t\t\tIsRequiredUniqueClientId: true,\r\n\t\t\t\tIsRequiredDate: true,\r\n\t\t\t\tIsRequiredStatementPeriod: true,\r\n\t\t\t\tIsInvalidStatementPeriod: false,\r\n\t\t\t\tIsInvalidFromDate: false,\r\n\t\t\t\tIsInvalidToDate: false\r\n\t\t\t},\r\n\t\t\tcustomerAccountList: [],\r\n\t\t\tcheckedAccounts: [],\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"ACCOUNTS\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"From - To Accounting Transactions Report\");\r\n\t\t}\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\r\n\tGetParameterUniqueClientId = () => {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tthis.parameterUniqueClientId.UniqueClientId = model.UniqueClientId;\r\n\r\n\t\treturn this.parameterUniqueClientId;\r\n\t};\r\n\r\n\tSearch = async () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tvar ids = [];\r\n\t\tthis.state.checkedAccounts.forEach((element) => {\r\n\t\t\tids.push(element.Id);\r\n\t\t});\r\n\t\tmodel.AccountIds = ids;\r\n\r\n\t\tvar result = await ExecuteApiPost(\r\n\t\t\t\"/bankapi/v1.0/Account/GetFromToAccountingTransactions\",\r\n\t\t\tmodel,\r\n\t\t\tmodel,\r\n\t\t\tthis.validateProperties\r\n\t\t);\r\n\r\n\t\tthis.setState({ list: result || [] });\r\n\t};\r\n\r\n\tValidate() {\r\n\t\tconst searchModel = { ...this.state.searchModel };\r\n\r\n\t\tvar messages = [];\r\n\r\n\t\tif (searchModel.FromDate && searchModel.ToDate) {\r\n\t\t\tvar diffMonths = searchModel.ToDate.diff(searchModel.FromDate, \"days\");\r\n\t\t\tif (diffMonths < 0) {\r\n\t\t\t\tmessages.push(\"End Date must be later than Start Date\");\r\n\t\t\t}\r\n\r\n\t\t\tif (diffMonths > 3) {\r\n\t\t\t\tmessages.push(\"Difference between Start Date and End Date cannot be longer than 3 days\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: { UniqueClientId: this.uniqueClientId }, list: [] });\r\n\t};\r\n\r\n\tHandleGetList = () => {\r\n\t\tthis.setState(state => ({ trxGridToken: !state.trxGridToken }));\r\n\t}\r\n\r\n\tGetCustomerBankAccounts = (status) => {\r\n\t\tconst temp = { ...this.state.searchModel };\r\n\r\n\t\ttemp.SettlementAccountStatus = false;\r\n\r\n\t\tif ((temp.UniqueClientId == null || temp.UniqueClientId == \"\")) return;\r\n\t\telse if (status) {\r\n\t\t\tthis.GetAccountList(temp);\r\n\t\t\treturn;\r\n\t\t} else if (status == undefined) return;\r\n\r\n\t\tthis.GetAccountList(temp);\r\n\t}\r\n\r\n\tGetAccountList = (temp) => {\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Account/ClientAccountActivites\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error !\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ customerAccountList: responseData.Item || [] });\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\r\n\tRenderAccountTypeParameter = (data) => {\r\n\t\tconst parameter = { ...this.state.ClientTypeParameter };\r\n\t\tif (data == null) {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t\tif (data.AccountCode == null || data.AccountCode == \"\") {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\t\tif (data.AccountCode != BankingAccountTypes.PrimaryAccount) {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\t\tif (data.ProgramCode == null || data.ProgramCode == \"\") {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\t\tif (data.ProgramCode != ProgramCodes.Bank_Programs_Bank_Account) {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\r\n\t\tif (parameter.ParameterValue == ClientType.Corporate || parameter.ParameterValue == ClientType.SalesAgentCorporate) {\r\n\t\t\treturn \"Corporate Account\";\r\n\t\t} else if (parameter.ParameterValue == ClientType.Personal || parameter.ParameterValue == ClientType.SalesAgentPersonal) {\r\n\t\t\treturn \"Individual Account\";\r\n\t\t} else {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\r\n\t}\r\n\r\n\thandleChangeSearchModel = (name, newValue) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.searchModel || {};\r\n\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\tif (name == \"CheckAllAccounts\" && newValue == true) {\r\n\t\t\t\tconst list = this.state.customerAccountList;\r\n\t\t\t\tthis.setState({ checkedAccounts: list });\r\n\t\t\t} else if (name == \"CheckAllAccounts\" && newValue == false) {\r\n\t\t\t\tthis.setState({ checkedAccounts: [] });\r\n\t\t\t}\r\n\r\n\t\t\tif (name == \"UniqueClientId\" && newValue !== undefined && newValue != null) {\r\n\t\t\t\tthis.GetCustomerBankAccounts(true);\r\n\t\t\t\tmodel[name] = newValue;\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tcustomerAccountList: [], checkedAccounts: [], model\r\n\t\t\t\t});\r\n\r\n\t\t\t}\r\n\t\t\telse if (name == \"UniqueClientId\" && (newValue == undefined || newValue == null)) {\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tcheckedAccounts: [], customerAccountList: []\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t\tif (name == \"Amount\") {\r\n\t\t\t\tmodel.MinAmount = newValue;\r\n\t\t\t\tmodel.MaxAmount = newValue;\r\n\t\t\t}\r\n\r\n\t\t\tif (name == \"ReferenceNumber\") {\r\n\r\n\t\t\t\tlet hasReferenceNumberSearch = model[\"ReferenceNumber\"]?.length > 0;\r\n\r\n\t\t\t\tmodel.IsRequiredStatementPeriod = !hasReferenceNumberSearch;\r\n\t\t\t\tmodel.IsRequiredDate = !hasReferenceNumberSearch;\r\n\t\t\t\tmodel.IsRequiredUniqueClientId = !hasReferenceNumberSearch;\r\n\t\t\t}\r\n\r\n\t\t\tif (name == \"StatementPeriod\" || name == \"ToDate\" || name == \"FromDate\") {\r\n\r\n\t\t\t\tif (model.StatementPeriod == undefined || model.StatementPeriod == null || model.StatementPeriod == \"\") {\r\n\t\t\t\t\tmodel.StatementControl = false;\r\n\t\t\t\t\tmodel.IsRequiredStatementPeriod = true;\r\n\t\t\t\t\tmodel.IsRequiredDate = true;\r\n\t\t\t\t\tthis.setState({ searchModel: model });\r\n\r\n\t\t\t\t\tif ((model.ToDate == undefined || model.ToDate == \"\" || model.ToDate == null) && (model.FromDate == undefined || model.FromDate == \"\" || model.FromDate == null)) {\r\n\r\n\t\t\t\t\t\tmodel.IsInvalidFromDate = false;\r\n\t\t\t\t\t\tmodel.IsInvalidToDate = false;\r\n\r\n\t\t\t\t\t\tmodel.DateControl = false;\r\n\t\t\t\t\t\tthis.setState({ searchModel: model });\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\r\n\t\t\t\t\t\tmodel.StatementControl = true;\r\n\t\t\t\t\t\tmodel.DateControl = false;\r\n\t\t\t\t\t\tmodel.IsRequiredStatementPeriod = false;\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmodel.DateControl = true;\r\n\t\t\t\t\tmodel.IsInvalidFromDate = false;\r\n\t\t\t\t\tmodel.IsInvalidToDate = false;\r\n\t\t\t\t\tmodel.IsRequiredDate = false;\r\n\t\t\t\t\tthis.setState({ searchModel: model });\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\r\n\t\t\treturn { searchModel: model };\r\n\t\t});\r\n\t}\r\n\r\n\tHandleCheckCustomerAccounts = (e, x) => {\r\n\r\n\t\tconst { checkedAccounts } = this.state;\r\n\t\tvar temp = true;\r\n\r\n\t\tconst items = checkedAccounts.map((item, key) => {\r\n\t\t\tif (item.Id == x.Id) {\r\n\t\t\t\tcheckedAccounts.splice(key, 1);\r\n\t\t\t\ttemp = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t);\r\n\r\n\t\tif (checkedAccounts.length == 0 && temp) { checkedAccounts.push(x); console.log(\"if\") }\r\n\t\telse if (temp) { checkedAccounts.push(x); console.log(\"else\") }\r\n\r\n\t\tthis.setState({ checkedAccounts });\r\n\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\r\n\tExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.accessor != \"Actions\" && c.accessor != \"ED\" && (c.show == undefined || c.show)) {\r\n\t\t\t\ttrxColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: trxColumns, ExportSelectedColumns: trxColumns });\r\n\t}\r\n\r\n\tExcelDownload = () => {\r\n\t\tthis.setState({ isLoading: true})\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\tconsole.log(\"girdiResponseData.1\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\tconsole.log(\"girdiResponseData.2\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (!this.Validate()){\r\n\t\t\tconsole.log(\"girdiResponseData.3\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst temp = { ...this.state.searchModel };\r\n\r\n\t\tvar ids = [];\r\n\t\tthis.ShowConfirmMessage(\"question\", \"Long Process Warning\", \"This process may take a while. Continue ?\", () => {\r\n\t\t\tthis.hideAlert();\r\n\t\t\tthis.state.checkedAccounts.forEach(element => {\r\n\t\t\t\tids.push(element.Id);\r\n\t\t\t\tif (element.SubAccountList != null) {\r\n\t\t\t\t\telement.SubAccountList.forEach(x => {\r\n\t\t\t\t\t\tids.push(x);\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\ttemp.AccountIds = ids;\r\n\t\t\tvar jsonColList = [];\r\n\r\n\t\t\tvar trxColumns = {};\r\n\t\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\t\ttrxColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t\t});\r\n\t\t\tjsonColList.push(trxColumns);\r\n\r\n\t\t\tvar mytitle = \"\";\r\n\t\t\tmytitle = \"From - To Accounting Transactions Report\";\r\n\r\n\t\t\ttemp.jsonFile = {\r\n\t\t\t\tcolmns: jsonColList,\r\n\t\t\t\tformat: this.state.ExportReportType,\r\n\t\t\t\ttitle: mytitle\r\n\t\t\t};\r\n\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\t\"/bankapi/v1.0/Account/FromToAccountingTransactionsExportDownload\",\r\n\t\t\t\ttemp,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tconsole.log(\"girdiResponseData.\");\r\n\t\t\t\t},\r\n\t\t\t\terrorMessage => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tconsole.log(\"girdiError.\");\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t\t},\r\n\t\t\t\tthis.ShowMessage\r\n\t\t\t);\r\n\t\t\tthis.setState({ isDownloadDialogOpen: false})\r\n\t\t});\r\n\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, list, customerAccountList, searchModel, checkedAccounts, alert } = this.state;\r\n\r\n\r\n\r\n\t\tvar GridDataAccounts = customerAccountList == null ? [] : customerAccountList.map(d => {\r\n\t\t\treturn {\r\n\t\t\t\tED: (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{(d.AccountCode == BankingAccountTypes.PrimaryAccount) &&\r\n\t\t\t\t\t\t\t { RouteHelper.Push(this.props.history, \"/TransferToLinkedAccount\", \"TransferToLinkedAccount_ID\", 0); }} />\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t{(d.AccountCode == BankingAccountTypes.PrimaryAccount) &&\r\n\t\t\t\t\t\t\t { RouteHelper.Push(this.props.history, \"/EtransferFromAccount\", \"EtransferFromAccount_ID\", 0); }} />\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tAP: (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t c.Id == d.Id).length > 0}\r\n\t\t\t\t\t\t\tValueChanged={(value) => {\r\n\t\t\t\t\t\t\t\tthis.HandleCheckCustomerAccounts(value, d);\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tId: d.Id,\r\n\t\t\t\tProgramId: d.ProgramId,\r\n\t\t\t\tCustomerBankAccountId: d.CustomerBankAccountId,\r\n\t\t\t\tAccountShortName: d.AccountShortName,\r\n\t\t\t\tBankAccountId: d.BankAccountId,\r\n\t\t\t\tUniqueClientId: d.UniqueClientId,\r\n\t\t\t\tBalance: d.Balance,\r\n\t\t\t\tAccountName: d.AccountName,\r\n\t\t\t\tPendingBalance: d.PendingBalance,\r\n\t\t\t\tAccountNumber: d.AccountNumber,\r\n\t\t\t\tAccountNumberStr: d.AccountNumberStr,\r\n\t\t\t\tBranchNumber: d.BranchNumber,\r\n\t\t\t\tBankNumber: d.BankNumber,\r\n\t\t\t\tAccountTypeId: d.AccountTypeId,\r\n\t\t\t\tAccountType: d.AccountType,\r\n\t\t\t\tAccountType4: d.AccountType4,\r\n\t\t\t\tAccountType6: d.AccountType6,\r\n\t\t\t\tAccountCode: d.AccountCode,\r\n\t\t\t\tProgramCode: d.ProgramCode,\r\n\t\t\t\tProgramName: d.ProgramName,\r\n\t\t\t\tCurrencyCode: d.CurrencyCode,\r\n\t\t\t\tCurrencyDesc: d.CurrencyDesc,\r\n\t\t\t\tCurrencySymbol: d.CurrencySymbol,\r\n\t\t\t\tAmountDisplay: d.AmountDisplay,\r\n\t\t\t\tIsChequingAccount: d.IsChequingAccount,\r\n\t\t\t\tSubAccountList: d.SubAccountList\r\n\t\t\t};\r\n\t\t});\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t this.ExportClick(), Disabled: Disabled }\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After}\r\n\t\t\t\t/>\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={searchModel.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChangeSearchModel}\r\n\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\tRequired={searchModel.IsRequiredUniqueClientId}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Account Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"AccountName\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAll Accounts{\" \"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Account Type\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"AccountType\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{this.RenderAccountTypeParameter(row.original)}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tTotal{\" \"} {customerAccountList == null ? 0 : customerAccountList.length}{\" \"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Program Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ProgramName\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Account Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"AccountNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Chequing Account\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"IsChequingAccount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tshow: (this.isBackoffice == true)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Currency\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"CurrencyCode\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Balance\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Balance\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{Formatter.FormatMoneySpecial(row.original.CurrencySymbol, row.value)}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Pending Balance\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"PendingBalance\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{Formatter.FormatMoneySpecial(row.original.CurrencySymbol, row.value)}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_Bank_Account} />\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tconst temp = { ...this.state.searchModel };\r\n\t\t\t\t\t\t\t\t\t\tvar ids = [];\r\n\t\t\t\t\t\t\t\t\t\tthis.state.checkedAccounts.forEach(element => {\r\n\t\t\t\t\t\t\t\t\t\t\tids.push(element.Id);\r\n\t\t\t\t\t\t\t\t\t\t\tif (element.SubAccountList != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\telement.SubAccountList.forEach(x => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tids.push(x);\r\n\t\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\ttemp.AccountIds = ids;\r\n\r\n\t\t\t\t\t\t\t\t\t\treturn temp;\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\tRequestUrl=\"/bankapi/v1.0/Account/GetFromToAccountingTransactions\"\r\n\t\t\t\t\t\t\t\t\tRequestMethod=\"POST\"\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nFromToAccountingTransaction.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any,\r\n};\r\n\r\nexport default FromToAccountingTransaction;\r\n","import { Slide, withStyles } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericExpansionPanel, GenericGrid,GenericSelectInput, GenericDialogActions, GenericRadioInput, GenericDialog, GenericLabel } from \"views/Components/Generic\";\r\nimport { Proxy } from \"core\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { ProgramCodes } from \"views/Constants/Constant\";\r\nimport externalContainerStyle from \"assets/jss/material-dashboard-pro-react/layouts/externalContainerStyle.jsx\";\r\nimport Formatter from \"core/Formatter\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Select from \"react-select\";\r\n\r\n\r\nclass MinusWalletBalance extends React.Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Insert Date Time\",\r\n\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\tCell: row => (
{Formatter.FormatDateTimeEst(row.value)}
)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Unique Client Id\",\r\n\t\t\t\taccessor: \"UniqueClientId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Number\",\r\n\t\t\t\taccessor: \"AccountNumber\"\r\n\t\t\t},\t\t\t\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Owner Name\",\r\n\t\t\t\taccessor: \"AccountOwnerName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Balance\",\r\n\t\t\t\taccessor: \"Balance\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{Formatter.FormatMoney(row.value)}
\r\n\t\t\t\t)\r\n\t\t\t}\r\n\t\t];\r\n\t\tthis.getappCenterTitle = \"Empty\";\r\n\t\tthis.getappLeftTitle = \"Empty\";\r\n\t\tthis.zIndex10 = { zIndex: 10 };\r\n\t\tthis.isClient = ClientHelper.IsClient();\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: this.isClient ? ClientHelper.GetClientId() : undefined,\r\n\t\t};\r\n\r\n\t\tthis.initialState = {\r\n\t\t\tFromDate: DateHelper.GetDateTime(),\r\n\t\t\tToDate: DateHelper.GetDateTime()\r\n\t\t}\r\n\t\tthis.state = {\r\n\t\t\tmodel: { ...this.initialState },\r\n\t\t\tdata: [],\r\n\t\t\tactiveClient: [],\r\n\t\t\tresponseDetail: {},\r\n\t\t\tisDetailDialogOpen: false\r\n\t\t};\r\n\t\tthis.cpverTable = React.createRef();\r\n\t}\r\n\r\n\tExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tconsole.log(this.cpverTable.current.props.Columns);\r\n\t\tthis.cpverTable.current.props.Columns.forEach((c) => {\r\n\r\n\t\t\tif (\r\n\r\n\t\t\t\tc.accessor != \"Actions\" &&\r\n\r\n\t\t\t\tc.accessor != \"ED\" &&\r\n\r\n\t\t\t\t(c.show == undefined || c.show)\r\n\r\n\t\t\t) {\r\n\r\n\t\t\t\ttrxColumns.push({\r\n\r\n\t\t\t\t\tvalue: c.accessor,\r\n\r\n\t\t\t\t\ttitle: c.Header,\r\n\r\n\t\t\t\t\tcolumntype: c.ColumnType,\r\n\r\n\t\t\t\t\ttype: c.type,\r\n\r\n\t\t\t\t});\r\n\r\n\t\t\t}\r\n\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: trxColumns, ExportSelectedColumns: trxColumns });\r\n\t}\r\n\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tthis.props.showConfirmMessage(\"question\", \"Long Process Warning\", \"This process may take a while. Continue ?\", () => {\r\n\t\t\tthis.hideAlert();\r\n\t\t\tconst { model } = this.state;\r\n\r\n\t\t\t// Add jsonFile\r\n\t\t\tvar jsonColList = [];\r\n\r\n\t\t\tvar trxColumns = {};\r\n\t\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\t\ttrxColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t\t});\r\n\t\t\tjsonColList.push(trxColumns);\r\n\r\n\t\t\tmodel[\"jsonFile\"] = {\r\n\t\t\t\tcolmns: jsonColList,\r\n\t\t\t\tformat: this.state.ExportReportType,\r\n\t\t\t\ttitle: \"Minus Wallet Balance Report\"\r\n\t\t\t};\r\n\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\t\"/bankapi/v1.0/Account/MinusWalletBalanceExportDownload\",\r\n\t\t\t\tmodel,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terrorMessage => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t\t},\r\n\t\t\t\tthis.props.showMessage\r\n\t\t\t);\r\n\t\t});\r\n\t}\r\n\r\n\tValueChangedForExport = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\r\n\topenExportDialog = () => {\r\n\t\tthis.setState({\r\n\t\t\tisDownloadDialogOpen: true,\r\n\t\t});\r\n\t};\r\n\r\n\tcloseExportDialog = () => {\r\n\t\tthis.setState({\r\n\t\t\tisDownloadDialogOpen: false,\r\n\t\t});\r\n\t};\r\n\r\n\tcomponentDidMount = () => {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"REPORTS\");\r\n\t\t\tthis.getappCenterTitle = \"REPORTS\";\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Minus Wallet Balance\");\r\n\t\t\tthis.getappLeftTitle = \"Minus Wallet Balance\";\r\n\t\t}\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, data: [], selected: null });\r\n\t}\r\n\r\n\tIsValid = () => {\r\n\t\tvar { model } = this.state;\r\n\r\n\t\tvar validateStatus = true;\r\n\r\n\t\tif (\r\n\t\t\tmodel.FromDate == \"\" ||\r\n\t\t\t(typeof model.FromDate != \"object\" &&\r\n\t\t\t\tmodel.FromDate != \"\" &&\r\n\t\t\t\tmodel.FromDate != null)\r\n\t\t) {\r\n\t\t\tthis.props.showMessage(\r\n\t\t\t\t\"warning\",\r\n\t\t\t\t\"Please fill required fields!\",\r\n\t\t\t\t\"Start Date is invalid\"\r\n\t\t\t);\r\n\t\t\tvalidateStatus = false;\r\n\t\t}\r\n\t\tif (\r\n\t\t\tmodel.ToDate == \"\" ||\r\n\t\t\t(typeof model.ToDate != \"object\" &&\r\n\t\t\t\tmodel.ToDate != \"\" &&\r\n\t\t\t\tmodel.ToDate != null)\r\n\t\t) {\r\n\t\t\tthis.props.showMessage(\r\n\t\t\t\t\"warning\",\r\n\t\t\t\t\"Please fill required fields!\",\r\n\t\t\t\t\"End Date is invalid\"\r\n\t\t\t);\r\n\t\t\tvalidateStatus = false;\r\n\t\t}\r\n\t\tif (\r\n\t\t\ttypeof model.FromDate == \"object\" &&\r\n\t\t\ttypeof model.ToDate == \"object\" &&\r\n\t\t\tmodel.ToDate < model.FromDate\r\n\t\t) {\r\n\t\t\tthis.props.showMessage(\r\n\t\t\t\t\"warning\",\r\n\t\t\t\t\"Please fill required fields!\",\r\n\t\t\t\t\"Start Date cannot be bigger than End Date\"\r\n\t\t\t);\r\n\t\t\tvalidateStatus = false;\r\n\t\t}\r\n\r\n\t\tif (\r\n\t\t\ttypeof model.FromDate == \"object\" &&\r\n\t\t\ttypeof model.ToDate == \"object\"\r\n\t\t) {\r\n\t\t\tvar diffMonths = model.ToDate.diff(\r\n\t\t\t\tmodel.FromDate,\r\n\t\t\t\t\"days\"\r\n\t\t\t);\r\n\t\t\tif (diffMonths < 0) {\r\n\t\t\t\tthis.props.showMessage(\r\n\t\t\t\t\t\"warning\",\r\n\t\t\t\t\t\"Warning\",\r\n\t\t\t\t\t\"End Date must be later than Start Date\"\r\n\t\t\t\t);\r\n\t\t\t\tvalidateStatus = false;\r\n\t\t\t}\r\n\r\n\t\t\tif (diffMonths > 30 || diffMonths > 31) {\r\n\t\t\t\tthis.props.showMessage(\r\n\t\t\t\t\t\"warning\",\r\n\t\t\t\t\t\"Warning\",\r\n\t\t\t\t\t\"Difference between Start Date and End Date cannot be longer than 30 days\"\r\n\t\t\t\t);\r\n\t\t\t\tvalidateStatus = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\t\tif (!validateStatus) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.setState({ model });\r\n\t\t}\r\n\t\treturn true;\r\n\t};\r\n\r\n\tRowSelected = (index) => {\r\n\t\tconst { data } = this.state;\r\n\t\tvar temp = data[index];\r\n\r\n\t\tthis.setState({ model: temp, selected: index });\r\n\t}\r\n\r\n\tshowLoading = () => { this.setState({ isLoading: true }); }\r\n\thideLoading = () => { this.setState({ isLoading: false }); }\r\n\r\n\tshowDetail = async (result) => {\r\n\t\tthis.setState({ responseDetail: result || [], isDetailDialogOpen: true });\r\n\t\tconsole.log(result);\r\n\t}\r\n\r\n\tDetailDialogClose = () => {\r\n\t\tthis.setState({ isDetailDialogOpen: false });\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tif (!this.IsValid()) return;\r\n\r\n\t\tlet { model } = this.state;\r\n\t\tconsole.log(model);\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Account/MinusWalletBalance\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\r\n\t\t\t\t\t\t\"error\",\r\n\t\t\t\t\t\t\"Error\",\r\n\t\t\t\t\t\tresponseData.ErrorDescription\r\n\t\t\t\t\t);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ data: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, isLoading,selected, data } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t this.ExportClick(),\r\n\t\t\t\t\t\t\tDisabled: Disabled\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Clear\",\r\n\t\t\t\t\t\t\tDisabled: Disabled,\r\n\t\t\t\t\t\t\tOnClick: this.Clear\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After} />\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={ClientHelper.IsClient()}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tDefaultIndex={ClientHelper.IsClient() ? 0 : -1}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\t\t\tname=\"Columns\"\r\n\t\t\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nMinusWalletBalance.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tExecuteApiFileDownloadWithGenericResponse: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default withStyles(externalContainerStyle)(MinusWalletBalance);","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { DeleteIcon, DetailIcon, ETransferIcon } from \"core/Icons\";\r\nimport MenuAuthorityRightHelper from \"core/MenuAuthorityRightHelper\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport moment from \"moment\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericCheckInput, GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle, GenericLabel, GenericRadioInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton.jsx\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { ActionCodes, BankingAccountTypes, ClientType, GridColumnType, MenuCodes, ProgramCodes, TransactionType } from \"views/Constants/Constant.js\";\r\nimport Select from \"react-select\";\r\n\r\n\r\nclass MyAccounts extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.isBackoffice = ClientHelper.IsBackOffice();\r\n\t\tthis.isClient = ClientHelper.IsClient();\r\n\t\tlet IsCallCenter = this.props.MenuCode === MenuCodes.ClientAccountActivities;\r\n\r\n\t\tthis.state = {\r\n\t\t\tvModel: {},\r\n\t\t\tcheckedAccounts: [],\r\n\t\t\tcustomerAccountList: [],\r\n\t\t\tsearchModel: {\r\n\t\t\t\tIsRequiredUniqueClientId: true,\r\n\t\t\t\tIsRequiredDate: true,\r\n\t\t\t\tIsRequiredStatementPeriod: true,\r\n\t\t\t\tIsInvalidStatementPeriod: false,\r\n\t\t\t\tIsInvalidFromDate: false,\r\n\t\t\t\tIsInvalidToDate: false\r\n\t\t\t},\r\n\t\t\tIsTxnDetailOpen: false,\r\n\t\t\tTxnDetail: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tClientTypeParameter: {},\r\n\t\t\tgridButtonRightDetail: []\r\n\t\t};\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\twidth: 100,\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"ED\",\r\n\t\t\t\tCell: d => (\r\n\t\t\t\t\t this.setState({ IsTxnDetailOpen: true, TxnDetail: d.original })} />\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\tshow: !IsCallCenter\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\ttype: GridColumnType.DateTimeUtc,\r\n\t\t\t\tstyle: this.RenderStyle()\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Channel Name\",\r\n\t\t\t\taccessor: \"ChannelType\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Received / Sent\",\r\n\t\t\t\taccessor: \"TransactionType\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Currency\",\r\n\t\t\t\taccessor: \"SourceCurrencyCode\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"Amount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tstyle: this.RenderStyle(),\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Remaining Balance\",\r\n\t\t\t\taccessor: \"RemainingBalance\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tstyle: this.BalanceRenderStyle(),\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\twidth: 180,\r\n\t\t\t\tHeader: \"Account Name\",\r\n\t\t\t\taccessor: \"AccountName\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Number\",\r\n\t\t\t\taccessor: \"AccountNumber\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value ?? \" - \"}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sender Bank\",\r\n\t\t\t\taccessor: \"SenderBank\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sender Name\",\r\n\t\t\t\taccessor: \"SenderName\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sender Short Name\",\r\n\t\t\t\taccessor: \"SenderShortName\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer/Contact Name\",\r\n\t\t\t\taccessor: \"DestinationCustomerName\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value ?? \" - \"}
\r\n\t\t\t\t),\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reference Number\",\r\n\t\t\t\taccessor: \"ReferenceNumber\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Interac Reference Number\",\r\n\t\t\t\taccessor: \"InteracReferenceNumber\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\twidth: 250,\r\n\t\t\t\tHeader: \"Description\",\r\n\t\t\t\taccessor: \"SummaryDescription\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t)\r\n\t\t\t}\r\n\r\n\t\t];\r\n\r\n\t\tthis.trxTable = React.createRef();\r\n\t\tthis.MenuAuthorityRightHelper = new MenuAuthorityRightHelper();\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle, MenuCode } = this.props;\r\n\r\n\t\tif (!this.isBackoffice) {\r\n\t\t\tif (setAppLeftTitle) setAppLeftTitle(\"My Accounts\");\r\n\t\t\tif (setAppCenterTitle) setAppCenterTitle(\"BANKING\");\r\n\t\t\tthis.GetCustomerBankAccounts(true);\r\n\t\t\tthis.GetClientType();\r\n\t\t} else if (MenuCode === MenuCodes.ClientAccountActivities) {\r\n\t\t\tif (setAppLeftTitle) setAppLeftTitle(\"Client Account Activities\");\r\n\t\t\tif (setAppCenterTitle) setAppCenterTitle(\"CALL CENTER\");\r\n\t\t\tthis.GetGridButtonsRight();\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (setAppLeftTitle) setAppLeftTitle(\"Accounts\");\r\n\t\t\tif (setAppCenterTitle) setAppCenterTitle(\"BANKING\");\r\n\t\t}\r\n\r\n\t\tthis.setState({ loadingCompleted: true });\r\n\t}\r\n\r\n\r\n\tTrxFunc = (data) => {\r\n\r\n\t\tif (data == null) {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t\tif (data.ParameterValue == TransactionType.Debit) {\r\n\t\t\treturn \"Received\";\r\n\t\t}\r\n\t\tif (data.ParameterValue == TransactionType.Credit) {\r\n\t\t\treturn \"Sent\";\r\n\t\t}\r\n\t\treturn \"\";\r\n\r\n\t}\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\r\n\tRenderAccountTypeParameter = (data) => {\r\n\t\tconst parameter = { ...this.state.ClientTypeParameter };\r\n\t\tif (data == null) {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t\tif (data.AccountCode == null || data.AccountCode == \"\") {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\t\tif (data.AccountCode != BankingAccountTypes.PrimaryAccount) {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\t\tif (data.ProgramCode == null || data.ProgramCode == \"\") {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\t\tif (data.ProgramCode != ProgramCodes.Bank_Programs_Bank_Account) {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\r\n\t\tif (parameter.ParameterValue == ClientType.Corporate || parameter.ParameterValue == ClientType.SalesAgentCorporate) {\r\n\t\t\treturn \"Corporate Account\";\r\n\t\t} else if (parameter.ParameterValue == ClientType.Personal || parameter.ParameterValue == ClientType.SalesAgentPersonal) {\r\n\t\t\treturn \"Individual Account\";\r\n\t\t} else {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\r\n\t}\r\n\tGetClientType = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/BankCustomer/GetClientType\",\r\n\t\t\t{},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ ClientTypeParameter: responseData.Item });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\thandleChangeSearchModel = (name, newValue, data) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.searchModel || {};\r\n\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\tif (name == \"CheckAllAccounts\" && newValue == true) {\r\n\t\t\t\tconst list = this.state.customerAccountList;\r\n\t\t\t\tthis.setState({ checkedAccounts: list });\r\n\t\t\t} else if (name == \"CheckAllAccounts\" && newValue == false) {\r\n\t\t\t\tthis.setState({ checkedAccounts: [] });\r\n\t\t\t}\r\n\r\n\t\t\tif (name == \"UniqueClientId\" && newValue !== undefined && newValue != null) {\r\n\t\t\t\tthis.GetCustomerBankAccounts(true);\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tcustomerAccountList: [], checkedAccounts: []\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t\telse if (name == \"UniqueClientId\" && (newValue == undefined || newValue == null)) {\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tcheckedAccounts: [], customerAccountList: []\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t\tif (name == \"Amount\") {\r\n\t\t\t\tmodel.MinAmount = newValue;\r\n\t\t\t\tmodel.MaxAmount = newValue;\r\n\t\t\t}\r\n\r\n\t\t\tif (name == \"ReferenceNumber\") {\r\n\r\n\t\t\t\tlet hasReferenceNumberSearch = model[\"ReferenceNumber\"]?.length > 0;\r\n\r\n\t\t\t\tmodel.IsRequiredStatementPeriod = !hasReferenceNumberSearch;\r\n\t\t\t\tmodel.IsRequiredDate = !hasReferenceNumberSearch;\r\n\t\t\t\tmodel.IsRequiredUniqueClientId = !hasReferenceNumberSearch;\r\n\t\t\t}\r\n\r\n\t\t\tif (name == \"StatementPeriod\" || name == \"ToDate\" || name == \"FromDate\") {\r\n\r\n\t\t\t\tif (model.StatementPeriod == undefined || model.StatementPeriod == null || model.StatementPeriod == \"\") {\r\n\t\t\t\t\tmodel.StatementControl = false;\r\n\t\t\t\t\tmodel.IsRequiredStatementPeriod = true;\r\n\t\t\t\t\tmodel.IsRequiredDate = true;\r\n\r\n\t\t\t\t\tthis.setState({ searchModel: model });\r\n\r\n\t\t\t\t\tif ((model.ToDate == undefined || model.ToDate == \"\" || model.ToDate == null) && (model.FromDate == undefined || model.FromDate == \"\" || model.FromDate == null)) {\r\n\r\n\t\t\t\t\t\tmodel.IsInvalidFromDate = false;\r\n\t\t\t\t\t\tmodel.IsInvalidToDate = false;\r\n\r\n\t\t\t\t\t\tmodel.DateControl = false;\r\n\t\t\t\t\t\tthis.setState({ searchModel: model });\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\r\n\t\t\t\t\t\tmodel.StatementControl = true;\r\n\t\t\t\t\t\tmodel.DateControl = false;\r\n\t\t\t\t\t\tmodel.IsRequiredStatementPeriod = false;\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmodel.DateControl = true;\r\n\t\t\t\t\tmodel.IsInvalidFromDate = false;\r\n\t\t\t\t\tmodel.IsInvalidToDate = false;\r\n\t\t\t\t\tmodel.IsRequiredDate = false;\r\n\t\t\t\t\tthis.setState({ searchModel: model });\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn { searchModel: model };\r\n\t\t});\r\n\t}\r\n\tHandleCheckCustomerAccounts = (e, x) => {\r\n\r\n\t\tconst { checkedAccounts } = this.state;\r\n\t\tvar temp = true;\r\n\r\n\t\tconst items = checkedAccounts.map((item, key) => {\r\n\t\t\tif (item.Id == x.Id) {\r\n\t\t\t\tcheckedAccounts.splice(key, 1);\r\n\t\t\t\ttemp = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t);\r\n\r\n\t\tif (checkedAccounts.length == 0 && temp) { checkedAccounts.push(x); }\r\n\t\telse if (temp) { checkedAccounts.push(x); }\r\n\r\n\t\tthis.setState({ checkedAccounts });\r\n\r\n\t}\r\n\r\n\r\n\tGetCustomerBankAccounts = (status) => {\r\n\r\n\r\n\r\n\t\tconst temp = { ...this.state.searchModel };\r\n\t\tlet IsClientAcvitivies = this.props.MenuCode == MenuCodes.ClientAccountActivities;\r\n\r\n\t\tif (this.isClient) {\r\n\t\t\ttemp.IsClient = true;\r\n\t\t}\r\n\r\n\t\tif (IsClientAcvitivies) {\r\n\t\t\tif ((temp.UniqueClientId == null || temp.UniqueClientId == \"\")) return;\r\n\t\t\telse if (status) {\r\n\t\t\t\tthis.GetAccountList(temp);\r\n\t\t\t\treturn;\r\n\t\t\t} else if (status == undefined && !this.IsValid()) return;\r\n\r\n\t\t\tthis.GetAccountList(temp);\r\n\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (status) {\r\n\t\t\t\tthis.GetAccountList(temp);\r\n\t\t\t\treturn;\r\n\t\t\t} else {\r\n\t\t\t\tvar isvalidControl1 = this.IsValid();\r\n\t\t\t\tif (isvalidControl1 == false) return;\r\n\r\n\t\t\t\tthis.GetAccountList(temp);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\t\t// if (status == undefined) {\r\n\r\n\t\t// \tif (this.IsValid() == false) return;\r\n\t\t// } else if (status == false && this.IsValid() == false) {\r\n\t\t// \treturn;\r\n\t\t// }\r\n\t\t// this.setState({ isLoading: true });\r\n\r\n\t\t// Proxy.POST(\r\n\t\t// \t\"/bankapi/v1.0/Account/CustomerAccountsForBankingPortal\",\r\n\t\t// \tthis.state.searchModel,\r\n\t\t// \tresponseData => {\r\n\t\t// \t\tif (!responseData.IsSucceeded) {\r\n\t\t// \t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t// \t\t\treturn;\r\n\t\t// \t\t}\r\n\t\t// \t\tif (!responseData.IsSucceeded) {\r\n\t\t// \t\t\tthis.ShowMessage(\"error\", \"Error !\", responseData.ErrorDescription);\r\n\t\t// \t\t\treturn;\r\n\t\t// \t\t} else {\r\n\t\t// \t\t\tthis.setState({ customerAccountList: responseData.Item || [] });\r\n\t\t// \t\t}\r\n\t\t// \t\tthis.setState({ isLoading: false });\r\n\r\n\t\t// \t},\r\n\t\t// \terror => {\r\n\t\t// \t\tthis.setState({ isLoading: false });\r\n\t\t// \t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t// \t}\r\n\t\t// );\r\n\t}\r\n\r\n\tGetAccountList = (temp) => {\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Account/CustomerAccountsForBankingPortal\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error !\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ customerAccountList: responseData.Item || [] });\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tIsValid = () => {\r\n\t\tvar temp = { ...this.state.searchModel };\r\n\t\tconst vModel = this.state.vModel;\r\n\t\ttemp.SettlementAccountStatus = false;\r\n\t\tlet IsCallCenter = this.props.MenuCode == MenuCodes.ClientAccountActivities;\r\n\r\n\t\tif (temp.IsRequiredUniqueClientId && !temp.SenderBank && IsCallCenter && (temp.UniqueClientId == null || temp.UniqueClientId == 0)) {\r\n\t\t\tvModel.UniqueClientId = true;\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Client must be selected for search operation !\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvModel.UniqueClientId = false;\r\n\t\t}\r\n\t\tthis.setState({ vModel });\r\n\r\n\t\tif (temp.IsRequiredStatementPeriod\r\n\t\t\t&&\r\n\t\t\t(temp.StatementPeriod == undefined || temp.StatementPeriod == null || temp.StatementPeriod == \"\")\r\n\t\t\t&&\r\n\t\t\t(temp.FromDate == null || temp.FromDate == undefined || temp.FromDate == \"\")\r\n\t\t\t&&\r\n\t\t\t(temp.ToDate == null || temp.ToDate == undefined || temp.ToDate == \"\")) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Please select Statement Period or Date Interval\");\r\n\t\t\ttemp.IsRequiredDate = true;\r\n\t\t\ttemp.IsRequiredStatementPeriod = true;\r\n\t\t\tthis.setState({ searchModel: temp });\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif ((temp.StatementPeriod != null && temp.StatementPeriod != \"\")) {\r\n\t\t\t\ttemp.DateControl = true;\r\n\t\t\t\tthis.setState({ searchModel: temp });\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif (temp.IsRequiredDate && typeof temp.FromDate != \"object\" && temp.FromDate != \"\" && temp.FromDate != null) {\r\n\t\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"From Date is invalid\");\r\n\t\t\t\t\ttemp.IsInvalidFromDate = true;\r\n\t\t\t\t\tthis.setState({ searchModel: temp });\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\tif (temp.IsRequiredDate && typeof temp.ToDate != \"object\" && temp.ToDate != \"\" && temp.ToDate != null) {\r\n\t\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"To Date is invalid\");\r\n\t\t\t\t\ttemp.IsInvalidToDate = true;\r\n\t\t\t\t\tthis.setState({ searchModel: temp });\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t} else if (temp.IsRequiredDate && temp.ToDate == undefined || temp.ToDate == \"\") {\r\n\t\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"To Date must be defined \");\r\n\t\t\t\t\ttemp.IsInvalidToDate = true;\r\n\t\t\t\t\tthis.setState({ searchModel: temp });\r\n\t\t\t\t\treturn false;\r\n\r\n\t\t\t\t} else if (temp.IsRequiredDate && temp.FromDate == undefined || temp.FromDate == \"\") {\r\n\t\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"From Date must be defined \");\r\n\t\t\t\t\ttemp.IsInvalidFromDate = true;\r\n\t\t\t\t\tthis.setState({ searchModel: temp });\r\n\t\t\t\t\treturn false;\r\n\r\n\t\t\t\t}\r\n\t\t\t\tif (temp.IsRequiredDate && (typeof temp.FromDate == \"object\" && typeof temp.ToDate == \"object\") && temp.ToDate < temp.FromDate) {\r\n\t\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"From Date cannot be bigger than To Date\");\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (temp.IsRequiredDate && (typeof temp.FromDate == \"object\" && typeof temp.ToDate == \"object\")) {\r\n\t\t\t\t\tvar interval = moment.duration(temp.ToDate.diff(temp.FromDate)).asDays();\r\n\t\t\t\t\tif (interval > 30) {\r\n\t\t\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Between two dates cannot be longer than 30 days!\");\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\ttemp.IsInvalidFromDate = false;\r\n\t\t\t\ttemp.IsInvalidToDate = false;\r\n\t\t\t\ttemp.StatementControl = true;\r\n\t\t\t\tthis.setState({ searchModel: temp });\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\tSendToWorkflow = id => {\r\n\t\tvar data = { Id: id };\r\n\t\tvar jsonData = JSON.stringify(data);\r\n\r\n\t\tvar requestData = {\r\n\t\t\tMenuCode: MenuCodes.CloseAccount,\r\n\t\t\tActionCode: ActionCodes.Submit,\r\n\t\t\tJsonData: jsonData,\r\n\t\t\tRowId: id\r\n\t\t};\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/coreapi/v1.0/WorkflowData/InsertWorkflowData\",\r\n\t\t\trequestData,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Request successfully sent for approval\");\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", \"An error occurred while sending approve request \" + errorMessage);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tGetGridButtonsRight = async () => {\r\n\t\tconst { MenuCode } = this.props;\r\n\t\tvar gridButtonRightDetail = await this.MenuAuthorityRightHelper.RightCheckList(MenuCode, [\"CLIACTDEAC\"]);\r\n\r\n\t\tthis.setState({ gridButtonRightDetail });\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\tClearData = () => {\r\n\r\n\t\tif (this.isBackoffice) //Settlement Acc Acvt\r\n\t\t{\r\n\t\t\tthis.setState({\r\n\t\t\t\tcustomerAccountList: [], alert: null, isLoading: false, checkedAccounts: [], searchModel: {\r\n\t\t\t\t\tIsRequiredDate: true,\r\n\t\t\t\t\tIsRequiredStatementPeriod: true,\r\n\r\n\t\t\t\t}, IsTxnDetailOpen: false, TxnDetail: {},\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tthis.setState({\r\n\t\t\talert: null, isLoading: false, checkedAccounts: [], searchModel: {\r\n\t\t\t\tIsRequiredDate: true,\r\n\t\t\t\tIsRequiredStatementPeriod: true,\r\n\t\t\t\tIsRequiredUniqueClientId: true,\r\n\r\n\t\t\t}, IsTxnDetailOpen: false, TxnDetail: {},\r\n\t\t});\r\n\t}\r\n\thandleChangeFilterPanel = panel => (event, expanded) => {\r\n\t\tthis.setState({\r\n\t\t\tactive: expanded ? panel : -1\r\n\t\t});\r\n\t};\r\n\r\n\tRenderStyle = () => {\r\n\t\treturn {\r\n\t\t\tcolumn: \"TransactionType\",\r\n\t\t\tcondition: \"Received\",\r\n\t\t\tstyle: { fontWeight: \"600\" },\r\n\t\t\tprefix: [\"+\", \"\"]\r\n\t\t};\r\n\t}\r\n\tBalanceRenderStyle = () => {\r\n\t\treturn {\r\n\t\t\tcolumn: \"TransactionType\",\r\n\t\t\tcondition: \"Received\",\r\n\t\t\tstyle: { fontWeight: \"600\" },\r\n\t\t\tprefix: [\"\", \"\"]\r\n\t\t};\r\n\t}\r\n\r\n\r\n\tHandleGetList = () => {\r\n\t\tthis.setState(state => ({ trxGridToken: !state.trxGridToken }));\r\n\t}\r\n\r\n\tExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.accessor != \"Actions\" && c.accessor != \"ED\" && (c.show == undefined || c.show)) {\r\n\t\t\t\ttrxColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: trxColumns, ExportSelectedColumns: trxColumns });\r\n\t}\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tif (!this.IsValid())\r\n\t\t\treturn;\r\n\r\n\t\tthis.ShowConfirmMessage(\"question\", \"Long Process Warning\", \"This process may take a while. Continue ?\", () => {\r\n\t\t\tthis.hideAlert();\r\n\t\t\tconst { searchModel, checkedAccounts } = this.state;\r\n\r\n\t\t\t// Add checkedAccounts\r\n\t\t\tif (checkedAccounts && checkedAccounts.length > 0) {\r\n\t\t\t\tsearchModel[\"AccountIds\"] = checkedAccounts.map(o => o.Id);\r\n\t\t\t\tcheckedAccounts.forEach(element => {\r\n\t\t\t\t\tif (element.SubAccountList != null) {\r\n\t\t\t\t\t\telement.SubAccountList.forEach(x => {\r\n\t\t\t\t\t\t\tsearchModel[\"AccountIds\"].push(x);\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}\r\n\r\n\t\t\t// Add jsonFile\r\n\t\t\tvar jsonColList = [];\r\n\r\n\t\t\tvar trxColumns = {};\r\n\t\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\t\ttrxColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t\t});\r\n\t\t\tjsonColList.push(trxColumns);\r\n\r\n\t\t\tvar mytitle = \"\";\r\n\t\t\tif (this.props.MenuCode == MenuCodes.ClientAccountActivities) { mytitle = \"Client Account Activities Report\"; }\r\n\t\t\telse { mytitle = \"My Accounts Report\"; }\r\n\r\n\t\t\tsearchModel[\"jsonFile\"] = {\r\n\t\t\t\tcolmns: jsonColList,\r\n\t\t\t\tformat: this.state.ExportReportType,\r\n\t\t\t\ttitle: mytitle\r\n\t\t\t};\r\n\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\t\"/bankapi/v1.0/Transaction/SearchAllAccountMovementsExport\",\r\n\t\t\t\tsearchModel,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terrorMessage => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t\t},\r\n\t\t\t\tthis.props.showMessage\r\n\t\t\t);\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { customerAccountList, checkedAccounts, searchModel, vModel, TxnDetail, IsTxnDetailOpen, alert, gridButtonRightDetail } = this.state;\r\n\r\n\t\tlet IsCallCenter = this.props.MenuCode === MenuCodes.ClientAccountActivities;\r\n\t\tlet IsBackOffice = this.props.MenuCode == MenuCodes.Backoffice_Accounts;\r\n\t\tvar endDate = (searchModel.FromDate instanceof moment) ? searchModel.FromDate.clone() : \"\";\r\n\r\n\t\tvar GridDataAccounts = customerAccountList == null ? [] : customerAccountList.map(d => {\r\n\t\t\treturn {\r\n\t\t\t\tED: (\r\n\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t{(!IsCallCenter && d.AccountCode == BankingAccountTypes.PrimaryAccount) &&\r\n\t\t\t\t\t\t\t { RouteHelper.Push(this.props.history, \"/EtransferFromAccount\", \"EtransferFromAccount_ID\", 0); }} />\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t{IsCallCenter &&\r\n\t\t\t\t\t\t\t x.Code == \"CLIACTDEAC\")?.HasAuthority}\r\n\t\t\t\t\t\t\t\tOnClick={() => {\r\n\t\t\t\t\t\t\t\t\tthis.ShowConfirmMessage(\"warning\", \"Workflow Confirmation\", \"Are you sure to send it for workflow confirmation ?\", () => {\r\n\t\t\t\t\t\t\t\t\t\tthis.hideAlert();\r\n\t\t\t\t\t\t\t\t\t\tthis.SendToWorkflow(d.Id);\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t}} />\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tAP: (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t c.Id == d.Id).length > 0}\r\n\t\t\t\t\t\t\tValueChanged={(e) => {\r\n\t\t\t\t\t\t\t\tthis.HandleCheckCustomerAccounts(e, d);\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tId: d.Id,\r\n\t\t\t\tProgramId: d.ProgramId,\r\n\t\t\t\tCustomerBankAccountId: d.CustomerBankAccountId,\r\n\t\t\t\tAccountShortName: d.AccountShortName,\r\n\t\t\t\tBankAccountId: d.BankAccountId,\r\n\t\t\t\tUniqueClientId: d.UniqueClientId,\r\n\t\t\t\tBalance: d.Balance,\r\n\t\t\t\tAccountName: d.AccountName,\r\n\t\t\t\tPendingBalance: d.PendingBalance,\r\n\t\t\t\tAccountNumber: d.AccountNumber,\r\n\t\t\t\tAccountNumberStr: d.AccountNumberStr,\r\n\t\t\t\tBranchNumber: d.BranchNumber,\r\n\t\t\t\tBankNumber: d.BankNumber,\r\n\t\t\t\tAccountTypeId: d.AccountTypeId,\r\n\t\t\t\tAccountType: d.AccountType,\r\n\t\t\t\tAccountType4: d.AccountType4,\r\n\t\t\t\tAccountType6: d.AccountType6,\r\n\t\t\t\tAccountCode: d.AccountCode,\r\n\t\t\t\tProgramCode: d.ProgramCode,\r\n\t\t\t\tProgramName: d.ProgramName,\r\n\t\t\t\tCurrencyCode: d.CurrencyCode,\r\n\t\t\t\tCurrencyDesc: d.CurrencyDesc,\r\n\t\t\t\tCurrencySymbol: d.CurrencySymbol,\r\n\t\t\t\tAmountDisplay: d.AmountDisplay,\r\n\t\t\t\tSubAccountList: d.SubAccountList\r\n\r\n\t\t\t};\r\n\t\t});\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t this.ClearData(), Disabled: Disabled },\r\n\t\t\t\t\t\t\t{ Code: \"Search\", OnClick: () => { this.HandleGetList(); this.GetCustomerBankAccounts(); }, Disabled: Disabled },\r\n\t\t\t\t\t\t\t{ Code: \"Export\", OnClick: () => this.ExportClick(), Disabled: Disabled }\r\n\r\n\t\t\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{(IsCallCenter || this.isBackoffice) &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tValue={searchModel.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChangeSearchModel}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tRequired={searchModel.IsRequiredUniqueClientId}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.UniqueClientId}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tCanClear />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t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r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAll Accounts{\" \"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Account Type\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"AccountType\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{this.RenderAccountTypeParameter(row.original)}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tTotal{\" \"} {customerAccountList == null ? 0 : customerAccountList.length}{\" \"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Program Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ProgramName\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Account Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"AccountNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Currency\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"CurrencyCode\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Balance\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Balance\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{Formatter.FormatMoneySpecial(row.original.CurrencySymbol, row.value)}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// Footer: (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\t\t{Formatter.FormatMoney(customerAccountList.TotalAccountBalance)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// )\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Pending Balance\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"PendingBalance\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{Formatter.FormatMoneySpecial(row.original.CurrencySymbol, row.value)}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// Footer: (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\t{Formatter.FormatMoney(customerAccountList.TotalAccountBalance)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// )\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_Bank_Account} />\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\tconst temp = { ...this.state.searchModel };\r\n\t\t\t\t\t\t\t\t\t\t\t\tvar ids = [];\r\n\t\t\t\t\t\t\t\t\t\t\t\tthis.state.checkedAccounts.forEach(element => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tids.push(element.Id);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (element.SubAccountList != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\telement.SubAccountList.forEach(x => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tids.push(x);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t\t\ttemp.AccountIds = ids;\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn temp;\r\n\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\tRequestUrl=\"/bankapi/v1.0/Transaction/SearchAllAccountMovementsPaged\"\r\n\t\t\t\t\t\t\t\t\t\t\tRequestMethod=\"POST\"\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tTransaction Details\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t

Reference Number: {TxnDetail.ReferenceNumber}

\r\n\t\t\t\t\t\t\t\t

Transaction Date: {Formatter.FormatDateUtc(TxnDetail.TransactionDate)}

\r\n\t\t\t\t\t\t\t\t

Transaction Amount: {TxnDetail.Amount}

\r\n\t\t\t\t\t\t\t\t

Description: {TxnDetail.Description}

\r\n\t\t\t\t\t\t\t\t

Transaction Type: {TxnDetail.TransactionType}

\r\n\t\t\t\t\t\t\t\t

Account Name: {TxnDetail.AccountName}

\r\n\t\t\t\t\t\t\t\t

Account Number: {TxnDetail.AccountNumber}

\r\n\t\t\t\t\t\t\t\t{/* {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t } */}\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nMyAccounts.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func\r\n};\r\n\r\n\r\nexport default MyAccounts;","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { DeleteIcon, DetailIcon, ETransferIcon } from \"core/Icons\";\r\nimport MenuAuthorityRightHelper from \"core/MenuAuthorityRightHelper\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport moment from \"moment\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericCheckInput, GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle, GenericLabel, GenericRadioInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton.jsx\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { ActionCodes, BankingAccountTypes, ClientType, GridColumnType, MenuCodes, ProgramCodes, TransactionType } from \"views/Constants/Constant.js\";\r\nimport Select from \"react-select\";\r\n\r\n\r\nclass MyAggregateTransactionGroupReport extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.isBackoffice = ClientHelper.IsBackOffice();\r\n\t\tlet IsCallCenter = this.props.MenuCode === MenuCodes.ClientAccountActivities;\r\n\r\n\t\tthis.state = {\r\n\t\t\tvModel: {},\r\n\t\t\tcheckedAccounts: [],\r\n\t\t\tcustomerAccountList: [],\r\n\t\t\tsearchModel: {\r\n\t\t\t\tIsRequiredUniqueClientId: true,\r\n\t\t\t\tIsRequiredDate: true,\r\n\t\t\t\tIsRequiredStatementPeriod: true,\r\n\t\t\t\tIsInvalidStatementPeriod: false,\r\n\t\t\t\tIsInvalidFromDate: false,\r\n\t\t\t\tIsInvalidToDate: false\r\n\t\t\t},\r\n\t\t\tIsTxnDetailOpen: false,\r\n\t\t\tTxnDetail: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tClientTypeParameter: {},\r\n\t\t\tgridButtonRightDetail: []\r\n\t\t};\r\n\r\n\t\tthis.columns = [\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\ttype: GridColumnType.DateTimeUtc,\r\n\t\t\t\tstyle: this.RenderStyle()\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Channel Name\",\r\n\t\t\t\taccessor: \"ChannelType\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Received / Sent\",\r\n\t\t\t\taccessor: \"TransactionType\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t)\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"Amount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tstyle: this.RenderStyle(),\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t}\t\t\r\n\t\t\t,{\r\n\t\t\t\tHeader: \"NoOfTransaction\",\r\n\t\t\t\taccessor: \"NoOfTransaction\"\r\n\t\t\t}\r\n\r\n\t\t];\r\n\r\n\t\tthis.trxTable = React.createRef();\r\n\t\tthis.MenuAuthorityRightHelper = new MenuAuthorityRightHelper();\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle, MenuCode } = this.props;\r\n\r\n\t\tif (!this.isBackoffice) {\r\n\t\t\tif (setAppLeftTitle) setAppLeftTitle(\"My Aggregate Transaction Group Report\");\r\n\t\t\tif (setAppCenterTitle) setAppCenterTitle(\"BANKING\");\r\n\t\t\tthis.GetCustomerBankAccounts(true);\r\n\t\t\tthis.GetClientType();\r\n\t\t} else if (MenuCode === MenuCodes.ClientAccountActivities) {\r\n\t\t\tif (setAppLeftTitle) setAppLeftTitle(\"Aggregate Transaction Group Report\");\r\n\t\t\tif (setAppCenterTitle) setAppCenterTitle(\"CALL CENTER\");\r\n\t\t\tthis.GetGridButtonsRight();\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (setAppLeftTitle) setAppLeftTitle(\"Accounts\");\r\n\t\t\tif (setAppCenterTitle) setAppCenterTitle(\"BANKING\");\r\n\t\t}\r\n\r\n\t\tthis.setState({ loadingCompleted: true });\r\n\t}\r\n\r\n\r\n\tTrxFunc = (data) => {\r\n\r\n\t\tif (data == null) {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t\tif (data.ParameterValue == TransactionType.Debit) {\r\n\t\t\treturn \"Received\";\r\n\t\t}\r\n\t\tif (data.ParameterValue == TransactionType.Credit) {\r\n\t\t\treturn \"Sent\";\r\n\t\t}\r\n\t\treturn \"\";\r\n\r\n\t}\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\r\n\tRenderAccountTypeParameter = (data) => {\r\n\t\tconst parameter = { ...this.state.ClientTypeParameter };\r\n\t\tif (data == null) {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t\tif (data.AccountCode == null || data.AccountCode == \"\") {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\t\tif (data.AccountCode != BankingAccountTypes.PrimaryAccount) {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\t\tif (data.ProgramCode == null || data.ProgramCode == \"\") {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\t\tif (data.ProgramCode != ProgramCodes.Bank_Programs_Bank_Account) {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\r\n\t\tif (parameter.ParameterValue == ClientType.Corporate || parameter.ParameterValue == ClientType.SalesAgentCorporate) {\r\n\t\t\treturn \"Corporate Account\";\r\n\t\t} else if (parameter.ParameterValue == ClientType.Personal || parameter.ParameterValue == ClientType.SalesAgentPersonal) {\r\n\t\t\treturn \"Individual Account\";\r\n\t\t} else {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\r\n\t}\r\n\tGetClientType = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/BankCustomer/GetClientType\",\r\n\t\t\t{},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ ClientTypeParameter: responseData.Item });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\thandleChangeSearchModel = (name, newValue, data) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.searchModel || {};\r\n\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\tif (name == \"CheckAllAccounts\" && newValue == true) {\r\n\t\t\t\tconst list = this.state.customerAccountList;\r\n\t\t\t\tthis.setState({ checkedAccounts: list });\r\n\t\t\t} else if (name == \"CheckAllAccounts\" && newValue == false) {\r\n\t\t\t\tthis.setState({ checkedAccounts: [] });\r\n\t\t\t}\r\n\r\n\t\t\tif (name == \"UniqueClientId\" && newValue !== undefined && newValue != null) {\r\n\t\t\t\tthis.GetCustomerBankAccounts(true);\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tcustomerAccountList: [], checkedAccounts: []\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t\telse if (name == \"UniqueClientId\" && (newValue == undefined || newValue == null)) {\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tcheckedAccounts: [], customerAccountList: []\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t\tif (name == \"Amount\") {\r\n\t\t\t\tmodel.MinAmount = newValue;\r\n\t\t\t\tmodel.MaxAmount = newValue;\r\n\t\t\t}\r\n\r\n\t\t\tif (name == \"ReferenceNumber\") {\r\n\r\n\t\t\t\tlet hasReferenceNumberSearch = model[\"ReferenceNumber\"]?.length > 0;\r\n\r\n\t\t\t\tmodel.IsRequiredStatementPeriod = !hasReferenceNumberSearch;\r\n\t\t\t\tmodel.IsRequiredDate = !hasReferenceNumberSearch;\r\n\t\t\t\tmodel.IsRequiredUniqueClientId = !hasReferenceNumberSearch;\r\n\t\t\t}\r\n\r\n\t\t\tif (name == \"StatementPeriod\" || name == \"ToDate\" || name == \"FromDate\") {\r\n\r\n\t\t\t\tif (model.StatementPeriod == undefined || model.StatementPeriod == null || model.StatementPeriod == \"\") {\r\n\t\t\t\t\tmodel.StatementControl = false;\r\n\t\t\t\t\tmodel.IsRequiredStatementPeriod = true;\r\n\t\t\t\t\tmodel.IsRequiredDate = true;\r\n\r\n\t\t\t\t\tthis.setState({ searchModel: model });\r\n\r\n\t\t\t\t\tif ((model.ToDate == undefined || model.ToDate == \"\" || model.ToDate == null) && (model.FromDate == undefined || model.FromDate == \"\" || model.FromDate == null)) {\r\n\r\n\t\t\t\t\t\tmodel.IsInvalidFromDate = false;\r\n\t\t\t\t\t\tmodel.IsInvalidToDate = false;\r\n\r\n\t\t\t\t\t\tmodel.DateControl = false;\r\n\t\t\t\t\t\tthis.setState({ searchModel: model });\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\r\n\t\t\t\t\t\tmodel.StatementControl = true;\r\n\t\t\t\t\t\tmodel.DateControl = false;\r\n\t\t\t\t\t\tmodel.IsRequiredStatementPeriod = false;\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmodel.DateControl = true;\r\n\t\t\t\t\tmodel.IsInvalidFromDate = false;\r\n\t\t\t\t\tmodel.IsInvalidToDate = false;\r\n\t\t\t\t\tmodel.IsRequiredDate = false;\r\n\t\t\t\t\tthis.setState({ searchModel: model });\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn { searchModel: model };\r\n\t\t});\r\n\t}\r\n\tHandleCheckCustomerAccounts = (e, x) => {\r\n\r\n\t\tconst { checkedAccounts } = this.state;\r\n\t\tvar temp = true;\r\n\r\n\t\tconst items = checkedAccounts.map((item, key) => {\r\n\t\t\tif (item.Id == x.Id) {\r\n\t\t\t\tcheckedAccounts.splice(key, 1);\r\n\t\t\t\ttemp = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t);\r\n\r\n\t\tif (checkedAccounts.length == 0 && temp) { checkedAccounts.push(x); }\r\n\t\telse if (temp) { checkedAccounts.push(x); }\r\n\r\n\t\tthis.setState({ checkedAccounts });\r\n\r\n\t}\r\n\r\n\r\n\tGetCustomerBankAccounts = (status) => {\r\n\r\n\r\n\r\n\t\tconst temp = { ...this.state.searchModel };\r\n\t\tlet IsClientAcvitivies = this.props.MenuCode == MenuCodes.ClientAccountActivities;\r\n\r\n\t\tif (IsClientAcvitivies) {\r\n\t\t\tif ((temp.UniqueClientId == null || temp.UniqueClientId == \"\")) return;\r\n\t\t\telse if (status) {\r\n\t\t\t\tthis.GetAccountList(temp);\r\n\t\t\t\treturn;\r\n\t\t\t} else if (status == undefined && !this.IsValid()) return;\r\n\r\n\t\t\tthis.GetAccountList(temp);\r\n\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (status) {\r\n\t\t\t\tthis.GetAccountList(temp);\r\n\t\t\t\treturn;\r\n\t\t\t} else {\r\n\t\t\t\tvar isvalidControl1 = this.IsValid();\r\n\t\t\t\tif (isvalidControl1 == false) return;\r\n\r\n\t\t\t\tthis.GetAccountList(temp);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\t\t// if (status == undefined) {\r\n\r\n\t\t// \tif (this.IsValid() == false) return;\r\n\t\t// } else if (status == false && this.IsValid() == false) {\r\n\t\t// \treturn;\r\n\t\t// }\r\n\t\t// this.setState({ isLoading: true });\r\n\r\n\t\t// Proxy.POST(\r\n\t\t// \t\"/bankapi/v1.0/Account/CustomerAccountsForBankingPortal\",\r\n\t\t// \tthis.state.searchModel,\r\n\t\t// \tresponseData => {\r\n\t\t// \t\tif (!responseData.IsSucceeded) {\r\n\t\t// \t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t// \t\t\treturn;\r\n\t\t// \t\t}\r\n\t\t// \t\tif (!responseData.IsSucceeded) {\r\n\t\t// \t\t\tthis.ShowMessage(\"error\", \"Error !\", responseData.ErrorDescription);\r\n\t\t// \t\t\treturn;\r\n\t\t// \t\t} else {\r\n\t\t// \t\t\tthis.setState({ customerAccountList: responseData.Item || [] });\r\n\t\t// \t\t}\r\n\t\t// \t\tthis.setState({ isLoading: false });\r\n\r\n\t\t// \t},\r\n\t\t// \terror => {\r\n\t\t// \t\tthis.setState({ isLoading: false });\r\n\t\t// \t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t// \t}\r\n\t\t// );\r\n\t}\r\n\r\n\tGetAccountList = (temp) => {\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Account/CustomerAccountsForBankingPortal\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error !\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ customerAccountList: responseData.Item || [] });\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tIsValid = () => {\r\n\t\tvar temp = { ...this.state.searchModel };\r\n\t\tconst vModel = this.state.vModel;\r\n\t\ttemp.SettlementAccountStatus = false;\r\n\t\tlet IsCallCenter = this.props.MenuCode == MenuCodes.ClientAccountActivities;\r\n\r\n\t\tif (temp.IsRequiredUniqueClientId && !temp.SenderBank && IsCallCenter && (temp.UniqueClientId == null || temp.UniqueClientId == 0)) {\r\n\t\t\tvModel.UniqueClientId = true;\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Client must be selected for search operation !\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvModel.UniqueClientId = false;\r\n\t\t}\r\n\t\tthis.setState({ vModel });\r\n\r\n\t\tif (temp.IsRequiredStatementPeriod\r\n\t\t\t&&\r\n\t\t\t(temp.StatementPeriod == undefined || temp.StatementPeriod == null || temp.StatementPeriod == \"\")\r\n\t\t\t&&\r\n\t\t\t(temp.FromDate == null || temp.FromDate == undefined || temp.FromDate == \"\")\r\n\t\t\t&&\r\n\t\t\t(temp.ToDate == null || temp.ToDate == undefined || temp.ToDate == \"\")) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Please select Statement Period or Date Interval\");\r\n\t\t\ttemp.IsRequiredDate = true;\r\n\t\t\ttemp.IsRequiredStatementPeriod = true;\r\n\t\t\tthis.setState({ searchModel: temp });\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif ((temp.StatementPeriod != null && temp.StatementPeriod != \"\")) {\r\n\t\t\t\ttemp.DateControl = true;\r\n\t\t\t\tthis.setState({ searchModel: temp });\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif (temp.IsRequiredDate && typeof temp.FromDate != \"object\" && temp.FromDate != \"\" && temp.FromDate != null) {\r\n\t\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"From Date is invalid\");\r\n\t\t\t\t\ttemp.IsInvalidFromDate = true;\r\n\t\t\t\t\tthis.setState({ searchModel: temp });\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\tif (temp.IsRequiredDate && typeof temp.ToDate != \"object\" && temp.ToDate != \"\" && temp.ToDate != null) {\r\n\t\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"To Date is invalid\");\r\n\t\t\t\t\ttemp.IsInvalidToDate = true;\r\n\t\t\t\t\tthis.setState({ searchModel: temp });\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t} else if (temp.IsRequiredDate && temp.ToDate == undefined || temp.ToDate == \"\") {\r\n\t\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"To Date must be defined \");\r\n\t\t\t\t\ttemp.IsInvalidToDate = true;\r\n\t\t\t\t\tthis.setState({ searchModel: temp });\r\n\t\t\t\t\treturn false;\r\n\r\n\t\t\t\t} else if (temp.IsRequiredDate && temp.FromDate == undefined || temp.FromDate == \"\") {\r\n\t\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"From Date must be defined \");\r\n\t\t\t\t\ttemp.IsInvalidFromDate = true;\r\n\t\t\t\t\tthis.setState({ searchModel: temp });\r\n\t\t\t\t\treturn false;\r\n\r\n\t\t\t\t}\r\n\t\t\t\tif (temp.IsRequiredDate && (typeof temp.FromDate == \"object\" && typeof temp.ToDate == \"object\") && temp.ToDate < temp.FromDate) {\r\n\t\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"From Date cannot be bigger than To Date\");\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (temp.IsRequiredDate && (typeof temp.FromDate == \"object\" && typeof temp.ToDate == \"object\")) {\r\n\t\t\t\t\tvar interval = moment.duration(temp.ToDate.diff(temp.FromDate)).asDays();\r\n\t\t\t\t\tif (interval > 30) {\r\n\t\t\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Between two dates cannot be longer than 30 days!\");\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\ttemp.IsInvalidFromDate = false;\r\n\t\t\t\ttemp.IsInvalidToDate = false;\r\n\t\t\t\ttemp.StatementControl = true;\r\n\t\t\t\tthis.setState({ searchModel: temp });\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\tSendToWorkflow = id => {\r\n\t\tvar data = { Id: id };\r\n\t\tvar jsonData = JSON.stringify(data);\r\n\r\n\t\tvar requestData = {\r\n\t\t\tMenuCode: MenuCodes.CloseAccount,\r\n\t\t\tActionCode: ActionCodes.Submit,\r\n\t\t\tJsonData: jsonData,\r\n\t\t\tRowId: id\r\n\t\t};\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/coreapi/v1.0/WorkflowData/InsertWorkflowData\",\r\n\t\t\trequestData,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Request successfully sent for approval\");\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", \"An error occurred while sending approve request \" + errorMessage);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tGetGridButtonsRight = async () => {\r\n\t\tconst { MenuCode } = this.props;\r\n\t\tvar gridButtonRightDetail = await this.MenuAuthorityRightHelper.RightCheckList(MenuCode, [\"CLIACTDEAC\"]);\r\n\r\n\t\tthis.setState({ gridButtonRightDetail });\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\tClearData = () => {\r\n\r\n\t\tif (this.isBackoffice) //Settlement Acc Acvt\r\n\t\t{\r\n\t\t\tthis.setState({\r\n\t\t\t\tcustomerAccountList: [], alert: null, isLoading: false, checkedAccounts: [], searchModel: {\r\n\t\t\t\t\tIsRequiredDate: true,\r\n\t\t\t\t\tIsRequiredStatementPeriod: true,\r\n\r\n\t\t\t\t}, IsTxnDetailOpen: false, TxnDetail: {},\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tthis.setState({\r\n\t\t\talert: null, isLoading: false, checkedAccounts: [], searchModel: {\r\n\t\t\t\tIsRequiredDate: true,\r\n\t\t\t\tIsRequiredStatementPeriod: true,\r\n\t\t\t\tIsRequiredUniqueClientId: true,\r\n\r\n\t\t\t}, IsTxnDetailOpen: false, TxnDetail: {},\r\n\t\t});\r\n\t}\r\n\thandleChangeFilterPanel = panel => (event, expanded) => {\r\n\t\tthis.setState({\r\n\t\t\tactive: expanded ? panel : -1\r\n\t\t});\r\n\t};\r\n\r\n\tRenderStyle = () => {\r\n\t\treturn {\r\n\t\t\tcolumn: \"TransactionType\",\r\n\t\t\tcondition: \"Received\",\r\n\t\t\tstyle: { fontWeight: \"600\" },\r\n\t\t\tprefix: [\"+\", \"\"]\r\n\t\t};\r\n\t}\r\n\tBalanceRenderStyle = () => {\r\n\t\treturn {\r\n\t\t\tcolumn: \"TransactionType\",\r\n\t\t\tcondition: \"Received\",\r\n\t\t\tstyle: { fontWeight: \"600\" },\r\n\t\t\tprefix: [\"\", \"\"]\r\n\t\t};\r\n\t}\r\n\r\n\r\n\tHandleGetList = () => {\r\n\t\tthis.setState(state => ({ trxGridToken: !state.trxGridToken }));\r\n\t}\r\n\r\n\tExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.accessor != \"Actions\" && c.accessor != \"ED\" && (c.show == undefined || c.show)) {\r\n\t\t\t\ttrxColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: trxColumns, ExportSelectedColumns: trxColumns });\r\n\t}\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tif (!this.IsValid())\r\n\t\t\treturn;\r\n\r\n\t\tthis.ShowConfirmMessage(\"question\", \"Long Process Warning\", \"This process may take a while. Continue ?\", () => {\r\n\t\t\tthis.hideAlert();\r\n\t\t\tconst { searchModel, checkedAccounts } = this.state;\r\n\r\n\t\t\t// Add checkedAccounts\r\n\t\t\tif (checkedAccounts && checkedAccounts.length > 0) {\r\n\t\t\t\tsearchModel[\"AccountIds\"] = checkedAccounts.map(o => o.Id);\r\n\t\t\t\tcheckedAccounts.forEach(element => {\r\n\t\t\t\t\tif (element.SubAccountList != null) {\r\n\t\t\t\t\t\telement.SubAccountList.forEach(x => {\r\n\t\t\t\t\t\t\tsearchModel[\"AccountIds\"].push(x);\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}\r\n\r\n\t\t\t// Add jsonFile\r\n\t\t\tvar jsonColList = [];\r\n\r\n\t\t\tvar trxColumns = {};\r\n\t\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\t\ttrxColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t\t});\r\n\t\t\tjsonColList.push(trxColumns);\r\n\r\n\t\t\tvar mytitle = \"\";\r\n\t\t\tif (this.props.MenuCode == MenuCodes.ClientAccountActivities) { mytitle = \"Client Account Activities Report\"; }\r\n\t\t\telse { mytitle = \"My Accounts Report\"; }\r\n\r\n\t\t\tsearchModel[\"jsonFile\"] = {\r\n\t\t\t\tcolmns: jsonColList,\r\n\t\t\t\tformat: this.state.ExportReportType,\r\n\t\t\t\ttitle: mytitle\r\n\t\t\t};\r\n\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\t\"/bankapi/v1.0/Transaction/SearchAllAggregateTransactionGroupExport\",\r\n\t\t\t\tsearchModel,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terrorMessage => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t\t},\r\n\t\t\t\tthis.props.showMessage\r\n\t\t\t);\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { customerAccountList, checkedAccounts, searchModel, vModel, TxnDetail, IsTxnDetailOpen, alert, gridButtonRightDetail } = this.state;\r\n\r\n\t\tlet IsCallCenter = this.props.MenuCode === MenuCodes.ClientAccountActivities;\r\n\t\tlet IsBackOffice = this.props.MenuCode == MenuCodes.Backoffice_Accounts;\r\n\t\tvar endDate = (searchModel.FromDate instanceof moment) ? searchModel.FromDate.clone() : \"\";\r\n\r\n\t\tvar GridDataAccounts = customerAccountList == null ? [] : customerAccountList.map(d => {\r\n\t\t\treturn {\r\n\t\t\t\tAP: (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t c.Id == d.Id).length > 0}\r\n\t\t\t\t\t\t\tValueChanged={(e) => {\r\n\t\t\t\t\t\t\t\tthis.HandleCheckCustomerAccounts(e, d);\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tId: d.Id,\r\n\t\t\t\tProgramId: d.ProgramId,\r\n\t\t\t\tCustomerBankAccountId: d.CustomerBankAccountId,\r\n\t\t\t\tAccountShortName: d.AccountShortName,\r\n\t\t\t\tBankAccountId: d.BankAccountId,\r\n\t\t\t\tUniqueClientId: d.UniqueClientId,\r\n\t\t\t\tBalance: d.Balance,\r\n\t\t\t\tAccountName: d.AccountName,\r\n\t\t\t\tPendingBalance: d.PendingBalance,\r\n\t\t\t\tAccountNumber: d.AccountNumber,\r\n\t\t\t\tAccountNumberStr: d.AccountNumberStr,\r\n\t\t\t\tBranchNumber: d.BranchNumber,\r\n\t\t\t\tBankNumber: d.BankNumber,\r\n\t\t\t\tAccountTypeId: d.AccountTypeId,\r\n\t\t\t\tAccountType: d.AccountType,\r\n\t\t\t\tAccountType4: d.AccountType4,\r\n\t\t\t\tAccountType6: d.AccountType6,\r\n\t\t\t\tAccountCode: d.AccountCode,\r\n\t\t\t\tProgramCode: d.ProgramCode,\r\n\t\t\t\tProgramName: d.ProgramName,\r\n\t\t\t\tCurrencyCode: d.CurrencyCode,\r\n\t\t\t\tCurrencyDesc: d.CurrencyDesc,\r\n\t\t\t\tCurrencySymbol: d.CurrencySymbol,\r\n\t\t\t\tAmountDisplay: d.AmountDisplay,\r\n\t\t\t\tSubAccountList: d.SubAccountList\r\n\r\n\t\t\t};\r\n\t\t});\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t this.ClearData(), Disabled: Disabled },\r\n\t\t\t\t\t\t\t{ Code: \"Search\", OnClick: () => { this.HandleGetList(); this.GetCustomerBankAccounts(); }, Disabled: Disabled },\r\n\t\t\t\t\t\t\t{ Code: \"Export\", OnClick: () => this.ExportClick(), Disabled: Disabled }\r\n\r\n\t\t\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{(IsCallCenter || this.isBackoffice) &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tValue={searchModel.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChangeSearchModel}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tRequired={searchModel.IsRequiredUniqueClientId}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.UniqueClientId}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tCanClear />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Account Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"AccountName\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAll Accounts{\" \"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Account Type\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"AccountType\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{this.RenderAccountTypeParameter(row.original)}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tTotal{\" \"} {customerAccountList == null ? 0 : customerAccountList.length}{\" \"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Program Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ProgramName\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Account Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"AccountNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Currency\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"CurrencyCode\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Balance\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Balance\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{Formatter.FormatMoneySpecial(row.original.CurrencySymbol, row.value)}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// Footer: (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\t\t{Formatter.FormatMoney(customerAccountList.TotalAccountBalance)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// )\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Pending Balance\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"PendingBalance\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{Formatter.FormatMoneySpecial(row.original.CurrencySymbol, row.value)}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// Footer: (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\t{Formatter.FormatMoney(customerAccountList.TotalAccountBalance)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// )\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_Bank_Account} />\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\tconst temp = { ...this.state.searchModel };\r\n\t\t\t\t\t\t\t\t\t\t\t\tvar ids = [];\r\n\t\t\t\t\t\t\t\t\t\t\t\tthis.state.checkedAccounts.forEach(element => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tids.push(element.Id);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (element.SubAccountList != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\telement.SubAccountList.forEach(x => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tids.push(x);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t\t\ttemp.AccountIds = ids;\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn temp;\r\n\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\tRequestUrl=\"/bankapi/v1.0/Transaction/SearchAllAggregateTransactionGroupPaged\"\r\n\t\t\t\t\t\t\t\t\t\t\tRequestMethod=\"POST\"\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nMyAggregateTransactionGroupReport.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func\r\n};\r\n\r\n\r\nexport default MyAggregateTransactionGroupReport;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport { GenericLabel } from \"views/Components/Generic\";\r\nimport GenericIcon from \"views/Components/Generic/GenericIcon.jsx\";\r\n\r\n\r\nclass DownloadButton extends Component {\r\n\trender() {\r\n\t\tconst { name, title, onClick } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t onClick(name)}>\r\n\t\t\t\t\t\t\t\t\t\tfa-download\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nDownloadButton.propTypes = {\r\n\tname: PropTypes.number,\r\n\ttitle: PropTypes.string,\r\n\tonClick: PropTypes.func\r\n};\r\n\r\nexport default DownloadButton;","import { withStyles } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput } from \"views/Components/Generic\";\r\nimport { Proxy } from \"core\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport externalContainerStyle from \"assets/jss/material-dashboard-pro-react/layouts/externalContainerStyle.jsx\";\r\nimport { ParameterEmptyObject } from \"views/Constants/Constant.Parameter\";\r\nimport { SortedName, SortedParameterValue, SortedPropertyName } from \"views/Constants/Constant.Sorted\";\r\n\r\nclass SearchAccount extends React.Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Insert Date Time\",\r\n\t\t\t\taccessor: \"InsertDateTime\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"AccountId\",\r\n\t\t\t\taccessor: \"AccountId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Number\",\r\n\t\t\t\taccessor: \"AccountNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Name\",\r\n\t\t\t\taccessor: \"AccountName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Owner Name\",\r\n\t\t\t\taccessor: \"AccountOwnerName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Status\",\r\n\t\t\t\taccessor: \"AccountStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Balance\",\r\n\t\t\t\taccessor: \"AccountBalance\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Pending Balance\",\r\n\t\t\t\taccessor: \"PendingBalance\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Program Id\",\r\n\t\t\t\taccessor: \"ProgramId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Province\",\r\n\t\t\t\taccessor: \"Province\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Country\",\r\n\t\t\t\taccessor: \"Country\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"City\",\r\n\t\t\t\taccessor: \"City\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Insert User\",\r\n\t\t\t\taccessor: \"InsertUser\"\r\n\t\t\t}\r\n\t\t];\r\n\t\tthis.getappCenterTitle = \"Empty\";\r\n\t\tthis.getappLeftTitle = \"Empty\";\r\n\t\tthis.zIndex10 = { zIndex: 10 };\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\tdata: [],\r\n\t\t\trecordKeeping: [],\r\n\t\t\tisSendEmailDialogOpen: false,\r\n\t\t\tactiveClient: [],\r\n\t\t\tresponseDetail: {},\r\n\t\t\tisDetailDialogOpen: false\r\n\t\t};\r\n\t\tthis.cpverTable = React.createRef();\r\n\t}\r\n\r\n\tcomponentDidMount = () => {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"ACCOUNTS\");\r\n\t\t\tthis.getappCenterTitle = \"ACCOUNTS\";\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Account Search\");\r\n\t\t\tthis.getappLeftTitle = \"Account Search\";\r\n\t\t}\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, data: [], selected: null });\r\n\t}\r\n\r\n\tshowLoading = () => { this.setState({ isLoading: true }); }\r\n\thideLoading = () => { this.setState({ isLoading: false }); }\r\n\r\n\tshowDetail = async (result) => {\r\n\t\tthis.setState({ responseDetail: result || [], isDetailDialogOpen: true });\r\n\t\tconsole.log(result);\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tif(!this.validate()){\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tconst model = { ...this.state.model };\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Account/SearchAccount\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ data: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\thandleChange = (name, newValue) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\tGetRenderItemClient = (x) => {\r\n\t\tvar render = `${x.Name} - ${x.UniqueClientId}`;\r\n\r\n\t\treturn render;\r\n\t}\r\n\r\n\tValueChanged = (name, value, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tvalidate = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (model.UniqueClientId == null || model.UniqueClientId == 0) {\r\n\t\t\tthis.props.showMessageNode(\"warning\", \"Please Select Client!\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, selected, isLoading, data } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nSearchAccount.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tExecuteApiFileDownloadWithGenericResponse: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default withStyles(externalContainerStyle)(SearchAccount);","import { DialogContent, DialogTitle, Slide } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport AccountLimitToolbar from \"views/Components/AccountLimitToolbar\";\r\nimport AddNewPayee from \"views/Components/AddNewPayee\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericCheckInput, GenericDateInput, GenericDialog, GenericDialogActions, GenericEmailInput, GenericExpansionPanel, GenericLabel, GenericNumberInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport { ProgramCodes, TransactionType, EtransferTransactionTypes, MenuCodes } from \"views/Constants/Constant.js\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\n\r\nfunction Transition(props) {\r\n\treturn ;\r\n}\r\n\r\nconst ClientParamObj = {\r\n\tProgramCode: ProgramCodes.Bank_Programs_Bank_Account,\r\n\tUniqueClientId: undefined\r\n};\r\n\r\nclass EtransferFromAccount extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.defaultModel = {\r\n\t\t\tDateOfFunds: DateHelper.GetLocalDateTimeAsUtc(),\r\n\t\t\tMoneyRequestExpiryDate: null,\r\n\t\t\tUniqueClientId: ClientHelper.GetClientRowId(),\r\n\t\t};\r\n\t\tthis.getappCenterTitle = \"Empty\";\r\n\t\tthis.getappLeftTitle = \"Empty\";\r\n\t\tthis.state = {\r\n\t\t\tmodel: { ...this.defaultModel },\r\n\t\t\tIsUpdate: false,\r\n\t\t\tvModel: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tisConfirmDialogOpen: false,\r\n\t\t\thasChangedPayee: false,\r\n\t\t\treloadData: false,\r\n\t\t\tIsPayeePopUpOpen: false,\r\n\t\t\tInteracCustomerGetTransferOptions: false,\r\n\t\t\tmaxExpireDate: 30,\r\n\t\t\tLimitToken: false,\r\n\t\t\tisLOSMenuActive: false,\r\n\t\t};\r\n\r\n\t\tthis.maxLength400 = { maxLength: 400 };\r\n\t}\r\n\r\n\r\n\tRenderClientSelect(d) {\r\n\t\treturn `${d.Name} - ${d.IBAN}`;\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\t//this.props.hideSidebar();\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\t\tthis.setState({ IsClient });\r\n\t\tthis.GetMaxExpireDate();\r\n\t\tif (this.props.MenuCode == MenuCodes.Menu_LmsETransfer) {\r\n\t\t\tthis.props.setAppLeftTitle(\"e-Transfer\");this.getappLeftTitle = \"e-Transfer\";\r\n\t\t\tthis.props.setAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");this.getappCenterTitle = \"LOAN MANAGEMENT SYSTEM\";\r\n\t\t\tthis.GetTransactionTypeCreditId();\r\n\t\t\tthis.setState({ isLOSMenuActive: true });\r\n\t\t\tvar AccountId = RouteHelper.ReadAndClear(\"ETransferLos_AccountId\");\r\n\t\t\tif (AccountId > 0) this.GetEtransferForLosInfo(AccountId);\r\n\t\t} else {\r\n\t\t\tthis.props.setAppLeftTitle(\"e-Transfer\");this.getappLeftTitle = \"e-Transfer\";\r\n\t\t\tthis.props.setAppCenterTitle(\"BANKING\");this.getappCenterTitle = \"BANKING\";\r\n\t\t\tvar Id = RouteHelper.ReadAndClear(\"CreateEtransfer_Id\");\r\n\t\t\tif (Id) {\r\n\t\t\t\tthis.setState({ isLoading: true });\r\n\t\t\t\tProxy.POST(\"/bankapi/v1.0/BankInteracETransfer/GetByIdRequest\",\r\n\t\t\t\t\t{ Item: Id },\r\n\t\t\t\t\tresponseData => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while fetching data\", responseData.ErrorDescription);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tvar etransferData = responseData.Item;\r\n\t\t\t\t\t\tvar data = etransferData.Transaction;\r\n\r\n\t\t\t\t\t\tthis.setState(function (state) {\r\n\t\t\t\t\t\t\tvar model = state.model || {};\r\n\t\t\t\t\t\t\tvar { reloadData, hasChangedPayee } = this.state;\r\n\t\t\t\t\t\t\tmodel.UniqueClientId = data.UniqueClientId;\r\n\r\n\t\t\t\t\t\t\tmodel.Id = data.Id;\r\n\t\t\t\t\t\t\tmodel.SourceAccountId = etransferData.SourceAccountId;\r\n\t\t\t\t\t\t\tmodel.PayeeId = etransferData.PayeeId;\r\n\t\t\t\t\t\t\tmodel.ReceiverMail = etransferData.PayeeEmail;\r\n\t\t\t\t\t\t\tmodel.Description = etransferData.Memo;\r\n\t\t\t\t\t\t\tmodel.TransactionType = data.TransactionTypeId;\r\n\t\t\t\t\t\t\tmodel.TransactionAmount = data.TransactionAmount;\r\n\t\t\t\t\t\t\tmodel.DateOfFunds = data.TransactionDate ? DateHelper.GetLocalDateTimeAsUtc() : null;\r\n\t\t\t\t\t\t\tmodel.MoneyRequestExpiryDate = etransferData.MoneyRequestExpiryDate ? DateHelper.GetLocalDateTimeAsUtc() : null;\r\n\t\t\t\t\t\t\tmodel.SecurityQuestionId = etransferData.SecurityQuestionId;\r\n\t\t\t\t\t\t\tmodel.IsHaveQuestion = etransferData.SecurityQuestionId != null && etransferData.SecurityQuestionId > 0;\r\n\t\t\t\t\t\t\tmodel.SecurityQuestionText = etransferData.SecurityQuestion;\r\n\t\t\t\t\t\t\tmodel.SecurityQuestionAnswer = etransferData.SecurityQuestionAnswer;\r\n\t\t\t\t\t\t\tmodel.ReceiverName = etransferData.PayeeName;\r\n\t\t\t\t\t\t\tmodel.TransactionTypeId = data.TransactionTypeId;\r\n\t\t\t\t\t\t\tmodel.TransactionTypeStr = data.TransactionType ? data.TransactionType.ParameterValue : \"\";\r\n\t\t\t\t\t\t\tmodel.NotificationTypeId = etransferData.NotificationTypeId;\r\n\t\t\t\t\t\t\tmodel.NotificationType = etransferData.NotificationType;\r\n\t\t\t\t\t\t\tmodel.ServiceType = etransferData.NotificationType != null ? etransferData.NotificationType.ParameterValue3 : \"0\";\r\n\t\t\t\t\t\t\tmodel.PhoneNumber = etransferData.Payee != null ? etransferData.Payee.Phone != null ? etransferData.Payee.Phone.PhoneNumber : \"\" : \"\";\r\n\r\n\t\t\t\t\t\t\treturn { model, IsUpdate: true, reloadData: !reloadData, hasChangedPayee: !hasChangedPayee };\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\tthis.FetchInteracGetTransferOptions(etransferData.PayeeEmail, etransferData.Payee != null ? etransferData.Payee.Phone != null ? etransferData.Payee.Phone.PhoneNumber : \"\" : \"\", etransferData.NotificationType != null ? etransferData.NotificationType.ParameterValue3 : \"0\");\r\n\t\t\t\t\t},\r\n\t\t\t\t\terrorMessage => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while fetching data\", errorMessage);\r\n\t\t\t\t\t}\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\tGetEtransferForLosInfo = (AccountId) => {\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tProxy.POST(\"/bankapi/v1.0/BankInteracETransfer/GetEtransferForLosAccountInfo\",\r\n\t\t\tAccountId,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false, isIndividualDialogOpen: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", \"\" + responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState(function (state, props) {\r\n\t\t\t\t\tvar model = state.model || {};\r\n\t\t\t\t\tvar responseModel = responseData.Item || {};\r\n\t\t\t\t\tmodel.SourceAccountId = AccountId;\r\n\t\t\t\t\tmodel.TransactionAmount = responseModel.AccountBalance;\r\n\t\t\t\t\tmodel.ClientCustomerId = responseModel.ClientCustomerId;\r\n\t\t\t\t\tmodel.LosDisabled = true;\r\n\t\t\t\t\tvar defaultModel = this.defaultModel;\r\n\t\t\t\t\tdefaultModel.SourceAccountId = AccountId;\r\n\t\t\t\t\tdefaultModel.TransactionAmount = responseModel.AccountBalance;\r\n\t\t\t\t\tdefaultModel.ClientCustomerId = responseModel.ClientCustomerId;\r\n\t\t\t\t\tdefaultModel.LosDisabled = true;\r\n\t\t\t\t\treturn { model };\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\te => {\r\n\t\t\t\tthis.setState({ isLoading: false, isIndividualDialogOpen: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", \"An error occurred while inserting data \");\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tGetTransactionTypeCreditId = () => {\r\n\t\tProxy.GET(\"/bankapi/v1.0/Transaction/GetAllFinancialTransactionType\",\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item.length != null && responseData.Item.length > 0) {\r\n\t\t\t\t\tvar defaultModel = this.defaultModel;\r\n\t\t\t\t\tvar { model } = this.state;\r\n\t\t\t\t\tvar txnType = responseData.Item.find(x => x.ParameterValue == EtransferTransactionTypes.Credit) || {};\r\n\t\t\t\t\tdefaultModel.TransactionTypeId = txnType.Id || 0;\r\n\t\t\t\t\tdefaultModel.TransactionTypeStr = EtransferTransactionTypes.Credit;\r\n\t\t\t\t\tmodel.TransactionTypeId = defaultModel.TransactionTypeId;\r\n\t\t\t\t\tmodel.TransactionTypeStr = defaultModel.TransactionTypeStr;\r\n\t\t\t\t\tthis.setState({ model });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\te => {\r\n\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tPerformTransaction = () => {\r\n\t\tvar ErrorList = [];\r\n\t\tconst { model, vModel, isLOSMenuActive } = this.state;\r\n\r\n\t\tvModel.PayeeId = model.PayeeId == null || model.PayeeId == \"\" || (!model.PayeeId > 0);\r\n\t\tif (vModel.PayeeId)\r\n\t\t\tErrorList.push(\"Contact Name must be defined!\");\r\n\t\tvModel.ReceiverName = model.ReceiverName == null || model.ReceiverName == \"\";\r\n\t\tif (vModel.ReceiverName)\r\n\t\t\tErrorList.push(\"Contact Email must be defined!\");\r\n\t\tif (isLOSMenuActive) {\r\n\t\t\tvModel.SourceAccountId = model.SourceAccountId == null || (!model.SourceAccountId > 0);\r\n\t\t\tif (vModel.SourceAccountId)\r\n\t\t\t\tErrorList.push(\"Account must be defined!\");\r\n\t\t\tvModel.ClientCustomerId = model.ClientCustomerId == null || (!model.ClientCustomerId > 0);\r\n\t\t\tif (vModel.ClientCustomerId)\r\n\t\t\t\tErrorList.push(\"Customer must be defined!\");\r\n\t\t} else {\r\n\t\t\tvModel.SourceAccountId = model.SourceAccountId == null || (!model.SourceAccountId > 0);\r\n\t\t\tif (vModel.SourceAccountId)\r\n\t\t\t\tErrorList.push(\"From Account must be defined!\");\r\n\t\t}\r\n\r\n\t\tvModel.TransactionAmount = model.TransactionAmount == null || model.TransactionAmount == 0 || model.TransactionAmount <= 0;\r\n\t\tif (vModel.TransactionAmount)\r\n\t\t\tErrorList.push(\"Amount must be defined!\");\r\n\t\tvModel.DateOfFunds = model.DateOfFunds == null || model.DateOfFunds == \"\";\r\n\t\tif (vModel.DateOfFunds)\r\n\t\t\tErrorList.push(\"Date Funds must be defined!\");\r\n\t\tvModel.NotificationTypeId = model.NotificationTypeId == null || model.NotificationTypeId == \"\" || model.NotificationTypeId == 0;\r\n\t\tif (vModel.NotificationTypeId)\r\n\t\t\tErrorList.push(\"Notification must be defined!\");\r\n\r\n\t\tif (!model || !model.DateOfFunds)\r\n\t\t\tErrorList.push(\"Date Funds cannot be null!\");\r\n\r\n\t\telse if (typeof model.DateOfFunds != \"object\") {\r\n\t\t\tErrorList.push(\"Date Funds is invalid!\");\r\n\t\t}\r\n\r\n\t\tif (vModel.ddrEmail)\r\n\t\t\tErrorList.push(\"Contact contact email cannot be null !\");\r\n\r\n\t\tif (vModel.ddrPhone)\r\n\t\t\tErrorList.push(\"Contact contact phone number cannot be null !\");\r\n\r\n\r\n\t\tvModel.MoneyRequestExpiryDate = model.MoneyRequestExpiryDate == null || model.MoneyRequestExpiryDate == \"\";\r\n\t\tif (vModel.MoneyRequestExpiryDate)\r\n\t\t\tErrorList.push(\"Transaction Exp. Date must be defined!\");\r\n\r\n\t\tif (!model || !model.MoneyRequestExpiryDate)\r\n\t\t\tErrorList.push(\"Transaction Exp. Date cannot be null!\");\r\n\r\n\t\telse if (typeof model.MoneyRequestExpiryDate != \"object\") {\r\n\t\t\tErrorList.push(\"Transaction Exp. Date is invalid\");\r\n\t\t}\r\n\r\n\r\n\t\tvModel.TransactionTypeId = model.TransactionTypeId == null || model.TransactionTypeId == \"\" || model.TransactionTypeId <= 0;\r\n\t\tif (vModel.TransactionTypeId)\r\n\t\t\tErrorList.push(\"Transaction Type must be defined!\");\r\n\r\n\t\tif (model.TransactionTypeStr == TransactionType.Credit && this.state.InteracCustomerGetTransferOptions == false) {\r\n\t\t\tif (model.IsHaveQuestion && model.IsHaveQuestion == true) {\r\n\t\t\t\tvModel.SecurityQuestionId = model.SecurityQuestionId == null || model.SecurityQuestionId == \"\" || model.SecurityQuestionId <= 0;\r\n\t\t\t\tif (vModel.SecurityQuestion) ErrorList.push(\"Security Question is not selected.\");\r\n\t\t\t\telse {\r\n\t\t\t\t\tvModel.SecurityQuestionAnswer = model.SecurityQuestionAnswer == null || model.SecurityQuestionAnswer == \"\";\r\n\t\t\t\t\tif (vModel.SecurityQuestionAnswer) ErrorList.push(\"Security Question Answer cannot be null.\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tvModel.SecurityQuestionText = model.SecurityQuestionText == null || model.SecurityQuestionText == \"\";\r\n\t\t\t\tif (vModel.SecurityQuestionText) ErrorList.push(\"Security Question is not defined.\");\r\n\t\t\t\telse {\r\n\t\t\t\t\tvModel.SecurityQuestionAnswer = model.SecurityQuestionAnswer == null || model.SecurityQuestionAnswer == \"\";\r\n\t\t\t\t\tif (vModel.SecurityQuestionAnswer) ErrorList.push(\"Security Question Answer cannot be null.\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.setState({ vModel });\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", ErrorList.slice(0, 10).map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tSubmit = (workflowId, after) => {\r\n\t\tif (!this.PerformTransaction())\r\n\t\t\treturn;\r\n\t\tthis.setState({ isConfirmDialogOpen: true, workflowId, after });\r\n\t}\r\n\r\n\tUpdate = (workflowId, after) => {\r\n\t\tif (!this.PerformTransaction())\r\n\t\t\treturn;\r\n\t\tthis.setState({ isConfirmDialogOpen: true, workflowId, after });\r\n\t}\r\n\r\n\tFetchInteracGetTransferOptions = (eMail, phoneNumber, serviceType) => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tvar request = {};\r\n\t\tvar { model, vModel } = this.state;\r\n\r\n\t\tif (serviceType == 0) {\r\n\t\t\tvModel.ddrPhone = false;\r\n\t\t\tif (eMail == null || eMail == \"\") {\r\n\t\t\t\tvModel.ddrEmail = true;\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", \"Contact Email cannot be null !\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tvModel.ddrEmail = false;\r\n\t\t\t}\r\n\t\t\tthis.setState({ vModel });\r\n\t\t}\r\n\r\n\t\tif (serviceType == 1) {\r\n\t\t\tvModel.ddrEmail = false;\r\n\t\t\tif (phoneNumber == null || phoneNumber == \"\") {\r\n\t\t\t\tvModel.ddrPhone = true;\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", \"Contact Phone Number cannot be null !\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tvModel.ddrPhone = false;\r\n\t\t\t}\r\n\t\t\tthis.setState({ vModel });\r\n\t\t}\r\n\t\trequest.UniqueClientId = model.UniqueClientId;\r\n\t\trequest.DirectDepositHandle = serviceType == 0 ? eMail : phoneNumber;\r\n\t\trequest.ServiceType = serviceType;\r\n\t\tProxy.POST(\"/bankapi/v1.0/BankInteracETransfer/GetTransferOptions\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", \"An error occurred while interac request \" + responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tmodel.HasDdr = responseData.Item;\r\n\t\t\t\tthis.setState({ model, InteracCustomerGetTransferOptions: responseData.Item });\r\n\t\t\t},\r\n\t\t\te => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", \"An error occurred while interac request \");\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tGetMaxExpireDate = () => {\r\n\t\tProxy.POST(\"/coreapi/v1.0/Parameter/Search\",\r\n\t\t\t{\r\n\t\t\t\tParameterCode: \"InteracEtransferExpireDate\",\r\n\t\t\t\tParameterValue: \"MX\"\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", \"An error occurred while request \" + responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item.length != null && responseData.Item.length > 0) {\r\n\t\t\t\t\tthis.setState({ maxExpireDate: responseData.Item[0].ParameterValue2 });\r\n\t\t\t\t\tvar defaultModel = this.defaultModel;\r\n\t\t\t\t\tvar { model } = this.state;\r\n\t\t\t\t\tdefaultModel.MoneyRequestExpiryDate = DateHelper.GetDateLocal().add((responseData.Item[0].ParameterValue2 || 30) - 1, 'd');\r\n\t\t\t\t\tmodel.MoneyRequestExpiryDate = defaultModel.MoneyRequestExpiryDate;\r\n\t\t\t\t\tthis.setState({ model });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\te => {\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", \"An error occurred while inserting data \");\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tSendTransaction = () => {\r\n\t\t// InsertETransferFromAccountOp\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tvar { model, workflowId, after } = this.state;\r\n\t\tif (this.state.isLOSMenuActive) model.IsClientcustomerTxn = true;\r\n\r\n\t\tProxy.POST(\"/bankapi/v1.0/BankInteracETransfer/InsertETransferFromAccount\",\r\n\t\t\tmodel,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false, isIndividualDialogOpen: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", \"\" + responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (after) after();\r\n\t\t\t\tthis.RefreshToolBar();\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"e-Transfer Transaction Entry Successfully Saved !\");\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tmodel: { ...this.defaultModel },\r\n\t\t\t\t\tEmailValid: false,\r\n\t\t\t\t\tisConfirmDialogOpen: false,\r\n\t\t\t\t\tisLoading: false,\r\n\t\t\t\t\tIsUpdate: false\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\te => {\r\n\t\t\t\tthis.setState({ isLoading: false, isIndividualDialogOpen: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", \"An error occurred while inserting data \");\r\n\t\t\t},\r\n\t\t\tworkflowId\r\n\t\t);\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.model || {};\r\n\r\n\t\t\tmodel[name] = newValue;\r\n\r\n\t\t\tif (name == \"PayeeId\" && data != null) {\r\n\t\t\t\tmodel.ReceiverName = data ? data.AliasName : \"\";\r\n\t\t\t\tmodel.ReceiverMail = data ? data.Email : \"\";\r\n\t\t\t\tmodel.PhoneNumber = data ? data.Phone != null ? data.Phone.PhoneNumber : \"\" : \"\";\r\n\t\t\t\tif (model.PayeeId != null && model.TransactionTypeStr == EtransferTransactionTypes.Credit && model.NotificationTypeId != null && model.NotificationTypeId != 0)\r\n\t\t\t\t\tthis.FetchInteracGetTransferOptions(model.ReceiverMail, model.PhoneNumber, model.ServiceType);\r\n\t\t\t}\r\n\t\t\tif (name == \"IsHaveQuestion\") {\r\n\t\t\t\tif (newValue == true)\r\n\t\t\t\t\tmodel.SecurityQuestionText = \"\";\r\n\t\t\t\telse\r\n\t\t\t\t\tmodel.SecurityQuestionId = 0;\r\n\t\t\t}\r\n\t\t\tif (name == \"SecurityQuestionAnswer\") {\r\n\t\t\t\tmodel[name] = newValue.replace(/\\s/g, \"\");\r\n\t\t\t}\r\n\t\t\tif (name == \"TransactionTypeId\" && data != null) {\r\n\t\t\t\tmodel.TransactionTypeStr = data.ParameterValue;\r\n\t\t\t\tif (model.TransactionTypeStr == TransactionType.Debit) {\r\n\t\t\t\t\tif (model.SecurityQuestionAnswer != null)\r\n\t\t\t\t\t\tmodel.SecurityQuestionAnswer = null;\r\n\t\t\t\t\tif (model.SecurityQuestionText != null)\r\n\t\t\t\t\t\tmodel.SecurityQuestionText = null;\r\n\t\t\t\t\tif (model.SecurityQuestionId != null)\r\n\t\t\t\t\t\tmodel.SecurityQuestionId = null;\r\n\t\t\t\t}\r\n\t\t\t\tif (model.PayeeId != null && model.TransactionTypeStr == EtransferTransactionTypes.Credit && model.NotificationTypeId != null && model.NotificationTypeId != 0)\r\n\t\t\t\t\tthis.FetchInteracGetTransferOptions(model.ReceiverMail, model.PhoneNumber, model.ServiceType);\r\n\t\t\t}\r\n\r\n\t\t\tif (name == \"NotificationTypeId\" && data != null) {\r\n\t\t\t\tmodel.ServiceType = data.ParameterValue3;\r\n\r\n\t\t\t\tif (model.PayeeId != null && model.TransactionTypeStr == EtransferTransactionTypes.Credit && model.NotificationTypeId != null && model.NotificationTypeId != 0)\r\n\t\t\t\t\tthis.FetchInteracGetTransferOptions(model.ReceiverMail, model.PhoneNumber, model.ServiceType);\r\n\t\t\t}\r\n\t\t\treturn { model: model };\r\n\t\t});\r\n\t}\r\n\tAddNewPayee = (payee) => {\r\n\t\tlet { hasChangedPayee } = this.state;\r\n\t\tif (payee != null && payee.IsRecordValid) {\r\n\t\t\tthis.handleChange(\"PayeeId\", payee.Id, payee);\r\n\t\t} else {\r\n\t\t\tthis.handleChange(\"PayeeId\", -1, null);\r\n\t\t}\r\n\t\tthis.setState({ hasChangedPayee: !hasChangedPayee });\r\n\t}\r\n\r\n\tPayeePopUpCallback = () => { this.setState({ IsPayeePopUpOpen: !this.state.IsPayeePopUpOpen }); }\r\n\r\n\tShowMessage(type, title, message) {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\tClearData = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t\tmodel: { ...this.defaultModel },\r\n\t\t\tisConfirmDialogOpen: false,\r\n\t\t\tIsUpdate: false\r\n\t\t});\r\n\t}\r\n\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t\tisConfirmDialogOpen: false\r\n\t\t});\r\n\t}\r\n\r\n\tGetClientParamObj() {\r\n\t\tClientParamObj.ProgramCode = ProgramCodes.Bank_Programs_Bank_Account;\r\n\r\n\t\tClientParamObj.UniqueClientId = ClientHelper.GetClientRowId() != null ? ClientHelper.GetClientRowId() : 0;\r\n\r\n\t\treturn ClientParamObj;\r\n\t}\r\n\tRefreshToolBar() {\r\n\t\tthis.setState({ LimitToken: !this.state.LimitToken });\r\n\t}\r\n\tGetModel = () => {\r\n\t\tconst { model } = this.state;\r\n\t\treturn model;\r\n\t}\r\n\r\n\tFillData = (model) => {\r\n\t\tvar tempModel = model;\r\n\t\ttempModel.DateOfFunds = DateHelper.GetLocalDateTimeAsUtc();\r\n\t\tthis.setState({ model: tempModel, reloadData: !this.state.reloadData, hasChangedPayee: !this.state.hasChangedPayee });\r\n\t}\r\n\r\n\tGetModelId = () => {\r\n\t\tconst { model } = this.state;\r\n\t\treturn model.Id ?? 0;\r\n\t}\r\n\tRenderItemClientCustomer = (d) => {\r\n\t\treturn `${d.ClientCustomerNumber} - ${d.Name}`;\r\n\t}\r\n\trender() {\r\n\t\tconst { model, IsPayeePopUpOpen, maxExpireDate, vModel, LimitToken, IsUpdate, IsClient, isLOSMenuActive } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\t\t\t\t{(IsClient && !isLOSMenuActive) && }\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t this.ClearData(), Disabled: Disabled },\r\n\t\t\t\t\t{ Code: \"Submit\", OnClick: () => this.Submit(), Disabled: Disabled || IsUpdate, ModelFunction: this.GetModel, FillDataFromModel: this.FillData, RowId: this.GetModelId(), ValidationFunction: this.PerformTransaction },\r\n\t\t\t\t\t{ Code: \"Update\", OnClick: () => this.Update(), Disabled: Disabled || !IsUpdate, ModelFunction: this.GetModel, FillDataFromModel: this.FillData, RowId: this.GetModelId(), ValidationFunction: this.PerformTransaction }\r\n\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t{!isLOSMenuActive &&\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t{isLOSMenuActive &&\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\r\n\r\n\t\t\t\t{(!isLOSMenuActive || (isLOSMenuActive && model.ClientCustomerId > 0)) &&\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t{model.ServiceType == 0 &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t{model.ServiceType == 1 &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t{(model.TransactionTypeStr == TransactionType.Credit && this.state.InteracCustomerGetTransferOptions == false) && (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\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t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nEtransferFromAccount.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func\r\n};\r\n\r\nexport default withArtifex(EtransferFromAccount, {});","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericLabel, GenericNumberInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nclass TransferToLinkedAccount extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tcustomerAccountProfile: {},\r\n\t\t\tmodel: {},\r\n\t\t\treadOnlyData: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tisConfirmDialogOpen: false,\r\n\t\t\treloadData: false\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\t//this.props.hideSidebar();\r\n\t\tthis.props.setAppLeftTitle(\"Transfer to Linked Account\");\r\n\t\tthis.props.setAppCenterTitle(\"BANKING\");\r\n\t}\r\n\r\n\tPerformTransaction = () => {\r\n\t\tvar model = { ...this.state.model };\r\n\t\tvar ErrorList = [];\r\n\r\n\t\t\r\n\t\tif (model.DestName == null || model.DestName == \"\") {\r\n\t\t\tErrorList.push(\"Receiver name must be defined !\");\r\n\t\t}\r\n\t\tif (model.TransactionAmount == null || model.TransactionAmount == 0 || model.TransactionAmount < 0) {\r\n\t\t\tErrorList.push(\"Transaction Amount must be defined !\");\r\n\t\t}\r\n\t\tif (model.TransactionDate == null) {\r\n\t\t\tErrorList.push(\"Transaction Date must be defined !\");\r\n\t\t}\r\n\r\n\r\n\t\tif (model.SourceAccountId == null || model.SourceAccountId == \"\") {\r\n\t\t\tErrorList.push(\"Source account must be selected !\");\r\n\t\t}\r\n\t\tif (model.DestinationAccountId == null || model.DestinationAccountId == \"\") {\r\n\t\t\tErrorList.push(\"Destination account must be selected !\");\r\n\t\t}\r\n\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", ErrorList.slice(0, 10).map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tthis.setState({ isConfirmDialogOpen: true });\r\n\t}\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tSendTransaction = () => {\r\n\t\t//CreateEftForBankAccountPortalOp class\r\n\t\tvar request = { ...this.state.model };\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/bankapi/v1.0/BankBmoEFT/CreateEftFromAccountToFlinks\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false, isConfirmDialogOpen: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", \"An error occurred while inserting data\" + responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"EFT Transaction Entry successfully saved !\");\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tmodel: {},\r\n\t\t\t\t\tisConfirmDialogOpen: false,\r\n\t\t\t\t\tisLoading: false,\r\n\t\t\t\t\treadOnlyData: {},\r\n\t\t\t\t\treloadData: !this.state.reloadData\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\te => {\r\n\t\t\t\tthis.setState({ isConfirmDialogOpen: false, isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", \"An error occurred while inserting data \");\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.model || {};\r\n\t\t\tvar temp = state.readOnlyData || {};\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\tif (name == \"SourceAccountId\" && data != null) {\r\n\t\t\t\ttemp.SourceBalance = data.Balance;\r\n\t\t\t\ttemp.SourceName = data.AccountName;\r\n\t\t\t\ttemp.SourceType = data.AccountType;\r\n\t\t\t\ttemp.SourceAccountNumber = data.AccountNumber;\r\n\t\t\t}\r\n\t\t\tif (name == \"DestinationAccountId\" && data != null) {\r\n\t\t\t\ttemp.DestinationBalance = data.CurrentBalance;\r\n\t\t\t\ttemp.DestinationName = data.Title;\r\n\t\t\t\ttemp.DestinationType = data.AccountType;\r\n\t\t\t\tmodel.DisplayName = data.DisplayName;\r\n\t\t\t\ttemp.DestAccountNumber = data.AccountNumber;\r\n\t\t\t\ttemp.DestInstitutionNumber = data.InstitutionNumber;\r\n\t\t\t\ttemp.DestTransitNumber = data.TransitNumber;\r\n\t\t\t\tmodel.DestAccountNumber = data.AccountNumber;\t\t\t\t\r\n\t\t\t\tmodel.DestTitle = data.Title;\r\n\t\t\t\tmodel.DestName = data.Name;\r\n\t\t\t\tmodel.DestBalance = data.CurrentBalance;\r\n\t\t\t}\r\n\t\t\treturn { model: model, readOnlyData: temp };\r\n\t\t});\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tClearData = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t\tmodel: {},\r\n\t\t\tisConfirmDialogOpen: false\r\n\t\t});\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t\tisConfirmDialogOpen: false\r\n\t\t});\r\n\t}\r\n\r\n\tRenderItemSelect(d) {\r\n\t\treturn d.Name + \" - \" + d.AccountNumber;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, readOnlyData } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\r\n\r\n\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\r\n\t\t\t\t this.ClearData(), Disabled: Disabled },\r\n\t\t\t\t\t{ Code: \"Submit\", OnClick: () => this.PerformTransaction(), Disabled: Disabled }\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{readOnlyData.SourceName != null && (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t

Balance : {Formatter.FormatMoney(readOnlyData.SourceBalance)}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t

Account Name : {readOnlyData.SourceName}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t

Account Number : {readOnlyData.SourceAccountNumber}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{readOnlyData.DestinationName != null && (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t

Balance : {Formatter.FormatMoney(readOnlyData.DestinationBalance)}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t

Account Name : {readOnlyData.DestinationName}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t

Account Number : {`${readOnlyData.DestInstitutionNumber || \"\"} - ${readOnlyData.DestTransitNumber || \"\" } - ${readOnlyData.DestAccountNumber || \"\" }`}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\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t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nTransferToLinkedAccount.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func\r\n};\r\n\r\nexport default withArtifex(TransferToLinkedAccount, {});","import withStyles from \"@material-ui/core/styles/withStyles\";\r\nimport customCheckboxRadioSwitch from \"assets/jss/material-dashboard-pro-react/customCheckboxRadioSwitch.jsx\";\r\nimport customSelectStyle from \"assets/jss/material-dashboard-pro-react/customSelectStyle.jsx\";\r\nimport sweetAlertStyle from \"assets/jss/material-dashboard-pro-react/views/sweetAlertStyle.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport { GenericNumberInput, GenericSelectInput } from \"views/Components/Generic\";\r\n\r\n\r\nconst styles = ({\r\n\t...customCheckboxRadioSwitch,\r\n\t...customSelectStyle,\r\n\t...sweetAlertStyle\r\n});\r\n\r\nclass DDTCDICSettlementAccount extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t};\r\n\r\n\t}\r\n\r\n\r\n\trender() {\r\n\t\tconst { propDDTModel, propCDICModel } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
Internal {window.Title} Account
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nDDTCDICSettlementAccount.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tpropDDTModel: PropTypes.object,\r\n\tpropCDICModel: PropTypes.object\r\n};\r\nexport default withStyles(styles)(DDTCDICSettlementAccount);","import withStyles from \"@material-ui/core/styles/withStyles\";\r\nimport customCheckboxRadioSwitch from \"assets/jss/material-dashboard-pro-react/customCheckboxRadioSwitch.jsx\";\r\nimport customSelectStyle from \"assets/jss/material-dashboard-pro-react/customSelectStyle.jsx\";\r\nimport sweetAlertStyle from \"assets/jss/material-dashboard-pro-react/views/sweetAlertStyle.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport { GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\n\r\n\r\nconst styles = ({\r\n\t...customCheckboxRadioSwitch,\r\n\t...customSelectStyle,\r\n\t...sweetAlertStyle\r\n});\r\n\r\nclass EFTSettlementAccount extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\r\n\t}\r\n\r\n\r\n\trender() {\r\n\t\tconst { eftModel } = this.props;\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nEFTSettlementAccount.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\teftModel: PropTypes.object\r\n};\r\nexport default withStyles(styles)(EFTSettlementAccount);","import withStyles from \"@material-ui/core/styles/withStyles\";\r\nimport customCheckboxRadioSwitch from \"assets/jss/material-dashboard-pro-react/customCheckboxRadioSwitch.jsx\";\r\nimport customSelectStyle from \"assets/jss/material-dashboard-pro-react/customSelectStyle.jsx\";\r\nimport sweetAlertStyle from \"assets/jss/material-dashboard-pro-react/views/sweetAlertStyle.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport { GenericNumberInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\n\r\n\r\nconst styles = ({\r\n\t...customCheckboxRadioSwitch,\r\n\t...customSelectStyle,\r\n\t...sweetAlertStyle\r\n});\r\n\r\nclass ETransferSettlementAccount extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\r\n\t}\r\n\trender() {\r\n\t\tconst { eTransferModel } = this.props;\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
eTransfer Settlement Account
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nETransferSettlementAccount.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\teTransferModel: PropTypes.object\r\n};\r\nexport default withStyles(styles)(ETransferSettlementAccount);","import GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport { GenericAlert } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { ProgramCodes } from \"views/Constants/Constant.js\";\r\nimport CorporateAccount from \"./CorporateAccount\";\r\nimport CustomerContact from \"./CustomerContact\";\r\nimport ETransferInformation from \"./ETransferInformation\";\r\nimport MyProfileAccounts from \"./MyProfileAccounts\";\r\nimport PersonalAccount from \"./PersonalAccount\"; \r\nimport MyProfileAddresses from \"./MyProfileAddresses\";\r\nclass Profile extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\tcustomerAccountProfile: {},\r\n\t\t\tpersonalModel: {},\r\n\t\t\tcorporateModel: {},\r\n\t\t\taccounts: [],\r\n\t\t\tIsCustomer: 0,\r\n\t\t\tisLoading: false,\r\n\t\t\tprograms: [],\r\n\t\t\teTransferInfos: [],\r\n\t\t\taddressList: [],\r\n\t\t\tclientType: \"\"\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.GetProfileInfo();\r\n\t\tthis.GetPrograms();\r\n\t}\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = data.Description;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tGetPrograms() {\r\n\t\tProxy.GET(\r\n\t\t\t\"/bankapi/v1.0/Bank/ValidBankPrograms\",\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error !\", responseData.ErrorDescription);\r\n\t\t\t\t\tthis.hideLoading();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\t\tprograms: responseData.Item.filter(k =>\r\n\t\t\t\t\t\t\t\tk.ProgramCode == ProgramCodes.Bank_Programs_EFT ||\r\n\t\t\t\t\t\t\t\tk.ProgramCode == ProgramCodes.Bank_Programs_e_Transfer ||\r\n\t\t\t\t\t\t\t\tk.ProgramCode == ProgramCodes.Bank_Programs_DDT ||\r\n\t\t\t\t\t\t\t\tk.ProgramCode == ProgramCodes.Bank_Programs_CDIC)\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tthis.errorDefinitionCallback\r\n\t\t);\r\n\t}\r\n\r\n\tGetProfileInfo = () => {\r\n\t\tthis.showLoading();\r\n\t\t//GetCustomerBankAccountsOp class\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/BankCustomer/GetProfileInfo\",\r\n\t\t\t{},\r\n\t\t\tthis.handleCustomerProfileInfo,\r\n\t\t\tthis.errorDefinitionCallback\r\n\t\t);\r\n\t}\r\n\r\n\thandleCustomerProfileInfo = (responseData) => {\r\n\t\tvar personalModel = { ...this.state.personalModel };\r\n\t\tvar corporateModel = { ...this.state.personalModel };\r\n\t\tvar IsCustomer = 0;\r\n\t\tvar accounts = [...this.state.accounts];\r\n\t\tvar eTransferInfos = [...this.state.eTransferInfos];\r\n\t\tvar addressList = [...this.state.addressList];\r\n\t\tvar clientType = this.state.clientType;\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error !\", responseData.ErrorDescription);\r\n\t\t\tthis.hideLoading();\r\n\t\t\treturn;\r\n\t\t} else {\r\n\t\t\tif (responseData.Item != null) {\r\n\t\t\t\tif (responseData.Item.IsCustomer) {\r\n\t\t\t\t\tpersonalModel = responseData.Item.Customer || {};\r\n\t\t\t\t\tIsCustomer = 1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tcorporateModel = responseData.Item.Corporate || {};\r\n\t\t\t\t\tIsCustomer = 2;\r\n\t\t\t\t\taccounts = responseData.Item.Accounts;\r\n\t\t\t\t}\r\n\r\n\t\t\t\teTransferInfos = responseData.Item.InteractCustomersInfos;\r\n\t\t\t\taddressList = responseData.Item.CustomerAddressList;\r\n\t\t\t\tclientType = responseData.Item.ClientType;\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tpersonalModel: personalModel,\r\n\t\t\t\t\tcorporateModel: corporateModel,\r\n\t\t\t\t\tIsCustomer: IsCustomer,\r\n\t\t\t\t\tisLoading: false,\r\n\t\t\t\t\taccounts,\r\n\t\t\t\t\teTransferInfos: eTransferInfos,\r\n\t\t\t\t\taddressList,\r\n\t\t\t\t\tclientType\r\n\t\t\t\t});\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}\r\n\r\n\terrorDefinitionCallback = (error) => {\r\n\t\tthis.hideLoading();\r\n\t\tthis.ShowMessage(\"error\", \"Error !\", \"An error occurred while requesting data\" + error);\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null\r\n\t\t});\r\n\t}\r\n\r\n\tshowLoading = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t}\r\n\r\n\thideLoading = () => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { personalModel, corporateModel, isLoading, accounts, eTransferInfos, addressList, clientType } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t{this.state.alert}\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t{this.state.IsCustomer == 1 &&\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t{this.state.IsCustomer == 2 &&\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nProfile.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func\r\n};\r\n\r\nexport default Profile;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport { PropTypes } from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericExpansionPanel, GenericGrid, GenericLabel, GenericNumberInput, GenericSelectInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\n\r\n\r\nclass AutoLoadingInstruction extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.isClient = ClientHelper.IsClient();\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tCustomer: null,\r\n\t\t\tCustomerNumber: null,\r\n\t\t\tCustomerId: 0,\r\n\t\t\tIsPeriodic: false,\r\n\t\t\tIsExternalAccount: false,\r\n\t\t\tIsClientInstruct: true,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t\tSourceAccountId: 0,\r\n\t\t\tAccountId: 0,\r\n\t\t\tProgramId: 0\r\n\t\t};\r\n\t\t\r\n\t\tthis.state = {\r\n\t\t\tlist: [],\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tvModel: {},\r\n\t\t\tisLoading: false,\r\n\t\t\trowIndex: -1\r\n\t\t};\r\n\r\n\t\tthis.emptyObject = {};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Auto-Loading To Sub Account\");\r\n\t\tthis.props.setAppCenterTitle(\"BANKING\");\r\n\t}\r\n\r\n\tHandleChange = (name, value, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tif(name == \"SourceAccountId\"){\r\n\t\t\tmodel[\"ProgramId\"] = data.ProgramId;\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tconst model = this.state.list[index];\r\n\t\tthis.setState({ model, rowIndex: index });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tconst nModel={...this.state.model};\r\n\r\n\t\tthis.setState({ model: {\r\n\t\t\tId : 0,\r\n\t\t\tCustomer : null,\r\n\t\t\tCustomerNumber : null,\r\n\t\t\tCustomerId : 0,\r\n\t\t\tIsPeriodic : false,\r\n\t\t\tIsExternalAccount : false,\r\n\t\t\tIsClientInstruct : true,\r\n\t\t\tUniqueClientId : ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t\tSourceAccountId : nModel.SourceAccountId,\r\n\t\t\tAccountId : 0,\r\n\t\t\tProgramId : 0\r\n\t\t}, rowIndex: -1 });\r\n\t}\r\n\r\n\tHandleGetList = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/AutoLoadingInstruction/GetAllSubCustomer\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ list: [] });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleSubmit = () => {\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/AutoLoadingInstruction/InsertOrUpdateCustomerAutoLoadingInstruction\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Operation is successfully!\");\r\n\t\t\t\tthis.HandleClear();\r\n\t\t\t\tthis.HandleGetList();\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleDelete = () => {\r\n\t\tthis.ShowConfirmMessage(\"warning\", \"Warning\", \"Are you sure do you want to remove the Auto-load Instruction?\", () => {\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tProxy.GET(\r\n\t\t\t\t\"/bankapi/v1.0/AutoLoadingInstruction/Delete/Id?Id=\" + this.state.model.Id,\r\n\t\t\t\t(responseData) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.ShowMessage(\"success\", \"Deleted successfully!\");\r\n\t\t\t\t\tthis.HandleClear();\r\n\t\t\t\t\tthis.HandleGetList();\r\n\t\t\t\t},\r\n\t\t\t\t(error) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while deleting data\", error.message);\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t});\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tvar messages = [];\r\n\r\n\t\tvModel.SourceAccountId = !model.IsExternalAccount && model.SourceAccountId == null;\r\n\t\tif (vModel.SourceAccountId) messages.push(\"Source Account must be select\");\r\n\r\n\t\tvModel.ExternalSourceAccountId = model.IsExternalAccount && model.SourceAccountId == null;\r\n\t\tif (vModel.ExternalSourceAccountId) messages.push(\"Source Account must be select\");\r\n\r\n\t\tvModel.DestinationAccountId = !model.IsExternalAccount && model.DestinationAccountId == null;\r\n\t\tif (vModel.DestinationAccountId) messages.push(\"Receiver Account must be select\");\r\n\r\n\t\tvModel.ExternalDestinationAccountId = model.IsExternalAccount && model.DestinationAccountId == null;\r\n\t\tif (vModel.ExternalDestinationAccountId) messages.push(\"Receiver Account must be select\");\r\n\r\n\t\tvModel.MinimumBalance = !model.IsPeriodic && (model.MinimumBalance == null || model.MinimumBalance == 0);\r\n\t\tif (vModel.MinimumBalance) messages.push(\"Minimum Balance cannot be empty\");\r\n\r\n\t\tvModel.Amount = model.Amount == null || model.Amount == 0;\r\n\t\tif (vModel.Amount) messages.push(\"Transaction Amount cannot be empty\");\r\n\r\n\t\tvModel.UserId = model.UserId == null;\r\n\t\tif (vModel.UserId) messages.push(\"User must be select\");\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.setState({ vModel });\r\n\t\treturn true;\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: \"\" })} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\r\n\tRenderItemClientCustomer = (d) => {\r\n\t\treturn `${d.AccountNumber} - ${d.AccountName}`;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, vModel, list, isLoading } = this.state;\r\n\t\treturn (\r\n\t\t\t<>\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\r\n\t\t\t\t 0, ModelFunction: () => model, FillDataFromModel: model => this.setState({ model }), ValidationFunction: this.Validate },\r\n\t\t\t\t\t{ Code: \"Update\", OnClick: this.HandleSubmit, Disabled: Disabled || model.Id === 0, ModelFunction: () => model, FillDataFromModel: model => this.setState({ model }), ValidationFunction: this.Validate },\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nAutoLoadingInstruction.propTypes = {\r\n\tclasses: PropTypes.object.isRequired\r\n};\r\n\r\nexport default withArtifex(AutoLoadingInstruction, {});\r\n","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport {\r\n GenericAlert,\r\n GenericDialog,\r\n GenericDialogActions,\r\n GenericExpansionPanel,\r\n GenericLabel,\r\n GenericNumberInput,\r\n GenericSelectInput,\r\n GenericTextInput,\r\n GenericTitle,\r\n} from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { BankingAccountTypes } from \"views/Constants/Constant\";\r\n\r\nclass TransferBetweenClientAccounts extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n model: {},\r\n vModel: {},\r\n readOnlyData: {},\r\n isLoading: false,\r\n isConfirmDialogOpen: false,\r\n reloadData: false,\r\n transactionResponse: {},\r\n isResponseDialogOpen: false,\r\n };\r\n }\r\n componentDidMount() {\r\n //this.props.hideSidebar();\r\n this.props.setAppLeftTitle(\"Transfer To Client Account\");\r\n this.props.setAppCenterTitle(\"BANKING\");\r\n }\r\n PerformTransaction = () => {\r\n const model = { ...this.state.model };\r\n let vModel = { ...this.state.vModel };\r\n var ErrorList = [];\r\n\r\n vModel.SourceAccountId =\r\n model.SourceAccountId == null || model.SourceAccountId == \"\";\r\n if (vModel.SourceAccountId) {\r\n ErrorList.push(\"Please select source account !\");\r\n }\r\n\r\n vModel.DestinationAccount =\r\n model.DestinationAccount == null || model.DestinationAccount == \"\";\r\n if (vModel.DestinationAccount) {\r\n ErrorList.push(\"Please select receiver account !\");\r\n }\r\n\r\n vModel.Amount = model.Amount == null || model.Amount == \"\";\r\n if (vModel.Amount) {\r\n ErrorList.push(\"Please fill transaction amount !\");\r\n }\r\n\r\n if (\r\n this.state.readOnlyData?.Destination == null ||\r\n this.state.readOnlyData?.Destination?.AccountNumber == null\r\n ) {\r\n //\tErrorList.push(\"Please select valid account !\");\r\n //vModel.DestinationAccount = true;\r\n }\r\n\r\n this.setState({ vModel });\r\n if (ErrorList.length > 0) {\r\n this.props.showMessageNode(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n ErrorList.slice(0, 10).map((x, i) =>
{x}
)\r\n );\r\n return false;\r\n }\r\n\r\n this.FetchClientAccount(model.DestinationAccount, model.SourceAccountId);\r\n };\r\n\r\n SendTransaction = () => {\r\n //GetCustomerBankAccountProfileOp class\r\n this.setState({ isLoading: true });\r\n Proxy.POST(\r\n \"/bankapi/v1.0/Transaction/TransferBetweenClientAccountsWithFee\",\r\n this.state.model,\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n if (!responseData.IsSucceeded) {\r\n this.props.showMessage(\r\n \"error\",\r\n \"Error\",\r\n responseData.ErrorDescription\r\n );\r\n return;\r\n }\r\n\r\n if (responseData.Item != null) {\r\n this.setState({\r\n isConfirmDialogOpen: false,\r\n model: {},\r\n readOnlyData: {},\r\n reloadData: !this.state.reloadData,\r\n });\r\n this.setState({\r\n transactionResponse: responseData.Item || {},\r\n isResponseDialogOpen: true,\r\n });\r\n this.props.showMessage(\r\n \"success\",\r\n \"Success\",\r\n \"Transaction Completed !\"\r\n );\r\n } else {\r\n this.props.showMessage(\"error\", \"Error !\", \"An error occurred !\");\r\n }\r\n },\r\n (error) => {\r\n this.setState({ isLoading: false });\r\n this.props.showMessage(\r\n \"error\",\r\n \"Error !\",\r\n \"An error occurred while requesting data \" + error\r\n );\r\n }\r\n );\r\n };\r\n FetchClientAccount = (destinationAccount, sourceAccount) => {\r\n this.setState({ isLoading: true });\r\n Proxy.POST(\r\n \"/bankapi/v1.0/Transaction/GetClientAccountByAccountNumber\",\r\n {\r\n\t\t\tAccountNumber: destinationAccount,\r\n SourceAccountId: sourceAccount,\r\n },\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n if (!responseData.IsSucceeded) {\r\n var temp = { ...this.state.readOnlyData };\r\n temp.Destination = {};\r\n this.setState({ readOnlyData: temp });\r\n this.props.showMessage(\r\n \"error\",\r\n \"Error\",\r\n responseData.ErrorDescription\r\n );\r\n return;\r\n }\r\n\r\n const model = this.state.model;\r\n model.FeeAmount = responseData.Item.FeeAmount;\r\n this.setState({ model });\r\n\r\n var temp = { ...this.state.readOnlyData };\r\n temp.Destination = responseData.Item || {};\r\n this.setState({ readOnlyData: temp });\r\n\r\n this.setState({ isConfirmDialogOpen: true });\r\n },\r\n (error) => {\r\n this.setState({ isLoading: false });\r\n this.props.showMessage(\r\n \"error\",\r\n \"Error !\",\r\n \"An error occurred while requesting data \" + error\r\n );\r\n }\r\n );\r\n };\r\n handleChange = (name, newValue, data) => {\r\n const model = { ...this.state.model };\r\n var temp = { ...this.state.readOnlyData };\r\n model[name] = newValue;\r\n if (name == \"SourceAccountId\" && data != null) {\r\n temp.SourceBalance = data.Balance;\r\n temp.SourceName = data.AccountName;\r\n temp.SourceType = data.AccountType;\r\n model.SourceAccountType = data.AccountCode;\r\n model.ProgramId = data.ProgramId;\r\n model.PoolAccountId = data.PoolAccountId;\r\n model.Amount = 0;\r\n }\r\n\r\n this.setState({ model: model, readOnlyData: temp });\r\n };\r\n ClearData = () => {\r\n this.setState({ isLoading: false });\r\n this.setState({\r\n alert: null,\r\n model: {},\r\n readOnlyData: {},\r\n vModel: {},\r\n transactionResponse: {},\r\n isResponseDialogOpen: false,\r\n isConfirmDialogOpen: false,\r\n });\r\n };\r\n\r\n render() {\r\n const { Disabled } = this.props;\r\n const {\r\n model,\r\n isConfirmDialogOpen,\r\n readOnlyData,\r\n vModel,\r\n isResponseDialogOpen,\r\n transactionResponse,\r\n } = this.state;\r\n return (\r\n
\r\n {this.state.alert}\r\n\r\n \r\n\r\n this.ClearData(),\r\n Disabled: Disabled,\r\n },\r\n {\r\n Code: \"Submit\",\r\n OnClick: () => this.PerformTransaction(),\r\n Disabled: Disabled,\r\n },\r\n ]}\r\n menuId={this.props.menuId}\r\n ApprovalData={this.props.ApprovalData}\r\n After={this.props.After}\r\n />\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {readOnlyData.SourceName != null && (\r\n \r\n \r\n \r\n {\" \"}\r\n Balance :{\" \"}\r\n {Formatter.FormatMoney(\r\n readOnlyData.SourceBalance\r\n )}\r\n

\r\n \r\n {\" \"}\r\n Account Name : {readOnlyData.SourceName}\r\n

\r\n

\r\n {\" \"}\r\n Account Type : {readOnlyData.SourceType}{\" \"}\r\n

\r\n
\r\n
\r\n )}\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n {/* {(readOnlyData?.Destination == null || readOnlyData?.Destination.AccountNumber == null || readOnlyData?.Destination.AccountNumber == \"\") ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{( model.DestinationAccount != null && model.DestinationAccount.length > 6) && (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t

Invalid Account

\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

Client : {`${readOnlyData?.Destination?.ClientName} (${readOnlyData?.Destination?.UniqieClientId})`}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

Account : {`${readOnlyData?.Destination?.AccountName} (${readOnlyData?.Destination?.AccountNumber})`}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t)} */}\r\n
\r\n
\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n \r\n Transaction Confirmation\r\n \r\n \r\n \r\n
\r\n Receiver Information\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n this.setState({ isConfirmDialogOpen: false })\r\n }\r\n >\r\n Cancel\r\n \r\n \r\n
\r\n\r\n \r\n Transaction Response\r\n \r\n \r\n \r\n \r\n
\r\n Receiver Information\r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n \r\n {\r\n this.setState({ isResponseDialogOpen: false });\r\n this.ClearData();\r\n }}\r\n >\r\n Cancel\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n );\r\n }\r\n}\r\n\r\nTransferBetweenClientAccounts.propTypes = {\r\n classes: PropTypes.object,\r\n setAppLeftTitle: PropTypes.func,\r\n setAppCenterTitle: PropTypes.func,\r\n};\r\n\r\nexport default withArtifex(TransferBetweenClientAccounts, {});\r\n","import Card from \"components/Card/Card\";\r\nimport CardBody from \"components/Card/CardBody\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericGrid, GenericSelectInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant.js\";\r\n\r\nclass TransferToClientAccountReport extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tTxnDetail: {},\r\n\t\t\tIsTxnDetailOpen: false\r\n\t\t};\r\n\r\n\t\tthis.ValueChanged = this.ValueChanged.bind(this);\r\n\t\tthis.ClearClick = this.ClearClick.bind(this);\r\n\t\tthis.SearchClick = this.SearchClick.bind(this);\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\r\n\t\tif (setAppLeftTitle)\r\n\t\t\tsetAppLeftTitle(\"Transfer To Client Account Report\");\r\n\r\n\t\tif (setAppCenterTitle)\r\n\t\t\tsetAppCenterTitle(\"Reports\");\r\n\t}\r\n\r\n\tValueChanged(name, newValue) {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model || {};\r\n\t\t\tmodel[name] = newValue;\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tClearClick() {\r\n\t\tthis.setState({ model: {} });\r\n\t}\r\n\r\n\tSearchClick() {\r\n\t\tconst { showMessage } = this.props;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Transaction/TransferToClientAccountReport\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ TransactionList: responseData.Item ?? [] });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { isLoading, alert, model, TransactionList } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.ValueChanged}\r\n\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\tDisabled={Disabled}\r\n\t\t\t\t\t\t\t\t\t\t\tRequired />\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n\r\n}\r\n\r\nTransferToClientAccountReport.propTypes = {\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\n\r\nexport default TransferToClientAccountReport;","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericLabel, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { BankingAccountTypes } from \"views/Constants/Constant\";\r\n\r\nclass Transfer extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\tvModel: {},\r\n\t\t\treadOnlyData: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tisConfirmDialogOpen: false,\r\n\t\t\treloadData: false\r\n\t\t};\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\t//this.props.hideSidebar();\r\n\t\tthis.props.setAppLeftTitle(\"Transfer Between My Accounts\");\r\n\t\tthis.props.setAppCenterTitle(\"BANKING\");\r\n\t}\r\n\tPerformTransaction = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tlet vModel = { ...this.state.model }\r\n\t\tvar ErrorList = [];\r\n\t\tvModel.SourceAccountId = model.SourceAccountId == null || model.SourceAccountId == \"\";\r\n\t\tif (vModel.SourceAccountId) {\r\n\t\t\tErrorList.push(\"Please select source account !\");\r\n\t\t}\r\n\t\tvModel.DestinationAccountId = model.DestinationAccountId == null || model.DestinationAccountId == \"\"\r\n\t\tif (vModel.DestinationAccountId) {\r\n\t\t\tErrorList.push(\"Please select receiver account !\");\r\n\t\t}\r\n\t\t \r\n\t\tif (model.SourceAccountId == model.DestinationAccountId) {\r\n\t\t\tErrorList.push(\"Accounts must be different !\");\r\n\t\t}\r\n\t\tif (model.SourceAccountType != BankingAccountTypes.PooledAccount) {\r\n\t\t\tvModel.Amount = model.Amount == null || model.Amount == \"\";\r\n\t\t\tif (vModel.Amount) {\r\n\t\t\t\tErrorList.push(\"Please fill transaction amount !\");\r\n\t\t\t}\r\n\t\t}\r\n\r\nthis.setState({vModel});\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", ErrorList.slice(0, 10).map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tthis.setState({ isConfirmDialogOpen: true });\r\n\t}\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tSendTransaction = () => {\r\n\t\t//GetCustomerBankAccountProfileOp class\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Transaction/TransferBetweenAccounts\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item == true) {\r\n\t\t\t\t\tthis.setState({ isConfirmDialogOpen: false, model: {}, readOnlyData: {}, reloadData: !this.state.reloadData });\r\n\t\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Transaction Completed !\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error !\", \"An error occurred !\");\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error !\", \"An error occurred while requesting data \" + error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tvar temp = { ...this.state.readOnlyData };\r\n\t\tmodel[name] = newValue;\r\n\t\tif (name == \"SourceAccountId\" && data != null) {\r\n\t\t\ttemp.SourceAccountNumber = data.AccountNumber;\r\n\t\t\ttemp.SourceBalance = data.Balance;\r\n\t\t\ttemp.SourceName = data.AccountName;\r\n\t\t\ttemp.SourceType = data.AccountType;\r\n\t\t\tmodel.SourceAccountType = data.AccountCode;\r\n\t\t\tmodel.ProgramId = data.ProgramId;\r\n\t\t\tmodel.PoolAccountId = data.PoolAccountId;\r\n\t\t\tmodel.Amount = 0;\r\n\t\t}\r\n\t\tif (name == \"DestinationAccountId\" && data != null) {\r\n\t\t\ttemp.DestinationAccountNumber = data.AccountNumber;\r\n\t\t\ttemp.DestinationBalance = data.Balance;\r\n\t\t\ttemp.DestinationName = data.AccountName;\r\n\t\t\ttemp.DestinationType = data.AccountType;\r\n\t\t}\r\n\t\tthis.setState({ model: model, readOnlyData: temp });\r\n\t}\r\n\tClearData = () => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tmodel: {},\r\n\t\t\treadOnlyData: {}\r\n\t\t});\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({ alert: null, isLoading: false });\r\n\t}\r\n\trender() {\r\n\t\tconst { classes, Disabled } = this.props;\r\n\t\tconst { model, isConfirmDialogOpen, readOnlyData, vModel } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t this.ClearData(), Disabled: Disabled },\r\n\t\t\t\t\t{ Code: \"Submit\", OnClick: () => this.PerformTransaction(), Disabled: Disabled }\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{readOnlyData.SourceName != null && (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t

Balance : {Formatter.FormatMoney(readOnlyData.SourceBalance)}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t

Account Name : {readOnlyData.SourceName}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t

Account Number : {readOnlyData.SourceAccountNumber}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t

Account Type : {readOnlyData.SourceType}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{readOnlyData.DestinationName != null && (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t

Balance : {Formatter.FormatMoney(readOnlyData.DestinationBalance)}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t

Account Name : {readOnlyData.DestinationName}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t

Account Number : {readOnlyData.DestinationAccountNumber}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t

Account Type : {readOnlyData.DestinationType}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{model.SourceAccountType != BankingAccountTypes.PooledAccount && (\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t{model.SourceAccountType == BankingAccountTypes.PooledAccount && (\r\n\t\t\t\t\t\t\t\t\t\t\t

Collect All Money From All Sub Accounts. Total Balance: {Formatter.FormatMoney(readOnlyData.SourceBalance)}

\r\n\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tTransaction Confirmation\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{model.SourceAccountType != BankingAccountTypes.PooledAccount && (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t{model.SourceAccountType == BankingAccountTypes.PooledAccount && (\r\n\t\t\t\t\t\t\t\t\t\t\t\t

Collect All Money From All Sub Accounts. Total Balance: {Formatter.FormatMoney(readOnlyData.SourceBalance)}

\r\n\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\r\n\r\n\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\t\t\t
\r\n\r\n\t\t);\r\n\t}\r\n}\r\n\r\nTransfer.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func\r\n};\r\n\r\n\r\nexport default withArtifex(Transfer, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericCheckInput, GenericDateInput, GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { FeeProfileType, PriorityRegularType, GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass AgentCommissionDefinition extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tProfileModel: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tDefinedProfiles: [],\r\n\t\t\tvModel: {},\r\n\t\t\tFeeProfileModel: {},\r\n\t\t\tFixedPropList: [],\r\n\t\t\tPeriodicPropList: [],\r\n\t\t\tFixedModelList: [],\r\n\t\t\tPeriodicModelList: [],\r\n\t\t\tWeightedModelList: []\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Sales Person / Agent Commission\");\r\n\t\tthis.props.setAppCenterTitle(\"PROFILES\");\r\n\t\tthis.FetchDefinedProfiles();\r\n\t}\r\n\tOperationCheck = () => {\r\n\t\tvar ErrorList = [];\r\n\t\tconst model = { ...this.state.ProfileModel };\r\n\t\tconst vModel = this.state.vModel;\r\n\r\n\t\tif (model.Id <= 0 || model.Id == null) {\r\n\t\t\tif (model.ProgramId == null || model.ProgramId == \"\") {\r\n\t\t\t\tvModel.ProgramId = true;\r\n\t\t\t\tErrorList.push(\"Program must be selected !\");\r\n\t\t\t} else { vModel.ProgramId = false; }\r\n\t\t}\r\n\r\n\t\tif (model.FeeProfileId == null || model.FeeProfileId == \"\") {\r\n\t\t\tvModel.FeeProfileId = true;\r\n\t\t\tErrorList.push(\"Fee profile must be selected !\");\r\n\t\t} else { vModel.FeeProfileId = false; }\r\n\t\tif (model.ProfileName == null || model.ProfileName == \"\") {\r\n\t\t\tvModel.ProfileName = true;\r\n\t\t\tErrorList.push(\"Profile name must be selected !\");\r\n\t\t} else { vModel.ProfileName = false; }\r\n\t\tif (model.PaymentMethodId == null || model.PaymentMethodId == \"\") {\r\n\t\t\tvModel.PaymentMethodId = true;\r\n\t\t\tErrorList.push(\"Payment method must be selected !\");\r\n\t\t} else { vModel.PaymentMethodId = false; }\r\n\t\tif (model.PaymentPeriod == null || model.PaymentPeriod == \"\") {\r\n\t\t\tvModel.PaymentPeriod = true;\r\n\t\t\tErrorList.push(\"Payment period must be selected !\");\r\n\t\t} else { vModel.PaymentPeriod = false; }\r\n\t\tif (model.CommissionStartDate == null || model.CommissionStartDate == \"\") {\r\n\t\t\tvModel.CommissionStartDate = true;\r\n\t\t\tErrorList.push(\"Commission Start Date must be selected !\");\r\n\t\t} else { vModel.CommissionStartDate = false; }\r\n\t\tif (model.CommissionEndDate == null || model.CommissionEndDate == \"\") {\r\n\t\t\tvModel.CommissionEndDate = true;\r\n\t\t\tErrorList.push(\"Commission End Date must be selected !\");\r\n\t\t} else { vModel.CommissionEndDate = false; }\r\n\t\tif (model.FirstMonthAgreementRevenue == null || model.FirstMonthAgreementRevenue == \"\") {\r\n\t\t\tvModel.FirstMonthAgreementRevenue = true;\r\n\t\t\tErrorList.push(\"First Month Agreement Revenue must be selected !\");\r\n\t\t} else { vModel.FirstMonthAgreementRevenue = false; }\r\n\t\tif (model.NextMonthAgreementRevenue == null || model.NextMonthAgreementRevenue == \"\") {\r\n\t\t\tvModel.NextMonthAgreementRevenue = true;\r\n\t\t\tErrorList.push(\"Next Month Agreement Revenue must be selected !\");\r\n\t\t} else { vModel.NextMonthAgreementRevenue = false }\r\n\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tthis.setState({ vModel });\r\n\t\tthis.SubmitProfile();\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\r\n\tSubmitProfile = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tvar temp = { ...this.state.ProfileModel };\r\n\t\ttemp.MaxPaymentRevenue = 0;\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/FeeProfileAgentCommission/Update\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.showErrorMessage(responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.setState({ ProfileModel: responseData.Item || {} });\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.FetchDefinedProfiles();\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.showErrorMessage(error);\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tDeleteProfile = () => {\r\n\t\tconst profile = { ...this.state.ProfileModel };\r\n\t\tif (profile == null || profile.Id < 0) {\r\n\t\t\tthis.showErrorMessage(\"Profile must be selected ! \");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.GET(\r\n\t\t\t\"/bankapi/v1.0/FeeProfileAgentCommission/Delete/Id?Id=\" + profile.Id,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.showErrorMessage(responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.ClearData();\r\n\t\t\t\tthis.showSuccessMessage(\"Profile Deleted \");\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.FetchDefinedProfiles();\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.showErrorMessage(error);\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tFetchDefinedProfiles = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.GET(\r\n\t\t\t\"/bankapi/v1.0/FeeProfileAgentCommission/GetAll\",\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.showErrorMessage(responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.setState({ DefinedProfiles: responseData.Item || [] });\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.showErrorMessage(error);\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tFetchDataFixedFee = (ProfileId) => {\r\n\t\tif (ProfileId != 0 && ProfileId != null) {\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tthis.setState({\r\n\t\t\t\tFeeProfileModel: {},\r\n\t\t\t\tFixedPropList: [],\r\n\t\t\t\tPeriodicPropList: [],\r\n\t\t\t\tFixedModelList: [],\r\n\t\t\t\tPeriodicModelList: [],\r\n\t\t\t\tWeightedModelList: []\r\n\t\t\t});\r\n\r\n\t\t\tProxy.GET(\r\n\t\t\t\t\"/bankapi/v1.0/FeeProfile/GetById/Id?Id=\" + ProfileId,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.showErrorMessage(responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\t\tFixedModelList: responseData.Item.Fixed || [],\r\n\t\t\t\t\t\t\tPeriodicModelList: responseData.Item.Periodic || [],\r\n\t\t\t\t\t\t\tWeightedModelList: responseData.Item.Scale || [],\r\n\t\t\t\t\t\t\tFeeProfileModel: responseData.Item.Profile || {}\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\t\t\t\t\tthis.showErrorMessage(error);\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t}\r\n\tFetchPropFromParameter = (code) => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Parameter/Search\",\r\n\t\t\t{\r\n\t\t\t\tParameterCode: \"FeeType\",\r\n\t\t\t\tParameterValue: \"\",\r\n\t\t\t\tParameterDesc: \"\",\r\n\t\t\t\tParameterValue2: code\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.showErrorMessage(responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.setState({ FixedPropList: responseData.Item || [] });\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.ShowMessage(error);\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t}\r\n\t\t);\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Parameter/Search\",\r\n\t\t\t{\r\n\t\t\t\tParameterCode: \"FeeType\",\r\n\t\t\t\tParameterValue: \"\",\r\n\t\t\t\tParameterDesc: \"\",\r\n\t\t\t\tParameterValue2: \"PERIODIC\"\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.showErrorMessage(responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.setState({ PeriodicPropList: responseData.Item || [] });\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.showErrorMessage(error);\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t}\r\n\t\t);\r\n\r\n\t}\r\n\tClearData = () => {\r\n\t\tthis.setState({\r\n\t\t\tProfileModel: {},\r\n\t\t\tisLoading: false,\r\n\t\t\talert: null,\r\n\t\t\tselected: null,\r\n\t\t\tFixedPropList: [],\r\n\t\t\tPeriodicPropList: [],\r\n\t\t\tFixedModelList: [],\r\n\t\t\tPeriodicModelList: [],\r\n\t\t\tWeightedModelList: [],\r\n\t\t\tFeeProfileModel: {}\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\thandleChangeProfile = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.ProfileModel };\r\n\t\tmodel[name] = newValue;\r\n\t\tif (name == \"FeeProfileId\" && data != null) {\r\n\t\t\tconst code = data.Program.ProgramCode;\r\n\t\t\tthis.FetchPropFromParameter(code);\r\n\t\t\tthis.FetchDataFixedFee(newValue);\r\n\t\t}\r\n\t\tthis.setState({ ProfileModel: model });\r\n\t}\r\n\tSelectedRowChange = (e, index) => {\r\n\t\tconst model = this.state.DefinedProfiles[index];\r\n\t\tthis.setState({ ProfileModel: model });\r\n\r\n\t\tif (model != null && model.FeeProfile != null && model.FeeProfile.Program != null && model.FeeProfile.Program.ProgramCode != null) {\r\n\t\t\tconst code = model.FeeProfile.Program.ProgramCode;\r\n\t\t\tthis.FetchPropFromParameter(code);\r\n\t\t\tconst profileId = model.FeeProfile.Id;\r\n\t\t\tthis.FetchDataFixedFee(profileId);\r\n\t\t}\r\n\t}\r\n\thideAlert() {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\tshowDeleteMessage = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} OnConfirm={() => this.DeleteProfile()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tshowSuccessMessage = (message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tshowErrorMessage = (message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { ProfileModel, FeeProfileModel, DefinedProfiles, FixedModelList, FixedPropList, PeriodicPropList, PeriodicModelList, WeightedModelList, vModel } = this.state;\r\n\t\tconst Fixed = FixedModelList.filter(x => x.IsCommissionCalculation == true);\r\n\t\tconst Periodic = PeriodicModelList.filter(x => x.IsCommissionCalculation == true);\r\n\t\tconst FFF = FixedPropList.filter(x => Fixed.some(y => y.FeeType != null && y.FeeType.ParameterValue == x.ParameterValue));\r\n\t\tconst PPP = PeriodicPropList.filter(x => Periodic.some(y => y.FeeType != null && y.FeeType.ParameterValue == x.ParameterValue));\r\n\r\n\r\n\t\tconst CM1 = WeightedModelList.find(x => x.LevelId == 1 && x.IsCombineScale == true) == null ? {} : WeightedModelList.find(x => x.LevelId == 1 && x.IsCombineScale == true);\r\n\t\tconst CM2 = WeightedModelList.find(x => x.LevelId == 2 && x.IsCombineScale == true) == null ? {} : WeightedModelList.find(x => x.LevelId == 2 && x.IsCombineScale == true);\r\n\t\tconst CM3 = WeightedModelList.find(x => x.LevelId == 3 && x.IsCombineScale == true) == null ? {} : WeightedModelList.find(x => x.LevelId == 3 && x.IsCombineScale == true);\r\n\t\tconst CM4 = WeightedModelList.find(x => x.LevelId == 4 && x.IsCombineScale == true) == null ? {} : WeightedModelList.find(x => x.LevelId == 4 && x.IsCombineScale == true);\r\n\t\tconst CM5 = WeightedModelList.find(x => x.LevelId == 5 && x.IsCombineScale == true) == null ? {} : WeightedModelList.find(x => x.LevelId == 5 && x.IsCombineScale == true);\r\n\r\n\r\n\t\tconst RG1 = WeightedModelList.find(x => x.LevelId == 1 && x.PriorityType != null && x.PriorityType.ParameterValue == PriorityRegularType.Regular) == null ? {} : WeightedModelList.find(x => x.LevelId == 1 && x.PriorityType.ParameterValue == PriorityRegularType.Regular);\r\n\t\tconst RG2 = WeightedModelList.find(x => x.LevelId == 2 && x.PriorityType != null && x.PriorityType.ParameterValue == PriorityRegularType.Regular) == null ? {} : WeightedModelList.find(x => x.LevelId == 2 && x.PriorityType.ParameterValue == PriorityRegularType.Regular);\r\n\t\tconst RG3 = WeightedModelList.find(x => x.LevelId == 3 && x.PriorityType != null && x.PriorityType.ParameterValue == PriorityRegularType.Regular) == null ? {} : WeightedModelList.find(x => x.LevelId == 3 && x.PriorityType.ParameterValue == PriorityRegularType.Regular);\r\n\t\tconst RG4 = WeightedModelList.find(x => x.LevelId == 4 && x.PriorityType != null && x.PriorityType.ParameterValue == PriorityRegularType.Regular) == null ? {} : WeightedModelList.find(x => x.LevelId == 4 && x.PriorityType.ParameterValue == PriorityRegularType.Regular);\r\n\t\tconst RG5 = WeightedModelList.find(x => x.LevelId == 5 && x.PriorityType != null && x.PriorityType.ParameterValue == PriorityRegularType.Regular) == null ? {} : WeightedModelList.find(x => x.LevelId == 5 && x.PriorityType.ParameterValue == PriorityRegularType.Regular);\r\n\r\n\r\n\t\tconst PR1 = WeightedModelList.find(x => x.LevelId == 1 && x.PriorityType != null && x.PriorityType.ParameterValue == PriorityRegularType.Priority) == null ? {} : WeightedModelList.find(x => x.LevelId == 1 && x.PriorityType.ParameterValue == PriorityRegularType.Priority);\r\n\t\tconst PR2 = WeightedModelList.find(x => x.LevelId == 2 && x.PriorityType != null && x.PriorityType.ParameterValue == PriorityRegularType.Priority) == null ? {} : WeightedModelList.find(x => x.LevelId == 2 && x.PriorityType.ParameterValue == PriorityRegularType.Priority);\r\n\t\tconst PR3 = WeightedModelList.find(x => x.LevelId == 3 && x.PriorityType != null && x.PriorityType.ParameterValue == PriorityRegularType.Priority) == null ? {} : WeightedModelList.find(x => x.LevelId == 3 && x.PriorityType.ParameterValue == PriorityRegularType.Priority);\r\n\t\tconst PR4 = WeightedModelList.find(x => x.LevelId == 4 && x.PriorityType != null && x.PriorityType.ParameterValue == PriorityRegularType.Priority) == null ? {} : WeightedModelList.find(x => x.LevelId == 4 && x.PriorityType.ParameterValue == PriorityRegularType.Priority);\r\n\t\tconst PR5 = WeightedModelList.find(x => x.LevelId == 5 && x.PriorityType != null && x.PriorityType.ParameterValue == PriorityRegularType.Priority) == null ? {} : WeightedModelList.find(x => x.LevelId == 5 && x.PriorityType.ParameterValue == PriorityRegularType.Priority);\r\n\r\n\r\n\t\tvar programId = 0;\r\n\t\tif (ProfileModel.Id > 0 && ProfileModel.FeeProfile != null) {\r\n\t\t\tprogramId = ProfileModel.FeeProfile.ProgramId;\r\n\t\t} else {\r\n\t\t\tprogramId = ProfileModel.ProgramId;\r\n\t\t}\r\n\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t{this.state.alert}\r\n\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t this.FetchDefinedProfiles(), Disabled: Disabled },\r\n\t\t\t\t\t\t{ Code: \"Delete\", OnClick: () => this.showDeleteMessage(), Disabled: Disabled || !(ProfileModel.Id > 0) },\r\n\t\t\t\t\t\t{ Code: \"Clear\", OnClick: () => this.ClearData(), Disabled: Disabled },\r\n\t\t\t\t\t\t{ Code: \"Submit\", OnClick: () => this.OperationCheck(), Disabled: Disabled }\r\n\t\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t 0 ? true : false} Name=\"ProgramId\" LabelText=\"Program\" Value={programId} ValueChanged={this.handleChangeProfile} KeyValueMember=\"Id\" TextValueMember=\"Description\" Method=\"GET\" Url=\"/bankapi/v1.0/Bank/ValidBankProgramsForFeeProfile\" DataRoot=\"Item\" Required\r\n\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.ProgramId} />\r\n\t\t\t\t\t\t\t\t\t\t 0 ? true : false} Value={ProfileModel.FeeProfileId || \"\"} Method=\"POST\" LabelText=\"Fee Profile\" key={programId} Name=\"FeeProfileId\" Url=\"/bankapi/v1.0/FeeProfile/GetByPRogramId\" Parameter={{ ProgramId: programId }} DataRoot=\"Item\" KeyValueMember=\"Id\" TextValueMember=\"ProfileName\" ValueChanged={this.handleChangeProfile} Required\r\n\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.FeeProfileId} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t{FeeProfileModel != null && FeeProfileModel.FeeProfileType != null && FeeProfileModel.FeeProfileType.ParameterValue != null && FeeProfileModel.FeeProfileType.ParameterValue == FeeProfileType.Fixed && (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{FFF != null && FFF.map(item => (\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue) == null ? \"\" : Fixed.find(x => x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue).FeeAmount}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={true}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue) == null ? \"\" : Fixed.find(x => x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue).Cost}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={true}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t\t\t\t\t{PPP != null && PPP.map(item => (\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue) == null ? \"\" : Periodic.find(x => x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue).FeeAmount}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={true}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue) == null ? \"\" : Periodic.find(x => x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue).Cost}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={true}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)}\r\n\r\n\r\n\r\n\t\t\t\t\t{FeeProfileModel != null && FeeProfileModel.FeeProfileType != null && FeeProfileModel.FeeProfileType.ParameterValue != null && FeeProfileModel.FeeProfileType.ParameterValue != FeeProfileType.Fixed && (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t

Fee Details

\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{FeeProfileModel != null && FeeProfileModel.IsCombineScale != null && FeeProfileModel.IsCombineScale == true && (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t

Combine Scale Fees

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\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\t\t\t\t\t\r\n\t\t\t\t\t\t

Defined Profiles

\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
% {(row.value)}
\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Next Month Agreement Revenue\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"NextMonthAgreementRevenue\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
% {(row.value)}
\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\tRowSelected={index => {\r\n\t\t\t\t\t\t\t\t\t\tthis.setState({ selected: index });\r\n\t\t\t\t\t\t\t\t\t\tthis.SelectedRowChange(null, index);\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\tSelectedIndex={this.state.selected}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nAgentCommissionDefinition.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\n\r\nexport default withArtifex(AgentCommissionDefinition, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { bool, func } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport { SubmitOrSendIcon } from \"core/Icons\";\r\n\r\nclass FeeDemands extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\tvModel: {},\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Fee Demands\");\r\n\t\tthis.props.setAppCenterTitle(\"ACCOUNTS\");\r\n\t}\r\n\r\n\tGetFeeDemands = () => {\r\n\r\n\r\n\t\tvar ErrorList = [];\r\n\t\tconst vModel = this.state.vModel;\r\n\t\tconst data = this.state.model;\r\n\r\n\r\n\t\tif (data.UniqueClientId == null || data.UniqueClientId == 0) {\r\n\t\t\tvModel.UniqueClientId = true;\r\n\t\t\tErrorList.push(\"Client must be selected !\");\r\n\t\t} else { vModel.UniqueClientId = false; }\r\n\r\n\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.props.showMessageNode(\"warning\", \"Please fill required fields!\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/FeeDemands/GetFeeDemands\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ list: responseData.Item || [] });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert:\r\n\t\t\t\t this.setState({ alert: null })}\r\n\t\t\t\t/>\r\n\t\t});\r\n\t}\r\n\thandleClear = () => {\r\n\t\tthis.setState({ model: {}, list: [], isLoading: false });\r\n\t}\r\n\tHandleColumnSubmit = (Item) => {\r\n\t\tif (Item && Item.Status == false) {\r\n\t\t\tconst { showConfirmMessage } = this.props;\r\n\t\t\tlet model = this.state.model;\r\n\t\t\tmodel.Id = Item.Id;\r\n\t\t\tthis.setState({ model }, () => { showConfirmMessage(\"warning\", \"Warning\", \"Are you sure you want to charge fee?\", this.Submit) });\r\n\t\t}\r\n\t}\r\n\tSubmit = () => {\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/FeeDemands/ManuelMontlyPeriodicFee\",\r\n\t\t\t{ FeeDemandId: this.state.model.Id },\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Success\", \"Operation Successfully Completed\");\r\n\t\t\t\tthis.GetFeeDemands();\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\r\n\t}\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, isLoading, vModel } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t this.HandleColumnSubmit(row.original)} />\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\tsortable: false,\r\n\t\t\t\t\t\t\t\t\t\t\tfilterable: false,\r\n\t\t\t\t\t\t\t\t\t\t\twidth: 65\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Unique Client ID\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"UniqueClientId\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Program\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"Program\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Charge Operation\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ChargeOperation\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Fee Type\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"FeeType\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Charge Date\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ChargeDate\",\r\n\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTimeUtc\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Period\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"Period\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Status\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"Status\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\trow.value != true ? \"Failed\" : \"Success\"\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Detail\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ErrorDescription\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nFeeDemands.propTypes = {\r\n\tshowQuestionMessage: func,\r\n\tsetAppLeftTitle: func,\r\n\tsetAppCenterTitle: func,\r\n\tDisabled: bool\r\n};\r\n\r\nexport default FeeDemands;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { EditIcon, RowDetailIcon } from \"core/Icons\";\r\nimport MenuAuthorityRightHelper from \"core/MenuAuthorityRightHelper\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericExpansionPanel, GenericGrid, GenericSelectInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton.jsx\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nconst emptyObject = {};\r\nclass AllFeeProfileList extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tFeeProfileList: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tmodel: {},\r\n\t\t\tgridButtonRightDetail: []\r\n\t\t};\r\n\t\tthis.MenuAuthorityRightHelper = new MenuAuthorityRightHelper();\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Fee Profile List\");\r\n\t\tthis.props.setAppCenterTitle(\"FEE PROFILES\");\r\n\r\n\t\tthis.GetGridButtonsRight().then(this.Fetcth);\r\n\t}\r\n\r\n\tGetGridButtonsRight = async () => {\r\n\t\treturn new Promise(async (resolve, reject) => {\r\n\t\t\tconst { MenuCode } = this.props;\r\n\t\t\tvar gridButtonRightDetail = await this.MenuAuthorityRightHelper.RightCheckList(MenuCode, [\"FEELISTMONITOR\", \"FEELISTEDIT\"]);\r\n\t\t\tthis.setState({ gridButtonRightDetail }, resolve);\r\n\t\t});\r\n\r\n\t}\r\n\r\n\tFetcth = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/FeeProfile/GetAllProfile\",\r\n\t\t\t{},\r\n\t\t\tthis.successCallback,\r\n\t\t\tthis.errorCallback\r\n\t\t);\r\n\t}\r\n\r\n\tsuccessCallback = (responseData) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", \"An error occurred during the api visit \" + responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (responseData.Item != null) {\r\n\t\t\tthis.setState({\r\n\t\t\t\tFeeProfileList: responseData.Item.map(fee => {\r\n\t\t\t\t\treturn {\r\n\t\t\t\t\t\tActions: (\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t this.pageSelect(fee == null ? \"\" : fee.Id == null ? 0 : fee.Id, fee.FeeProfileType == null ? \"\" : fee.FeeProfileType.ParameterValue == null ? \"\" : fee.FeeProfileType.ParameterValue)}\r\n\t\t\t\t\t\t\t\t\tDisabled={!this.state.gridButtonRightDetail.find(x => x.Code == \"FEELISTEDIT\")?.HasAuthority} />\r\n\t\t\t\t\t\t\t\t this.pageSelect(fee == null ? \"\" : fee.Id == null ? 0 : fee.Id, fee.FeeProfileType == null ? \"\" : fee.FeeProfileType.ParameterValue == null ? \"\" : fee.FeeProfileType.ParameterValue, true)}\r\n\t\t\t\t\t\t\t\t\tDisabled={!this.state.gridButtonRightDetail.find(x => x.Code == \"FEELISTMONITOR\")?.HasAuthority} />\r\n\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tId: fee == null ? 0 : fee.Id == null ? 0 : fee.Id,\r\n\t\t\t\t\t\tProfileName: fee == null ? \"\" : fee.ProfileName == null ? \"\" : fee.ProfileName,\r\n\t\t\t\t\t\tFeeType: fee == null ? \"\" : fee.FeeProfileType == null ? \"\" : fee.FeeProfileType.ParameterDesc == null ? \"\" : fee.FeeProfileType.ParameterDesc,\r\n\t\t\t\t\t\tProgram: fee == null ? \"\" : fee.Program == null ? \"\" : fee.Program.Description == null ? \"\" : fee.Program.Description,\r\n\t\t\t\t\t\tValidFrom: fee == null ? \"\" : fee.ValidFrom == null ? \"\" : fee.ValidFrom,\r\n\t\t\t\t\t\tValidTo: fee == null ? \"\" : fee.ValidTo == null ? \"\" : fee.ValidTo,\r\n\t\t\t\t\t\tOrganizationUniqueId: fee == null ? \"\" : fee.OrganizationUniqueId == null ? \"\" : fee.OrganizationUniqueId\r\n\r\n\t\t\t\t\t};\r\n\t\t\t\t}), isLoading: false\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\tthis.setState({ FeeProfileList: [], isLoading: false });\r\n\t\t}\r\n\t}\r\n\r\n\tpageSelect = (feeId, profileType, isOnlyMonitor) => {\r\n\t\tif (feeId != 0 && profileType != \"\") {\r\n\r\n\t\t\tRouteHelper.Push(this.props.history, \"/FeeProfileDefinition\", \"FeeProfileDefinition\",\r\n\t\t\t\t{\r\n\t\t\t\t\tId: feeId,\r\n\t\t\t\t\tMonitorMode: isOnlyMonitor\r\n\t\t\t\t});\r\n\r\n\t\t}\r\n\t}\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst temp = { ...this.state.model };\r\n\t\ttemp[name] = newValue;\r\n\t\tthis.setState({ model: temp });\r\n\t}\r\n\terrorCallback = (error) => {\r\n\t\tthis.ShowMessage(\"error\", \"Error\", \"An error occurred during the api visit\" + error);\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\tisLoading: false,\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\thideAlert = () => {\r\n\t\tthis.setState({ alert: null, isLoading: false });\r\n\t}\r\n\r\n\tClearData = () => {\r\n\t\tthis.setState({ model: {} });\r\n\t}\r\n\tSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst data = { ...this.state.model };\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/FeeProfile/GetAllProfile\",\r\n\t\t\tdata,\r\n\t\t\tthis.successCallback,\r\n\t\t\tthis.errorCallback\r\n\t\t);\r\n\t}\r\n\r\n\tGetColumnsRowStyleColor(row) {\r\n\t\tif (!row) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tlet localDateUtc = DateHelper.GetLocalDateTimeAsUtc();\r\n\t\tlet condition = localDateUtc >= DateHelper.ToMoment(row.ValidFrom) && localDateUtc <= DateHelper.ToMoment(row.ValidTo);\r\n\r\n\r\n\t\tthis.columnsRowStyleColor = {\r\n\t\t\tcolor: !condition\r\n\t\t\t\t? \"#FB3005\"\r\n\t\t\t\t: \"\"\r\n\t\t};\r\n\t\treturn this.columnsRowStyleColor;\r\n\t}\r\n\r\n\tRenderOrganizationUniqueIdSelect = (d) => {\r\n\t\tif (window.OrganizationUniqueId != 5000) {\r\n\t\t const model = { ...this.state.model };\r\n\t\t model[\"OrganizationUniqueId\"] = d.OrganizationUniqueId;\r\n\t\t this.setState({ model: model });\r\n\t\t}\r\n \r\n\t\treturn d.OrganizationUniqueId + \"-\" + d.OrganizationName;\r\n\t };\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t this.Fetcth(), Disabled: Disabled },\r\n\t\t\t\t\t\t{ Code: \"Search\", OnClick: () => this.Search(), Disabled: Disabled },\r\n\t\t\t\t\t\t{ Code: \"Clear\", OnClick: () => this.ClearData(), Disabled: Disabled }\r\n\r\n\t\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t (
{row.value}
)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Program\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"Program\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (
{row.value}
)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Fee Type\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"FeeType\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (
{row.value}
)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Profile Name\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ProfileName\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (
{row.value}
)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Valid From Date\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ValidFrom\",\r\n\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateUtc,\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (
{Formatter.FormatDateUtc(row.value)}
),\r\n\t\t\t\t\t\t\t\t\t\t\tfilterMethod: (filter, row, column) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn Formatter.FormatDateUtc(row[filter.id]).toLowerCase().startsWith(filter.value.toLowerCase());\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Valid To Date\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ValidTo\",\r\n\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateUtc,\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (
{Formatter.FormatDateUtc(row.value)}
),\r\n\t\t\t\t\t\t\t\t\t\t\tfilterMethod: (filter, row, column) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn Formatter.FormatDateUtc(row[filter.id]).toLowerCase().startsWith(filter.value.toLowerCase());\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"OrganizationUniqueId\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"OrganizationUniqueId\",\r\n\t\t\t\t\t\t\t\t\t\t\tshow: window.OrganizationUniqueId != 5000?false:true\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t/>\r\n\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nAllFeeProfileList.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tFeeType: PropTypes.func\r\n};\r\n\r\nexport default withArtifex(AllFeeProfileList, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport moment from \"moment\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericCheckInput, GenericDateInput, GenericExpansionPanel, GenericNumberInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { FeeProfileType, PriorityRegularType, TxnEffect } from \"views/Constants/Constant.js\";\r\n\r\nconst emptyObject = {};\r\nclass FeeProfile extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tvModel: {},\r\n\t\t\tProfileModel: {},\r\n\t\t\tFixedModelList: [],\r\n\t\t\tFixedPropList: [],\r\n\t\t\tPeriodicModelList: [],\r\n\t\t\tPeriodicPropList: [],\r\n\t\t\tReadOnlyData: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tFeeTypes: [],\r\n\t\t\tWeightedModelList: [],\r\n\t\t\tTransactionFeeLabelTitleParameter: \"Transaction Fee\",\r\n\t\t\tTransactionFeeParameterValue5: \"TXN\"\r\n\t\t};\r\n\t\tthis.ClearData = this.ClearData.bind(this);\r\n\t\tthis.DeleteRecord = this.DeleteRecord.bind(this);\r\n\t\tthis.UpdateRecord = this.UpdateRecord.bind(this);\r\n\t\tthis.FetchData = this.FetchData.bind(this);\r\n\t\tthis.errorDefinitionCallback = this.errorDefinitionCallback.bind(this);\r\n\t\tthis.handleResponse = this.handleResponse.bind(this);\r\n\t\tthis.handleUpdate = this.handleUpdate.bind(this);\r\n\t\tthis.handleDelete = this.handleDelete.bind(this);\r\n\t\tthis.Validate = this.Validate.bind(this);\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tif (this.props.setAppLeftTitle)\r\n\t\t\tthis.props.setAppLeftTitle(\"Fee Profile\");\r\n\t\tif (this.props.setAppCenterTitle)\r\n\t\t\tthis.props.setAppCenterTitle(\"FEE PROFILES\");\r\n\r\n\t\tvar routeObject = RouteHelper.ReadAndClear(\"FeeProfileDefinition\");\t\r\n\t\tthis.monitorMode = routeObject?.MonitorMode;\r\n\t\t\r\n\t\tvar feeId = routeObject?.Id;\r\n\t\tif (feeId) {\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tProxy.GET(\r\n\t\t\t\t\"/bankapi/v1.0/FeeProfile/GetById/Id?Id=\" + feeId,\r\n\t\t\t\tthis.successGetByIdCallback,\r\n\t\t\t\tthis.errorDefinitionCallback\r\n\t\t\t);\r\n\t\t}\r\n\t}\r\n\r\n\tsuccessGetByIdCallback = (responseData) => {\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (responseData.Item != null) {\r\n\t\t\tthis.setState({\r\n\t\t\t\tFixedModelList: responseData.Item.Fixed || [],\r\n\t\t\t\tPeriodicModelList: responseData.Item.Periodic || [],\r\n\t\t\t\tWeightedModelList: responseData.Item.Scale || [],\r\n\t\t\t});\r\n\t\t\tvar temp = responseData.Item.Profile;\r\n\t\t\ttemp.FeeProfileTypeStr = temp.FeeProfileType.ParameterValue;\r\n\t\t\ttemp.IsSupportWeighted = temp.Program.IsSupportWeighted;\r\n\t\t\tthis.setState({ ProfileModel: temp });\r\n\r\n\t\t\tthis.setState({ isLoading: false });\r\n\t\t\tthis.FetchPropFromParameter(responseData.Item.Profile.ProgramId);\r\n\t\t}\r\n\t}\r\n\r\n\tFetchPropFromParameter = (programId) => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/FeeProfile/GetFeeTypesByProgramId\",\r\n\t\t\tprogramId,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.setState({ FixedPropList: responseData.Item || [] });\r\n\t\t\t\t\tconst ca = [...new Set(responseData.Item.map(x => x.ParameterValue4))];\r\n\t\t\t\t\tthis.setState({ isLoading: false, FeeTypes: ca });\r\n\t\t\t\t}\r\n\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t}\r\n\t\t);\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Parameter/Search\",\r\n\t\t\t{\r\n\t\t\t\tParameterCode: \"FeeType\",\r\n\t\t\t\tParameterValue: \"\",\r\n\t\t\t\tParameterDesc: \"\",\r\n\t\t\t\tParameterValue2: \"PERIODIC\"\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.setState({ PeriodicPropList: responseData.Item || [] });\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t}\r\n\t\t);\r\n\r\n\t}\r\n\r\n\tValidate() {\r\n\t\tvar ErrorList = [];\r\n\t\tconst vModel = this.state.vModel;\r\n\t\tconst dataFixed = this.state.FixedModelList;\r\n\t\tconst propsFixed = this.state.FixedPropList;\r\n\t\tconst dataPeriodic = this.state.PeriodicModelList;\r\n\t\tconst propsPeriodic = this.state.PeriodicPropList;\r\n\t\tconst profile = { ...this.state.ProfileModel };\r\n\r\n\t\tconst WeightedModelList = this.state.WeightedModelList;\r\n\t\tif (profile.OrganizationUniqueId == null || profile.OrganizationUniqueId == \"\") {\r\n\t\t\tvModel.OrganizationUniqueId = true;\r\n\t\t\tErrorList.push(\"OrganizationUniqueId must be filled\");\r\n\t\t} else { vModel.OrganizationUniqueId = false; }\r\n\t\tif (profile.ProgramId == null || profile.ProgramId == \"\") {\r\n\t\t\tvModel.ProgramId = true;\r\n\t\t\tErrorList.push(\"Program must be filled\");\r\n\t\t} else { vModel.ProgramId = false; }\r\n\t\tif (profile.ProfileName == null || profile.ProfileName == \"\") {\r\n\t\t\tvModel.ProfileName = true;\r\n\t\t\tErrorList.push(\"Profile name must be filled\");\r\n\t\t} else { vModel.ProfileName = false; }\r\n\t\tif (profile.ValidFrom == null || profile.ValidFrom == \"\") {\r\n\t\t\tvModel.ValidFrom = true;\r\n\t\t\tErrorList.push(\"Valid from data must be filled\");\r\n\t\t} else { vModel.ValidFrom = false; }\r\n\t\tif (profile.ValidTo == null || profile.ValidTo == \"\") {\r\n\t\t\tvModel.ValidTo = true;\r\n\t\t\tErrorList.push(\"Valid to date must be filled\");\r\n\t\t} else { vModel.ValidTo = false; }\r\n\r\n\t\tif (profile.FeeProfileTypeId == null || profile.FeeProfileTypeId == \"\") {\r\n\t\t\tvModel.FeeProfileTypeId = true;\r\n\t\t\tErrorList.push(\"Fee Profile Type must be defined !\");\r\n\t\t} else { vModel.FeeProfileTypeId = false; }\r\n\t\tthis.setState({ vModel });\r\n\t\t// if (profile.FeeProfileTypeStr == FeeProfileType.Fixed) {\r\n\t\t// \tpropsFixed.forEach(element => {\r\n\t\t// \t\tconst temp = dataFixed.find(x => x.FeeType != null && x.FeeType.ParameterValue == element.ParameterValue);\r\n\t\t// \t\tif (element.ParameterValue6 != \"O\") {\r\n\t\t// \t\t\tif (temp == null || temp.FeeAmount == null) {\r\n\t\t// \t\t\t\tErrorList.push(\"Fee Amount not defined for \" + element.ParameterValue3);\r\n\t\t// \t\t\t}\r\n\t\t// \t\t\tif (temp == null || temp.Cost == null) {\r\n\t\t// \t\t\t\tErrorList.push(\"Fee Cost not defined for \" + element.ParameterValue3);\r\n\t\t// \t\t\t}\r\n\t\t// \t\t}\r\n\t\t// \t});\r\n\t\t// } else {\r\n\t\t// \t// other fixed fee types (each profile type )\r\n\t\t// \tpropsFixed.filter(x => x.ParameterValue5 != this.state.TransactionFeeParameterValue5).forEach(element => {\r\n\t\t// \t\tconst temp = dataFixed.find(x => x.FeeType != null && x.FeeType.ParameterValue == element.ParameterValue);\r\n\t\t// \t\tif (element.ParameterValue6 != \"O\") {\r\n\t\t// \t\t\tif (temp == null || temp.FeeAmount == null) {\r\n\t\t// \t\t\t\tErrorList.push(\"Fee Amount not defined for \" + element.ParameterValue3);\r\n\t\t// \t\t\t}\r\n\t\t// \t\t\tif (temp == null || temp.Cost == null) {\r\n\t\t// \t\t\t\tErrorList.push(\"Fee Cost not defined for \" + element.ParameterValue3);\r\n\t\t// \t\t\t}\r\n\t\t// \t\t}\r\n\t\t// \t});\r\n\t\t// }\r\n\t\tif (profile.FeeProfileTypeStr == FeeProfileType.CombineUnWeighted || profile.FeeProfileTypeStr == FeeProfileType.CombineWeighted) {\r\n\t\t\tWeightedModelList.forEach(element => {\r\n\t\t\t\tif (element == null || element.LevelFrom == null || element.LevelFrom == \"\") {\r\n\t\t\t\t\tErrorList.push(\"Level from fields must be filled\");\r\n\t\t\t\t}\r\n\t\t\t\tif (element == null || element.LevelTo == null || element.LevelTo == \"\") {\r\n\t\t\t\t\tErrorList.push(\"Level to fields must be filled\");\r\n\t\t\t\t}\r\n\t\t\t\tif (element == null || element.FeeAmount == null || element.FeeAmount == \"\") {\r\n\t\t\t\t\tErrorList.push(\"Amount fields must be filled\");\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\tif (WeightedModelList.length < 5) {\r\n\t\t\t\tErrorList.push(\"All combine levels must be filled\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (profile.FeeProfileTypeStr == FeeProfileType.Weighed || profile.FeeProfileTypeStr == FeeProfileType.UnWeighed) {\r\n\t\t\tWeightedModelList.forEach(element => {\r\n\t\t\t\tif (element == null || element.LevelFrom == null || element.LevelFrom == \"\") {\r\n\t\t\t\t\tErrorList.push(\"Level from fields must be filled\");\r\n\t\t\t\t}\r\n\t\t\t\tif (element == null || element.LevelTo == null || element.LevelTo == \"\") {\r\n\t\t\t\t\tErrorList.push(\"Level to fields must be filled\");\r\n\t\t\t\t}\r\n\t\t\t\tif (element == null || element.FeeAmount == null || element.FeeAmount == \"\") {\r\n\t\t\t\t\tErrorList.push(\"Amount fields must be filled\");\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\tif (WeightedModelList.length < 10) {\r\n\t\t\t\tErrorList.push(\"All weighted levels must be filled\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// every profile type has periodic fee \r\n\t\t// propsPeriodic.forEach(element => {\r\n\t\t// \tconst temp = dataPeriodic.find(x => x.FeeType != null && x.FeeType.ParameterValue == element.ParameterValue);\r\n\t\t// \tif (element.ParameterValue6 != \"O\") {\r\n\t\t// \t\tif (temp == null || temp.FeeAmount == null) {\r\n\t\t// \t\t\tErrorList.push(\"Fee Amount not defined for \" + element.ParameterValue3);\r\n\t\t// \t\t}\r\n\t\t// \t\tif (temp == null || temp.Cost == null) {\r\n\t\t// \t\t\tErrorList.push(\"Fee Cost not defined for \" + element.ParameterValue3);\r\n\t\t// \t\t}\r\n\t\t// \t}\r\n\t\t// });\r\n\r\n\t\t// check interval\r\n\t\tvar interval = moment.duration(DateHelper.ToMoment(profile.ValidTo).diff(DateHelper.GetDate())).asDays();\r\n\t\tif (interval < 30) {\r\n\t\t\tErrorList.push(\"Limit profile must be valid In next 30 days ! (Check Valid Date)\");\r\n\t\t}\r\n\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", ErrorList.slice(0, 10).map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n \r\n\t\treturn true;\r\n\t}\r\n\r\n\tOperationCheck = (workflowId, after, accessToken) => {\r\n\t\tif (this.Validate())\r\n\t\t\tthis.UpdateRecord(workflowId, after, accessToken);\r\n\t}\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\thandleListItemChangeFixed = (name, newValue, code) => {\r\n\t\tconst array = this.state.FixedModelList;\r\n\t\tconst item = array.find(x => x.FeeType != null && x.FeeType.ParameterValue == code);\r\n\t\tif (item == null) {\r\n\t\t\tconst feetype = { ParameterValue: code };\r\n\t\t\tconst temp = { Id: 0, LimitProfileId: this.state.ProfileModel.Id, FeeType: feetype };\r\n\t\t\ttemp[name] = newValue;\r\n\t\t\tarray.push(temp);\r\n\t\t} else {\r\n\t\t\titem[name] = newValue;\r\n\t\t}\r\n\r\n\t\tthis.setState({ FixedModelList: array });\r\n\t}\r\n\r\n\thandleListItemChangePeriodic = (name, newValue, code) => {\r\n\t\tconst array = this.state.PeriodicModelList;\r\n\t\tconst item = array.find(x => x.FeeType != null && x.FeeType.ParameterValue == code);\r\n\t\tif (item == null) {\r\n\t\t\tconst feetype = { ParameterValue: code };\r\n\t\t\tconst temp = { Id: 0, LimitProfileId: this.state.ProfileModel.Id, FeeType: feetype };\r\n\t\t\ttemp[name] = newValue;\r\n\t\t\tarray.push(temp);\r\n\t\t} else {\r\n\t\t\titem[name] = newValue;\r\n\t\t}\r\n\r\n\t\tthis.setState({ PeriodicModelList: array }, () => console.log(\"PeriodicModelList \", this.state.PeriodicModelList));\r\n\t}\r\n\thandleListItemChangeScaled = (name, newValue, level, priority) => {\r\n\t\tconst array = [...this.state.WeightedModelList];\r\n\t\tconst item = array.find(x => x.LevelId == level && x.PriorityType != null && x.PriorityType.ParameterValue == priority);\r\n\t\tif (item == null) {\r\n\t\t\tconst data = {\r\n\t\t\t\tLevelId: level,\r\n\t\t\t\tTxnEffect: { ParameterValue: PriorityRegularType.None },\r\n\t\t\t\tPriorityType: { ParameterValue: priority },\r\n\t\t\t\tId: 0\r\n\t\t\t};\r\n\t\t\tdata[name] = newValue;\r\n\t\t\tarray.push(data);\r\n\t\t} else {\r\n\t\t\titem[name] = newValue;\r\n\t\t}\r\n\t\tthis.setState({ WeightedModelList: array });\r\n\t}\r\n\thandleListItemChangeCombined = (name, newValue, level) => {\r\n\t\tconst array = [...this.state.WeightedModelList];\r\n\t\tconst item = array.find(x => x.LevelId == level && x.IsCombineScale == true);\r\n\t\tif (item == null) {\r\n\t\t\tconst data = {\r\n\t\t\t\tTxnEffect: { ParameterValue: TxnEffect.None },\r\n\t\t\t\tPriorityType: { ParameterValue: PriorityRegularType.None },\r\n\t\t\t\tLevelId: level,\r\n\t\t\t\tIsCombineScale: true,\r\n\t\t\t\tId: 0\r\n\t\t\t};\r\n\t\t\tdata[name] = newValue;\r\n\t\t\tarray.push(data);\r\n\t\t} else {\r\n\t\t\titem[name] = newValue;\r\n\t\t}\r\n\t\tthis.setState({ WeightedModelList: array });\r\n\t}\r\n\tDeleteRecord(workflowId, after, accessToken) {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst header = { ...this.state.ProfileModel };\r\n\t\tif (header != null && header.Id != 0 && header.Id != null && header.Id >= 0) {\r\n\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tProxy.GET(\r\n\t\t\t\t\"/bankapi/v1.0/FeeProfile/Delete/Id?Id=\" + header.Id,\r\n\t\t\t\tresponseData => this.handleDelete(responseData, after),\r\n\t\t\t\tthis.errorDefinitionCallback,\r\n\t\t\t\tworkflowId,\r\n\t\t\t\taccessToken\r\n\t\t\t);\r\n\t\t} else {\r\n\t\t\tthis.ShowMessage(\"info\", \"Invalid\", \"Please select profile first !\");\r\n\t\t}\r\n\r\n\t}\r\n\tUpdateRecord(workflowId, after, accessToken) {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst request = {};\r\n\t\tconst profile = { ...this.state.ProfileModel };\r\n\r\n\t\trequest.Profile = profile;\r\n\t\trequest.Periodic = this.state.PeriodicModelList;\r\n\t\trequest.Fixed = this.state.FixedModelList;\r\n\t\trequest.Scale = this.state.WeightedModelList;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/FeeProfile/Update\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => this.handleUpdate(responseData, after),\r\n\t\t\tthis.errorDefinitionCallback,\r\n\t\t\tworkflowId,\r\n\t\t\taccessToken\r\n\t\t);\r\n\r\n\t}\r\n\tFetchData() {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst header = { ...this.state.ProfileModel };\r\n\t\tif (header.Id != 0 && header.Id != null) {\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tProxy.GET(\r\n\t\t\t\t\"/bankapi/v1.0/FeeProfileFixedDetail/GetById/Id?Id=\" + header.Id,\r\n\t\t\t\tthis.handleResponse,\r\n\t\t\t\tthis.errorDefinitionCallback\r\n\t\t\t);\r\n\t\t}\r\n\t}\r\n\thandleResponse(responseData) {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tconsole.log(\"getall\", responseData.IsSucceeded + \"\");\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error !\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t} else {\r\n\t\t\tif (responseData.Item != null) {\r\n\t\t\t\tthis.setState({ FixedModelList: responseData.Item || [] });\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\thandleUpdate(responseData, after) {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tconsole.log(\"update\", responseData.IsSucceeded + \"\");\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error !\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t} else {\r\n\t\t\tif (responseData.Item != null) {\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tFixedModelList: responseData.Item.Fixed || [],\r\n\t\t\t\t\tPeriodicModelList: responseData.Item.Periodic || [],\r\n\t\t\t\t\tWeightedModelList: responseData.Item.Scale || []\r\n\t\t\t\t});\r\n\t\t\t\tif (after) after();\r\n\t\t\t\tvar temp = responseData.Item.Profile;\r\n\t\t\t\ttemp.FeeProfileTypeStr = temp.FeeProfileType.ParameterValue;\r\n\t\t\t\ttemp.IsSupportWeighted = temp.Program.IsSupportWeighted;\r\n\t\t\t\tthis.setState({ ProfileModel: temp }, () => console.log(\"profile\", this.state.ProfileModel));\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Changes Saved Sucesfully.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\thandleDelete(responseData, after) {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error !\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (after) after();\r\n\t\tthis.ShowMessage(\"success\", \"Success\", \"Deleted !\");\r\n\t\tthis.ClearData();\r\n\t}\r\n\terrorDefinitionCallback(error) {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"Error !\", \"An error occurred while requesting data\" + error);\r\n\t}\r\n\thandleChangeProfile = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.ProfileModel };\r\n\t\tif (name == \"ProgramId\" && data != null) {\r\n\t\t\tthis.FetchPropFromParameter(newValue);\r\n\t\t\tconst temp = this.state.ReadOnlyData;\r\n\t\t\ttemp.Description = data.Description;\r\n\t\t\tthis.setState({ ReadOnlyData: temp });\r\n\r\n\t\t\tmodel.IsSupportWeighted = data.IsSupportWeighted;\r\n\t\t\tmodel.FeeProfileTypeStr = null;\r\n\t\t}\r\n\t\tif (name == \"FeeProfileTypeId\" && data != null) {\r\n\t\t\tmodel.FeeProfileTypeStr = data.ParameterValue;\r\n\t\t\tthis.setState({\r\n\t\t\t\tWeightedModelList: [],\r\n\t\t\t\tFixedModelList: []\r\n\t\t\t});\r\n\t\t}\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ ProfileModel: model });\r\n\t}\r\n\tClearData() {\r\n\t\tvar temp = { Id: 0 };\r\n\t\tthis.setState({\r\n\t\t\tFixedModelList: [],\r\n\t\t\tFixedPropList: [],\r\n\t\t\tPeriodicPropList: [],\r\n\t\t\tProfileModel: temp,\r\n\t\t\tPeriodicModelList: [],\r\n\t\t\tReadOnlyData: {},\r\n\t\t\tFeeTypes: [],\r\n\t\t\tWeightedModelList: [],\r\n\t\t\tvModel: {}\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\tshowConfirmMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} OnConfirm={() => this.UpdateRecord()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({ alert: null });\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tRenderOrganizationUniqueIdSelect = (d) => {\r\n\t\tif (window.OrganizationUniqueId != 5000) {\r\n\t\t const ProfileModel = { ...this.state.ProfileModel };\r\n\t\t ProfileModel[\"OrganizationUniqueId\"] = d.OrganizationUniqueId;\r\n\t\t this.setState({ ProfileModel: ProfileModel });\r\n\t\t}\r\n \r\n\t\treturn d.OrganizationUniqueId + \"-\" + d.OrganizationName;\r\n\t };\r\n\t \r\n\trender() {\r\n\t\tconst { FixedModelList, FixedPropList, PeriodicPropList, ProfileModel, PeriodicModelList, ReadOnlyData, isLoading, FeeTypes, WeightedModelList, vModel } = this.state;\r\n\t\tconst { Disabled: DisabledProb } = this.props;\r\n\t\tvar Disabled = DisabledProb || this.monitorMode;\r\n\t\tconst CM1 = WeightedModelList.find(x => x.LevelId == 1 && x.IsCombineScale == true) == null ? {} : WeightedModelList.find(x => x.LevelId == 1 && x.IsCombineScale == true);\r\n\t\tconst CM2 = WeightedModelList.find(x => x.LevelId == 2 && x.IsCombineScale == true) == null ? {} : WeightedModelList.find(x => x.LevelId == 2 && x.IsCombineScale == true);\r\n\t\tconst CM3 = WeightedModelList.find(x => x.LevelId == 3 && x.IsCombineScale == true) == null ? {} : WeightedModelList.find(x => x.LevelId == 3 && x.IsCombineScale == true);\r\n\t\tconst CM4 = WeightedModelList.find(x => x.LevelId == 4 && x.IsCombineScale == true) == null ? {} : WeightedModelList.find(x => x.LevelId == 4 && x.IsCombineScale == true);\r\n\t\tconst CM5 = WeightedModelList.find(x => x.LevelId == 5 && x.IsCombineScale == true) == null ? {} : WeightedModelList.find(x => x.LevelId == 5 && x.IsCombineScale == true);\r\n\r\n\t\tconst RG1 = WeightedModelList.find(x => x.LevelId == 1 && x.PriorityType != null && x.PriorityType.ParameterValue == PriorityRegularType.Regular) == null ? {} : WeightedModelList.find(x => x.LevelId == 1 && x.PriorityType.ParameterValue == PriorityRegularType.Regular);\r\n\t\tconst RG2 = WeightedModelList.find(x => x.LevelId == 2 && x.PriorityType != null && x.PriorityType.ParameterValue == PriorityRegularType.Regular) == null ? {} : WeightedModelList.find(x => x.LevelId == 2 && x.PriorityType.ParameterValue == PriorityRegularType.Regular);\r\n\t\tconst RG3 = WeightedModelList.find(x => x.LevelId == 3 && x.PriorityType != null && x.PriorityType.ParameterValue == PriorityRegularType.Regular) == null ? {} : WeightedModelList.find(x => x.LevelId == 3 && x.PriorityType.ParameterValue == PriorityRegularType.Regular);\r\n\t\tconst RG4 = WeightedModelList.find(x => x.LevelId == 4 && x.PriorityType != null && x.PriorityType.ParameterValue == PriorityRegularType.Regular) == null ? {} : WeightedModelList.find(x => x.LevelId == 4 && x.PriorityType.ParameterValue == PriorityRegularType.Regular);\r\n\t\tconst RG5 = WeightedModelList.find(x => x.LevelId == 5 && x.PriorityType != null && x.PriorityType.ParameterValue == PriorityRegularType.Regular) == null ? {} : WeightedModelList.find(x => x.LevelId == 5 && x.PriorityType.ParameterValue == PriorityRegularType.Regular);\r\n\r\n\t\tconst PR1 = WeightedModelList.find(x => x.LevelId == 1 && x.PriorityType != null && x.PriorityType.ParameterValue == PriorityRegularType.Priority) == null ? {} : WeightedModelList.find(x => x.LevelId == 1 && x.PriorityType.ParameterValue == PriorityRegularType.Priority);\r\n\t\tconst PR2 = WeightedModelList.find(x => x.LevelId == 2 && x.PriorityType != null && x.PriorityType.ParameterValue == PriorityRegularType.Priority) == null ? {} : WeightedModelList.find(x => x.LevelId == 2 && x.PriorityType.ParameterValue == PriorityRegularType.Priority);\r\n\t\tconst PR3 = WeightedModelList.find(x => x.LevelId == 3 && x.PriorityType != null && x.PriorityType.ParameterValue == PriorityRegularType.Priority) == null ? {} : WeightedModelList.find(x => x.LevelId == 3 && x.PriorityType.ParameterValue == PriorityRegularType.Priority);\r\n\t\tconst PR4 = WeightedModelList.find(x => x.LevelId == 4 && x.PriorityType != null && x.PriorityType.ParameterValue == PriorityRegularType.Priority) == null ? {} : WeightedModelList.find(x => x.LevelId == 4 && x.PriorityType.ParameterValue == PriorityRegularType.Priority);\r\n\t\tconst PR5 = WeightedModelList.find(x => x.LevelId == 5 && x.PriorityType != null && x.PriorityType.ParameterValue == PriorityRegularType.Priority) == null ? {} : WeightedModelList.find(x => x.LevelId == 5 && x.PriorityType.ParameterValue == PriorityRegularType.Priority);\r\n\r\n\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\r\n\t\t\t\t 0,\r\n\t\t\t\t\t\tModelFunction: () => {\r\n\t\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\t\tProfile: this.state.ProfileModel,\r\n\t\t\t\t\t\t\t\tPeriodic: this.state.PeriodicModelList,\r\n\t\t\t\t\t\t\t\tFixed: this.state.FixedModelList,\r\n\t\t\t\t\t\t\t\tScale: this.state.WeightedModelList\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\tFillDataFromModel: model => {\r\n\t\t\t\t\t\t\tif (model.Profile)\r\n\t\t\t\t\t\t\t\tthis.FetchPropFromParameter(model.Profile.ProgramId);\r\n\t\t\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\t\t\tProfileModel: model.Profile,\r\n\t\t\t\t\t\t\t\tPeriodicModelList: model.Periodic,\r\n\t\t\t\t\t\t\t\tFixedModelList: model.Fixed,\r\n\t\t\t\t\t\t\t\tWeightedModelList: model.Scale\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{ Code: \"Clear\", OnClick: () => this.ClearData(), Disabled: Disabled },\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tDisableWorkflow: true,\r\n\t\t\t\t\t\tCode: \"Submit\",\r\n\t\t\t\t\t\tRowId: this.state.ProfileModel.Id,\r\n\t\t\t\t\t\tOnClick: this.OperationCheck, Disabled: Disabled || ProfileModel.Id > 0,\r\n\t\t\t\t\t\tModelFunction: () => {\r\n\t\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\t\tProfile: this.state.ProfileModel,\r\n\t\t\t\t\t\t\t\tPeriodic: this.state.PeriodicModelList,\r\n\t\t\t\t\t\t\t\tFixed: this.state.FixedModelList,\r\n\t\t\t\t\t\t\t\tScale: this.state.WeightedModelList\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\tFillDataFromModel: model => {\r\n\t\t\t\t\t\t\tif (model.Profile)\r\n\t\t\t\t\t\t\t\tthis.FetchPropFromParameter(model.Profile.ProgramId);\r\n\t\t\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\t\t\tProfileModel: model.Profile,\r\n\t\t\t\t\t\t\t\tPeriodicModelList: model.Periodic,\r\n\t\t\t\t\t\t\t\tFixedModelList: model.Fixed,\r\n\t\t\t\t\t\t\t\tWeightedModelList: model.Scale\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\tValidationFunction: this.Validate\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tDisableWorkflow: true,\r\n\t\t\t\t\t\tCode: \"Update\",\r\n\t\t\t\t\t\tRowId: this.state.ProfileModel.Id,\r\n\t\t\t\t\t\tOnClick: this.OperationCheck, Disabled: Disabled || !ProfileModel.Id > 0,\r\n\t\t\t\t\t\tModelFunction: () => {\r\n\t\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\t\tProfile: this.state.ProfileModel,\r\n\t\t\t\t\t\t\t\tPeriodic: this.state.PeriodicModelList,\r\n\t\t\t\t\t\t\t\tFixed: this.state.FixedModelList,\r\n\t\t\t\t\t\t\t\tScale: this.state.WeightedModelList\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\tFillDataFromModel: model => {\r\n\t\t\t\t\t\t\tif (model.Profile)\r\n\t\t\t\t\t\t\t\tthis.FetchPropFromParameter(model.Profile.ProgramId);\r\n\t\t\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\t\t\tProfileModel: model.Profile,\r\n\t\t\t\t\t\t\t\tPeriodicModelList: model.Periodic,\r\n\t\t\t\t\t\t\t\tFixedModelList: model.Fixed,\r\n\t\t\t\t\t\t\t\tWeightedModelList: model.Scale\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\tValidationFunction: this.Validate\r\n\t\t\t\t\t}\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t 0 ? true : Disabled} Name=\"ProgramId\" LabelText=\"Program\" Value={ProfileModel.ProgramId || \"\"} ValueChanged={this.handleChangeProfile} KeyValueMember=\"Id\" TextValueMember=\"Description\" Method=\"GET\" Url=\"/bankapi/v1.0/Bank/ValidBankProgramsForFeeProfile\" DataRoot=\"Item\" Required\r\n\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.ProgramId} />\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{ProfileModel.IsSupportWeighted && (\r\n\t\t\t\t\t\t\t\t\t\t 0 ? true : Disabled}\r\n\t\t\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.FeeProfileTypeId}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t{!ProfileModel.IsSupportWeighted && (\r\n\t\t\t\t\t\t\t\t\t\t 0 ? true : Disabled}\r\n\t\t\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.FeeProfileTypeId}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t{((ProfileModel.FeeProfileTypeStr == FeeProfileType.Fixed && ProfileModel.IsSupportWeighted) || (ProfileModel.ProgramId == 12)) && (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t

Transaction Fees

\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{FeeTypes != null && FeeTypes.filter(x => x == this.state.TransactionFeeLabelTitleParameter).map(x => x != null && (\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t

{x}

\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{FixedPropList != null && FixedPropList.filter(y => y.ParameterValue4 == x && ((ProfileModel.ProgramId == 12 && ProfileModel.FeeProfileTypeStr != FeeProfileType.Fixed) ? y.ParameterValue.endsWith(\"RealTime\") : true)).map(item => (\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue) == null ? \"\" : FixedModelList.find(x => x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue).FeeAmount}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={(name, value) => this.handleListItemChangeFixed(name, value, item.ParameterValue)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={Disabled}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue) == null ? \"\" : FixedModelList.find(x => x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue).FeeAmount}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tValue={FixedModelList.find(x => x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue) == null ? \"\" : FixedModelList.find(x => x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue).Cost}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={(name, value) => this.handleListItemChangeFixed(name, value, item.ParameterValue)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={Disabled}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue) == null ? \"\" : FixedModelList.find(x => x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue).IsCommissionCalculation}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={(name, value) => this.handleListItemChangeFixed(name, value, item.ParameterValue)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={Disabled}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t)}\r\n\r\n\t\t\t\t{((ProfileModel.FeeProfileTypeStr == FeeProfileType.CombineWeighted || ProfileModel.FeeProfileTypeStr == FeeProfileType.CombineUnWeighted) && (ProfileModel.IsSupportWeighted)) && (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t

Combine Scale Fees

\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t

Level

\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t

Count From

\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t

To

\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t

Fee

\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t

Cost

\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t

Commission

\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t

Level 1

\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeCombined(name, value, 1)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeCombined(name, value, 1)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeCombined(name, value, 1)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeCombined(name, value, 1)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeCombined(name, value, 1)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t

Level 2

\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeCombined(name, value, 2)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeCombined(name, value, 2)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeCombined(name, value, 2)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeCombined(name, value, 2)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeCombined(name, value, 2)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t

Level 3

\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeCombined(name, value, 3)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeCombined(name, value, 3)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeCombined(name, value, 3)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeCombined(name, value, 3)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeCombined(name, value, 3)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t

Level 4

\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeCombined(name, value, 4)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeCombined(name, value, 4)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeCombined(name, value, 4)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeCombined(name, value, 4)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeCombined(name, value, 4)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t

Level 5

\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeCombined(name, value, 5)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeCombined(name, value, 5)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeCombined(name, value, 5)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeCombined(name, value, 5)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeCombined(name, value, 5)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t)}\r\n\t\t\t\t{((ProfileModel.FeeProfileTypeStr == FeeProfileType.Weighed) || (ProfileModel.FeeProfileTypeStr == FeeProfileType.UnWeighed)) && (ProfileModel.IsSupportWeighted) && (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t

Charge Per Transaction - Regular Debit&Credit

\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t

Level

\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t

Count From

\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t

To

\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t

Fee

\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t

Cost

\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t

Commission

\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t

Level 1

\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 1, PriorityRegularType.Regular)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 1, PriorityRegularType.Regular)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 1, PriorityRegularType.Regular)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 1, PriorityRegularType.Regular)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 1, PriorityRegularType.Regular)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t

Level 2

\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 2, PriorityRegularType.Regular)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 2, PriorityRegularType.Regular)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 2, PriorityRegularType.Regular)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 2, PriorityRegularType.Regular)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 2, PriorityRegularType.Regular)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t

Level 3

\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 3, PriorityRegularType.Regular)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 3, PriorityRegularType.Regular)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 3, PriorityRegularType.Regular)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 3, PriorityRegularType.Regular)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 3, PriorityRegularType.Regular)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t

Level 4

\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 4, PriorityRegularType.Regular)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 4, PriorityRegularType.Regular)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 4, PriorityRegularType.Regular)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 4, PriorityRegularType.Regular)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 4, PriorityRegularType.Regular)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t

Level 5

\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 5, PriorityRegularType.Regular)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 5, PriorityRegularType.Regular)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 5, PriorityRegularType.Regular)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 5, PriorityRegularType.Regular)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 5, PriorityRegularType.Regular)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t

Charge Per Transaction - Priority Debit&Credit

\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t

Level

\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t

Count From

\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t

To

\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t

Fee

\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t

Cost

\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t

Commission

\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t

Level 1

\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 1, PriorityRegularType.Priority)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 1, PriorityRegularType.Priority)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 1, PriorityRegularType.Priority)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 1, PriorityRegularType.Priority)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 1, PriorityRegularType.Priority)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t

Level 2

\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 2, PriorityRegularType.Priority)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 2, PriorityRegularType.Priority)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 2, PriorityRegularType.Priority)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 2, PriorityRegularType.Priority)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 2, PriorityRegularType.Priority)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t

Level 3

\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 3, PriorityRegularType.Priority)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 3, PriorityRegularType.Priority)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 3, PriorityRegularType.Priority)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 3, PriorityRegularType.Priority)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 3, PriorityRegularType.Priority)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t

Level 4

\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 4, PriorityRegularType.Priority)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 4, PriorityRegularType.Priority)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 4, PriorityRegularType.Priority)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 4, PriorityRegularType.Priority)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 4, PriorityRegularType.Priority)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t

Level 5

\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 5, PriorityRegularType.Priority)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 5, PriorityRegularType.Priority)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 5, PriorityRegularType.Priority)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 5, PriorityRegularType.Priority)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChangeScaled(name, value, 5, PriorityRegularType.Priority)} Disabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t)}\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t

Other Fees - {ReadOnlyData.Description}

\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{FeeTypes != null && FeeTypes.filter(x => x != this.state.TransactionFeeLabelTitleParameter).map(x => x != null && (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t

{x}

\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{FixedPropList != null && FixedPropList.filter(y => y.ParameterValue4 == x).map(item => (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue) == null ? \"\" : FixedModelList.find(x => x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue).FeeAmount}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={(name, value) => this.handleListItemChangeFixed(name, value, item.ParameterValue)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={Disabled}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue) == null ? \"\" : FixedModelList.find(x => x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue).FeeAmount}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tValue={FixedModelList.find(x => x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue) == null ? \"\" : FixedModelList.find(x => x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue).Cost}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={(name, value) => this.handleListItemChangeFixed(name, value, item.ParameterValue)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={Disabled}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue) == null ? \"\" : FixedModelList.find(x => x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue).IsCommissionCalculation}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={(name, value) => this.handleListItemChangeFixed(name, value, item.ParameterValue)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={Disabled}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t))}\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t

Periodic Fees

\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{PeriodicPropList != null && PeriodicPropList.map(item => (\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue) == null ? \"\" : PeriodicModelList.find(x => x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue).FeeAmount}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={(name, value) => this.handleListItemChangePeriodic(name, value, item.ParameterValue)}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={Disabled}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue) == null ? \"\" : PeriodicModelList.find(x => x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue).FeeAmount}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={PeriodicModelList.find(x => x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue) == null ? \"\" : PeriodicModelList.find(x => x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue).Cost}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={(name, value) => this.handleListItemChangePeriodic(name, value, item.ParameterValue)}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={Disabled}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue) == null ? \"\" : PeriodicModelList.find(x => x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue).IsCommissionCalculation}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={(name, value) => this.handleListItemChangePeriodic(name, value, item.ParameterValue)}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={Disabled}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nFeeProfile.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tFeeType: PropTypes.func\r\n};\r\n\r\n\r\nexport default withArtifex(FeeProfile, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { EditIcon } from \"core/Icons\";\r\nimport moment from \"moment\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericExpansionPanel, GenericGrid, GenericLabel, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton.jsx\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { LimitProfileType, GridColumnType } from \"views/Constants/Constant\";\r\n\r\nconst emptyObject = {};\r\nclass ClientLimitProfile extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tvModel: {},\r\n\t\t\tProfileModel: {},\r\n\t\t\tLimitModelList: [],\r\n\t\t\tLimitPropList: [],\r\n\t\t\tLimitProfiles: [],\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\r\n\t\tthis.ClearData = this.ClearData.bind(this);\r\n\t\tthis.DeleteRecord = this.DeleteRecord.bind(this);\r\n\t\tthis.UpdateRecord = this.UpdateRecord.bind(this);\r\n\t\tthis.FetchData = this.FetchData.bind(this);\r\n\t\tthis.errorDefinitionCallback = this.errorDefinitionCallback.bind(this);\r\n\t\tthis.handleResponse = this.handleResponse.bind(this);\r\n\t\tthis.handleUpdate = this.handleUpdate.bind(this);\r\n\t\tthis.handleDelete = this.handleDelete.bind(this);\r\n\t\tthis.Validate = this.Validate.bind(this);\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\r\n\t\tif (setAppLeftTitle)\r\n\t\t\tsetAppLeftTitle(\"Client Limit Profile\");\r\n\t\tif (setAppCenterTitle)\r\n\t\t\tsetAppCenterTitle(\"LIMIT PROFILES\");\r\n\r\n\t\tthis.FetchAllLimitProfile();\r\n\t}\r\n\r\n\tFetchPropFromParameter = (programId) => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tif (programId != null && programId != \"\") {\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/bankapi/v1.0/LimitProfile/GetLimitTypesByProgramId\",\r\n\t\t\t\tprogramId,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\t\tthis.setState({ LimitPropList: responseData.Item || [] });\r\n\t\t\t\t\t\tconst ca = [...new Set(responseData.Item.map(x => x.ParameterValue4))];\r\n\t\t\t\t\t\tthis.setState({ isLoading: false, FeeTypes: ca });\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t} else {\r\n\t\t\tthis.setState({ isLoading: false, FeeTypes: [] });\r\n\r\n\r\n\t\t}\r\n\t}\r\n\tFetchAllLimitProfile = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.GET(\r\n\t\t\t\"/bankapi/v1.0/LimitProfile/GetAll\",\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tLimitProfiles: responseData.Item == null ? [] : responseData.Item.filter(x => x.LimitProfileType != null && x.LimitProfileType.ParameterValue == LimitProfileType.ClientLimitProfile)\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tValidate() {\r\n\t\tvar ErrorList = [];\r\n\t\tconst dataLimit = this.state.LimitModelList;\r\n\t\tconst propsLimit = this.state.LimitPropList;\r\n\t\tconst profile = { ...this.state.ProfileModel };\r\n\t\tconst vModel = this.state.vModel;\r\n\r\n\t\tif (profile.OrganizationUniqueId == null || profile.OrganizationUniqueId == \"\") {\r\n\t\t\tvModel.OrganizationUniqueId = true;\r\n\t\t\tErrorList.push(\"OrganizationUniqueId must be filled\");\r\n\t\t} else { vModel.OrganizationUniqueId = false; }\r\n\t\tif (profile.ProgramId == null || profile.ProgramId == \"\") {\r\n\t\t\tvModel.ProgramId = true;\r\n\t\t\tErrorList.push(\"Program must be filled\");\r\n\t\t} else { vModel.ProgramId = false; }\r\n\t\tif (profile.ProfileName == null || profile.ProfileName == \"\") {\r\n\t\t\tvModel.ProfileName = true;\r\n\t\t\tErrorList.push(\"Profile Name must be filled\");\r\n\t\t} else { vModel.ProfileName = false; }\r\n\t\tif (profile.ValidFrom == null || profile.ValidFrom == \"\") {\r\n\t\t\tvModel.ValidFrom = true;\r\n\t\t\tErrorList.push(\"Valid From data must be filled\");\r\n\t\t} else { vModel.ValidFrom = false; }\r\n\t\tif (profile.ValidTo == null || profile.ValidTo == \"\") {\r\n\t\t\tvModel.ValidTo = true;\r\n\t\t\tErrorList.push(\"Valid To date must be filled\");\r\n\t\t} else { vModel.ValidTo = false; }\r\n\r\n\t\tthis.setState({ vModel });\r\n\t\tpropsLimit.forEach(element => {\r\n\t\t\tconst temp = dataLimit.find(x => x.LimitType != null && x.LimitType.ParameterValue == element.ParameterValue);\r\n\t\t\tif (element.ParameterValue6 != \"O\" && element.ParameterValue.includes(\"MinTransactionPerFile\")) {\r\n\t\t\t\tif (temp == null || temp.LimitCount == null) {\r\n\t\t\t\t\tErrorList.push(\"Minimum Transaction Per File count not defined for \" + element.ParameterValue3);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tvar interval = moment.duration(DateHelper.ToMoment(profile.ValidTo).diff(DateHelper.GetDate())).asDays();\r\n\t\tif (interval < 30) {\r\n\t\t\tErrorList.push(\"Limit profile must be valid In next 30 days ! (Check Valid Date)\");\r\n\t\t}\r\n\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", ErrorList.slice(0, 10).map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tOperationCheck = (workflowId, after, accessToken) => {\r\n\t\tif (this.Validate())\r\n\t\t\tthis.UpdateRecord(workflowId, after, accessToken);\r\n\t}\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\thandleListItemChangeLimit = (name, newValue, code) => {\r\n\t\tconst array = this.state.LimitModelList;\r\n\t\tconst item = array.find(x => x.LimitType != null && x.LimitType.ParameterValue == code);\r\n\t\tif (item == null) {\r\n\t\t\tconst type = { ParameterValue: code };\r\n\t\t\tconst temp = { Id: 0, LimitProfileId: this.state.ProfileModel.Id, LimitType: type };\r\n\t\t\ttemp[name] = newValue;\r\n\t\t\tarray.push(temp);\r\n\t\t} else {\r\n\t\t\titem[name] = newValue;\r\n\t\t}\r\n\r\n\t\tthis.setState({ LimitModelList: array });\r\n\t}\r\n\tDeleteRecord(workflowId, after, accessToken) {\r\n\t\tconst header = { ...this.state.ProfileModel };\r\n\t\tif (header != null && header.Id != 0 && header.Id != null && header.Id >= 0) {\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tProxy.GET(\r\n\t\t\t\t\"/bankapi/v1.0/LimitProfile/Delete/Id?Id=\" + header.Id,\r\n\t\t\t\tresponseData => this.handleDelete(responseData, after),\r\n\t\t\t\tthis.errorDefinitionCallback,\r\n\t\t\t\tworkflowId,\r\n\t\t\t\taccessToken\r\n\t\t\t);\r\n\t\t} else {\r\n\t\t\tthis.ShowMessage(\"info\", \"Invalid\", \"Please select profile first !\");\r\n\t\t\tthis.setState({ isLoading: false });\r\n\t\t}\r\n\r\n\t}\r\n\tUpdateRecord(workflowId, after, accessToken) {\r\n\t\tconst request = {};\r\n\t\trequest.Profile = this.state.ProfileModel;\r\n\t\trequest.Limit = this.state.LimitModelList;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\trequest.Profile.LimitProfileType = { ParameterValue: LimitProfileType.ClientLimitProfile };\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/LimitProfileDetail/Update\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => this.handleUpdate(responseData, after),\r\n\t\t\tthis.errorDefinitionCallback,\r\n\t\t\tworkflowId,\r\n\t\t\taccessToken\r\n\t\t);\r\n\r\n\t}\r\n\tFetchData(Id) {\r\n\t\tif (Id != null && Id != 0) {\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tProxy.GET(\r\n\t\t\t\t\"/bankapi/v1.0/LimitProfile/GetById/Id?Id=\" + Id,\r\n\t\t\t\tthis.handleResponse,\r\n\t\t\t\tthis.errorDefinitionCallback\r\n\t\t\t);\r\n\t\t}\r\n\t}\r\n\tSelectedRowChange = (e, index) => {\r\n\t\tconst model = this.state.LimitProfiles[index];\r\n\t\tthis.FetchData(model.Id);\r\n\t}\r\n\thandleResponse(responseData) {\r\n\t\tconsole.log(\"getall\", responseData.IsSucceeded + \"\");\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error !\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t} else {\r\n\t\t\tif (responseData.Item != null) {\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tLimitModelList: responseData.Item.Limit || [],\r\n\t\t\t\t\tProfileModel: responseData.Item.Profile || {}\r\n\t\t\t\t}, () => {\r\n\t\t\t\t\tvar programId = responseData.Item.Profile == null ? 0 : responseData.Item.Profile.Program == null ? 0 : responseData.Item.Profile.ProgramId;\r\n\t\t\t\t\tthis.FetchPropFromParameter(programId);\r\n\t\t\t\t});\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\thandleUpdate(responseData, after) {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error !\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\r\n\t\tthis.ClearData();\r\n\r\n\t\t// if (responseData.Item != null) {\r\n\t\t// \tthis.setState({\r\n\t\t// \t\tLimitModelList: responseData.Item.Limit || [],\r\n\t\t// \t\tProfileModel: responseData.Item.Profile || {}\r\n\t\t// \t});\r\n\t\t// }\r\n\t\tif (after) after();\r\n\t\tthis.ShowMessage(\"success\", \"Success\", \"Changes Saved Sucesfully.\");\r\n\t\tthis.FetchAllLimitProfile();\r\n\t}\r\n\r\n\thandleDelete(responseData, after) {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error !\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (after) after();\r\n\t\tthis.ShowMessage(\"success\", \"Success\", \"Deleted !\");\r\n\t\tthis.ClearData();\r\n\t\tthis.FetchAllLimitProfile();\r\n\r\n\t}\r\n\terrorDefinitionCallback(error) {\r\n\t\tthis.ShowMessage(\"error\", \"Error !\", \"An error occurred while requesting data\" + error);\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\thandleChangeProfile = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.ProfileModel };\r\n\t\tif (name == \"ProgramId\") {\r\n\t\t\tthis.FetchPropFromParameter(newValue);\r\n\t\t}\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ ProfileModel: model });\r\n\t}\r\n\tClearData() {\r\n\t\tvar temp = { Id: 0 };\r\n\t\tthis.setState({\r\n\t\t\tLimitModelList: [],\r\n\t\t\tProfileModel: temp,\r\n\t\t\tselected: null,\r\n\t\t\tisLoading: false,\r\n\t\t\tFeeTypes: []\r\n\t\t});\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\tshowConfirmMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} OnConfirm={() => this.UpdateRecord()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\r\n\tGetColumnsRowStyleColor(row) {\r\n\t\tif (!row) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tlet localDateUtc = DateHelper.GetLocalDateTimeAsUtc();\r\n\t\tlet condition = localDateUtc >= DateHelper.ToMoment(row.ValidFrom) &&\r\n\t\t\tlocalDateUtc <= DateHelper.ToMoment(row.ValidTo);\r\n\r\n\r\n\t\tthis.columnsRowStyleColor = {\r\n\t\t\tcolor: !condition\r\n\t\t\t\t? \"#FB3005\"\r\n\t\t\t\t: \"\"\r\n\t\t};\r\n\t\treturn this.columnsRowStyleColor;\r\n\t}\r\n\tRenderOrganizationUniqueIdSelect = (d) => {\r\n\t\tif (window.OrganizationUniqueId != 5000) {\r\n\t\t\tconst ProfileModel = { ...this.state.ProfileModel };\r\n\t\t\tProfileModel[\"OrganizationUniqueId\"] = d.OrganizationUniqueId;\r\n\t\t\tthis.setState({ ProfileModel: ProfileModel });\r\n\t\t}\r\n\r\n\t\treturn d.OrganizationUniqueId + \"-\" + d.OrganizationName;\r\n\t};\r\n\trender() {\r\n\t\tconst { LimitModelList, LimitPropList, ProfileModel, LimitProfiles, FeeTypes, vModel } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\r\n\t\tvar data = LimitProfiles.map(d => {\r\n\t\t\treturn {\r\n\t\t\t\tId: d.Id,\r\n\t\t\t\tProfileName: d.ProfileName || \"\",\r\n\t\t\t\tProgramId: d.ProgramId || \"\",\r\n\t\t\t\tProgram: d.Program == null ? \"\" : d.Program.Description || \"\",\r\n\t\t\t\tValidFrom: d.ValidFrom || \"\",\r\n\t\t\t\tValidTo: d.ValidTo || \"\",\r\n\t\t\t\tOrganizationUniqueId:d.OrganizationUniqueId||\"\",\r\n\t\t\t\tActions: (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t this.FetchData(d.Id)} />\r\n\t\t\t\t\t
\r\n\t\t\t\t)\r\n\t\t\t};\r\n\t\t});\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t 0,\r\n\t\t\t\t\t\tModelFunction: () => { return { Profile: this.state.ProfileModel, Limit: this.state.LimitModelList }; },\r\n\t\t\t\t\t\tFillDataFromModel: model => {\r\n\t\t\t\t\t\t\tif (model.Profile)\r\n\t\t\t\t\t\t\t\tthis.FetchPropFromParameter(model.Profile.ProgramId);\r\n\t\t\t\t\t\t\tthis.setState({ ProfileModel: model.Profile, LimitModelList: model.Limit });\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{ Code: \"Clear\", OnClick: () => this.ClearData(), Disabled: Disabled },\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tRowId: this.state.ProfileModel.Id,\r\n\t\t\t\t\t\tCode: \"Submit\", OnClick: this.OperationCheck, Disabled: Disabled || ProfileModel.Id > 0,\r\n\t\t\t\t\t\tModelFunction: () => { return { Profile: this.state.ProfileModel, Limit: this.state.LimitModelList }; },\r\n\t\t\t\t\t\tFillDataFromModel: model => {\r\n\t\t\t\t\t\t\tif (model.Profile)\r\n\t\t\t\t\t\t\t\tthis.FetchPropFromParameter(model.Profile.ProgramId);\r\n\t\t\t\t\t\t\tthis.setState({ ProfileModel: model.Profile, LimitModelList: model.Limit });\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\tValidationFunction: this.Validate\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tRowId: this.state.ProfileModel.Id,\r\n\t\t\t\t\t\tCode: \"Update\", OnClick: this.OperationCheck, Disabled: Disabled || !ProfileModel.Id > 0,\r\n\t\t\t\t\t\tModelFunction: () => { return { Profile: this.state.ProfileModel, Limit: this.state.LimitModelList }; },\r\n\t\t\t\t\t\tFillDataFromModel: model => {\r\n\t\t\t\t\t\t\tif (model.Profile)\r\n\t\t\t\t\t\t\t\tthis.FetchPropFromParameter(model.Profile.ProgramId);\r\n\t\t\t\t\t\t\tthis.setState({ ProfileModel: model.Profile, LimitModelList: model.Limit });\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\tValidationFunction: this.Validate\r\n\t\t\t\t\t}\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t 0 ? true : Disabled} Name=\"ProgramId\" LabelText=\"Program\" Value={ProfileModel.ProgramId} ValueChanged={this.handleChangeProfile} KeyValueMember=\"Id\" TextValueMember=\"Description\" Method=\"GET\" Url=\"/bankapi/v1.0/Bank/ValidBankProgramsForLimitProfile\" DataRoot=\"Item\" Required\r\n\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.ProgramId} />\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{FeeTypes != null && FeeTypes.map(x => x != null && (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t

{x}

\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{LimitPropList != null && LimitPropList.filter(y => y.ParameterValue4 == x && y.ParameterValue != null).map(item => (\r\n\t\t\t\t\t\t\t\t\t\t(item.ParameterValue5 != null && item.ParameterValue5 == \"C\") ? (\r\n\t\t\t\t\t\t\t\t\t\t\t< GridItem xs={6} key={item.Id} >\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t x.LimitType != null && x.LimitType.ParameterValue == item.ParameterValue) == null ? \"\" : LimitModelList.find(x => x.LimitType != null && x.LimitType.ParameterValue == item.ParameterValue).LimitCount}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={(name, value) => this.handleListItemChangeLimit(name, value, item.ParameterValue)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={Disabled}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t) : (item.ParameterValue5 != null && item.ParameterValue5 == \"A\") ? (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t x.LimitType != null && x.LimitType.ParameterValue == item.ParameterValue) == null ? \"\" : LimitModelList.find(x => x.LimitType != null && x.LimitType.ParameterValue == item.ParameterValue).LimitAmount}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={(name, value) => this.handleListItemChangeLimit(name, value, item.ParameterValue)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={Disabled}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t x.LimitType != null && x.LimitType.ParameterValue == item.ParameterValue) == null ? \"\" : LimitModelList.find(x => x.LimitType != null && x.LimitType.ParameterValue == item.ParameterValue).LimitAmount}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={(name, value) => this.handleListItemChangeLimit(name, value, item.ParameterValue)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={Disabled}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t x.LimitType != null && x.LimitType.ParameterValue == item.ParameterValue) == null ? \"\" : LimitModelList.find(x => x.LimitType != null && x.LimitType.ParameterValue == item.ParameterValue).LimitCount}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={(name, value) => this.handleListItemChangeLimit(name, value, item.ParameterValue)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t))}\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t (
{row.value}
)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Profile Name\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ProfileName\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (
{row.value}
)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Program\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"Program\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (
{row.value}
)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Valid From Date\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ValidFrom\",\r\n\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateUtc,\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (
{Formatter.FormatDateUtc(row.value)}
),\r\n\t\t\t\t\t\t\t\t\t\t\tfilterMethod: (filter, row, column) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn Formatter.FormatDateUtc(row[filter.id]).toLowerCase().startsWith(filter.value.toLowerCase());\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Valid To Date\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ValidTo\",\r\n\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateUtc,\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (
{Formatter.FormatDateUtc(row.value)}
),\r\n\t\t\t\t\t\t\t\t\t\t\tfilterMethod: (filter, row, column) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn Formatter.FormatDateUtc(row[filter.id]).toLowerCase().startsWith(filter.value.toLowerCase());\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n Header: \"OrganizationUniqueId\",\r\n accessor: \"OrganizationUniqueId\",\r\n show: window.OrganizationUniqueId != 5000?false:true\r\n }\r\n\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\tdefaultPageSize={5}\r\n\t\t\t\t\t\t\t\t\tRowSelected={index => {\r\n\t\t\t\t\t\t\t\t\t\tif (Disabled) return;\r\n\t\t\t\t\t\t\t\t\t\tthis.setState({ selected: index });\r\n\t\t\t\t\t\t\t\t\t\tthis.SelectedRowChange(null, index);\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\tSelectedIndex={this.state.selected}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nClientLimitProfile.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\n\r\nexport default withArtifex(ClientLimitProfile, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { EditIcon } from \"core/Icons\";\r\nimport moment from \"moment\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericExpansionPanel, GenericGrid, GenericLabel, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton.jsx\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { LimitProfileType, GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass UserLimitProfile extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tvModel: {},\r\n\t\t\tProfileModel: {},\r\n\t\t\tLimitModelList: [],\r\n\t\t\tLimitPropList: [],\r\n\t\t\tLimitProfiles: [],\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\r\n\t\tthis.ClearData = this.ClearData.bind(this);\r\n\t\tthis.DeleteRecord = this.DeleteRecord.bind(this);\r\n\t\tthis.UpdateRecord = this.UpdateRecord.bind(this);\r\n\t\tthis.FetchData = this.FetchData.bind(this);\r\n\t\tthis.errorDefinitionCallback = this.errorDefinitionCallback.bind(this);\r\n\t\tthis.handleResponse = this.handleResponse.bind(this);\r\n\t\tthis.handleUpdate = this.handleUpdate.bind(this);\r\n\t\tthis.handleDelete = this.handleDelete.bind(this);\r\n\t\tthis.Validate = this.Validate.bind(this);\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\r\n\t\tif (setAppLeftTitle)\r\n\t\t\tsetAppLeftTitle(\"User Limit Profile\");\r\n\t\tif (setAppCenterTitle)\r\n\t\t\tsetAppCenterTitle(\"LIMIT PROFILES\");\r\n\r\n\t\tthis.FetchPropFromParameter();\r\n\t\tthis.FetchAllLimitProfile();\r\n\t}\r\n\r\n\tFetchPropFromParameter = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Parameter/Search\",\r\n\t\t\t{\r\n\t\t\t\tParameterCode: \"LimitType\",\r\n\t\t\t\tParameterValue: \"\",\r\n\t\t\t\tParameterDesc: \"\",\r\n\t\t\t\tParameterValue2: \"USERLIMIT\"\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.setState({ LimitPropList: responseData.Item || [] });\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tFetchAllLimitProfile = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.GET(\r\n\t\t\t\"/bankapi/v1.0/LimitProfile/GetAll\",\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.setState({ LimitProfiles: responseData.Item.filter(x => x.LimitProfileType != null && x.LimitProfileType.ParameterValue == LimitProfileType.UserLimitProfile) || [] });\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tValidate() {\r\n\t\tvar ErrorList = [];\r\n\t\tconst dataLimit = this.state.LimitModelList;\r\n\t\tconst propsLimit = this.state.LimitPropList;\r\n\t\tconst profile = { ...this.state.ProfileModel };\r\n\t\tconst vModel = this.state.vModel;\r\n\r\n\t\tif (profile.ProgramId == null || profile.ProgramId == \"\") {\r\n\t\t\tvModel.ProgramId = true;\r\n\t\t\tErrorList.push(\"Program must be filled\");\r\n\t\t} else { vModel.ProgramId = false; }\r\n\t\tif (profile.ProfileName == null || profile.ProfileName == \"\") {\r\n\t\t\tvModel.ProfileName = true;\r\n\t\t\tErrorList.push(\"Profile Name must be filled\");\r\n\t\t} else { vModel.ProfileName = false; }\r\n\t\tif (profile.ValidFrom == null || profile.ValidFrom == \"\") {\r\n\t\t\tvModel.ValidFrom = true;\r\n\t\t\tErrorList.push(\"Valid From data must be filled\");\r\n\t\t} else { vModel.ValidFrom = false; }\r\n\t\tif (profile.ValidTo == null || profile.ValidTo == \"\") {\r\n\t\t\tvModel.ValidTo = true;\r\n\t\t\tErrorList.push(\"Valid To date must be filled\");\r\n\t\t} else { vModel.ValidTo = false; }\r\n\t\tthis.setState({ vModel });\r\n\t\t// propsLimit.forEach(element => {\r\n\t\t// \tconst temp = dataLimit.find(x => x.LimitType != null && x.LimitType.ParameterValue == element.ParameterValue);\r\n\t\t// \tif (temp == null || temp.LimitAmount == null || temp.LimitAmount == \"\") {\r\n\t\t// \t\tif (element.ParameterValue6 != \"O\") {\r\n\t\t// \t\t\tif (element.ParameterValue5 != \"C\") {\r\n\t\t// \t\t\t\tErrorList.push(\"Limit Amount not defined for \" + element.ParameterValue3);\r\n\t\t// \t\t\t}\r\n\t\t// \t\t}\r\n\t\t// \t}\r\n\t\t// \t if\t(temp == null || temp.LimitCount == null || temp.LimitCount == \"\"){\r\n\t\t// \t \tErrorList.push(\"Limit Count not defined for \" + element.ParameterValue3);\r\n\t\t// \t }\r\n\t\t// });\r\n\r\n\t\tvar interval = moment.duration(DateHelper.ToMoment(profile.ValidTo).diff(DateHelper.GetDate())).asDays();\r\n\t\tif (interval < 30) {\r\n\t\t\tErrorList.push(\"Limit profile must be valid In next 30 days ! (Check Valid Date)\");\r\n\t\t}\r\n\r\n\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", ErrorList.slice(0, 10).map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tOperationCheck = (workflowId, after) => {\r\n\t\tif (this.Validate())\r\n\t\t\tthis.UpdateRecord(workflowId, after);\r\n\t}\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\thandleListItemChangeLimit = (name, newValue, code) => {\r\n\t\tconst array = this.state.LimitModelList;\r\n\t\tconst item = array.find(x => x.LimitType != null && x.LimitType.ParameterValue == code);\r\n\t\tif (item == null) {\r\n\t\t\tconst type = { ParameterValue: code };\r\n\t\t\tconst temp = { Id: 0, LimitProfileId: this.state.ProfileModel.Id, LimitType: type };\r\n\t\t\ttemp[name] = newValue;\r\n\t\t\tarray.push(temp);\r\n\t\t} else {\r\n\t\t\titem[name] = newValue;\r\n\t\t}\r\n\r\n\t\tthis.setState({ LimitModelList: array });\r\n\t}\r\n\tDeleteRecord(workflowId, after) {\r\n\t\tconst header = { ...this.state.ProfileModel };\r\n\t\tif (header != null && header.Id != 0 && header.Id != null && header.Id >= 0) {\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tProxy.GET(\r\n\t\t\t\t\"/bankapi/v1.0/LimitProfile/Delete/Id?Id=\" + header.Id,\r\n\t\t\t\tresponseData => this.handleDelete(responseData, after),\r\n\t\t\t\tthis.errorDefinitionCallback,\r\n\t\t\t\tworkflowId\r\n\t\t\t);\r\n\t\t} else {\r\n\t\t\tthis.ShowMessage(\"info\", \"Invalid\", \"Please select profile first !\");\r\n\t\t}\r\n\r\n\t}\r\n\tUpdateRecord(workflowId, after) {\r\n\t\tconst request = {};\r\n\t\trequest.Profile = this.state.ProfileModel;\r\n\t\trequest.Limit = this.state.LimitModelList;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\trequest.Profile.LimitProfileType = { ParameterValue: LimitProfileType.UserLimitProfile };\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/LimitProfileDetail/Update\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => this.handleUpdate(responseData, after),\r\n\t\t\tthis.errorDefinitionCallback,\r\n\t\t\tworkflowId\r\n\t\t);\r\n\r\n\t}\r\n\tFetchData(Id) {\r\n\t\tif (Id != null && Id != 0) {\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tProxy.GET(\r\n\t\t\t\t\"/bankapi/v1.0/LimitProfile/GetById/Id?Id=\" + Id,\r\n\t\t\t\tthis.handleResponse,\r\n\t\t\t\tthis.errorDefinitionCallback\r\n\t\t\t);\r\n\t\t}\r\n\t}\r\n\tSelectedRowChange = (e, index) => {\r\n\t\tconst model = this.state.LimitProfiles[index];\r\n\t\tthis.FetchData(model.Id);\r\n\t}\r\n\thandleResponse(responseData) {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tconsole.log(\"getall\", responseData.IsSucceeded + \"\");\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error !\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t} else {\r\n\t\t\tif (responseData.Item != null) {\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tLimitModelList: responseData.Item.Limit || [],\r\n\t\t\t\t\tProfileModel: responseData.Item.Profile || {}\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\thandleUpdate(responseData, after) {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error !\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.ClearData();\r\n\t\t// if (responseData.Item != null) {\r\n\t\t// \tthis.setState({\r\n\t\t// \t\tLimitModelList: responseData.Item.Limit || [],\r\n\t\t// \t\tProfileModel: responseData.Item.Profile || {}\r\n\t\t// \t});\r\n\t\t// }\r\n\t\tif (after) after();\r\n\t\tthis.ShowMessage(\"success\", \"Success\", \"Changes Saved Sucesfully.\");\r\n\t\tthis.FetchAllLimitProfile();\r\n\t}\r\n\r\n\thandleDelete(responseData, after) {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error !\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (after) after();\r\n\t\tthis.ShowMessage(\"success\", \"Success\", \"Deleted !\");\r\n\t\tthis.ClearData();\r\n\t\tthis.FetchAllLimitProfile();\r\n\t}\r\n\terrorDefinitionCallback(error) {\r\n\t\tthis.ShowMessage(\"error\", \"Error !\", \"An error occurred while requesting data\" + error);\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\thandleChangeProfile = (name, newValue) => {\r\n\t\tconst model = { ...this.state.ProfileModel };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ ProfileModel: model });\r\n\t}\r\n\tClearData() {\r\n\t\tvar temp = { Id: 0 };\r\n\t\tthis.setState({\r\n\t\t\tLimitModelList: [],\r\n\t\t\tProfileModel: temp,\r\n\t\t\tselected: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\tshowConfirmMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} OnConfirm={() => this.UpdateRecord()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\tGetColumnsRowStyleColor(row) {\r\n\t\tif(!row){\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tlet localDateUtc = DateHelper.GetLocalDateTimeAsUtc();\r\n\t\tlet condition = localDateUtc >= DateHelper.ToMoment(row.ValidFrom) && \r\n\t\t\t\t\t\t localDateUtc <= DateHelper.ToMoment(row.ValidTo);\r\n\r\n\r\n\t\tthis.columnsRowStyleColor = {\r\n\t\t\tcolor: !condition\r\n\t\t\t\t? \"#FB3005\"\r\n\t\t\t\t: \"\"\r\n\t\t};\r\n\t\treturn this.columnsRowStyleColor;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { LimitModelList, LimitPropList, ProfileModel, LimitProfiles, vModel } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\r\n\t\tvar data = LimitProfiles.map(d => {\r\n\t\t\treturn {\r\n\t\t\t\tId: d.Id,\r\n\t\t\t\tProfileName: d.ProfileName || \"\",\r\n\t\t\t\tProgramId: d.ProgramId || \"\",\r\n\t\t\t\tProgram: d.Program == null ? \"\" : d.Program.Description || \"\",\r\n\t\t\t\tValidFrom: d.ValidFrom || \"\",\r\n\t\t\t\tValidTo: d.ValidTo || \"\",\r\n\t\t\t\tActions: (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t this.FetchData(d.Id)} />\r\n\t\t\t\t\t
\r\n\t\t\t\t)\r\n\t\t\t};\r\n\t\t});\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t this.DeleteRecord(workflowId, after), Disabled: Disabled || !ProfileModel.Id > 0,\r\n\t\t\t\t\t\tModelFunction: () => { return { Profile: this.state.ProfileModel, Limit: this.state.LimitModelList } },\r\n\t\t\t\t\t\tFillDataFromModel: model => {\r\n\t\t\t\t\t\t\tthis.FetchPropFromParameter();\r\n\t\t\t\t\t\t\tthis.setState({ ProfileModel: model.Profile, LimitModelList: model.Limit })\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{ Code: \"Clear\", OnClick: () => this.ClearData(), Disabled: Disabled },\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tRowId: this.state.ProfileModel.Id,\r\n\t\t\t\t\t\tCode: \"Submit\", OnClick: (workflowId, after) => this.OperationCheck(workflowId, after), Disabled: Disabled || ProfileModel.Id > 0,\r\n\t\t\t\t\t\tModelFunction: () => { return { Profile: this.state.ProfileModel, Limit: this.state.LimitModelList } },\r\n\t\t\t\t\t\tFillDataFromModel: model => {\r\n\t\t\t\t\t\t\tthis.FetchPropFromParameter();\r\n\t\t\t\t\t\t\tthis.setState({ ProfileModel: model.Profile, LimitModelList: model.Limit })\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\tValidationFunction: this.Validate\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tRowId: this.state.ProfileModel.Id,\r\n\t\t\t\t\t\tCode: \"Update\", OnClick: (workflowId, after) => this.OperationCheck(workflowId, after), Disabled: Disabled || !ProfileModel.Id > 0,\r\n\t\t\t\t\t\tModelFunction: () => { return { Profile: this.state.ProfileModel, Limit: this.state.LimitModelList } },\r\n\t\t\t\t\t\tFillDataFromModel: model => {\r\n\t\t\t\t\t\t\tthis.FetchPropFromParameter();\r\n\t\t\t\t\t\t\tthis.setState({ ProfileModel: model.Profile, LimitModelList: model.Limit })\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\tValidationFunction: this.Validate\r\n\t\t\t\t\t}\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t 0 ? true : Disabled} Name=\"ProgramId\" LabelText=\"Program\" Value={ProfileModel.ProgramId} ValueChanged={this.handleChangeProfile} KeyValueMember=\"Id\" TextValueMember=\"Description\" Method=\"GET\" Url=\"/bankapi/v1.0/Bank/ValidBankProgramsForLimitProfile\" DataRoot=\"Item\" Required\r\n\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.ProgramId} />\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{LimitPropList != null && LimitPropList.map(item => (\r\n\t\t\t\t\t\t\t\t\t(item.ParameterValue5 != null && item.ParameterValue5 == \"C\") ? (\r\n\t\t\t\t\t\t\t\t\t\t< GridItem xs={6} key={item.Id} >\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t x.LimitType != null && x.LimitType.ParameterValue == item.ParameterValue) == null ? \"\" : LimitModelList.find(x => x.LimitType != null && x.LimitType.ParameterValue == item.ParameterValue).LimitCount}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={(name, value) => this.handleListItemChangeLimit(name, value, item.ParameterValue)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={Disabled}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t) :\r\n\t\t\t\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\t\t\t\t< GridItem xs={6} key={item.Id} >\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t x.LimitType != null && x.LimitType.ParameterValue == item.ParameterValue) == null ? \"\" : LimitModelList.find(x => x.LimitType != null && x.LimitType.ParameterValue == item.ParameterValue).LimitAmount}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={(name, value) => this.handleListItemChangeLimit(name, value, item.ParameterValue)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={Disabled}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t x.LimitType != null && x.LimitType.ParameterValue == item.ParameterValue) == null ? \"\" : LimitModelList.find(x => x.LimitType != null && x.LimitType.ParameterValue == item.ParameterValue).LimitCount}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={(name, value) => this.handleListItemChangeLimit(name, value, item.ParameterValue)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={Disabled}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t)\r\n\r\n\t\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t (
{row.value}
)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Profile Name\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ProfileName\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (
{row.value}
)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Program\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"Program\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (
{row.value}
)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Valid From Date\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ValidFrom\",\r\n\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateUtc,\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (
{Formatter.FormatDateUtc(row.value)}
),\r\n\t\t\t\t\t\t\t\t\t\t\tfilterMethod: (filter, row, column) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn Formatter.FormatDateUtc(row[filter.id]).toLowerCase().startsWith(filter.value.toLowerCase());\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Valid To Date\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ValidTo\",\r\n\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateUtc,\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (
{Formatter.FormatDateUtc(row.value)}
),\r\n\t\t\t\t\t\t\t\t\t\t\tfilterMethod: (filter, row, column) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn Formatter.FormatDateUtc(row[filter.id]).toLowerCase().startsWith(filter.value.toLowerCase());\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\tdefaultPageSize={5}\r\n\t\t\t\t\t\t\t\t\tRowSelected={index => {\r\n\t\t\t\t\t\t\t\t\t\tif (Disabled) return;\r\n\t\t\t\t\t\t\t\t\t\tthis.setState({ selected: index });\r\n\t\t\t\t\t\t\t\t\t\tthis.SelectedRowChange(null, index);\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\tSelectedIndex={this.state.selected}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nUserLimitProfile.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\n\r\nexport default withArtifex(UserLimitProfile, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport { PropTypes } from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericCheckInput, GenericLabel, GenericNumberInput, GenericSelectInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { MenuCodes } from \"views/Constants/Constant\";\r\n\r\nclass NotificationSettings extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialTransactionList = [];\r\n\t\tthis.initialAccountList = [];\r\n\t\tthis.initialModel = { Id: 0 };\r\n\r\n\t\tthis.state = {\r\n\t\t\talert: false,\r\n\t\t\ttransactionList: [...this.initialTransactionList],\r\n\t\t\taccountList: [...this.initialAccountList],\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\t\t// preserve the initial state in a new object\r\n\t\tthis.baseState = this.state;\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Notification Settings\");\r\n\t\tif (this.props.MenuCode == MenuCodes.Notification) {\r\n\t\t\tthis.props.setAppCenterTitle(\"NOTIFICATIONS\");\r\n\t\t} else {\r\n\t\t\tthis.props.setAppCenterTitle(\"BANKING\");\r\n\t\t}\r\n\t\tthis.HandleSearch();\r\n\t}\r\n\r\n\tHandleChange = (name, value) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleTransactionChange = (id, name, value) => {\r\n\t\tconst { transactionList } = this.state;\r\n\t\tif (transactionList.length > 0) {\r\n\t\t\ttransactionList.filter(x => x.Id == id)[0][name] = value;\r\n\t\t\tthis.setState({ transactionList });\r\n\t\t}\r\n\t}\r\n\r\n\tHandleAccountChange = (id, name, value) => {\r\n\t\tconst { accountList } = this.state;\r\n\t\tif (accountList.length > 0) {\r\n\t\t\taccountList.filter(x => x.Id == id)[0][name] = value;\r\n\t\t\tthis.setState({ accountList });\r\n\t\t}\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState(function (state) {\r\n\t\t\tstate = this.baseState;\r\n\t\t\treturn state;\r\n\t\t});\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/BankingNotification/GetAll\",\r\n\t\t\t{},\r\n\t\t\tthis.SuccessListCallback,\r\n\t\t\tthis.ErrorListCallback\r\n\t\t);\r\n\t}\r\n\r\n\tSuccessListCallback = (responseData) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (responseData.Item != null) {\r\n\t\t\tthis.setState(\r\n\t\t\t\t{\r\n\t\t\t\t\tmodel: responseData.Item.BankingNotification,\r\n\t\t\t\t\ttransactionList: responseData.Item.TransactionAlertGroupList,\r\n\t\t\t\t\taccountList: responseData.Item.BankAccountList\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t\tthis.initialModel = responseData.Item.BankingNotification;\r\n\t\t\tthis.initialTransactionList = responseData.Item.TransactionAlertGroupList;\r\n\t\t\tthis.initialAccountList = responseData.Item.BankAccountList;\r\n\t\t} else {\r\n\t\t\tthis.setState({ model: {}, accountList: [], transactionList: [] });\r\n\t\t\tthis.initialModel = { Id: 0 };\r\n\t\t\tthis.initialAccountList = [];\r\n\t\t\tthis.initialTransactionList = [];\r\n\t\t}\r\n\t}\r\n\r\n\tErrorListCallback = (error) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t}\r\n\r\n\tHandleSubmit = () => {\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/BankingNotification/InsertOrUpdate\",\r\n\t\t\t{\r\n\t\t\t\tBankingNotification: this.state.model,\r\n\t\t\t\tBankAccountList: this.state.accountList,\r\n\t\t\t\tTransactionAlertGroupList: this.state.transactionList\r\n\t\t\t},\r\n\t\t\tthis.SuccessSubmitCallback,\r\n\t\t\tthis.ErrorSubmitCallback\r\n\t\t);\r\n\t}\r\n\r\n\tSuccessSubmitCallback = (responseData) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.ShowMessage(\"success\", \"Success\", \"Operation is successfully!\");\r\n\t\tthis.HandleSearch();\r\n\t}\r\n\r\n\tErrorSubmitCallback = (error) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model, transactionList, accountList } = this.state;\r\n\r\n\t\tif (!model.TransactionAlert && transactionList.filter(x => x.IsRecordValid == true).length > 0) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Invalid\", \"Please select the Transaction Alert\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tfor (let transaction of transactionList.filter(x => x.IsRecordValid == true)) {\r\n\t\t\tif (transaction.AlertLimit == null) {\r\n\t\t\t\tthis.ShowMessage(\"warning\", \"Invalid\", \"Please fill the Alert Limit of the \" + transaction.GroupName);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif (!transaction.SendSms && !transaction.SendEmail && !transaction.SendApplication) {\r\n\t\t\t\tthis.ShowMessage(\"warning\", \"Invalid\", \"Please select one channel at least !\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif (transaction.KeyContactId == null) {\r\n\t\t\t\tthis.ShowMessage(\"warning\", \"Invalid\", \"Please select the user to send notifications for \" + transaction.GroupName);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (!model.Balance && accountList.filter(x => x.IsRecordValid == true).length > 0) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Invalid\", \"Please select the Transaction Alert\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tfor (let account of accountList.filter(x => x.IsRecordValid == true)) {\r\n\t\t\tif (account.MinimumBalance == null) {\r\n\t\t\t\tthis.ShowMessage(\"warning\", \"Invalid\", \"Please fill the Minimum Balance of the \" + account.AccountName);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif (!account.SendSms && !account.SendEmail && !account.SendApplication) {\r\n\t\t\t\tthis.ShowMessage(\"warning\", \"Invalid\", \"Please select one channel at least!\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif (account.KeyContactId == null) {\r\n\t\t\t\tthis.ShowMessage(\"warning\", \"Invalid\", \"Please select the user to send notifications for \" + account.AccountName);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert:\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes, Disabled } = this.props;\r\n\t\tconst { alert, isLoading, transactionList, accountList, model } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t<>\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\r\n\t\t\t\t 0, ModelFunction: () => model, FillDataFromModel: model => this.setState({ model }), ValidationFunction: this.Validate },\r\n\t\t\t\t\t{ Code: \"Update\", OnClick: this.HandleSubmit, Disabled: Disabled || model.Id === 0, ModelFunction: () => model, FillDataFromModel: model => this.setState({ model }), ValidationFunction: this.Validate },\r\n\t\t\t\t\t{ Code: \"Clear\", OnClick: this.HandleClear, Disabled: Disabled }\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{/* \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tthis.HandleChange(n, v);\r\n\t\t\t\t\t\t\t\t}} />\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tthis.HandleChange(n, v);\r\n\t\t\t\t\t\t\t\t}} />\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tthis.HandleChange(n, v);\r\n\t\t\t\t\t\t\t\t}} />\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\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t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t{transactionList.map(field => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.HandleTransactionChange(field.Id, n, v)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPrefix=\"$\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMaxLength={12}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={!field.IsRecordValid || !model.TransactionAlert} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t{transactionList.map(field => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.HandleTransactionChange(field.Id, n, v)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={!field.IsRecordValid || !model.TransactionAlert} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.HandleTransactionChange(field.Id, n, v)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={!field.IsRecordValid || !model.TransactionAlert} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.HandleTransactionChange(field.Id, n, v)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={!field.IsRecordValid || !model.TransactionAlert} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t{transactionList.map(field => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t `${d.Name} ${d.SurName}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tValue={field.KeyContactId}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={(n, v) => this.HandleTransactionChange(field.Id, n, v)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={!field.IsRecordValid || !model.TransactionAlert} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tthis.HandleChange(n, v);\r\n\t\t\t\t\t\t\t\t\t}} />\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t{accountList.map(field => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.HandleAccountChange(field.Id, n, v);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={!model.Balance} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t{accountList.map(field => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.HandleAccountChange(field.Id, n, v)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPrefix=\"$\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMaxLength={12}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={!field.IsRecordValid || !model.Balance} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t{accountList.map(field => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.HandleAccountChange(field.Id, n, v)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={!field.IsRecordValid || !model.Balance} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.HandleAccountChange(field.Id, n, v)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={!field.IsRecordValid || !model.Balance} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.HandleAccountChange(field.Id, n, v)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={!field.IsRecordValid || !model.Balance} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t{accountList.map(field => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t `${d.Name} ${d.SurName}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tValue={field.KeyContactId}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={(n, v) => this.HandleAccountChange(field.Id, n, v)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={!field.IsRecordValid || !model.Balance} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t{/* \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tthis.HandleChange(n, v);\r\n\t\t\t\t\t\t\t\t}} />\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t */}\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nNotificationSettings.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func\r\n};\r\n\r\nexport default withArtifex(NotificationSettings, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { DeleteIcon, EditIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ReactTable from \"react-table\";\r\nimport { GenericAlert, GenericCheckInput, GenericDateInput, GenericNumberInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport SearchComponent from \"./CommissionProfileSearchComonent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass ReferralFee extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\tmodelArray: [],\r\n\t\t\theaderModel: {},\r\n\t\t\tmodelStandart: {}\r\n\t\t};\r\n\t\tthis.handleChange = this.handleChange.bind(this);\r\n\t\tthis.ClearData = this.ClearData.bind(this);\r\n\t\tthis.Submit = this.Submit.bind(this);\r\n\t\tthis.Delete = this.Delete.bind(this);\r\n\t\tthis.DeleteRecord = this.DeleteRecord.bind(this);\r\n\t\tthis.UpdateRecord = this.UpdateRecord.bind(this);\r\n\t\tthis.FetchData = this.FetchData.bind(this);\r\n\t\tthis.errorDefinitionCallback = this.errorDefinitionCallback.bind(this);\r\n\t\tthis.handleResponse = this.handleResponse.bind(this);\r\n\t\tthis.handleUpdate = this.handleUpdate.bind(this);\r\n\t\tthis.handleDelete = this.handleDelete.bind(this);\r\n\t\tthis.handleResponseStandartRate = this.handleResponseStandartRate.bind(this);\r\n\t\tthis.SelectedRowChange = this.SelectedRowChange.bind(this);\r\n\r\n\t\tthis.ShowMessage = this.ShowMessage.bind(this);\r\n\t\tthis.hideAlert = this.hideAlert.bind(this);\r\n\t\tthis.showDeleteMessage = this.showDeleteMessage.bind(this);\r\n\t\tthis.showConfirmMessage = this.showConfirmMessage.bind(this);\r\n\r\n\t\tthis.handleChangeHeader = this.handleChangeHeader.bind(this);\r\n\t\tthis.selectProfileSearchCallback = this.selectProfileSearchCallback.bind(this);\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\t//this.props.hideSidebar();\r\n\t\tthis.props.setAppLeftTitle(\"Referral Fee Profiles\");\r\n\t\tthis.props.setAppCenterTitle(\"FEE PROFILES\");\r\n\r\n\t\tProxy.GET(\r\n\t\t\t\"/bankapi/v1.0/CommissionStandardRate/GetFirst\",\r\n\t\t\tthis.handleResponseStandartRate,\r\n\t\t\tthis.errorDefinitionCallback\r\n\t\t);\r\n\t}\r\n\r\n\tselectProfileSearchCallback(responseModel) {\r\n\t\tconst model = { ...this.state.headerModel };\r\n\t\tif (responseModel != undefined) {\r\n\t\t\tmodel.ProfileId = responseModel.ProfileId;\r\n\t\t\tmodel.ProfileName = responseModel.ProfileName;\r\n\t\t\tmodel.Id = responseModel.Id;\r\n\t\t\tmodel.ValidFrom = responseModel.ValidFrom;\r\n\t\t\tmodel.ValidTo = responseModel.ValidTo;\r\n\t\t\tthis.setState({ headerModel: model }, () => {\r\n\t\t\t\tconsole.log(\"selectProfileSearchCallback \", this.state.headerModel);\r\n\t\t\t\tthis.FetchData();\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\tSelectedRowChange(e, index) {\r\n\t\tconst temp = this.state.modelArray[index];\r\n\t\tif (temp.UniqueClient != null) {\r\n\t\t\ttemp.UniqueClientId = temp.UniqueClient.UniqueClientId;\r\n\t\t}\r\n\t\tthis.setState({ model: temp }, () => console.log(\"SelectedRowChange\", this.state));\r\n\t}\r\n\tDeleteRecord(obj) {\r\n\t\tconst header = { ...this.state.headerModel };\r\n\t\tif (header.Id != 0 && header.Id != undefined && obj.ProfileId != 0 && obj.Id != undefined && obj.Id != 0) {\r\n\t\t\tProxy.GET(\r\n\t\t\t\t\"/bankapi/v1.0/CommissionProfileDetail/Delete/Id?Id=\" + obj.Id,\r\n\t\t\t\tthis.handleDelete,\r\n\t\t\t\tthis.errorDefinitionCallback\r\n\t\t\t);\r\n\t\t} else {\r\n\t\t\tthis.ShowMessage(\"info\", \"Invalid\", \"Please select profile first !\");\r\n\t\t}\r\n\r\n\t}\r\n\tUpdateRecord() {\r\n\t\tconst header = { ...this.state.headerModel };\r\n\t\tif (header.Id != 0 && header.Id != undefined) {\r\n\t\t\tconst temp = { ...this.state.model };\r\n\t\t\ttemp.ProfileId = this.state.headerModel.Id;\r\n\t\t\tif (temp.UniqueClient != undefined && temp.UniqueClient.UniqueClientId != undefined) {\r\n\t\t\t\ttemp.UniqueClientId = this.state.model.UniqueClient.UniqueClientId;\r\n\t\t\t}\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/bankapi/v1.0/CommissionProfileDetail/InsertOrUpdate\",\r\n\t\t\t\ttemp,\r\n\t\t\t\tthis.handleUpdate,\r\n\t\t\t\tthis.errorDefinitionCallback\r\n\t\t\t);\r\n\t\t} else {\r\n\t\t\tthis.ShowMessage(\"info\", \"Invalid\", \"Please select profile first !\");\r\n\t\t}\r\n\t}\r\n\tFetchData() {\r\n\t\tconst header = { ...this.state.headerModel };\r\n\t\tif (header.Id != 0 && header.Id != undefined) {\r\n\t\t\tProxy.GET(\r\n\t\t\t\t\"/bankapi/v1.0/CommissionProfileDetail/GetById/Id?Id=\" + header.Id,\r\n\t\t\t\tthis.handleResponse,\r\n\t\t\t\tthis.errorDefinitionCallback\r\n\t\t\t);\r\n\t\t}\r\n\t}\r\n\thandleResponse(responseData) {\r\n\t\tconsole.log(\"getall\", responseData.IsSucceeded + \"\");\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error !\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t} else {\r\n\t\t\tthis.setState({ modelArray: responseData.Item || {} });\r\n\t\t}\r\n\t}\r\n\thandleUpdate(responseData) {\r\n\t\tconsole.log(\"update\", responseData.IsSucceeded + \"\");\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error !\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t} else {\r\n\t\t\tthis.setState({ model: responseData.Item || {} });\r\n\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Changes Saved Sucesfully.\");\r\n\t\t\tthis.FetchData();\r\n\t\t}\r\n\t}\r\n\thandleResponseStandartRate(responseData) {\r\n\t\tconsole.log(\"standart rate\", responseData.IsSucceeded + \"\");\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error !\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t} else {\r\n\t\t\tthis.setState({ modelStandart: responseData.Item || {} });\r\n\t\t}\r\n\t}\r\n\r\n\thandleDelete(responseData) {\r\n\t\tconsole.log(\"update\", responseData.IsSucceeded + \"\");\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error !\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t} else {\r\n\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Deleted !\");\r\n\t\t\tthis.FetchData();\r\n\t\t\tthis.ClearData();\r\n\t\t}\r\n\t}\r\n\terrorDefinitionCallback(error) {\r\n\t\tthis.ShowMessage(\"error\", \"Error !\", \"An error occurred while requesting data\" + error);\r\n\t}\r\n\thandleChange(name, newValue) {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tif (name == \"UseStandartRate\" && newValue == true) {\r\n\t\t\tconst standart = { ...this.state.modelStandart };\r\n\t\t\tmodel.FirstMonthCommissionRate = standart.FirstMonthCommissionRate;\r\n\t\t\tmodel.FollowingCommissionRate = standart.FollowingCommissionRate;\r\n\t\t}\r\n\t\tthis.setState({ model: model }, () => console.log(\"model \", this.state));\r\n\t}\r\n\thandleChangeHeader(name, newValue) {\r\n\t\tconst model = { ...this.state.headerModel };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ headerModel: model }, () => console.log(\"headerModel \", this.state));\r\n\t}\r\n\tClearData() {\r\n\t\tvar temp = { Id: 0 };\r\n\t\tthis.setState({ model: temp, headerModel: temp }, () => console.log(\"ClearData \", this.state));\r\n\t}\r\n\tDelete(obj) {\r\n\t\tthis.showDeleteMessage(\"warning\", \"Delete\", \"Delete This Profile Record !\", obj);\r\n\t}\r\n\tSubmit() {\r\n\t\tthis.showConfirmMessage(\"info\", \"Confirm\", \"Do you want to save changes!\");\r\n\t}\r\n\tShowMessage(type, title, message) {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\tshowDeleteMessage(type, title, message, obj) {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} OnConfirm={() => this.DeleteRecord(obj)} />\r\n\t\t});\r\n\t}\r\n\tshowConfirmMessage(type, title, message) {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} OnConfirm={() => this.UpdateRecord()} />\r\n\t\t});\r\n\t}\r\n\thideAlert() {\r\n\t\tthis.setState({\r\n\t\t\talert: null\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, headerModel, modelStandart, modelArray } = this.state;\r\n\t\tvar data = modelArray.map(d => {\r\n\t\t\treturn {\r\n\t\t\t\tId: d.Id,\r\n\t\t\t\tUniqueClientId: d.UniqueClient == undefined ? \"\" : d.UniqueClient.UniqueClientId || \"\",\r\n\t\t\t\tAgreementType: d.AgreementType == undefined ? \"\" : d.AgreementType.Description || \"\",\r\n\t\t\t\tAgreementTypeId: d.AgreementTypeId,\r\n\t\t\t\tProfileId: d.ProfileId,\r\n\t\t\t\tUseStandartRate: d.UseStandartRate,\r\n\t\t\t\tAgreementSignDate: d.AgreementSignDate,\r\n\t\t\t\tFirstMonthCommissionRate: d.FirstMonthCommissionRate,\r\n\t\t\t\tFollowingCommissionRate: d.FollowingCommissionRate,\r\n\t\t\t\tactions: (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\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\t\t

Commission Rate (First 1 Month)

\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t

Commission Rate (Following Months)

\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t
{row.value == true ? \"Yes\" : \"No\"}
\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"First Month Commission Rate\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"FirstMonthCommissionRate\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Following Commission Rate\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"FollowingCommissionRate\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"actions\",\r\n\t\t\t\t\t\t\t\t\tsortable: false,\r\n\t\t\t\t\t\t\t\t\tfilterable: false\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\tdefaultPageSize={5}\r\n\t\t\t\t\t\t\tshowPaginationTop={false}\r\n\t\t\t\t\t\t\tshowPaginationBottom={data.length > 0 ? true : false}\r\n\t\t\t\t\t\t\tminRows={2}\r\n\t\t\t\t\t\t\tgetTrProps={(state, rowInfo) => {\r\n\t\t\t\t\t\t\t\tif (rowInfo && rowInfo.row) {\r\n\t\t\t\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\t\t\t\tonClick: e => {\r\n\t\t\t\t\t\t\t\t\t\t\tthis.setState({ selected: rowInfo.index });\r\n\t\t\t\t\t\t\t\t\t\t\tthis.SelectedRowChange(e, rowInfo.index);\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\tstyle: {\r\n\t\t\t\t\t\t\t\t\t\t\tbackground:\r\n\t\t\t\t\t\t\t\t\t\t\t\trowInfo.index === this.state.selected\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t? \"rgba(0, 0, 0, 0.1)\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t: \"\"\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\treturn {};\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nReferralFee.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tsetAppLeftTitle: PropTypes.func\r\n};\r\n\r\nexport default withArtifex(ReferralFee, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericCheckInput, GenericDateInput, GenericExpansionPanel, GenericGrid, GenericLabel, GenericSelectInput } from \"views/Components/Generic\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport { SubmitOrSendIcon } from \"core/Icons\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport DateHelper from \"core/DateHelper\";\r\n\r\nclass BulkFileUpload extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.fileInputRef = React.createRef();\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t this.ReProcess(row.original.BulkFileDemandId)} />\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\twidth: 100\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"Client\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Program\",\r\n\t\t\t\taccessor: \"ProgramName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"File Name\",\r\n\t\t\t\taccessor: \"FileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Status\",\r\n\t\t\t\taccessor: \"DemandStatusDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"File Format\",\r\n\t\t\t\taccessor: \"FileFormatName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Comment\",\r\n\t\t\t\taccessor: \"Comment\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Row Count\",\r\n\t\t\t\taccessor: \"RowCount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Received Date\",\r\n\t\t\t\taccessor: \"ReceivedDate\",\r\n\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Process Date\",\r\n\t\t\t\taccessor: \"ProcessDate\",\r\n\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Response Generated\",\r\n\t\t\t\taccessor: \"IsResponseGenerated\",\r\n\t\t\t\ttype: GridColumnType.YesNo\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Response File Name\",\r\n\t\t\t\taccessor: \"ResponseFileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Amount Of Transaction\",\r\n\t\t\t\taccessor: \"TotalAmountOfTransaction\",\r\n\t\t\t\ttype: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Number Of Transaction\",\r\n\t\t\t\taccessor: \"TotalNumberOfTransaction\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount Of Rejected\",\r\n\t\t\t\taccessor: \"TotalAmountOfRejected\",\r\n\t\t\t\ttype: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Number Of Rejected\",\r\n\t\t\t\taccessor: \"TotalNumberOfRejected\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Debit Amount\",\r\n\t\t\t\taccessor: \"TotalDebitAmount\",\r\n\t\t\t\ttype: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Credit Amount\",\r\n\t\t\t\taccessor: \"TotalCreditAmount\",\r\n\t\t\t\ttype: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Number Of Credit\",\r\n\t\t\t\taccessor: \"TotalNumberOfCredit\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Number Of Debit\",\r\n\t\t\t\taccessor: \"TotalNumberOfDebit\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Number Of Completed Debit\",\r\n\t\t\t\taccessor: \"NumberOfCompletedDebit\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Number Of Completed Credit\",\r\n\t\t\t\taccessor: \"NumberOfCompletedCredit\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Number Of Rejected Debit\",\r\n\t\t\t\taccessor: \"NumberOfRejectedDebit\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Number Of Rejected redit\",\r\n\t\t\t\taccessor: \"NumberOfRejectedCredit\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount Of Completed Debit\",\r\n\t\t\t\taccessor: \"AmountOfCompletedDebit\",\r\n\t\t\t\ttype: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount Of Completed Credit\",\r\n\t\t\t\taccessor: \"AmountOfCompletedCredit\",\r\n\t\t\t\ttype: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount Of Rejected Debit\",\r\n\t\t\t\taccessor: \"AmountOfRejectedDebit\",\r\n\t\t\t\ttype: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount Of Rejected Credit\",\r\n\t\t\t\taccessor: \"AmountOfRejectedCredit\",\r\n\t\t\t\ttype: GridColumnType.Money\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.columnsDetail = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"RowID\",\r\n\t\t\t\taccessor: \"RowId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reference Number\",\r\n\t\t\t\taccessor: \"ReferenceNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Processed\",\r\n\t\t\t\taccessor: \"IsProcessed\",\r\n\t\t\t\ttype: GridColumnType.YesNo\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Success\",\r\n\t\t\t\taccessor: \"IsSuccess\",\r\n\t\t\t\ttype: GridColumnType.YesNo\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Header\",\r\n\t\t\t\taccessor: \"IsHeader\",\r\n\t\t\t\ttype: GridColumnType.YesNo\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Process Date\",\r\n\t\t\t\taccessor: \"ProcessDate\",\r\n\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Error Code\",\r\n\t\t\t\taccessor: \"ErrorCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Error Desc\",\r\n\t\t\t\taccessor: \"ErrorDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Comment\",\r\n\t\t\t\taccessor: \"Comment\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"RowData\",\r\n\t\t\t\taccessor: \"Row\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.isBackOffice = ClientHelper.IsBackOffice();\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\tlist: [],\r\n\t\t\tlistDetail: [],\r\n\t\t\tisBackOffice: false\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"REPORTS\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Bulk File Upload\");\r\n\t\t}\r\n\r\n\t\tvar temp = ClientHelper.IsBackOffice();\r\n\t\tthis.setState({ isBackOffice: temp });\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tRowSelected = async (index) => {\r\n\t\tconst { list } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar model = list[index];\r\n\t\tvar result = await ExecuteApiPost(\"/bankapi/v1.0/BulkFile/SearchDetail\", model);\r\n\r\n\t\tthis.setState({ model, listDetail: result || [], selected: index });\r\n\t}\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\treturn `${d.UniqueClientId} - ${d.Name}`;\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\t\tvar { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/bankapi/v1.0/BulkFile/Search\", model);\r\n\r\n\t\tthis.setState({ model, list: result || [] });\r\n\t}\r\n\r\n\tSubmit = async () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst { model } = this.state;\r\n\t\tconst { ExecuteApiFileUpload } = this.props;\r\n\r\n\t\tvar formData = new FormData();\r\n\t\tformData.append(\"file\", model.File, model.FileName);\r\n\t\tformData.append(\"fileFormatId\", model.FileFormatId);\r\n\t\tformData.append(\"uniqueClientId\", model.UniqueClientId);\r\n\t\tformData.append(\"autoGenerateCustomer\", model.AutoGenerateCustomer || false);\r\n\t\tformData.append(\"notify\", model.Notify || false);\r\n\t\tformData.append(\"uploadResponseToSftp\", model.UploadResponseToSftp || false);\r\n\r\n\t\tawait ExecuteApiFileUpload(\"/bankapi/v1.0/BulkFile/Insert\", formData, null, true);\r\n\r\n\t\tthis.Clear();\r\n\t\tthis.Search();\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, list: [], listDetail: [], selected: null });\r\n\t}\r\n\r\n\tUpload = () => {\r\n\t\tthis.fileInputRef.current.click();\r\n\t}\r\n\r\n\tFileSelect = (e) => {\r\n\t\te.preventDefault();\r\n\r\n\t\tvar file = e.target.files[0];\r\n\t\tif (!file) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar { model } = this.state;\r\n\t\tmodel.File = file;\r\n\t\tmodel.FileName = file.name;\r\n\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tReProcess = async (Id) => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/bankapi/v1.0/BulkFile/ReProcess\", { Id: Id });\r\n\t\tthis.Clear();\r\n\t}\r\n\r\n\tValidate() {\r\n\t\tvar { model } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errors = [];\r\n\r\n\t\tif (this.isBackOffice && (!model.UniqueClientId || model.UniqueClientId == -1)) {\r\n\t\t\terrors.push(\"Client cannot be empty.\");\r\n\t\t}\r\n\r\n\t\tif (!model.FileFormatId) {\r\n\t\t\terrors.push(\"File format cannot be empty.\");\r\n\t\t}\r\n\r\n\t\tif (model.FileName == null\r\n\t\t\t&& model.File == null) {\r\n\t\t\terrors.push(\"Bulk file cannot be empty.\");\r\n\t\t}\r\n\r\n\t\tmodel[\"IsUniqueClientId\"] = this.isBackOffice && (!model.UniqueClientId || model.UniqueClientId == -1);\r\n\t\tmodel[\"IsFileFormatId\"] = !model.FileFormatId;\r\n\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, list, listDetail,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\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nBulkFileUpload.propTypes = {\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tExecuteApiFileUpload: PropTypes.func,\r\n\tExecuteApiFileDownloadWithGenericResponse: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default BulkFileUpload;","import { DialogContent, DialogTitle, withStyles } from \"@material-ui/core\";\r\nimport style from \"assets/jss/material-dashboard-pro-react/views/buttonToolbarStyle.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport AlertHelper from \"core/AlertHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport { GenericDialog, GenericDialogActions, GenericLabel, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ToolbarButton from \"views/Components/ToolbarButton.jsx\";\r\nimport { ApprovalStatus } from \"views/Constants/Constant\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\n\r\nclass ButtonToolbar extends Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tWorkflowData: {},\r\n\t\t\tMenuActionRights: [],\r\n\t\t\tMenuActions: [],\r\n\t\t\tAllActions: [],\r\n\t\t\trejectReasonDialogOpen: false,\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\r\n\t\tthis.LoadAllActions = this.LoadAllActions.bind(this);\r\n\t\tthis.LoadButtons = this.LoadButtons.bind(this);\r\n\t\tthis.LoadMenuActionRights = this.LoadMenuActionRights.bind(this);\r\n\t\tthis.LoadMenuActions = this.LoadMenuActions.bind(this);\r\n\t\tthis.LoadRejectComment = this.LoadRejectComment.bind(this);\r\n\t\tthis.LoadModel = this.LoadModel.bind(this);\r\n\t\tthis.SetStatus = this.SetStatus.bind(this);\r\n\t\tthis.StepUp = this.StepUp.bind(this);\r\n\t\tthis.SendToWorkflow = this.SendToWorkflow.bind(this);\r\n\t\tthis.OnButtonClick = this.OnButtonClick.bind(this);\r\n\t\tthis.RejectClick = this.RejectClick.bind(this);\r\n\t\tthis.CancelRejectClick = this.CancelRejectClick.bind(this);\r\n\t\tthis.ButtonClickAsSender = this.ButtonClickAsSender.bind(this);\r\n\r\n\t\tthis.ValueChanged = this.ValueChanged.bind(this);\r\n\t\tthis.ShowMessage = this.ShowMessage.bind(this);\r\n\t\tthis.ShowConfirmMessage = this.ShowConfirmMessage.bind(this);\r\n\t\tthis.hideAlert = this.hideAlert.bind(this);\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.LoadMenuActionRights();\r\n\t\tthis.LoadMenuActions();\r\n\t\tthis.LoadAllActions();\r\n\t\tthis.LoadRejectComment();\r\n\t\tthis.LoadModel();\r\n\t}\r\n\r\n\tValueChanged(name, newValue) {\r\n\t\tthis.setState({ [name]: newValue });\r\n\t}\r\n\r\n\tLoadMenuActionRights() {\r\n\t\tconst { menuId } = this.props;\r\n\r\n\t\tif (menuId) {\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/coreapi/v1.0/MenuActionRight/GetByMenuId\",\r\n\t\t\t\tmenuId,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tconsole.error(\"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tvar MenuActionRights = responseData.Item;\r\n\t\t\t\t\tthis.setState({ MenuActionRights });\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\t\t\t\t\tconsole.error(\"Error\", error.message);\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t}\r\n\r\n\tLoadAllActions() {\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Action/List\",\r\n\t\t\t{},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tconsole.error(\"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tvar AllActions = responseData.Item;\r\n\t\t\t\tthis.setState({ AllActions });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tconsole.error(\"Error\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tLoadMenuActions() {\r\n\t\tconst { menuId } = this.props;\r\n\r\n\t\tif (menuId) {\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/coreapi/v1.0/MenuAction/GetByMenuId\",\r\n\t\t\t\tmenuId,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tconsole.error(\"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tvar MenuActions = responseData.Item;\r\n\t\t\t\t\tthis.setState({ MenuActions });\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\t\t\t\t\tconsole.error(\"Error\", error.message);\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t}\r\n\r\n\tLoadRejectComment() {\r\n\t\tconst { ApprovalData } = this.props;\r\n\r\n\t\tif (ApprovalData && ApprovalData.Id) {\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/coreapi/v1.0/WorkflowData/GetRejectReason\",\r\n\t\t\t\tApprovalData.Id,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tconsole.error(\"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tvar RejectComment = responseData.Item;\r\n\t\t\t\t\tthis.setState({ RejectComment });\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\t\t\t\t\tconsole.error(\"Error\", error.message);\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t}\r\n\r\n\tLoadModel() {\r\n\t\tconst { ApprovalData, ButtonList } = this.props;\r\n\r\n\t\tif (ApprovalData && ApprovalData.Id) {\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/coreapi/v1.0/WorkflowData/GetDataModel\",\r\n\t\t\t\tApprovalData.Id,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tconsole.error(\"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tconst JsonData = responseData.Item;\r\n\t\t\t\t\tconst actionCode = ApprovalData.ActionCode;\r\n\t\t\t\t\tconst button = ButtonList.find(x => x.Code == actionCode);\r\n\r\n\t\t\t\t\tvar model = JSON.parse(JsonData);\r\n\t\t\t\t\tif (model != null && button && button.FillDataFromModel) {\r\n\t\t\t\t\t\tbutton.FillDataFromModel(model);\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\t\t\t\t\tconsole.error(\"Error\", error.message);\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t} else if (ApprovalData && ApprovalData.KycId == 0) {\r\n\t\t\tconst JsonData = ApprovalData.JsonData;\r\n\t\t\tconst actionCode = ApprovalData.ActionCode;\r\n\t\t\tconst button = ButtonList.find(x => x.Code == actionCode);\r\n\r\n\t\t\tvar model = JSON.parse(JsonData);\r\n\t\t\tif (model != null && button && button.FillDataFromModel) {\r\n\t\t\t\tbutton.FillDataFromModel(model);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tOnButtonClick(buttonData, menuActionRight) {\r\n\t\tconst menuId = menuActionRight?.MenuAction?.MenuId;\r\n\t\tconst actionId = menuActionRight?.MenuAction?.ActionId;\r\n\r\n\t\tconst sendToWorkflowFunction = (noApprove = false) => {\r\n\t\t\tthis.ShowConfirmMessage(\"warning\", \"Workflow Confirmation\", \"Are you sure to send it for workflow confirmation?\", () => {\r\n\t\t\t\tif (noApprove == true) {\r\n\t\t\t\t\tthis.ButtonLog(menuId, actionId, \"Step Check Sent to Workflow\");\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.ButtonLog(menuId, actionId, \"Sent to Workflow\");\r\n\t\t\t\t}\r\n\t\t\t\tthis.hideAlert();\r\n\t\t\t\tthis.SendToWorkflow(buttonData.Code, noApprove);\r\n\t\t\t});\r\n\t\t};\r\n\r\n\t\tif (menuActionRight.MenuAction.IsWorkflowAction && !buttonData.DisableWorkflow) {\r\n\t\t\tif (buttonData.ValidationFunction != null) {\r\n\t\t\t\tif (!buttonData.ValidationFunction()) {\r\n\t\t\t\t\tthis.ButtonLog(menuId, actionId, \"Validation Error\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tsendToWorkflowFunction();\r\n\t\t}\r\n\t\telse {\r\n\t\t\tconst { ModelFunction } = buttonData;\r\n\r\n\t\t\tif (ModelFunction == null) {\r\n\t\t\t\tthis.ButtonLog(menuId, actionId);\r\n\t\t\t\tbuttonData.OnClick();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tif (buttonData.ValidationFunction != null) {\r\n\t\t\t\tif (!buttonData.ValidationFunction()) {\r\n\t\t\t\t\tthis.ButtonLog(menuId, actionId, \"Validation Error\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tvar data = ModelFunction();\r\n\t\t\tvar jsonData = JSON.stringify(data);\r\n\r\n\t\t\tvar request = {\r\n\t\t\t\tMenuActionId: menuActionRight.MenuActionId,\r\n\t\t\t\tJsonData: jsonData\r\n\t\t\t};\r\n\r\n\t\t\tthis.setState({ isLoading: true });\r\n\r\n\t\t\tProxy.POST(\"/amlkycapi/v1.0/KycScenario/Check\",\r\n\t\t\t\trequest,\r\n\t\t\t\t(responseData) => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ButtonLog(menuId, actionId, \"KYC Error\");\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tconsole.error(\"Error\", responseData.ErrorDescription);\r\n\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (responseData.Item != null && responseData.Item.Result) {\r\n\t\t\t\t\t\tProxy.POST(\"/coreapi/v1.0/WorkflowStep/WorkflowStepCheck\",\r\n\t\t\t\t\t\t\trequest,\r\n\t\t\t\t\t\t\tresponseData => {\r\n\t\t\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\t\t\t\tthis.ButtonLog(menuId, actionId, \"Step Check Error\");\r\n\t\t\t\t\t\t\t\t\tconsole.error(\"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\tif (responseData.Item == false) {\r\n\t\t\t\t\t\t\t\t\tsendToWorkflowFunction(true);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tthis.ButtonLog(menuId, actionId);\r\n\t\t\t\t\t\t\t\t\tbuttonData.OnClick();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\terror => {\r\n\t\t\t\t\t\t\t\tthis.ButtonLog(menuId, actionId, \"Step Check Unknown Error\");\r\n\t\t\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\t\t\tconsole.error(\"Error\", error.message);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tthis.ButtonLog(menuId, actionId, \"KYC Reject\");\r\n\t\t\t\t\t\tthis.ShowMessage(\"warning\", \"KYC Check\", responseData.Item.Reason);\r\n\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\t\t\t\t\tthis.ButtonLog(menuId, actionId, \"KYC Unknown Error\");\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tconsole.error(\"Error\", error.message);\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t}\r\n\r\n\tLoadButtons() {\r\n\t\tconst { ButtonList, ApprovalData } = this.props;\r\n\t\tconst { MenuActionRights, MenuActions, AllActions } = this.state;\r\n\r\n\t\tif (ApprovalData) {\r\n\t\t\tswitch (ApprovalData.ApprovalStatusCode) {\r\n\t\t\t\tcase ApprovalStatus.Waiting:\r\n\t\t\t\t\tvar approveFunc = () => this.SetStatus(ApprovalStatus.Approved); // Normally\r\n\t\t\t\t\tif (ApprovalData.CurrentStep)\r\n\t\t\t\t\t\tapproveFunc = () => this.StepUp(); // Longrunning\r\n\t\t\t\t\telse if (ApprovalData.DirectComplete)\r\n\t\t\t\t\t\tapproveFunc = () => this.SetStatus(ApprovalStatus.Completed); // Direct Complete\r\n\t\t\t\t\treturn (\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t{\"Approve\"}\r\n\t\t\t\t\t\t\t this.setState({ rejectReasonDialogOpen: true })}>{\"Reject\"}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t);\r\n\t\t\t\tcase ApprovalStatus.Approved:\r\n\t\t\t\t\treturn (\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t this.SetStatus(ApprovalStatus.Completed)}>{\"Approve\"}\r\n\t\t\t\t\t\t\t this.SetStatus(ApprovalStatus.CanceledbyUser)}>{\"Reject\"}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t);\r\n\t\t\t\tcase ApprovalStatus.Rejected:\r\n\t\t\t\t\treturn (\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t this.SetStatus(ApprovalStatus.Waiting)}>{\"Resend\"}\r\n\t\t\t\t\t\t\t this.SetStatus(ApprovalStatus.CanceledbyUser)}>{\"Reject\"}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t);\r\n\t\t\t\tcase ApprovalStatus.CanceledbyUser:\r\n\t\t\t\t\treturn \"\";\r\n\t\t\t\tcase ApprovalStatus.Completed:\r\n\t\t\t\t\tbreak; // Load from ButtonList\r\n\t\t\t\tcase ApprovalStatus.KYC:\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tvar menuActionList = MenuActions;\r\n\t\tvar menuAllActionList = AllActions.sort((a, b) => (b.Order > a.Order) ? 1 : -1);\r\n\t\tvar clearAction = ButtonList.find(x => x.Code == \"Clear\");\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{menuAllActionList.map((s, k) => {\r\n\t\t\t\t\tvar mActnlst = menuActionList.find(x => x.Action && s.Code == x.Action.Code);\r\n\t\t\t\t\tif (mActnlst != null) {\r\n\t\t\t\t\t\tvar buttonData = ButtonList.find(x => mActnlst.Action && x.Code == mActnlst.Action.Code);\r\n\t\t\t\t\t\tif (buttonData != null) {\r\n\t\t\t\t\t\t\tvar menuActionRight = MenuActionRights.find(m => m.MenuAction && m.MenuAction.Action && m.MenuAction.Action.Code == buttonData.Code);\r\n\t\t\t\t\t\t\tif (menuActionRight != null) {\r\n\t\t\t\t\t\t\t\treturn this.OnButtonClick(buttonData, menuActionRight)}>{menuActionRight.MenuAction.Action.Description};\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tvar description = mActnlst.Action ? mActnlst.Action.Description : \"\";\r\n\t\t\t\t\t\t\t\treturn {description};\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tif ([\"Submit\", \"Delete\", \"Search\", \"Update\"].some(x => x == s.Code)) {\r\n\t\t\t\t\t\t\treturn {s.Code};\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t\t{(clearAction == null) ?\r\n\t\t\t\t\t{\"Clear\"}\r\n\t\t\t\t\t: {clearAction.Code}\r\n\t\t\t\t}\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n\r\n\tSetStatus(statusCode) {\r\n\r\n\t\tconst { ButtonList, ApprovalData, After } = this.props;\r\n\t\tconst { RejectReason } = this.state;\r\n\r\n\t\tconst actionCode = (ApprovalData != null) ? ApprovalData.ActionCode : \"\";\r\n\r\n\t\tconst button = ButtonList.find(x => x.Code == actionCode);\r\n\t\tconst { ModelFunction } = button;\r\n\r\n\t\tif (ApprovalData == null) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Cannot Send To Workflow\", \"Approval Data is empty.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar requestData = {\r\n\t\t\tId: ApprovalData.Id,\r\n\t\t\tStatusCode: statusCode\r\n\t\t};\r\n\r\n\t\tif (statusCode == ApprovalStatus.Waiting) {\r\n\t\t\tif (ModelFunction == null) {\r\n\t\t\t\tthis.ShowMessage(\"warning\", \"Cannot Send To Workflow\", \"Model Function is empty.\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tvar data = ModelFunction();\r\n\t\t\tvar jsonData = JSON.stringify(data);\r\n\t\t\trequestData.JsonData = jsonData;\r\n\t\t}\r\n\r\n\t\tif (statusCode == ApprovalStatus.Rejected) {\r\n\t\t\tif (RejectReason == null || RejectReason == \"\") {\r\n\t\t\t\tthis.ShowMessage(\"warning\", \"Cannot Send To Workflow\", \"Reject Reason is empty.\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\trequestData.Comment = RejectReason;\r\n\t\t}\r\n\r\n\t\tif (statusCode == ApprovalStatus.Completed) {\r\n\t\t\tif (button && button.OnClick) {\r\n\t\t\t\tthis.ButtonClickAsSender(button.OnClick);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tProxy.POST(\"/coreapi/v1.0/WorkflowData/SetWorkflowDataStatus\",\r\n\t\t\t\trequestData,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while sending approve request\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.ShowMessage(\"success\", \"Request successfully sent to approve.\");\r\n\t\t\t\t\tif (After) After();\r\n\t\t\t\t},\r\n\t\t\t\terrorMessage => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while sending approve request\", errorMessage);\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t}\r\n\r\n\tStepUp() {\r\n\r\n\t\tconst { ButtonList, ApprovalData, After } = this.props;\r\n\r\n\t\tif (ApprovalData == null) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Cannot Send To Workflow\", \"Approval Data is empty.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar requestData = { Id: ApprovalData.Id };\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/coreapi/v1.0/WorkflowData/StepUp\",\r\n\t\t\trequestData,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while sending approve request\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Last step done and can be directly completed\r\n\t\t\t\tif (responseData.Item && responseData.Item.CurrentStep == null && ApprovalData.DirectComplete == true) {\r\n\t\t\t\t\tconst actionCode = (ApprovalData != null) ? ApprovalData.ActionCode : \"\";\r\n\t\t\t\t\tconst button = ButtonList.find(x => x.Code == actionCode);\r\n\t\t\t\t\tif (button && button.OnClick) {\r\n\t\t\t\t\t\tthis.ButtonClickAsSender(button.OnClick);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.ShowMessage(\"success\", \"Request successfully sent to approve.\");\r\n\t\t\t\t\tif (After) After();\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while sending approve request\", errorMessage);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tButtonClickAsSender(OnClick) {\r\n\t\tconst { ApprovalData, After } = this.props;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/coreapi/v1.0/Authentication/ShadowLogin\",\r\n\t\t\t{\r\n\t\t\t\tWorkflowId: ApprovalData.Id\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tconsole.log(responseData.ErrorDescription);\r\n\t\t\t\t\tOnClick(ApprovalData.Id, After);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tOnClick(ApprovalData.Id, After, responseData.DCBankAccessToken);\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tconsole.log(error);\r\n\t\t\t\tOnClick(ApprovalData.Id, After);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tSendToWorkflow(actionCode, noApprove = false) {\r\n\t\tconst { ButtonList, menuId, After } = this.props;\r\n\r\n\t\tconst button = ButtonList.find(x => x.Code == actionCode);\r\n\t\tconst { ModelFunction, RowId } = button;\r\n\r\n\t\tif (ModelFunction == null) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Cannot Send To Workflow\", \"Model Function is empty.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar data = ModelFunction();\r\n\t\tvar jsonData = JSON.stringify(data);\r\n\r\n\t\tvar requestData = {\r\n\t\t\tMenuId: menuId,\r\n\t\t\tActionCode: actionCode,\r\n\t\t\tJsonData: jsonData,\r\n\t\t\tRowId: RowId,\r\n\t\t\tNoApprove: noApprove\r\n\t\t};\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/coreapi/v1.0/WorkflowData/InsertWorkflowData\",\r\n\t\t\trequestData,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while sending approve request\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Request successfully sent for approval\");\r\n\t\t\t\tif (After) After();\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while sending approve request\", errorMessage);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tRejectClick() {\r\n\t\tconst { ButtonList, ApprovalData } = this.props;\r\n\r\n\t\tconst actionCode = (ApprovalData != null) ? ApprovalData.ActionCode : \"\";\r\n\r\n\t\tconst button = ButtonList.find(x => x.Code == actionCode);\r\n\t\tconst { RejectFunction } = button;\r\n\r\n\t\tconst setReject = () => this.SetStatus(ApprovalStatus.Rejected);\r\n\r\n\t\tif (RejectFunction) {\r\n\t\t\tconst { RejectReason } = this.state;\r\n\r\n\t\t\tif (RejectReason == null || RejectReason == \"\") {\r\n\t\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Reject Reason is empty.\");\r\n\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tRejectFunction(setReject, RejectReason);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tsetReject();\r\n\t\t}\r\n\t}\r\n\r\n\tShowMessage(type, title, message) {\r\n\t\tthis.setState({ alert: AlertHelper.CreateAlert(title, message, type, this.hideAlert) });\r\n\t}\r\n\r\n\tShowConfirmMessage(type, title, message, onConfirm) {\r\n\t\tthis.setState({ alert: AlertHelper.CreateQuestionAlert(title, message, type, onConfirm, this.hideAlert) });\r\n\t}\r\n\r\n\thideAlert() {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\tCancelRejectClick() {\r\n\t\tthis.setState({ rejectReasonDialogOpen: false });\r\n\t}\r\n\r\n\tButtonLog(menuId, actionId, status) {\r\n\t\tif (window.DisableButtonLog != true) {\r\n\t\t\tProxy.POST(\"/coreapi/v1.0/ClientAuditLog/InsertClientAuditLog\",\r\n\t\t\t\t{\r\n\t\t\t\t\tUniqueClientId: ClientHelper.GetClientRowId(),\r\n\t\t\t\t\tMenuId: menuId,\r\n\t\t\t\t\tActionId: actionId,\r\n\t\t\t\t\tStatus: status ?? \"Normal\"\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes, ApprovalData, IsPopUp: IsPopup } = this.props;\r\n\t\tconst { alert, isLoading, RejectReason, RejectComment, rejectReasonDialogOpen } = this.state;\r\n\r\n\t\tvar isRejected = false;\r\n\t\tvar isPopup = IsPopup;\r\n\t\tif (ApprovalData) {\r\n\t\t\tisPopup = true;\r\n\t\t\tisRejected = ApprovalData.ApprovalStatusCode == ApprovalStatus.Rejected;\r\n\t\t}\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{alert}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{this.LoadButtons()}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{isRejected ? : null}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nButtonToolbar.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tButtonList: PropTypes.arrayOf(\r\n\t\tPropTypes.shape({\r\n\t\t\tCode: PropTypes.string.isRequired,\r\n\t\t\tOnClick: PropTypes.func.isRequired,\r\n\t\t\tDisabled: PropTypes.bool,\r\n\t\t\tModelFunction: PropTypes.func,\r\n\t\t\tFillDataFromModel: PropTypes.func,\r\n\t\t\tValidationFunction: PropTypes.func,\r\n\t\t\tRowId: PropTypes.number,\r\n\t\t\tDisableWorkflow: PropTypes.bool,\r\n\t\t\tRejectFunction: PropTypes.func\r\n\t\t})\r\n\t).isRequired,\r\n\tmenuId: PropTypes.number.isRequired,\r\n\tApprovalData: PropTypes.object,\r\n\tAfter: PropTypes.func, // Bu alan sadece Workflow larda gerekli,\r\n\tIsPopUp: PropTypes.bool\r\n};\r\n\r\nexport default withStyles(style)(ButtonToolbar);","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport HtmlEditorHelper from \"core/HtmlEditorHelper\";\r\nimport { EditIcon } from \"core/Icons\";\r\nimport { EditorState } from 'draft-js';\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport 'react-autocomplete-input/dist/bundle.css';\r\nimport { Editor } from 'react-draft-wysiwyg';\r\nimport 'react-draft-wysiwyg/dist/react-draft-wysiwyg.css';\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericGrid, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton.jsx\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\n\r\nclass CampaignNotificationProfile extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tvModel: {},\r\n\t\t\tmodel: {},\r\n\t\t\tProfileList: [],\r\n\t\t\tPropertyList: [],\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t\teditorModelEmail: EditorState.createEmpty(),\r\n\t\t\teditorModelSms: EditorState.createEmpty(),\r\n\t\t\tFile: {},\r\n\t\t\tisClient: ClientHelper.IsClient(),\r\n\t\t};\r\n\t\tthis.fileInputRef = React.createRef();\r\n\t\tthis.ColumnsData = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t this.GetProfileById(row.original.Id)} />\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\twidth: 100\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Program\",\r\n\t\t\t\taccessor: \"Program.Description\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Profile Name\",\r\n\t\t\t\taccessor: \"ProfileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Campaign Type\",\r\n\t\t\t\taccessor: \"ExecutionType.ParameterDesc\"\r\n\t\t\t}\r\n\t\t];\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\tif (this.props.setAppCenterTitle) {\r\n\t\t\tthis.props.setAppCenterTitle(\"Campaign Manager\");\r\n\t\t}\r\n\r\n\t\tif (this.props.setAppLeftTitle)\r\n\t\t\tthis.props.setAppLeftTitle(\"Campaign Notification\");\r\n\r\n\r\n\t\tvar emptyState = HtmlEditorHelper.EmptyEditorContent();\r\n\t\tthis.setState({ editorModelSms: emptyState, editorModelEmail: emptyState });\r\n\t}\r\n\tOperationCheck = () => {\r\n\t\tvar ErrorList = [];\r\n\t\tconst data = this.state.model;\r\n\t\tconst vModel = this.state.vModel;\r\n\r\n\t\tif (data.ProgramId == null || data.ProgramId == \"\") {\r\n\t\t\tvModel.ProgramId = true;\r\n\t\t\tErrorList.push(\"Program must be defined!\");\r\n\t\t} else { vModel.ProgramId = false; }\r\n\t\tif (data.ProfileName == null || data.ProfileName == \"\") {\r\n\t\t\tvModel.ProfileName = true;\r\n\t\t\tErrorList.push(\"Profile Name must be defined!\");\r\n\t\t} else { vModel.ProfileName = false; }\r\n\t\tif (data.ExecutionTypeId == null || data.ExecutionTypeId == \"\") {\r\n\t\t\tvModel.ExecutionTypeId = true;\r\n\t\t\tErrorList.push(\"Execution Type must be defined!\");\r\n\t\t} else { vModel.ExecutionTypeId = false; }\r\n\r\n\r\n\t\tvar email = this.state.editorModelEmail;\r\n\t\tvar MailContent = HtmlEditorHelper.EditorContentToHtml(email);\r\n\t\tif (MailContent == null || MailContent == \"\") {\r\n\t\t\tErrorList.push(\"Mail Content must be defined!\");\r\n\t\t}\r\n\t\tif (data.MailSubject == null || data.MailSubject == \"\") {\r\n\t\t\tvModel.MailSubject = true;\r\n\t\t\tErrorList.push(\"Mail Subject must be defined!\");\r\n\t\t} else { vModel.MailSubject = false; }\r\n\t\tthis.setState({ vModel })\r\n\r\n\t\tvar sms = this.state.editorModelSms;\r\n\t\tvar SmsContent = HtmlEditorHelper.EditorContentToText(sms);\r\n\t\tif (SmsContent == null || SmsContent == \"\") {\r\n\t\t\tErrorList.push(\"SMS Content must be defined!\");\r\n\t\t}\r\n\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.props.showMessageNode(\"error\", \"Please Fill Required Fields\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.UpdateModel();\r\n\t}\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar temp = state.model || {};\r\n\t\t\ttemp[name] = newValue;\r\n\r\n\t\t\tif (name == \"ExecutionTypeId\") {\r\n\t\t\t\tthis.GetAllDataModelProperty(newValue);\r\n\t\t\t}\r\n\t\t\treturn { model: temp };\r\n\t\t});\r\n\t}\r\n\tUpdateModel = () => {\r\n\t\tvar temp = { ...this.state.model };\r\n\t\tconst Id = temp.Id;\r\n\t\tvar email = this.state.editorModelEmail;\r\n\t\ttemp.MailContent = HtmlEditorHelper.EditorContentToHtml(email);\r\n\r\n\t\tvar sms = this.state.editorModelSms;\r\n\t\ttemp.SmsContent = HtmlEditorHelper.EditorContentToText(sms);\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/campaignapi/v1.0/CampaignNotificationProfile/Update\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Success\", Id > 0 ? \"Campaign Notification Profile Updated ! \" : \"Campaign Notification Profile Saved ! \");\r\n\t\t\t\tthis.ClearData();\r\n\t\t\t\tthis.SearchNotificationProfiles();\r\n\t\t\t\tthis.ResponseParser(responseData.Item);\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tSearchNotificationProfiles = () => {\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/campaignapi/v1.0/CampaignNotificationProfile/Search\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ ProfileList: responseData.Item || [] });\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tGetProfileById = (ProfileId) => {\r\n\t\tif (ProfileId == null || ProfileId == 0) {\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Profile Id required for fetching profile !\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/campaignapi/v1.0/CampaignNotificationProfile/GetById\",\r\n\t\t\t{ Id: ProfileId },\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ResponseParser(responseData.Item);\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tResponseParser = (temp) => {\r\n\t\tthis.setState({ model: temp });\r\n\t\tif (temp != null && temp.MailContent != null && temp.MailContent != \"\") {\r\n\t\t\tvar email = HtmlEditorHelper.HtmlToEditorContent(temp.MailContent);\r\n\t\t\tthis.setState({ editorModelEmail: email });\r\n\t\t} else {\r\n\t\t\tthis.setState({ editorModelEmail: HtmlEditorHelper.EmptyEditorContent() });\r\n\t\t}\r\n\t\tif (temp != null && temp.SmsContent != null && temp.SmsContent != \"\") {\r\n\t\t\tvar sms = HtmlEditorHelper.HtmlToEditorContent(temp.SmsContent);\r\n\t\t\tthis.setState({ editorModelSms: sms });\r\n\t\t} else {\r\n\t\t\tthis.setState({ editorModelSms: HtmlEditorHelper.EmptyEditorContent() });\r\n\t\t}\r\n\r\n\t\tif (temp != null && temp.ExecutionTypeId != null) {\r\n\t\t\tthis.GetAllDataModelProperty(temp.ExecutionTypeId);\r\n\t\t}\r\n\t}\r\n\tGetAllDataModelProperty = (ExecutionTypeId) => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/campaignapi/v1.0/CampaignDataModelProperty/GetAllById\",\r\n\t\t\t{ Id: ExecutionTypeId },\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tvar temp = responseData.Item.map(x => {\r\n\t\t\t\t\t\treturn { text: x.PropertyDescription, value: x.PropertyDescription };\r\n\t\t\t\t\t});\r\n\t\t\t\t\tthis.setState({ PropertyList: temp });\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ PropertyList: [] });\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tDeleteModel = () => {\r\n\t\tif (this.state.model == null || this.state.model.Id == null || this.state.model.Id == 0) {\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Campaign Notifiction Profile must be selected for delete operation !\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.GET(\r\n\t\t\t\"/campaignapi/v1.0/CampaignNotificationProfile/Delete/Id?Id=\" + this.state.model.Id,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Success\", \"Campaign Notifiction Profile Deleted !\");\r\n\t\t\t\tthis.ClearData();\r\n\t\t\t\tthis.SearchNotificationProfiles();\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tSelectedRowChange = (index) => {\r\n\t\tconst temp = this.state.ProfileList[index];\r\n\t\tthis.GetProfileById(temp.Id);\r\n\t}\r\n\tClearData = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {},\r\n\t\t\teditorModelEmail: HtmlEditorHelper.EmptyEditorContent(),\r\n\t\t\teditorModelSms: HtmlEditorHelper.EmptyEditorContent(),\r\n\t\t\tFile: {},\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\tEditorStateChangeEmail = (obj) => {\r\n\t\tthis.setState({ editorModelEmail: obj });\r\n\t\tHtmlEditorHelper.EditorContentToText(this.state.editorModelEmail);\r\n\t}\r\n\tEditorStateChangeSms = (obj) => {\r\n\t\tthis.setState({ editorModelSms: obj });\r\n\t\tHtmlEditorHelper.EditorContentToText(this.state.editorModelSms);\r\n\t}\r\n\r\n\tFileSelect = (e) => {\r\n\t\te.preventDefault();\r\n\r\n\t\tvar file = e.target.files[0];\r\n\t\tif (!file) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({ File: file });\r\n\r\n\t\tvar EsTemp = this.EditorStateChangeEmail;\r\n\t\tvar model = this.state.editorModelEmail;\r\n\t\tvar ToHtml = HtmlEditorHelper.EditorContentToHtml;\r\n\t\tvar ToEditor = HtmlEditorHelper.HtmlToEditorContent;\r\n\t\tvar reader = new FileReader();\r\n\t\treader.readAsDataURL(file);\r\n\t\treader.onload = function () {\r\n\t\t\tvar base64 = reader.result;\r\n\t\t\tvar html = ToHtml(model);\r\n\t\t\tvar img = '\"undefined\"';\r\n\r\n\t\t\thtml += img;\r\n\t\t\thtml += \"

\";\r\n\r\n\t\t\tconst editorState = ToEditor(html);\r\n\t\t\tEsTemp(editorState);\r\n\t\t};\r\n\t\treader.onerror = function (error) {\r\n\t\t\tconsole.log('Error: ', error);\r\n\t\t};\r\n\t}\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\treturn `${d.UniqueClientId} - ${d.Name}`;\r\n\t}\r\n\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, ProfileList, PropertyList, editorModelEmail, editorModelSms, vModel } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\t 0 || !this.state.isClient },\r\n\t\t\t\t\t{ Code: \"Update\", OnClick: this.OperationCheck, Disabled: Disabled || !model.Id > 0 || !this.state.isClient },\r\n\t\t\t\t\t{ Code: \"Search\", OnClick: this.SearchNotificationProfiles, Disabled: Disabled },\r\n\t\t\t\t\t{ Code: \"Clear\", OnClick: this.ClearData, Disabled: Disabled },\r\n\t\t\t\t\t{ Code: \"Delete\", OnClick: () => this.props.showConfirmMessage(\"warning\", \"Warning\", \"Delete this Campaign Notification Profile ?\", this.DeleteModel), Disabled: Disabled || !model.Id > 0 || !this.state.isClient }\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{!this.state.isClient && (\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t 0}\r\n\t\t\t\t\t\t\t\t\tName=\"ProgramId\"\r\n\t\t\t\t\t\t\t\t\tLabelText=\"Program\"\r\n\t\t\t\t\t\t\t\t\tValue={model.ProgramId || \"\"}\r\n\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\tKeyValueMember=\"Id\"\r\n\t\t\t\t\t\t\t\t\tTextValueMember=\"Description\"\r\n\t\t\t\t\t\t\t\t\tMethod=\"GET\"\r\n\t\t\t\t\t\t\t\t\tUrl=\"/bankapi/v1.0/Bank/ValidProgramsCampaign\"\r\n\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\tIsInvalid={vModel.ProgramId}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t 0}\r\n\t\t\t\t\t\t\t\t\tName=\"ExecutionTypeId\"\r\n\t\t\t\t\t\t\t\t\tLabelText=\"Execution Type\"\r\n\t\t\t\t\t\t\t\t\tValue={model.ExecutionTypeId || \"\"}\r\n\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\tKeyValueMember=\"Id\"\r\n\t\t\t\t\t\t\t\t\tTextValueMember=\"ParameterDesc\"\r\n\t\t\t\t\t\t\t\t\tMethod=\"POST\"\r\n\t\t\t\t\t\t\t\t\tUrl=\"/coreapi/v1.0/Parameter/Search\"\r\n\t\t\t\t\t\t\t\t\tParameter={{ ParameterCode: \"CampaignExecutionType\" }}\r\n\t\t\t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\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tthis.SelectedRowChange(index);\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCampaignNotificationProfile.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(CampaignNotificationProfile, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport { EditIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericEmailInput, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton.jsx\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\n\r\nclass CampaignPartner extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tvModel: {},\r\n\t\t\tmodel: {},\r\n\t\t\tpartnerList: [],\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t\tisClient: ClientHelper.IsClient(),\r\n\t\t\tphone1: {},\r\n\t\t\tphone2: {}\r\n\t\t};\r\n\t\tthis.getappCenterTitle = \"Empty\";\r\n\t\tthis.getappLeftTitle = \"Empty\";\r\n\t\tthis.ParameterMaxLen30 = { maxLength: 30 };\r\n\t\tthis.ParameterMaxLen64 = { maxLength: 64 };\r\n\t\tthis.ColumnsData = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t this.setState({\r\n\t\t\t\t\t\t\t\tmodel: { ...row.original },\r\n\t\t\t\t\t\t\t\tphone1: { ...row.original.Phone1 },\r\n\t\t\t\t\t\t\t\tphone2: { ...row.original.Phone2 }\r\n\t\t\t\t\t\t\t})} />\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\twidth: 100\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Partner Name\",\r\n\t\t\t\taccessor: \"PartnerName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Legal Name\",\r\n\t\t\t\taccessor: \"LegalName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Unique ID\",\r\n\t\t\t\taccessor: \"CampaignPartnerUniqueId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Company Name\",\r\n\t\t\t\taccessor: \"CompanyName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Bussiness Id Number\",\r\n\t\t\t\taccessor: \"BussinessIdNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Email\",\r\n\t\t\t\taccessor: \"Email\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Phone 1\",\r\n\t\t\t\taccessor: \"Phone1\",\r\n\t\t\t\tCell: row => ({row.original.Phone1 == null ? \"\" : row.original.Phone1.PhoneCountryCode == null ? \"\" : \"+\" + row.original.Phone1.PhoneCountryCode.Code + \" \" + row.original.Phone1.PhoneNumber})\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Phone 2\",\r\n\t\t\t\taccessor: \"Phone2\",\r\n\t\t\t\tCell: row => ({row.original.Phone2 == null ? \"\" : row.original.Phone2.PhoneCountryCode == null ? \"\" : \"+\" + row.original.Phone2.PhoneCountryCode.Code + \" \" + row.original.Phone2.PhoneNumber})\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"City\",\r\n\t\t\t\taccessor: \"City.Name\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Country\",\r\n\t\t\t\taccessor: \"Country.Name\"\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"Zip Code\",\r\n\t\t\t\taccessor: \"ZipCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Province\",\r\n\t\t\t\taccessor: \"Province.Name\"\r\n\t\t\t},\r\n\r\n\t\t];\r\n\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\tif (this.props.setAppCenterTitle) {\r\n\t\t\tthis.props.setAppCenterTitle(\"Campaign Manager\");this.getappCenterTitle = \"Campaign Manager\";\r\n\t\t}\r\n\r\n\t\tif (this.props.setAppLeftTitle)\r\n\t\t\tthis.props.setAppLeftTitle(\"Campaign Partner\");this.getappLeftTitle = \"Campaign Partner\";\r\n\r\n\t\tthis.LoadCanadaPost();\r\n\t}\r\n\tValidateEmail = (email) => {\r\n\t\tvar re = /^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\r\n\t\treturn re.test(String(email).toLowerCase());\r\n\t}\r\n\tOperationCheck = () => {\r\n\t\tvar ErrorList = [];\r\n\t\tconst data = this.state.model;\r\n\t\tconst phone1 = this.state.phone1;\r\n\t\tconst phone2 = this.state.phone2;\r\n\t\tconst vModel = this.state.vModel;\r\n\r\n\t\tif (data.PartnerName == null || data.PartnerName == \"\") {\r\n\t\t\tvModel.PartnerName = true;\r\n\t\t\tErrorList.push(\"Campaign Partner must be defined!\");\r\n\t\t} else { vModel.PartnerName = false; }\r\n\t\tif (data.BussinessIdNumber == null || data.BussinessIdNumber == \"\") {\r\n\t\t\tvModel.BussinessIdNumber = true;\r\n\t\t\tErrorList.push(\"Bussiness ID Number must be defined!\");\r\n\t\t} else { vModel.BussinessIdNumber = false; }\r\n\t\tif (data.CompanyName == null || data.CompanyName == \"\") {\r\n\t\t\tvModel.CompanyName = true;\r\n\t\t\tErrorList.push(\"Company Name must be defined!\");\r\n\t\t} else { vModel.CompanyName = false; }\r\n\t\tif (data.Email == null || data.Email == \"\") {\r\n\t\t\tvModel.Email = true;\r\n\t\t\tErrorList.push(\"Email must be defined!\");\r\n\t\t} else { vModel.Email = false; }\r\n\t\tif (data.Email != null && !this.ValidateEmail(data.Email)) {\r\n\t\t\tErrorList.push(\"E-mail must be valid!\");\r\n\t\t}\r\n\t\tif (data.LegalName == null || data.LegalName == \"\") {\r\n\t\t\tvModel.LegalName = true;\r\n\t\t\tErrorList.push(\"Legal Name must be defined!\");\r\n\t\t} else { vModel.LegalName = false; }\r\n\t\tif (data.SendSms == null) {\r\n\t\t\tvModel.SendSms = true;\r\n\t\t\tErrorList.push(\"Text/SMS Notification must be defined!\");\r\n\t\t} else { vModel.SendSms = false; }\r\n\t\tif (data.SendEmail == null) {\r\n\t\t\tvModel.SendEmail = true;\r\n\t\t\tErrorList.push(\"E-Mail Notification must be defined!\");\r\n\t\t} else { vModel.SendEmail = false; }\r\n\r\n\t\tif (phone1 != null && (phone1.PhoneNumber != null || phone1.PhoneCountryCodeId != null)) {\r\n\t\t\tif (phone1.PhoneNumber != null && phone1.PhoneNumber.toString().length != 10) {\r\n\t\t\t\tErrorList.push(\"Phone 1 must be 10 Digits!\")\r\n\t\t\t}\r\n\t\t\tif (phone1 == null || phone1.PhoneCountryCodeId == null || phone1.PhoneCountryCodeId == \"\") {\r\n\t\t\t\tvModel.PhoneCountryCodeId = true;\r\n\t\t\t\tErrorList.push(\"Phone 1 Country Code must be defined!\");\r\n\t\t\t} else { vModel.PhoneCountryCodeId = false; }\r\n\t\t\tif (phone1 == null || phone1.PhoneNumber == null) {\r\n\t\t\t\tvModel.PhoneNumber = true;\r\n\t\t\t\tErrorList.push(\"Phone 1 must be defined!\");\r\n\t\t\t} else { vModel.PhoneNumber = false; }\r\n\t\t}\r\n\r\n\t\tif (phone2 != null && (phone2.PhoneNumber != null || phone2.PhoneCountryCodeId != null)) {\r\n\t\t\tif (phone2.PhoneNumber != null && phone2.PhoneNumber.toString().length != 10) {\r\n\t\t\t\tErrorList.push(\"Phone 2 must be 10 Digits!\")\r\n\t\t\t}\r\n\t\t\tif (phone2 == null || phone2.PhoneCountryCodeId == null || phone2.PhoneCountryCodeId == \"\") {\r\n\t\t\t\tvModel.PhoneCountryCodeId = true;\r\n\t\t\t\tErrorList.push(\"Phone 2 Country Code must be defined!\");\r\n\t\t\t} else { vModel.PhoneCountryCodeId = false; }\r\n\t\t\tif (phone2 == null || phone2.PhoneNumber == null) {\r\n\t\t\t\tvModel.PhoneNumber = true;\r\n\t\t\t\tErrorList.push(\"Phone 2 must be defined!\");\r\n\t\t\t} else { vModel.PhoneNumber = false; }\r\n\t\t}\r\n\r\n\t\tthis.setState({ vModel })\r\n\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.props.showMessageNode(\"warning\", \"Please fill required fields!\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.UpdateModel();\r\n\t}\r\n\thandleChangeCP = (data) => {\r\n\t\tvar temp = { ...this.state.model };\r\n\t\ttemp.Address1 = data.Address1;\r\n\t\ttemp.Address2 = data.Address2;\r\n\t\ttemp.ZipCode = data.ZipCode;\r\n\r\n\t\tthis.setState({ model: temp });\r\n\t}\r\n\tLoadCanadaPost = () => {\r\n\t\tProxy.POST(\"/coreapi/v1.0/Parameter/Search\",\r\n\t\t\t{\r\n\t\t\t\tParameterCode: \"CanadaPostApiKey\",\r\n\t\t\t\tParameterValue: \"CP\",\r\n\t\t\t\tParameterDesc: \"\"\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tconsole.log(\"Canada Post Api key not fetched !\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item == null) {\r\n\t\t\t\t\tconsole.log(\"Canada Post Api key not fetched !\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item[0] == null) {\r\n\t\t\t\t\tconsole.log(\"Canada Post Api key not fetched !\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tvar apikey = responseData.Item[0].ParameterDesc;\r\n\t\t\t\tconsole.log(\"KEY CP \", apikey);\r\n\r\n\r\n\t\t\t\tvar url = window.CanadaPostAddressCompleteUrl;\r\n\t\t\t\tvar path = url + apikey;\r\n\r\n\t\t\t\tvar pca;\r\n\r\n\t\t\t\tvar temp = this.state.model;\r\n\t\t\t\tvar CpTemp = this.handleChangeCP;\r\n\t\t\t\tvar CanadaPostSubmit = this.SubmitCanadaPostAddressModel;\r\n\t\t\t\tvar CanadaPostRequest=this.SubmitCanadaPostRequest;\r\n\r\n\t\t\t\tconst script = document.createElement(\"script\");\r\n\t\t\t\tscript.src = path;\r\n\t\t\t\tscript.async = false;\r\n\t\t\t\tdocument.head.appendChild(script);\r\n\t\t\t\tscript.onload = function () {\r\n\t\t\t\t\tpca = window.pca;\r\n\t\t\t\t\tif (pca != null) {\r\n\t\t\t\t\t\tvar fields =\r\n\t\t\t\t\t\t\t[\r\n\t\t\t\t\t\t\t\t{ element: \"street-address\", field: \"Line1\", mode: pca.fieldMode.SEARCH },\r\n\t\t\t\t\t\t\t\t{ element: \"street-address2\", field: \"Line2\", mode: pca.fieldMode.POPULATE },\r\n\t\t\t\t\t\t\t\t{ element: \"postcode\", field: \"PostalCode\", mode: pca.fieldMode.SEARCH },\r\n\t\t\t\t\t\t\t],\r\n\t\t\t\t\t\t\toptions = {\r\n\t\t\t\t\t\t\t\tkey: apikey\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\tcontrol = new pca.Address(fields, options);\r\n\t\t\t\t\t\t\tCanadaPostRequest();\r\n\t\t\t\t\t\tcontrol.listen(\"populate\", function (address) {\r\n\t\t\t\t\t\t\ttemp.Address1 = address.Line1;\r\n\t\t\t\t\t\t\ttemp.Address2 = address.Line2;\r\n\t\t\t\t\t\t\ttemp.ZipCode = address.PostalCode;\r\n\t\t\t\t\t\t\tCpTemp(temp);\r\n\t\t\t\t\t\t\tCanadaPostSubmit(address);\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\te => {\r\n\t\t\t\tconsole.log(\"Canada Post Api key not fetched !\");\r\n\t\t\t}\r\n\t\t);\r\n\t}\t\r\n\tSubmitCanadaPostRequest = async () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tvar requestdata = { \r\n\r\n\t\t\tUniqueClientId: null,\r\n\t\t\tMenuCode:this.props.MenuCode,\r\n\t\t\tAppCenterTitle:this.getappCenterTitle,\r\n\t\t\tAppLeftTitle:this.getappLeftTitle\r\n\t\t};\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Reporting/CanadaPostRequestReportInsert\",\r\n\t\t\trequestdata,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (responseData.Item != null ) {\r\n\t\t\t\t\t \r\n\t\t\t\t}\r\n\t\t\t},\r\n \t\t);\r\n\t\t// var result = await this.props.ExecuteApiPost(\"/bankapi/v1.0/Reporting/CanadaPostRequestReportInsert\", requestdata);\r\n\t}\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar temp = state.model || {};\r\n\t\t\ttemp[name] = newValue;\r\n\t\t\treturn { model: temp };\r\n\t\t});\r\n\t}\r\n\thandleChangePhone1 = (name, newValue, data) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar temp = state.phone1 || {};\r\n\t\t\ttemp[name] = newValue;\r\n\t\t\treturn { phone1: temp };\r\n\t\t});\r\n\t}\r\n\thandleChangePhone2 = (name, newValue, data) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar temp = state.phone2 || {};\r\n\t\t\ttemp[name] = newValue;\r\n\t\t\treturn { phone2: temp };\r\n\t\t});\r\n\t}\r\n\tSubmitCanadaPostAddressModel = (model) => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Country/CanadaPost\",\r\n\t\t\tmodel,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tvar temp = { ...this.state.model };\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\ttemp.CountryId = responseData.Item.CountryId;\r\n\t\t\t\t\ttemp.ProvinceId = responseData.Item.ProvinceId;\r\n\t\t\t\t\ttemp.CityId = responseData.Item.CityId;\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttemp.CountryId = 0;\r\n\t\t\t\t\ttemp.ProvinceId = 0;\r\n\t\t\t\t\ttemp.CityId = 0;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ model: temp });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tUpdateModel = () => {\r\n\t\tvar temp = this.state.model;\r\n\t\ttemp.Phone1 = this.state.phone1;\r\n\t\ttemp.Phone2 = this.state.phone2;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/campaignapi/v1.0/CampaignPartner/Update\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Success\", temp.Id > 0 ? \"Campaign Partner Updated ! \" : \"Campaign Partner Saved ! \");\r\n\t\t\t\tthis.ClearData();\r\n\t\t\t\tthis.SearchCampaignPartners();\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tSearchCampaignPartners = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/campaignapi/v1.0/CampaignPartner/Search\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.setState({ partnerList: responseData.Item || [] });\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ partnerList: [] });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tDeleteModel = () => {\r\n\t\tif (this.state.model == null || this.state.model.Id == null || this.state.model.Id == 0) {\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Campaign partner must be selected for delete operation !\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.GET(\r\n\t\t\t\"/campaignapi/v1.0/CampaignPartner/Delete/Id?Id=\" + this.state.model.Id,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Success\", \"Campaign partner deleted !\");\r\n\t\t\t\tthis.ClearData();\r\n\t\t\t\tthis.SearchCampaignPartners();\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tSelectedRowChange = (index) => {\r\n\t\tconst temp = this.state.partnerList[index];\r\n\t\tif (temp != null) {\r\n\t\t\tthis.setState({ model: temp, phone1: temp.Phone1, phone2: temp.Phone2 });\r\n\t\t} else {\r\n\t\t\tthis.setState({ model: {}, phone1: {}, phone2: {} });\r\n\t\t}\r\n\t}\r\n\tClearData = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {},\r\n\t\t\tpartnerList: [],\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t\tphone1: {},\r\n\t\t\tphone2: {}\r\n\t\t});\r\n\t}\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\treturn `${d.UniqueClientId} - ${d.Name}`;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, partnerList, phone1, phone2, vModel } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t 0 || !this.state.isClient },\r\n\t\t\t\t\t{ Code: \"Update\", OnClick: this.OperationCheck, Disabled: Disabled || !model.Id > 0 || !this.state.isClient },\r\n\t\t\t\t\t{ Code: \"Search\", OnClick: this.SearchCampaignPartners, Disabled: Disabled },\r\n\t\t\t\t\t{ Code: \"Clear\", OnClick: this.ClearData, Disabled: Disabled },\r\n\t\t\t\t\t{ Code: \"Delete\", OnClick: () => this.props.showConfirmMessage(\"warning\", \"Warning\", \"Delete this campaign partner ?\", this.DeleteModel), Disabled: Disabled || !model.Id > 0 || !this.state.isClient }\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t

Partner Information

\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{!this.state.isClient && (\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t

General Information

\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t

Communication Information

\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t \"+\" + d.Code + \" (\" + d.Name + \")\"}\r\n\t\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.PhoneCountryCodeId}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t \"+\" + d.Code + \" (\" + d.Name + \")\"}\r\n\t\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.PhoneCountryCodeId}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t this.handleChange(n, v == \"true\")}\r\n\t\t\t\t\t\t\t\t\tKeyValueMember=\"ParameterValue\"\r\n\t\t\t\t\t\t\t\t\tTextValueMember=\"ParameterDesc\"\r\n\t\t\t\t\t\t\t\t\tMethod=\"POST\"\r\n\t\t\t\t\t\t\t\t\tUrl=\"/coreapi/v1.0/Parameter/Search\"\r\n\t\t\t\t\t\t\t\t\tParameter={{ ParameterCode: \"YesNo\", ParameterValue: \"\", ParameterDesc: \"\" }}\r\n\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\tIsInvalid={vModel.SendSms}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t this.handleChange(n, v == \"true\")}\r\n\t\t\t\t\t\t\t\t\tKeyValueMember=\"ParameterValue\"\r\n\t\t\t\t\t\t\t\t\tTextValueMember=\"ParameterDesc\"\r\n\t\t\t\t\t\t\t\t\tMethod=\"POST\" Url=\"/coreapi/v1.0/Parameter/Search\"\r\n\t\t\t\t\t\t\t\t\tParameter={{ ParameterCode: \"YesNo\", ParameterValue: \"\", ParameterDesc: \"\" }}\r\n\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\tIsInvalid={vModel.SendEmail}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t

Address Information

\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t

Campaign Partner List

\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tthis.SelectedRowChange(index);\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t
\r\n\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCampaignPartner.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(CampaignPartner, {});","import Card from \"components/Card/Card.jsx\";\r\nimport React from \"react\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport Formatter from \"core/Formatter\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport { CompareSharp as PublicImg, Edit as EditImg } from \"@material-ui/icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport { GenericTitle, GenericAlert, GenericGrid, GenericColorInput, GenericLabel, GenericNumberInput, GenericCheckInput, GenericDateInput, GenericSelectInput, GenericEmailInput, GenericTextInput, GenericIcon, GenericDialogActions, GenericDialog } from \"views/Components/Generic\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { GenericInput } from \"views/Components/Generic.jsx\";\r\nimport { PropertyType } from \"views/Constants/Constant.js\";\r\nimport { DetailIcon, EditIcon } from \"core/Icons\";\r\nimport { Dialog, DialogActions, DialogContent, DialogTitle, IconButton } from \"@material-ui/core\";\r\nimport HtmlContentRender from \"core/HtmlEditorHelper\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridButton from \"views/Components/GridButton.jsx\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\n\r\nclass CampaignEvaulate extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tProfile: {},\r\n\t\t\tCampaignCriteriaList: [],\r\n\t\t\tCampaignMethodList: [],\r\n\t\t\tCampaignSimulates: [],\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t\tisMessageDetailDialogOpen: false,\r\n\t\t\tCustomerActionModel: {}\r\n\t\t};\r\n\r\n\t\tthis.ColumnsDataCriteria = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Program\",\r\n\t\t\t\taccessor: \"CampaignProfile.Program.Description\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"ExecutionType\",\r\n\t\t\t\taccessor: \"CampaignProfile.ExecutionType.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Profile Name\",\r\n\t\t\t\taccessor: \"CampaignProfile.CampaignProfileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Expression Type\",\r\n\t\t\t\taccessor: \"ExpressionType.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Right Value\",\r\n\t\t\t\taccessor: \"RightValue\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Property Name\",\r\n\t\t\t\taccessor: \"DataModelProperty.PropertyName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Data Model\",\r\n\t\t\t\taccessor: \"DataModelProperty.DataModelDefinition.Description\"\r\n\t\t\t}\r\n\t\t];\r\n\t\tthis.ColumnsDataMethod = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Program\",\r\n\t\t\t\taccessor: \"CampaignProfile.Program.Description\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"ExecutionType\",\r\n\t\t\t\taccessor: \"CampaignEngineMethod.ExecutionType.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Profile Name\",\r\n\t\t\t\taccessor: \"CampaignProfile.CampaignProfileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Method Name\",\r\n\t\t\t\taccessor: \"CampaignEngineMethod.MethodName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Method Description\",\r\n\t\t\t\taccessor: \"CampaignEngineMethod.MethodDescription\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Engine Description\",\r\n\t\t\t\taccessor: \"CampaignEngineMethod.EngineDefinition.EngineDescription\"\r\n\t\t\t}\r\n\t\t];\r\n\t\tthis.ColumnsDataAppliedCustomer = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Message\",\r\n\t\t\t\taccessor: \"Message\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t this.setState({ isMessageDetailDialogOpen: true, CustomerActionModel: row.original })} />\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\twidth: 100\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Id\",\r\n\t\t\t\taccessor: \"Id\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Unique Client ID\",\r\n\t\t\t\taccessor: \"UniqueClientId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Number\",\r\n\t\t\t\taccessor: \"ClientCustomerNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"CustomerName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Number\",\r\n\t\t\t\taccessor: \"CustomerNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Email\",\r\n\t\t\t\taccessor: \"Email\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Phone\",\r\n\t\t\t\taccessor: \"Phone\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Notication Type\",\r\n\t\t\t\taccessor: \"NoticationType\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tvar ProfileId = this.props.ProfileId;\r\n\t\tif (ProfileId == null || ProfileId == 0) {\r\n\t\t\tconsole.log(\"Profile Id not valid \");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/campaignapi/v1.0/CampaignProfile/Simulate\",\r\n\t\t\t{ Id: ProfileId },\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tProfile: responseData.Item || {},\r\n\t\t\t\t\t\tCampaignCriteriaList: responseData.Item.CampaignCriteriaList || [],\r\n\t\t\t\t\t\tCampaignMethodList: responseData.Item.CampaignMethodList || [],\r\n\t\t\t\t\t\tCampaignSimulates: responseData.Item.CampaignSimulates || []\r\n\t\t\t\t\t});\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tProfile: {},\r\n\t\t\t\t\t\tCampaignCriteriaList: [],\r\n\t\t\t\t\t\tCampaignMethodList: [],\r\n\t\t\t\t\t\tCampaignSimulates: []\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\t// type:-success->warning->info->error\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\r\n\tReturnHtml = (htmlInput) => {\r\n\t\tvar ReactDOMServer = require('react-dom/server');\r\n\t\tvar HtmlToReactParser = require('html-to-react').Parser;\r\n\r\n\t\tvar htmlToReactParser = new HtmlToReactParser();\r\n\t\tvar reactElement = htmlToReactParser.parse(htmlInput);\r\n\t\tvar reactHtml = ReactDOMServer.renderToStaticMarkup(reactElement);\r\n\r\n\t\treturn reactElement;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes } = this.props;\r\n\t\tconst { Profile, CampaignCriteriaList, CampaignMethodList, CampaignSimulates, CustomerActionModel } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t

Applied Customer: {Profile.TotalCustomer}

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t

Total Action: {Profile.TotalAction}

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t

Total Criteria: {Profile.TotalCriteria}

\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{CustomerActionModel.NoticationType == \"Sms\" && (\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

Phone Number: {CustomerActionModel.Phone}

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t{CustomerActionModel.SmsContent}\r\n\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t)}\r\n\r\n\t\t\t\t\t\t{CustomerActionModel.NoticationType == \"EMail\" && (\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

Email: {CustomerActionModel.Email}

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
{HtmlContentRender.HtmlContentToReact(CustomerActionModel.EmailContent)}
\r\n\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t)}\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCampaignEvaulate.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(CampaignEvaulate, {});","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { EditIcon, InformationIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport CampaignEvaulate from \"views/Campaign/CampaignEvaulate/CampaignEvaulate\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericCheckInput, GenericDateInput, GenericDialog, GenericDialogActions, GenericGrid, GenericLabel, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport { GenericInput } from \"views/Components/Generic.jsx\";\r\nimport GridButton from \"views/Components/GridButton.jsx\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { CampaignExecutionType, DaysOfMonth, DaysOfWeek, MonthsOfYear, PropertyType } from \"views/Constants/Constant.js\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass CampaignProfile extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tvModel: {},\r\n\t\t\tmodel: {},\r\n\t\t\tCampaignProfileList: [],\r\n\t\t\tCriteriaList: [],\r\n\t\t\tActionList: [],\r\n\t\t\tDaysOfWeekList: [],\r\n\t\t\tDaysOfMonthList: [],\r\n\t\t\tMonthsOfYearList: [],\r\n\t\t\talert: null,\r\n\t\t\tisSimulateDialogOpen: false,\r\n\t\t\tisLoading: false,\r\n\t\t\tisClient: ClientHelper.IsClient(),\r\n\t\t};\r\n\t\tthis.ParameterExecutionType = { ParameterCode: \"CampaignExecutionType\" };\r\n\t\tthis.CampaignMethodProfileParameter = {};\r\n\r\n\t\tthis.ColumnsData = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t this.GetProfileById(row.original.Id)} />\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\twidth: 100\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Simulate\",\r\n\t\t\t\taccessor: \"Simulate\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\twidth: 100\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Program\",\r\n\t\t\t\taccessor: \"Program.Description\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Profile Name\",\r\n\t\t\t\taccessor: \"ProfileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Campaign Type\",\r\n\t\t\t\taccessor: \"ExecutionType.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Campaign Code\",\r\n\t\t\t\taccessor: \"CampaignCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Campaign Start Date\",\r\n\t\t\t\taccessor: \"StartDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tfilterMethod: (filter, row, column) => {\r\n\t\t\t\t\treturn Formatter.FormatDateTime(row[filter.id]).toLowerCase().startsWith(filter.value.toLowerCase())\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Campaign End Date\",\r\n\t\t\t\taccessor: \"ExpireDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tfilterMethod: (filter, row, column) => {\r\n\t\t\t\t\treturn Formatter.FormatDateTime(row[filter.id]).toLowerCase().startsWith(filter.value.toLowerCase())\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t];\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\tif (this.props.setAppCenterTitle) {\r\n\t\t\tthis.props.setAppCenterTitle(\"Campaign Manager\");\r\n\t\t}\r\n\r\n\t\tif (this.props.setAppLeftTitle)\r\n\t\t\tthis.props.setAppLeftTitle(\"Campaign Profile\");\r\n\r\n\t}\r\n\tOperationCheck = () => {\r\n\t\tvar ErrorList = [];\r\n\t\tconst data = this.state.model;\r\n\t\tconst vModel = this.state.vModel;\r\n\t\tvar criteria = this.CheckCriteriaList();\r\n\t\tif (!criteria) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tvar action = this.CheckActionList();\r\n\t\tif (!action) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (!data.ProfileName) {\r\n\t\t\tvModel.ProfileName = true;\r\n\t\t\tErrorList.push(\"Profile Name can not be null.\");\r\n\t\t} else { vModel.ProfileName = false; }\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.UpdateModel();\r\n\t}\r\n\tCheckActionList = () => {\r\n\t\treturn true;\r\n\t}\r\n\tCheckCriteriaList = () => {\r\n\t\tvar list = this.state.CriteriaList;\r\n\t\tvar vModel = this.state.vModel;\r\n\t\tvar ErrorList = [];\r\n\r\n\t\tlist.forEach((element, index) => {\r\n\t\t\tif (element == null) {\r\n\t\t\t\tErrorList.push(\"Criteria \" + this.GridRowCount(index) + \" must be defined\");\r\n\t\t\t}\r\n\t\t\tif (element == null || element.DataModelPropertyId == null || element.DataModelPropertyId == \"\") {\r\n\t\t\t\tvModel.DataModelPropertyId = true;\r\n\t\t\t\tErrorList.push(\"Criteria \" + this.GridRowCount(index) + \" type must be defined \");\r\n\t\t\t} else { vModel.DataModelPropertyId = false; }\r\n\t\t\tif (element == null || element.ExpressionTypeId == null || element.ExpressionTypeId == \"\") {\r\n\t\t\t\tvModel.ExpressionTypeId = true;\r\n\t\t\t\tErrorList.push(\"Criteria Expression \" + this.GridRowCount(index) + \" type must be defined \");\r\n\t\t\t} else { vModel.ExpressionTypeId = false; }\r\n\t\t\tif (element == null || element.RightValue == null || element.RightValue == \"\") {\r\n\t\t\t\tvModel.RightValue = true;\r\n\t\t\t\tErrorList.push(\"Criteria Value \" + this.GridRowCount(index) + \" must be defined \");\r\n\t\t\t} else { vModel.RightValue = false; }\r\n\t\t\tif (element == null || element.DataModelProperty == null || element.DataModelProperty.PropertyType == null || element.DataModelProperty.PropertyType.ParameterValue == null) {\r\n\t\t\t\tErrorList.push(\"Criteria \" + this.GridRowCount(index) + \" must be selected !\");\r\n\t\t\t} else {\r\n\t\t\t\tif (element != null && element.DataModelProperty.PropertyType.ParameterValue == PropertyType.Date) {\r\n\t\t\t\t\tif (element.RightValue == null || !element.RightValue.isValid()) {\r\n\t\t\t\t\t\tErrorList.push(\"Criteria \" + this.GridRowCount(index) + \" Date must be valid \");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tthis.setState({ vModel })\r\n\t\t\tvar temp = list.filter(x => x.DataModelPropertyId == element.DataModelPropertyId && x.ExpressionTypeId == element.ExpressionTypeId);\r\n\t\t\tif (temp.length > 1) {\r\n\t\t\t\tErrorList.push(\"Criteria \" + this.GridRowCount(index) + \" can not add because same criteria and expression already exist\");\r\n\t\t\t}\r\n\r\n\t\t});\r\n\r\n\t\tvar unique = [...new Set(list.map(a => a.DataModelPropertyId && a.ExpressionTypeId))];\r\n\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Check these fields!\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar temp = state.model || {};\r\n\t\t\tif (name == \"IsOneTimeEvent\" && newValue == true) {\r\n\t\t\t\ttemp.IsContinuousEvent = false;\r\n\t\t\t\ttemp.IsCustomEvent = false;\r\n\t\t\t\ttemp.StartDateTime = null;\r\n\t\t\t\ttemp.ExpireDateTime = null;\r\n\t\t\t}\r\n\t\t\tif (name == \"IsContinuousEvent\" && newValue == true) {\r\n\t\t\t\ttemp.IsOneTimeEvent = false;\r\n\t\t\t\ttemp.IsCustomEvent = false;\r\n\t\t\t\ttemp.StartDateTime = null;\r\n\t\t\t\ttemp.ExpireDateTime = null;\r\n\t\t\t}\r\n\t\t\tif (name == \"IsCustomEvent\" && newValue == true) {\r\n\t\t\t\ttemp.IsContinuousEvent = false;\r\n\t\t\t\ttemp.IsOneTimeEvent = false;\r\n\t\t\t\ttemp.StartDateTime = null;\r\n\t\t\t\ttemp.ExpireDateTime = null;\r\n\t\t\t}\r\n\t\t\tif (name == \"ExecutionTypeId\" && data != null) {\r\n\t\t\t\ttemp.ExecutionTypeStr = data.ParameterValue;\r\n\t\t\t}\r\n\t\t\tif (name == \"IsDaysOfWeek\" && newValue == true) {\r\n\t\t\t\ttemp.IsDaysOfMonth = false;\r\n\t\t\t\tthis.setState({ DaysOfMonthList: [] });\r\n\t\t\t}\r\n\t\t\tif (name == \"IsDaysOfMonth\" && newValue == true) {\r\n\t\t\t\ttemp.IsDaysOfWeek = false;\r\n\t\t\t\tthis.setState({ DaysOfWeekList: [] });\r\n\t\t\t}\r\n\t\t\ttemp[name] = newValue;\r\n\t\t\treturn { model: temp };\r\n\t\t});\r\n\t}\r\n\thandleListItemChange = (name, newValue, key, ObjectName) => {\r\n\t\tif (ObjectName == \"DaysOfWeek\") {\r\n\t\t\tconst array = this.state.DaysOfWeekList;\r\n\t\t\tconst item = array.includes(key);\r\n\t\t\tif (item == false && newValue == true) {\r\n\t\t\t\tarray.push(key);\r\n\t\t\t} else if (item == true && newValue == false) {\r\n\t\t\t\tvar index = array.indexOf(key);\r\n\t\t\t\tif (index > -1) {\r\n\t\t\t\t\tarray.splice(index, 1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tthis.setState({ DaysOfWeekList: array });\r\n\t\t}\r\n\t\tif (ObjectName == \"DaysOfMonth\") {\r\n\t\t\tconst array = this.state.DaysOfMonthList;\r\n\t\t\tconst item = array.includes(key);\r\n\t\t\tif (item == false && newValue == true) {\r\n\t\t\t\tarray.push(key);\r\n\t\t\t} else if (item == true && newValue == false) {\r\n\t\t\t\tvar index = array.indexOf(key);\r\n\t\t\t\tif (index > -1) {\r\n\t\t\t\t\tarray.splice(index, 1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tthis.setState({ DaysOfMonthList: array });\r\n\t\t}\r\n\t\tif (ObjectName == \"MonthsOfYear\") {\r\n\t\t\tconst array = this.state.MonthsOfYearList;\r\n\t\t\tconst item = array.includes(key);\r\n\t\t\tif (item == false && newValue == true) {\r\n\t\t\t\tarray.push(key);\r\n\t\t\t} else if (item == true && newValue == false) {\r\n\t\t\t\tvar index = array.indexOf(key);\r\n\t\t\t\tif (index > -1) {\r\n\t\t\t\t\tarray.splice(index, 1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tthis.setState({ MonthsOfYearList: array });\r\n\t\t}\r\n\t}\r\n\tUpdateModel = () => {\r\n\t\tvar temp = this.state.model;\r\n\t\ttemp.CriteriaList = this.state.CriteriaList;\r\n\t\ttemp.ActionList = this.state.ActionList;\r\n\r\n\t\ttemp.CriteriaList.forEach(element => {\r\n\t\t\telement.RightValue = JSON.stringify(element.RightValue);\r\n\t\t\t//element.ViewData = null;\r\n\t\t\t//element.DataModelProperty = null;\r\n\t\t});\r\n\r\n\t\ttemp.DaysOfWeek = JSON.stringify(this.state.DaysOfWeekList);\r\n\t\ttemp.DaysOfMonth = JSON.stringify(this.state.DaysOfMonthList);\r\n\t\ttemp.MonthsOfYear = JSON.stringify(this.state.MonthsOfYearList);\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/campaignapi/v1.0/CampaignProfile/Update\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", temp.Id > 0 ? \"Campaign Profile Updated ! \" : \"Campaign Profile Saved ! \");\r\n\t\t\t\tthis.ClearData();\r\n\t\t\t\tthis.SearchCampaignProfileModel();\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tEvaluateCampaign = (ProfileId) => {\r\n\t\tif (ProfileId == null || ProfileId == 0) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", \"Profile Id required for Evaluating profile !\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/campaignapi/v1.0/CampaignCriteria/Evaluate\",\r\n\t\t\t{ Id: ProfileId },\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tGetProfileById = (ProfileId) => {\r\n\t\tif (ProfileId == null || ProfileId == 0) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", \"Profile Id required for fetching profile !\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/campaignapi/v1.0/CampaignProfile/GetById\",\r\n\t\t\t{ Id: ProfileId },\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (responseData.Item != null) {\r\n\r\n\t\t\t\t\tif (responseData.Item.CriteriaList != null) {\r\n\t\t\t\t\t\tresponseData.Item.CriteriaList.forEach(element => {\r\n\t\t\t\t\t\t\telement.ViewData = this.GenerateViewData(element.DataModelProperty.PropertyType.ParameterValue, element.DataModelProperty.PropertyData);\r\n\t\t\t\t\t\t\telement.RightValue = JSON.parse(element.RightValue);\r\n\t\t\t\t\t\t\tif (element.DataModelProperty.PropertyType.ParameterValue == PropertyType.Date) {\r\n\t\t\t\t\t\t\t\telement.RightValue = DateHelper.ToMoment(element.RightValue);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\tthis.setState({ CriteriaList: responseData.Item.CriteriaList });\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.setState({ CriteriaList: [] });\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (responseData.Item.ActionList != null) {\r\n\t\t\t\t\t\tthis.setState({ ActionList: responseData.Item.ActionList });\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.setState({ ActionList: [] });\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tvar temp = responseData.Item;\r\n\t\t\t\t\tif (temp != null) {\r\n\t\t\t\t\t\ttemp.ExecutionTypeStr = temp.ExecutionType == null ? \"\" : temp.ExecutionType.ParameterValue || \"\";\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\ttemp = {};\r\n\t\t\t\t\t\ttemp.ExecutionTypeStr = \"\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.setState({ model: temp });\r\n\r\n\t\t\t\t\tthis.setState({ DaysOfWeekList: JSON.parse(temp.DaysOfWeek) });\r\n\t\t\t\t\tthis.setState({ DaysOfMonthList: JSON.parse(temp.DaysOfMonth) });\r\n\t\t\t\t\tthis.setState({ MonthsOfYearList: JSON.parse(temp.MonthsOfYear) });\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ model: {}, CriteriaList: [], ActionList: [] });\r\n\t\t\t\t}\r\n\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tSearchCampaignProfileModel = () => {\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/campaignapi/v1.0/CampaignProfile/Search\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ CampaignProfileList: responseData.Item });\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tDeleteModel = () => {\r\n\t\tif (this.state.model == null || this.state.model.Id == null || this.state.model.Id == 0) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", \"Campaign Profile must be selected for delete operation !\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.GET(\r\n\t\t\t\"/campaignapi/v1.0/CampaignProfile/Delete/Id?Id=\" + this.state.model.Id,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Campaign Profile deleted !\");\r\n\t\t\t\tthis.ClearData();\r\n\t\t\t\tthis.SearchCampaignProfileModel();\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tGenerateViewData = (type, data) => {\r\n\t\tif (type == PropertyType.Select) {\r\n\t\t\tvar temp = JSON.parse(data);\r\n\t\t\ttemp.Name = \"RightValue\";\r\n\t\t\ttemp.InputType = PropertyType.Select;\r\n\t\t\treturn temp;\r\n\t\t} else if (type == PropertyType.Decimal) {\r\n\t\t\treturn {\r\n\t\t\t\tName: \"RightValue\",\r\n\t\t\t\tInputType: PropertyType.Decimal,\r\n\t\t\t\tIsRequired:true,\r\n\t\t\t\tPrefix: \"$ \",\r\n\t\t\t\tMaxLength: 7\r\n\t\t\t};\r\n\t\t} else if (type == PropertyType.Date) {\r\n\t\t\treturn {\r\n\t\t\t\tName: \"RightValue\",\r\n\t\t\t\tIsRequired:true,\r\n\t\t\t\tInputType: PropertyType.Date\r\n\t\t\t};\r\n\t\t} else {\r\n\t\t\treturn {\r\n\t\t\t\tName: \"RightValue\",\r\n\t\t\t\tIsRequired:true,\r\n\t\t\t\tInputType: type\r\n\t\t\t};\r\n\t\t}\r\n\t}\r\n\tAddSingleCriteria = () => {\r\n\r\n\t\tvar res = this.CheckCriteriaList();\r\n\t\tif (!res) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tvar list = this.state.CriteriaList;\r\n\t\tconst temp = {\r\n\t\t\tId: 0,\r\n\t\t\tExpressionTypeId: 0,\r\n\t\t\tViewData: null\r\n\t\t};\r\n\t\tlist.push(temp);\r\n\t\tthis.setState({ CriteriaList: list });\r\n\t}\r\n\tAddSingleAction = () => {\r\n\r\n\t\tvar res = this.CheckActionList();\r\n\t\tif (!res) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tvar list = this.state.ActionList;\r\n\t\tconst temp = {\r\n\t\t\tId: 0,\r\n\t\t\tExpressionTypeId: 0,\r\n\t\t\tViewData: null\r\n\t\t};\r\n\t\tlist.push(temp);\r\n\t\tthis.setState({ ActionList: list });\r\n\t}\r\n\thandleChangeCriteria = (name, newValue, index, data) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar list = this.state.CriteriaList;\r\n\t\t\tconst item = list[index];\r\n\t\t\tif (item != null) {\r\n\t\t\t\titem[name] = newValue;\r\n\t\t\t}\r\n\t\t\tif (name == \"DataModelPropertyId\" && data != null && item != null && data.PropertyType != null) {\r\n\t\t\t\titem.DataModelProperty = { PropertyType: data.PropertyType };\r\n\t\t\t\titem.ViewData = this.GenerateViewData(data.PropertyType.ParameterValue, data.PropertyData);\r\n\t\t\t}\r\n\t\t\tif (item != null && name == \"DataModelPropertyId\") {\r\n\t\t\t\titem.RightValue = null;\r\n\t\t\t}\r\n\t\t\treturn { CriteriaList: list };\r\n\t\t});\r\n\t}\r\n\thandleChangeAction = (name, newValue, index, data) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar list = this.state.ActionList;\r\n\t\t\tconst item = list[index];\r\n\t\t\tif (item != null) {\r\n\t\t\t\titem[name] = newValue;\r\n\t\t\t}\r\n\t\t\treturn { ActionList: list };\r\n\t\t});\r\n\t}\r\n\tSelectedRowChange = (index) => {\r\n\t\tconst temp = this.state.CampaignProfileList[index];\r\n\t\tthis.GetProfileById(temp.Id);\r\n\t}\r\n\tClearData = () => {\r\n\t\tthis.setState({\r\n\t\t\tvModel:{},\r\n\t\t\tmodel: {},\r\n\t\t\tCampaignProfileList: [],\r\n\t\t\tCriteriaList: [],\r\n\t\t\tActionList: [],\r\n\t\t\tDaysOfWeekList: [],\r\n\t\t\tDaysOfMonthList: [],\r\n\t\t\tMonthsOfYearList: [],\r\n\t\t\talert: null,\r\n\t\t\tisSimulateDialogOpen: false,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\tShowQuestionMessage = (message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} OnConfirm={() => this.DeleteModel()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\t// type:-success->warning->info->error\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\tGridRowCount = (count) => {\r\n\t\treturn ++count;\r\n\t}\r\n\r\n\tGetSelectParamMethodProfile = (CampaignEngineMethodId) => {\r\n\t\tthis.CampaignMethodProfileParameter.ExecutionTypeId = this.state.model.ExecutionTypeId;\r\n\t\tthis.CampaignMethodProfileParameter.CampaignEngineMethodId = CampaignEngineMethodId;\r\n\t\treturn this.CampaignMethodProfileParameter;\r\n\t}\r\n\tRemoveSingleCriteria = (index) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar CriteriaList = state.CriteriaList;\r\n\t\t\tCriteriaList.splice(index, 1);\r\n\t\t\treturn { CriteriaList };\r\n\t\t});\r\n\t}\r\n\tRemoveSingleAction = (index) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar ActionList = state.ActionList;\r\n\t\t\tActionList.splice(index, 1);\r\n\t\t\treturn { ActionList };\r\n\t\t});\r\n\t}\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\treturn `${d.UniqueClientId} - ${d.Name}`;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, CampaignProfileList, CriteriaList, ActionList, isSimulateDialogOpen, DaysOfWeekList, DaysOfMonthList, MonthsOfYearList, vModel } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t 0 || !this.state.isClient },\r\n\t\t\t\t\t{ Code: \"Update\", OnClick: this.OperationCheck, Disabled: Disabled || !model.Id > 0 || !this.state.isClient },\r\n\t\t\t\t\t{ Code: \"Search\", OnClick: this.SearchCampaignProfileModel, Disabled: Disabled },\r\n\t\t\t\t\t{ Code: \"Clear\", OnClick: this.ClearData, Disabled: Disabled },\r\n\t\t\t\t\t{ Code: \"Delete\", OnClick: () => this.ShowQuestionMessage(\"Delete this Campaign Profile ?\"), Disabled: Disabled || !model.Id > 0 || !this.state.isClient }\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{!this.state.isClient && (\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t 0}\r\n\t\t\t\t\t\t\t\t\tName=\"ProgramId\"\r\n\t\t\t\t\t\t\t\t\tLabelText=\"Program\"\r\n\t\t\t\t\t\t\t\t\tValue={model.ProgramId || \"\"}\r\n\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\tKeyValueMember=\"Id\"\r\n\t\t\t\t\t\t\t\t\tTextValueMember=\"Description\"\r\n\t\t\t\t\t\t\t\t\tMethod=\"GET\"\r\n\t\t\t\t\t\t\t\t\tUrl=\"/bankapi/v1.0/Bank/ValidProgramsCampaign\"\r\n\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t 0}\r\n\t\t\t\t\t\t\t\t\tLabelMd={6}\r\n\t\t\t\t\t\t\t\t\tName=\"ExecutionTypeId\"\r\n\t\t\t\t\t\t\t\t\tLabelText=\"Campaign Execution Type\"\r\n\t\t\t\t\t\t\t\t\tValue={model.ExecutionTypeId || \"\"}\r\n\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\tKeyValueMember=\"Id\"\r\n\t\t\t\t\t\t\t\t\tTextValueMember=\"ParameterDesc\"\r\n\t\t\t\t\t\t\t\t\tMethod=\"POST\"\r\n\t\t\t\t\t\t\t\t\tUrl=\"/coreapi/v1.0/Parameter/Search\"\r\n\t\t\t\t\t\t\t\t\tParameter={this.ParameterExecutionType}\r\n\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{model.ExecutionTypeStr == CampaignExecutionType.Batch && (\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{model.IsOneTimeEvent == true && (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t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t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\t\t\t\t{((model.ExecutionTypeStr == CampaignExecutionType.Online) && (model.IsCustomEvent == true)) && (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{model.IsDaysOfWeek == true && (\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{DaysOfWeek != null && DaysOfWeek.map(item => (\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChange(name, value, item.Id, \"DaysOfWeek\")}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={Disabled || model.IsDaysOfMonth}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t))}\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{model.IsDaysOfMonth == true && (\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{DaysOfMonth != null && DaysOfMonth.map(item => (\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChange(name, value, item.Id, \"DaysOfMonth\")}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={Disabled || model.IsDaysOfWeek}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{model.IsMonthsOfYear == true && (\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{MonthsOfYear != null && MonthsOfYear.map(item => (\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChange(name, value, item.Id, \"MonthsOfYear\")}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={Disabled || !model.IsMonthsOfYear}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t)}\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{CriteriaList != null && CriteriaList.map((item, index) => (\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleChangeCriteria(name, value, index, data)}\r\n\t\t\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.DataModelPropertyId}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleChangeCriteria(name, value, index, data)}\r\n\t\t\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"Id\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tTextValueMember=\"ParameterDesc\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tMethod=\"POST\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tUrl=\"/coreapi/v1.0/Parameter/Search\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tParameter={{ ParameterCode: \"ExpressionType\" }}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tRequired={item.DataModelPropertyId}\r\n\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.ExpressionTypeId}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleChangeCriteria(name, value, index, data)}\r\n\t\t\t\t\t\t\t\t\t\t\t\tModel={model}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={Disabled}\r\n\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel[item.RightValue]}\r\n\t\t\t\t\t\t\t\t\t\t\t\tIsRequired={{[item.IsRequired]:true}}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t))}\r\n\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{ActionList != null && ActionList.map((item, index) => (\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleChangeAction(name, value, index, data)}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.handleChangeAction(name, value, index, data)}\r\n\t\t\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"Id\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tTextValueMember=\"ProfileName\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tMethod=\"POST\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tUrl=\"/campaignapi/v1.0/CampaignNotificationProfile/FilterProfile\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tParameter={{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCampaignEngineMethodId: item.CampaignEngineMethodId,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tExecutionTypeId: this.state.model.ExecutionTypeId,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tProgramId: this.state.model.ProgramId\r\n\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tthis.SelectedRowChange(index);\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCampaignProfile.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(CampaignProfile, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericDateInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass CouponHistory extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tisLoading: false,\r\n\t\t\tmodel: {},\r\n\t\t\tlist: [],\r\n\t\t\tisClient: ClientHelper.IsClient(),\r\n\t\t};\r\n\r\n\t\tthis.ParameterEmpty = {};\r\n\t\tthis.ParameterExecutionType = { ParameterCode: \"CampaignExecutionType\" };\r\n\t\tthis.ColumnsCouponHistory = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Program\",\r\n\t\t\t\taccessor: \"CouponProfile.Program.Description\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"ExecutionType\",\r\n\t\t\t\taccessor: \"ExecutionType.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Profile Name\",\r\n\t\t\t\taccessor: \"CouponProfile.ProfileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Unique Client ID\",\r\n\t\t\t\taccessor: \"UniqueClient.UniqueClientId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"Customer.CustomerName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Coupon Code\",\r\n\t\t\t\taccessor: \"CouponCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Success\",\r\n\t\t\t\taccessor: \"IsSuccess\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value ? \"Yes\" : \"No\"}
\r\n\t\t\t\t),\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Free Gift\",\r\n\t\t\t\taccessor: \"IsFreeGift\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value ? \"Yes\" : \"No\"}
\r\n\t\t\t\t),\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Discount\",\r\n\t\t\t\taccessor: \"IsDiscount\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value ? \"Yes\" : \"No\"}
\r\n\t\t\t\t),\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date\",\r\n\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tfilterMethod: (filter, row, column) => {\r\n\t\t\t\t\treturn Formatter.FormatDateTime(row[filter.id]).toLowerCase().startsWith(filter.value.toLowerCase())\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t];\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\tif (this.props.setAppCenterTitle) {\r\n\t\t\tthis.props.setAppCenterTitle(\"Campaign Manager\");\r\n\t\t}\r\n\r\n\t\tif (this.props.setAppLeftTitle)\r\n\t\t\tthis.props.setAppLeftTitle(\"Coupon History\");\r\n\r\n\t}\r\n\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar temp = state.model || {};\r\n\t\t\ttemp[name] = newValue;\r\n\t\t\treturn { model: temp };\r\n\t\t});\r\n\t}\r\n\r\n\r\n\tSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/campaignapi/v1.0/CampaignCouponHistory/CouponSearch\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error !\", responseData.ErrorDescription);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item || [] });\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tClearData = () => {\r\n\t\tthis.setState({\r\n\t\t\tisLoading: false,\r\n\t\t\tmodel: {},\r\n\t\t\tlist: []\r\n\t\t});\r\n\t}\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\treturn `${d.UniqueClientId} - ${d.Name}`;\r\n\t}\r\n\t\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { isLoading, model, list } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t this.ClearData(), Disabled: Disabled },\r\n\t\t\t\t\t{ Code: \"Search\", OnClick: this.Search, Disabled: Disabled }\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{!this.state.isClient && (\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t 0}\r\n\t\t\t\t\t\t\t\t\t\tName=\"ProgramId\"\r\n\t\t\t\t\t\t\t\t\t\tLabelText=\"Program\"\r\n\t\t\t\t\t\t\t\t\t\tValue={model.ProgramId}\r\n\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"Id\"\r\n\t\t\t\t\t\t\t\t\t\tTextValueMember=\"Description\"\r\n\t\t\t\t\t\t\t\t\t\tMethod=\"GET\"\r\n\t\t\t\t\t\t\t\t\t\tUrl=\"/bankapi/v1.0/Bank/ValidProgramsCampaign\"\r\n\t\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t 0}\r\n\t\t\t\t\t\t\t\t\t\tName=\"ExecutionTypeId\"\r\n\t\t\t\t\t\t\t\t\t\tLabelText=\"Execution Type\"\r\n\t\t\t\t\t\t\t\t\t\tValue={model.ExecutionTypeId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"Id\"\r\n\t\t\t\t\t\t\t\t\t\tTextValueMember=\"ParameterDesc\"\r\n\t\t\t\t\t\t\t\t\t\tMethod=\"POST\"\r\n\t\t\t\t\t\t\t\t\t\tUrl=\"/coreapi/v1.0/Parameter/Search\"\r\n\t\t\t\t\t\t\t\t\t\tParameter={this.ParameterExecutionType}\r\n\t\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t 0}\r\n\t\t\t\t\t\t\t\t\t\tName=\"CouponProfileId\"\r\n\t\t\t\t\t\t\t\t\t\tLabelText=\"Coupon Profile\"\r\n\t\t\t\t\t\t\t\t\t\tValue={model.CouponProfileId}\r\n\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"Id\"\r\n\t\t\t\t\t\t\t\t\t\tTextValueMember=\"ProfileName\"\r\n\t\t\t\t\t\t\t\t\t\tMethod=\"POST\"\r\n\t\t\t\t\t\t\t\t\t\tParameter={this.ParameterEmpty}\r\n\t\t\t\t\t\t\t\t\t\tUrl=\"/campaignapi/v1.0/CouponProfile/GetAll\"\r\n\t\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCouponHistory.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(CouponHistory, {});","import withStyles from \"@material-ui/core/styles/withStyles\";\r\nimport { chartGradientColors } from \"assets/jss/material-dashboard-pro-react\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport { Chart, Doughnut as DoughnutChart } from \"react-chartjs-2\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nconst styles = ({});\r\n\r\n\r\n\r\nclass CampaignDashboard extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\tCouponProfileList: [],\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t\tisClient: ClientHelper.IsClient(),\r\n\r\n\t\t\temailChartObj: {\r\n\t\t\t\tlabels: [\"Total e-Mail\"],\r\n\t\t\t\tdatasets: [{\r\n\t\t\t\t\tdata: [1],\r\n\t\t\t\t\tbackgroundColor: \"rgb(255, 99, 132)\",\r\n\t\t\t\t\thoverBackgroundColor: \"rgb(255, 99, 132)\"\r\n\t\t\t\t}],\r\n\t\t\t\ttext: \"e-Mail\"\r\n\t\t\t},\r\n\t\t\tsmsChartObj: {\r\n\t\t\t\tlabels: [\"Total Sms\"],\r\n\t\t\t\tdatasets: [{\r\n\t\t\t\t\tdata: [1],\r\n\t\t\t\t\tbackgroundColor: \"rgb(255, 159, 64)\",\r\n\t\t\t\t\thoverBackgroundColor: \"rgb(255, 159, 64)\"\r\n\t\t\t\t}],\r\n\t\t\t\ttext: \"SMS\"\r\n\t\t\t},\r\n\t\t\tcouponChartObj: {\r\n\t\t\t\tlabels: [\"Total i-Coupon\"],\r\n\t\t\t\tdatasets: [{\r\n\t\t\t\t\tdata: [1],\r\n\t\t\t\t\tbackgroundColor: \"rgb(54, 162, 235)\",\r\n\t\t\t\t\thoverBackgroundColor: \"rgb(54, 162, 235)\"\r\n\t\t\t\t}],\r\n\t\t\t\ttext: \"i-Coupon\"\r\n\t\t\t},\r\n\t\t\tcampaignChartObj: {\r\n\t\t\t\tlabels: [\"Total Campaigns\"],\r\n\t\t\t\tdatasets: [{\r\n\t\t\t\t\tdata: [1],\r\n\t\t\t\t\tbackgroundColor: \"rgb(54, 162, 235)\",\r\n\t\t\t\t\thoverBackgroundColor: \"rgb(54, 162, 235)\"\r\n\t\t\t\t}],\r\n\t\t\t\ttext: \"Campaigns\"\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tthis.ChartOptions = {\r\n\t\t\tmaintainAspectRatio: false,\r\n\t\t\tresponsive: false,\r\n\t\t\tlegend: { display: false },\r\n\t\t\tcutoutPercentage: 90,\r\n\t\t\tanimation: { duration: 2000 }\r\n\t\t};\r\n\r\n\t\tthis.ChartColors = {\r\n\t\t\tred: \"rgb(255, 99, 132)\",\r\n\t\t\torange: \"rgb(255, 159, 64)\",\r\n\t\t\tyellow: \"rgb(255, 205, 86)\",\r\n\t\t\tgreen: \"rgb(75, 192, 192)\",\r\n\t\t\tblue: \"rgb(54, 162, 235)\",\r\n\t\t\tpurple: \"rgb(153, 102, 255)\",\r\n\t\t\tgrey: \"rgb(201, 203, 207)\"\r\n\t\t};\r\n\r\n\t\tthis.ColumnsData = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Program\",\r\n\t\t\t\taccessor: \"Program.Description\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Profile Name\",\r\n\t\t\t\taccessor: \"ProfileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Profile Status\",\r\n\t\t\t\taccessor: \"ProfileStatus.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Campaign Partner\",\r\n\t\t\t\taccessor: \"CampaignPartner.PartnerName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Coupon Definition\",\r\n\t\t\t\taccessor: \"CouponDefinition.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Coupon Type\",\r\n\t\t\t\taccessor: \"CouponType\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{row.original.IsFreeGift ? \"Free Gift\" : \"\" + row.original.IsDiscount ? \"Discount\" : \"\"}\r\n\t\t\t\t\t\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Coupon Start Date\",\r\n\t\t\t\taccessor: \"StartDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tfilterMethod: (filter, row, column) => {\r\n\t\t\t\t\treturn Formatter.FormatDateTime(row[filter.id]).toLowerCase().startsWith(filter.value.toLowerCase())\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Coupon End Date\",\r\n\t\t\t\taccessor: \"ExpireDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tfilterMethod: (filter, row, column) => {\r\n\t\t\t\t\treturn Formatter.FormatDateTime(row[filter.id]).toLowerCase().startsWith(filter.value.toLowerCase())\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t];\r\n\r\n\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tif (this.props.setAppCenterTitle) {\r\n\t\t\tthis.props.setAppCenterTitle(\"Campaign Manager\");\r\n\t\t}\r\n\t\tif (this.props.setAppLeftTitle)\r\n\t\t\tthis.props.setAppLeftTitle(\"Campaign Dasboard\");\r\n\r\n\t\tthis.RenderChartData();\r\n\t}\r\n\tRenderChartData = () => {\r\n\t\tvar originalDoughnutDraw = Chart.controllers.doughnut.prototype.draw;\r\n\t\tChart.helpers.extend(Chart.controllers.doughnut.prototype, {\r\n\t\t\tdraw: function () {\r\n\t\t\t\toriginalDoughnutDraw.apply(this, arguments);\r\n\r\n\t\t\t\tvar chart = this.chart;\r\n\t\t\t\tvar width = chart.chart.width,\r\n\t\t\t\t\theight = chart.chart.height,\r\n\t\t\t\t\tctx = chart.chart.ctx;\r\n\r\n\t\t\t\tvar fontSize = 1.5;\r\n\t\t\t\tctx.font = fontSize + \"em sans-serif\";\r\n\t\t\t\tctx.textBaseline = \"middle\";\r\n\t\t\t\tctx.fillStyle = \"#000\";\r\n\r\n\t\t\t\tvar text = chart.config.data.text,\r\n\t\t\t\t\ttextX = Math.round((width - ctx.measureText(text).width) / 2),\r\n\t\t\t\t\ttextY = height / 2;\r\n\r\n\t\t\t\tctx.fillText(text, textX, textY);\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\tLoadChartData = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tvar temp = this.state.model;\r\n\t\tif (temp.UniqueClientId == null) {\r\n\t\t\ttemp.UniqueClientId = 0;\r\n\t\t}\r\n\t\tProxy.POST(\r\n\t\t\t\"/campaignapi/v1.0/CampaignDashboard/Filter\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ParseChartData(responseData.Item);\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tParseChartData = (data) => {\r\n\t\tif (data == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tvar colorNames = Object.keys(this.ChartColors);\r\n\t\tvar i = 0;\r\n\r\n\t\t//#region Email\r\n\t\tvar arrayData = [];\r\n\t\tvar arrayLabel = [];\r\n\t\tvar arrayColor = [];\r\n\t\tfor (var item of data.EmailList) {\r\n\t\t\tvar colorName = colorNames[i % colorNames.length];\r\n\t\t\tvar newColor = this.ChartColors[colorName];\r\n\t\t\tarrayColor.push(newColor);\r\n\t\t\tarrayData.push(item[\"Count\"]);\r\n\t\t\tarrayLabel.push(item[\"Name\"]);\r\n\t\t\ti++;\r\n\t\t}\r\n\t\tvar emailChartObj = {\r\n\t\t\tlabels: arrayLabel,\r\n\t\t\tdatasets: [{\r\n\t\t\t\tdata: arrayData,\r\n\t\t\t\thoverBackgroundColor: arrayColor,\r\n\t\t\t\tbackgroundColor: arrayColor\r\n\t\t\t}],\r\n\t\t\ttext: \"e-Mail\"\r\n\t\t};\r\n\t\t//#endregion\r\n\r\n\t\t//#region Sms\r\n\t\tarrayColor = [];\r\n\t\tarrayData = [];\r\n\t\tarrayLabel = [];\r\n\t\tvar j = 0;\r\n\t\tfor (var item of data.SmsList) {\r\n\t\t\tvar colorName = colorNames[j % colorNames.length];\r\n\t\t\tvar newColor = this.ChartColors[colorName];\r\n\t\t\tarrayColor.push(newColor);\r\n\t\t\tarrayData.push(item[\"Count\"]);\r\n\t\t\tarrayLabel.push(item[\"Name\"]);\r\n\t\t\tj++;\r\n\t\t}\r\n\t\tvar smsChartObj = {\r\n\t\t\tlabels: arrayLabel,\r\n\t\t\tdatasets: [{\r\n\t\t\t\tdata: arrayData,\r\n\t\t\t\thoverBackgroundColor: arrayColor,\r\n\t\t\t\tbackgroundColor: arrayColor\r\n\t\t\t}],\r\n\t\t\ttext: \"SMS\"\r\n\t\t};\r\n\t\t//#endregion\r\n\r\n\t\t//#region Coupon\r\n\t\tarrayColor = [];\r\n\t\tarrayData = [];\r\n\t\tarrayLabel = [];\r\n\r\n\t\tvar k = 0;\r\n\t\tfor (var item of data.CouponList) {\r\n\t\t\tvar colorName = colorNames[k % colorNames.length];\r\n\t\t\tvar newColor = this.ChartColors[colorName];\r\n\t\t\tarrayColor.push(newColor);\r\n\t\t\tarrayData.push(item[\"Count\"]);\r\n\t\t\tarrayLabel.push(item[\"Name\"]);\r\n\t\t\tk++;\r\n\t\t}\r\n\t\tvar couponChartObj = {\r\n\t\t\tlabels: arrayLabel,\r\n\t\t\tdatasets: [{\r\n\t\t\t\tdata: arrayData,\r\n\t\t\t\thoverBackgroundColor: arrayColor,\r\n\t\t\t\tbackgroundColor: arrayColor\r\n\t\t\t}],\r\n\t\t\ttext: \"Coupon\"\r\n\t\t};\r\n\t\t//#endregion\r\n\r\n\t\t//#region Campaign\r\n\t\tarrayColor = [];\r\n\t\tarrayData = [];\r\n\t\tarrayLabel = [];\r\n\r\n\t\tvar k = 0;\r\n\t\tfor (var item of data.CampaignList) {\r\n\t\t\tvar colorName = colorNames[k % colorNames.length];\r\n\t\t\tvar newColor = this.ChartColors[colorName];\r\n\t\t\tarrayColor.push(newColor);\r\n\t\t\tarrayData.push(item[\"Count\"]);\r\n\t\t\tarrayLabel.push(item[\"Name\"]);\r\n\t\t\tk++;\r\n\t\t}\r\n\t\tvar campaignChartObj = {\r\n\t\t\tlabels: arrayLabel,\r\n\t\t\tdatasets: [{\r\n\t\t\t\tdata: arrayData,\r\n\t\t\t\thoverBackgroundColor: arrayColor,\r\n\t\t\t\tbackgroundColor: arrayColor\r\n\t\t\t}],\r\n\t\t\ttext: \"Campaign\"\r\n\t\t};\r\n\t\t//#endregion\t\r\n\r\n\r\n\t\tthis.setState({\r\n\t\t\temailChartObj: emailChartObj,\r\n\t\t\tsmsChartObj: smsChartObj,\r\n\t\t\tcouponChartObj: couponChartObj,\r\n\t\t\tcampaignChartObj: campaignChartObj,\r\n\t\t\tCouponProfileList: data.CampaignCouponProfileList\r\n\t\t});\r\n\t}\r\n\r\n\tGetGradientList = (dataList) => {\r\n\t\tvar gradientList = undefined;\r\n\t\tif (document.getElementById('canvas') != null) {\r\n\t\t\tvar ctx = document.getElementById('canvas').getContext(\"2d\");\r\n\t\t\tgradientList = [];\r\n\t\t\tif (dataList.datasets != undefined) {\r\n\t\t\t\tvar i;\r\n\t\t\t\tfor (i = 0; i < dataList.datasets[0].data.length; i++) {\r\n\t\t\t\t\tvar gradient = ctx.createLinearGradient(0, 0, 0, 400)\r\n\t\t\t\t\tif (chartGradientColors[i] == undefined) {\r\n\t\t\t\t\t\tgradient.addColorStop(0, chartGradientColors[0].begin);\r\n\t\t\t\t\t\tgradient.addColorStop(1, chartGradientColors[0].end);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tgradient.addColorStop(0, chartGradientColors[i].begin);\r\n\t\t\t\t\t\tgradient.addColorStop(1, chartGradientColors[i].end);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tgradientList.push(gradient);\r\n\t\t\t\t}\r\n\t\t\t\treturn gradientList;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn;\r\n\t}\r\n\tSelectedRowChange = (index) => {\r\n\t\tconst temp = this.state.CouponProfileList[index];\r\n\t\t// todo\r\n\t}\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\treturn `${d.UniqueClientId} - ${d.Name}`;\r\n\t}\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar temp = state.model || {};\r\n\t\t\ttemp[name] = newValue;\r\n\t\t\treturn { model: temp };\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes, Disabled } = this.props;\r\n\t\tconst { model, CouponProfileList, smsChartObj, emailChartObj, couponChartObj, campaignChartObj } = this.state;\r\n\r\n\t\tvar trxGradientList = this.GetGradientList(smsChartObj);\r\n\t\tvar trxBackground = smsChartObj;\r\n\t\tif (trxGradientList != undefined) {\r\n\t\t\ttrxBackground.datasets[0].backgroundColor = trxGradientList;\r\n\t\t\ttrxBackground.datasets[0].hoverBackgroundColor = trxGradientList;\r\n\t\t}\r\n\r\n\t\tvar feeGradientList = this.GetGradientList(emailChartObj);\r\n\t\tvar feeBackground = emailChartObj;\r\n\t\tif (feeGradientList != undefined) {\r\n\t\t\tfeeBackground.datasets[0].backgroundColor = feeGradientList;\r\n\t\t\tfeeBackground.datasets[0].hoverBackgroundColor = feeGradientList;\r\n\t\t}\r\n\r\n\t\tvar holdGradientList = this.GetGradientList(couponChartObj);\r\n\t\tvar holdBackground = couponChartObj;\r\n\t\tif (holdGradientList != undefined) {\r\n\t\t\tholdBackground.datasets[0].backgroundColor = holdGradientList;\r\n\t\t\tholdBackground.datasets[0].hoverBackgroundColor = holdGradientList;\r\n\t\t}\r\n\r\n\t\tvar returnedGradientList = this.GetGradientList(campaignChartObj);\r\n\t\tvar returnedBackground = campaignChartObj;\r\n\t\tif (returnedGradientList != undefined) {\r\n\t\t\treturnedBackground.datasets[0].backgroundColor = returnedGradientList;\r\n\t\t\treturnedBackground.datasets[0].hoverBackgroundColor = returnedGradientList;\r\n\t\t}\r\n\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{!this.state.isClient && (\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t 0}\r\n\t\t\t\t\t\t\t\t\t\tName=\"ProgramId\"\r\n\t\t\t\t\t\t\t\t\t\tLabelText=\"Program\"\r\n\t\t\t\t\t\t\t\t\t\tValue={model.ProgramId}\r\n\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}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t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCampaignDashboard.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default withStyles(styles)(CampaignDashboard);","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { EditIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton.jsx\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass FreeProductProfile extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t\tvModel:{},\r\n\t\t\tmodel: {},\r\n\t\t\tprofileList: [],\r\n\t\t\tisClient: ClientHelper.IsClient(),\r\n\t\t};\r\n\r\n\t\tthis.ColumnsData = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t this.setState({ model: { ...row.original } })} />\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\twidth: 100\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Program\",\r\n\t\t\t\taccessor: \"Program.Description\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Profile Name\",\r\n\t\t\t\taccessor: \"ProfileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Execution Type\",\r\n\t\t\t\taccessor: \"ExecutionType.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Type\",\r\n\t\t\t\taccessor: \"TransactionType.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Discount Percentage\",\r\n\t\t\t\taccessor: \"DiscountPercentage.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Name\",\r\n\t\t\t\taccessor: \"UniqueOperationCode.Description\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Profile Status\",\r\n\t\t\t\taccessor: \"ProfileStatus.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Start Date\",\r\n\t\t\t\taccessor: \"StartDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tfilterMethod: (filter, row, column) => {\r\n\t\t\t\t\treturn Formatter.FormatDateTime(row[filter.id]).toLowerCase().startsWith(filter.value.toLowerCase())\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Expire Date\",\r\n\t\t\t\taccessor: \"ExpireDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tfilterMethod: (filter, row, column) => {\r\n\t\t\t\t\treturn Formatter.FormatDateTime(row[filter.id]).toLowerCase().startsWith(filter.value.toLowerCase())\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.ParameterTransactionType = { ParameterCode: \"TransactionType\" };\r\n\t\tthis.ParameterDiscountPercentage = { ParameterCode: \"FreeProductDiscountPercentage\" };\r\n\t\tthis.ParameterExecutionType = { ParameterCode: \"CampaignExecutionType\" };\r\n\t\tthis.ParameterMaxLen50 = { maxLength: 50 };\r\n\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tif (this.props.setAppCenterTitle) {\r\n\t\t\tthis.props.setAppCenterTitle(\"Campaign Manager\");\r\n\t\t}\r\n\r\n\t\tif (this.props.setAppLeftTitle)\r\n\t\t\tthis.props.setAppLeftTitle(\"Free Product Profile\");\r\n\t}\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar temp = state.model || {};\r\n\t\t\ttemp[name] = newValue;\r\n\t\t\treturn { model: temp };\r\n\t\t});\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errors = [];\r\n\t\tif (!model.ProfileName) {\r\n\t\t\terrors.push(\"Profile Name can not be null.\");\r\n\t\t\tvModel.ProfileName = true;\r\n\t\t} else { vModel.ProfileName = false; }\r\n\r\n\t\tthis.setState({ vModel });\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\tUpdateModel = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tvar temp = this.state.model;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/campaignapi/v1.0/CampaignFreeProductProfile/Update\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Success\", temp.Id > 0 ? \"Free Product Profile Updated ! \" : \"Free Product Profile Saved ! \");\r\n\t\t\t\tthis.SearchProfiles();\r\n\t\t\t\tthis.ClearData();\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tSearchProfiles = () => {\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/campaignapi/v1.0/CampaignFreeProductProfile/Search\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.setState({ profileList: responseData.Item || [] });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tDeleteModel = () => {\r\n\t\tif (this.state.model == null || this.state.model.Id == null || this.state.model.Id == 0) {\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Free product profile must be selected for delete operation !\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/campaignapi/v1.0/CampaignFreeProductProfile/Delete\",\r\n\t\t\t{ Id: this.state.model.Id },\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Success\", \"Free product profile deleted !\");\r\n\t\t\t\tthis.ClearData();\r\n\t\t\t\tthis.SearchProfiles();\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tSelectedRowChange = (index) => {\r\n\t\tconst temp = this.state.profileList[index];\r\n\t\tthis.setState({ model: temp });\r\n\t}\r\n\tClearData = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t\tmodel: {},\r\n\t\t\tvModel:{},\r\n\t\t\tprofileList: [],\r\n\t\t});\r\n\t}\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\treturn `${d.UniqueClientId} - ${d.Name}`;\r\n\t}\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { isLoading, model, profileList, vModel } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\t\t\t\t 0 || !this.state.isClient },\r\n\t\t\t\t\t{ Code: \"Update\", OnClick: this.UpdateModel, Disabled: Disabled || !model.Id > 0 || !this.state.isClient },\r\n\t\t\t\t\t{ Code: \"Search\", OnClick: this.SearchProfiles, Disabled: Disabled },\r\n\t\t\t\t\t{ Code: \"Clear\", OnClick: this.ClearData, Disabled: Disabled },\r\n\t\t\t\t\t{ Code: \"Delete\", OnClick: () => this.props.showConfirmMessage(\"warning\", \"Warning\", \"Delete this Free Product Profile ?\", this.DeleteModel), Disabled: Disabled || !model.Id > 0 || !this.state.isClient }\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{!this.state.isClient && (\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t 0}\r\n\t\t\t\t\t\t\t\t\tName=\"ProgramId\"\r\n\t\t\t\t\t\t\t\t\tLabelText=\"Program\"\r\n\t\t\t\t\t\t\t\t\tLabelMd={4}\r\n\t\t\t\t\t\t\t\t\tValue={model.ProgramId || \"\"}\r\n\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\tKeyValueMember=\"Id\"\r\n\t\t\t\t\t\t\t\t\tTextValueMember=\"Description\"\r\n\t\t\t\t\t\t\t\t\tMethod=\"GET\"\r\n\t\t\t\t\t\t\t\t\tUrl=\"/bankapi/v1.0/Bank/ValidProgramsCampaign\"\r\n\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t 0}\r\n\t\t\t\t\t\t\t\t\tName=\"ExecutionTypeId\"\r\n\t\t\t\t\t\t\t\t\tValue={model.ExecutionTypeId}\r\n\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\tKeyValueMember=\"Id\"\r\n\t\t\t\t\t\t\t\t\tTextValueMember=\"ParameterDesc\"\r\n\t\t\t\t\t\t\t\t\tMethod=\"POST\"\r\n\t\t\t\t\t\t\t\t\tUrl=\"/coreapi/v1.0/Parameter/Search\"\r\n\t\t\t\t\t\t\t\t\tParameter={this.ParameterExecutionType}\r\n\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tthis.SelectedRowChange(index);\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nFreeProductProfile.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tsetAppLeftTitle: PropTypes.func\r\n};\r\n\r\nexport default withArtifex(FreeProductProfile, {});","import { Dialog, DialogContent, DialogTitle, IconButton } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { EditIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport { GenericTitle, GenericAlert, GenericGrid, GenericColorInput, GenericNumberInput, GenericCheckInput, GenericDateInput, GenericSelectInput, GenericEmailInput, GenericTextInput, GenericLabel, GenericIcon, GenericDialogActions, GenericDialog } from \"views/Components/Generic\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport QrImage from \"assets/img/qr.png\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridButton from \"views/Components/GridButton.jsx\";\r\nimport CampaignCouponTemplate from \"views/Campaign/Components/CampaignCouponTemplate\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass ICouponProfile extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tvModel: {},\r\n\t\t\tmodel: {},\r\n\t\t\tcouponProfileList: [],\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t\tisCouponDialogOpen: false,\r\n\t\t\tisClient: ClientHelper.IsClient(),\r\n\t\t};\r\n\r\n\t\tthis.ParameterMaxLength40 = { maxLength: 40 };\r\n\t\tthis.ParameterMaxLength300 = { maxLength: 200 };\r\n\t\tthis.ParameterEmpty = {};\r\n\t\tthis.ParameterPreconditionType = { ParameterCode: \"PreconditionType\" };\r\n\t\tthis.ParameterCouponDefinitionType = { ParameterCode: \"CouponDefinitionType\" };\r\n\t\tthis.ParameterExecutionType = { ParameterCode: \"CampaignExecutionType\" };\r\n\r\n\t\tthis.fileInputRef1 = React.createRef();\r\n\t\tthis.fileInputRef2 = React.createRef();\r\n\t\tthis.fileInputRef3 = React.createRef();\r\n\r\n\t\tthis.ColumnsData = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t this.GetProfileById(row.original.Id)} />\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\twidth: 100\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Program\",\r\n\t\t\t\taccessor: \"Program.Description\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Profile Name\",\r\n\t\t\t\taccessor: \"ProfileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Campaign Partner\",\r\n\t\t\t\taccessor: \"CampaignPartner.PartnerName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Coupon Definition\",\r\n\t\t\t\taccessor: \"CouponDefinition.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Coupon Type\",\r\n\t\t\t\taccessor: \"CouponType\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{row.original.IsFreeGift ? \"Free Gift\" : \"\" + row.original.IsDiscount ? \"Discount\" : \"\"}\r\n\t\t\t\t\t\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Precondition\",\r\n\t\t\t\taccessor: \"Precondition.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"Amount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reward\",\r\n\t\t\t\taccessor: \"Reward\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Message\",\r\n\t\t\t\taccessor: \"Message\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Coupon Start Date\",\r\n\t\t\t\taccessor: \"StartDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tfilterMethod: (filter, row, column) => {\r\n\t\t\t\t\treturn Formatter.FormatDateTime(row[filter.id]).toLowerCase().startsWith(filter.value.toLowerCase())\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Coupon End Date\",\r\n\t\t\t\taccessor: \"ExpireDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tfilterMethod: (filter, row, column) => {\r\n\t\t\t\t\treturn Formatter.FormatDateTime(row[filter.id]).toLowerCase().startsWith(filter.value.toLowerCase())\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Background Color\",\r\n\t\t\t\taccessor: \"BackgroundColor\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t)\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\tif (this.props.setAppCenterTitle) {\r\n\t\t\tthis.props.setAppCenterTitle(\"Campaign Manager\");\r\n\t\t}\r\n\r\n\t\tif (this.props.setAppLeftTitle)\r\n\t\t\tthis.props.setAppLeftTitle(\"i-Coupon Profile\");\r\n\r\n\t}\r\n\tOperationCheck = () => {\r\n\t\tvar ErrorList = [];\r\n\t\tconst data = this.state.model;\r\n\t\tconst vModel = this.state.vModel;\r\n\t\tif (data.ProgramId == null || data.ProgramId == \"\") {\r\n\t\t\tvModel.ProgramId = true;\r\n\t\t\tErrorList.push(\"Program must be defined!\");\r\n\t\t} else { vModel.ProgramId = false; }\r\n\t\tif (data.CouponDefinitionId == null || data.CouponDefinitionId == \"\") {\r\n\t\t\tvModel.CouponDefinitionId = true;\r\n\t\t\tErrorList.push(\"Definition Type must be defined!\");\r\n\t\t} else { vModel.CouponDefinitionId = false; }\r\n\t\tif (data.ProfileName == null || data.ProfileName == \"\") {\r\n\t\t\tvModel.ProfileName = true;\r\n\t\t\tErrorList.push(\"i-Coupon Profile Name must be defined!\");\r\n\t\t} else { vModel.ProfileName = false; }\r\n\t\tif (data.CampaignPartnerId == null || data.CampaignPartnerId == \"\") {\r\n\t\t\tvModel.CampaignPartnerId = true;\r\n\t\t\tErrorList.push(\"Campaign Partner must be defined!\");\r\n\t\t} else { vModel.CampaignPartnerId = false; }\r\n\r\n\t\tif (data.StartDateTime == null || data.StartDateTime == \"\") {\r\n\t\t\tvModel.StartDateTime = true;\r\n\t\t\tErrorList.push(\"Start Date Time must be defined!\");\r\n\t\t} else {\r\n\t\t\tvModel.StartDateTime = false;\r\n\t\t\tdata.StartDateTime = DateHelper.ToMoment(data.StartDateTime);\r\n\t\t\tif (!data.StartDateTime.isValid()) {\r\n\t\t\t\tErrorList.push(\"Start Date Time must be valid!\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (data.ExpireDateTime == null || data.ExpireDateTime == \"\") {\r\n\t\t\tvModel.ExpireDateTime = true;\r\n\t\t\tErrorList.push(\"Expire Date Time must be defined !.\");\r\n\t\t} else {\r\n\t\t\tvModel.ExpireDateTime = false;\r\n\t\t\tdata.ExpireDateTime = DateHelper.ToMoment(data.ExpireDateTime);\r\n\t\t\tif (!data.ExpireDateTime.isValid()) {\r\n\t\t\t\tErrorList.push(\"Expire Date Time must be valid !.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (data.Message == null || data.Message == \"\") {\r\n\t\t\tvModel.Message = true;\r\n\t\t\tErrorList.push(\"Message must be defined !.\");\r\n\t\t} else { vModel.Message = false; }\r\n\t\tif (data.BackgroundColor == null || data.BackgroundColor == \"\") {\r\n\t\t\tvModel.BackgroundColor = true;\r\n\t\t\tErrorList.push(\"Color must be defined !.\");\r\n\t\t} else { vModel.BackgroundColor = false; }\r\n\t\tif (data.IsFreeGift == null && data.IsDiscount == null) {\r\n\t\t\tErrorList.push(\"Coupon type must be defined ! (Discount or Free Gift)\");\r\n\t\t} else { vModel.IsFreeGift = false; vModel.IsDiscount = false; }\r\n\t\tif (data.IsFreeGift == false && data.IsDiscount == false) {\r\n\t\t\tErrorList.push(\"Coupon type must be defined ! (Discount or Free Gift)\");\r\n\t\t}\r\n\r\n\t\tthis.setState({ vModel })\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.props.showMessageNode(\"error\", \"Please Fill Required Fields\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.UpdateModel();\r\n\t}\r\n\r\n\tFileSelect = (e, name) => {\r\n\t\te.preventDefault();\r\n\r\n\t\tvar file = e.target.files[0];\r\n\t\tif (!file) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar HandleChageTemp = this.handleChange;\r\n\t\tvar reader = new FileReader();\r\n\t\treader.readAsDataURL(file);\r\n\t\treader.onload = function () {\r\n\t\t\tvar base64 = reader.result;\r\n\t\t\tHandleChageTemp(name.concat(\"Name\"), file.name);\r\n\t\t\tHandleChageTemp(name, base64);\r\n\t\t};\r\n\t\treader.onerror = function (error) {\r\n\t\t\tconsole.log('File Error: ', error);\r\n\t\t};\r\n\t}\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar temp = state.model || {};\r\n\r\n\t\t\tif (name == \"IsDiscount\" && newValue == true) {\r\n\t\t\t\ttemp.IsFreeGift = false;\r\n\t\t\t\ttemp.PreconditionId = null;\r\n\t\t\t\ttemp.Amount = null;\r\n\t\t\t\ttemp.Reward = null;\r\n\t\t\t}\r\n\t\t\tif (name == \"IsFreeGift\" && newValue == true) {\r\n\t\t\t\ttemp.IsDiscount = false;\r\n\t\t\t\ttemp.PreconditionId = null;\r\n\t\t\t\ttemp.Amount = null;\r\n\t\t\t\ttemp.Reward = null;\r\n\t\t\t}\r\n\t\t\ttemp[name] = newValue;\r\n\t\t\treturn { model: temp };\r\n\t\t});\r\n\t}\r\n\tUpdateModel = () => {\r\n\t\tvar temp = this.state.model;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/campaignapi/v1.0/CouponProfile/Update\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Success\", temp.Id > 0 ? \"i-Coupon Updated ! \" : \"i-Coupon Saved ! \");\r\n\t\t\t\tthis.SerachICouponProfiles();\r\n\t\t\t\tthis.ClearData();\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tSerachICouponProfiles = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/campaignapi/v1.0/CouponProfile/Search\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.setState({ couponProfileList: responseData.Item || [] });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tGetProfileById = (ProfileId) => {\r\n\t\tif (ProfileId == null || ProfileId == 0) {\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Profile Id required for fetching profile !\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/campaignapi/v1.0/CouponProfile/GetById\",\r\n\t\t\t{ Id: ProfileId },\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.setState({ model: responseData.Item });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tDeleteModel = () => {\r\n\t\tif (this.state.model == null || this.state.model.Id == null || this.state.model.Id == 0) {\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"i-Coupon must be selected for delete operation !\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.GET(\r\n\t\t\t\"/campaignapi/v1.0/CouponProfile/Delete/Id?Id=\" + this.state.model.Id,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Success\", \"i-Coupon deleted !\");\r\n\t\t\t\tthis.ClearData();\r\n\t\t\t\tthis.SerachICouponProfiles();\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tSelectedRowChange = (index) => {\r\n\t\tconst temp = this.state.couponProfileList[index];\r\n\t\tthis.GetProfileById(temp.Id);\r\n\t}\r\n\tClearData = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {},\r\n\t\t\tcouponProfileList: [],\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t\tisCouponDialogOpen: false\r\n\t\t});\r\n\t}\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\treturn `${d.UniqueClientId} - ${d.Name}`;\r\n\t}\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, couponProfileList, vModel } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t 0 || !this.state.isClient },\r\n\t\t\t\t\t{ Code: \"Update\", OnClick: this.OperationCheck, Disabled: Disabled || !model.Id > 0 || !this.state.isClient },\r\n\t\t\t\t\t{ Code: \"Search\", OnClick: this.SerachICouponProfiles, Disabled: Disabled },\r\n\t\t\t\t\t{ Code: \"Clear\", OnClick: this.ClearData, Disabled: Disabled },\r\n\t\t\t\t\t{ Code: \"Delete\", OnClick: () => this.props.showConfirmMessage(\"warning\", \"Warning\", \"Delete this i-Coupon Profile ?\", this.DeleteModel), Disabled: Disabled || !model.Id > 0 || !this.state.isClient }\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{!this.state.isClient && (\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t 0}\r\n\t\t\t\t\t\t\t\t\tName=\"ProgramId\"\r\n\t\t\t\t\t\t\t\t\tLabelText=\"Program\"\r\n\t\t\t\t\t\t\t\t\tValue={model.ProgramId}\r\n\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\tKeyValueMember=\"Id\"\r\n\t\t\t\t\t\t\t\t\tTextValueMember=\"Description\"\r\n\t\t\t\t\t\t\t\t\tMethod=\"GET\"\r\n\t\t\t\t\t\t\t\t\tUrl=\"/bankapi/v1.0/Bank/ValidProgramsCampaign\"\r\n\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\tIsInvalid={vModel.ProgramId}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t 0}\r\n\t\t\t\t\t\t\t\t\tLabelMd={6}\r\n\t\t\t\t\t\t\t\t\tName=\"ExecutionTypeId\"\r\n\t\t\t\t\t\t\t\t\tLabelText=\"Campaign Execution Type\"\r\n\t\t\t\t\t\t\t\t\tValue={model.ExecutionTypeId || \"\"}\r\n\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\tKeyValueMember=\"Id\"\r\n\t\t\t\t\t\t\t\t\tTextValueMember=\"ParameterDesc\"\r\n\t\t\t\t\t\t\t\t\tMethod=\"POST\"\r\n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r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t this.FileSelect(e, \"Logo1\")} ref={this.fileInputRef1} accept=\"image/*\" />\r\n\t\t\t\t\t\t\t\t

{model.Logo1Name}

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t this.FileSelect(e, \"Logo2\")} ref={this.fileInputRef2} accept=\"image/*\" />\r\n\t\t\t\t\t\t\t\t

{model.Logo2Name}

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t this.FileSelect(e, \"Image\")} ref={this.fileInputRef3} accept=\"image/*\" />\r\n\t\t\t\t\t\t\t\t

{model.ImageName}

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tthis.SelectedRowChange(index);\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t this.setState({ isCouponDialogOpen: false })}>\r\n\t\t\t\t\t\t\t\t\tclose\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\r\n\t\t);\r\n\t}\r\n}\r\n\r\nICouponProfile.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(ICouponProfile, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericDateInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass NotificationHistory extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tisLoading: false,\r\n\t\t\tmodel: {},\r\n\t\t\tlist: [],\r\n\t\t\tisClient: ClientHelper.IsClient(),\r\n\t\t};\r\n\r\n\t\tthis.ParameterEmpty = {};\r\n\t\tthis.ParameterExecutionType = { ParameterCode: \"CampaignExecutionType\" };\r\n\t\tthis.ColumnsNotificationHistory = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"ExecutionType\",\r\n\t\t\t\taccessor: \"ExecutionType.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Campaign Profile Name\",\r\n\t\t\t\taccessor: \"CampaignProfile.ProfileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Unique Client ID\",\r\n\t\t\t\taccessor: \"UniqueClient.UniqueClientId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"Customer.CustomerName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Campaign Method\",\r\n\t\t\t\taccessor: \"CampaignMethod.CampaignEngineMethod.MethodName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Notification Channel\",\r\n\t\t\t\taccessor: \"NotificationChannel.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Success\",\r\n\t\t\t\taccessor: \"IsSuccess\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value ? \"Yes\" : \"No\"}
\r\n\t\t\t\t),\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date\",\r\n\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tfilterMethod: (filter, row, column) => {\r\n\t\t\t\t\treturn Formatter.FormatDateTime(row[filter.id]).toLowerCase().startsWith(filter.value.toLowerCase())\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\tif (this.props.setAppCenterTitle) {\r\n\t\t\tthis.props.setAppCenterTitle(\"Campaign Manager\");\r\n\t\t}\r\n\r\n\t\tif (this.props.setAppLeftTitle)\r\n\t\t\tthis.props.setAppLeftTitle(\"Notification History\");\r\n\r\n\t}\r\n\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar temp = state.model || {};\r\n\t\t\ttemp[name] = newValue;\r\n\t\t\treturn { model: temp };\r\n\t\t});\r\n\t}\r\n\r\n\r\n\tSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/campaignapi/v1.0/CampaignCouponHistory/NotificationSearch\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error !\", responseData.ErrorDescription);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item || [] });\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tClearData = () => {\r\n\t\tthis.setState({ model: {}, list: [] });\r\n\t}\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\treturn `${d.UniqueClientId} - ${d.Name}`;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { isLoading, model, list } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t this.ClearData(), Disabled: Disabled },\r\n\t\t\t\t\t{ Code: \"Search\", OnClick: this.Search, Disabled: Disabled }\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{!this.state.isClient && (\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t 0}\r\n\t\t\t\t\t\t\t\t\t\tName=\"ProgramId\"\r\n\t\t\t\t\t\t\t\t\t\tLabelText=\"Program\"\r\n\t\t\t\t\t\t\t\t\t\tValue={model.ProgramId}\r\n\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"Id\"\r\n\t\t\t\t\t\t\t\t\t\tTextValueMember=\"Description\"\r\n\t\t\t\t\t\t\t\t\t\tMethod=\"GET\"\r\n\t\t\t\t\t\t\t\t\t\tUrl=\"/bankapi/v1.0/Bank/ValidProgramsCampaign\"\r\n\t\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t 0}\r\n\t\t\t\t\t\t\t\t\t\tName=\"ExecutionTypeId\"\r\n\t\t\t\t\t\t\t\t\t\tLabelText=\"Execution Type\"\r\n\t\t\t\t\t\t\t\t\t\tValue={model.ExecutionTypeId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"Id\"\r\n\t\t\t\t\t\t\t\t\t\tTextValueMember=\"ParameterDesc\"\r\n\t\t\t\t\t\t\t\t\t\tMethod=\"POST\"\r\n\t\t\t\t\t\t\t\t\t\tUrl=\"/coreapi/v1.0/Parameter/Search\"\r\n\t\t\t\t\t\t\t\t\t\tParameter={this.ParameterExecutionType}\r\n\t\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t 0}\r\n\t\t\t\t\t\t\t\t\t\tName=\"NotificationProfileId\"\r\n\t\t\t\t\t\t\t\t\t\tLabelText=\"Notification Profile\"\r\n\t\t\t\t\t\t\t\t\t\tValue={model.NotificationProfileId}\r\n\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"Id\"\r\n\t\t\t\t\t\t\t\t\t\tTextValueMember=\"ProfileName\"\r\n\t\t\t\t\t\t\t\t\t\tMethod=\"POST\"\r\n\t\t\t\t\t\t\t\t\t\tParameter={this.ParameterEmpty}\r\n\t\t\t\t\t\t\t\t\t\tUrl=\"/campaignapi/v1.0/CampaignNotificationProfile/GetAll\"\r\n\t\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nNotificationHistory.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(NotificationHistory, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericDateInput, GenericDialog, GenericDialogActions, GenericLabel } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport { DetailIcon, EditIcon } from \"core/Icons\";\r\nimport { CrudType, FileCode, FileType, ProgramCodes, ClientType, EmvScriptPoolInsertType } from \"views/Constants/Constant\";\r\nimport { Dialog, DialogActions, DialogContent, DialogTitle, IconButton } from \"@material-ui/core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass PromotionStatus extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tisLoading: false,\r\n\t\t\tmodel: {},\r\n\t\t\tfile: {},\r\n\t\t\tlist: [],\r\n\t\t\tisDetailDialogOpen: false,\r\n\t\t\tuploadedList: [],\r\n\t\t\tisClient: ClientHelper.IsClient(),\r\n\t\t};\r\n\r\n\t\tthis.fileInputRef = React.createRef();\r\n\t\tthis.ParameterEmpty = {};\r\n\t\tthis.ParameterCouponStatus = { ParameterCode: \"CampaignCouponStatus\" };\r\n\t\tthis.ColumnsCouponHistory = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Program\",\r\n\t\t\t\taccessor: \"CouponProfile.Program.Description\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"ExecutionType\",\r\n\t\t\t\taccessor: \"CouponProfile.ExecutionType.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Profile Name\",\r\n\t\t\t\taccessor: \"CouponProfile.ProfileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Unique Client ID\",\r\n\t\t\t\taccessor: \"UniqueClient.UniqueClientId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"Customer.CustomerName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Coupon Code\",\r\n\t\t\t\taccessor: \"CouponCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Generate Order\",\r\n\t\t\t\taccessor: \"GenerateOrder\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Campaign Partner\",\r\n\t\t\t\taccessor: \"CampaignPartner.PartnerName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reward\",\r\n\t\t\t\taccessor: \"CouponProfile.Reward\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Redemtion Status\",\r\n\t\t\t\taccessor: \"UsageStatus.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Success\",\r\n\t\t\t\taccessor: \"IsSuccess\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value ? \"Yes\" : \"No\"}
\r\n\t\t\t\t),\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Free Gift\",\r\n\t\t\t\taccessor: \"IsFreeGift\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value ? \"Yes\" : \"No\"}
\r\n\t\t\t\t),\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Discount\",\r\n\t\t\t\taccessor: \"IsDiscount\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value ? \"Yes\" : \"No\"}
\r\n\t\t\t\t),\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Generate Date\",\r\n\t\t\t\taccessor: \"GenerateDate\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tfilterMethod: (filter, row, column) => {\r\n\t\t\t\t\treturn Formatter.FormatDateTime(row[filter.id]).toLowerCase().startsWith(filter.value.toLowerCase())\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Usage Date\",\r\n\t\t\t\taccessor: \"UsageDate\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tfilterMethod: (filter, row, column) => {\r\n\t\t\t\t\treturn Formatter.FormatDateTime(row[filter.id]).toLowerCase().startsWith(filter.value.toLowerCase())\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t];\r\n\t\tthis.ColumnsUploadCodes = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Profile Name\",\r\n\t\t\t\taccessor: \"CouponProfile.ProfileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Unique Client ID\",\r\n\t\t\t\taccessor: \"UniqueClient.UniqueClientId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"Customer.CustomerName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Coupon Code\",\r\n\t\t\t\taccessor: \"CouponCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Generate Order\",\r\n\t\t\t\taccessor: \"GenerateOrder\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Campaign Partner\",\r\n\t\t\t\taccessor: \"CampaignPartner.PartnerName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reward\",\r\n\t\t\t\taccessor: \"CouponProfile.Reward\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Redemtion Status\",\r\n\t\t\t\taccessor: \"UsageStatus.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Generate Date\",\r\n\t\t\t\taccessor: \"GenerateDate\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tfilterMethod: (filter, row, column) => {\r\n\t\t\t\t\treturn Formatter.FormatDateTime(row[filter.id]).toLowerCase().startsWith(filter.value.toLowerCase())\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Usage Date\",\r\n\t\t\t\taccessor: \"UsageDate\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tfilterMethod: (filter, row, column) => {\r\n\t\t\t\t\treturn Formatter.FormatDateTime(row[filter.id]).toLowerCase().startsWith(filter.value.toLowerCase())\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t];\r\n\r\n\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\tif (this.props.setAppCenterTitle) {\r\n\t\t\tthis.props.setAppCenterTitle(\"Campaign Manager\");\r\n\t\t}\r\n\r\n\t\tif (this.props.setAppLeftTitle)\r\n\t\t\tthis.props.setAppLeftTitle(\"Promotion Status List\");\r\n\r\n\t}\r\n\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar temp = state.model || {};\r\n\t\t\ttemp[name] = newValue;\r\n\t\t\treturn { model: temp };\r\n\t\t});\r\n\t}\r\n\r\n\r\n\tSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/campaignapi/v1.0/CampaignCouponHistory/PromotionSearch\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error !\", responseData.ErrorDescription);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item || [] });\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tUploadFileContent = (file) => {\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tvar formData = new FormData();\r\n\t\tformData.append(\"file\", file, file.name);\r\n\t\tformData.append(\"isBinaryOrBase64\", FileType.Binary);\r\n\r\n\t\tProxy.FileUpload(\r\n\t\t\t\"/campaignapi/v1.0/CampaignCouponHistory/UploadUsedCoupon\",\r\n\t\t\tformData,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error !\", responseData.ErrorDescription);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ uploadedList: responseData.Item || [] });\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tMarkAsUsed = () => {\r\n\t\tvar list = this.state.uploadedList;\r\n\t\tif (list == null || list.length < 1) {\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Coupon list must be valid !\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tvar temp = [];\r\n\t\tlist.forEach(element => {\r\n\t\t\ttemp.push(element.CouponCode);\r\n\t\t});\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/campaignapi/v1.0/CampaignCouponHistory/MarkAsUsed\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error !\", responseData.ErrorDescription);\r\n\t\t\t\t}\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Success\", \"Coupons Marked as Used !\");\r\n\t\t\t\tthis.setState({ isLoading: false, isDetailDialogOpen: false });\r\n\t\t\t\tthis.Search();\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\r\n\t}\r\n\tFileSelect = (e) => {\r\n\t\te.preventDefault();\r\n\r\n\t\tvar file = e.target.files[0];\r\n\t\tif (!file) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ file: file, isDetailDialogOpen: true });\r\n\t\tthis.UploadFileContent(file);\r\n\t}\r\n\r\n\r\n\tClearData = () => {\r\n\t\tthis.setState({ model: {}, list: [], file: {}, uploadedList: [] });\r\n\t}\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\treturn `${d.UniqueClientId} - ${d.Name}`;\r\n\t}\r\n\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { isLoading, model, list, file, uploadedList } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t this.ClearData(), Disabled: Disabled },\r\n\t\t\t\t\t{ Code: \"Search\", OnClick: this.Search, Disabled: Disabled }\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{!this.state.isClient && (\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t 0}\r\n\t\t\t\t\t\t\t\t\t\tName=\"ProgramId\"\r\n\t\t\t\t\t\t\t\t\t\tLabelText=\"Program\"\r\n\t\t\t\t\t\t\t\t\t\tValue={model.ProgramId}\r\n\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"Id\"\r\n\t\t\t\t\t\t\t\t\t\tTextValueMember=\"Description\"\r\n\t\t\t\t\t\t\t\t\t\tMethod=\"GET\"\r\n\t\t\t\t\t\t\t\t\t\tUrl=\"/bankapi/v1.0/Bank/ValidProgramsCampaign\"\r\n\t\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t 0}\r\n\t\t\t\t\t\t\t\t\t\tName=\"ExecutionTypeId\"\r\n\t\t\t\t\t\t\t\t\t\tLabelText=\"Redemption Status\"\r\n\t\t\t\t\t\t\t\t\t\tValue={model.ExecutionTypeId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"Id\"\r\n\t\t\t\t\t\t\t\t\t\tTextValueMember=\"ParameterDesc\"\r\n\t\t\t\t\t\t\t\t\t\tMethod=\"POST\"\r\n\t\t\t\t\t\t\t\t\t\tUrl=\"/coreapi/v1.0/Parameter/Search\"\r\n\t\t\t\t\t\t\t\t\t\tParameter={this.ParameterCouponStatus}\r\n\t\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t 0}\r\n\t\t\t\t\t\t\t\t\t\tName=\"CouponProfileId\"\r\n\t\t\t\t\t\t\t\t\t\tLabelText=\"Coupon Profile\"\r\n\t\t\t\t\t\t\t\t\t\tValue={model.CouponProfileId}\r\n\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"Id\"\r\n\t\t\t\t\t\t\t\t\t\tTextValueMember=\"ProfileName\"\r\n\t\t\t\t\t\t\t\t\t\tMethod=\"POST\"\r\n\t\t\t\t\t\t\t\t\t\tParameter={this.ParameterEmpty}\r\n\t\t\t\t\t\t\t\t\t\tUrl=\"/campaignapi/v1.0/CouponProfile/GetAll\"\r\n\t\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{file.name}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t \" + file.name} Bold={true} />\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nPromotionStatus.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(PromotionStatus, {});","import { Dialog, DialogContent } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport PropTypes, { func } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericTitle, GenericAlert, GenericDateInput, GenericGrid, GenericNumberInput, GenericExpansionPanel, GenericSelectInput } from \"views/Components/Generic\";\r\nimport { Portals, GridColumnType } from \"views/Constants/Constant\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\n\r\nclass CHQTransactionSearch extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\ttoolBarModel: {},\r\n\t\t\ttempModel: {},\r\n\t\t\tgetDataList: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tpoolModel: {},\r\n\t\t\tisBackOff: false\r\n\t\t};\r\n\t\tthis.handleChange = this.handleChange.bind(this);\r\n\t\tthis.handleChangeTempModel = this.handleChangeTempModel.bind(this);\r\n\t\tthis.GetData = this.GetData.bind(this);\r\n\t\tthis.errorCallback = this.errorCallback.bind(this);\r\n\t\tthis.hideAlert = this.hideAlert.bind(this);\r\n\t\tthis.showErrorMessage = this.showErrorMessage.bind(this);\r\n\t\tthis.successSummaryCallback = this.successSummaryCallback.bind(this);\r\n\t\tthis.successCallback = this.successCallback.bind(this);\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\tconst { location } = this.props;\r\n\t\tvar isBackOff = ClientHelper.IsBackOffice();\r\n\t\tvar model = { ...this.state.model };\r\n\t\tif (!isBackOff) {\r\n\t\t\tmodel[\"ClientId\"] = ClientHelper.GetClientRowId();\r\n\t\t}\r\n\t\tthis.props.setAppLeftTitle(\"Cheque Transaction Search\");\r\n\t\tthis.props.setAppCenterTitle(\"CHEQUE MANAGEMENT\");\r\n\t\tthis.props.setPortal(Portals.DDT);\r\n\r\n\t\tvar data = RouteHelper.ReadAndClear(\"CHQTransactionSearch_Date\");\r\n\r\n\t\tif (data) {\r\n\t\t\tmodel.FromDate = data.FromDate;\r\n\t\t\tmodel.ToDate = data.ToDate;\r\n\t\t\tmodel.IsSettled = data.IsSettled;\r\n\t\t\tthis.setState({ isBackOff: isBackOff, model });\r\n\t\t\tthis.GetData(model);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.setState({ isBackOff: isBackOff, model });\r\n\t\t}\r\n\t}\r\n\r\n\r\n\r\n\tsuccessCallback(responseData) {\r\n\t\tvar toolBarModel = { ...this.state.toolBarModel };\r\n\t\tvar poolModel = { ...this.state.poolModel };\r\n\t\tvar model = { ...this.state.model };\r\n\t\tthis.setState({ model, toolBarModel, poolModel, isLoading: false });\r\n\t}\r\n\r\n\thandleChange(name, newValue, data) {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (name == \"SettlementStatus\")\r\n\t\t\tif (data.ParameterDesc == \"Yes\")\r\n\t\t\t\tmodel[name] = true;\r\n\t\t\telse\r\n\t\t\t\tmodel[name] = false;\r\n\t\telse\r\n\t\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\thandleChangeTempModel(name, newValue, data) {\r\n\t\tconst tempModel = { ...this.state.tempModel };\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (name == \"SettlementStatus\") {\r\n\t\t\tif (newValue != -1) {\r\n\t\t\t\tif (data.ParameterDesc == \"Yes\") {\r\n\t\t\t\t\ttempModel[name] = newValue;\r\n\t\t\t\t\tmodel[name] = true;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\ttempModel[name] = newValue;\r\n\t\t\t\t\tmodel[name] = false;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\ttempModel[name] = newValue;\r\n\t\t\t\tmodel[name] = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t\ttempModel[name] = newValue;\r\n\t\tthis.setState({ tempModel, model });\r\n\t}\r\n\r\n\tGetData(model) {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\t// if (this.state.model.SearchStartDate == null)\r\n\t\t// \tthis.showErrorMessage(\"Date / To can not be empty !!\");\r\n\t\t// else {\r\n\t\tProxy.POST(\r\n\t\t\t\"/chequeapi/v1.0/Cheque/SearchTransactionChq\",\r\n\t\t\tmodel ? model : this.state.model,\r\n\t\t\tthis.successSummaryCallback,\r\n\t\t\tthis.errorCallback\r\n\t\t);\r\n\t\t// }\r\n\t}\r\n\r\n\tsuccessSummaryCallback(responseData) {\r\n\t\tthis.hideAlert();\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.showErrorMessage(responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (responseData.Item == null || responseData.Item.length < 1) {\r\n\t\t\tthis.setState({ getDataList: [], isLoading: false });\r\n\t\t} else {\r\n\t\t\tthis.setState({\r\n\t\t\t\tgetDataList: responseData.Item.map(x => {\r\n\t\t\t\t\treturn {\r\n\t\t\t\t\t\tClientName: x.ClientName == null ? \"\" : x.ClientName,\r\n\t\t\t\t\t\tTransactionSource: x.TransactionSource == null ? \"\" : x.TransactionSource,\r\n\t\t\t\t\t\tCustomerNumber: x.CustomerNumber == null ? \"\" : x.CustomerNumber,\r\n\t\t\t\t\t\tTransitNumber: x.TransitNumber == null ? \"\" : x.TransitNumber,\r\n\t\t\t\t\t\tAccountNumber: x.AccountNumber == null ? \"\" : x.AccountNumber,\r\n\t\t\t\t\t\tDate: x.Date == null ? \"\" : x.Date,\r\n\t\t\t\t\t\tTransactionType: x.TransactionType == null ? \"\" : x.TransactionType,\r\n\t\t\t\t\t\tSettlementStatus: x.SettlementStatus == null ? \"\" : x.SettlementStatus == true ? \"Yes\" : \"No\",\r\n\t\t\t\t\t\tAmount: x.Amount == null ? \"\" : x.Amount,\r\n\t\t\t\t\t\tChqStatus: x.ChqStatus == null ? \"\" : x.ChqStatus,\r\n\t\t\t\t\t\tChqStatusCode: x.ChqStatusCode == null ? \"\" : x.ChqStatusCode\r\n\r\n\t\t\t\t\t};\r\n\t\t\t\t}), isLoading: false\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\r\n\terrorCallback(error) {\r\n\t\tthis.setState({ isLoading: false, alert: null });\r\n\t\tthis.showErrorMessage(\"An error occurred during the api visit\" + error);\r\n\t}\r\n\r\n\tshowErrorMessage(message) {\r\n\t\tthis.setState({\r\n\t\t\tisLoading: false,\r\n\t\t\tgetDataList: [],\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\r\n\thideAlert() {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\thandleClear = () => {\r\n\r\n\r\n\t\tthis.setState({\r\n\t\t\tmodel: {},\r\n\t\t\tgetDataList: [],\r\n\r\n\t\t});\r\n\t}\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, poolModel, isBackOff } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\tValue={model.ClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\t\tDisabled={!isBackOff} />\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\r\n\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t

\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCHQTransactionSearch.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\thandleOperationType: PropTypes.func,\r\n\tSelectedRowChange: PropTypes.func,\r\n\tshowQuestionMessage: func,\r\n\tsetAppLeftTitle: func,\r\n\tsetAppCenterTitle: func,\r\n\tsetPortal: func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.number,\r\n\tApprovalData: PropTypes.array,\r\n\tAfter: PropTypes.func\r\n};\r\n\r\nexport default withArtifex(CHQTransactionSearch, {});","import { Dialog, DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport DDTListStyle from \"assets/jss/material-dashboard-pro-react/views/DDTListStyle.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericNumberInput, GenericSelectInput, GenericTitle } from \"views/Components/Generic\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { OrderStatusType, GridColumnType } from \"views/Constants/Constant\";\r\nimport ChequeOrderDetailInfo from \"../ChequeOrder/ChequeOrderDetailInfo\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nclass ChequeManagement extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tvar user = ClientHelper.GetUser();\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: user.UniqueClientId,\r\n\t\t\t// ClientTypeId: user.UniqueClient.ClientTypeId\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tpageSelect: \"\",\r\n\t\t\tlist: [],\r\n\t\t\tprmList: [],\r\n\t\t\tisLoading: false,\r\n\t\t\talert: \"\",\r\n\t\t\tselected: null,\r\n\t\t\tpricetxt: \"\",\r\n\t\t\tchequemodel: {},\r\n\t\t\topenDialog: false,\r\n\t\t\tisBackOffice: false,\r\n\t\t\tchqinfomodel: {},\r\n\t\t\ttotalchqinfomodel: {},\r\n\t\t\tIsUpdate: false,\r\n\t\t\tvModel: {}\r\n\t\t};\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\t// var tempuniq = Formatter.PadLeft(ClientHelper.GetClientRowId(), 3, \"0\");\r\n\t\tif (this.props.setAppLeftTitle) this.props.setAppLeftTitle(\"Order Cheque\");\r\n\t\tif (this.props.setAppCenterTitle) {\r\n\t\t\tthis.props.setAppCenterTitle(\"BANKING\");\r\n\t\t}\r\n\t\tthis.setState({ openDialog: false });\r\n\r\n\t\tthis.GetParameter();\r\n\t\tvar { isBackOffice, IsUpdate } = this.state;\r\n\r\n\t\tisBackOffice = ClientHelper.IsBackOffice();\r\n\t\tIsUpdate = false;\r\n\r\n\t\tthis.setState({ isBackOffice, IsUpdate });\r\n\r\n\t}\r\n\r\n\r\n\r\n\thandleChange = (name, value, data) => {\r\n\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tthis.setState({ model });\r\n\r\n\t\tif (name === \"QuantityTypeId\") {\r\n\t\t\tmodel[\"Price\"] = data.ParameterValue2;\r\n\t\t\tthis.setState({ model, pricetxt: data.ParameterValue2 });\r\n\r\n\t\t}\r\n\r\n\t}\r\n\r\n\tIsSubmit = () => {\r\n\r\n\t\tthis.setState({ isLoading: true, alert: null });\r\n\r\n\t\tconst { model } = this.state;\r\n\t\tmodel.UniqueClientId = this.initialModel.UniqueClientId;\r\n\r\n\t\tProxy.POST(\r\n\t\t\tmodel.Id === 0\r\n\t\t\t\t? \"/chequeapi/v1.0/Cheque/Insert\"\r\n\r\n\t\t\t\t: \"/chequeapi/v1.0/Cheque/Update\",\r\n\r\n\t\t\tmodel.Id === 0 ? model : {\r\n\t\t\t\tChequeTypeId: model.ChequeTypeId,\r\n\t\t\t\tId: model.Id,\r\n\t\t\t\tPrice: model.Price,\r\n\t\t\t\tQuantityTypeId: model.QuantityTypeId,\r\n\t\t\t\tShipAttentionToId: model.ShipAttentionToId,\r\n\t\t\t\tSignatureTypeId: model.SignatureTypeId,\r\n\t\t\t\tUniqueClientId: model.UniqueClientId,\r\n\r\n\t\t\t}\r\n\t\t\t,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Operation is successfully!\");\r\n\r\n\t\t\t\tthis.Clear();\r\n\t\t\t\tthis.Search();\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\r\n\t}\r\n\r\n\tSubmit = () => {\r\n\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.ShowConfirmMessage(\"warning\", \"Warning\", \"Are you sure you want to give a cheque order ?\", this.IsSubmit)\r\n\r\n\r\n\t}\r\n\tUpdateDialog = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.ShowConfirmMessage(\"warning\", \"Warning\", \"Are you sure you want to update the cheque order ?\", this.IsSubmit)\r\n\r\n\t}\r\n\tDelete = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tProxy.GET(\r\n\t\t\t\"/chequeapi/v1.0/Cheque/Delete/Id?Id=\" + this.state.model.Id,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Operation is successfully!\");\r\n\t\t\t\tthis.Clear();\r\n\t\t\t\tthis.Search();\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/chequeapi/v1.0/Cheque/SearchChequeOrderList\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item.ChequeOrderList || [], isLoading: false, totalchqinfomodel: responseData.Item.ChequeDetailInfo });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tOpenEditModal = () => {\r\n\t\tProxy.POST(\r\n\t\t\t\"/chequeapi/v1.0/Cheque/ChequeOrderDetailInfo\",\r\n\t\t\t{\r\n\t\t\t\tId: this.state.model.UniqClntId,\r\n\t\t\t\tClientTypeId: this.state.model.ClientTypeId\r\n\t\t\t},\r\n\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tvar chqinfomodel = this.state.chqinfomodel;\r\n\t\t\t\tthis.setState({ chequemodel: responseData.Item, isLoading: false, openDialog: true, chqinfomodel });\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t\t// this.setState({\r\n\t\t// \topenDialog: true\r\n\t\t// });\r\n\t}\r\n\r\n\tGetParameter = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Parameter/Search\",\r\n\t\t\t{\r\n\r\n\t\t\t\tParameterCode: \"QuantityType\",\r\n\t\t\t\t\"ParameterValue\": \"\",\r\n\t\t\t\t\"ParameterValue3\": \"\",\r\n\t\t\t\t\"ParameterDesc\": \"\"\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ prmList: responseData.Item || [], isLoading: false });\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tClear = () => {\r\n\t\tthis.setState({ model: this.initialModel, list: [], selected: null, pricetxt: \"\", totalchqinfomodel: {}, chqinfomodel: {}, IsUpdate: false, isLoading: false });\r\n\t}\r\n\tShowMessage(type, title, message) {\r\n\t\tthis.setState({\r\n\t\t\talert:\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t});\r\n\t}\r\n\thandleClose = () => {\r\n\t\tthis.setState({\r\n\t\t\topenDialog: false\r\n\t\t});\r\n\t}\r\n\r\n\t// PreView = () => {\r\n\r\n\t// \tthis.setState({ isLoading: true });\r\n\t// \tvar FileName = \"\";\r\n\t// \tProxy.FileDownload(\r\n\t// \t\t\"/chequeapi/v1.0/Cheque/DowloadFile\",\r\n\t// \t\tFileName + \"-\" + Math.floor(Math.random() * Math.floor(999999)),\r\n\t// \t\t\"pdf\",\r\n\t// \t\t{\r\n\t// \t\t\t\"Id\": \"40\"\r\n\t// \t\t},\r\n\t// \t\t() => {\r\n\t// \t\t\tthis.setState({ isLoading: false });\r\n\t// \t\t}\r\n\t// \t);\r\n\t// }\r\n\r\n\tShowConfirmMessage(type, title, message, onConfirm) {\r\n\t\tthis.setState({\r\n\t\t\talert:\r\n\t\t\t\t this.setState({ alert: null })}\r\n\t\t\t\t\tOnConfirm={onConfirm}\r\n\t\t\t\t/>,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\tValidate() {\r\n\t\tconst { model, list } = this.state;\r\n\t\tconst vModel = { ...this.state.vModel };\r\n\t\tvar ErrorList = [];\r\n\r\n\t\tif (!model.QuantityTypeId) {\r\n\t\t\tErrorList.push(\"Quantity Type must be defined\");\r\n\t\t\tvModel.QuantityTypeId = true; \r\n \r\n\t\t} else {\r\n\t\t\tvModel.QuantityTypeId = false; \r\n\t\t}\r\n\t\r\n\t\tif (!model.Price || model.Price == \"\") {\r\n\t\t\tErrorList.push( \"Price not must be defined\");\r\n\t\t\tvModel.Price = true; \r\n\t \r\n\t\t} else {\r\n\t\t\tvModel.Price = false; \r\n\t\t}\r\n\t\tif (!model.ShipAttentionToId) {\r\n\t\t\tErrorList.push( \"ShipAttentionTo must be defined\");\r\n\t\t\tvModel.ShipAttentionToId = true; \r\n\t\t \r\n\t\t} else {\r\n\t\t\tvModel.ShipAttentionToId = false; \r\n\t\t}\r\n\t\tif (!model.SignatureTypeId) {\r\n\t\t\tErrorList.push( \" Signature Type must be defined\");\r\n\t\t\tvModel.SignatureTypeId = true; \r\n\t\t \r\n\t\t} else {\r\n\t\t\tvModel.SignatureTypeId = false; \r\n\t\t}\r\n\t\tif (!model.ChequeTypeId) {\r\n\t\t\tErrorList.push( \"Cheque Type must be defined\");\r\n\t\t\tvModel.ChequeTypeId = true; \r\n\t\t\t \r\n\t\t} else {\r\n\t\t\tvModel.ChequeTypeId = false; \r\n\t\t}\r\n\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.setState({ vModel });\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\r\n\t\tthis.setState({ vModel });\r\n\t\treturn true;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes } = this.props;\r\n\t\tconst { isLoading, alert, model, list, selected, prmList, pricetxt, totalchqinfomodel, chqinfomodel, IsUpdate, vModel } = this.state;\r\n\r\n\t\tvar mapData = prmList.map(d => {\r\n\t\t\treturn {\r\n\t\t\t\tId: d.Id,\r\n\t\t\t\tParameterCode: d.ParameterCode,\r\n\t\t\t\tParameterValue: d.ParameterValue,\r\n\t\t\t\tParameterValue2: d.ParameterValue2\r\n\t\t\t};\r\n\t\t});\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{}\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\r\n\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t this.ShowConfirmMessage(\"warning\", \"Warning\", \"Are you sure want to Delete ?\", this.Delete),\r\n\t\t\t\t\t\tDisabled: model.Id == 0 ? chqinfomodel.OrderStatusValue != undefined ? chqinfomodel.OrderStatusValue == OrderStatusType.Approved ? true : false : true : chqinfomodel.OrderStatusValue == OrderStatusType.Approved ? true : false\r\n\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tCode: \"Clear\",\r\n\t\t\t\t\t\tOnClick: this.Clear,\r\n\r\n\t\t\t\t\t}, {\r\n\t\t\t\t\t\tCode: \"Preview\",\r\n\t\t\t\t\t\tOnClick: this.OpenEditModal,\r\n\t\t\t\t\t\tDisabled: chqinfomodel.SignatureTypeId === undefined ? true : false\r\n\r\n\t\t\t\t\t},\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tvar chqinfomodel = {\r\n\t\t\t\t\t\t\t\t\t\tSignatureTypeId: list[index].SignatureTypeId,\r\n\t\t\t\t\t\t\t\t\t\tChequeTypeId: list[index].ChequeTypeId,\r\n\t\t\t\t\t\t\t\t\t\tOrderStatusValue: list[index].OrderStatusValue\r\n\t\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t\t\tthis.setState({ model: list[index], selected: index, pricetxt: list[index].Price, chqinfomodel, IsUpdate: true });\r\n\t\t\t\t\t\t\t\t}} />\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t

Waiting

\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t

Approved

\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t

Total

\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t

Quantity

\r\n\t\t\t\t\t\t\t\t\t
}\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t

Price

\r\n\t\t\t\t\t\t\t\t\t
}\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tTOTAL\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{totalchqinfomodel == null || undefined ? 0 : totalchqinfomodel.TotalWaiting == null || undefined ? 0 : typeof totalchqinfomodel.TotalWaiting == \"number\" ? Formatter.FormatNumber(totalchqinfomodel.TotalWaiting) : totalchqinfomodel.TotalWaiting}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{totalchqinfomodel == null || undefined ? 0 : totalchqinfomodel.TotalApproved == null || undefined ? 0 : typeof totalchqinfomodel.TotalApproved == \"number\" ? Formatter.FormatNumber(totalchqinfomodel.TotalApproved) : totalchqinfomodel.TotalApproved}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{totalchqinfomodel == null || undefined ? 0 : totalchqinfomodel.Total == null || undefined ? 0 : typeof totalchqinfomodel.Total == \"number\" ? Formatter.FormatNumber(totalchqinfomodel.Total) : totalchqinfomodel.Total}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{totalchqinfomodel == null || undefined ? 0 : totalchqinfomodel.TotalQuantity == null || undefined ? 0 : typeof totalchqinfomodel.TotalQuantity == \"number\" ? Formatter.FormatNumber(totalchqinfomodel.TotalQuantity) : totalchqinfomodel.TotalQuantity}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t($)\r\n\t\t\t\t\t\t\t\t{totalchqinfomodel == null || undefined ? 0 : totalchqinfomodel.TotalPrice == null || undefined ? 0 : typeof totalchqinfomodel.TotalPrice == \"number\" ? Formatter.FormatNumber(totalchqinfomodel.TotalPrice) : totalchqinfomodel.TotalPrice}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nChequeManagement.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default withArtifex(ChequeManagement, DDTListStyle);","import sweetAlertStyle from \"assets/jss/material-dashboard-pro-react/views/sweetAlertStyle.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericExpansionPanel, GenericSelectInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ChequeOrderDataTable from \"./ChequeOrderDataTable\";\r\n\r\nconst styles = ({\r\n\t...sweetAlertStyle\r\n});\r\nclass ChequeOrder extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tvar user = ClientHelper.GetUser();\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tClientTypeId: (user.UniqueClient && user.UniqueClient.ClientTypeId) || null,\r\n\t\t\tisBackOffice: true\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tlist: [],\r\n\t\t\ttotalresult: {},\r\n\t\t\tcheckedValues: [],\r\n\t\t\tselected: null,\r\n\t\t\tisLoading: false,\r\n\t\t\talert: \"\",\r\n\t\t};\r\n\r\n\t\tthis.HandleCheck = this.HandleCheck.bind(this);\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Cheque Orders\");\r\n\t\tthis.props.setAppCenterTitle(\"CLEARING & SETTLEMENT\");\r\n\r\n\r\n\t\tvar model = { ...this.state.model };\r\n\r\n\t\tmodel.isBackOffice = ClientHelper.IsBackOffice();\r\n\t\tif (!model.isBackOffice) {\r\n\t\t\tmodel.UniqueClientId = ClientHelper.GetClientRowId();\r\n\t\t\tmodel.Name = model.UniqueClientId;\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tValueChanged = (name, value, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tif (name === \"Name\") model[\"UniqueClientId\"] = value;\r\n\t\tif (name === \"UniqueClientId\") model[\"Name\"] = value;\r\n\r\n\t\tthis.setState({ model });\r\n\t}\r\n\tHandleCheck = (e, x) => {\r\n\r\n\t\tthis.setState(state => ({\r\n\t\t\tcheckedValues: state.checkedValues.includes(x)\r\n\t\t\t\t? state.checkedValues.filter(c => c !== x)\r\n\t\t\t\t: [...state.checkedValues, x]\r\n\t\t}));\r\n\t}\r\n\r\n\r\n\tSubmit = () => {\r\n\t\t// \"/chequeapi/v1.0/Cheque/ChequeOrderAll\", ////bu printer icin\r\n\t\tthis.setState({ isLoading: true, alert: null })\r\n\t\tProxy.POST(\r\n\t\t\t\"/chequeapi/v1.0/Cheque/ChequeOrderTransActionUpdate\",\r\n\t\t\tthis.state.checkedValues,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tvar listItems = [];\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tlistItems = responseData.Item.map((number) =>\r\n\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t{number.ApprovedDate == null ?\r\n\t\t\t\t\t\t\t\tnumber.UniqueClientId + \"==>\" + number.Name + \"==>\" + Formatter.FormatDateUtc(number.ChequeOrderDate) + \"==>Error\"\r\n\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\tnumber.UniqueClientId + \"==>\" + number.Name + \"==>\" + Formatter.FormatDateUtc(number.ChequeOrderDate) + \"==>Succeses\"\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t);\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.ShowMessage(\"warning\", \"Cheque Approved List Successfully \", \"\");\r\n\t\t\t\tthis.Clear();\r\n\t\t\t\tthis.Search();\r\n\r\n\t\t\t\t// this.ShowMessage(\"success\", \"Operation is successfully!\",responseData.ErrorDescription);\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\r\n\r\n\tErrorSendCallback(error) {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t}\r\n\r\n\r\n\tSearch = () => {\r\n\r\n\t\tthis.setState({ isLoading: true ,checkedValues: []});\r\n\r\n\t\tconst { model } = this.state;\r\n\t\tif (!model.isBackOffice) {\r\n\t\t\tmodel.UniqueClientId = ClientHelper.GetClientRowId();\r\n\t\t}\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/chequeapi/v1.0/Cheque/SearchChequeOrderList\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item.ChequeOrderList || [], isLoading: false, totalresult: responseData.Item.ChequeDetailInfo });\r\n\t\t\t\t}\r\n\r\n\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tClear = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tmodel.UniqueClientId = this.initialModel.UniqueClientId;\r\n \r\n\t\tthis.setState({ model: this.initialModel, list: [], selected: null, checkedValues: [], totalresult: {} });\r\n\t}\r\n\tValidate() {\r\n\t\tconst { model, list } = this.state;\r\n\r\n\t\tif (!model.Code) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Action code not entered\", \"Enter action code to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!model.Description) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Action description not entered\", \"Enter action description to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!model.Order) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Action order not entered\", \"Enter action order to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tvar isActionCodeUnique = true;\r\n\t\tlist\r\n\t\t\t.filter(x => x.Code === model.Code)\r\n\t\t\t.map(() => {\r\n\t\t\t\tisActionCodeUnique = false;\r\n\t\t\t});\r\n\t\tif (!isActionCodeUnique) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Action code must be unique\", \"Action code has already been inserted.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tvar isActionOrderUnique = true;\r\n\t\tlist\r\n\t\t\t.filter(x => x.Order == model.Order)\r\n\t\t\t.map(() => {\r\n\t\t\t\tisActionOrderUnique = false;\r\n\t\t\t});\r\n\t\tif (!isActionOrderUnique) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Action order must be unique\", \"Action order has already been inserted.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert:\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t});\r\n\t}\r\n\tShowConfirmMessage(type, title, message, onConfirm) {\r\n\t\tthis.setState({\r\n\t\t\talert:\r\n\t\t\t\t this.setState({ alert: null, isLoading: false })}\r\n\t\t\t\t\tOnConfirm={onConfirm}\r\n\t\t\t\t/>,\r\n\t\t\tisLoading: true\r\n\t\t});\r\n\t}\r\n\trender() {\r\n\t\tconst { model, list, selected } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t this.ShowConfirmMessage(\"warning\", \"Warning\", \"Are you sure you want to approve the cheque?\", this.Submit),\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Clear\",\r\n\t\t\t\t\t\t\tOnClick: this.Clear\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After}\r\n\t\t\t\t/>\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nChequeOrder.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any,\r\n\tclasses: PropTypes.object,\r\n\r\n};\r\n\r\nexport default withArtifex(ChequeOrder, styles);","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericLabel, GenericNumberInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport { OrderStatusType } from \"views/Constants/Constant.js\";\r\nimport DDTListStyle from \"../../../assets/jss/material-dashboard-pro-react/views/DDTListStyle.jsx\";\r\nimport ChequeOrderDetailInfo from \"../ChequeOrder/ChequeOrderDetailInfo\";\r\n\r\nclass CreateCheque extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tvar user = ClientHelper.GetUser();\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: user.UniqueClientId,\r\n\t\t\tClientTypeId: user.UniqueClient.ClientTypeId,\r\n\t\t\tImageData1: \"\",\r\n\t\t\tImageData: \"\"\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tpageSelect: \"\",\r\n\t\t\tlist: [],\r\n\t\t\tprmList: [],\r\n\t\t\tisLoading: false,\r\n\t\t\talert: \"\",\r\n\t\t\tselected: null,\r\n\t\t\tpricetxt: \"\",\r\n\t\t\tchequemodel: {},\r\n\t\t\topenDialog: false,\r\n\t\t\tisBackOffice: false,\r\n\t\t\tchqinfomodel: {},\r\n\t\t\ttotalchqinfomodel: {}\r\n\t\t};\r\n\r\n\t\tthis.fileInputRef = React.createRef();\r\n\t\tthis.fileInputRef1 = React.createRef();\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\t// var tempuniq = Formatter.PadLeft(ClientHelper.GetClientRowId(), 3, \"0\");\r\n\t\tif (this.props.setAppLeftTitle) this.props.setAppLeftTitle(\"Create Cheque\");\r\n\t\tif (this.props.setAppCenterTitle) {\r\n\t\t\tthis.props.setAppCenterTitle(\"BANKING\");\r\n\t\t}\r\n\t\tthis.setState({ openDialog: false });\r\n\t\tvar isBackOffice = ClientHelper.IsBackOffice();\r\n\t\tthis.setState({ isBackOffice });\r\n\t}\r\n\tHandleChange = (name, value, data) => {\r\n\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tIsSubmit = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst { model } = this.state;\r\n\t\tmodel.UniqueClientId = this.initialModel.UniqueClientId;\r\n\t\tvar list1 = [];\r\n\t\tconst temp = {\r\n\t\t\tAmount: model.Amount,\r\n\t\t\tAccountNumber: model.AccountNumber,\r\n\t\t\tRoutingTransit: model.RoutingTransit,\r\n\t\t\tChequeSerialNumber: model.ChequeSerialNumber,\r\n\t\t\tPayToTheOrderOf: model.PayToTheOrderOf,\r\n\t\t\tMemo: model.Memo,\r\n\t\t\tBOFDRoutingNumber: model.BOFDRoutingNumber,\r\n\t\t\tECEInstitutionRoutingNumber: model.ECEInstitutionRoutingNumber,\r\n\t\t\tCashLetterId: model.CashLetterId,\r\n\t\t\tBundleId: model.BundleId,\r\n\t\t\tBundleSequenceNumber: model.BundleSequenceNumber,\r\n\t\t\tEndorsingBankRoutingNumber: model.EndorsingBankRoutingNumber,\r\n\t\t\tItemSequenceNumber: model.ItemSequenceNumber,\r\n\t\t\tChqueAuxiliary: model.ChqueAuxiliary,\r\n\t\t\tPayorBankRoutingNumber: model.PayorBankRoutingNumber,\r\n\t\t\tPayorBankRoutingCheckDigit: model.PayorBankRoutingCheckDigit,\r\n\t\t\tChequeAccountOnUs: model.ChequeAccountOnUs,\r\n\t\t\tChequeAmount: model.ChequeAmount,\r\n\t\t\tCreditAuxiliary: model.CreditAuxiliary,\r\n\t\t\tPostingAccountRoutingNumber: model.PostingAccountRoutingNumber,\r\n\t\t\tCreditAccountOnUs: model.CreditAccountOnUs,\r\n\t\t\tCreditAmount: model.CreditAmount,\r\n\t\t\tDebitCreditInd: model.DebitCreditInd,\r\n\t\t\tImageCreatorRoutingNumber: model.ImageCreatorRoutingNumber,\r\n\t\t\tFinancialInstitutionId: model.FinancialInstitutionId,\r\n\t\t\tFinancialInstitutionBranchId: model.FinancialInstitutionBranchId,\r\n\t\t\tDestinationAccountNumber: model.DestinationAccountNumber,\r\n\t\t\tSourceAccountNumber: model.SourceAccountNumber,\r\n\r\n\t\t};\r\n\t\tlist1.push(model);\r\n\r\n\t\t// Buradaki kontrol kaldırıldı. Tekrar düzenleme yapılırken model.Id dolu ise update olduğuna dikkat edilmeli. (URL ve request datası buna göre değişiyordu)\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/chequeapi/v1.0/Cheque/BmoFileCreate\",\r\n\t\t\tlist1,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Operation is successfully!\");\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tSubmit = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (this.state.model.Id == 0) {\r\n\r\n\t\t\tthis.ShowConfirmMessage(\"warning\", \"Warning\", \"Are you sure want to Add ?\", this.IsSubmit);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.ShowConfirmMessage(\"warning\", \"Warning\", \"Are you sure want to Edit ?\", this.IsSubmit);\r\n\t\t}\r\n\t}\r\n\tClear = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tthis.setState({ model: this.initialModel, list: [], selected: null, pricetxt: \"\", totalchqinfomodel: {}, chqinfomodel: {} });\r\n\t}\r\n\tShowMessage(type, title, message) {\r\n\t\tthis.setState({\r\n\t\t\talert:\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t});\r\n\t}\r\n\thandleClose = () => {\r\n\t\tthis.setState({\r\n\t\t\topenDialog: false\r\n\t\t});\r\n\t}\r\n\t// PreView = () => {\r\n\r\n\t// \tthis.setState({ isLoading: true });\r\n\t// \tvar FileName = \"\";\r\n\t// \tProxy.FileDownload(\r\n\t// \t\t\"/chequeapi/v1.0/Cheque/DowloadFile\",\r\n\t// \t\tFileName + \"-\" + Math.floor(Math.random() * Math.floor(999999)),\r\n\t// \t\t\"pdf\",\r\n\t// \t\t{\r\n\t// \t\t\t\"Id\": \"40\"\r\n\t// \t\t},\r\n\t// \t\t() => {\r\n\t// \t\t\tthis.setState({ isLoading: false });\r\n\t// \t\t}\r\n\t// \t);\r\n\t// }\r\n\tShowConfirmMessage(type, title, message, onConfirm) {\r\n\t\tthis.setState({\r\n\t\t\talert:\r\n\t\t\t\t this.setState({ alert: null })}\r\n\t\t\t\t\tOnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\tValidate() {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tif (!model.ChequeAmount) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Cheque Amount not entered\", \"Enter Cheque Amount to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (!model.ChequeSerialNumber) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"ChequeSerialNumbernot entered\", \"Enter ChequeSerialNumber to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (!model.PayToTheOrderOf) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"PayToTheOrderOf not entered\", \"Enter PayToTheOrderOf to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (!model.Memo) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Memo not entered\", \"Enter Memo to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (!model.BOFDRoutingNumber) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"BOFD Routing Number not entered\", \"Enter BOFD Routing Number to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (!model.ECEInstitutionRoutingNumber) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"ECE Institution Routing Number not entered\", \"Enter ECE Institution RoutingNumber to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!model.CashLetterId) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"CashLetter Id not entered\", \"Enter CashLetter Id to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (!model.BundleId) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Bundle Id not entered\", \"Enter Bundle Id to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (!model.BundleSequenceNumber) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Bundle Sequence Number not entered\", \"Enter Bundle Sequence Number to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (!model.ItemSequenceNumber) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Item Sequence Number not entered\", \"Enter Item Sequence Number to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (!model.ChqueAuxiliary) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Chqeue Auxiliary not entered\", \"Enter Chqeue Auxiliary to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!model.PayorBankRoutingNumber) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Payor Bank Routing Number not entered\", \"Enter Payor Bank Routing Number to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (!model.ChequeAccountOnUs) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Cheque Account On-Us not entered\", \"Enter Cheque Account On-Us to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (!model.CreditAuxiliary) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Credit Auxiliary not entered\", \"Enter Credit Auxiliary to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (!model.PostingAccountRoutingNumber) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Posting Account Routing Number not entered\", \"Enter Posting Account Routing Number to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!model.CreditAccountOnUs) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Credit Account On-Us not entered\", \"Enter Credit Account On-Us to continue.\");\r\n\t\t\treturn false;\r\n\t\t} if (!model.CreditAmount) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Credit Amount not entered\", \"Enter Credit Amount to continue.\");\r\n\t\t\treturn false;\r\n\t\t} if (!model.DebitCreditInd) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"DebitCreditInd not entered\", \"Enter DebitCreditInd to continue.\");\r\n\t\t\treturn false;\r\n\t\t} if (!model.ImageCreatorRoutingNumber) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Image Creator Routing Number not entered\", \"Enter Image Creator Routing Number to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\r\n\t\treturn true;\r\n\t}\r\n\tUploadClick = () => {\r\n\t\tthis.fileInputRef.current.click();\r\n\t}\r\n\tUploadClick1 = () => {\r\n\t\tthis.fileInputRef1.current.click();\r\n\t}\r\n\tFileSelect = (e) => {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\te.preventDefault();\r\n\t\tlet reader = new FileReader();\r\n\t\tvar file = e.target.files[0];\r\n\t\tif (!file) return;\r\n\r\n\t\treader.onloadend = () => {\r\n\t\t\tmodel.ImageData = reader.result;\r\n\t\t\tthis.setState(state => ({\r\n\t\t\t\tfileModel: {\r\n\t\t\t\t\tFileName: file.name,\r\n\t\t\t\t\tFile: file\r\n\t\t\t\t},\r\n\t\t\t\tmodel\r\n\t\t\t}));\r\n\t\t};\r\n\t\treader.readAsDataURL(file);\r\n\t}\r\n\tFileSelect1 = (e) => {\r\n\t\tconst { model } = this.state;\r\n\t\te.preventDefault();\r\n\t\tlet reader1 = new FileReader();\r\n\t\tvar file1 = e.target.files[0];\r\n\t\tif (!file1) return;\r\n\r\n\t\treader1.onloadend = () => {\r\n\t\t\tmodel.ImageData1 = reader1.result;\r\n\t\t\tthis.setState(state => ({\r\n\t\t\t\tfileModel1: {\r\n\t\t\t\t\tFileName1: file1.name,\r\n\t\t\t\t\tFile1: file1\r\n\t\t\t\t},\r\n\t\t\t\tmodel\r\n\t\t\t}));\r\n\t\t};\r\n\t\treader1.readAsDataURL(file1);\r\n\t}\r\n\trender() {\r\n\t\tconst { classes } = this.props;\r\n\t\tconst { alert, model, prmList, chqinfomodel } = this.state;\r\n\t\t\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t this.ShowConfirmMessage(\"warning\", \"Warning\", \"Are you sure want to Delete ?\", this.Delete),\r\n\t\t\t\t\t\tDisabled: model.Id == 0 ? chqinfomodel.OrderStatusValue != undefined ? chqinfomodel.OrderStatusValue == OrderStatusType.Approved ? true : false : true : chqinfomodel.OrderStatusValue == OrderStatusType.Approved ? true : false\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tCode: \"Clear\",\r\n\t\t\t\t\t\tOnClick: this.Clear,\r\n\t\t\t\t\t}\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\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t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t this.UploadClick()}>\r\n\t\t\t\t\t\t\t\t\t\t\t\tBrowse Rear Photo\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t this.UploadClick1()}>\r\n\t\t\t\t\t\t\t\t\t\t\t\tBrowse Front Photo\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\nCreateCheque.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\nexport default withArtifex(CreateCheque, DDTListStyle);\r\n\r\n","import { Dialog, DialogActions, DialogContent, DialogTitle, IconButton } from \"@material-ui/core\";\r\nimport { Search as SearchImg } from \"@material-ui/icons\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ReactTable from \"react-table\";\r\nimport { GenericNumberInput, GenericTextInput, GenericDialog, GenericDialogActions } from \"views/Components/Generic\";\r\n\r\nclass ClientComponent extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\tdialog: {\r\n\t\t\t\tisOpen: false,\r\n\t\t\t\tdialogData: []\r\n\t\t\t},\r\n\t\t\tselected: 0\r\n\t\t};\r\n\r\n\t\tthis.handleChange = this.handleChange.bind(this);\r\n\t\tthis.handleKeyPress = this.handleKeyPress.bind(this);\r\n\t\tthis.handleClickByKeyPressed = this.handleClickByKeyPressed.bind(this);\r\n\t\tthis.handleClick = this.handleClick.bind(this);\r\n\t\tthis.handleClickInside = this.handleClickInside.bind(this);\r\n\r\n\t\tthis.getCustomerCallback = this.getCustomerCallback.bind(this);\r\n\t\tthis.getCustomerCallbackByKeyPressed = this.getCustomerCallbackByKeyPressed.bind(this);\r\n\t\tthis.selectCustomerCallback = this.selectCustomerCallback.bind(this);\r\n\t\tthis.cancelSelectCustomerCallback = this.cancelSelectCustomerCallback.bind(this);\r\n\t}\r\n\r\n\thandleChange(name, value) {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\thandleKeyPress(e) {\r\n\t\tif (e.key == \"Enter\") {\r\n\t\t\tthis.handleClickByKeyPressed();\r\n\t\t}\r\n\t}\r\n\r\n\thandleClickByKeyPressed() {\r\n\t\tProxy.POST(\"/bankapi/v1.0/BankCustomer/Search\", {\r\n\t\t\tUniqueClientId: this.props.uniqueClientId\r\n\t\t}, this.getCustomerCallbackByKeyPressed);\r\n\t}\r\n\r\n\thandleClick() {\r\n\t\tProxy.POST(\"/bankapi/v1.0/BankCustomer/Search\", {\r\n\t\t\tUniqueClientId: this.props.uniqueClientId\r\n\t\t}, this.getCustomerCallback);\r\n\t}\r\n\r\n\thandleClickInside() {\r\n\t\tProxy.POST(\"/bankapi/v1.0/BankCustomer/Search\",\r\n\t\t\tthis.state.model,\r\n\t\t\tthis.getCustomerCallback);\r\n\t}\r\n\r\n\tgetCustomerCallback(responseData) {\r\n\t\tif (responseData.Item != null) {\r\n\t\t\tthis.setState({\r\n\t\t\t\tdialog: {\r\n\t\t\t\t\tisOpen: true,\r\n\t\t\t\t\tdialogData: responseData.Item\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\tthis.setState({ dialogData: [] });\r\n\t\t}\r\n\t}\r\n\r\n\tgetCustomerCallbackByKeyPressed(responseData) {\r\n\t\tthis.getCustomerCallback(responseData);\r\n\r\n\t\tif (responseData.Item.length === 1) {\r\n\t\t\tthis.selectCustomerCallback(responseData.Item[0]);\r\n\t\t}\r\n\t}\r\n\r\n\tselectCustomerCallback(customer) {\r\n\t\tthis.props.fillCallback(customer);\r\n\t\tthis.setState({\r\n\t\t\tdialog: {\r\n\t\t\t\tisOpen: false,\r\n\t\t\t\tdialogData: []\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tcancelSelectCustomerCallback() {\r\n\t\tthis.setState({\r\n\t\t\tdialog: {\r\n\t\t\t\tisOpen: false,\r\n\t\t\t\tdialogData: []\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tvar { nameInputName, numberInputName, LabelText, uniqueClientId, handleChange, LabelMd, Disabled } = this.props;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\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t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\tHeader: \"Name\",\r\n\t\t\t\t\t\t\t\t\t\taccessor: \"Name\"\r\n\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\tHeader: \"Client Type\",\r\n\t\t\t\t\t\t\t\t\t\taccessor: \"ClientType.ParameterDesc\"\r\n\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\t\t\t\t\t\t\taccessor: \"actions\",\r\n\t\t\t\t\t\t\t\t\t\tsortable: false,\r\n\t\t\t\t\t\t\t\t\t\tfilterable: false,\r\n\t\t\t\t\t\t\t\t\t\tresizable: false\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\tdefaultPageSize={10}\r\n\t\t\t\t\t\t\tshowPaginationTop={false}\r\n\t\t\t\t\t\t\tshowPaginationBottom={this.state.dialog.dialogData !== undefined ? Object.keys(this.state.dialog.dialogData).length > 50 : false}\r\n\t\t\t\t\t\t\tminRows={2}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tCancel\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nClientComponent.propTypes = {\r\n\tuniqueClientId: PropTypes.any,\r\n\tfillCallback: PropTypes.func,\r\n\tnameInputName: PropTypes.string,\r\n\tnumberInputName: PropTypes.string,\r\n\tLabelText: PropTypes.string,\r\n\thandleChange: PropTypes.func,\r\n\tLabelMd: PropTypes.number,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(ClientComponent, {});","import { FormControl, InputLabel, MenuItem, Select, TextField } from \"@material-ui/core\";\r\nimport withStyles from \"@material-ui/core/styles/withStyles\";\r\nimport style from \"assets/jss/material-dashboard-pro-react/views/prepaidInventoryTransferBetweenStoresStyle\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\n\r\nclass CreditCardComponent extends Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.handleChange = this.handleChange.bind(this);\r\n\t\tthis.handleBlur = this.handleBlur.bind(this);\r\n\t}\r\n\r\n\thandleChange(e) {\r\n\t\te.preventDefault();\r\n\t\tif (this.props.handleChange) {\r\n\t\t\tthis.props.handleChange();\r\n\t\t}\r\n\t}\r\n\r\n\thandleBlur(e) {\r\n\t\te.preventDefault();\r\n\t\tif (this.props.handleBlur) {\r\n\t\t\tthis.props.handleBlur();\r\n\t\t}\r\n\t}\r\n\r\n\trender() {\r\n\r\n\t\tconst { classes } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tPayee/Payor Account\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t1\r\n\t\t\t\t\t\t\t2\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCreditCardComponent.propTypes = {\r\n\tbankCode: PropTypes.string,\r\n\tlastCode: PropTypes.string,\r\n\tsecCode: PropTypes.string,\r\n\tthiCode: PropTypes.string,\r\n\thandleChange: PropTypes.func,\r\n\thandleBlur: PropTypes.func,\r\n\tclasses: PropTypes.object.isRequired\r\n};\r\n\r\nexport default withStyles(style)(CreditCardComponent);","import { withStyles } from \"@material-ui/core\";\r\nimport Typography from \"@material-ui/core/Typography\";\r\nimport eftEtransferTitleBarStyle from \"assets/jss/material-dashboard-pro-react/views/eftEtransferTitleBarStyle.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\n\r\nclass DDTTitleBar extends Component {\r\n\trender() {\r\n\t\tconst { classes, TotalNumberDDT, TotalNumberCDIC, DDTAccountBalance, CDICAccountBalance } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tTotal No.Of DDT\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{this.props.TotalNumberDDT}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tTotal No. of DDT - CDIC\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{this.props.TotalNumberCDIC}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tDDT Account Balance\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t${this.props.DDTAccountBalance}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tDDT - CDIC Account Balance\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t${this.props.CDICAccountBalance}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nDDTTitleBar.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tAvailableCreditLimit: PropTypes.number,\r\n\tAvailableDebitLimit: PropTypes.number,\r\n\tTotalNumberDDT: PropTypes.any\r\n};\r\n\r\nexport default withStyles(eftEtransferTitleBarStyle)(DDTTitleBar);","import withStyles from \"@material-ui/core/styles/withStyles\";\r\nimport Typography from \"@material-ui/core/Typography\";\r\nimport logo from \"assets/img/baseline-notifications_none-24px.svg\";\r\nimport notificationStyle from \"assets/jss/material-dashboard-pro-react/components/notificationStyle.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport { GenericIcon, GenericLabel } from \"views/Components/Generic\";\r\n\r\nclass NotificationBar extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { iconName, text, classes, list } = this.props;\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{/* {iconName} */}\r\n\t\t\t\t\t\t\t\t\t{iconName}\r\n\t\t\t\t\t\t\t\t\t{text}\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t{list.map(d => {\r\n\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\nNotificationBar.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\ticonName: PropTypes.string,\r\n\ttext: PropTypes.string,\r\n\tlist: PropTypes.array\r\n};\r\nexport default withStyles(notificationStyle)(NotificationBar);","import withStyles from \"@material-ui/core/styles/withStyles\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport { Proxy } from \"core\";\r\n\r\nimport cardsDetailStyle from \"../../assets/jss/material-dashboard-pro-react/views/cardDetailStyle.jsx\";\r\n\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\n\r\nimport FormControl from \"@material-ui/core/FormControl\";\r\nimport InputLabel from \"@material-ui/core/InputLabel\";\r\n\r\nimport CustomInput from \"components/CustomInput/CustomInput.jsx\";\r\nimport { MenuItem, Select } from \"@material-ui/core\";\r\n\r\nclass PhoneInputComponent extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tparamCountryCodeList: [],\r\n\t\t\tparamAreaCodeList: []\r\n\t\t}\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Parameter/Search\",\r\n\t\t\t{\r\n\t\t\t\tParameterCode: \"PhoneCountryCode\",\r\n\t\t\t\tParameterValue: \"\",\r\n\t\t\t\tParameterDesc: \"\"\r\n\t\t\t},\r\n\t\t\tthis.countryCodeCallBack\r\n\t\t);\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Parameter/Search\",\r\n\t\t\t{\r\n\t\t\t\tParameterCode: \"PhoneAreaCode\",\r\n\t\t\t\tParameterValue: \"\",\r\n\t\t\t\tParameterDesc: \"\"\r\n\t\t\t},\r\n\t\t\tthis.areaCodeCallBack\r\n\t\t);\r\n\t}\r\n\r\n\tcountryCodeCallBack = responseData => {\r\n\t\tlet tempParamCountryCodeList = responseData.ParameterList.map(elem => {\r\n\t\t\treturn { Id: elem.Id, Text: elem.ParameterValue };\r\n\t\t});\r\n\t\tthis.setState({\r\n\t\t\tparamCountryCodeList: tempParamCountryCodeList\r\n\t\t});\r\n\r\n\t\tif (tempParamCountryCodeList.length > 0) {\r\n\t\t\tvar value = tempParamCountryCodeList[0].Id;\r\n\r\n\t\t\tif (this.props.valueCountryCode != null && tempParamCountryCodeList.filter(d => d.Id == this.props.valueCountryCode).length > 0)\r\n\t\t\t\tvalue = this.props.valueCountryCode;\r\n\r\n\t\t\tif (this.props.onChange != null)\r\n\t\t\t\tthis.props.onChange(value, this.props.valueAreaCode, this.props.valuePhoneNumber);\r\n\t\t}\r\n\t}\r\n\tareaCodeCallBack = responseData => {\r\n\t\tlet tempParamAreaCodeList = responseData.ParameterList.map(elem => {\r\n\t\t\treturn { Id: elem.Id, Text: elem.ParameterValue, CountryCode: elem.ParameterValue2 };\r\n\t\t});\r\n\r\n\t\tthis.setState({\r\n\t\t\tparamAreaCodeList: tempParamAreaCodeList\r\n\t\t});\r\n\r\n\t\tif (tempParamAreaCodeList.length > 0) {\r\n\t\t\tvar value1 = tempParamAreaCodeList[0].Id;\r\n\r\n\t\t\tif (this.props.valueAreaCode != null && tempParamAreaCodeList.filter(d => d.Id == this.props.valueAreaCode).length > 0)\r\n\t\t\t\tvalue1 = this.props.valueAreaCode;\r\n\r\n\t\t\tif (this.props.onChange != null)\r\n\t\t\t\tthis.props.onChange(this.props.valueCountryCode, value1, this.props.valuePhoneNumber);\r\n\t\t}\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes, inputProps } = this.props;\r\n\t\tconst { paramCountryCodeList, paramAreaCodeList } = this.state;\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t this.props.onChange(\r\n\t\t\t\t\t\t\t\tthis.props.valueWhichPhone,\r\n\t\t\t\t\t\t\t\te.target.value,\r\n\t\t\t\t\t\t\t\tthis.props.valueAreaCode,\r\n\t\t\t\t\t\t\t\tthis.props.valuePhoneNumber)}\r\n\t\t\t\t\t\t\tinputProps={{\r\n\t\t\t\t\t\t\t\tname: \"phoneCountryCode\",\r\n\t\t\t\t\t\t\t\tid: \"phoneCountryCode-select\"\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tCountry Code\r\n \r\n\t\t\t\t\t\t\t{paramCountryCodeList.map(cou => (\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{cou.Text}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t this.props.onChange(\r\n\t\t\t\t\t\t\t\tthis.props.valueWhichPhone,\r\n\t\t\t\t\t\t\t\tthis.props.valueCountryCode,\r\n\t\t\t\t\t\t\t\te.target.value,\r\n\t\t\t\t\t\t\t\tthis.props.valuePhoneNumber)}\r\n\t\t\t\t\t\t\tinputProps={{\r\n\t\t\t\t\t\t\t\tname: \"phoneAreaCode\",\r\n\t\t\t\t\t\t\t\tid: \"phoneAreaCode-select\"\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tArea Code\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{paramAreaCodeList.map(are => (\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{are.Text}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t this.props.onChange(\r\n\t\t\t\t\t\t\t\t\tthis.props.valueWhichPhone,\r\n\t\t\t\t\t\t\t\t\tthis.props.valueCountryCode,\r\n\t\t\t\t\t\t\t\t\tthis.props.valueAreaCode,\r\n\t\t\t\t\t\t\t\t\te.target.value)\r\n\t\t\t\t\t\t}}\r\n\t\t\t\t\t/>\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nPhoneInputComponent.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tinputProps: PropTypes.object\r\n};\r\n\r\nexport default withStyles(cardsDetailStyle)(PhoneInputComponent);\r\n","import PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport { CardMedia, IconButton, Icon, withStyles, Drawer, Hidden } from \"@material-ui/core\";\r\nimport externalContainerStyle from \"assets/jss/material-dashboard-pro-react/layouts/externalContainerStyle.jsx\";\r\nimport cx from \"classnames\";\r\nconst logo = require(\"assets/img/logo-login.svg\");\r\nclass ExternalContainer extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tmobileOpen: false\r\n\t\t};\r\n\r\n\t\tthis.setDrawerState = this.setDrawerState.bind(this);\r\n\r\n\t\tthis.drawerClasses = { paper: {} };\r\n\t\tthis.drawerModalProps = { keepMounted: true };\r\n\t}\r\n\tsetDrawerState(bool) {\r\n\t\tthis.setState({ mobileOpen: bool });\r\n\t}\r\n\tgetdrawerClasses = (classes) => {\r\n\t\tthis.drawerClasses.paper = classes.drawer;\r\n\t\treturn this.drawerClasses;\r\n\t}\r\n\thandleDrawerToggle = (state) => {\r\n\t\tconst { OnClickMenu } = this.props;\r\n\t\tthis.setState({ mobileOpen: (typeof state === \"boolean\") ? state : !this.state.mobileOpen });\r\n\t\tif (state && state.target && state.target.value !== undefined) {\r\n\t\t\tOnClickMenu && OnClickMenu(state);\r\n\t\t}\r\n\t}\r\n\tcomponentDidUpdate(prevProps, prevState) {\r\n\t\tconst { OnDrawerChanged } = this.props;\r\n\t\tif (prevState.mobileOpen != this.state.mobileOpen) {\r\n\t\t\tOnDrawerChanged && OnDrawerChanged(this.state.mobileOpen);\r\n\t\t}\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Title, LeftSideItem, HeaderItem, FooterItem, children, classes, HalfWidth, Base64Logo, Subtitle } = this.props;\r\n\t\tconst { mobileOpen } = this.state;\r\n\t\treturn (<>\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tclose\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t{typeof LeftSideItem === \"function\" ? LeftSideItem() : LeftSideItem}\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{LeftSideItem &&\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tmenu\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{HeaderItem}\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t

{Title}

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t

{Subtitle}

\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t{children}\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t{typeof FooterItem === \"function\" ? FooterItem() : FooterItem}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tPowered By DCBank\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nExternalContainer.defaultProps = {\r\n\tTitle: \"Welcome to DC Bank\",\r\n\tSubtitle: \"\",\r\n\tHalfWidth: true,\r\n\tBase64Logo: null\r\n};\r\nExternalContainer.propTypes = {\r\n\tTitle: PropTypes.string,\r\n\tLeftSideItem: PropTypes.node,\r\n\tHeaderItem: PropTypes.node,\r\n\tFooterItem: PropTypes.node,\r\n\tOnClickMenu: PropTypes.func,\r\n\tOnDrawerChanged: PropTypes.func,\r\n\tchildren: PropTypes.any,\r\n\tHalfWidth: PropTypes.bool,\r\n\tclasses: PropTypes.any\r\n};\r\nexport default withStyles(externalContainerStyle)(ExternalContainer); ","const ParameterLOSPaymentFrequency = {\r\n\tParameterCode: \"LOSPaymentSchedule\"\r\n};\r\n\r\nconst ParameterLOSPaymentMethod = {\r\n\tParameterCode: \"LOSPaymentMethod\"\r\n};\r\n\r\nconst ParameterPaymentOptionFee = {\r\n\tParameterCode: \"LOSPayOption\"\r\n};\r\n\r\nconst ParameterYesNo = {\r\n\tParameterCode: \"LOSYesNo\"\r\n};\r\n\r\nconst ParameterLoanPurpose = {\r\n\tParameterCode: \"LOSLoanPurpose\"\r\n};\r\n\r\nconst ParameterLOSRateOption = {\r\n\tParameterCode: \"LOSRateOption\"\r\n};\r\n\r\nconst ParameterDocumentVerifiedStatusType = {\r\n\tParameterCode: \"LOSVerifiedStatus\"\r\n};\r\n\r\nconst VerifyingPersonParameterCode = {\r\n\tParameterCode: \"IdentityVerifyingPerson\"\r\n};\r\n\r\nconst ParameterDocumentType = {\r\n\tParameterCode: \"LOSDocumentType\"\r\n};\r\n\r\nexport {\r\n\tParameterDocumentType,\r\n\tParameterLOSPaymentFrequency,\r\n\tParameterLOSPaymentMethod,\r\n\tParameterPaymentOptionFee,\r\n\tParameterYesNo,\r\n\tParameterLoanPurpose,\r\n\tParameterLOSRateOption,\r\n\tParameterDocumentVerifiedStatusType,\r\n\tVerifyingPersonParameterCode\r\n};","import { Dialog, DialogContent, DialogTitle, IconButton } from \"@material-ui/core\";\r\nimport CloseIcon from \"@material-ui/icons/Close\";\r\nimport { primaryColor } from \"assets/jss/generic/default\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport PropTypes, { any } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericTitle, GenericAlert, GenericEmailInput, GenericGrid, GenericLabel, GenericRadioInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass ApiUser extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\tisLoading: true,\r\n\t\t\tcustomerList: [],\r\n\t\t\tuserLists: [],\r\n\t\t\tfilteredUserList: [],\r\n\t\t\tapiList: [],\r\n\t\t\topenNewInsertSendCredentials: false,\r\n\t\t\topenSendCredentials: false,\r\n\t\t\topenChangePassword: false,\r\n\t\t\trowIndex: null,\r\n\t\t\tisPasswordDisabled: false,\r\n\t\t\terrorState: false,\r\n\t\t\terrorState2: false,\r\n\t\t\tmaskStatus: false,\r\n\t\t\tsyncCounter: 0\r\n\t\t};\r\n\r\n\t\tthis.props.setAppLeftTitle(\"API User\");\r\n\t\tthis.props.setAppCenterTitle(\"USER ADMIN\");\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tPromise.resolve()\r\n\t\t\t.then(() => this.GetApiList())\r\n\t\t\t.then(() => this.GetCustomerList())\r\n\t\t\t.then(() => this.GetUserList());\r\n\t}\r\n\r\n\r\n\tSelectedRowChange = (index) => {\r\n\t\tconst api = { ...this.state.apiList[index] };\r\n\r\n\t\tapi.UserListValue = api.ParentUserId;\r\n\t\tapi.BankCustomer = api.UniqueClientId;\r\n\r\n\t\tthis.setState({ model: api, rowIndex: index, isPasswordDisabled: false });\r\n\t}\r\n\r\n\tGetCustomerList = (uid = 0) => {\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/BankCustomer/Search\",\r\n\t\t\t{ UniqueClientId: uid, },\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (responseData.Item != null && responseData.Item.length > 0) {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tisLoading: false,\r\n\t\t\t\t\t\tcustomerList: responseData.Item\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tisLoading: false,\r\n\t\t\t\t\t\tcustomerList: []\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tthis.errorCallback\r\n\t\t);\r\n\t}\r\n\r\n\r\n\tFilterUsers = (uniqId) => {\r\n\r\n\t\tlet list = this.state.userLists;\r\n\t\tif (!list) return [];\r\n\t\tlet newList = list.filter((item) => {\r\n\t\t\tlet BankCustomer = uniqId;\r\n\t\t\treturn (BankCustomer != undefined && BankCustomer != null && ((BankCustomer >= 0 && item.UniqueClientId == BankCustomer) || BankCustomer == -1));\r\n\r\n\t\t});\r\n\t\tthis.setState({ filteredUserList: newList });\r\n\t\treturn newList;\r\n\t}\r\n\r\n\tGetApiList = (uniqId = 0, uId = 0) => {\r\n\t\treturn Proxy.POST(\r\n\t\t\t\"/coreapi/v1.0/ApiUser/GetApiUser\",\r\n\t\t\tuId == 0 ? { UniqueClientId: uniqId } : { ParentUserId: uId },\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (responseData.Item != null && responseData.Item.length > 0) {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tisLoading: false,\r\n\t\t\t\t\t\tapiList: responseData.Item\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tisLoading: false,\r\n\t\t\t\t\t\tapiList: []\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tthis.errorCallback\r\n\t\t);\r\n\t}\r\n\r\n\tGetCountry = (id) => {\r\n\t\treturn Proxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Country/GetAll\",\r\n\t\t\t{},\r\n\t\t\tresponseData => {\r\n\t\t\t\tconst model = { ...this.state.model };\r\n\t\t\t\tif (responseData.Item != null && responseData.Item.length > 0) {\r\n\t\t\t\t\tmodel.CountryCode = responseData.Item.find((a) => {\r\n\t\t\t\t\t\treturn a.Id == id;\r\n\t\t\t\t\t}).Code;\r\n\t\t\t\t\tthis.setState({ model });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tthis.errorCallback\r\n\t\t);\r\n\t}\r\n\r\n\tGetUserList = (uid = 0) => {\r\n\t\treturn Proxy.POST(\r\n\t\t\t\"/coreapi/v1.0/User/GetAllByUniqueClientId\",\r\n\t\t\t{ UniqueClientId: uid },\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tconsole.log(\"Error!\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (this.state.syncCounter == 0) {\r\n\t\t\t\t\tthis.setState({ syncCounter: this.state.syncCounter + 1 });\r\n\t\t\t\t\tthis.setState({ filteredUserList: responseData.Item });\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.setState({ userLists: responseData.Item });\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ userLists: [] });\r\n\t\t\t\t}\r\n\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tconsole.log(\"Error!\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\thandleChange = (name, newValue, pureValue) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\r\n\r\n\r\n\t\tif (name == \"PhoneNumber\") {\r\n\t\t\tmodel[\"PureNumber\"] = pureValue;\r\n\t\t}\r\n\t\tif (name == \"NotificationType\") {\r\n\t\t\tmodel.NotificationAddress = \"\";\r\n\t\t}\r\n\t\tif (name == \"BankCustomer\") {\r\n\r\n\t\t\tlet uid = newValue;\r\n\t\t\tif (newValue == -1) {\r\n\t\t\t\tuid = 0;\r\n\t\t\t}\r\n\t\t\tmodel.UserListValue = null;\r\n\t\t\tthis.setState({ rowIndex: null });\r\n\t\t\tPromise.resolve()\r\n\t\t\t\t.then(() => this.GetUserList(uid))\r\n\t\t\t\t.then(() => this.GetApiList(uid))\r\n\t\t\t\t.then(() => this.FilterUsers(newValue));\r\n\r\n\t\t}\r\n\r\n\r\n\t\tif (name == \"UserName\") {\r\n\t\t\tthis.state.rowIndex = -1;\r\n\r\n\t\t}\r\n\t\tif (name == \"UserList\") {\r\n\t\t\tmodel[\"UserListValue\"] = newValue;\r\n\r\n\t\t\tlet temp = newValue;\r\n\t\t\tif (temp == -1) {\r\n\t\t\t\ttemp = 0;\r\n\t\t\t}\r\n\t\t\tmodel.UserId = temp;\r\n\t\t\tthis.GetApiList(0, newValue);\r\n\t\t}\r\n\r\n\t\tif ([\"Password2\"].some((x) => { return x == name; })) {\r\n\r\n\t\t\tif (model.Password != model.Password2) {\r\n\t\t\t\tmodel.errorState = true;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tmodel.errorState = false;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tif ([\"NewPassword2\"].some((x) => { return x == name; })) {\r\n\r\n\t\t\tif (model.NewPassword != model.NewPassword2) {\r\n\t\t\t\tmodel.errorState2 = true;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tmodel.errorState2 = false;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tthis.setState({ model });\r\n\t\tif (name == \"PhoneCountryCodeId\") {\r\n\t\t\tthis.GetCountry(newValue);\r\n\t\t}\r\n\t}\r\n\r\n\thandleSendOk = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tconst maskStatus = this.state.maskStatus;\r\n\t\tconst emailRex = /^(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\r\n\r\n\t\tvar messages = [];\r\n\t\tif (model.NotificationType == undefined) {\r\n\t\t\tmodel.NotificationType = 1;\r\n\t\t\tthis.setState({ model });\r\n\t\t}\r\n\r\n\t\tif (model.NotificationType == 2) {\r\n\t\t\tif (!maskStatus && (!model.PhoneNumber || model.PhoneNumber.length > 0)) messages.push(\"Please fill the Phone Number !!!\");\r\n\t\t\tif (!model.PhoneCountryCodeId) messages.push(\"Please fill the Phone Country !!!\");\r\n\t\t}\r\n\t\tif (model.NotificationType == 1 && !model.NotificationAddress) {\r\n\t\t\tmessages.push(\"Notification Address is empty !!!\");\r\n\t\t}\r\n\r\n\r\n\t\tif ((model.NotificationType == 1) && !emailRex.test(model.NotificationAddress)) messages.push(\"Please enter a valid Email address!!!\");\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn this.showQuestionAlert(\"Are you sure you want to send this credentials via \" + (model.NotificationType == 1 ? \"Email\" : \"Sms\") + \" ?\", \"Send\");\r\n\t\t}\r\n\t}\r\n\r\n\r\n\thandleClickSendOk = () => {\r\n\t\tthis.hideAlert();\r\n\t\tvar model = { ...this.state.model };\r\n\t\tvar newModel = {};\r\n\r\n\t\tnewModel.ApiUsername = model.UserName;\r\n\t\tnewModel.NotificationAddress = model.NotificationType == 1 ? model.NotificationAddress : \"+\" + model.CountryCode + model.PureNumber;\r\n\t\tnewModel.NotificationType = model.NotificationType;\r\n\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/ApiUser/SendApiUserCredentials\",\r\n\t\t\tnewModel,\r\n\t\t\tthis.successSendCallback,\r\n\t\t\tthis.errorCallback\r\n\t\t);\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\r\n\thandleSubmit = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tvar messages = [];\r\n\r\n\t\tif (!model.UserName) messages.push(\"Please Enter a Username !!!\");\r\n\r\n\t\tif (!model.UserListValue) {\r\n\t\t\tmessages.push(\"Please select a valid User!!!\");\r\n\t\t\tif (!model.BankCustomer) messages.push(\"Please select a valid Client!!!\");\r\n\t\t}\r\n\r\n\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.setState({ openNewInsertSendCredentials: true });\r\n\t\t}\r\n\r\n\t}\r\n\r\n\thandleEdit = () => {\r\n\t\tvar messages = [];\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tif (!model.OldPassword) messages.push(\"Please enter old password to required fields!!!\");\r\n\r\n\t\tif (!model.NewPassword2 && !model.NewPassword) messages.push(\"Please enter valid password to required fields!!!\");\r\n\t\tif (model.NewPassword2 != model.NewPassword) messages.push(\"Please enter same password to required fields!!!\");\r\n\r\n\t\tif (messages.length > 0)\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\telse\r\n\t\t\tthis.showQuestionAlert(\"Are you sure you want to change API User password for selected user?\", \"Edit\");\r\n\t}\r\n\r\n\thandleDelete = () => {\r\n\t\tconst rowIndex = this.state.rowIndex;\r\n\t\tif (!rowIndex || rowIndex == \"-1\") {\r\n\t\t\tthis.setState({\r\n\t\t\t\talert: this.hideAlert()} />\r\n\t\t\t});\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.showQuestionAlert(\"Are you sure you want to delete '\" + this.state.apiList[rowIndex].UserName + \"' API user ?\", \"Delete\");\r\n\t\t}\r\n\t}\r\n\thandleSend = () => {\r\n\r\n\t\tconst rowIndex = this.state.rowIndex;\r\n\t\tif (!rowIndex || rowIndex == \"-1\") {\r\n\t\t\tthis.setState({\r\n\t\t\t\talert: this.hideAlert()} />\r\n\t\t\t});\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.setState({ openSendCredentials: true });\r\n\t\t}\r\n\r\n\t}\r\n\r\n\thandleClear = () => {\r\n\t\tthis.showQuestionAlert(\"This will erase the information you entered on the screen. Are you sure you want to do this?\", \"Clear\");\r\n\t}\r\n\r\n\thandleSubmitOk = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tconst maskStatus = this.state.maskStatus;\r\n\t\tconst emailRex = /^(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\r\n\r\n\t\tvar messages = [];\r\n\t\tif (model.NotificationType == undefined) {\r\n\t\t\tmodel.NotificationType = 1;\r\n\t\t\tthis.setState({ model });\r\n\t\t}\r\n\t\tif (model.NotificationType == 2) {\r\n\t\t\tif (!maskStatus && (!model.PhoneNumber || model.PhoneNumber.length > 0)) messages.push(\"Please fill the Phone Number !!!\");\r\n\t\t\tif (!model.PhoneCountryCodeId) messages.push(\"Please fill the Phone Country !!!\");\r\n\t\t}\r\n\t\tif (model.NotificationType == 1 && !model.NotificationAddress) {\r\n\t\t\tmessages.push(\"Notification Address is empty !!!\");\r\n\t\t}\r\n\r\n\t\tif ((model.NotificationType == 1) && !emailRex.test(model.NotificationAddress)) messages.push(\"Please enter a valid Email address!!!\");\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn this.showQuestionAlert(\"API User Credentals will be send over your choice after record created.\\nAre you sure you want to create new API User?\", \"Save\");\r\n\r\n\r\n\r\n\r\n\t}\r\n\thandleUpdate = () => {\r\n\r\n\t\tconst rowIndex = this.state.rowIndex;\r\n\r\n\t\tif (!rowIndex || rowIndex == \"-1\") {\r\n\t\t\tthis.setState({\r\n\t\t\t\talert: this.hideAlert()} />\r\n\t\t\t});\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.setState({ openChangePassword: true });\r\n\t\t}\r\n\r\n\r\n\t}\r\n\r\n\thandleClickSaveOk = () => {\r\n\t\tthis.hideAlert();\r\n\t\tvar model = { ...this.state.model };\r\n\t\tvar newModel = {};\r\n\t\tnewModel.ApiUserName = model.UserName;\r\n\t\tnewModel.ClientId = model.BankCustomer;\r\n\t\tnewModel.UserId = model.UserListValue;\r\n\t\tnewModel.NotificationType = model.NotificationType;\r\n\t\tnewModel.NotificationAddress = model.NotificationType == 1 ? model.NotificationAddress : \"+\" + model.CountryCode + model.PureNumber;\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/ApiUser/CreateApiUser\",\r\n\t\t\tnewModel,\r\n\t\t\tthis.successSaveCallback,\r\n\t\t\tthis.errorCallback\r\n\t\t);\r\n\t}\r\n\r\n\thandleClickEditOk = () => {\r\n\t\tthis.hideAlert();\r\n\t\tvar model = { ...this.state.model };\r\n\t\tlet params = {};\r\n\t\tparams.UserName = model.UserName;\r\n\t\tparams.OldPassword = model.OldPassword;\r\n\t\tparams.NewPassword = model.NewPassword;\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/ApiUser/ChangeApiPassword\",\r\n\t\t\tparams,\r\n\t\t\tthis.successEditCallback,\r\n\t\t\tthis.errorCallback\r\n\t\t);\r\n\t}\r\n\r\n\thandleClickDeleteOk = () => {\r\n\t\tthis.hideAlert();\r\n\t\tlet params = {};\r\n\t\tparams.Id = this.state.model.Id;\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/ApiUser/DeleteApiUser\",\r\n\t\t\tparams,\r\n\t\t\tthis.successDeleteCallback,\r\n\t\t\tthis.errorCallback\r\n\t\t);\r\n\t}\r\n\r\n\r\n\thandleClickClearOk = () => {\r\n\t\tthis.hideAlert();\r\n\t\tthis.setState({ model: any, rowIndex: null });\r\n\t}\r\n\r\n\tsuccessSaveCallback = (responseData) => {\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.showErrorMessage(responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.GetApiList(this.state.model.BankCustomer);\r\n\t\tthis.showSuccessMessage(\"API Saved succesfully !!!\");\r\n\t}\r\n\r\n\r\n\tsuccessEditCallback = (responseData) => {\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.showErrorMessage(responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.showSuccessMessage(\"Password changed succesfully !!!\");\r\n\t}\r\n\r\n\tsuccessDeleteCallback = () => {\r\n\r\n\t\tthis.handleClickClearOk();\r\n\t\tthis.GetApiList();\r\n\t\tthis.showSuccessMessage(\"API User deleted successfully !!!\");\r\n\t}\r\n\tsuccessSendCallback = (responseData) => {\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.showErrorMessage(responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.showSuccessMessage(\"Send Successfully !!!\");\r\n\t}\r\n\terrorCallback = (error) => {\r\n\t\tthis.showErrorMessage(\"An error occurred during the api visit:\" + error);\r\n\t}\r\n\r\n\r\n\r\n\tshowQuestionAlert = (message, title) => {\r\n\t\tif (title == \"Save\") {\r\n\t\t\tthis.setState({\r\n\t\t\t\tisLoading: false,\r\n\t\t\t\talert: this.hideAlert()} OnConfirm={() => this.handleClickSaveOk()} />\r\n\t\t\t});\r\n\t\t}\r\n\t\tif (title == \"Edit\") {\r\n\t\t\tthis.setState({\r\n\t\t\t\talert: this.hideAlert()} OnConfirm={() => this.handleClickEditOk()} />\r\n\t\t\t});\r\n\t\t}\r\n\t\tif (title == \"Delete\") {\r\n\t\t\tthis.setState({\r\n\t\t\t\talert: this.hideAlert()} OnConfirm={() => this.handleClickDeleteOk()} />\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tif (title == \"Clear\") {\r\n\t\t\tthis.setState({\r\n\t\t\t\talert: this.hideAlert()} OnConfirm={() => this.handleClickClearOk()} />\r\n\t\t\t});\r\n\t\t}\r\n\t\tif (title == \"Send\") {\r\n\t\t\tthis.setState({\r\n\t\t\t\talert: this.hideAlert()} OnConfirm={() => this.handleClickSendOk()} />\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\r\n\tshowSuccessMessage = (message) => {\r\n\t\tthis.setState({\r\n\t\t\tisLoading: false,\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\r\n\tshowErrorMessage = (message) => {\r\n\t\tthis.setState({\r\n\t\t\tisLoading: false,\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\r\n\thideAlert = () => {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\tRefreshToolBar = () => {\r\n\t\tthis.setState({ LimitToken: !this.state.LimitToken });\r\n\t}\r\n\thandleClose = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel.NotificationAddress = \"\";\r\n\t\tthis.setState({ model, openChangePassword: false, openNewInsertSendCredentials: false, openSendCredentials: false });\r\n\t}\r\n\r\n\r\n\r\n\r\n\trender() {\r\n\t\tconst { classes, Disabled } = this.props;\r\n\t\tconst { model, isLoading, alert } = this.state;\r\n\r\n\t\tvar data = this.state.apiList ?? [];\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{this.state.openSendCredentials ?\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{!this.state.openSendCredentials ?\r\n\t\t\t\t\t\t\t\t
Please select and enter notification address and we will be send Api Credentials to your address
\r\n\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t
API Credentials information will be send after API Password reset!
\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{model.NotificationType == undefined || model.NotificationType == true\r\n\t\t\t\t\t\t\t\t\t?\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t \"+\" + d.Code + \" (\" + d.Name + \")\"}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tthis.setState({ maskStatus: bool });\r\n\t\t\t\t\t\t\t\t\t\t\t\t}} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\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\t\t\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{row.value == null ? \"\" : row.value}
\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Last Name\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"User.LastName\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{row.value == null ? \"\" : row.value}
\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Username\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"UserName\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Begin Date\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"BeginDate\",\r\n\r\n\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"End Date\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"EndDate\",\r\n\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Password Retry Count\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"PasswordRetryCount\"\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\tRowSelected={index => {\r\n\t\t\t\t\t\t\t\t\t\tthis.SelectedRowChange(index);\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\tSelectedIndex={this.state.rowIndex}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nApiUser.propTypes = {\r\n\ttabList: PropTypes.array,\r\n\tclasses: PropTypes.object.isRequired,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tCustomerSaved: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(ApiUser, {});\t","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericCheckInput, GenericDateInput, GenericGrid, GenericNumberInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent.jsx\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass HolidayDefinition extends Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tvModel: {},\r\n\t\t\tmodel: {},\r\n\t\t\tClientInfo: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tisClearDialogOpen: false,\r\n\t\t\tIsConfirm: false,\r\n\t\t\tsaveConfirmDialog: false,\r\n\t\t\tholidayList: [],\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"National Holidays Definition\");\r\n\t\tthis.props.setAppCenterTitle(\"SYSTEM ADMIN\");\r\n\t}\r\n\r\n\thandleChange = (name, newValue) => {\r\n\t\tthis.setState(function (state) {\r\n\t\t\tvar model = state.model || {};\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\tif (name == \"FilterDate\") {\r\n\t\t\t\tmodel.MonthId = 0;\r\n\t\t\t\tmodel.HolidayYear = 0;\r\n\t\t\t}\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tGetAllHolidayDefinition = () => {\r\n\t\tthis.showLoading();\r\n\t\tProxy.POST(\"/coreapi/v1.0/HolidayDaysDefinition/Search\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tif (responseData.Item != null && responseData.Item.length > 0) {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false, holidayList: responseData.Item || [] });\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false, holidayList: [] });\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t});\r\n\t}\r\n\r\n\tSubmitClick = () => {\r\n\t\tvar model = { ...this.state.model };\r\n\t\tif (!this.Validate(false))\r\n\t\t\treturn;\r\n\t\tthis.setState({\r\n\t\t\tisLoading: false,\r\n\t\t\talert: this.hideAlert()}\r\n\t\t\t\tOnConfirm={() => {\r\n\t\t\t\t\tProxy.POST(\"/coreapi/v1.0/HolidayDaysDefinition/Insert\",\r\n\t\t\t\t\t\tthis.state.model,\r\n\t\t\t\t\t\tresponseData => {\r\n\t\t\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", \"Holiday definition create error : \" + responseData.ErrorDescription);\r\n\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tmodel.Id = responseData.Item;\r\n\t\t\t\t\t\t\tthis.setState({ model });\r\n\t\t\t\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Holiday definition create successfully !!!\");\r\n\t\t\t\t\t\t\tthis.GetAllHolidayDefinition();\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\terror => {\r\n\t\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\t} />\r\n\t\t});\r\n\t}\r\n\r\n\tUpdateClick = () => {\r\n\t\tif (!this.Validate(false))\r\n\t\t\treturn;\r\n\t\tthis.setState({\r\n\t\t\tisLoading: false,\r\n\t\t\talert: this.hideAlert()}\r\n\t\t\t\tOnConfirm={() => {\r\n\t\t\t\t\tProxy.POST(\"/coreapi/v1.0/HolidayDaysDefinition/Update\",\r\n\t\t\t\t\t\tthis.state.model,\r\n\t\t\t\t\t\tresponseData => {\r\n\t\t\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", \"Holiday definition update error : \" + responseData.ErrorDescription);\r\n\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tthis.GetAllHolidayDefinition();\r\n\t\t\t\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Holiday definition update successfully !!!\");\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\terror => {\r\n\t\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\t} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({ isLoading: false, alert: this.hideAlert()} /> });\r\n\t}\r\n\r\n\tSelectedRowChange = (index) => {\r\n\t\tconst tempModel = this.state.holidayList[index];\r\n\t\tvar model = { ...this.state.model };\r\n\t\tmodel = tempModel;\r\n\t\tdelete model.FilterDate;\r\n\t\tdelete model.FilterExplanation;\r\n\t\tdelete model.MonthId;\r\n\t\tdelete model.HolidayYear;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tcloseSaveConfirmDialog = () => {\r\n\t\tthis.setState({ isLoading: false, alert: null, saveConfirmDialog: false })\r\n\t}\r\n\r\n\r\n\r\n\tshowLoading = () => { this.setState({ alert: null, isLoading: true }); }\r\n\thideLoading = () => { this.setState({ alert: null, isLoading: false }); }\r\n\thideCreateTemplate = () => { this.setState({ isCreateTemplate: false }); }\r\n\thideAlert = () => { this.setState({ alert: null, isLoading: false }); }\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({ isLoading: false, alert: this.hideAlert()} /> });\r\n\t}\r\n\r\n\r\n\tClearScreen = () => {\r\n\t\tthis.setState({ model: {}, alert: null, isLoading: false, holidayList: [], vModel: {} });\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tvar model = { ...this.state.model };\r\n\t\tvar vModel = this.state.vModel;\r\n\t\tvar messages = [];\r\n\t\tif (model.Date == null) {\r\n\t\t\tvModel.Date = true;\r\n\t\t\tmessages.push(\"Date can not be null.\");\r\n\t\t}\r\n\t\telse { vModel.Date = false; }\r\n\t\tif (model.Explanation == null || model.Explanation == \"\") {\r\n\t\t\tvModel.Explanation = true;\r\n\t\t\tmessages.push(\"Explanation can not be null.\");\r\n\t\t}\r\n\t\telse { vModel.Explanation = false }\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tthis.setState({ vModel });\r\n\t\treturn true;\r\n\t}\r\n\r\n\thandleDelete = () => {\r\n\t\tthis.setState({\r\n\t\t\tisLoading: false,\r\n\t\t\talert: this.hideAlert()}\r\n\t\t\t\tOnConfirm={() => {\r\n\t\t\t\t\tProxy.POST(\"/coreapi/v1.0/HolidayDaysDefinition/Delete\",\r\n\t\t\t\t\t\t{ Id: this.state.model.Id },\r\n\t\t\t\t\t\tresponseData => {\r\n\t\t\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tthis.ClearScreen();\r\n\t\t\t\t\t\t\tthis.GetAllHolidayDefinition();\r\n\t\t\t\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Holiday definition deleted successfully !!!\");\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\terror => {\r\n\t\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\t} />\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, isLoading, alert, vModel } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t

Create Panel

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t

Filter Panel

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t

Holiday List

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t
{row.value == true ? \"Yes\" : \"No\"}
\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\tRowSelected={index => {\r\n\t\t\t\t\t\t\t\tthis.SelectedRowChange(index);\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\tSelectedIndex={this.state.rowIndex}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nHolidayDefinition.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool,\r\n\tValueChanged: PropTypes.func,\r\n\tmodel: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(HolidayDefinition, {});","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport { EditIcon } from \"core/Icons\";\r\nimport PropTypes, { any } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericAlert, GenericDialog, GenericDialogActions, GenericEmailInput, GenericGrid, GenericLabel, GenericRadioInput, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ToolbarButton from \"views/Components/ToolbarButton\";\r\n\r\nclass SFTPUser extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\tisLoading: true,\r\n\t\t\tuserLists: [],\r\n\t\t\tfilteredUserLists: [],\r\n\t\t\tsftpList: [],\r\n\t\t\tcustomerList: [],\r\n\t\t\topenDialog: false,\r\n\t\t\topenPassword: false,\r\n\t\t\topenChangePassword: false,\r\n\t\t\trowIndex: -1,\r\n\t\t\tisPasswordDisabled: false,\r\n\t\t\tmaskStatus: false,\r\n\t\t\tpromiseList: []\r\n\t\t};\r\n\t\tthis.props.setAppLeftTitle(\"SFTP User\");\r\n\t\tthis.props.setAppCenterTitle(\"USER ADMIN\");\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\r\n\t\tvar promises = [];\r\n\t\tpromises.push(this.GetSftpList());\r\n\t\tpromises.push(this.GetCustomerList());\r\n\t\tpromises.push(this.GetUserList());\r\n\r\n\t\tPromise.all(promises).finally(a => {\r\n\t\t\tthis.setState({ filteredUserLists: this.state.userLists, isLoading: false });\r\n\t\t});\r\n\t}\r\n\r\n\r\n\tSelectedRowChange = (index) => {\r\n\t\tconst sftp = { ...this.state.sftpList[index] };\r\n\r\n\t\tsftp.BankCustomer = sftp.UniqueClientId;\r\n\t\tsftp.UserList = sftp.User.Id;\r\n\r\n\t\tthis.setState({ model: sftp, rowIndex: index, isPasswordDisabled: false });\r\n\t}\r\n\r\n\tGetSftpList = (uid = 0, uniqId = 0) => {\r\n\t\treturn Proxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Sftp/GetAllSftpUsers\",\r\n\t\t\t{\r\n\t\t\t\tUserId: uid,\r\n\t\t\t\tUniqueClientId: uniqId\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (responseData.Item != null && responseData.Item.length > 0) {\r\n\t\t\t\t\tthis.setState({ sftpList: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.setState({ sftpList: [] });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tthis.errorCallback\r\n\t\t);\r\n\t}\r\n\tGetCustomerList = (uid = 0) => {\r\n\t\treturn Proxy.POST(\r\n\t\t\t\"/bankapi/v1.0/BankCustomer/Search\",\r\n\t\t\t{ UniqueClientId: uid, },\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (responseData.Item != null && responseData.Item.length > 0) {\r\n\t\t\t\t\tthis.setState({ customerList: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.setState({ customerList: [] });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tthis.errorCallback\r\n\t\t);\r\n\t}\r\n\r\n\tGetUserList = (uid = 0) => {\r\n\t\treturn Proxy.POST(\r\n\t\t\t\"/coreapi/v1.0/User/GetAllByUniqueClientId\",\r\n\t\t\t{ UniqueClientId: uid },\r\n\t\t\t(responseData) => {\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tconsole.log(\"Error!\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.setState({ userLists: responseData.Item });\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ userLists: [] });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tconsole.log(\"Error!\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tFilterUserList = (uniqId = 0) => {\r\n\t\tvar filteredUserLists = this.state.userLists;\r\n\r\n\t\tif (uniqId != 0) {\r\n\t\t\tfilteredUserLists = filteredUserLists.filter((a) => {\r\n\t\t\t\treturn a.UniqueClientId == uniqId;\r\n\t\t\t});\r\n\t\t}\r\n\r\n\r\n\t\tthis.setState({ filteredUserLists });\r\n\t}\r\n\thandleChange = (name, newValue, pureValue) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\r\n\t\tif (name == \"PhoneNumber\") {\r\n\t\t\tmodel[\"PureNumber\"] = pureValue;\r\n\t\t}\r\n\r\n\t\tif (name == \"BankCustomer\") {\r\n\r\n\t\t\tlet uid = newValue;\r\n\t\t\tif (newValue == -1) {\r\n\t\t\t\tuid = 0;\r\n\t\t\t}\r\n\t\t\tthis.FilterUserList(uid);\r\n\t\t\tthis.GetSftpList(0, model.BankCustomer);\r\n\t\t}\r\n\r\n\r\n\t\tif (name == \"UserName\") {\r\n\t\t\tthis.state.rowIndex = -1;\r\n\r\n\t\t}\r\n\t\tif (name == \"UserList\") {\r\n\t\t\tlet temp = newValue;\r\n\t\t\tif (temp == -1) {\r\n\t\t\t\ttemp = 0;\r\n\t\t\t}\r\n\t\t\tmodel.UserId = temp;\r\n\t\t\tthis.GetSftpList(newValue);\r\n\r\n\t\t}\r\n\r\n\t\tthis.setState({ model });\r\n\t\tif (name == \"PhoneCountryCodeId\") {\r\n\t\t\tthis.GetCountry(newValue);\r\n\t\t}\r\n\t}\r\n\r\n\r\n\r\n\thandleClickSendOk = () => {\r\n\t\tthis.hideAlert();\r\n\t\tvar model = { ...this.state.model };\r\n\t\tvar newModel = {};\r\n\t\tnewModel.SftpUsername = model.UserName;\r\n\t\tnewModel.NotificationAddress = model.NotificationType == 1 ? model.NotificationAddress : \"+\" + model.CountryCode + model.PureNumber;\r\n\t\tnewModel.NotificationType = model.NotificationType;\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Sftp/SendSftpCredentals\",\r\n\t\t\tnewModel,\r\n\t\t\tthis.successSendCallback,\r\n\t\t\tthis.errorCallback\r\n\t\t).finally(() => {\r\n\t\t\tthis.setState({ isLoading: false });\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\r\n\thandleSubmit = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tconst sftpList = { ...this.state.sftpList };\r\n\t\tvar messages = [];\r\n\r\n\t\tif (!model.UserName) messages.push(\"UserName is empty !!!\");\r\n\t\tif (!model.UserList) messages.push(\"Please select a user!!!\");\r\n\r\n\t\tif (model.UserList) {\r\n\t\t\tfor (let x in sftpList) {\r\n\r\n\t\t\t\tif (model.UserName == sftpList[x].Username) {\r\n\t\t\t\t\tmessages.push(\"'\" + sftpList[x].Username + \"' is already exist !!! Please change and try again.\");\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.showQuestionAlert(\"Are you sure you want to create new SFTP user for selected user?\", \"Save\");\r\n\t\t}\r\n\r\n\t}\r\n\thandleEdit = () => {\r\n\t\tvar messages = [];\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tif (model.NewPassword2 != model.NewPassword) messages.push(\"Please enter same password to required fields!!!\");\r\n\r\n\t\tif (messages.length > 0)\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\telse\r\n\t\t\tthis.showQuestionAlert(\"Are you sure you want to change SFTP user password for selected user?\", \"Edit\");\r\n\t}\r\n\r\n\thandleDelete = () => {\r\n\t\tconst rowIndex = this.state.rowIndex;\r\n\t\tif (!rowIndex || rowIndex == -1) {\r\n\t\t\tthis.setState({\r\n\t\t\t\talert: this.hideAlert()} />\r\n\t\t\t});\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.showQuestionAlert(\"Are you sure you want to delete '\" + this.state.sftpList[rowIndex].UserName + \"' SFTP user ?\", \"Delete\");\r\n\t\t}\r\n\t}\r\n\r\n\thandleClear = () => {\r\n\t\tthis.showQuestionAlert(\"This will erase the information you entered on the screen. Are you sure you want to do this?\", \"Clear\");\r\n\t}\r\n\r\n\thandleClickSaveOk = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tthis.hideAlert();\r\n\t\tvar model = { ...this.state.model };\r\n\t\tvar newModel = {};\r\n\t\tnewModel.SftpUsername = model.UserName;\r\n\t\tnewModel.SftpUserId = model.UserList;\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Sftp/CreateSftpUser\",\r\n\t\t\tnewModel,\r\n\t\t\tthis.successSaveCallback,\r\n\t\t\tthis.errorCallback\r\n\t\t).finally(() => {\r\n\t\t\tthis.setState({ isLoading: false });\r\n\t\t});\r\n\t}\r\n\r\n\thandleClickEditOk = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tthis.hideAlert();\r\n\t\tvar model = { ...this.state.model };\r\n\t\tlet params = {};\r\n\t\tparams.SftpUsername = model.UserName;\r\n\t\tparams.SftpPassword = model.NewPassword;\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Sftp/SetSftpPassword\",\r\n\t\t\tparams,\r\n\t\t\tthis.successEditCallback,\r\n\t\t\tthis.errorCallback\r\n\t\t).finally(() => {\r\n\t\t\tthis.setState({ isLoading: false });\r\n\t\t});\r\n\t}\r\n\r\n\thandleClickDeleteOk = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tthis.hideAlert();\r\n\t\tlet params = {};\r\n\t\tparams.SftpUsername = this.state.model.UserName;\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Sftp/DeleteSftpUser/\",\r\n\t\t\tparams,\r\n\t\t\tthis.successDeleteCallback,\r\n\t\t\tthis.errorCallback\r\n\t\t).finally(() => {\r\n\t\t\tthis.setState({ isLoading: false });\r\n\t\t});\r\n\t}\r\n\r\n\r\n\thandleClickClearOk = () => {\r\n\t\tthis.hideAlert();\r\n\t\tthis.setState({ model: any, rowIndex: null });\r\n\t}\r\n\r\n\tsuccessSaveCallback = (responseData) => {\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.showErrorMessage(responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.GetSftpList();\r\n\t\tthis.insertSuccessCallback(responseData);\r\n\t\tthis.showSuccessMessage(\"Saved succesfully !!!\");\r\n\t}\r\n\r\n\r\n\tsuccessEditCallback = (responseData) => {\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.showErrorMessage(responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.GetSftpList();\r\n\t\tthis.showSuccessMessage(\"Edited succesfully !!!\");\r\n\t}\r\n\r\n\tsuccessDeleteCallback = () => {\r\n\t\tthis.handleClickClearOk();\r\n\t\tthis.GetSftpList();\r\n\t\tthis.showSuccessMessage(\"SFTP User deleted successfully !!!\");\r\n\t}\r\n\tsuccessSendCallback = () => {\r\n\t\tthis.showSuccessMessage(\"Send Successfully !!!\");\r\n\t}\r\n\terrorCallback = (error) => {\r\n\t\tthis.showErrorMessage(\"An error occurred during the api visit\" + error);\r\n\t}\r\n\r\n\tinsertSuccessCallback = (responseData) => {\r\n\t\tvar model = { ...this.state.model };\r\n\t\tmodel.newSftpPassword = responseData.Item.SftpPassword;\r\n\t\tif (responseData.Item != null)\r\n\t\t\tthis.setState({ model, openPassword: true, });\r\n\t}\r\n\r\n\r\n\tshowQuestionAlert = (message, title) => {\r\n\t\tif (title == \"Save\") {\r\n\t\t\tthis.setState({\r\n\t\t\t\tisLoading: false,\r\n\t\t\t\talert: this.hideAlert()} OnConfirm={() => this.handleClickSaveOk()} />\r\n\t\t\t});\r\n\t\t}\r\n\t\tif (title == \"Edit\") {\r\n\t\t\tthis.setState({\r\n\t\t\t\talert: this.hideAlert()} OnConfirm={() => this.handleClickEditOk()} />\r\n\t\t\t});\r\n\t\t}\r\n\t\tif (title == \"Delete\") {\r\n\t\t\tthis.setState({\r\n\t\t\t\talert: this.hideAlert()} OnConfirm={() => this.handleClickDeleteOk()} />\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tif (title == \"Clear\") {\r\n\t\t\tthis.setState({\r\n\t\t\t\talert: this.hideAlert()} OnConfirm={() => this.handleClickClearOk()} />\r\n\t\t\t});\r\n\t\t}\r\n\t\tif (title == \"Send\") {\r\n\t\t\tthis.setState({\r\n\t\t\t\talert: this.hideAlert()} OnConfirm={() => this.handleClickSendOk()} />\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\r\n\tshowSuccessMessage = (message) => {\r\n\t\tthis.setState({\r\n\t\t\tisLoading: false,\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\r\n\tshowErrorMessage = (message) => {\r\n\t\tthis.setState({\r\n\t\t\tisLoading: false,\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\r\n\thideAlert = () => {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\tRefreshToolBar = () => {\r\n\t\tthis.setState({ LimitToken: !this.state.LimitToken });\r\n\t}\r\n\r\n\thandleClose = () => {\r\n\t\tthis.setState({ openDialog: false, openPassword: false, openChangePassword: false });\r\n\t}\r\n\thandleSend = () => {\r\n\r\n\t\tif (!this.state.rowIndex || this.state.rowIndex <= -1) {\r\n\t\t\tthis.setState({\r\n\t\t\t\talert: this.hideAlert()} />\r\n\t\t\t});\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.setState({ openDialog: true });\r\n\t\t}\r\n\r\n\r\n\t}\r\n\thandleBooleanChange = (name, value) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = JSON.parse(value);\r\n\t\tif (name == \"NotificationType\") {\r\n\t\t\tmodel.NotificationAddress = \"\";\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\r\n\t}\r\n\r\n\thandleSendClick = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tconst emailRex = /^(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\r\n\t\tconst maskStatus = this.state.maskStatus;\r\n\r\n\t\tvar messages = [];\r\n\t\tif (model.NotificationType == undefined) {\r\n\t\t\tmodel.NotificationType = 1;\r\n\t\t\tthis.setState({ model });\r\n\t\t}\r\n\r\n\t\tif (model.NotificationType == 2) {\r\n\t\t\tif (!maskStatus && (!model.PhoneNumber || model.PhoneNumber.length > 0)) messages.push(\"Please fill the Phone Number !!!\");\r\n\t\t\tif (!model.PhoneCountryCodeId) messages.push(\"Please fill the Phone Country !!!\");\r\n\t\t}\r\n\t\tif (model.NotificationType == 1 && !model.NotificationAddress) {\r\n\t\t\tmessages.push(\"Notification Address is empty !!!\");\r\n\t\t}\r\n\r\n\t\tif ((model.NotificationType == 1) && !emailRex.test(model.NotificationAddress)) messages.push(\"Please enter a valid Email address!!!\");\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn this.state.openDialog && this.showQuestionAlert(\"Are you sure you want to send this credentials via \" + (model.NotificationType == 1 ? \"Email\" : \"Sms\") + \" ?\", \"Send\");\r\n\t}\r\n\tOpenEditModal = (item) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel.UserName = item.UserName;\r\n\r\n\t\tthis.setState({ model, openChangePassword: true });\r\n\t}\r\n\r\n\tGetCountry = (id) => {\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Country/GetAll\",\r\n\t\t\t{},\r\n\t\t\tresponseData => {\r\n\t\t\t\tconst model = { ...this.state.model };\r\n\t\t\t\tif (responseData.Item != null && responseData.Item.length > 0) {\r\n\t\t\t\t\tmodel.CountryCode = responseData.Item.find((a) => {\r\n\t\t\t\t\t\treturn a.Id == id;\r\n\t\t\t\t\t}).Code;\r\n\t\t\t\t\tthis.setState({ model });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tthis.errorCallback\r\n\t\t);\r\n\t}\r\n\trender() {\r\n\t\tconst { classes, Disabled } = this.props;\r\n\t\tconst { model, isLoading, alert, filteredUserLists } = this.state;\r\n\r\n\t\tvar data = !this.state.sftpList ? [] : this.state.sftpList.map(item => {\r\n\t\t\treturn {\r\n\t\t\t\tActions: (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t this.OpenEditModal(item)}>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tFirstName: item.User.FirstName ?? \"\",\r\n\t\t\t\tLastName: item.User.LastName ?? \"\",\r\n\t\t\t\tUserEmail: item.User.UserEmail ?? \"\",\r\n\t\t\t\tUserName: item.UserName ?? \"\",\r\n\t\t\t\tServerFullPath: item.ServerFullPath ?? \"\"\r\n\t\t\t};\r\n\t\t});\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{model.NotificationType == undefined || model.NotificationType == true\r\n\t\t\t\t\t\t\t\t\t\t?\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t \"+\" + d.Code + \" (\" + d.Name + \")\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.setState({ maskStatus: bool });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}} />\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t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t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
{this.state.columnTitle1}
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t d.Name} />\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{row.value == null ? \"\" : row.value}
\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Last Name\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"LastName\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{row.value == null ? \"\" : row.value}
\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"User E-Mail\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"UserEmail\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"SFTP User Name\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"UserName\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Server Full Path\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ServerFullPath\"\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t//todo add \r\n\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\tRowSelected={index => {\r\n\t\t\t\t\t\t\t\t\t\tthis.SelectedRowChange(index);\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\tSelectedIndex={this.state.rowIndex}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nSFTPUser.propTypes = {\r\n\ttabList: PropTypes.array,\r\n\tclasses: PropTypes.object.isRequired,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tCustomerSaved: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(SFTPUser, {});\t","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport {Proxy, withArtifex} from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport {GenericAlert, GenericGrid} from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport {ProgramCodes, GridColumnType} from \"views/Constants/Constant.js\";\r\nimport Button from \"../../components/CustomButtons/Button\";\r\n\r\nclass CaaS extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n\r\n this.state = {\r\n list: [],\r\n model: this.initialModel,\r\n isLoading: false,\r\n vModel: {},\r\n IsInsertOp: false,\r\n CaaSLinkProd: \"\",\r\n };\r\n\r\n this.maxLength1 = {maxLength: 1};\r\n }\r\n\r\n ShowMessage = (type, title, message) => {\r\n // type:-success->warning->info->error\r\n this.setState({\r\n alert: this.hideAlert()}/>\r\n });\r\n this.setState({isLoading: false});\r\n }\r\n hideAlert = () => {\r\n this.setState({\r\n alert: null,\r\n isLoading: false\r\n });\r\n }\r\n\r\n RedirectToCaas(url) {\r\n window.open(url, \"_blank\");\r\n }\r\n\r\n GetRedirectLinkForCaaS() {\r\n Proxy.GET(\"/coreapi/v1.0/caas/GetRedirectUrl\",\r\n responseData => {\r\n if (!responseData.IsSucceeded) {\r\n this.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n return;\r\n } else {\r\n this.setState({CaaSLinkProd: responseData.Item});\r\n this.setState({isLoading: false});\r\n\r\n return;\r\n }\r\n },\r\n errorMessage => {\r\n this.ShowMessage(\"error\", \"CaaS error\", errorMessage);\r\n return;\r\n });\r\n }\r\n\r\n componentDidMount() {\r\n this.props.setAppLeftTitle(\"CaaS Links\");\r\n this.props.setAppCenterTitle(\"Programs\");\r\n this.setState({isLoading: true});\r\n this.GetRedirectLinkForCaaS();\r\n }\r\n\r\n render() {\r\n const {alert, model, list, isLoading, index} = this.state;\r\n\r\n return (\r\n
\r\n \r\n {alert}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\nCaaS.propTypes = {\r\n classes: PropTypes.object,\r\n setAppLeftTitle: PropTypes.func,\r\n setAppCenterTitle: PropTypes.func,\r\n Disabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(CaaS, {});","import { DialogContent, DialogTitle, IconButton } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { ApproveIcon, CredentialIcon, DeleteIcon, EditIcon, ProfileIcon, SubmitOrSendIcon, WalletIcon } from \"core/Icons\";\r\nimport MenuAuthorityRightHelper from \"core/MenuAuthorityRightHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport Select from \"react-select\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericDialog, GenericDialogActions, GenericEmailInput, GenericExpansionPanel, GenericGrid, GenericIcon, GenericLabel, GenericNumberInput, GenericRadioInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { CustomerStatus, MenuCodes, ProgramCodes } from \"views/Constants/Constant.js\";\r\nimport { GetColumns } from \"views/Customer/CustomerColumns\";\r\nimport CustomerDefinition from \"views/Customer/CustomerDefinition\";\r\nimport WalletCustomerDetails from \"views/Customer/WalletCustomerDetails\";\r\nimport { DetailIcon } from \"../../core/Icons\";\r\n\r\nclass CustomerList extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.isClient = ClientHelper.IsClient();\r\n\t\tthis.isCallCenter = this.props.MenuCode === MenuCodes.CallCenter_CustomerList || this.props.MenuCode === \"CALWCL\";\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: this.isClient ? ClientHelper.GetClientRowId() : -1,\r\n\t\t\tProgramId: this.ForWallet ? 5 : null\r\n\t\t};\r\n\r\n\t\tthis.WalletCustomerDetail = {\r\n\t\t\taccountList: [],\r\n\t\t\tcardList: []\r\n\t\t};\r\n\r\n\t\tthis.ForBillPayment = false;\r\n\t\tthis.ForWallet = false;\r\n\r\n\t\tthis.state = {\r\n\t\t\talert: null,\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tselectedCustomer: null,\r\n\t\t\trowModel: { ...this.initialModel },\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tisUpdateUserDialogOpen: false,\r\n\t\t\tisWalletCustomerDetailDialogOpen: false,\r\n\t\t\tisCustomerWalletDetailDialogOpen: false,\r\n\t\t\tautoDepositInsertDialogOpen: false,\r\n\t\t\tisConfirmDeleteDialogOpen: false,\r\n\t\t\tisDownloadDialogOpen: false,\r\n\t\t\tdirectDepositRegistrationId: 0,\r\n\t\t\tgridButtonRightDetail: [],\r\n\t\t\tcustomerDetail: { ...this.WalletCustomerDetail }\r\n\t\t};\r\n\r\n\t\tthis.trxTable = React.createRef();\r\n\t\tthis.MenuAuthorityRightHelper = new MenuAuthorityRightHelper();\r\n\r\n\t\tthis.parameterClientType = {\r\n\t\t\tParameterCode: \"ClientType\",\r\n\t\t\tParameterValue3: \"D\"\r\n\t\t};\r\n\r\n\t\tthis.parameterUserStatus = {\r\n\t\t\tParameterCode: \"UserStatus\",\r\n\t\t\tParameterValue2: \"1\"\r\n\t\t};\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: this.isClient ? ClientHelper.GetClientId() : undefined\r\n\t\t};\r\n\r\n\t\tthis.parameterClient = {};\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\r\n\t\tconst DefinitionColumns = GetColumns(this.props, this.state);\r\n\r\n\t\tconst ListColumns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t this.ToggleCustomerDetail(row.original)} />\r\n\t\t\t\t\t\t{row.original.CustomerStatus && row.original.CustomerStatus.ParameterValue === CustomerStatus.Active &&\r\n\t\t\t\t\t\t\t { this.HandleChangeActiveStatus(row.original); }} />\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t{row.original.CustomerStatus && row.original.CustomerStatus.ParameterValue !== CustomerStatus.Active &&\r\n\t\t\t\t\t\t\t { this.HandleChangeActiveStatus(row.original); }} />\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t this.ShowConfirmMessage(\"warning\", \"Warning\", \"Are you sure you want to resend login information? This process will reset the previous password of the user!\", () => this.HandleSendUserCredentialEmail(row.original))} />\r\n\t\t\t\t\t\t { this.HandleReSendWalletAccountEmail(row.original); }} />\r\n\t\t\t\t\t\t { this.HandleSendSecurityAccountEmail(row.original); }} />\r\n\t\t\t\t\t\t this.ToggleEditUserModel(row.original)} />\r\n\r\n\t\t\t\t\t\t{this.ForWallet &&\r\n\t\t\t\t\t\t\t { this.HandleCustomerWalletDialogOpen(row.original); }} />}\r\n\r\n\t\t\t\t\t\t { this.OpenAutodepositInsert(row.original); }} />\r\n\t\t\t\t\t\t { this.handleDelete(row.original.DirectDepositRegistrationId); }} />\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\twidth: 210\r\n\t\t\t}];\r\n\r\n\t\tthis.ColumnsData = [...ListColumns, ...DefinitionColumns];\r\n\t}\r\n\r\n\thandleDelete = (id) => {\r\n\t\tif (id == null || id == 0)\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Record is invalid !\");\r\n\r\n\t\tthis.setState({ isConfirmDeleteDialogOpen: true, directDepositRegistrationId: id });\r\n\t}\r\n\r\n\tconfirmDelete = () => {\r\n\t\tthis.hideAlert();\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tProxy.POST(\"/bankapi/v1.0/BankInteracETransfer/DeleteDirectDepositRegistration\",\r\n\t\t\tthis.state.directDepositRegistrationId,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.hideAlert();\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", \"An error occurred while interac request \" + responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Interac User deleted successfully.\");\r\n\t\t\t\tthis.hideAlert();\r\n\t\t\t},\r\n\t\t\te => {\r\n\t\t\t\tthis.hideAlert();\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", \"An error occurred while interac request \");\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle, MenuCode } = this.props;\r\n\r\n\t\tswitch (MenuCode) {\r\n\t\t\tcase MenuCodes.Bill_CustomerList:\r\n\t\t\t\tif (setAppLeftTitle) setAppLeftTitle(\"Customer List\");\r\n\t\t\t\tif (setAppCenterTitle) setAppCenterTitle(\"BILL PAYMENT\");\r\n\t\t\t\tthis.ForBillPayment = true;\r\n\t\t\t\tbreak;\r\n\t\t\tcase MenuCodes.CallCenter_CustomerList:\r\n\t\t\t\tif (setAppLeftTitle) setAppLeftTitle(\"Customer List\");\r\n\t\t\t\tif (setAppCenterTitle) setAppCenterTitle(\"CALL CENTER\");\r\n\t\t\t\tthis.GetGridButtonsRight();\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"CWLCUL\":\r\n\t\t\tcase \"BWLCUL\":\r\n\t\t\t\tif (setAppLeftTitle) setAppLeftTitle(\"Wallet Customer List\");\r\n\t\t\t\tthis.ForWallet = true;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"CALWCL\":\r\n\t\t\t\tif (setAppLeftTitle) setAppLeftTitle(\"Wallet Customer List\");\r\n\t\t\t\tthis.ForWallet = true;\r\n\t\t\t\tthis.GetWalletGridButtonsRight();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tif (setAppLeftTitle) setAppLeftTitle(\"Customer List\");\r\n\t\t\t\tif (setAppCenterTitle) setAppCenterTitle(\"CUSTOMER SYSTEM\");\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleRowChange = (name, newValue, data) => {\r\n\t\tconst rowModel = { ...this.state.rowModel };\r\n\t\trowModel[\"User\"][name] = newValue;\r\n\t\tthis.setState({ rowModel });\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\r\n\tValueChangedForAutodeposit = (name, value, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\r\n\t\tif (name == \"InteracAccount\") {\r\n\t\t\tmodel[\"DirectDepositSourceAccountId\"] = data.Id;\r\n\t\t}\r\n\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tconst { model } = { ...this.state };\r\n\t\tif (this.ForWallet) model.ProgramId = 5;\r\n\t\tthis.setState(state => ({ trxGridToken: !state.trxGridToken, loadingCompleted: true, model, alert: null }));\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel } });\r\n\t}\r\n\r\n\tHandleCustomerWalletDialogOpen = async (customerData) => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tconst { customerDetail } = this.state;\r\n\t\tvar result = await ExecuteApiPost(\"/prepaidapi/v1.0/Wallet/Search\", { CustomerNumber: customerData.CustomerNumber });\r\n\t\tif (result != null) {\r\n\t\t\tcustomerDetail.accountList = result.AccountList;\r\n\t\t\tcustomerDetail.cardList = result.CardList;\r\n\t\t\tthis.setState({ customerDetail, isWalletCustomerDetailDialogOpen: true });\r\n\r\n\t\t}\r\n\t}\r\n\r\n\tHandleChangeActiveStatus = (model) => {\r\n\t\tthis.ShowConfirmMessage(\"warning\", \"Warning\",\r\n\t\t\tmodel.CustomerStatus.ParameterValue === CustomerStatus.Active ?\r\n\t\t\t\t\"Are you sure you want to change the customer's status to inactive?\" :\r\n\t\t\t\t\"Are you sure you want to change the customer's status to active?\", () => {\r\n\t\t\t\t\tthis.setState({ alert: null, isLoading: true });\r\n\t\t\t\t\tProxy.POST(\r\n\t\t\t\t\t\t\"/bankapi/v1.0/ClientCustomer/ChangeActiveStatus\",\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tUniqueClientId: model.UniqueClientId,\r\n\t\t\t\t\t\t\tClientCustomerId: model.Id\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\tresponseData => {\r\n\t\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif (responseData.Item) {\r\n\t\t\t\t\t\t\t\tthis.ShowConfirmMessage(\"success\", \"Success\", \"Operation is successfully!\", this.HandleSearch, false);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", \"An error occurred during the change of the customer's active status\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\tthis.ErrorCallback\r\n\t\t\t\t\t);\r\n\t\t\t\t});\r\n\t}\r\n\r\n\tHandleSendUserCredentialEmail = (model) => {\r\n\t\tthis.setState({ alert: null, isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/ClientCustomer/SendUserCredentialEmail\",\r\n\t\t\t{\r\n\t\t\t\tClientCustomerId: model.Id\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Operation is successfully!\");\r\n\t\t\t},\r\n\t\t\tthis.ErrorCallback\r\n\t\t);\r\n\t}\r\n\r\n\tHandleReSendWalletAccountEmail = (model) => {\r\n\t\tthis.setState({ alert: null, isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/ClientCustomer/SendWalletAccountEmail\",\r\n\t\t\t{\r\n\t\t\t\tUniqueClientId: model.UniqueClientId,\r\n\t\t\t\tClientCustomerId: model.Id,\r\n\t\t\t\tPrograms: model.Programs\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Operation is successfully!\");\r\n\t\t\t},\r\n\t\t\tthis.ErrorCallback\r\n\t\t);\r\n\t}\r\n\r\n\tHandleSendSecurityAccountEmail = (model) => {\r\n\t\tthis.setState({ alert: null, isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/ClientCustomer/SendSecurityAccountEmail\",\r\n\t\t\t{\r\n\t\t\t\tUniqueClientId: model.UniqueClientId,\r\n\t\t\t\tClientCustomerId: model.Id\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Operation is successfully!\");\r\n\t\t\t},\r\n\t\t\tthis.ErrorCallback\r\n\t\t);\r\n\t}\r\n\r\n\tToggleEditUserModel = (rowModel) => {\r\n\t\tthis.setState({ isUpdateUserDialogOpen: !this.state.isUpdateUserDialogOpen, rowModel });\r\n\t}\r\n\r\n\tHandleEditUser = () => {\r\n\t\tconst { isUpdateUserDialogOpen, rowModel } = this.state;\r\n\r\n\t\tthis.setState({\r\n\t\t\tisUpdateUserDialogOpen: !isUpdateUserDialogOpen,\r\n\t\t\trowModel,\r\n\t\t\tisLoading: true\r\n\t\t});\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/ClientCustomer/UpdateUser\",\r\n\t\t\t{\r\n\t\t\t\tClientCustomerId: rowModel.Id,\r\n\t\t\t\tEmail: rowModel.User.Email,\r\n\t\t\t\tUserStatusId: rowModel.User.UserStatusId,\r\n\t\t\t\tExpDateOfId: rowModel.User.ExpDateOfId\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Operation is successfully!\");\r\n\t\t\t},\r\n\t\t\tthis.ErrorCallback\r\n\t\t);\r\n\t}\r\n\r\n\tToggleCustomerDetail = (rowModel) => {\r\n\t\tthis.setState({ isCustomerDetailDialogOpen: !this.state.isCustomerDetailDialogOpen, rowModel });\r\n\t}\r\n\r\n\tExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.accessor != \"Actions\" && c.accessor != \"ED\" && (c.show == undefined || c.show)) {\r\n\t\t\t\ttrxColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: trxColumns, ExportSelectedColumns: trxColumns });\r\n\t}\r\n\r\n\tExportDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\r\n\t\tconst temp = { ...this.state.model };\r\n\r\n\t\tvar jsonColList = [];\r\n\r\n\t\tvar trxColumns = {};\r\n\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\ttrxColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t});\r\n\t\tjsonColList.push(trxColumns);\r\n\r\n\t\tvar mytitle = \"Client Customer List\";\r\n\r\n\t\ttemp.jsonFile = {\r\n\t\t\tcolmns: jsonColList,\r\n\t\t\tformat: this.state.ExportReportType,\r\n\t\t\ttitle: mytitle\r\n\t\t};\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\"/bankapi/v1.0/ClientCustomer/ExportDownload\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t},\r\n\t\t\tthis.ShowMessage\r\n\t\t);\r\n\t}\r\n\r\n\tErrorCallback = (error) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"Error\", \"An error occurred during the api visit\" + error);\r\n\t}\r\n\r\n\tGetModel = () => { return this.state.model; }\r\n\r\n\tGetClientParameter = () => {\r\n\t\tthis.parameterClient.UniqueClientId = this.state.model.UniqueClientId;\r\n\t\treturn this.parameterClient;\r\n\t}\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tif (!model.UniqueClientId) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Client not selected\", \"Select Client to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tGetGridButtonsRight = async () => {\r\n\t\tconst { MenuCode } = this.props;\r\n\t\tvar gridButtonRightDetail = await this.MenuAuthorityRightHelper.RightCheckList(MenuCode, [\"CALCUSDETA\", \"CALCUSDEAC\", \"CALCUSACTI\", \"CALCUSRECR\", \"CALCUSREWA\", \"CALCUSRESE\"]);\r\n\r\n\t\tthis.setState({ gridButtonRightDetail });\r\n\t}\r\n\r\n\tGetWalletGridButtonsRight = async () => {\r\n\t\tconst { MenuCode } = this.props;\r\n\t\tvar gridButtonRightDetail = await this.MenuAuthorityRightHelper.RightCheckList(MenuCode, [\"CALCLTCUD\", \"CALCLTSAI\", \"CALCLTSAA\", \"CALCLTRSC\", \"CALCLTWAE\", \"CALCLTSAE\", \"CALCLTUUI\", \"CALCLTWCD\"]);\r\n\t\tthis.setState({ gridButtonRightDetail });\r\n\t}\r\n\r\n\tGetGridButtonDisabled = (action) => {\r\n\t\tconst { MenuCode } = this.props;\r\n\r\n\t\tif (MenuCode === MenuCodes.CallCenter_CustomerList && action === \"Details\") {\r\n\t\t\treturn !this.state.gridButtonRightDetail.find(x => x.Code == \"CALCUSDETA\")?.HasAuthority;\r\n\t\t} else if (MenuCode === \"CALWCL\" && action === \"Details\") {\r\n\t\t\treturn !this.state.gridButtonRightDetail.find(x => x.Code == \"CALCLTCUD\")?.HasAuthority;\r\n\t\t}\r\n\r\n\t\tif (MenuCode === MenuCodes.CallCenter_CustomerList && action === \"SetAsInactive\") {\r\n\t\t\treturn !this.state.gridButtonRightDetail.find(x => x.Code == \"CALCUSDEAC\")?.HasAuthority;\r\n\t\t} else if (MenuCode === \"CALWCL\" && action === \"SetAsInactive\") {\r\n\t\t\treturn !this.state.gridButtonRightDetail.find(x => x.Code == \"CALCLTSAI\")?.HasAuthority;\r\n\t\t}\r\n\r\n\t\tif (MenuCode === MenuCodes.CallCenter_CustomerList && action === \"SetAsActive\") {\r\n\t\t\treturn !this.state.gridButtonRightDetail.find(x => x.Code == \"CALCUSACTI\")?.HasAuthority;\r\n\t\t} else if (MenuCode === \"CALWCL\" && action === \"SetAsActive\") {\r\n\t\t\treturn !this.state.gridButtonRightDetail.find(x => x.Code == \"CALCLTSAA\")?.HasAuthority;\r\n\t\t}\r\n\r\n\t\tif (MenuCode === MenuCodes.CallCenter_CustomerList && action === \"ResendCredentials\") {\r\n\t\t\treturn !this.state.gridButtonRightDetail.find(x => x.Code == \"CALCUSRECR\")?.HasAuthority;\r\n\t\t} else if (MenuCode === \"CALWCL\" && action === \"ResendCredentials\") {\r\n\t\t\treturn !this.state.gridButtonRightDetail.find(x => x.Code == \"CALCLTRSC\")?.HasAuthority;\r\n\t\t}\r\n\r\n\t\tif (MenuCode === MenuCodes.CallCenter_CustomerList && action === \"ResendWalletAccountEmail\") {\r\n\t\t\treturn !this.state.gridButtonRightDetail.find(x => x.Code == \"CALCUSREWA\")?.HasAuthority;\r\n\t\t} else if (MenuCode === \"CALWCL\" && action === \"ResendWalletAccountEmail\") {\r\n\t\t\treturn !this.state.gridButtonRightDetail.find(x => x.Code == \"CALCLTWAE\")?.HasAuthority;\r\n\t\t}\r\n\r\n\t\tif (MenuCode === MenuCodes.CallCenter_CustomerList && action === \"ResendSecurityAccountEmail\") {\r\n\t\t\treturn !this.state.gridButtonRightDetail.find(x => x.Code == \"CALCUSRESE\")?.HasAuthority;\r\n\t\t} else if (MenuCode === \"CALWCL\" && action === \"ResendSecurityAccountEmail\") {\r\n\t\t\treturn !this.state.gridButtonRightDetail.find(x => x.Code == \"CALCLTSAE\")?.HasAuthority;\r\n\t\t}\r\n\r\n\t\tif (MenuCode === \"CALWCL\" && action === \"UpdateUserInfo\") {\r\n\t\t\treturn !this.state.gridButtonRightDetail.find(x => x.Code == \"CALCLTUUI\")?.HasAuthority;\r\n\t\t}\r\n\r\n\t\tif (MenuCode === \"CALWCL\" && action === \"WalletCustomerDetails\") {\r\n\t\t\treturn !this.state.gridButtonRightDetail.find(x => x.Code == \"CALCLTWCD\")?.HasAuthority;\r\n\t\t}\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: null })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm, showCancel = true) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: null })} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\r\n\tScreenParameter = (menuCode, model) => {\r\n\t\tif (menuCode == \"CWLCUL\" || menuCode == \"BWLCUL\" || menuCode == \"CALWCL\") {\r\n\t\t\tthis.ForWallet = true;\r\n\t\t\tmodel.ProgramId = 5;\r\n\t\t}\r\n\r\n\t\tif (menuCode === MenuCodes.Bill_CustomerList) {\r\n\t\t\tthis.ForBillPayment = true;\r\n\t\t\tmodel.ProgramId = 70;\r\n\t\t}\r\n\t}\r\n\r\n\tOpenAutodepositInsert = (customer) => {\r\n\t\tthis.setState({ autoDepositInsertDialogOpen: true, selectedCustomer: customer });\r\n\t}\r\n\r\n\tInsertOrUpdateInteracUser = () => {\r\n\t\tconst { model, selectedCustomer } = this.state;\r\n\r\n\t\tProxy.POST(\"/bankapi/v1.0/ClientCustomer/DirectDepositRegistration\",\r\n\t\t\t{\r\n\t\t\t\tClientCustomerId: selectedCustomer.Id,\r\n\t\t\t\tInteracEmail: model.DirectDepositInteracEmail,\r\n\t\t\t\tIsDdrActive: true,\r\n\t\t\t\tIsUpdate: true,\r\n\t\t\t\tWalletAccountId: model.DirectDepositSourceAccountId\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", \"An error occurred while interac request \" + responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tthis.HandleSearch();\r\n\t\t\t\t}\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Operation successfully.\");\r\n\t\t\t\tthis.HandleClear();\r\n\t\t\t\tthis.setState({ autoDepositInsertDialogOpen: false });\r\n\t\t\t},\r\n\t\t\te => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", \"An error occurred while interac request \");\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\r\n\thideAlert = () => { this.setState({ isLoading: false, autoDepositInsertDialogOpen: false, isConfirmDeleteDialogOpen: false }); }\r\n\r\n\trender() {\r\n\t\tconst { Disabled, MenuCode } = this.props;\r\n\t\tconst { alert, model, rowModel, isLoading, isUpdateUserDialogOpen, isWalletCustomerDetailDialogOpen, isCustomerDetailDialogOpen, ReadOnly, autoDepositInsertDialogOpen, isConfirmDeleteDialogOpen, selectedCustomer } = this.state;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t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tDo you want to delete this AutoDeposit registration record ?\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t `${d.Program.Description} - ${d.AccountNumber}`}\r\n\t\t\t\t\t\t\t\tValue={model.InteracAccount}\r\n\t\t\t\t\t\t\t\tValueChanged={this.ValueChangedForAutodeposit}\r\n\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tclose\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\t\tclassNamePrefix=\"select\" />\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{!this.ForBillPayment && !this.ForWallet &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t{(this.ForBillPayment || this.ForWallet) &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{(!this.ForBillPayment && !this.ForWallet) &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCustomerList.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(CustomerList, {});","import { DialogContent, DialogTitle, Slide } from \"@material-ui/core\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport { DeleteIcon, EditIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericTitle, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { MenuCodes, GridColumnType } from \"views/Constants/Constant.js\";\r\n\r\n\r\nfunction Transition(props) {\r\n\treturn ;\r\n}\r\n\r\nclass CustomerRightsList extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.isBackoffice = ClientHelper.IsBackOffice();\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tClientCustomerId: this.props.ClientCustomerId,\r\n\t\t\tCustomerName: \"\",\r\n\t\t\tUniqueClientId: 0,\r\n\t\t\tIsClientCustomerPayee: this.props.IsClientCustomerPayee,\r\n\t\t\tProgramCode: this.props.ProgramCode\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tvModel: {},\r\n\t\t\tlist: [],\r\n\t\t\tisPersonal: null,\r\n\t\t\tisLoading: false,\r\n\t\t\tselected: -1,\r\n\t\t\talert: null\r\n\t\t};\r\n\r\n\t\tthis.ColumnsData = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Insert Date\",\r\n\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"CustomerName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"UniqueClient\",\r\n\t\t\t\twidth: 160,\r\n\t\t\t\tCell: row => (

{row.value.ClientName}

)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"EFT Program Right\",\r\n\t\t\t\taccessor: \"Programs\",\r\n\t\t\t\tCell: row => (

{row.value.includes(\"EFT\") ? \"Granted\" : \"\"}

)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Etransfer Program Right\",\r\n\t\t\t\taccessor: \"Programs\",\r\n\t\t\t\tCell: row => (

{row.value.includes(\"ETRANSFER\") ? \"Granted\" : \"\"}

)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Bill Payment Program Right\",\r\n\t\t\t\taccessor: \"Programs\",\r\n\t\t\t\tCell: row => (

{row.value.includes(\"BILL\") ? \"Granted\" : \"\"}

)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Wallet Program Right\",\r\n\t\t\t\taccessor: \"Programs\",\r\n\t\t\t\tCell: row => (

{row.value.includes(\"WALLET\") ? \"Granted\" : \"\"}

)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"DDT Program Right\",\r\n\t\t\t\taccessor: \"Programs\",\r\n\t\t\t\tCell: row => (

{row.value.includes(\"DDT\") ? \"Granted\" : \"\"}

)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"CDIC Program Rights\",\r\n\t\t\t\taccessor: \"Programs\",\r\n\t\t\t\tCell: row => (

{row.value.includes(\"CDIC\") ? \"Granted\" : \"\"}

)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Lender Program Rights\",\r\n\t\t\t\taccessor: \"Programs\",\r\n\t\t\t\tCell: row => (

{row.value.includes(\"LENDER\") ? \"Granted\" : \"\"}

)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Transfer Program Rights\",\r\n\t\t\t\taccessor: \"Programs\",\r\n\t\t\t\tCell: row => (

{row.value.includes(\"CRDTRANSFER\") ? \"Granted\" : \"\"}

)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Money Transfer Program Right\",\r\n\t\t\t\taccessor: \"None\" //TODO Developement not completed yet\r\n\t\t\t},\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\t\r\n\t\tif (this.props.setAppLeftTitle) this.props.setAppLeftTitle(\"Customer Program Rights\");\r\n\t\tif (this.props.setAppCenterTitle) {\r\n\t\t\tthis.props.setAppCenterTitle(\"CUSTOMER SYSTEM\");\r\n\t\t}\r\n\t}\r\n\r\n\tHandleChange = (name, value, data) => {\r\n\t\tvar { model, vModel } = this.state;\r\n\r\n\t\tmodel[name] = value;\r\n\t\tthis.setState({ model, vModel });\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tif (this.state.model.UniqueClientId == 0)\r\n\t\t{\r\n\t\t\t\r\n\t\t\tthis.ShowMessage(\"warning\", \"Error\", \"A client must be selected!\");\r\n\t\t\treturn \r\n\t\t}\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconsole.log(this.state.model)\r\n\t\tProxy.POST(\"/bankapi/v1.0/ClientCustomer/Search\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tconsole.log(responseData);\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ list: [] });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t});\r\n\t}\r\n\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({ isLoading: false, alert: this.setState({ alert: \"\" })} /> });\r\n\t}\r\n\r\n\tShowConfirmMessage(type, title, message, onConfirm, isShowCancel = true) {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: \"\" })} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\r\n\thideAlert = () => { this.setState({ alert: null, isLoading: false }); }\r\n\r\n\trender() {\r\n\t\tconst { alert, model, vModel, list, isLoading } = this.state;\r\n\t\tlet IsCallCenter = this.props.MenuCode === MenuCodes.ClientAccountActivities;\r\n\r\n\t\treturn (\r\n\t\t\t<>\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t this.HandleSearch(), Disabled: false }\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{(IsCallCenter || this.isBackoffice) &&\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.UniqueClientId}\r\n\t\t\t\t\t\t\t\t\t\t\t\tCanClear />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCustomerRightsList.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(CustomerRightsList, {});\r\n","import { CheckCircleOutline as CheckImg } from \"@material-ui/icons\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { PropTypes } from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericCheckInput, GenericEmailInput, GenericExpansionPanel, GenericLabel, GenericSelectInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ToolbarButton from \"views/Components/ToolbarButton\";\r\n\r\nclass NotificationSettings extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.isClient = ClientHelper.IsClient();\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tUniqueClientId: this.isClient ? ClientHelper.GetClientRowId() : undefined\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tlist: [],\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tvModel: {},\r\n\t\t\tcountModel: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tisSmsDialogOpen: false,\r\n\t\t\tisEmailDialogOpen: false,\r\n\t\t\tisPortalDialogOpen: false\r\n\t\t};\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: this.isClient ? ClientHelper.GetClientId() : undefined,\r\n\t\t};\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.sortName = { Member: \"Name\" };\r\n\t\tthis.sortListName = [{ id: \"CustomerName\" }];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tif (this.props.setAppLeftTitle)\r\n\t\t\tthis.props.setAppLeftTitle(\"Customer Notification Settings\");\r\n\r\n\t\tif (this.props.setAppCenterTitle)\r\n\t\t\tthis.props.setAppCenterTitle(\"NOTIFICATIONS\");\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: this.initialModel });\r\n\t}\r\n\r\n\tHandleChangeFilter = (name, value) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\r\n\t\tthis.setState({ model }, () => {\r\n\t\t\tif (name === \"UniqueClientId\" && value > 0) {\r\n\t\t\t\tthis.HandleSearch();\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tHandleChange = (n, v, x) => {\r\n\t\tlet { list } = this.state;\r\n\t\tif (list.includes(x)) {\r\n\t\t\tlist.find(c => c === x)[n] = v;\r\n\t\t\tthis.setState({ list });\r\n\t\t}\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tif (!this.ValidateSearch())\r\n\t\t\treturn;\r\n\r\n\t\tthis.setState({ isLoading: true, list: [] });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/ClientCustomerEventNotification/GetAll\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleSubmit = () => {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/ClientCustomerEventNotification/InsertOrUpdate\",\r\n\t\t\tthis.state.list.map(d => {\r\n\t\t\t\treturn {\r\n\t\t\t\t\tId: d.Id,\r\n\t\t\t\t\tIsRecordValid: d.IsRecordValid,\r\n\t\t\t\t\tEventNotificationId: d.EventNotificationId,\r\n\t\t\t\t\tUniqueClientId: model.UniqueClientId,\r\n\t\t\t\t\tSendSms: d.SendSms,\r\n\t\t\t\t\tSendEmail: d.SendEmail,\r\n\t\t\t\t\tSendApplication: d.SendApplication,\r\n\t\t\t\t};\r\n\t\t\t}),\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false, list: [] });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Operation is successfully!\");\r\n\t\t\t\tthis.HandleSearch();\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tvar ErrorList = [];\r\n\t\tconst { model, vModel, list } = this.state;\r\n\r\n\t\tvar notExistChannelList = list.filter(x => x.IsRecordValid && x.SendSms == false && x.SendEmail == false && x.SendApplication == false);\r\n\t\tfor (let notifications of notExistChannelList) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Invalid\", `Please select the one notification channel at least for ${notifications.EventNotification.NotificationTemplateType.Description}!`);\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!this.isClient && (model.UniqueClientId == null || model.UniqueClientId == 0)) {\r\n\t\t\tvModel.UniqueClientId = true;\r\n\t\t\tErrorList.push(\"Client must be selected!\");\r\n\t\t} else {\r\n\t\t\tvModel.UniqueClientId = false;\r\n\t\t}\r\n\r\n\t\tthis.setState({ vModel });\r\n\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tValidateSearch = () => {\r\n\t\tvar ErrorList = [];\r\n\t\tconst { model, vModel } = this.state;\r\n\r\n\t\tif (!this.isClient && (model.UniqueClientId == null || model.UniqueClientId == 0)) {\r\n\t\t\tvModel.UniqueClientId = true;\r\n\t\t\tErrorList.push(\"Client must be selected!\");\r\n\t\t} else {\r\n\t\t\tvModel.UniqueClientId = false;\r\n\t\t}\r\n\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Required fields!\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, isLoading, model, vModel, list, selected, isSmsDialogOpen, isEmailDialogOpen, isPortalDialogOpen } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t model, FillDataFromModel: model => this.setState({ model }), ValidationFunction: this.Validate },\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t `+${x.PhoneCountryCode.Code} ${x.PhoneNumber}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={model.PhoneId}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.HandleChangeFilter} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t{list.map(field => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.HandleChange(n, v, field)} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t{list.map(field => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.HandleChange(n, v, field)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={!field.EventNotification.SendSms || !field.IsRecordValid} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.HandleChange(n, v, field)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={!field.EventNotification.SendEmail || !field.IsRecordValid} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.HandleChange(n, v, field)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={!field.EventNotification.SendApplication || !field.IsRecordValid} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t{list.map(field => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.setState({ isSmsDialogOpen: true, selected: field })}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdisabled={true}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.setState({ isEmailDialogOpen: true, selected: field })}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdisabled={true}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.setState({ isPortalDialogOpen: true, selected: field })}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdisabled={true}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t{list.map(field => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\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r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nNotificationSettings.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func\r\n};\r\n\r\nexport default NotificationSettings;\r\n","import sweetAlertStyle from \"assets/jss/material-dashboard-pro-react/views/sweetAlertStyle.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport AlertHelper from \"core/AlertHelper\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes, { func } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport ToolBar from \"views/Components/DynamicToolbar\";\r\nimport { GenericDateInput, GenericExpansionPanel, GenericNumberInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { DefaultBankInformation, Portals } from \"views/Constants/Constant.js\";\r\nimport CDICList from \"./SearchTabs/CDICList\";\r\n\r\nconst styles = ({\r\n\t...sweetAlertStyle,\r\n\tGridItemFreePadding: {\r\n\t\tpadding: \"0px 5px !important\"\r\n\t}\r\n});\r\n\r\nclass CDICAccounts extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\ttoolBarModel: {},\r\n\t\t\tCDICList: [],\r\n\t\t\tCdicTotalInfo: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tpoolModel: {},\r\n\t\t\tisBackOffice: false\r\n\t\t};\r\n\t\tthis.handleChange = this.handleChange.bind(this);\r\n\t\tthis.GetAllData = this.GetAllData.bind(this);\r\n\t\tthis.errorCallback = this.errorCallback.bind(this);\r\n\t\tthis.hideAlert = this.hideAlert.bind(this);\r\n\t\tthis.showErrorMessage = this.showErrorMessage.bind(this);\r\n\t\tthis.successCdicCallback = this.successCdicCallback.bind(this);\r\n\t\tthis.successCallback = this.successCallback.bind(this);\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tvar model = { ...this.state.model };\r\n\r\n\t\tvar isBackOffice = ClientHelper.IsBackOffice();\r\n\t\tif (!isBackOffice) {\r\n\t\t\tthis.GetToolbarData();\r\n\t\t\tmodel.UniqueClientId = ClientHelper.GetClientRowId();\r\n\t\t}\r\n\r\n\t\tthis.props.setAppLeftTitle(\"DDT - CDIC List\");\r\n\t\tthis.props.setAppCenterTitle(\"DDT MANAGEMENT\");\r\n\t\tthis.props.setPortal(Portals.DDT);\r\n\t\tthis.setState({ model, isBackOffice });\r\n\t}\r\n\r\n\thandleChange(name, newValue) {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tGetAllData() {\r\n\t\t// if (this.state.model == null)\r\n\t\t// \tthis.showErrorMessage(\"At least one field must be full in Main Parameters !!\");\r\n\t\t// else {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Cdic/CdicSearch\",\r\n\t\t\tthis.state.model,\r\n\t\t\tthis.successCdicCallback,\r\n\t\t\tthis.errorCallback\r\n\t\t);\r\n\t\t// } \r\n\t}\r\n\r\n\tsuccessCdicCallback(responseData) {\r\n\t\tthis.hideLoading();\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.showErrorMessage(responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (responseData.Item != null) {\r\n\t\t\tif (responseData.Item.CdicAccountList != null) {\r\n\t\t\t\tif (responseData.Item.CdicAccountList.length < 1) {\r\n\t\t\t\t\tthis.setState({ CDICList: [], CdicTotalInfo: {} });\r\n\t\t\t\t} else {\r\n\t\t\t\t\tvar CDICList = responseData.Item.CdicAccountList.length < 1 ? [] : responseData.Item.CdicAccountList;\r\n\t\t\t\t\tvar CdicTotalInfo = responseData.Item.CdicTotalInfo == null ? {} : responseData.Item.CdicTotalInfo;\r\n\t\t\t\t\tthis.setState({ CDICList, CdicTotalInfo });\r\n\t\t\t\t\tthis.GetToolbarData();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tGetToolbarData = () => {\r\n\t\tthis.showLoading();\r\n\t\tProxy.GET(\r\n\t\t\t\"/bankapi/v1.0/Ddt/GetAllDDTCDICNumberAndBalance\",\r\n\t\t\tthis.successCallback,\r\n\t\t\tthis.errorCallback\r\n\t\t);\r\n\t}\r\n\r\n\tsuccessCallback(responseData) {\r\n\t\tvar toolBarModel = { ...this.state.toolBarModel };\r\n\t\tvar poolModel = { ...this.state.poolModel };\r\n\t\tvar model = { ...this.state.model };\r\n\r\n\t\tmodel.PrimaryBranchId = responseData.Item == null ? \"\" : responseData.Item.CDICPoolAccountInfo == null ? \"\" : responseData.Item.CDICPoolAccountInfo.BranchId == null ? \"\" : responseData.Item.CDICPoolAccountInfo.BranchId;\r\n\t\tmodel.PrimaryAccountNumber = responseData.Item == null ? \"\" : responseData.Item.CDICPoolAccountInfo == null ? \"\" : responseData.Item.CDICPoolAccountInfo.AccountNumber == null ? \"\" : responseData.Item.CDICPoolAccountInfo.AccountNumber;\r\n\r\n\t\ttoolBarModel.TotalDDTNumber = responseData.Item == null ? 0 : responseData.Item.TotalDDTNumber == null ? 0 : responseData.Item.TotalDDTNumber;\r\n\t\ttoolBarModel.TotalDDTBalance = responseData.Item == null ? 0 : responseData.Item.DDTPoolAccountInfo == null ? 0 : responseData.Item.DDTPoolAccountInfo.Balance == null ? 0 : responseData.Item.DDTPoolAccountInfo.Balance;\r\n\t\ttoolBarModel.TotalCDICNumber = responseData.Item == null ? 0 : responseData.Item.TotalCDICNumber == null ? 0 : responseData.Item.TotalCDICNumber;\r\n\t\ttoolBarModel.TotalCDICBalance = responseData.Item == null ? 0 : responseData.Item.CDICPoolAccountInfo == null ? 0 : responseData.Item.CDICPoolAccountInfo.Balance == null ? 0 : responseData.Item.CDICPoolAccountInfo.Balance;\r\n\t\tthis.setState({ model, toolBarModel, poolModel, isLoading: false });\r\n\t}\r\n\r\n\terrorCallback(error) {\r\n\t\tthis.showErrorMessage(\"An error occurred during the api visit\" + error);\r\n\t\tthis.hideLoading();\r\n\t}\r\n\r\n\tshowErrorMessage(message) {\r\n\t\tthis.setState({\r\n\t\t\tCDICList: [],\r\n\t\t\tCdicTotalInfo: null,\r\n\t\t\tisLoading: false,\r\n\t\t\talert: AlertHelper.CreateAlert(\"Error\", message, \"error\", this.hideAlert)\r\n\t\t});\r\n\t}\r\n\r\n\thideAlert() {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\tshowLoading = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t}\r\n\r\n\tClearModel = () => {\r\n\t\tthis.setState({ model: {} });\r\n\t}\r\n\r\n\thideLoading = () => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, toolBarModel, isLoading, poolModel, isBackOffice } = this.state;\r\n\t\tconst { Disabled, classes } = this.props;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{!isBackOffice &&\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\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r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t

\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCDICAccounts.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\thandleOperationType: PropTypes.func,\r\n\tSelectedRowChange: PropTypes.func,\r\n\tshowQuestionMessage: func,\r\n\tsetAppLeftTitle: func,\r\n\tsetAppCenterTitle: func,\r\n\tsetPortal: func,\r\n\tmenuId: PropTypes.number,\r\n\tApprovalData: PropTypes.array,\r\n\tAfter: func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(CDICAccounts, styles);","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport DDTCustomerInfo from \"views/DDT/SearchTabs/DDTCustomerInfo.jsx\";\r\nimport GridButton from \"views/Components/GridButton.jsx\";\r\nimport AlertHelper from \"core/AlertHelper\";\r\nimport { EditIcon } from \"core/Icons\";\r\nimport PropTypes, { array, bool, func, number } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport ToolBar from \"views/Components/DynamicToolbar\";\r\nimport { GenericAlert, GenericDateInput, GenericExpansionPanel, GenericGrid, GenericLabel, GenericNumberInput, GenericRadioInput, GenericDialogActions, GenericSelectInput, GenericTextInput, GenericDialog } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { DefaultBankInformation, Portals, GridColumnType, ProgramCodes, DDTStatus } from \"views/Constants/Constant.js\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { DialogTitle, DialogContent } from \"@material-ui/core\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport Select from \"react-select\";\r\n\r\n\r\nconst styles = ({\r\n\tGridItemFreePadding: {\r\n\t\tpadding: \"0px 5px !important\"\r\n\t},\r\n\tGridItemTextFreePadding: {\r\n\t\tpadding: \"0px 3px !important\"\r\n\t}\r\n});\r\nclass DDTAccounts extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initalModel = {\r\n\t\t\tFromDate: DateHelper.GetDate(),\r\n\t\t\tToDate: DateHelper.GetDate(),\r\n\t\t\tStatusId: DDTStatus.Active,\r\n\t\t\tUniqueClientId: \"\",\r\n\t\t};\r\n\t\tthis.state = {\r\n\t\t\tmodel: { ...this.initalModel },\r\n\t\t\tpoolModel: {},\r\n\t\t\tvModel: {},\r\n\t\t\tIsEmailValid: true,\r\n\t\t\ttoolBarModel: {},\r\n\t\t\tDDTList: [],\r\n\t\t\tDdtTotalInfo: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tisBackOffice: ClientHelper.IsBackOffice(),\r\n\t\t\tddtModel: {\r\n\t\t\t\tId: 0,\r\n\t\t\t\tName: \"\",\r\n\t\t\t\tEmail: \"\",\r\n\t\t\t\tPhone: {},\r\n\t\t\t\tddtModel: DDTStatus.Active\r\n\t\t\t},\r\n\t\t\tPhone: {\r\n\t\t\t\tId: 0,\r\n\t\t\t\tPhoneCountryCodeId: 0,\r\n\t\t\t\tPhoneNumber: \"\"\r\n\t\t\t},\r\n\t\t\topenEditDialog: false,\r\n\t\t};\r\n\t\tthis.getappCenterTitle = \"Empty\";\r\n\t\tthis.getappLeftTitle = \"Empty\";\r\n\t\tthis.handleChange = this.handleChange.bind(this);\r\n\t\tthis.GetAllData = this.GetAllData.bind(this);\r\n\t\tthis.errorCallback = this.errorCallback.bind(this);\r\n\t\tthis.hideAlert = this.hideAlert.bind(this);\r\n\t\tthis.showErrorMessage = this.showErrorMessage.bind(this);\r\n\t\tthis.successCallback = this.successCallback.bind(this);\r\n\t\tthis.handleEditChange = this.handleEditChange.bind(this);\r\n\t\tthis.trxTable = React.createRef();\r\n\t\tconst isBackOffice = this.state.isBackOffice;\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: d => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t this.OpenEditModal(d.original)} />\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\twidth: 60,\r\n\t\t\t\tshow: !isBackOffice\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Unique Client Id\",\r\n\t\t\t\taccessor: \"UniqueClientId\",\r\n\t\t\t\tshow: !isBackOffice\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\",\r\n\t\t\t\tshow: isBackOffice\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Owner\",\r\n\t\t\t\taccessor: \"AccountOwner\",\r\n\t\t\t\tshow: false\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Number\",\r\n\t\t\t\taccessor: \"CustomerNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"CustomerName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transit Number\",\r\n\t\t\t\taccessor: \"TransitNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"DDT Number\",\r\n\t\t\t\taccessor: \"DDTNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Issued Date\",\r\n\t\t\t\taccessor: \"IssuedDate\",\r\n\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"ExpireDate\",\r\n\t\t\t\taccessor: \"ExpireDate\",\r\n\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Status\",\r\n\t\t\t\taccessor: \"Status\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Balance\",\r\n\t\t\t\taccessor: \"Balance\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"SIN\",\r\n\t\t\t\taccessor: \"SIN\",\r\n\t\t\t\twidth: 100\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"First Name\",\r\n\t\t\t\taccessor: \"Name\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Middle Name\",\r\n\t\t\t\taccessor: \"MiddleName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Last Name\",\r\n\t\t\t\taccessor: \"LastName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Birth Date\",\r\n\t\t\t\taccessor: \"DateOfBirth\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Phone Number\",\r\n\t\t\t\taccessor: \"PhoneNumber\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"E-Mail\",\r\n\t\t\t\taccessor: \"Email\",\r\n\t\t\t\twidth: 160\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Address Line 1\",\r\n\t\t\t\taccessor: \"AddressLine1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Address Line 2\",\r\n\t\t\t\taccessor: \"AddressLine2\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"City\",\r\n\t\t\t\taccessor: \"City\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Province\",\r\n\t\t\t\taccessor: \"Province\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Postal Code\",\r\n\t\t\t\taccessor: \"ZipCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Country\",\r\n\t\t\t\taccessor: \"Country\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Auto Direct Deposit E-Mail\",\r\n\t\t\t\t//accessor: \"DirectDepositEmail\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Direct Deposit Registration Status\",\r\n\t\t\t\taccessor: \"DirectDepositRegistrationStatus\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\tFormatter.FormatYesNo(row.value)\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Direct Deposit Reference Number\",\r\n\t\t\t\taccessor: \"DirectDepositReferenceNumber\"\r\n\t\t\t}\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tvar { isBackOffice } = this.state;\r\n\t\tvar model = { ...this.state.model };\r\n\r\n\t\tif (!isBackOffice) {\r\n\t\t\tthis.GetToolbarData();\r\n\t\t\tthis.initalModel.UniqueClientId = ClientHelper.GetClientRowId();\r\n\t\t}\r\n\t\tmodel = { ...this.initalModel };\r\n\t\tthis.props.setAppLeftTitle(\"DDT List\");\r\n\t\tthis.props.setAppCenterTitle(\"DDT MANAGEMENT\");\r\n\t\tthis.props.setPortal(Portals.DDT);\r\n\t\tthis.setState({ model, isBackOffice, loadingCompleted: true });\r\n\t\tthis.getappCenterTitle = \"DDT List\";\r\n\t\tthis.getappLeftTitle = \"DDT MANAGEMENT\";\r\n \t}\r\n\r\n\thandleChange(name, newValue) {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\thandleEditChange(name, newValue, data) {\r\n\t\tconst ddtModel = { ...this.state.ddtModel };\r\n\t\tvar IsEmailValid = this.state.IsEmailValid;\r\n\t\tconst Phone = { ...this.state.Phone };\r\n\t\tif (name == \"PhoneCountryCodeId\" || name == \"PhoneNumber\")\r\n\t\t\tPhone[name] = newValue;\r\n\t\telse\r\n\t\t\tddtModel[name] = newValue;\r\n\r\n\t\tif (name == \"Email\") {\r\n\t\t\tIsEmailValid = newValue == \"\" ? true : data.IsValid;\r\n\t\t}\r\n\r\n\t\tthis.setState({ ddtModel, Phone, IsEmailValid });\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\r\n\tGetAllData() {\r\n\r\n\t\tif (this.state.poolModel.BranchId == null || this.state.poolModel.AccountNumber == null) {\r\n\t\t\tthis.setState(state => ({ trxGridToken: !state.trxGridToken }));\r\n\t\t} else {\r\n\t\t\tif (this.state.poolModel.BranchId == \"\" || this.state.poolModel.AccountNumber == \"\")\r\n\t\t\t\tthis.showErrorMessage(\"No DDT program definition has been made in your name. Please contact the bank manager.\");\r\n\t\t\telse {\r\n\t\t\t\tthis.setState(state => ({ trxGridToken: !state.trxGridToken }));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}\r\n\r\n\tCalculateDdtTotalInfo = async (newData) => {\r\n\t\tconst info = {\r\n\t\t\tActive: 0,\r\n\t\t\tInactive: 0,\r\n\t\t\tTotal: 0,\r\n\t\t\tBalance: 0,\r\n\t\t};\r\n\r\n\t\tProxy.GET(\r\n\t\t\t\"/bankapi/v1.0/Ddt/GetDdtTotalInfo\",\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tconsole.log(\"Error!\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tinfo.Active = responseData.Item.Active;\r\n\t\t\t\t\tinfo.Inactive = responseData.Item.Inactive;\r\n\t\t\t\t\tinfo.Balance = responseData.Item.Balance;\r\n\t\t\t\t\tinfo.Total = info.Active + info.Inactive;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ DdtTotalInfo: info });\r\n\t\t\t},\r\n\t\t\te => {\r\n\t\t\t\tconsole.log(\"Error!\");\r\n\t\t\t}\r\n\t\t);\r\n\t\t\r\n\t\tthis.setState({ DdtTotalInfo: info });\r\n\t}\r\n\r\n\tGetToolbarData = () => {\r\n\t\tthis.showLoading();\r\n\t\tProxy.GET(\r\n\t\t\t\"/bankapi/v1.0/Ddt/GetAllDDTCDICNumberAndBalance\",\r\n\t\t\tthis.successCallback,\r\n\t\t\tthis.errorCallback\r\n\t\t);\r\n\t}\r\n\r\n\tsuccessCallback(responseData) {\r\n\t\tvar toolBarModel = { ...this.state.toolBarModel };\r\n\t\tvar poolModel = { ...this.state.poolModel };\r\n\r\n\t\tthis.initalModel.PrimaryAccountId = responseData.Item == null || undefined ? \"\" : responseData.Item.DDTPoolAccountInfo == null || undefined ? 0 : responseData.Item.DDTPoolAccountInfo.Id == null || undefined ? 0 : responseData.Item.DDTPoolAccountInfo.Id;\r\n\t\tthis.initalModel.PrimaryBranchId = responseData.Item == null || undefined ? \"\" : responseData.Item.DDTPoolAccountInfo == null || undefined ? \"\" : responseData.Item.DDTPoolAccountInfo.BranchId == null || undefined ? \"\" : responseData.Item.DDTPoolAccountInfo.BranchId;\r\n\t\tthis.initalModel.PrimaryAccountNumber = responseData.Item == null || undefined ? \"\" : responseData.Item.DDTPoolAccountInfo == null || undefined ? \"\" : responseData.Item.DDTPoolAccountInfo.AccountNumber == null || undefined ? \"\" : responseData.Item.DDTPoolAccountInfo.AccountNumber;\r\n\r\n\t\ttoolBarModel.TotalDDTNumber = responseData.Item == null || undefined ? 0 : responseData.Item.TotalDDTNumber == null || undefined ? 0 : responseData.Item.TotalDDTNumber;\r\n\t\ttoolBarModel.TotalDDTBalance = responseData.Item == null || undefined ? 0 : responseData.Item.DDTPoolAccountInfo == null || undefined ? 0 : responseData.Item.DDTPoolAccountInfo.Balance == null || undefined ? 0 : responseData.Item.DDTPoolAccountInfo.Balance;\r\n\t\ttoolBarModel.TotalCDICNumber = responseData.Item == null || undefined ? 0 : responseData.Item.TotalCDICNumber == null || undefined ? 0 : responseData.Item.TotalCDICNumber;\r\n\t\ttoolBarModel.TotalCDICBalance = responseData.Item == null || undefined ? 0 : responseData.Item.CDICPoolAccountInfo == null || undefined ? 0 : responseData.Item.CDICPoolAccountInfo.Balance == null || undefined ? 0 : responseData.Item.CDICPoolAccountInfo.Balance;\r\n\r\n\t\tthis.setState({ model: { ...this.initalModel }, toolBarModel, poolModel, isLoading: false });\r\n\t}\r\n\r\n\terrorCallback(error) {\r\n\t\tthis.showErrorMessage(\"An error occurred during the api visit\" + error);\r\n\t\tthis.hideLoading();\r\n\t}\r\n\r\n\tshowErrorMessage(message) {\r\n\t\tthis.setState({\r\n\t\t\tDDTList: [],\r\n\t\t\tDdtTotalInfo: null,\r\n\t\t\tisLoading: false,\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\r\n\tExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.accessor != \"Actions\" && c.accessor != \"ED\" && (c.show == undefined || c.show)) {\r\n\t\t\t\ttrxColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: trxColumns, ExportSelectedColumns: trxColumns });\r\n\t}\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\r\n\t\tconst temp = { ...this.state.model };\r\n\r\n\t\tvar jsonColList = [];\r\n\r\n\t\tvar trxColumns = {};\r\n\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\ttrxColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t});\r\n\t\tjsonColList.push(trxColumns);\r\n\r\n\t\tvar mytitle = \"DDT List\";\r\n\r\n\t\ttemp.jsonFile = {\r\n\t\t\tcolmns: jsonColList,\r\n\t\t\tformat: this.state.ExportReportType,\r\n\t\t\ttitle: mytitle\r\n\t\t};\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\"/bankapi/v1.0/Ddt/DdtSearchExportDownload\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t},\r\n\t\t\tthis.props.showMessage\r\n\t\t);\r\n\t}\r\n\r\n\tOpenEditModal(item) {\r\n\t\tvar ddtModel = { ...this.state.ddtModel };\r\n\t\tvar Phone = { ...this.state.Phone };\r\n\t\tvar model = { ...this.state.model };\r\n\t\tmodel.FinInsId = this.props.propFinInsId == null ? 0 : this.props.propFinInsId;\r\n\t\tmodel.FinInsBranchId = item.FinInsBranchId == null ? 0 : item.FinInsBranchId;\r\n\t\tmodel.AccNumber = item.AccNumber == null ? 0 : item.AccNumber;\r\n\t\tmodel.DetailId = item.Id == null ? 0 : item.Id;\r\n\t\tmodel.CustomerNumber = item.ClientCustomer == null ? \"\" : item.ClientCustomer.CustomerNumber;\r\n\t\tmodel.CustomerName = item.ClientCustomer == null ? \"\" : item.ClientCustomer.CustomerName;\r\n\t\tddtModel.Id = item.Id;\r\n\t\tddtModel.SIN = item.SIN == null ? \"\" : item.SIN;\r\n\t\tddtModel.Name = item.Name == null ? \"\" : item.Name;\r\n\t\tddtModel.MiddleName = item.MiddleName == null ? \"\" : item.MiddleName;\r\n\t\tddtModel.LastName = item.LastName == null ? \"\" : item.LastName;\r\n\t\tddtModel.Email = item.Email == null ? \"\" : item.Email;\r\n\t\tddtModel.DateOfBirth = item.DateOfBirth == null ? \"\" : item.DateOfBirth;\r\n\t\tddtModel.AddressLine1 = item.AddressLine1 == null ? \"\" : item.AddressLine1;\r\n\t\tddtModel.AddressLine2 = item.AddressLine2 == null ? \"\" : item.AddressLine2;\r\n\t\tddtModel.ZipCode = item.ZipCode == null ? \"\" : item.ZipCode;\r\n\t\tddtModel.CountryId = item.CountryId == null ? \"\" : item.CountryId;\r\n\t\tddtModel.ProvinceId = item.ProvinceId == null ? \"\" : item.ProvinceId;\r\n\t\tddtModel.CityId = item.CityId == null ? \"\" : item.CityId;\r\n\t\tddtModel.AccountId = item.AccountId == null ? 0 : item.AccountId;\r\n\t\tddtModel.StatusId = item.StatusId; /*item.StatusId == null ? DDTStatus.Active : item.StatusId;*/\r\n\t\tPhone.Id = item.Phone == null ? 0 : item.Phone.Id == null ? 0 : item.Phone.Id;\r\n\t\tPhone.PhoneCountryCodeId = item.Phone == null ? \"\" : item.Phone.PhoneCountryCodeId == null ? \"\" : item.Phone.PhoneCountryCodeId;\r\n\t\tPhone.PhoneNumber = item.Phone == null ? \"\" : item.Phone.PhoneNumber == null ? \"\" : item.Phone.PhoneNumber;\r\n\t\tthis.setState({ ddtModel, openEditDialog: true, Phone, model });\r\n\t}\r\n\r\n\r\n\thandleClose = () => {\r\n\t\tthis.setState({\r\n\t\t\topenEditDialog: false\r\n\t\t});\r\n\t}\r\n\r\n\tEditDDT = () => {\r\n\t\tconst ddtModel = { ...this.state.ddtModel };\r\n\t\tddtModel.Phone = this.state.Phone;\r\n\t\tthis.setState({ ddtModel });\r\n\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tthis.showLoading();\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Ddt/UpdateDdtDetail\",\r\n\t\t\tddtModel,\r\n\t\t\tthis.successEditCallBack,\r\n\t\t\tthis.errorCallback\r\n\t\t);\r\n\t}\r\n\r\n\tsuccessEditCallBack = (responseData) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel.StatusId = this.state.ddtModel.StatusId;\r\n\r\n\t\tthis.setState({ isLoading: false, openEditDialog: false });\r\n\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ model, alert: AlertHelper.CreateAlert(\"Success\", \"DDT Number Information successfully edited.\", \"success\", this.hideAlert) });\r\n\t\tthis.GetAllData();\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { ddtModel, vModel } = this.state;\r\n\r\n\t\tvar messages = [];\r\n\r\n\t\tvModel.Name = ddtModel.Name == null || ddtModel.Name == \"\";\r\n\t\tif (vModel.Name) messages.push(\"Name must be entered\");\r\n\r\n\t\tvModel.LastName = ddtModel.LastName == null || ddtModel.LastName == \"\";\r\n\t\tif (vModel.LastName) messages.push(\"Last Name must be entered\");\r\n\r\n\t\tvModel.Email = !this.state.IsEmailValid;\r\n\t\tif (vModel.Email) messages.push(\"E-Mail is invalid\");\r\n\r\n\t\t// vModel.DateOfBirth = typeof ddtModel.DateOfBirth != \"object\" || ddtModel.DateOfBirth == \"\" || ddtModel.DateOfBirth == null;\r\n\t\t// if (vModel.EndDate) messages.push(\"Birth Date must be selected\");\r\n\r\n\t\tvar interval = DateHelper.GetDate().diff(ddtModel.DateOfBirth, \"years\");\r\n\t\tif (ddtModel.DateOfBirth && interval < 18) {\r\n\t\t\tmessages.push(\"Date of Birth must be bigger than 18\");\r\n\t\t}\r\n\r\n\t\tvModel.AddressLine1 = ddtModel.AddressLine1 == null || ddtModel.AddressLine1 == \"\";\r\n\t\tif (vModel.AddressLine1) messages.push(\"Address Line 1 must be entered\");\r\n\r\n\t\tvModel.ZipCode = ddtModel.ZipCode == null || ddtModel.ZipCode == \"\";\r\n\t\tif (vModel.ZipCode) messages.push(\"Postal Code must be entered\");\r\n\r\n\t\tvModel.CountryId = ddtModel.CountryId == null || ddtModel.CountryId == 0;\r\n\t\tif (vModel.CountryId) messages.push(\"Country must be selected\");\r\n\r\n\t\tvModel.ProvinceId = ddtModel.ProvinceId == null || ddtModel.ProvinceId == 0;\r\n\t\tif (vModel.ProvinceId) messages.push(\"Province must be selected\");\r\n\r\n\t\tvModel.CityId = ddtModel.CityId == null || ddtModel.CityId == 0;\r\n\t\tif (vModel.CityId) messages.push(\"City must be selected\");\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.setState({ vModel });\r\n\t\treturn true;\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\thideAlert() {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\tshowLoading = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t}\r\n\r\n\tClearModel = () => {\r\n\t\tthis.setState({ model: { ...this.initalModel } });\r\n\t}\r\n\r\n\thideLoading = () => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, toolBarModel, isLoading, poolModel, isBackOffice, DdtTotalInfo } = this.state;\r\n\t\tconst { Disabled, classes } = this.props;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{!isBackOffice &&\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\r\n\t\t\t\t{/*EXPORT DIALOG*/}\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t{/* Edit dialog */}\r\n\t\t\t\t\r\n\t\t\t\t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t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t { return this.state.model; }}\r\n\t\t\t\t\t\t\tRequestUrl=\"/bankapi/v1.0/Ddt/DdtSearch\"\r\n\t\t\t\t\t\t\tRequestMethod=\"POST\"\r\n\t\t\t\t\t\t\tColumns={this.columns}\r\n\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_Bank_Account}\r\n\t\t\t\t\t\t\tPaginationFetchDataCallback={this.CalculateDdtTotalInfo} />\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t

Active

\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t

Inactive

\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t

Total

\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t

Client Total Balance

\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tTOTAL\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{DdtTotalInfo == null || undefined ? 0 : DdtTotalInfo.Active == null || undefined ? 0 : typeof DdtTotalInfo.Active == \"number\" ? Formatter.FormatNumber(DdtTotalInfo.Active) : DdtTotalInfo.Active}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{DdtTotalInfo == null || undefined ? 0 : DdtTotalInfo.Inactive == null || undefined ? 0 : typeof DdtTotalInfo.Inactive == \"number\" ? Formatter.FormatNumber(DdtTotalInfo.Inactive) : DdtTotalInfo.Inactive}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{DdtTotalInfo == null || undefined ? 0 : DdtTotalInfo.Total == null || undefined ? 0 : typeof DdtTotalInfo.Total == \"number\" ? Formatter.FormatNumber(DdtTotalInfo.Total) : DdtTotalInfo.Total}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{DdtTotalInfo == null || undefined ? 0 : DdtTotalInfo.Balance == null || undefined ? 0 : typeof DdtTotalInfo.Balance == \"number\" ? Formatter.FormatMoney(DdtTotalInfo.Balance) : DdtTotalInfo.Balance}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nDDTAccounts.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\thandleOperationType: PropTypes.func,\r\n\tSelectedRowChange: PropTypes.func,\r\n\tshowQuestionMessage: func,\r\n\tsetAppLeftTitle: func,\r\n\tsetAppCenterTitle: func,\r\n\tsetPortal: func,\r\n\tDisabled: bool,\r\n\tmenuId: number,\r\n\tApprovalData: array,\r\n\tAfter: func\r\n};\r\n\r\nexport default withArtifex(DDTAccounts, styles);","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes, { bool, func } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport AccountLimitToolbar from \"views/Components/AccountLimitToolbar\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericCheckInput, GenericDateInput, GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTitle, GenericTextInput, GenericDialog, GenericLabel, GenericRadioInput, GenericDialogActions } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { BankTransactionStatus, Direction, EtransferApplicationTypes, GridColumnType, ProgramCodes } from \"views/Constants/Constant.js\";\r\nimport { DialogTitle, DialogContent } from \"@material-ui/core\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport Select from \"react-select\";\r\n\r\nclass DDTIncomingEtransferTransactions extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.isClient = ClientHelper.IsClient();\r\n\t\tthis.initialModel = {\r\n\t\t\tSearchEndDate: DateHelper.GetDate(),\r\n\t\t\tSearchStartDate: DateHelper.GetDate(),\r\n\t\t\tDirectionParameterValue: Direction.Incoming,\r\n\t\t\tClientId: 0\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tvModel: {},\r\n\t\t\ttempModel: {},\r\n\t\t\tgetDataList: [],\r\n\t\t\tsummaryModel: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tisBackOffice: false,\r\n\t\t\tselectList: [],\r\n\t\t\tcheckedValues: [],\r\n\t\t\tLimitToken: false\r\n\t\t};\r\n\r\n\t\tvar isBackOffice = ClientHelper.IsBackOffice();\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"AC\",\r\n\t\t\t\tCell: d => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t c.TransactionEtransferId == d.original.TransactionEtransferId).length > 0}\r\n\t\t\t\t\t\t\tValueChanged={() => { this.HandleCheck(d.original); }}\r\n\t\t\t\t\t\t\tDisabled={d.original.StatusParamValue == BankTransactionStatus.Traced}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\twidth: 70,\r\n\t\t\t\tshow: !isBackOffice\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\ttype: GridColumnType.DateTimeUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Number\",\r\n\t\t\t\taccessor: \"AccountNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Unique Client Id\",\r\n\t\t\t\taccessor: \"ClientNumber\",\r\n\t\t\t\tshow: isBackOffice\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\",\r\n\t\t\t\tshow: isBackOffice\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transfer Type\",\r\n\t\t\t\taccessor: \"TransactionType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sender Name\",\r\n\t\t\t\taccessor: \"SenderName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sender EMail\",\r\n\t\t\t\taccessor: \"CustomerEmail\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"TransactionAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sender Bank\",\r\n\t\t\t\taccessor: \"SenderBank\",\r\n\t\t\t\tshow: this.state.model.DirectionParameterValue == Direction.Incoming\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sender Transit\",\r\n\t\t\t\taccessor: \"SenderTransit\",\r\n\t\t\t\tshow: this.state.model.DirectionParameterValue == Direction.Incoming\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Fee Amount\",\r\n\t\t\t\taccessor: \"FeeAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transfer Status\",\r\n\t\t\t\taccessor: \"BankTransactionStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Description\",\r\n\t\t\t\taccessor: \"TransactionMemo\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Trans. Ref. No \",\r\n\t\t\t\taccessor: \"ParticipantReferenceNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Interac Ref. Number\",\r\n\t\t\t\taccessor: \"TransferReferenceNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Source\",\r\n\t\t\t\taccessor: \"TransactionSource\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Application\",\r\n\t\t\t\taccessor: \"ApplicationId\",\r\n\t\t\t\tCell: row => {\r\n\t\t\t\t\tvar rowValue = \"\";\r\n\t\t\t\t\tEtransferApplicationTypes && EtransferApplicationTypes.forEach(item => {\r\n\t\t\t\t\t\tif (item.Value == row.value)\r\n\t\t\t\t\t\t\trowValue = item.Text;\r\n\t\t\t\t\t});\r\n\t\t\t\t\treturn rowValue;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Error Description\",\r\n\t\t\t\taccessor: \"ErrorDesc\"\r\n\t\t\t}\r\n\t\t];\r\n\t\tthis.handleChange = this.handleChange.bind(this);\r\n\t\tthis.GetData = this.GetData.bind(this);\r\n\t\tthis.errorCallback = this.errorCallback.bind(this);\r\n\t\tthis.hideAlert = this.hideAlert.bind(this);\r\n\t\tthis.showErrorMessage = this.showErrorMessage.bind(this);\r\n\t\tthis.successSummaryCallback = this.successSummaryCallback.bind(this);\r\n\t\tthis.sortedByDate = [{ id: \"TransactionDate\", desc: true }];\r\n\t\tthis.trxTable = React.createRef();\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Incoming e-Transfer Transactions\");\r\n\t\tthis.props.setAppCenterTitle(\"DDT MANAGEMENT\");\r\n\t\tvar model = { ...this.state.model };\r\n\t\tvar initialModel = this.initialModel;\r\n\r\n\t\tvar isBackOffice = ClientHelper.IsBackOffice();\r\n\t\tif (!isBackOffice) {\r\n\t\t\tmodel.ClientId = ClientHelper.GetClientRowId();\r\n\t\t\tinitialModel.ClientId = model.ClientId;\r\n\t\t}\r\n\r\n\t\tthis.RefreshToolBar();\r\n\t\tthis.setState({ model, isBackOffice, loadingCompleted: true });\r\n\t}\r\n\tRefreshToolBar = () => {\r\n\t\tthis.setState({ LimitToken: !this.state.LimitToken });\r\n\t}\r\n\thandleChange(name, newValue) {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\tIsValid = () => {\r\n\t\tvar { model, vModel } = this.state;\r\n\r\n\t\tvar searchIsNotSpecific = (model.RefNo == undefined || model.RefNo == null || model.RefNo == \"\") &&\r\n\t\t\t(model.InteracRefNo == undefined || model.InteracRefNo == null || model.InteracRefNo == \"\") &&\r\n\t\t\t(model.PayeeEmail == undefined || model.PayeeEmail == null || model.PayeeEmail == \"\") &&\r\n\t\t\t(!model?.AccountNumber?.length);\r\n\r\n\t\tmodel[\"searchIsNotSpecific\"] = searchIsNotSpecific;\r\n\r\n\t\tvar validateStatus = true;\r\n\r\n\t\tif (searchIsNotSpecific) {\r\n\t\t\tif (!model.ClientId) {\r\n\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Select Client to continue\");\r\n\t\t\t\tvModel[\"ClientId\"] = true;\r\n\t\t\t\tvalidateStatus = false;\r\n\t\t\t}\r\n\r\n\t\t\tif (typeof model.SearchStartDate != \"object\" && model.SearchStartDate != \"\" && model.SearchStartDate != null) {\r\n\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Start Date is invalid\");\r\n\t\t\t\tvalidateStatus = false;\r\n\t\t\t}\r\n\t\t\tif (typeof model.SearchEndDate != \"object\" && model.SearchEndDate != \"\" && model.SearchEndDate != null) {\r\n\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"End Date is invalid\");\r\n\t\t\t\tvalidateStatus = false;\r\n\t\t\t}\r\n\t\t\tif ((typeof model.SearchStartDate == \"object\" && typeof model.SearchEndDate == \"object\") && model.SearchEndDate < model.SearchStartDate) {\r\n\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Start Date cannot be bigger than End Date\");\r\n\t\t\t\tvalidateStatus = false;\r\n\t\t\t}\r\n\r\n\t\t\tthis.setState({ model, vModel });\r\n\t\t\tif (!validateStatus)\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvModel[\"ClientId\"] = false;\r\n\t\t\tthis.setState({ model, vModel });\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\tGetData() { this.setState(state => ({ trxGridToken: !state.trxGridToken })); this.GetSummaryData(); }\r\n\r\n\tGetSummaryData = () => {\r\n\t\tif (!this.IsValid())\r\n\t\t\treturn;\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/ClearingSettlement/GetEtransferOutInSummaryData\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ summaryModel: responseData.Item });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tsuccessSummaryCallback(responseData) {\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.showErrorMessage(responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (responseData.Item == null || responseData.Item.TransactionList == null || responseData.Item.TransactionList.length < 1) {\r\n\t\t\tthis.setState({ summaryModel: {}, getDataList: [], isLoading: false });\r\n\t\t} else {\r\n\t\t\tvar summaryModel = responseData.Item == null ? {} : responseData.Item.SummaryItems;\r\n\t\t\tthis.setState({\r\n\t\t\t\tsummaryModel,\r\n\t\t\t\tgetDataList: responseData.Item.TransactionList == null ? [] : responseData.Item.TransactionList, isLoading: false\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\r\n\tHandleCheck(trans) {\r\n\t\tvar selectList = [...this.state.selectList];\r\n\r\n\t\tselectList = this.state.selectList.includes(trans.TransactionEtransferId)\r\n\t\t\t? this.state.selectList.filter(t => t !== trans.TransactionEtransferId)\r\n\t\t\t: [...this.state.selectList, trans.TransactionEtransferId];\r\n\r\n\t\tthis.setState(state => ({\r\n\t\t\tselectList,\r\n\t\t\tcheckedValues: state.checkedValues.includes(trans)\r\n\t\t\t\t? state.checkedValues.filter(c => c !== trans)\r\n\t\t\t\t: [...state.checkedValues, trans]\r\n\t\t}));\r\n\t}\r\n\r\n\thandleTrace = () => {\r\n\t\tif (this.state.selectList.length > 0)\r\n\t\t\tthis.setState({\r\n\t\t\t\tisLoading: false,\r\n\t\t\t\talert: this.hideAlert()} OnConfirm={() => this.handleTraceOk(this.state.selectList)} />\r\n\t\t\t});\r\n\t\telse {\r\n\t\t\tthis.ShowErrorMessage(\"Trace List must not be null !!\");\r\n\t\t}\r\n\t}\r\n\r\n\thandleTraceOk = (IdList) => {\r\n\t\tthis.showLoading();\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/BankBmoEFT/TraceIncomingEftByIds\",\r\n\t\t\t{ TransactionEFTIds: IdList },\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowErrorMessage(\"Error =>\" + responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tisLoading: false,\r\n\t\t\t\t\t\tselectList: {},\r\n\t\t\t\t\t\talert: this.hideAlert()} />\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tthis.errorCallback\r\n\t\t);\r\n\t}\r\n\r\n\tShowErrorMessage = (message) => {\r\n\t\tthis.setState({\r\n\t\t\tisLoading: false,\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\r\n\terrorCallback(error) {\r\n\t\tthis.hideLoading();\r\n\t\tthis.showErrorMessage(\"An error occurred during the api visit\" + error);\r\n\t}\r\n\r\n\tshowErrorMessage(message) {\r\n\t\tthis.setState({\r\n\t\t\tisLoading: false,\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\r\n\thandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tgetDataList: [],\r\n\t\t\tsummaryModel: {}\r\n\t\t});\r\n\t}\r\n\tshowLoading = () => { this.setState({ isLoading: true }); }\r\n\thideLoading = () => { this.setState({ isLoading: false }); }\r\n\thideAlert() { this.setState({ alert: null }); }\r\n\r\n\tExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.accessor != \"Actions\" && c.accessor != \"ED\" && (c.show == undefined || c.show)) {\r\n\t\t\t\ttrxColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: trxColumns, ExportSelectedColumns: trxColumns });\r\n\t}\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tif (!this.IsValid())\r\n\t\t\treturn;\r\n\r\n\t\tconst temp = { ...this.state.model };\r\n\r\n\t\tvar jsonColList = [];\r\n\r\n\t\tvar trxColumns = {};\r\n\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\ttrxColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t});\r\n\t\tjsonColList.push(trxColumns);\r\n\r\n\t\tvar mytitle = \"Interac e-Transfer Incoming Transfers\";\r\n\r\n\t\ttemp.jsonFile = {\r\n\t\t\tcolmns: jsonColList,\r\n\t\t\tformat: this.state.ExportReportType,\r\n\t\t\ttitle: mytitle\r\n\t\t};\r\n\t\tvar request = {\r\n\t\t\tClientId: temp.ClientId,\r\n\t\t\tSearchStartDate: temp.SearchStartDate,\r\n\t\t\tSearchEndDate : temp.SearchEndDate,\r\n\t\t\tTransactionTypeId:temp.TransactionTypeId,\r\n\t\t\tNotificationStatusId:temp.NotificationStatusId,\r\n\t\t\tApplicationId:temp.ApplicationId,\r\n\t\t\tRefNo:temp.RefNo,\r\n\t\t\tAccountNumber:temp.AccountNumber,\r\n\t\t\tInteracRefNo:temp.InteracRefNo,\r\n\t\t\tjsonFile: temp.jsonFile\r\n\t};\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\"/bankapi/v1.0/DDT/DDTTransactionETransfersExportDownload\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t},\r\n\t\t\tthis.props.showMessage\r\n\t\t);\r\n\t}\r\n\t\r\n\tshowLoading = () => { this.setState({ isLoading: true }); }\r\n\thideLoading = () => { this.setState({ isLoading: false }); }\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, summaryModel, isLoading, isBackOffice, checkedValues, LimitToken, vModel } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t{}, Disabled: Disabled || this.state.selectList.length > 0 ? false : true },\r\n\t\t\t\t\t{ Code: \"Clear\", OnClick: this.handleClear, Disabled: Disabled },\r\n\t\t\t\t\t{ Code: \"Export\", OnClick: this.ExportClick, Disabled: Disabled }\r\n\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\r\n\t\t\t\t\r\n\t\t\t\t{/*EXPORT DIALOG*/}\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\tValue={model.ClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t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omingETransferTransactionPaged\"\r\n\t\t\t\t\t\t\t\t\tRequestMethod=\"POST\"\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\n\r\nDDTIncomingEtransferTransactions.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\thandleOperationType: PropTypes.func,\r\n\tSelectedRowChange: PropTypes.func,\r\n\tshowQuestionMessage: func,\r\n\tsetAppLeftTitle: func,\r\n\tsetAppCenterTitle: func,\r\n\tDisabled: bool\r\n};\r\n\r\nexport default withArtifex(DDTIncomingEtransferTransactions, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport {\r\n\tGenericAlert,\r\n GenericExpansionPanel,\r\n GenericGrid,\r\n GenericSelectInput,\r\n GenericTitle,\r\n} from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nclass DdtReturnAccount extends Component {\r\n constructor(props) {\r\n super(props);\r\n\r\n this.initialModel = {\r\n ProfileId: 0,\r\n ReturnAccountId: 0,\r\n UniqueClientId: ClientHelper.IsClient()\r\n ? ClientHelper.GetClientRowId()\r\n : undefined,\r\n IsRequiredUniqueClientId: true,\r\n };\r\n\r\n this.state = {\r\n model: this.initialModel,\r\n list: [],\r\n\t\tvModel: {},\r\n isLoading: false,\r\n };\r\n\r\n this.emptyObject = {};\r\n this.parameterUniqueClientId = {\r\n UniqueClientId: ClientHelper.IsClient()\r\n ? ClientHelper.GetClientId()\r\n : undefined,\r\n };\r\n }\r\n\r\n componentDidMount() {\r\n this.props.setAppLeftTitle(\"DDT Return Account Profile\");\r\n this.props.setAppCenterTitle(\"DDT MANAGEMENT\");\r\n }\r\n\r\n HandleChange = (name, newValue, data) => {\r\n const model = { ...this.state.model };\r\n model[name] = newValue;\r\n if (newValue == null) {\r\n model[name] = 0;\r\n }\r\n\r\n this.setState({ model });\r\n };\r\n\r\n HandleSearch = () => {\r\n const model = { ...this.state.model };\r\n\r\n this.setState({ isLoading: true });\r\n Proxy.POST(\r\n \"/bankapi/v1.0/Ddt/GetReturnDdtAccountProfile\",\r\n {\r\n ProfileId: model.ProfileId,\r\n UniqueClientId: model.UniqueClientId,\r\n ReturnAccountId: model.ReturnAccountId,\r\n ReturnAccountNumber: model.ReturnAccountNumber,\r\n ReturnAccountName: model.ReturnAccountName,\r\n ReturnAccountOwnerName: model.ReturnAccountOwnerName,\r\n },\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n if (!responseData.IsSucceeded) {\r\n this.props.showMessage(\r\n \"error\",\r\n \"Error\",\r\n responseData.ErrorDescription\r\n );\r\n return;\r\n }\r\n if (responseData.Item !== null) {\r\n this.setState({ list: responseData.Item });\r\n }\r\n },\r\n (error) => {\r\n this.setState({ isLoading: false });\r\n this.props.showMessage(\"error\", \"Error\", error);\r\n }\r\n );\r\n };\r\n\r\n HandleInsert = () => {\r\n if (!this.Validate()) {\r\n return;\r\n }\r\n const model = { ...this.state.model };\r\n this.setState({ isLoading: true });\r\n Proxy.POST(\r\n \"/bankapi/v1.0/Ddt/InsertDdtReturnAccountProfile\",\r\n {\r\n ProfileId: model.ProfileId,\r\n UniqueClientId: model.UniqueClientId,\r\n ReturnAccountId: model.ReturnAccountId,\r\n },\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n if (!responseData.IsSucceeded) {\r\n this.props.showMessage(\r\n \"error\",\r\n \"Error\",\r\n responseData.ErrorDescription\r\n );\r\n return;\r\n }\r\n if (responseData.IsSucceeded) {\r\n this.setState({ model: { ...this.initialModel }, index: -1 });\r\n this.props.showMessage(\r\n \"success\",\r\n \"Succeeded\",\r\n \"Operation is successfully!\"\r\n );\r\n this.HandleSearch();\r\n }\r\n },\r\n (error) => {\r\n this.setState({ isLoading: false });\r\n this.props.showMessage(\"error\", \"Error\", error);\r\n }\r\n );\r\n };\r\n\r\n HandleUpdate = () => {\r\n if (!this.Validate()) {\r\n return;\r\n }\r\n const model = { ...this.state.model };\r\n this.setState({ isLoading: true });\r\n Proxy.POST(\r\n \"/bankapi/v1.0/Ddt/UpdateDdtReturnAccountProfile\",\r\n {\r\n ProfileId: model.ProfileId,\r\n UniqueClientId: model.UniqueClientId,\r\n ReturnAccountId: model.ReturnAccountId,\r\n },\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n if (!responseData.IsSucceeded) {\r\n this.props.showMessage(\r\n \"error\",\r\n \"Error\",\r\n responseData.ErrorDescription\r\n );\r\n return;\r\n }\r\n if (responseData.IsSucceeded) {\r\n this.setState({ model: { ...this.initialModel }, index: -1 });\r\n this.props.showMessage(\r\n \"success\",\r\n \"Succeeded\",\r\n \"Operation is successfully!\"\r\n );\r\n this.HandleSearch();\r\n }\r\n },\r\n (error) => {\r\n this.setState({ isLoading: false });\r\n this.props.showMessage(\"error\", \"Error\", error);\r\n }\r\n );\r\n };\r\n\r\n HandleDelete = () => {\r\n if (!this.Validate()) {\r\n return;\r\n }\r\n const model = { ...this.state.model };\r\n this.setState({ isLoading: true });\r\n Proxy.POST(\r\n \"/bankapi/v1.0/Ddt/DeleteDdtReturnAccountProfile\",\r\n {\r\n ProfileId: model.ProfileId,\r\n UniqueClientId: model.UniqueClientId,\r\n ReturnAccountId: model.ReturnAccountId,\r\n },\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n if (!responseData.IsSucceeded) {\r\n this.props.showMessage(\r\n \"error\",\r\n \"Error\",\r\n responseData.ErrorDescription\r\n );\r\n return;\r\n }\r\n if (responseData.IsSucceeded) {\r\n this.setState({ model: { ...this.initialModel }, index: -1 });\r\n this.props.showMessage(\r\n \"success\",\r\n \"Succeeded\",\r\n \"Operation is successfully!\"\r\n );\r\n this.HandleSearch();\r\n }\r\n },\r\n (error) => {\r\n this.setState({ isLoading: false });\r\n this.props.showMessage(\"error\", \"Error\", error);\r\n }\r\n );\r\n };\r\n\r\n Validate = () => {\r\n\tconst { model, vModel } = this.state;\r\n\tvar messages = [];\r\n\r\n\tvModel.UniqueClientId = model.UniqueClientId == (null || undefined || 0);\r\n\tif (vModel.UniqueClientId) \r\n\t\tmessages.push(\"Client must be select\");\r\n\r\n\tvModel.ReturnAccountId = model.ReturnAccountId == (null || undefined || 0);\r\n\tif (vModel.ReturnAccountId)\r\n\t\tmessages.push(\"Return Account must be select\");\r\n\r\n\tif (messages.length > 0) {\r\n\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\treturn false;\r\n\t}\r\n\r\n\tthis.setState({ vModel });\r\n\treturn true;\r\n };\r\n\r\n ShowMessageNode = (type, title, message) => {\r\n\tthis.setState({\r\n\t\talert: \r\n\t\t\tthis.setState({ alert: \"\" })} />\r\n\t});\r\n};\r\n\r\n RowSelected = (index) => {\r\n const model = this.state.list[index];\r\n this.setState({ model, rowIndex: index });\r\n };\r\n\r\n HandleClear = () => {\r\n this.setState({\r\n model: { ...this.initialModel },\r\n isEdit: false,\r\n index: -1,\r\n });\r\n\r\n\t console.log(this.state.model);\r\n };\r\n\r\n render() {\r\n const { Disabled } = this.props;\r\n const { alert, model, list, isLoading } = this.state;\r\n\r\n return (\r\n
\r\n \r\n\r\n {alert}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n `${d.UniqueClientId} - ${d.Name}`}\r\n Value={model.UniqueClientId}\r\n ValueChanged={this.HandleChange}\r\n CanClear\r\n\t\t\t\t\t\t\t Disabled={ClientHelper.IsClient()}\r\n DefaultIndex={ClientHelper.IsClient() ? 0 : -1}\r\n\t\t\t\t\t\t\t All\r\n />\r\n \r\n \r\n 0 ? { UniqueClientId : model.UniqueClientId } : { } }\r\n DataRoot=\"Item\"\r\n KeyValueMember=\"Id\"\r\n RenderItem={(d) =>\r\n `${d.AccountNumber} - ${d.AccountName}`\r\n }\r\n Value={model.ReturnAccountId}\r\n ValueChanged={this.HandleChange}\r\n CanClear\r\n Required\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\nDdtReturnAccount.propTypes = {\r\n classes: PropTypes.object.isRequired,\r\n Disabled: PropTypes.bool,\r\n};\r\n\r\nexport default withArtifex(DdtReturnAccount, {});\r\n","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { SuspiciousIcon } from \"core/Icons\";\r\nimport MenuAuthorityRightHelper from \"core/MenuAuthorityRightHelper\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport moment from \"moment\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport ToolBar from \"views/Components/DynamicToolbar\";\r\nimport { GenericAlert, GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle, GenericRadioInput} from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { ActionCodes, BankTransactionStatus, GridColumnType, MenuCodes, Portals, ProgramCodes } from \"views/Constants/Constant\";\r\nimport Select from \"react-select\";\r\n\r\nconst styles = ({\r\n\tGridItemFreePadding: {\r\n\t\tpadding: \"0px 5px !important\",\r\n\t\tmarginLeft: \"0px !important\"\r\n\t},\r\n\tGridItemTextFreePadding: {\r\n\t\tpaddingLeft: \"-2px !important\"\r\n\t}\r\n});\r\nclass DDTTransactionSearch extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tFromDate: DateHelper.GetDate(),\r\n\t\t\t\tToDate: DateHelper.GetDate()\r\n\t\t\t},\r\n\t\t\ttoolBarModel: {},\r\n\t\t\ttempModel: {},\r\n\t\t\tgetDataList: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tpoolModel: {},\r\n\t\t\tisBackOff: false,\r\n\t\t\tisSalesPerson: false,\r\n\t\t\tsuspiciousDialog: false,\r\n\t\t\tgridButtonRightDetail: []\r\n\t\t};\r\n\r\n\t\tthis.MenuAuthorityRightHelper = new MenuAuthorityRightHelper();\r\n\r\n\t\tthis.handleChange = this.handleChange.bind(this);\r\n\t\tthis.handleChangeTempModel = this.handleChangeTempModel.bind(this);\r\n\t\tthis.GetData = this.GetData.bind(this);\r\n\t\tthis.errorCallback = this.errorCallback.bind(this);\r\n\t\tthis.hideAlert = this.hideAlert.bind(this);\r\n\t\tthis.showErrorMessage = this.showErrorMessage.bind(this);\r\n\t\tthis.successSummaryCallback = this.successSummaryCallback.bind(this);\r\n\t\tthis.successCallback = this.successCallback.bind(this);\r\n\t\tthis.ddtTraTable = React.createRef();\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\r\n\t\tvar isBackOff = ClientHelper.IsBackOffice();\r\n\t\tvar isSalesPerson = ClientHelper.IsSalesPerson();\r\n\t\tvar model = { ...this.state.model };\r\n\t\tif (!isBackOff && !isSalesPerson) {\r\n\t\t\tmodel[\"ClientId\"] = ClientHelper.GetClientRowId();\r\n\t\t\tthis.GetToolbarData();\r\n\t\t}\r\n\r\n\t\tif (this.props.MenuCode == MenuCodes.Backoffice_SalesPersonDdtTransactionSearch) {\r\n\t\t\tif (setAppLeftTitle) setAppLeftTitle(\"DDT Transactions\");\r\n\t\t\tif (setAppCenterTitle) setAppCenterTitle(\"SALES PERSON\");\r\n\t\t}\r\n\t\telse if (this.props.MenuCode == MenuCodes.CallCenterDDTTransactions) {\r\n\t\t\tif (setAppLeftTitle) setAppLeftTitle(\"DDT Transaction Search\");\r\n\t\t\tif (setAppCenterTitle) setAppCenterTitle(\"CALL CENTER\");\r\n\r\n\t\t\tthis.GetGridButtonsRight();\r\n\t\t} else {\r\n\t\t\tif (setAppLeftTitle) setAppLeftTitle(\"DDT Transactions\");\r\n\t\t\tif (setAppCenterTitle) setAppCenterTitle(\"DDT MANAGEMENT\");\r\n\t\t}\r\n\r\n\t\tthis.props.setPortal(Portals.DDT);\r\n\r\n\t\tvar data = RouteHelper.ReadAndClear(\"DDTTransactionSearch_Date\");\r\n\r\n\t\tif (data) {\r\n\t\t\tmodel.FromDate = DateHelper.ToMoment(data.FromDate);\r\n\t\t\tmodel.ToDate = DateHelper.ToMoment(data.ToDate);\r\n\t\t\tmodel.IsSettled = data.IsSettled;\r\n\t\t\tthis.setState({ isBackOff: isBackOff, model, isSalesPerson });\r\n\t\t\tthis.GetData(model);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.setState({ isBackOff: isBackOff, model, isSalesPerson });\r\n\t\t}\r\n\t}\r\n\r\n\tGetToolbarData = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.GET(\r\n\t\t\t\"/bankapi/v1.0/Ddt/GetAllDDTCDICNumberAndBalance\",\r\n\t\t\tthis.successCallback,\r\n\t\t\tthis.errorCallback\r\n\t\t);\r\n\t}\r\n\r\n\tsuccessCallback(responseData) {\r\n\t\tvar toolBarModel = { ...this.state.toolBarModel };\r\n\t\tvar poolModel = { ...this.state.poolModel };\r\n\t\tvar model = { ...this.state.model };\r\n\t\tpoolModel.FinInsId = responseData.Item == null || undefined ? \"\" : responseData.Item.CDICPoolAccountInfo == null || undefined ? \"\" : responseData.Item.CDICPoolAccountInfo.FinInsId == null || undefined ? \"\" : responseData.Item.CDICPoolAccountInfo.FinInsId;\r\n\t\tmodel.PrimaryBranchId = responseData.Item == null || undefined ? \"\" : responseData.Item.CDICPoolAccountInfo == null || undefined ? \"\" : responseData.Item.CDICPoolAccountInfo.BranchId == null || undefined ? \"\" : responseData.Item.CDICPoolAccountInfo.BranchId;\r\n\t\tmodel.PrimaryAccountNumber = responseData.Item == null || undefined ? \"\" : responseData.Item.CDICPoolAccountInfo == null || undefined ? \"\" : responseData.Item.CDICPoolAccountInfo.AccountNumber == null || undefined ? \"\" : responseData.Item.CDICPoolAccountInfo.AccountNumber;\r\n\r\n\t\ttoolBarModel.TotalDDTNumber = responseData.Item == null || undefined ? 0 : responseData.Item.TotalDDTNumber == null || undefined ? 0 : responseData.Item.TotalDDTNumber;\r\n\t\ttoolBarModel.TotalDDTBalance = responseData.Item == null || undefined ? \"\" : responseData.Item.DDTPoolAccountInfo == null || undefined ? \"\" : responseData.Item.DDTPoolAccountInfo.Balance == null || undefined ? \"\" : responseData.Item.DDTPoolAccountInfo.Balance;\r\n\t\ttoolBarModel.TotalCDICNumber = responseData.Item == null || undefined ? 0 : responseData.Item.TotalCDICNumber == null || undefined ? 0 : responseData.Item.TotalCDICNumber;\r\n\t\ttoolBarModel.TotalCDICBalance = responseData.Item == null || undefined ? \"\" : responseData.Item.CDICPoolAccountInfo == null || undefined ? \"\" : responseData.Item.CDICPoolAccountInfo.Balance == null || undefined ? \"\" : responseData.Item.CDICPoolAccountInfo.Balance;\r\n\t\tthis.setState({ model, toolBarModel, poolModel, isLoading: false });\r\n\t}\r\n\r\n\thandleChange(name, newValue, data) {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (name == \"SettlementStatus\")\r\n\t\t\tif (data.ParameterDesc == \"Yes\")\r\n\t\t\t\tmodel[name] = true;\r\n\t\t\telse\r\n\t\t\t\tmodel[name] = false;\r\n\t\telse\r\n\t\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\tValueChangedForReportType = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\r\n\thandleChangeTempModel(name, newValue, data) {\r\n\t\tconst tempModel = { ...this.state.tempModel };\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (name == \"SettlementStatus\") {\r\n\t\t\tif (newValue != -1) {\r\n\t\t\t\tif (data.ParameterDesc == \"Yes\") {\r\n\t\t\t\t\ttempModel[name] = newValue;\r\n\t\t\t\t\tmodel[name] = true;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\ttempModel[name] = newValue;\r\n\t\t\t\t\tmodel[name] = false;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\ttempModel[name] = newValue;\r\n\t\t\t\tmodel[name] = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t\ttempModel[name] = newValue;\r\n\t\tthis.setState({ tempModel, model });\r\n\t}\r\n\r\n\tGetData(model) {\r\n\t\tvar tempModel = model ? model : this.state.model;\r\n\t\tif ((tempModel.FromDate == null || tempModel.FromDate === \"\") || (tempModel.ToDate == null || tempModel.ToDate === \"\"))\r\n\t\t\tthis.showErrorMessage(\"FromDate / ToDate can not be null !!\");\r\n\t\telse {\r\n\t\t\tvar interval = moment.duration(tempModel.ToDate.diff(tempModel.FromDate)).asDays();\r\n\t\t\tif (interval <= 31) {\r\n\t\t\t\tthis.setState({ isLoading: true });\r\n\t\t\t\tProxy.POST(\r\n\t\t\t\t\t\"/bankapi/v1.0/Ddt/SearchTransactionDdt\",\r\n\t\t\t\t\ttempModel,\r\n\t\t\t\t\tthis.successSummaryCallback,\r\n\t\t\t\t\tthis.errorCallback\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tisLoading: false,\r\n\t\t\t\t\talert: this.hideAlert()} />\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tsuccessSummaryCallback(responseData) {\r\n\t\tthis.hideAlert();\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.showErrorMessage(responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (responseData.Item == null || responseData.Item.length < 1) {\r\n\t\t\tthis.setState({ getDataList: [], isLoading: false });\r\n\t\t} else {\r\n\t\t\tthis.setState({\r\n\t\t\t\tgetDataList: responseData.Item.map(x => {\r\n\t\t\t\t\treturn {\r\n\t\t\t\t\t\tId: x.Id,\r\n\t\t\t\t\t\tClientName: x.ClientName == null ? \"\" : x.ClientName,\r\n\t\t\t\t\t\tClientUniqueClientId: x.ClientUniqueClientId == null ? \"\" : x.ClientUniqueClientId,\r\n\t\t\t\t\t\tTransactionSource: x.TransactionSource == null ? \"\" : x.TransactionSource,\r\n\t\t\t\t\t\tCustomerNumber: x.CustomerNumber == null ? \"\" : x.CustomerNumber,\r\n\t\t\t\t\t\tCustomerName: x.CustomerName == null ? \"\" : x.CustomerName,\r\n\t\t\t\t\t\tTransitNumber: x.TransitNumber == null ? \"\" : x.TransitNumber,\r\n\t\t\t\t\t\tDDTNumber: x.DDTNumber == null ? \"\" : x.DDTNumber,\r\n\t\t\t\t\t\tStore: x.StoreCode == null ? \"\" : x.StoreCode,\r\n\t\t\t\t\t\tDate: x.Date == null ? \"\" : x.Date,\r\n\t\t\t\t\t\tTransactionType: x.TransactionType == null ? \"\" : x.TransactionType,\r\n\t\t\t\t\t\tSettlementStatus: x.SettlementStatus == null ? \"\" : x.SettlementStatus == true ? \"Yes\" : \"No\",\r\n\t\t\t\t\t\tAmount: x.Amount == null ? \"\" : x.Amount,\r\n\t\t\t\t\t\tDDTStatus: x.DDTStatus == null ? \"\" : x.DDTStatus,\r\n\t\t\t\t\t\tDDTStatusCode: x.DDTStatusCode == null ? \"\" : x.DDTStatusCode\r\n\t\t\t\t\t};\r\n\t\t\t\t}), isLoading: false\r\n\t\t\t});\r\n\t\t\tthis.GetToolbarData();\r\n\t\t}\r\n\t}\r\n\r\n\terrorCallback(error) {\r\n\t\tthis.setState({ isLoading: false, alert: null });\r\n\t\tthis.showErrorMessage(\"An error occurred during the api visit\" + error);\r\n\t}\r\n\r\n\tHandleSuspicious = model => {\r\n\t\tthis.setState({ sdTransactionId: model.Id, suspiciousDialog: true });\r\n\t}\r\n\r\n\tHandleSuspiciousConfirm = () => {\r\n\t\tconst { sdCancelMemo, sdCancelReasonId, sdTransactionId } = this.state;\r\n\r\n\t\tthis.ShowConfirmMessage(\"warning\", \"Workflow Confirmation\", \"Are you sure to send it for workflow confirmation ?\", () => {\r\n\r\n\t\t\tvar data = {\r\n\t\t\t\tTransactionId: sdTransactionId,\r\n\t\t\t\tCancelReasonId: sdCancelReasonId,\r\n\t\t\t\tCancelMemo: sdCancelMemo\r\n\t\t\t};\r\n\r\n\t\t\tvar jsonData = JSON.stringify(data);\r\n\r\n\t\t\tvar requestData = {\r\n\t\t\t\tMenuCode: MenuCodes.Ddt_SuspiciousApprove,\r\n\t\t\t\tActionCode: ActionCodes.Submit,\r\n\t\t\t\tJsonData: jsonData,\r\n\t\t\t\tRowId: data.TransactionId\r\n\t\t\t};\r\n\r\n\t\t\tthis.setState({ alert: \"\", isLoading: true });\r\n\t\t\tProxy.POST(\"/coreapi/v1.0/WorkflowData/InsertWorkflowData\",\r\n\t\t\t\trequestData,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tthis.setState({ suspiciousDialog: false, sdCancelReasonId: \"\", sdCancelMemo: \"\" });\r\n\t\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Request successfully sent for approval\");\r\n\t\t\t\t},\r\n\t\t\t\terrorMessage => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", \"An error occurred while sending approve request \" + errorMessage);\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t});\r\n\t}\r\n\r\n\tGetGridButtonsRight = async () => {\r\n\t\tconst { MenuCode } = this.props;\r\n\t\tvar gridButtonRightDetail = await this.MenuAuthorityRightHelper.RightCheckList(MenuCode, [\"CALDDTSUSP\"]);\r\n\r\n\t\tthis.setState({ gridButtonRightDetail });\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({ alert: this.setState({ alert: \"\" })} /> });\r\n\t}\r\n\r\n\tShowConfirmMessage(type, title, message, onConfirm) {\r\n\t\tthis.setState({ alert: this.setState({ alert: \"\" })} OnConfirm={onConfirm} /> });\r\n\t}\r\n\r\n\tshowErrorMessage(message) {\r\n\t\tthis.setState({\r\n\t\t\tisLoading: false,\r\n\t\t\tgetDataList: [],\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\r\n\thideAlert() {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\thandleClear = () => {\r\n\t\tvar model = { ...this.state.model };\r\n\t\tvar ClientId = model.ClientId == null ? null : model.ClientId;\r\n\t\tthis.setState({\r\n\t\t\tmodel: {\r\n\t\t\t\tClientId: ClientId,\r\n\t\t\t\tFromDate: DateHelper.GetDate(),\r\n\t\t\t\tToDate: DateHelper.GetDate()\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\tExportClick = () => {\r\n\t\tvar ddtTraColumns = [];\r\n\t\tthis.ddtTraTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.show == undefined || c.show) {\r\n\t\t\t\tddtTraColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: ddtTraColumns, ExportSelectedColumns: ddtTraColumns });\r\n\t}\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\r\n\t\tconst temp = { ...this.state.model };\r\n\r\n\r\n\t\tvar jsonColList = [];\r\n\r\n\t\tvar ddtTraColumns = {};\r\n\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\tddtTraColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t});\r\n\t\tjsonColList.push(ddtTraColumns);\r\n\r\n\t\tvar mytitle = \"DDT Transactions\";\r\n\r\n\t\ttemp.jsonFile = {\r\n\t\t\tcolmns: jsonColList,\r\n\t\t\tformat: this.state.ExportReportType,\r\n\t\t\ttitle: mytitle\r\n\t\t};\r\n\r\n\t\tvar request = {\r\n\t\t\t\tClientId: temp.ClientId,\r\n\t\t\t\tFinInsId: temp.FinInsId,\r\n\t\t\t\tAccNumber : temp.AccNumber,\r\n\t\t\t\tCustomerNumber:temp.CustomerNumber,\r\n\t\t\t\tAccountStatusId:temp.AccountStatusId,\r\n\t\t\t\tAmount:temp.Amount,\r\n\t\t\t\tTransactionSourceId:temp.TransactionSourceId,\r\n\t\t\t\tSettlementStatus:temp.SettlementStatus,\r\n\t\t\t\tFromDate:temp.FromDate,\r\n\t\t\t\tToDate:temp.ToDate,\r\n\t\t\t\tjsonFile: temp.jsonFile\r\n\t\t};\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\"/bankapi/v1.0/DDT/DDTTransactionExportDownload\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t},\r\n\t\t\tthis.props.showMessage\r\n\t\t);\r\n\t}\r\n\r\n\tshowLoading = () => { this.setState({ isLoading: true }); }\r\n\thideLoading = () => { this.setState({ isLoading: false }); }\r\n\r\n\trender() {\r\n\t\tconst { Disabled, classes } = this.props;\r\n\t\tconst { model, isLoading, toolBarModel, tempModel, poolModel, isBackOff, suspiciousDialog, sdCancelReasonId, sdCancelMemo, isSalesPerson, gridButtonRightDetail } = this.state;\r\n\r\n\t\tvar IsCallCenter = this.props.MenuCode === MenuCodes.CallCenterDDTTransactions;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\t\t\t\t{!isBackOff && !isSalesPerson &&\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={model.ClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={!isBackOff && !isSalesPerson} />\r\n\t\t\t\t\t\t\t\t\t\t\t{!this.state.isBackOff && !isSalesPerson &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\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r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tIcon={SuspiciousIcon}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tOnClick={() => { this.HandleSuspicious(row.original); }} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"Date\",\r\n\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTimeUtc\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Source\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionSource\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Type\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionType\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Unique Client Id\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ClientUniqueClientId\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Customer Number\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"CustomerNumber\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"CustomerName\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Fee Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"FeeAmount\",\r\n\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transit Number\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransitNumber\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"DDT Number\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"DDTNumber\"\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_DDT}\r\n\t\t\t\t\t\t\t\t\tPageSize={10}\r\n\t\t\t\t\t\t\t\t\tShowPagination={true}\r\n\t\t\t\t\t\t\t\t\tref={this.ddtTraTable}\r\n\t\t\t\t\t\t\t\t\t />\r\n\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t this.setState({ sdCancelReasonId: v })} ParameterCode={\"TransactionCancelReason\"} />\r\n\t\t\t\t\t\t\t\t this.setState({ sdCancelMemo: v })} />\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nDDTTransactionSearch.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\thandleOperationType: PropTypes.func,\r\n\tSelectedRowChange: PropTypes.func,\r\n\tshowQuestionMessage: PropTypes.func,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tsetPortal: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(DDTTransactionSearch, styles);","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport Select from \"react-select\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport ToolBar from \"views/Components/DynamicToolbar\";\r\nimport { GenericAlert, GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericNumberInput, GenericRadioInput, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, Portals, ProgramCodes } from \"views/Constants/Constant\";\r\n\r\nclass DdtAccountActivities extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.isBackOff = ClientHelper.IsBackOffice();\r\n\t\tthis.clientId = ClientHelper.GetClientRowId();\r\n\t\tthis.isSalesPerson = ClientHelper.IsSalesPerson();\r\n\t\tthis.cId = ClientHelper.GetClientId();\r\n\t\tthis.IsClient = ClientHelper.IsClient();\r\n\t\tthis.trxTable = React.createRef();\r\n\t\tthis.channelNameParemeter = {\r\n\t\t\tParameterCode: \"ChannelNameType\",\r\n\t\t\t\"ParameterValue2\": \"DDT\"\r\n\t\t};\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Unique Client Id\",\r\n\t\t\t\taccessor: \"UniqueClientId\",\r\n\t\t\t\tshow: this.isBackOff || this.isSalesPerson\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\",\r\n\t\t\t\tshow: this.isBackOff || this.isSalesPerson\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\taccessor: \"Date\",\r\n\t\t\t\ttype: GridColumnType.DateTimeUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Channel Name\",\r\n\t\t\t\taccessor: \"ChannelName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Type\",\r\n\t\t\t\taccessor: \"TransactionType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Status\",\r\n\t\t\t\taccessor: \"TransactionStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Number\",\r\n\t\t\t\taccessor: \"CustomerNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Email\",\r\n\t\t\t\taccessor: \"Email\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sender\",\r\n\t\t\t\taccessor: \"Sender\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"Amount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Fee Amount\",\r\n\t\t\t\taccessor: \"FeeAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transit Number\",\r\n\t\t\t\taccessor: \"TransitNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"DDT Number\",\r\n\t\t\t\taccessor: \"DdtNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reference Number\",\r\n\t\t\t\taccessor: \"ReferenceNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Interac Ref. Number\",\r\n\t\t\t\taccessor: \"InteracReferenceNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Description\",\r\n\t\t\t\taccessor: \"Description\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Source\",\r\n\t\t\t\taccessor: \"Source\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tFromDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tToDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tClientId: this.isBackOff ? undefined : this.clientId\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\ttoolBarModel: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tpoolModel: {}\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\t\tif (setAppLeftTitle) setAppLeftTitle(\"DDT Accounts Activities\");\r\n\t\tif (setAppCenterTitle) setAppCenterTitle(\"DDT MANAGEMENT\");\r\n\t\tthis.props.setPortal(Portals.DDT);\r\n\t\tthis.GetToolbarData();\r\n\r\n\t\tthis.setState({ loadingCompleted: true });\r\n\t}\r\n\r\n\tHandleChange = (name, newValue) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tvar { model } = this.state;\r\n\t\tvar ClientId = model.ClientId == null ? null : model.ClientId;\r\n\t\tmodel = this.initialModel;\r\n\t\tmodel.ClientId = ClientId;\r\n\r\n\t\tthis.setState({ model, trxGridToken: !this.state.trxGridToken });\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\r\n\tGetToolbarData = async () => {\r\n\t\tconst { ExecuteApiGet } = this.props;\r\n\t\tvar { model, poolModel, toolBarModel } = this.state;\r\n\t\tvar responseData = await ExecuteApiGet(\"/bankapi/v1.0/Ddt/GetAllDDTCDICNumberAndBalance\");\r\n\r\n\t\tpoolModel.FinInsId = responseData == null || undefined ? \"\" : responseData.CDICPoolAccountInfo == null || undefined ? \"\" : responseData.CDICPoolAccountInfo.FinInsId == null || undefined ? \"\" : responseData.CDICPoolAccountInfo.FinInsId;\r\n\t\tmodel.PrimaryBranchId = responseData == null || undefined ? \"\" : responseData.DDTPoolAccountInfo == null || undefined ? \"\" : responseData.DDTPoolAccountInfo.BranchId == null || undefined ? \"\" : responseData.DDTPoolAccountInfo.BranchId;\r\n\t\tmodel.PrimaryAccountNumber = responseData == null || undefined ? \"\" : responseData.DDTPoolAccountInfo == null || undefined ? \"\" : responseData.DDTPoolAccountInfo.AccountNumber == null || undefined ? \"\" : responseData.DDTPoolAccountInfo.AccountNumber;\r\n\r\n\t\ttoolBarModel.TotalDDTNumber = responseData == null || undefined ? 0 : responseData.TotalDDTNumber == null || undefined ? 0 : responseData.TotalDDTNumber;\r\n\t\ttoolBarModel.TotalDDTBalance = responseData == null || undefined ? \"\" : responseData.DDTPoolAccountInfo == null || undefined ? \"\" : responseData.DDTPoolAccountInfo.Balance == null || undefined ? \"\" : responseData.DDTPoolAccountInfo.Balance;\r\n\t\ttoolBarModel.TotalCDICNumber = responseData == null || undefined ? 0 : responseData.TotalCDICNumber == null || undefined ? 0 : responseData.TotalCDICNumber;\r\n\t\ttoolBarModel.TotalCDICBalance = responseData == null || undefined ? \"\" : responseData.CDICPoolAccountInfo == null || undefined ? \"\" : responseData.CDICPoolAccountInfo.Balance == null || undefined ? \"\" : responseData.CDICPoolAccountInfo.Balance;\r\n\t\tthis.setState({ model, toolBarModel, poolModel, isLoading: false });\r\n\t}\r\n\r\n\tGetData = () => { this.setState(state => ({ trxGridToken: !state.trxGridToken })); }\r\n\r\n\tExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.accessor != \"Actions\" && c.accessor != \"ED\" && (c.show == undefined || c.show)) {\r\n\t\t\t\ttrxColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: trxColumns, ExportSelectedColumns: trxColumns });\r\n\t}\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tconst temp = { ...this.state.model };\r\n\r\n\t\tvar jsonColList = [];\r\n\r\n\t\tvar trxColumns = {};\r\n\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\ttrxColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t});\r\n\t\tjsonColList.push(trxColumns);\r\n\r\n\t\ttemp.jsonFile = {\r\n\t\t\ttitle: \"Ddt Account Activities\",\r\n\t\t\tformat: this.state.ExportReportType,\r\n\t\t\tcolmns: jsonColList,\r\n\t\t\tmodel: {\r\n\t\t\t\tDateFilter: { BeginDate: this.state.model.FromDate, EndDate: this.state.model.ToDate }\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\"/bankapi/v1.0/Ddt/SearchDdtAccountActivitiesExportDownload\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t},\r\n\t\t\tthis.ShowMessage\r\n\t\t);\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tHideAlert = () => {\r\n\t\tthis.setState({ alert: null, isLoading: false });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled, classes } = this.props;\r\n\t\tconst { model, poolModel, toolBarModel, isLoading } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t{this.state.alert}\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\tclassNamePrefix=\"select\" />\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t{!this.isBackOff && !this.isSalesPerson &&\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={model.ClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.HandleChange}\r\n\t\t\t\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\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t { return this.state.model; }}\r\n\t\t\t\t\t\t\t\t\tRequestUrl=\"/bankapi/v1.0/Ddt/SearchDdtAccountActivitiesPaged\"\r\n\t\t\t\t\t\t\t\t\tRequestMethod=\"POST\"\r\n\t\t\t\t\t\t\t\t\tColumns={this.columns}\r\n\t\t\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_DDT} />\r\n\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nDdtAccountActivities.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\thandleOperationType: PropTypes.func,\r\n\tSelectedRowChange: PropTypes.func,\r\n\tshowQuestionMessage: PropTypes.func,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tsetPortal: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(DdtAccountActivities, {});","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport DDTListStyle from \"assets/jss/material-dashboard-pro-react/views/DDTListStyle.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport AlertHelper from \"core/AlertHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { EditIcon } from \"core/Icons\";\r\nimport PropTypes, { array, object } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport { GenericAlert, GenericDialog, GenericDialogActions, GenericGrid, GenericLabel } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton.jsx\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\nimport DDTCustomerInfo from \"./DDTCustomerInfo\";\r\n\r\nclass DDTList extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tIsEmailValid: true,\r\n\t\t\tmodel: {\r\n\t\t\t\tFinInsId: 0,\r\n\t\t\t\tFinInsBranchId: 0,\r\n\t\t\t\tAccNumber: 0,\r\n\t\t\t\tDetailId: 0,\r\n\t\t\t\tCustomerNumber: \"\"\r\n\t\t\t},\r\n\t\t\tdataList: [],\r\n\t\t\tddtModel: {\r\n\t\t\t\tId: 0,\r\n\t\t\t\tName: \"\",\r\n\t\t\t\tEmail: \"\",\r\n\t\t\t\tPhone: {}\r\n\t\t\t},\r\n\t\t\tPhone: {\r\n\t\t\t\tId: 0,\r\n\t\t\t\tPhoneCountryCodeId: 0,\r\n\t\t\t\tPhoneNumber: \"\"\r\n\t\t\t},\r\n\t\t\topenDialog: false,\r\n\t\t\talert: null\r\n\t\t};\r\n\t\tthis.OpenEditModal = this.OpenEditModal.bind(this);\r\n\t\tthis.handleChange = this.handleChange.bind(this);\r\n\r\n\t\tthis.successEditCallBack = this.successEditCallBack.bind(this);\r\n\t\tthis.errorCallback = this.errorCallback.bind(this);\r\n\t\tthis.EditDDT = this.EditDDT.bind(this);\r\n\t}\r\n\r\n\thandleChange(name, newValue, data) {\r\n\t\tconst ddtModel = { ...this.state.ddtModel };\r\n\t\tvar { IsEmailValid } = this.state;\r\n\t\tconst Phone = { ...this.state.Phone };\r\n\t\tif (name == \"PhoneCountryCodeId\" || name == \"PhoneNumber\")\r\n\t\t\tPhone[name] = newValue;\r\n\t\telse\r\n\t\t\tddtModel[name] = newValue;\r\n\r\n\t\tif (name == \"Email\") {\r\n\t\t\tIsEmailValid = newValue == \"\" ? true : data.IsValid;\r\n\t\t}\r\n\r\n\t\tthis.setState({ ddtModel, Phone, IsEmailValid });\r\n\t}\r\n\r\n\tEditDDT() {\r\n\t\tconst ddtModel = { ...this.state.ddtModel };\r\n\t\tddtModel.Phone = this.state.Phone;\r\n\t\tthis.setState({ ddtModel });\r\n\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Ddt/UpdateDdtDetail\",\r\n\t\t\tddtModel,\r\n\t\t\tthis.successEditCallBack,\r\n\t\t\tthis.errorCallback\r\n\t\t);\r\n\t}\r\n\r\n\tsuccessEditCallBack(responseData) {\r\n\t\tthis.setState({ openDialog: false });\r\n\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ alert: AlertHelper.CreateAlert(\"Success\", \"DDT Number Information successfully edited.\", \"success\", this.hideAlert) });\r\n\t\tthis.props.propGetAllData();\r\n\t}\r\n\r\n\terrorCallback(error) {\r\n\t\tthis.handleClose();\r\n\t\tthis.showErrorMessage(\"An error occurred during the api visit\" + error);\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { ddtModel, vModel } = this.state;\r\n\r\n\t\tvar messages = [];\r\n\r\n\t\tvModel.Name = ddtModel.Name == null || ddtModel.Name == \"\";\r\n\t\tif (vModel.Name) messages.push(\"Name must be entered\");\r\n\r\n\t\tvModel.LastName = ddtModel.LastName == null || ddtModel.LastName == \"\";\r\n\t\tif (vModel.LastName) messages.push(\"Last Name must be entered\");\r\n\r\n\t\tvModel.Email = !this.state.IsEmailValid;\r\n\t\tif (vModel.Email) messages.push(\"E-Mail is invalid\");\r\n\r\n\t\t// vModel.DateOfBirth = typeof ddtModel.DateOfBirth != \"object\" || ddtModel.DateOfBirth == \"\" || ddtModel.DateOfBirth == null;\r\n\t\t// if (vModel.EndDate) messages.push(\"Birth Date must be selected\");\r\n\r\n\t\tvar interval = DateHelper.GetDate().diff(ddtModel.DateOfBirth, \"years\");\r\n\t\tif (ddtModel.DateOfBirth && interval < 18) {\r\n\t\t\tmessages.push(\"Date of Birth must be bigger than 18\");\r\n\t\t}\r\n\r\n\t\tvModel.AddressLine1 = ddtModel.AddressLine1 == null || ddtModel.AddressLine1 == \"\";\r\n\t\tif (vModel.AddressLine1) messages.push(\"Address Line 1 must be entered\");\r\n\r\n\t\tvModel.ZipCode = ddtModel.ZipCode == null || ddtModel.ZipCode == \"\";\r\n\t\tif (vModel.ZipCode) messages.push(\"Postal Code must be entered\");\r\n\r\n\t\tvModel.CountryId = ddtModel.CountryId == null || ddtModel.CountryId == 0;\r\n\t\tif (vModel.CountryId) messages.push(\"Country must be selected\");\r\n\r\n\t\tvModel.ProvinceId = ddtModel.ProvinceId == null || ddtModel.ProvinceId == 0;\r\n\t\tif (vModel.ProvinceId) messages.push(\"Province must be selected\");\r\n\r\n\t\tvModel.CityId = ddtModel.CityId == null || ddtModel.CityId == 0;\r\n\t\tif (vModel.CityId) messages.push(\"City must be selected\");\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.setState({ vModel });\r\n\t\treturn true;\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tshowErrorMessage(message) {\r\n\t\tthis.setState({\r\n\t\t\talert: AlertHelper.CreateAlert(\"Error\", message, \"error\", this.hideAlert)\r\n\t\t});\r\n\t}\r\n\r\n\tOpenEditModal(item) {\r\n\t\tvar ddtModel = { ...this.state.ddtModel };\r\n\t\tvar Phone = { ...this.state.Phone };\r\n\t\tvar model = { ...this.state.model };\r\n\t\tmodel.FinInsId = this.props.propFinInsId == null ? 0 : this.props.propFinInsId;\r\n\t\tmodel.FinInsBranchId = item.FinInsBranchId == null ? 0 : item.FinInsBranchId;\r\n\t\tmodel.AccNumber = item.AccNumber == null ? 0 : item.AccNumber;\r\n\t\tmodel.DetailId = item.Id == null ? 0 : item.Id;\r\n\t\tmodel.CustomerNumber = item.ClientCustomer == null ? \"\" : item.ClientCustomer.CustomerNumber;\r\n\t\tmodel.CustomerName = item.ClientCustomer == null ? \"\" : item.ClientCustomer.CustomerName;\r\n\t\tddtModel.Id = item.Id;\r\n\t\tddtModel.SIN = item.SIN == null ? \"\" : item.SIN;\r\n\t\tddtModel.Name = item.Name == null ? \"\" : item.Name;\r\n\t\tddtModel.MiddleName = item.MiddleName == null ? \"\" : item.MiddleName;\r\n\t\tddtModel.LastName = item.LastName == null ? \"\" : item.LastName;\r\n\t\tddtModel.Email = item.Email == null ? \"\" : item.Email;\r\n\t\tddtModel.DateOfBirth = item.DateOfBirth == null ? \"\" : item.DateOfBirth;\r\n\t\tddtModel.AddressLine1 = item.AddressLine1 == null ? \"\" : item.AddressLine1;\r\n\t\tddtModel.AddressLine2 = item.AddressLine2 == null ? \"\" : item.AddressLine2;\r\n\t\tddtModel.ZipCode = item.ZipCode == null ? \"\" : item.ZipCode;\r\n\t\tddtModel.CountryId = item.CountryId == null ? \"\" : item.CountryId;\r\n\t\tddtModel.ProvinceId = item.ProvinceId == null ? \"\" : item.ProvinceId;\r\n\t\tddtModel.CityId = item.CityId == null ? \"\" : item.CityId;\r\n\t\tPhone.Id = item.Phone == null ? 0 : item.Phone.Id == null ? 0 : item.Phone.Id;\r\n\t\tPhone.PhoneCountryCodeId = item.Phone == null ? \"\" : item.Phone.PhoneCountryCodeId == null ? \"\" : item.Phone.PhoneCountryCodeId;\r\n\t\tPhone.PhoneNumber = item.Phone == null ? \"\" : item.Phone.PhoneNumber == null ? \"\" : item.Phone.PhoneNumber;\r\n\t\tthis.setState({ ddtModel, openDialog: true, Phone, model });\r\n\t}\r\n\r\n\thandleClose = () => {\r\n\t\tthis.setState({\r\n\t\t\topenDialog: false\r\n\t\t});\r\n\t}\r\n\r\n\thideAlert = () => {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes, propDDTTotalInfo, propIsBackoffice } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t (\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t this.OpenEditModal(row.original)} />\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\tsortable: false,\r\n\t\t\t\t\t\t\tfilterable: false,\r\n\t\t\t\t\t\t\twidth: 60,\r\n\t\t\t\t\t\t\tshow: !propIsBackoffice\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tHeader: \"Unique Client Id\",\r\n\t\t\t\t\t\t\taccessor: \"UniqueClientId\",\r\n\t\t\t\t\t\t\tshow: propIsBackoffice\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\t\t\t\taccessor: \"ClientName\",\r\n\t\t\t\t\t\t\tshow: propIsBackoffice\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tHeader: \"Account Owner\",\r\n\t\t\t\t\t\t\taccessor: \"AccountOwner\",\r\n\t\t\t\t\t\t\tshow: false\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tHeader: \"Customer Number\",\r\n\t\t\t\t\t\t\taccessor: \"CustomerNumber\"\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\t\t\t\taccessor: \"CustomerName\"\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tHeader: \"Transit Number\",\r\n\t\t\t\t\t\t\taccessor: \"TransitNumber\"\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tHeader: \"DDT Number\",\r\n\t\t\t\t\t\t\taccessor: \"DDTNumber\"\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tHeader: \"Issued Date\",\r\n\t\t\t\t\t\t\taccessor: \"IssuedDate\",\r\n\t\t\t\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tHeader: \"ExpireDate\",\r\n\t\t\t\t\t\t\taccessor: \"ExpireDate\",\r\n\t\t\t\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tHeader: \"Status\",\r\n\t\t\t\t\t\t\taccessor: \"Status\"\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tHeader: \"Balance\",\r\n\t\t\t\t\t\t\taccessor: \"Balance\",\r\n\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tHeader: \"SIN\",\r\n\t\t\t\t\t\t\taccessor: \"SIN\",\r\n\t\t\t\t\t\t\twidth: 100\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tHeader: \"First Name\",\r\n\t\t\t\t\t\t\taccessor: \"Name\"\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tHeader: \"Middle Name\",\r\n\t\t\t\t\t\t\taccessor: \"MiddleName\"\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tHeader: \"Last Name\",\r\n\t\t\t\t\t\t\taccessor: \"LastName\"\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tHeader: \"Birth Date\",\r\n\t\t\t\t\t\t\taccessor: \"DateOfBirth\",\r\n\t\t\t\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tHeader: \"Phone Number\",\r\n\t\t\t\t\t\t\taccessor: \"PhoneNumber\",\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tHeader: \"E-Mail\",\r\n\t\t\t\t\t\t\taccessor: \"Email\",\r\n\t\t\t\t\t\t\twidth: 160\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tHeader: \"Address Line 1\",\r\n\t\t\t\t\t\t\taccessor: \"AddressLine1\"\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tHeader: \"Address Line 2\",\r\n\t\t\t\t\t\t\taccessor: \"AddressLine2\"\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tHeader: \"City\",\r\n\t\t\t\t\t\t\taccessor: \"City\"\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tHeader: \"Province\",\r\n\t\t\t\t\t\t\taccessor: \"Province\"\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tHeader: \"Postal Code\",\r\n\t\t\t\t\t\t\taccessor: \"ZipCode\"\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tHeader: \"Country\",\r\n\t\t\t\t\t\t\taccessor: \"Country\"\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tHeader: \"Auto Direct Deposit E-Mail\",\r\n\t\t\t\t\t\t\t//accessor: \"DirectDepositEmail\"\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tHeader: \"Direct Deposit Registration Status\",\r\n\t\t\t\t\t\t\taccessor: \"DirectDepositRegistrationStatus\",\r\n\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\tFormatter.FormatYesNo(row.value)\r\n\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tHeader: \"Direct Deposit Reference Number\",\r\n\t\t\t\t\t\t\taccessor: \"DirectDepositReferenceNumber\"\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_DDT} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t

Active

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t

Inactive

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t

Total

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t

Client Total Balance

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tTOTAL\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{propDDTTotalInfo == null ? 0 : propDDTTotalInfo.Active == null ? 0 : typeof propDDTTotalInfo.Active == \"number\" ? Formatter.FormatNumber(propDDTTotalInfo.Active) : propDDTTotalInfo.Active}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{propDDTTotalInfo == null ? 0 : propDDTTotalInfo.Inactive == null ? 0 : typeof propDDTTotalInfo.Inactive == \"number\" ? Formatter.FormatNumber(propDDTTotalInfo.Inactive) : propDDTTotalInfo.Inactive}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{propDDTTotalInfo == null ? 0 : propDDTTotalInfo.Total == null ? 0 : typeof propDDTTotalInfo.Total == \"number\" ? Formatter.FormatNumber(propDDTTotalInfo.Total) : propDDTTotalInfo.Total}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{propDDTTotalInfo == null ? 0 : propDDTTotalInfo.Balance == null ? 0 : typeof propDDTTotalInfo.Balance == \"number\" ? Formatter.FormatMoney(propDDTTotalInfo.Balance) : propDDTTotalInfo.Balance}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nDDTList.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tpropDDTList: array,\r\n\tpropDDTTotalInfo: object,\r\n\tpropGetAllData: PropTypes.func,\r\n\tpropFinInsId: PropTypes.number,\r\n\tpropGridColumns: PropTypes.array,\r\n\tpropIsBackoffice: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(DDTList, DDTListStyle);","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { SuspiciousIcon } from \"core/Icons\";\r\nimport MenuAuthorityRightHelper from \"core/MenuAuthorityRightHelper\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport PropTypes, { func } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport ToolBar from \"views/Components/DynamicToolbar\";\r\nimport { GenericAlert, GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { ActionCodes, BankTransactionStatus, GridColumnType, MenuCodes, Portals, ProgramCodes } from \"views/Constants/Constant\";\r\n\r\nconst styles = ({\r\n\tGridItemFreePadding: {\r\n\t\tpadding: \"0px 5px !important\"\r\n\t},\r\n\tGridItemTextFreePadding: {\r\n\t\tpadding: \"0px 3px !important\"\r\n\t}\r\n});\r\n\r\nclass TransactionSearch extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tFromDate: DateHelper.GetDate(),\r\n\t\t\t\tToDate: DateHelper.GetDate()\r\n\t\t\t},\r\n\t\t\ttoolBarModel: {},\r\n\t\t\ttempModel: {},\r\n\t\t\tgetDataList: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tpoolModel: {},\r\n\t\t\tisBackOff: false,\r\n\t\t\tisSalesPerson: false,\r\n\t\t\tsuspiciousDialog: false,\r\n\t\t\tgridButtonRightDetail: []\r\n\t\t};\r\n\r\n\t\tthis.MenuAuthorityRightHelper = new MenuAuthorityRightHelper();\r\n\r\n\t\tthis.handleChange = this.handleChange.bind(this);\r\n\t\tthis.handleChangeTempModel = this.handleChangeTempModel.bind(this);\r\n\t\tthis.GetData = this.GetData.bind(this);\r\n\t\tthis.errorCallback = this.errorCallback.bind(this);\r\n\t\tthis.hideAlert = this.hideAlert.bind(this);\r\n\t\tthis.showErrorMessage = this.showErrorMessage.bind(this);\r\n\t\tthis.successSummaryCallback = this.successSummaryCallback.bind(this);\r\n\t\tthis.successCallback = this.successCallback.bind(this);\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\r\n\t\tvar isBackOff = ClientHelper.IsBackOffice();\r\n\t\tvar isSalesPerson = ClientHelper.IsSalesPerson();\r\n\t\tvar model = { ...this.state.model };\r\n\t\tif (!isBackOff && !isSalesPerson) {\r\n\t\t\tmodel[\"ClientId\"] = ClientHelper.GetClientRowId();\r\n\t\t\tthis.GetToolbarData();\r\n\t\t}\r\n\r\n\t\tif (this.props.MenuCode == MenuCodes.Backoffice_SalesPersonCdicTransactionSearch) {\r\n\t\t\tif (setAppLeftTitle) setAppLeftTitle(\"DDT - CDIC Transactions\");\r\n\t\t\tif (setAppCenterTitle) setAppCenterTitle(\"SALES PERSON\");\r\n\t\t} else if (this.props.MenuCode == MenuCodes.CallCenterCDICTransactions) {\r\n\t\t\tif (setAppLeftTitle) setAppLeftTitle(\"DDT - CDIC Transactions Search\");\r\n\t\t\tif (setAppCenterTitle) setAppCenterTitle(\"CALL CENTER\");\r\n\r\n\t\t\tthis.GetGridButtonsRight();\r\n\t\t} else {\r\n\t\t\tif (setAppLeftTitle) setAppLeftTitle(\"DDT - CDIC Transactions\");\r\n\t\t\tif (setAppCenterTitle) setAppCenterTitle(\"DDT MANAGEMENT\");\r\n\t\t}\r\n\r\n\t\tthis.props.setPortal(Portals.DDT);\r\n\r\n\t\tvar data = RouteHelper.ReadAndClear(\"CDICTransactionSearch_Date\");\r\n\r\n\t\tif (data) {\r\n\t\t\tmodel.FromDate = data.FromDate;\r\n\t\t\tmodel.ToDate = data.ToDate;\r\n\t\t\tmodel.IsSettled = data.IsSettled;\r\n\t\t\tthis.setState({ isBackOff: isBackOff, model, isSalesPerson });\r\n\t\t\tthis.GetData(model);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.setState({ isBackOff: isBackOff, model, isSalesPerson });\r\n\t\t}\r\n\t}\r\n\r\n\tGetToolbarData = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.GET(\r\n\t\t\t\"/bankapi/v1.0/Ddt/GetAllDDTCDICNumberAndBalance\",\r\n\t\t\tthis.successCallback,\r\n\t\t\tthis.errorCallback\r\n\t\t);\r\n\t}\r\n\r\n\tsuccessCallback(responseData) {\r\n\t\tvar toolBarModel = { ...this.state.toolBarModel };\r\n\t\tvar poolModel = { ...this.state.poolModel };\r\n\t\tvar model = { ...this.state.model };\r\n\t\tpoolModel.FinInsId = responseData.Item == null || undefined ? \"\" : responseData.Item.CDICPoolAccountInfo == null || undefined ? \"\" : responseData.Item.CDICPoolAccountInfo.FinInsId == null || undefined ? \"\" : responseData.Item.CDICPoolAccountInfo.FinInsId;\r\n\t\tmodel.PrimaryBranchId = responseData.Item == null || undefined ? \"\" : responseData.Item.CDICPoolAccountInfo == null || undefined ? \"\" : responseData.Item.CDICPoolAccountInfo.BranchId == null || undefined ? \"\" : responseData.Item.CDICPoolAccountInfo.BranchId;\r\n\t\tmodel.PrimaryAccountNumber = responseData.Item == null || undefined ? \"\" : responseData.Item.CDICPoolAccountInfo == null || undefined ? \"\" : responseData.Item.CDICPoolAccountInfo.AccountNumber == null || undefined ? \"\" : responseData.Item.CDICPoolAccountInfo.AccountNumber;\r\n\r\n\t\ttoolBarModel.TotalDDTNumber = responseData.Item == null || undefined ? 0 : responseData.Item.TotalDDTNumber == null || undefined ? 0 : responseData.Item.TotalDDTNumber;\r\n\t\ttoolBarModel.TotalDDTBalance = responseData.Item == null || undefined ? \"\" : responseData.Item.DDTPoolAccountInfo == null || undefined ? \"\" : responseData.Item.DDTPoolAccountInfo.Balance == null || undefined ? \"\" : responseData.Item.DDTPoolAccountInfo.Balance;\r\n\t\ttoolBarModel.TotalCDICNumber = responseData.Item == null || undefined ? 0 : responseData.Item.TotalCDICNumber == null || undefined ? 0 : responseData.Item.TotalCDICNumber;\r\n\t\ttoolBarModel.TotalCDICBalance = responseData.Item == null || undefined ? \"\" : responseData.Item.CDICPoolAccountInfo == null || undefined ? \"\" : responseData.Item.CDICPoolAccountInfo.Balance == null || undefined ? \"\" : responseData.Item.CDICPoolAccountInfo.Balance;\r\n\t\tthis.setState({ model, toolBarModel, poolModel, isLoading: false });\r\n\t}\r\n\r\n\thandleChange(name, newValue, data) {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (name == \"SettlementStatus\")\r\n\t\t\tif (data.ParameterDesc == \"Yes\")\r\n\t\t\t\tmodel[name] = true;\r\n\t\t\telse\r\n\t\t\t\tmodel[name] = false;\r\n\t\telse\r\n\t\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\thandleChangeTempModel(name, newValue, data) {\r\n\t\tconst tempModel = { ...this.state.tempModel };\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (name == \"SettlementStatus\") {\r\n\t\t\tif (newValue != -1) {\r\n\t\t\t\tif (data.ParameterDesc == \"Yes\") {\r\n\t\t\t\t\ttempModel[name] = newValue;\r\n\t\t\t\t\tmodel[name] = true;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\ttempModel[name] = newValue;\r\n\t\t\t\t\tmodel[name] = false;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\ttempModel[name] = newValue;\r\n\t\t\t\tmodel[name] = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t\ttempModel[name] = newValue;\r\n\t\tthis.setState({ tempModel, model });\r\n\t}\r\n\r\n\tGetData(model) {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\t// if (this.state.model.SearchStartDate == null)\r\n\t\t// \tthis.showErrorMessage(\"Date / To can not be empty !!\");\r\n\t\t// else {\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Cdic/SearchTransactionCdic\",\r\n\t\t\tmodel ? model : this.state.model,\r\n\t\t\tthis.successSummaryCallback,\r\n\t\t\tthis.errorCallback\r\n\t\t);\r\n\t\t// }\r\n\t}\r\n\r\n\tsuccessSummaryCallback(responseData) {\r\n\t\tthis.hideAlert();\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.showErrorMessage(responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (responseData.Item == null || responseData.Item.length < 1) {\r\n\t\t\tthis.setState({ getDataList: [], isLoading: false });\r\n\t\t} else {\r\n\t\t\tthis.setState({\r\n\t\t\t\tgetDataList: responseData.Item.map(x => {\r\n\t\t\t\t\treturn {\r\n\t\t\t\t\t\tId: x.Id,\r\n\t\t\t\t\t\tClientName: x.ClientName == null ? \"\" : x.ClientName,\r\n\t\t\t\t\t\tClientUniqueClientId: x.ClientUniqueClientId == null ? \"\" : x.ClientUniqueClientId,\r\n\t\t\t\t\t\tTransactionSource: x.TransactionSource == null ? \"\" : x.TransactionSource,\r\n\t\t\t\t\t\tCustomerNumber: x.CustomerNumber == null ? \"\" : x.CustomerNumber,\r\n\t\t\t\t\t\tTransitNumber: x.TransitNumber == null ? \"\" : x.TransitNumber,\r\n\t\t\t\t\t\tCDICNumber: x.CDICNumber == null ? \"\" : x.CDICNumber,\r\n\t\t\t\t\t\tStore: x.StoreCode == null ? \"\" : x.StoreCode,\r\n\t\t\t\t\t\tDate: x.Date == null ? \"\" : x.Date,\r\n\t\t\t\t\t\tTransactionType: x.TransactionType == null ? \"\" : x.TransactionType,\r\n\t\t\t\t\t\tSettlementStatus: x.SettlementStatus == null ? \"\" : x.SettlementStatus == true ? \"Yes\" : \"No\",\r\n\t\t\t\t\t\tAmount: x.Amount == null ? \"\" : x.Amount,\r\n\t\t\t\t\t\tCDICStatus: x.CDICStatus == null ? \"\" : x.CDICStatus,\r\n\t\t\t\t\t\tCDICStatusCode: x.CDICStatusCode == null ? \"\" : x.CDICStatusCode,\r\n\t\t\t\t\t\tFeeAmount: x.FeeAmount == null ? \"\" : x.FeeAmount\r\n\t\t\t\t\t};\r\n\t\t\t\t}), isLoading: false\r\n\t\t\t});\r\n\t\t\tthis.GetToolbarData();\r\n\t\t}\r\n\t}\r\n\r\n\terrorCallback(error) {\r\n\t\tthis.setState({ isLoading: false, alert: null });\r\n\t\tthis.showErrorMessage(\"An error occurred during the api visit\" + error);\r\n\t}\r\n\r\n\tHandleSuspicious = model => {\r\n\t\tthis.setState({ sdTransactionId: model.Id, suspiciousDialog: true });\r\n\t}\r\n\r\n\tHandleSuspiciousConfirm = () => {\r\n\t\tconst { sdCancelMemo, sdCancelReasonId, sdTransactionId } = this.state;\r\n\r\n\t\tthis.ShowConfirmMessage(\"warning\", \"Workflow Confirmation\", \"Are you sure to send it for workflow confirmation ?\", () => {\r\n\r\n\t\t\tvar data = {\r\n\t\t\t\tTransactionId: sdTransactionId,\r\n\t\t\t\tCancelReasonId: sdCancelReasonId,\r\n\t\t\t\tCancelMemo: sdCancelMemo\r\n\t\t\t};\r\n\r\n\t\t\tvar jsonData = JSON.stringify(data);\r\n\r\n\t\t\tvar requestData = {\r\n\t\t\t\tMenuCode: MenuCodes.Cdic_SuspiciousApprove,\r\n\t\t\t\tActionCode: ActionCodes.Submit,\r\n\t\t\t\tJsonData: jsonData,\r\n\t\t\t\tRowId: data.TransactionId\r\n\t\t\t};\r\n\r\n\t\t\tthis.setState({ alert: \"\", isLoading: true });\r\n\t\t\tProxy.POST(\"/coreapi/v1.0/WorkflowData/InsertWorkflowData\",\r\n\t\t\t\trequestData,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tthis.setState({ suspiciousDialog: false, sdCancelReasonId: \"\", sdCancelMemo: \"\" });\r\n\t\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Request successfully sent for approval\");\r\n\t\t\t\t},\r\n\t\t\t\terrorMessage => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", \"An error occurred while sending approve request \" + errorMessage);\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t});\r\n\t}\r\n\r\n\tGetGridButtonsRight = async () => {\r\n\t\tconst { MenuCode } = this.props;\r\n\t\tvar gridButtonRightDetail = await this.MenuAuthorityRightHelper.RightCheckList(MenuCode, [\"CALCDCSUSP\"]);\r\n\r\n\t\tthis.setState({ gridButtonRightDetail });\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({ alert: this.setState({ alert: \"\" })} /> });\r\n\t}\r\n\r\n\tShowConfirmMessage(type, title, message, onConfirm) {\r\n\t\tthis.setState({ alert: this.setState({ alert: \"\" })} OnConfirm={onConfirm} /> });\r\n\t}\r\n\r\n\tshowErrorMessage(message) {\r\n\t\tthis.setState({\r\n\t\t\tisLoading: false,\r\n\t\t\tgetDataList: [],\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\r\n\thideAlert() {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\thandleClear = () => {\r\n\t\tvar model = { ...this.state.model };\r\n\t\tvar ClientId = model.ClientId == null ? null : model.ClientId;\r\n\t\tthis.setState({\r\n\t\t\tmodel: {\r\n\t\t\t\tClientId: ClientId,\r\n\t\t\t\tFromDate: DateHelper.GetDate(),\r\n\t\t\t\tToDate: DateHelper.GetDate()\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled, classes } = this.props;\r\n\t\tconst { model, isLoading, toolBarModel, tempModel, poolModel, isBackOff, isSalesPerson, suspiciousDialog, sdCancelReasonId, sdCancelMemo, gridButtonRightDetail } = this.state;\r\n\r\n\t\tvar IsCallCenter = this.props.MenuCode === MenuCodes.CallCenterCDICTransactions;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\t\t\t\t{!isBackOff && !isSalesPerson &&\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\tValue={model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t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t x.Code == \"CALCDCSUSP\")?.HasAuthority}\r\n\t\t\t\t\t\t\t\t\t\t\t\tIcon={SuspiciousIcon}\r\n\t\t\t\t\t\t\t\t\t\t\t\tOnClick={() => { this.HandleSuspicious(row.original); }} />\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"Date\",\r\n\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTimeUtc\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Transaction Source\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"TransactionSource\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Transaction Type\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"TransactionType\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Unique Client Id\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"ClientUniqueClientId\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Customer Number\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"CustomerNumber\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"Amount\",\r\n\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Fee Amount\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"FeeAmount\",\r\n\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Transit Number\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"TransitNumber\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"DDT - CDIC Number\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"CDICNumber\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Store\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"Store\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"DDT - CDIC Status\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"CDICStatus\"\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t// ,\r\n\t\t\t\t\t\t\t\t// {\r\n\t\t\t\t\t\t\t\t// \tHeader: \"Settlement Status\",\r\n\t\t\t\t\t\t\t\t// \taccessor: \"SettlementStatus\"\r\n\t\t\t\t\t\t\t\t// }\r\n\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_CDIC} />\r\n\t\t\t\t\t\t

\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t this.setState({ sdCancelReasonId: v })} ParameterCode={\"TransactionCancelReason\"} />\r\n\t\t\t\t\t\t this.setState({ sdCancelMemo: v })} />\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nTransactionSearch.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\thandleOperationType: PropTypes.func,\r\n\tSelectedRowChange: PropTypes.func,\r\n\tshowQuestionMessage: func,\r\n\tsetAppLeftTitle: func,\r\n\tsetAppCenterTitle: func,\r\n\tsetPortal: func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.number,\r\n\tApprovalData: PropTypes.array,\r\n\tAfter: PropTypes.func\r\n};\r\n\r\nexport default withArtifex(TransactionSearch, styles);","import Card from \"components/Card/Card\";\r\nimport CardBody from \"components/Card/CardBody\";\r\nimport GridContainer from \"components/Grid/GridContainer\";\r\nimport GridItem from \"components/Grid/GridItem\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericAlert, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\n\r\nclass CDICSuspiciousApprove extends Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tisLoading: false,\r\n\t\t\tmodel: {\r\n\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tthis.SubmitClick = this.SubmitClick.bind(this);\r\n\t\tthis.FillData = this.FillData.bind(this);\r\n\t\tthis.GetModel = this.GetModel.bind(this);\r\n\t\tthis.ValueChanged = this.ValueChanged.bind(this);\r\n\r\n\t\tthis.ShowMessage = this.ShowMessage.bind(this);\r\n\t\tthis.hideAlert = this.hideAlert.bind(this);\r\n\t}\r\n\r\n\tValueChanged(name, newValue) {\r\n\t\tthis.setState({ [name]: newValue });\r\n\t}\r\n\r\n\tSubmitClick(workflowId, after, accessToken) {\r\n\t\tconst { Id, CancelReasonId, CancelMemo } = this.state;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/bankapi/v1.0/Cdic/SuspiciousApproval\",\r\n\t\t\t{ TransactionId: Id, ReasonId: CancelReasonId, Memo: CancelMemo },\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (after) after();\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred\", errorMessage);\r\n\t\t\t},\r\n\t\t\tworkflowId,\r\n\t\t\taccessToken\r\n\t\t);\r\n\t}\r\n\r\n\tGetModel() {\r\n\t\tconst { model } = this.state;\r\n\t\treturn model;\r\n\t}\r\n\r\n\tFillData(data) {\r\n\t\tthis.setState({ isLoading: true, CancelReasonId: data.CancelReasonId, CancelMemo: data.CancelMemo });\r\n\t\tProxy.POST(\"/bankapi/v1.0/Cdic/GetByTransactionId\",\r\n\t\t\tdata.TransactionId,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while fetching data\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvar cdicData = responseData.Item;\r\n\r\n\t\t\t\tthis.setState(function (state) {\r\n\t\t\t\t\tvar model = state.model || {};\r\n\r\n\t\t\t\t\tmodel.PayeeName = cdicData.PayeeName;\r\n\t\t\t\t\tmodel.Memo = cdicData.Memo;\r\n\t\t\t\t\tmodel.TransactionType = cdicData.TransactionType;\r\n\t\t\t\t\tmodel.Amount = cdicData.Amount;\r\n\t\t\t\t\tmodel.TransactionDate = cdicData.TransactionDate;\r\n\t\t\t\t\tmodel.SenderAccount = cdicData.SenderAccount;\r\n\t\t\t\t\tmodel.ReceiverAccount = cdicData.ReceiverAccount;\r\n\r\n\t\t\t\t\treturn { model, Id: data.TransactionId };\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while fetching data\", errorMessage);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tShowMessage(type, title, message) {\r\n\t\tthis.setState({ alert: });\r\n\t}\r\n\r\n\thideAlert() {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, isLoading, Id, CancelReasonId, CancelMemo, alert } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t<>\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCDICSuspiciousApprove.propTypes = {\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(CDICSuspiciousApprove, {});","import Card from \"components/Card/Card\";\r\nimport CardBody from \"components/Card/CardBody\";\r\nimport GridContainer from \"components/Grid/GridContainer\";\r\nimport GridItem from \"components/Grid/GridItem\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericAlert, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\n\r\nclass DDTSuspiciousApprove extends Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tisLoading: false,\r\n\t\t\tmodel: {\r\n\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tthis.SubmitClick = this.SubmitClick.bind(this);\r\n\t\tthis.FillData = this.FillData.bind(this);\r\n\t\tthis.GetModel = this.GetModel.bind(this);\r\n\t\tthis.ValueChanged = this.ValueChanged.bind(this);\r\n\r\n\t\tthis.ShowMessage = this.ShowMessage.bind(this);\r\n\t\tthis.hideAlert = this.hideAlert.bind(this);\r\n\t}\r\n\r\n\tValueChanged(name, newValue) {\r\n\t\tthis.setState({ [name]: newValue });\r\n\t}\r\n\r\n\tSubmitClick(workflowId, after) {\r\n\t\tconst { Id, CancelReasonId, CancelMemo } = this.state;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/bankapi/v1.0/Ddt/SuspiciousApproval\",\r\n\t\t\t{ TransactionId: Id, ReasonId: CancelReasonId, Memo: CancelMemo },\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (after) after();\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred\", errorMessage);\r\n\t\t\t},\r\n\t\t\tworkflowId\r\n\t\t);\r\n\t}\r\n\r\n\tGetModel() {\r\n\t\tconst { model } = this.state;\r\n\t\treturn model;\r\n\t}\r\n\r\n\tFillData(data) {\r\n\t\tthis.setState({ isLoading: true, CancelReasonId: data.CancelReasonId, CancelMemo: data.CancelMemo });\r\n\t\tProxy.POST(\"/bankapi/v1.0/Ddt/GetByTransactionId\",\r\n\t\t\tdata.TransactionId,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while fetching data\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvar ddtData = responseData.Item;\r\n\r\n\t\t\t\tthis.setState(function (state) {\r\n\t\t\t\t\tvar model = state.model || {};\r\n\r\n\t\t\t\t\tmodel.PayeeName = ddtData.PayeeName;\r\n\t\t\t\t\tmodel.Memo = ddtData.Memo;\r\n\t\t\t\t\tmodel.TransactionType = ddtData.TransactionType;\r\n\t\t\t\t\tmodel.Amount = ddtData.Amount;\r\n\t\t\t\t\tmodel.TransactionDate = ddtData.TransactionDate;\r\n\t\t\t\t\tmodel.SenderAccount = ddtData.SenderAccount;\r\n\t\t\t\t\tmodel.ReceiverAccount = ddtData.ReceiverAccount;\r\n\r\n\t\t\t\t\treturn { model, Id: data.TransactionId };\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while fetching data\", errorMessage);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tShowMessage(type, title, message) {\r\n\t\tthis.setState({ alert: });\r\n\t}\r\n\r\n\thideAlert() {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, isLoading, Id, CancelReasonId, CancelMemo, alert } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t<>\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nDDTSuspiciousApprove.propTypes = {\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(DDTSuspiciousApprove, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTextInput, GenericDialog, GenericDialogActions, GenericRadioInput, GenericLabel } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { ProgramCodes, GridColumnType } from \"views/Constants/Constant.js\";\r\nimport moment from \"moment\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Select from \"react-select\";\r\nimport Button from \"components/CustomButtons/Button\";\r\n\r\nclass CardTspInformationList extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: null,\r\n\t\t\tValidFrom: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tValidTo: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tCardTokenNumber: null,\r\n\t\t\tCorrelationId: null\r\n\t\t};\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"CustomerName\"\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Correlation Id\",\r\n\t\t\t\taccessor: \"CorrelationId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Interbank Card Association Id\",\r\n\t\t\t\taccessor: \"InterbankCardAssociationId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Token Number\",\r\n\t\t\t\taccessor: \"CardTokenNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Token Unique Reference\",\r\n\t\t\t\taccessor: \"TokenUniqueReference\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Pan Unique Reference\",\r\n\t\t\t\taccessor: \"PanUniqueReference\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Imei\",\r\n\t\t\t\taccessor: \"Imei\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Msisdn\",\r\n\t\t\t\taccessor: \"Msisdn\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Succeeded\",\r\n\t\t\t\taccessor: \"IsSucceeded\",\r\n\t\t\t\ttype: GridColumnType.YesNo,\r\n\t\t\t\tColumnType: GridColumnType.YesNo\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Error Code\",\r\n\t\t\t\taccessor: \"ErrorCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Error Description\",\r\n\t\t\t\taccessor: \"ErrorDescription\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Activated\",\r\n\t\t\t\taccessor: \"IsActivated\",\r\n\t\t\t\ttype: GridColumnType.YesNo,\r\n\t\t\t\tColumnType: GridColumnType.YesNo\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Activation DateTime\",\r\n\t\t\t\taccessor: \"ActivationDateTime\",\r\n\t\t\t\ttype: GridColumnType.Datetime,\r\n\t\t\t\tColumnType: GridColumnType.Datetime\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Activation Message Sent\",\r\n\t\t\t\taccessor: \"IsActivationMessageSent\",\r\n\t\t\t\ttype: GridColumnType.YesNo,\r\n\t\t\t\tColumnType: GridColumnType.YesNo\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Activation Message Sent DateTime\",\r\n\t\t\t\taccessor: \"ActivationMessageSentDateTime\",\r\n\t\t\t\ttype: GridColumnType.Datetime,\r\n\t\t\t\tColumnType: GridColumnType.Datetime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Tsp Status\",\r\n\t\t\t\taccessor: \"TspStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Holder Name\",\r\n\t\t\t\taccessor: \"AccountHolderName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Product Configuration Id\",\r\n\t\t\t\taccessor: \"ProductConfigurationId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Decision\",\r\n\t\t\t\taccessor: \"Decision\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Number Of Activation Attempts\",\r\n\t\t\t\taccessor: \"NumberOfActivationAttempts\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Number Of Active Tokens\",\r\n\t\t\t\taccessor: \"NumberOfActiveTokens\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Address Line1\",\r\n\t\t\t\taccessor: \"AddressLine1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Address Line2\",\r\n\t\t\t\taccessor: \"AddressLine2\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"City\",\r\n\t\t\t\taccessor: \"City\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Country Subdivision\",\r\n\t\t\t\taccessor: \"CountrySubdivision\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Postal Code\",\r\n\t\t\t\taccessor: \"PostalCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Country\",\r\n\t\t\t\taccessor: \"Country\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Token Assurance Level\",\r\n\t\t\t\taccessor: \"TokenAssuranceLevel\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Device Name\",\r\n\t\t\t\taccessor: \"DeviceName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Serial Number\",\r\n\t\t\t\taccessor: \"SerialNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Form Factor\",\r\n\t\t\t\taccessor: \"FormFactor\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Payment Types\",\r\n\t\t\t\taccessor: \"PaymentTypes\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Deactivated\",\r\n\t\t\t\taccessor: \"IsDeactivated\",\r\n\t\t\t\ttype: GridColumnType.YesNo,\r\n\t\t\t\tColumnType: GridColumnType.YesNo\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Deactivation DateTime\",\r\n\t\t\t\taccessor: \"DeactivationDateTime\",\r\n\t\t\t\ttype: GridColumnType.Datetime,\r\n\t\t\t\tColumnType: GridColumnType.Datetime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Terms And Conditions Accepted Timestamp\",\r\n\t\t\t\taccessor: \"TermsAndConditionsAcceptedTimestamp\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Token Requestor\",\r\n\t\t\t\taccessor: \"TokenRequestor\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Recommended Decision\",\r\n\t\t\t\taccessor: \"RecommendedDecision\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Device Score\",\r\n\t\t\t\taccessor: \"DeviceScore\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Score\",\r\n\t\t\t\taccessor: \"AccountScore\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Phone Number Score\",\r\n\t\t\t\taccessor: \"PhoneNumberScore\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Life Time\",\r\n\t\t\t\taccessor: \"AccountLifeTime\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Recommendation Reasons\",\r\n\t\t\t\taccessor: \"RecommendationReasons\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Insert DateTime\",\r\n\t\t\t\taccessor: \"InsertDateTime\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Insert User\",\r\n\t\t\t\taccessor: \"InsertUser\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Update DateTime\",\r\n\t\t\t\taccessor: \"UpdateDateTime\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Update User\",\r\n\t\t\t\taccessor: \"UpdateUser\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.tspInformationList = React.createRef();\r\n\r\n\t\tthis.state = {\r\n\t\t\tlist: [],\r\n\t\t\tvModel: {},\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tfilterModel: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tLimitToken: false\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Card Tsp Information List\");\r\n\t\tthis.props.setAppCenterTitle(\"DIGITAL WALLET\");\r\n\t}\r\n\r\n\tRefreshToolBar = () => {\r\n\t\tthis.setState({ LimitToken: !this.state.LimitToken });\r\n\t};\r\n\r\n\tLimitDataLoad = data => {\r\n\t\tthis.setState({ LimitBalanceData: data, isLoading: false });\r\n\t};\r\n\t\r\n\thandleChange = (name, newValue) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tconst initialModel = { ...this.initialModel };\r\n\t\tif (name === \"UniqueClientId\") {\r\n\t\t\tif (\r\n\t\t\t\tClientHelper.IsClient() &&\r\n\t\t\t\tinitialModel.UniqueClientId == null &&\r\n\t\t\t\tnewValue != null\r\n\t\t\t) {\r\n\t\t\t\tthis.initialModel.UniqueClientId = newValue;\r\n\t\t\t}\r\n\t\t\tmodel.UniqueClientId = newValue;\r\n\t\t} else if (name === \"ValidFrom\") {\r\n\t\t\tmodel.ValidFrom = newValue;\r\n\t\t} else if (name === \"ValidTo\") {\r\n\t\t\tmodel.ValidTo = newValue;\r\n\t\t} else {\r\n\t\t\tmodel[name] = newValue;\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tfilterModel: {},\r\n\t\t\tselected: null,\r\n\t\t\tlist: []\r\n\t\t});\r\n\t};\r\n\r\n\tHandleSearch = () => {\r\n\r\n\t\tconst model = { ...this.state.model };\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tvar request = {\r\n\t\t\tFromDate: model.ValidFrom,\r\n\t\t\tToDate: model.ValidTo,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : model.UniqueClientId,\r\n\t\t\tCorrelationId: model.CorrelationId,\r\n\t\t\tCardTokenNumber: model.CardTokenNumber\r\n\t\t};\r\n\t\tProxy.ExecuteGeneral(\r\n\t\t\tthis, \"POST\",\r\n\t\t\t\"/prepaidapi/v1.0/Prepaid/CardTspInformationSearch\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tmodel,\r\n\t\t\t\t\tlist: responseData.Item\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t\tOnConfirm={onConfirm}\r\n\t\t\t\t/>\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n\r\n\r\n\r\n\tExportClick = () => {\r\n\t\tvar tspInformationColumns = [];\r\n\t\tthis.tspInformationList.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.show == undefined || c.show) {\r\n\t\t\t\ttspInformationColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: tspInformationColumns, ExportSelectedColumns: tspInformationColumns });\r\n\t}\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\t\tconst temp = { ...this.state.model };\r\n\t\tvar jsonColList = [];\r\n\t\tvar tspInformationColumns = {};\r\n\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\ttspInformationColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t});\r\n\t\tjsonColList.push(tspInformationColumns);\r\n\r\n\t\tvar mytitle = \"Card Tsp Information List\";\r\n\r\n\t\ttemp.jsonFile = {\r\n\t\t\tcolmns: jsonColList,\r\n\t\t\tformat: this.state.ExportReportType,\r\n\t\t\ttitle: mytitle\r\n\t\t};\r\n\r\n\t\tvar request = {\r\n\t\t\tjsonFile: temp.jsonFile,\r\n\t\t\tFromDate: temp.ValidFrom,\r\n\t\t\tToDate: temp.ValidTo,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : temp.UniqueClientId,\r\n\t\t\tCorrelationId: temp.CorrelationId,\r\n\t\t\tCardTokenNumber: temp.CardTokenNumber\r\n\t\t};\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\"/prepaidapi/v1.0/Prepaid/CardTspInformationListExportDownload\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t},\r\n\t\t\tthis.props.showMessage\r\n\t\t);\r\n\t}\r\n\r\n\tValueChangedForReportType = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, isLoading, vModel } = this.state;\r\n\r\n\t\tvar endDate = (model.ValidFrom instanceof moment) ? model.ValidFrom.clone() : \"\";\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t model,\r\n\t\t\t\t\t\t\tFillDataFromModel: model => this.setState({ model }),\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{ Code: \"Clear\", OnClick: this.HandleClear, Disabled: Disabled },\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Export\",\r\n\t\t\t\t\t\t\tOnClick: this.ExportClick,\r\n\t\t\t\t\t\t\tDisabled: Disabled\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After}\r\n\t\t\t\t/>\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={ClientHelper.IsClient()}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tDefaultIndex={ClientHelper.IsClient() ? 0 : -1}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCardTspInformationList.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(CardTspInformationList, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent\";\r\nimport { GenericAlert, GenericDateInput, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericNumberInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { ProgramCodes, GridColumnType } from \"views/Constants/Constant.js\";\r\nimport moment from \"moment\";\r\nimport Formatter from \"core/Formatter\";\r\n\r\nclass ClientBaseTransactionSearch extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: null,\r\n\t\t\tCustomer: null,\r\n\t\t\tDefaultAccount: null,\r\n\t\t\tDefaultCard: null,\r\n\t\t\tCardId: null,\r\n\t\t\tValidFrom: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tValidTo: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tIsUniqueDataSearch: null,\r\n\t\t\tReferenceNumber: null\r\n\t\t};\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Code\",\r\n\t\t\t\taccessor: \"ChannelName\"\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Cardholder Name\",\r\n\t\t\t\taccessor: \"CardOwnerName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Masked Number\",\r\n\t\t\t\taccessor: \"MaskedCardNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Available Balance\",\r\n\t\t\t\taccessor: \"WalletBalance\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Merchant\",\r\n\t\t\t\taccessor: \"Merchant\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Merchant City\",\r\n\t\t\t\taccessor: \"MerchantCity\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Response Code\",\r\n\t\t\t\taccessor: \"ResponseCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Response Description\",\r\n\t\t\t\taccessor: \"ResponseDescription\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reversal Type\",\r\n\t\t\t\taccessor: \"ReversalType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reversed Date Time\",\r\n\t\t\t\taccessor: \"ReversedDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Original Amount\",\r\n\t\t\t\taccessor: \"TransactionAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Original Billing Amount\",\r\n\t\t\t\taccessor: \"OriginalBillingAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Biling Amount\",\r\n\t\t\t\taccessor: \"BillingAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Fee Amount\",\r\n\t\t\t\taccessor: \"FeeAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Terminal Type\",\r\n\t\t\t\taccessor: \"TerminalType\"\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Source\",\r\n\t\t\t\taccessor: \"CardTransactionSource\"\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Merchant Clearing Amount\",\r\n\t\t\t\taccessor: \"SettlementAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Merchant Clearing Date\",\r\n\t\t\t\taccessor: \"SettlementDate\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\trow.value ? Formatter.FormatDate(row.value) : \"\"\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Error Code\",\r\n\t\t\t\taccessor: \"ErrorCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Error Description\",\r\n\t\t\t\taccessor: \"ErrorDescription\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Brand Name\",\r\n\t\t\t\taccessor: \"CardBrandName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Description\",\r\n\t\t\t\taccessor: \"Description\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reference Number\",\r\n\t\t\t\taccessor: \"ReferenceNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Mcc\",\r\n\t\t\t\taccessor: \"Mcc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"System Settlement Status\",\r\n\t\t\t\taccessor: \"SettlementStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Entry Type\",\r\n\t\t\t\taccessor: \"TransactionEntryTypeDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Type\",\r\n\t\t\t\taccessor: \"TransactionTypeDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Mti\",\r\n\t\t\t\taccessor: \"Mti\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Network Fee\",\r\n\t\t\t\taccessor: \"TransactionFee\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Authorzation Code\",\r\n\t\t\t\taccessor: \"AuthorzationCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Mobile Wallet Type\",\r\n\t\t\t\taccessor: \"MobileWalletType\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.state = {\r\n\t\t\tlist: [],\r\n\t\t\tvModel: {},\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tfilterModel: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tLimitToken: false,\r\n\t\t\tLimitBalanceData: {\r\n\t\t\t\tAvailableCreditLimit: 0,\r\n\t\t\t\tAvailableDebitLimit: 0,\r\n\t\t\t\tAvailableBalance: 0\r\n\t\t\t}\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Card Transaction Search\");\r\n\t\tthis.props.setAppCenterTitle(\"DIGITAL WALLET\");\r\n\t}\r\n\r\n\tRefreshToolBar = () => {\r\n\t\tthis.setState({ LimitToken: !this.state.LimitToken });\r\n\t};\r\n\r\n\tLimitDataLoad = data => {\r\n\t\tthis.setState({ LimitBalanceData: data, isLoading: false });\r\n\t};\r\n\tIsValid = () => {\r\n\t\tvar vmodel = { ...this.state.model };\r\n\t\tconst kModel = { ...this.state.vModel };\r\n\r\n\t\tif (!vmodel.IsUniqueDataSearch && vmodel.ValidFrom == null || vmodel.ValidFrom == \"\") {\r\n\t\t\tkModel.ValidFrom = true;\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Select From Date to continue!\");\r\n\t\t\tthis.setState({\r\n\t\t\t\tkModel: kModel\r\n\t\t\t});\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tkModel.ValidFrom = false;\r\n\t\t}\r\n\t\tif (!vmodel.IsUniqueDataSearch && vmodel.ValidTo == null || vmodel.ValidTo == \"\") {\r\n\t\t\tkModel.ValidTo = true;\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Select To Date to continue!\");\r\n\t\t\tthis.setState({\r\n\t\t\t\tkModel: kModel\r\n\t\t\t});\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tkModel.ValidTo = false;\r\n\t\t}\r\n\r\n\t\tif (!vmodel.IsUniqueDataSearch && typeof vmodel.ValidFrom != \"object\" && vmodel.ValidFrom != \"\" && vmodel.ValidFrom != null) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"From Date is invalid\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!vmodel.IsUniqueDataSearch && typeof vmodel.ValidTo != \"object\" && vmodel.ValidTo != \"\" && vmodel.ValidTo != null) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"To Date is invalid\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!vmodel.IsUniqueDataSearch && (typeof vmodel.ValidFrom == \"object\" && typeof vmodel.ValidTo == \"object\") && vmodel.ValidTo < vmodel.ValidFrom) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"From Date cannot be greater than To Date!\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!vmodel.IsUniqueDataSearch && (typeof vmodel.ValidFrom == \"object\" && typeof vmodel.ValidTo == \"object\")) {\r\n\t\t\tvar interval = moment.duration(vmodel.ValidTo.diff(vmodel.ValidFrom)).asDays();\r\n\t\t\tif (interval > 30) {\r\n\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Between two dates cannot be longer than 30 days!\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.setState({\r\n\t\t\tkModel: kModel\r\n\t\t});\r\n\t\treturn true;\r\n\t}\r\n\thandleChange = (name, newValue) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tconst initialModel = { ...this.initialModel };\r\n\t\tif (name === \"Customer\") {\r\n\t\t\tif (newValue != null) {\r\n\t\t\t\tmodel.Customer = newValue;\r\n\t\t\t\tif (newValue.Accounts != null && newValue.Accounts.length > 0) {\r\n\t\t\t\t\tmodel.DefaultAccount = newValue.Accounts[0];\r\n\t\t\t\t}\r\n\t\t\t\tconst request = { CardLevelCriteria: 1, CustomerId: newValue.Id };\r\n\t\t\t\tProxy.ExecuteGeneral(\r\n\t\t\t\t\tthis, \"POST\",\r\n\t\t\t\t\t\"/prepaidapi/v1.0/Card/GetListByCustomerNo\",\r\n\t\t\t\t\trequest,\r\n\t\t\t\t\tresponseData => {\r\n\t\t\t\t\t\tif (responseData.Item != null && responseData.Item[0] != null) {\r\n\t\t\t\t\t\t\tmodel.DefaultCard = responseData.Item[0];\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tmodel.DefaultCard = null;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tthis.setState({ model: model });\r\n\t\t\t\t\t}\r\n\t\t\t\t);\r\n\t\t\t} else {\r\n\t\t\t\tmodel.Customer = initialModel.Customer;\r\n\t\t\t\tmodel.DefaultAccount = initialModel.DefaultAccount;\r\n\t\t\t\tmodel.DefaultCard = initialModel.DefaultCard;\r\n\t\t\t}\r\n\t\t} else if (name === \"UniqueClientId\") {\r\n\t\t\tif (\r\n\t\t\t\tClientHelper.IsClient() &&\r\n\t\t\t\tinitialModel.UniqueClientId == null &&\r\n\t\t\t\tnewValue != null\r\n\t\t\t) {\r\n\t\t\t\tthis.initialModel.UniqueClientId = newValue;\r\n\t\t\t}\r\n\t\t\tmodel.UniqueClientId = newValue;\r\n\t\t} else if (name === \"ValidFrom\") {\r\n\t\t\tmodel.ValidFrom = newValue;\r\n\t\t} else if (name === \"ValidTo\") {\r\n\t\t\tmodel.ValidTo = newValue;\r\n\t\t} else if (name == \"ReferenceNumber\") {\r\n\t\t\tmodel.ReferenceNumber = newValue;\r\n\t\t\tmodel.IsUniqueDataSearch = newValue?.length > 0;\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tfilterModel: {},\r\n\t\t\tselected: null,\r\n\t\t\tlist: []\r\n\t\t});\r\n\t};\r\n\r\n\taddDays = (date, days) => {\r\n\t\tvar returnDate = new Date();\r\n\t\treturnDate.setDate(date.getDate() + days);\r\n\t\treturn returnDate;\r\n\t};\r\n\r\n\tHandleSearch = () => {\r\n\t\tif (!this.IsValid())\r\n\t\t\treturn;\r\n\r\n\t\tconst model = { ...this.state.model };\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tvar request = {\r\n\t\t\tCriteria: 0,\r\n\t\t\tBeginDate: model.ValidFrom,\r\n\t\t\tEndDate: model.ValidTo,\r\n\t\t\tClientCustomerId: model.Customer == null ? null : model.Customer.Id,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : model.UniqueClientId,\r\n\t\t\tCardId: model.CardId,\r\n\t\t\tReferenceNumber: model.ReferenceNumber\r\n\t\t}\r\n\t\tProxy.ExecuteGeneral(\r\n\t\t\tthis, \"POST\",\r\n\t\t\t\"/prepaidapi/v1.0/TransactionData/DigitalWalletCardTransactionSearch\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tmodel,\r\n\t\t\t\t\tlist: responseData.Item\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t\tOnConfirm={onConfirm}\r\n\t\t\t\t/>\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, isLoading, vModel } = this.state;\r\n\r\n\t\tvar endDate = (model.ValidFrom instanceof moment) ? model.ValidFrom.clone() : \"\";\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t 0,\r\n\t\t\t\t\t\t\tModelFunction: () => model,\r\n\t\t\t\t\t\t\tFillDataFromModel: model => this.setState({ model }),\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{ Code: \"Clear\", OnClick: this.HandleClear, Disabled: Disabled }\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After}\r\n\t\t\t\t/>\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={ClientHelper.IsClient()}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tDefaultIndex={ClientHelper.IsClient() ? 0 : -1}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t { this.handleChange(\"Customer\", customer); }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tPrograms={[ProgramCodes.Prepaid]} />\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nClientBaseTransactionSearch.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(ClientBaseTransactionSearch, {});\r\n","\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport AlertHelper from \"core/AlertHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { DetailIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from 'react';\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericDialog, GenericGrid, GenericLabel, GenericNumberInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { Direction, GridColumnType } from \"views/Constants/Constant.js\";\r\nclass Central1OutgoingResponseReport extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props)\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tFromDate: DateHelper.GetDate(),\r\n\t\t\t\tToDate: DateHelper.GetDate(),\r\n\t\t\t},\r\n\t\t\tgetTransactionByFileIdModel: {\r\n\t\t\t},\r\n\t\t\tdailyFileList: [],\r\n\t\t\tfileInfoModel: {},\r\n\t\t\theaderModel: {},\r\n\t\t\ttransactionList: [],\r\n\t\t\tisLoading: false,\r\n\t\t}\r\n\r\n\t\tthis.ColumnsdailyFileList = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"File Name\",\r\n\t\t\t\taccessor: \"FileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"File Date\",\r\n\t\t\t\taccessor: \"FileDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Send Status\",\r\n\t\t\t\taccessor: \"SendStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"File Creation Number\",\r\n\t\t\t\taccessor: \"FileCreationNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Record Count\",\r\n\t\t\t\taccessor: \"RecordCount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reject Count\",\r\n\t\t\t\taccessor: \"RejectedCount\"\r\n\t\t\t}\r\n\t\t]\r\n\r\n\r\n\t\tthis.ColumnstransactionList = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Code\",\r\n\t\t\t\taccessor: \"TransactionCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Record Type\",\r\n\t\t\t\taccessor: \"RecordType\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value == \"1\" ? \"Debit detail record\" : row.value == \"2\" ? \"Credit detail record\" : \"\"}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Item Trace Number\",\r\n\t\t\t\taccessor: \"ItemTraceNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"File Creation Number\",\r\n\t\t\t\taccessor: \"FileCreationNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Payment Type\",\r\n\t\t\t\taccessor: \"PaymentType\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value == \"I\" ? \"Return of Credit\" : row.value == \"J\" ? \"Return of Debit\" : row.value == \"C\" ? \"Credit\" : row.value == \"D\" ? \"Debit\" : \"-\"}
//c ve debit ekle \r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Payee Drawee Name\",\r\n\t\t\t\taccessor: \"PayeeDraweeName\"\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Release Date\",\r\n\t\t\t\taccessor: \"ReleaseDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Cross Reference Number\",\r\n\t\t\t\taccessor: \"CrossReferenceNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Original Due Date\",\r\n\t\t\t\taccessor: \"OriginalDueDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Financial Institution Number\",\r\n\t\t\t\taccessor: \"FinancialInstitutionNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Branch Number\",\r\n\t\t\t\taccessor: \"BranchNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Number\",\r\n\t\t\t\taccessor: \"AccountNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Payment Amount\",\r\n\t\t\t\taccessor: \"PaymentAmount\",\r\n\t\t\t\ttype: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Type\",\r\n\t\t\t\taccessor: \"TransactionType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Payment Status\",\r\n\t\t\t\taccessor: \"PaymentStatus\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value == \"A\" ? \"Valid Payment\" : row.value == \"R\" ? (row.original.PaymentType == \"C\" || row.original.PaymentType == \"D\") ? \"Rejected Payment/Record\" : \"Returned Payment/Record\" : \"\"}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Match Status\",\r\n\t\t\t\taccessor: \"MatchStatus\"\r\n\t\t\t},\r\n\t\t]\r\n\t}\r\n\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Central 1 Outgoing Response Report\")\r\n\t\t}\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"CLEARING & SETTLEMENT\")\r\n\t\t}\r\n\t}\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tGetDailyFileList = async () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar model = { ...this.state.model };\r\n\t\tvar responseData = await ExecuteApiPost(\"/bankapi/v1.0/BankBmoEFT/GetEFTCentral1OutgoingResponseReportFileList\", model, null, null, null, null, null);\r\n\t\tif (responseData != null) {\r\n\t\t\tthis.setState({\r\n\t\t\t\ttransactionList: [], headerModel: {},\r\n\t\t\t\tdailyFileList: responseData.length < 1 ? [] : responseData, isLoading: false\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\tGetTransactionList = async (Id) => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar headerModel = { ...this.state.headerModel };\r\n\t\tvar transactionList = { ...this.state.transactionList };\r\n\t\tvar getTransactionByFileIdModel = { ...this.state.getTransactionByFileIdModel };\r\n\t\tgetTransactionByFileIdModel = { ...this.state.model };\r\n\t\tgetTransactionByFileIdModel.FileId = Id;\r\n\t\tgetTransactionByFileIdModel.UniqueClientId = this.state.model.UniqueClientId == null ? null : this.state.model.UniqueClientId;\r\n\t\tvar responseData = await ExecuteApiPost(\"/bankapi/v1.0/BankBmoEFT/GetEFTCentralClearingFileDetailsReportByFileId\", getTransactionByFileIdModel, null, null, null, null, null);\r\n\t\tif (responseData != null) {\r\n\t\t\tif (responseData.Central1ClearingReportFileHeaderDetail != null) {\r\n\t\t\t\theaderModel = responseData.Central1ClearingReportFileHeaderDetail == null ? {} : responseData.Central1ClearingReportFileHeaderDetail;\r\n\t\t\t\theaderModel.FileDate = this.state.fileInfoModel.FileDate;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\theaderModel = {};\r\n\r\n\t\t\tif (responseData.EftCentral1ClearingReportFileDetail != null || responseData.EftCentral1ClearingReportFileDetail.length > 1) {\r\n\t\t\t\ttransactionList = responseData.EftCentral1ClearingReportFileDetail;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\ttransactionList = [];\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.setState({ transactionList, headerModel, isLoading: false });\r\n\t}\r\n\tSelectedRowChange = (index) => {\r\n\t\tconst tempModel = this.state.dailyFileList[index];\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (tempModel.Id == null || tempModel.Id == undefined)\r\n\t\t\tthis.props.showMessage(\"warning\", \"File Information\", \"FileInformationId can not be null\");\r\n\t\telse {\r\n\t\t\tmodel.UniqueClientId = tempModel.UniqueClientId;\r\n\t\t\tthis.setState({ fileInfoModel: tempModel, model, isLoading: true, rowIndex: index });\r\n\t\t\tthis.GetTransactionList(tempModel.Id);\r\n\r\n\t\t}\r\n\t}\r\n\r\n\tClearModel = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {\r\n\t\t\t\tFromDate: DateHelper.GetDateTime(), ToDate: DateHelper.GetDateTime()\r\n\t\t\t}, dailyFileList: [],\r\n\t\t\tfileInfoModel: {},\r\n\t\t\theaderModel: {},\r\n\t\t\ttransactionList: [],\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, headerModel, isLoading } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t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\thandleOperationType: PropTypes.func,\r\n\tshowQuestionMessage: PropTypes.func,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\nexport default withArtifex(Central1OutgoingResponseReport, {});\r\n","import { DialogContent, DialogTitle, IconButton } from \"@material-ui/core\";\r\nimport createEftStyle from \"assets/jss/material-dashboard-pro-react/views/createEftStyle.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport AccountLimitToolbar from \"views/Components/AccountLimitToolbar.jsx\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericCheckInput, GenericDateInput, GenericDialog, GenericDialogActions, GenericGrid, GenericIcon, GenericLabel, GenericNumberInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent.jsx\";\r\nimport { ClientType, EFTEntryType, EFTTransactionTypes, MenuCodes, PeriodCodes, Portals, ProgramCodes } from \"views/Constants/Constant.js\";\r\nimport CreateEFTFromFile from \"./CreateEFTFromFile\";\r\nimport CreateEFTIndividual from \"./CreateEFTIndividual\";\r\nimport CreateEFTRecurring from \"./CreateEFTRecurring\";\r\n\r\nclass CreateEFT extends Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.isClient = ClientHelper.IsClient();\r\n\t\tthis.uniqueClientId = ClientHelper.GetClientRowId();\r\n\r\n\t\tthis.defaultModel = {\r\n\t\t\tEntryType: \"\",\r\n\t\t\tEntryCode: \"\",\r\n\t\t\tEFTType: \"\",\r\n\t\t\tIsUpdate: false,\r\n\t\t\tUniqueClientId: this.uniqueClientId\r\n\t\t};\r\n\r\n\t\tthis.defaultFromFileModel = {\r\n\t\t\tAutoApprove: false,\r\n\t\t\tFileName: \"\",\r\n\t\t\tFile: null\r\n\t\t};\r\n\r\n\t\tthis.defaultIndividualModel = {\r\n\t\t\tId: null,\r\n\t\t\tPayeeId: \"\",\r\n\t\t\tPayeeName: \"\",\r\n\t\t\tNewClient: false,\r\n\t\t\tBeneficiaryId: \"\",\r\n\t\t\tAmount: null,\r\n\t\t\tTransactionDate: DateHelper.GetDateLocal(),\r\n\t\t\tTransferMemo: \"\",\r\n\t\t\tIsCustomerPopupOpen: false,\r\n\t\t\tTransactionType: \"\",\r\n\t\t\tTransactionTypeCode: \"\",\r\n\t\t\tTransactionCode: \"\"\r\n\t\t};\r\n\r\n\t\tthis.defaultRecurringModel = {\r\n\t\t\tId: null,\r\n\t\t\tPayeeId: \"\",\r\n\t\t\tPayeeName: \"\",\r\n\t\t\tNewClient: false,\r\n\t\t\tBeneficiaryId: \"\",\r\n\t\t\tStartDate: DateHelper.GetDate(),\r\n\t\t\tEndDate: DateHelper.GetDate(),\r\n\t\t\tPaymentCount: null,\r\n\t\t\tRecurringAmount: null,\r\n\t\t\tTransferMemo: \"\",\r\n\t\t\tPeriodId: \"\",\r\n\t\t\tPeriodCode: \"\",\r\n\t\t\tWeeklyId: \"\",\r\n\t\t\tWeeklyNumber: \"\",\r\n\t\t\tBiWeeklyId: \"\",\r\n\t\t\tBiWeeklyNumber: \"\",\r\n\t\t\tMonthlyId: \"\",\r\n\t\t\tMonthlyNumber: \"\",\r\n\t\t\tQuarterlyId: \"\",\r\n\t\t\tQuarterlyNumber: \"\",\r\n\t\t\tIsCustomerPopupOpen: false,\r\n\t\t\tTransactionType: \"\",\r\n\t\t\tTransactionTypeCode: \"\",\r\n\t\t\tTransactionCode: \"\",\r\n\t\t\tFreezeStartDate: null,\r\n\t\t\tFreezeEndDate: null\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tisLoading: this.isClient,\r\n\t\t\tisFileDialogOpen: false,\r\n\t\t\tisIndividualDialogOpen: false,\r\n\t\t\tisRecurringDialogOpen: false,\r\n\t\t\tisClearDialogOpen: false,\r\n\t\t\tisFileResultDialogOpen: false,\r\n\t\t\tidIndividualClientWarningOpen: false,\r\n\t\t\tFileResultList: [],\r\n\t\t\tmodel: { ...this.defaultModel },\r\n\t\t\tvModel: {},\r\n\t\t\tFromFileModel: { ...this.defaultFromFileModel },\r\n\t\t\tvFromFileModel: {},\r\n\t\t\tIndividualModel: { ...this.defaultIndividualModel },\r\n\t\t\tvIndividualModel: {},\r\n\t\t\tRecurringModel: { ...this.defaultRecurringModel },\r\n\t\t\tvRecurringModel: {},\r\n\t\t\tLimitToken: false,\r\n\t\t\tLimitBalanceData: {\r\n\t\t\t\tAvailableCreditLimit: 0,\r\n\t\t\t\tAvailableDebitLimit: 0,\r\n\t\t\t\tAvailableBalance: 0\r\n\t\t\t},\r\n\t\t\taddNewCustomerMenuId: 0,\r\n\t\t\tCustomerStoreList: []\r\n\t\t};\r\n\r\n\t\tthis.ValueChanged = this.ValueChanged.bind(this);\r\n\t\tthis.FromFileModelChange = this.FromFileModelChange.bind(this);\r\n\t\tthis.IndividualModelChange = this.IndividualModelChange.bind(this);\r\n\t\tthis.RecurringModelChange = this.RecurringModelChange.bind(this);\r\n\t\tthis.SubmitClick = this.SubmitClick.bind(this);\r\n\t\tthis.ClearClick = this.ClearClick.bind(this);\r\n\t\tthis.Validate = this.Validate.bind(this);\r\n\t\tthis.ClearScreen = this.ClearScreen.bind(this);\r\n\t\tthis.ClearDialogConfirm = this.ClearDialogConfirm.bind(this);\r\n\r\n\t\tthis.SubmitFileClick = this.SubmitFileClick.bind(this);\r\n\t\tthis.SubmitIndividualClick = this.SubmitIndividualClick.bind(this);\r\n\t\tthis.SubmitRecurringClick = this.SubmitRecurringClick.bind(this);\r\n\t\tthis.RefreshToolBar = this.RefreshToolBar.bind(this);\r\n\r\n\t\tthis.GetModel = this.GetModel.bind(this);\r\n\t\tthis.FillData = this.FillData.bind(this);\r\n\t\tthis.GetModelId = this.GetModelId.bind(this);\r\n\t\tthis.LimitDataLoad = this.LimitDataLoad.bind(this);\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle, setPortal } = this.props;\r\n\r\n\t\tif (setAppLeftTitle)\r\n\t\t\tsetAppLeftTitle(\"Create EFT\");\r\n\t\tif (setAppCenterTitle)\r\n\t\t\tsetAppCenterTitle(\"EFT SYSTEM\");\r\n\t\tif (setPortal)\r\n\t\t\tsetPortal(Portals.EFT);\r\n\r\n\r\n\t\tProxy.GET(\"/bankapi/v1.0/BankCustomer/CheckClientIndividual\",\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t// this.props.showMessage(\"error\", \"An error occurred while fetching data\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvar data = responseData.Item;\r\n\t\t\t\tif (data) {\r\n\t\t\t\t\tif (data.IsClient && data.IsIndividual)\r\n\t\t\t\t\t\tthis.setState({ idIndividualClientWarningOpen: true });\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\tProxy.POST(\"/coreapi/v1.0/Menu/GetByMenuCode\",\r\n\t\t\tMenuCodes.CustomerDefinition,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t// this.props.showMessage(\"error\", \"An error occurred while fetching data\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvar menu = responseData.Item;\r\n\t\t\t\tif (menu) {\r\n\t\t\t\t\tvar menuId = menu.Id;\r\n\t\t\t\t\tthis.setState({ addNewCustomerMenuId: menuId });\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\tvar Id = RouteHelper.ReadAndClear(\"CreateEFT_Id\");\r\n\t\tvar RecurringId = RouteHelper.ReadAndClear(\"CreateEFT_RecurringId\");\r\n\t\tif ((Id == null || Id <= 0) && RecurringId == null || RecurringId <= 0)\r\n\t\t\tthis.GetCustomerStore();\r\n\t\t// Individual Hmm\r\n\t\tif (Id) {\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tProxy.POST(\"/bankapi/v1.0/BankBmoEFT/GetByIdRequest\",\r\n\t\t\t\t{ Item: Id },\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while fetching data\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tvar eftData = responseData.Item;\r\n\t\t\t\t\tvar data = eftData.Transaction;\r\n\r\n\t\t\t\t\tthis.setState(function (state) {\r\n\t\t\t\t\t\tvar model = state.model || {};\r\n\t\t\t\t\t\tvar IndividualModel = state.IndividualModel || {};\r\n\r\n\t\t\t\t\t\tmodel.UniqueClientId = data.UniqueClientId;\r\n\r\n\t\t\t\t\t\tmodel.EntryType = data.EntryTypeId;\r\n\t\t\t\t\t\tmodel.EntryCode = EFTEntryType.Individual;\r\n\t\t\t\t\t\tmodel.EFTType = eftData.EFTTypeId;\r\n\r\n\t\t\t\t\t\tmodel.IsUpdate = true;\r\n\t\t\t\t\t\tIndividualModel.Id = data.Id;\r\n\t\t\t\t\t\tIndividualModel.PayeeId = eftData.PayeeId;\r\n\t\t\t\t\t\tIndividualModel.PayeeName = eftData.PayeeName;\r\n\t\t\t\t\t\tIndividualModel.BeneficiaryId = eftData.BeneficiaryId;\r\n\t\t\t\t\t\tIndividualModel.Amount = data.TransactionAmount;\r\n\t\t\t\t\t\tIndividualModel.TransactionDate = data.TransactionDate ? DateHelper.ToMoment(data.TransactionDate) : null;\r\n\t\t\t\t\t\tIndividualModel.TransferMemo = eftData.TransferMemo;\r\n\t\t\t\t\t\tIndividualModel.TransactionType = data.TransactionTypeId;\r\n\t\t\t\t\t\tIndividualModel.TransactionTypeCode = data.TransactionType ? data.TransactionType.ParameterValue : \"\";\r\n\t\t\t\t\t\tIndividualModel.TransactionCode = eftData.EFTTransactionTypeId;\r\n\t\t\t\t\t\tIndividualModel.CustomerStoreId = data.StoreId;\r\n\t\t\t\t\t\tif (IndividualModel.TransactionTypeCode == EFTTransactionTypes.Credit) {\r\n\t\t\t\t\t\t\tIndividualModel.BeneficiaryId = eftData.DestinationAccountId;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if (IndividualModel.TransactionTypeCode == EFTTransactionTypes.Debit) {\r\n\t\t\t\t\t\t\tIndividualModel.BeneficiaryId = eftData.SourceAccountId;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\treturn { model, IndividualModel };\r\n\t\t\t\t\t}, () => this.GetCustomerStore());\r\n\t\t\t\t},\r\n\t\t\t\terrorMessage => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while fetching data\", errorMessage);\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\t// Recurring\r\n\t\telse if (RecurringId) {\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tProxy.POST(\"/bankapi/v1.0/BankBmoEFT/GetByIdRecurringRequest\",\r\n\t\t\t\t{ Item: RecurringId },\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while fetching data\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tvar data = responseData.Item;\r\n\r\n\t\t\t\t\tthis.setState(function (state) {\r\n\t\t\t\t\t\tvar model = state.model || {};\r\n\t\t\t\t\t\tvar RecurringModel = state.RecurringModel || {};\r\n\r\n\t\t\t\t\t\tmodel.UniqueClientId = data.UniqueClientId;\r\n\r\n\t\t\t\t\t\tmodel.EntryType = data.EntryTypeId;\r\n\t\t\t\t\t\tmodel.EntryCode = EFTEntryType.Recurring;\r\n\t\t\t\t\t\tmodel.EFTType = data.EFTTypeId;\r\n\r\n\t\t\t\t\t\tmodel.IsUpdate = true;\r\n\t\t\t\t\t\tRecurringModel.Id = data.Id;\r\n\t\t\t\t\t\tRecurringModel.PayeeId = data.PayeeId;\r\n\r\n\t\t\t\t\t\tif (data.CustomerPayee && data.CustomerPayee.ClientType) {\r\n\t\t\t\t\t\t\tif (data.CustomerPayee.ClientType.ParameterValue == ClientType.Corporate)\r\n\t\t\t\t\t\t\t\tRecurringModel.PayeeName = data.CustomerPayee.CompanyLegalName;\r\n\t\t\t\t\t\t\telse if (data.CustomerPayee.ClientType.ParameterValue == ClientType.Personal)\r\n\t\t\t\t\t\t\t\tRecurringModel.PayeeName = data.CustomerPayee.Name + \" \" + data.CustomerPayee.SurName;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tRecurringModel.BeneficiaryId = data.BeneficiaryId;\r\n\t\t\t\t\t\tRecurringModel.StartDate = data.StartingFromDate ? DateHelper.ToMoment(data.StartingFromDate) : null;\r\n\t\t\t\t\t\tRecurringModel.EndDate = data.EndOfDate ? DateHelper.ToMoment(data.EndOfDate) : null;\r\n\t\t\t\t\t\tRecurringModel.FreezeStartDate = data.FreezeFromDate ? DateHelper.ToMoment(data.FreezeFromDate) : null;\r\n\t\t\t\t\t\tRecurringModel.FreezeEndDate = data.FreezeToDate ? DateHelper.ToMoment(data.FreezeToDate) : null;\r\n\t\t\t\t\t\tRecurringModel.RecurringAmount = data.TransactionAmount;\r\n\t\t\t\t\t\tRecurringModel.TransferMemo = data.TransferMemo;\r\n\t\t\t\t\t\tRecurringModel.PeriodId = data.FirstDueDateOptionId;\r\n\t\t\t\t\t\tRecurringModel.PeriodCode = data.FirstDueDateOption != null ? data.FirstDueDateOption.ParameterValue : \"\";\r\n\t\t\t\t\t\tRecurringModel.WeeklyId = data.PeriodWeeklyId;\r\n\t\t\t\t\t\tRecurringModel.WeeklyNumber = data.PeriodWeekly != null ? data.PeriodWeekly.ParameterValue : \"\";\r\n\t\t\t\t\t\tRecurringModel.BiWeeklyId = data.PeriodBiWeeklyId;\r\n\t\t\t\t\t\tRecurringModel.BiWeeklyNumber = data.PeriodBiWeekly != null ? data.PeriodBiWeekly.ParameterValue : \"\";\r\n\t\t\t\t\t\tRecurringModel.MonthlyId = data.PeriodMonthlyId;\r\n\t\t\t\t\t\tRecurringModel.MonthlyNumber = data.PeriodMonthly != null ? data.PeriodMonthly.ParameterValue : \"\";\r\n\t\t\t\t\t\tRecurringModel.QuarterlyId = data.PeriodQuarterlyId;\r\n\t\t\t\t\t\tRecurringModel.QuarterlyNumber = data.PeriodQuarterly != null ? data.PeriodQuarterly.ParameterValue : \"\";\r\n\t\t\t\t\t\tRecurringModel.PaymentCount = data.NumberOfPayments;\r\n\t\t\t\t\t\tRecurringModel.TransactionType = data.TransactionTypeId;\r\n\t\t\t\t\t\tRecurringModel.TransactionTypeCode = data.TransactionType ? data.TransactionType.ParameterValue : \"\";\r\n\t\t\t\t\t\tRecurringModel.TransactionCode = data.EFTTransactionTypeId;\r\n\t\t\t\t\t\tRecurringModel.CustomerStoreId = data.CustomerStoreId;\r\n\r\n\t\t\t\t\t\treturn { model, RecurringModel };\r\n\t\t\t\t\t}, () => this.GetCustomerStore());\r\n\t\t\t\t},\r\n\t\t\t\terrorMessage => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while fetching data\", errorMessage);\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t}\r\n\r\n\tRefreshToolBar() {\r\n\t\tthis.setState({ LimitToken: !this.state.LimitToken });\r\n\t}\r\n\r\n\tValueChanged(name, newValue, data) {\r\n\t\tthis.setState(function (state) {\r\n\t\t\tvar model = state.model || {};\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\tif (name == \"EntryType\")\r\n\t\t\t\tmodel.EntryCode = data ? data.ParameterValue : \"\";\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tFromFileModelChange(modelFunction) {\r\n\t\tthis.setState(function (state) {\r\n\t\t\tvar model = state.FromFileModel || {};\r\n\r\n\t\t\tif (modelFunction)\r\n\t\t\t\tmodel = modelFunction(model);\r\n\r\n\t\t\treturn { FromFileModel: model };\r\n\t\t});\r\n\t}\r\n\r\n\tIndividualModelChange(modelFunction) {\r\n\t\tthis.setState(function (state) {\r\n\t\t\tvar model = state.IndividualModel || {};\r\n\r\n\t\t\tif (modelFunction)\r\n\t\t\t\tmodel = modelFunction(model);\r\n\r\n\t\t\treturn { IndividualModel: model };\r\n\t\t});\r\n\t}\r\n\r\n\tRecurringModelChange(modelFunction) {\r\n\t\tthis.setState(function (state) {\r\n\t\t\tvar model = state.RecurringModel || {};\r\n\r\n\t\t\tif (modelFunction)\r\n\t\t\t\tmodel = modelFunction(model);\r\n\r\n\t\t\treturn { RecurringModel: model };\r\n\t\t});\r\n\t}\r\n\r\n\tSubmitClick(workflowId, after, accessToken) {\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tswitch (model.EntryCode) {\r\n\t\t\tcase EFTEntryType.FromFile:\r\n\t\t\t\tthis.setState({ isFileDialogOpen: true, workflowId, after, accessToken });\r\n\t\t\t\tbreak;\r\n\t\t\tcase EFTEntryType.Individual:\r\n\t\t\t\tthis.setState({ isIndividualDialogOpen: true, workflowId, after, accessToken });\r\n\t\t\t\tbreak;\r\n\t\t\tcase EFTEntryType.Recurring:\r\n\t\t\t\tthis.setState({ isRecurringDialogOpen: true, workflowId, after, accessToken });\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t}\r\n\r\n\tSubmitFileClick() {\r\n\t\tconst { FromFileModel } = this.state;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tvar formData = new FormData();\r\n\t\tformData.append(\"file\", FromFileModel.File, FromFileModel.FileName);\r\n\t\tformData.append(\"approved\", String(FromFileModel.AutoApprove));\r\n\r\n\t\tProxy.FileUpload(\"/bankapi/v1.0/BankBmoEFTFile/UploadCreateTransactionFile\",\r\n\t\t\tformData,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false, isFileDialogOpen: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while upload file\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvar fileId = responseData.Item ? responseData.Item.FileId : 0;\r\n\r\n\t\t\t\tthis.setState({ isLoading: true });\r\n\t\t\t\tProxy.POST(\"/bankapi/v1.0/BankBmoEFTFile/GetFileInformation\",\r\n\t\t\t\t\t{ Id: fileId },\r\n\t\t\t\t\tfileResponseData => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false, isFileDialogOpen: false });\r\n\r\n\t\t\t\t\t\tif (!fileResponseData.IsSucceeded) {\r\n\t\t\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while load file information\", fileResponseData.ErrorDescription);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tthis.setState({ FileResultList: fileResponseData.Item, isFileResultDialogOpen: true });\r\n\t\t\t\t\t},\r\n\t\t\t\t\terrorMessage => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false, isFileDialogOpen: false });\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while load file information\", errorMessage);\r\n\t\t\t\t\t}\r\n\t\t\t\t);\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false, isFileDialogOpen: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while upload file\", errorMessage);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tSubmitIndividualClick() {\r\n\t\tconst { model, workflowId, after, accessToken } = this.state;\r\n\r\n\t\tvar individualRequest = this.GetModel();\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tif (!model.IsUpdate)\r\n\t\t\tProxy.POST(\"/bankapi/v1.0/BankBmoEFT/InsertIndividualRequest\",\r\n\t\t\t\tindividualRequest,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tthis.setState({ isLoading: false, isIndividualDialogOpen: false });\r\n\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while inserting data\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (after) after();\r\n\r\n\t\t\t\t\tthis.props.showMessage(\"success\", \"Individual Transaction Entry successfully saved.\");\r\n\r\n\t\t\t\t\tif (this.isClient)\r\n\t\t\t\t\t\tthis.ClearScreen();\r\n\t\t\t\t},\r\n\t\t\t\terrorMessage => {\r\n\t\t\t\t\tthis.setState({ isLoading: false, isIndividualDialogOpen: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while inserting data\", errorMessage);\r\n\t\t\t\t},\r\n\t\t\t\tworkflowId,\r\n\t\t\t\taccessToken\r\n\t\t\t);\r\n\t\telse\r\n\t\t\tProxy.POST(\"/bankapi/v1.0/BankBmoEFT/UpdateIndividualRequest\",\r\n\t\t\t\tindividualRequest,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tthis.setState({ isLoading: false, isIndividualDialogOpen: false });\r\n\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while updating data\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (after) after();\r\n\r\n\t\t\t\t\tthis.props.showMessage(\"success\", \"Individual Transaction Entry successfully updated.\");\r\n\r\n\t\t\t\t\tif (this.isClient)\r\n\t\t\t\t\t\tthis.ClearScreen();\r\n\t\t\t\t},\r\n\t\t\t\terrorMessage => {\r\n\t\t\t\t\tthis.setState({ isLoading: false, isIndividualDialogOpen: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while updating data\", errorMessage);\r\n\t\t\t\t},\r\n\t\t\t\tworkflowId,\r\n\t\t\t\taccessToken\r\n\t\t\t);\r\n\t}\r\n\r\n\tSubmitRecurringClick() {\r\n\t\tconst { model, workflowId, after, accessToken } = this.state;\r\n\r\n\t\tvar recurringRequest = this.GetModel();\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tif (!model.IsUpdate)\r\n\t\t\tProxy.POST(\"/bankapi/v1.0/BankBmoEFT/InsertRecurringRequest\",\r\n\t\t\t\trecurringRequest,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tthis.setState({ isLoading: false, isRecurringDialogOpen: false });\r\n\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while inserting data\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (after) after();\r\n\r\n\t\t\t\t\tthis.props.showMessage(\"success\", \"Recurring Transaction Entry successfully saved.\");\r\n\r\n\t\t\t\t\tif (this.isClient)\r\n\t\t\t\t\t\tthis.ClearScreen();\r\n\t\t\t\t},\r\n\t\t\t\terrorMessage => {\r\n\t\t\t\t\tthis.setState({ isLoading: false, isRecurringDialogOpen: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while inserting data\", errorMessage);\r\n\t\t\t\t},\r\n\t\t\t\tworkflowId,\r\n\t\t\t\taccessToken\r\n\t\t\t);\r\n\t\telse\r\n\t\t\tProxy.POST(\"/bankapi/v1.0/BankBmoEFT/UpdateRecurringRequest\",\r\n\t\t\t\trecurringRequest,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tthis.setState({ isLoading: false, isRecurringDialogOpen: false });\r\n\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while updating data\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (after) after();\r\n\r\n\t\t\t\t\tthis.props.showMessage(\"success\", \"Recurring Transaction Entry successfully updated.\");\r\n\r\n\t\t\t\t\tif (this.isClient)\r\n\t\t\t\t\t\tthis.ClearScreen();\r\n\t\t\t\t},\r\n\t\t\t\terrorMessage => {\r\n\t\t\t\t\tthis.setState({ isLoading: false, isRecurringDialogOpen: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while updating data\", errorMessage);\r\n\t\t\t\t},\r\n\t\t\t\tworkflowId,\r\n\t\t\t\taccessToken\r\n\t\t\t);\r\n\t}\r\n\r\n\tClearClick() {\r\n\t\tthis.setState({ isClearDialogOpen: true });\r\n\t}\r\n\r\n\tClearDialogConfirm() {\r\n\t\tthis.ClearScreen();\r\n\t}\r\n\r\n\tClearScreen() {\r\n\t\tthis.setState({ model: { ...this.defaultModel }, vModel: {}, vFromFileModel: {}, vIndividualModel: {}, vRecurringModel: {}, isClearDialogOpen: false, isLoading: true });\r\n\t\tthis.FromFileModelChange(() => { return { ...this.defaultFromFileModel }; });\r\n\t\tthis.IndividualModelChange(() => { return { ...this.defaultIndividualModel }; });\r\n\t\tthis.RecurringModelChange(() => { return { ...this.defaultRecurringModel }; });\r\n\t\tthis.RefreshToolBar();\r\n\t}\r\n\tGetCustomerStore = () => {\r\n\t\tProxy.POST(\"/bankapi/v1.0/CustomerStore/GetStoreAccountMaps\", { Id: this.state.model != null ? this.state.model.UniqueClientId : 0, ProgramCode: ProgramCodes.Bank_Programs_EFT },\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tconsole.log(responseData.ErrorDescription);\r\n\t\t\t\t\tthis.setState({ CustomerStoreList: [] });\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ CustomerStoreList: responseData.Item || [] });\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ CustomerStoreList: [] });\r\n\t\t\t\tconsole.log(errorMessage);\r\n\t\t\t});\r\n\t}\r\n\tValidate() {\r\n\t\tconst { model, vModel, FromFileModel, vFromFileModel, IndividualModel, vIndividualModel, RecurringModel, vRecurringModel } = this.state;\r\n\r\n\t\tvModel.EntryType = model.EntryType == null || model.EntryType == \"\";\r\n\t\tif (vModel.EntryType) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Entry Type not selected\", \"Select Entry Type to continue.\");\r\n\t\t\tthis.setState({ vModel });\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tvModel.EFTType = (model.EFTType == null || model.EFTType == \"\") && model.EntryCode != EFTEntryType.FromFile;\r\n\t\tif (vModel.EFTType) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"EFT Type not selected\", \"Select EFT Type to continue.\");\r\n\t\t\tthis.setState({ vModel });\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tswitch (model.EntryCode) {\r\n\t\t\tcase EFTEntryType.FromFile:\r\n\t\t\t\tvFromFileModel.File = !FromFileModel.File;\r\n\t\t\t\tif (vFromFileModel.File) {\r\n\t\t\t\t\tthis.props.showMessage(\"warning\", \"File not selected\", \"Select File to continue.\");\r\n\t\t\t\t\tthis.setState({ vFromFileModel });\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\treturn true;\r\n\r\n\t\t\tcase EFTEntryType.Individual:\r\n\t\t\t\tvar individualMessages = [];\r\n\t\t\t\tvIndividualModel.TransactionType = IndividualModel.TransactionType == null || IndividualModel.TransactionType == \"\";\r\n\t\t\t\tif (vIndividualModel.TransactionType) individualMessages.push(\"Transaction Type cannot be null.\");\r\n\t\t\t\tvIndividualModel.TransactionCode = IndividualModel.TransactionCode == null || IndividualModel.TransactionCode == \"\";\r\n\t\t\t\tif (vIndividualModel.TransactionCode) individualMessages.push(\"Transaction Code cannot be null.\");\r\n\t\t\t\tvIndividualModel.PayeeId = IndividualModel.PayeeId == null || IndividualModel.PayeeId == \"\";\r\n\t\t\t\tif (vIndividualModel.PayeeId) individualMessages.push(\"Customer Name cannot be null.\");\r\n\t\t\t\tvIndividualModel.BeneficiaryId = IndividualModel.BeneficiaryId == null || IndividualModel.BeneficiaryId == \"\";\r\n\t\t\t\tif (vIndividualModel.BeneficiaryId) individualMessages.push(\"Customer Account cannot be null.\");\r\n\t\t\t\tvIndividualModel.Amount = IndividualModel.Amount == null || IndividualModel.Amount == \"\";\r\n\t\t\t\tif (IndividualModel.Amount == null || IndividualModel.Amount == \"\") individualMessages.push(\"Amount cannot be null.\");\r\n\t\t\t\tif (this.state.CustomerStoreList.length > 0) {\r\n\t\t\t\t\tvIndividualModel.CustomerStoreId = IndividualModel.CustomerStoreId == null || IndividualModel.CustomerStoreId == \"\";\r\n\t\t\t\t\tif (vIndividualModel.CustomerStoreId) individualMessages.push(\"Customer Store cannot be null.\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvIndividualModel.TransactionDate = IndividualModel.TransactionDate == null;\r\n\t\t\t\tif (vIndividualModel.TransactionDate) individualMessages.push(\"Transaction Date cannot be null.\");\r\n\t\t\t\telse {\r\n\t\t\t\t\tvIndividualModel.TransactionDate = typeof IndividualModel.TransactionDate != \"object\";\r\n\t\t\t\t\tif (vIndividualModel.TransactionDate) individualMessages.push(\"Transaction Date is invalid.\");\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tvIndividualModel.TransactionDate = !model.IsUpdate && IndividualModel.TransactionDate < DateHelper.GetDateLocal();\r\n\t\t\t\t\t\tif (vIndividualModel.TransactionDate) individualMessages.push(\"Transaction Date cannot be past.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (individualMessages.length > 0) {\r\n\t\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", individualMessages.map((x, i) =>
{x}
));\r\n\t\t\t\t\tthis.setState({ vIndividualModel });\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\treturn true;\r\n\r\n\t\t\tcase EFTEntryType.Recurring:\r\n\t\t\t\tvar recurringMessages = [];\r\n\r\n\t\t\t\tvRecurringModel.TransactionType = RecurringModel.TransactionType == null || RecurringModel.TransactionType == \"\";\r\n\t\t\t\tif (vRecurringModel.TransactionType) recurringMessages.push(\"Transaction Type cannot be null.\");\r\n\t\t\t\tvRecurringModel.TransactionCode = RecurringModel.TransactionCode == null || RecurringModel.TransactionCode == \"\";\r\n\t\t\t\tif (vRecurringModel.TransactionCode) recurringMessages.push(\"Transaction Code cannot be null.\");\r\n\t\t\t\tvRecurringModel.PayeeId = RecurringModel.PayeeId == null || RecurringModel.PayeeId == \"\";\r\n\t\t\t\tif (vRecurringModel.PayeeId) recurringMessages.push(\"Customer Name cannot be null.\");\r\n\t\t\t\tvRecurringModel.BeneficiaryId = RecurringModel.BeneficiaryId == null || RecurringModel.BeneficiaryId == \"\";\r\n\t\t\t\tif (vRecurringModel.BeneficiaryId) recurringMessages.push(\"Customer Account cannot be null.\");\r\n\t\t\t\tif (this.state.CustomerStoreList.length > 0) {\r\n\t\t\t\t\tvRecurringModel.CustomerStoreId = RecurringModel.CustomerStoreId == null || RecurringModel.CustomerStoreId == \"\";\r\n\t\t\t\t\tif (vRecurringModel.CustomerStoreId) recurringMessages.push(\"Customer Store cannot be null.\");\r\n\t\t\t\t}\r\n\t\t\t\tvRecurringModel.StartDate = RecurringModel.StartDate == null;\r\n\t\t\t\tif (vRecurringModel.StartDate) recurringMessages.push(\"Start Date cannot be null.\");\r\n\t\t\t\telse {\r\n\t\t\t\t\tvRecurringModel.StartDate = typeof RecurringModel.StartDate != \"object\";\r\n\t\t\t\t\tif (vRecurringModel.StartDate) recurringMessages.push(\"Start Date is invalid.\");\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tvRecurringModel.StartDate = !model.IsUpdate && RecurringModel.StartDate < DateHelper.GetLocalDateAsUtc();\r\n\t\t\t\t\t\tif (vRecurringModel.StartDate) recurringMessages.push(\"Start Date cannot be past.\");\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tvRecurringModel.StartDate = typeof RecurringModel.StartDate == \"object\" && typeof RecurringModel.EndDate == \"object\" && RecurringModel.StartDate > RecurringModel.EndDate;\r\n\t\t\t\t\t\t\tif (vRecurringModel.StartDate) recurringMessages.push(\"Start Date cannot be after End Date.\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvRecurringModel.EndDate = RecurringModel.EndDate == null;\r\n\t\t\t\tif (vRecurringModel.EndDate) recurringMessages.push(\"End Date cannot be null.\");\r\n\t\t\t\telse {\r\n\t\t\t\t\tvRecurringModel.EndDate = typeof RecurringModel.EndDate != \"object\";\r\n\t\t\t\t\tif (vRecurringModel.EndDate) recurringMessages.push(\"End Date is invalid.\");\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tvRecurringModel.EndDate = RecurringModel.EndDate < DateHelper.GetLocalDateAsUtc();\r\n\t\t\t\t\t\tif (vRecurringModel.EndDate) recurringMessages.push(\"End Date cannot be past.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (model.IsUpdate) {\r\n\t\t\t\t\tvar isFreezeStartDateDefined = false;\r\n\t\t\t\t\tvRecurringModel.FreezeStartDate = RecurringModel.FreezeStartDate != null && RecurringModel.FreezeStartDate != \"\";\r\n\t\t\t\t\tif (vRecurringModel.FreezeStartDate) {\r\n\t\t\t\t\t\tvRecurringModel.FreezeStartDate = typeof RecurringModel.FreezeStartDate != \"object\";\r\n\t\t\t\t\t\tif (vRecurringModel.FreezeStartDate) recurringMessages.push(\"Freeze Start Date is invalid.\");\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tvRecurringModel.FreezeStartDate = RecurringModel.FreezeStartDate < RecurringModel.StartDate;\r\n\t\t\t\t\t\t\tif (vRecurringModel.FreezeStartDate) recurringMessages.push(\"Freeze Start Date cannot be before Start Date.\");\r\n\t\t\t\t\t\t\telse isFreezeStartDateDefined = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tvRecurringModel.FreezeEndDate = RecurringModel.FreezeEndDate != null && RecurringModel.FreezeEndDate != \"\";\r\n\t\t\t\t\tif (vRecurringModel.FreezeEndDate) {\r\n\t\t\t\t\t\tvRecurringModel.FreezeEndDate = typeof RecurringModel.FreezeEndDate != \"object\";\r\n\t\t\t\t\t\tif (vRecurringModel.FreezeEndDate) recurringMessages.push(\"Freeze End Date is invalid.\");\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tvRecurringModel.FreezeEndDate = RecurringModel.FreezeEndDate > RecurringModel.EndDate;\r\n\t\t\t\t\t\t\tif (vRecurringModel.FreezeEndDate) recurringMessages.push(\"Freeze End Date cannot be after End Date.\");\r\n\t\t\t\t\t\t\telse if (!isFreezeStartDateDefined) recurringMessages.push(\"Freeze Start Date can not be left blank.\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (isFreezeStartDateDefined) recurringMessages.push(\"Freeze date can not be left blank.\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvRecurringModel.PaymentCount = RecurringModel.PaymentCount == null;\r\n\t\t\t\tif (vRecurringModel.PaymentCount) recurringMessages.push(\"Period/No. Of Payment cannot be null.\");\r\n\t\t\t\tvRecurringModel.RecurringAmount = RecurringModel.RecurringAmount == null || RecurringModel.RecurringAmount == \"\";\r\n\t\t\t\tif (vRecurringModel.RecurringAmount) recurringMessages.push(\"Recurring Amount cannot be null.\");\r\n\t\t\t\tvRecurringModel.PeriodId = RecurringModel.PeriodId == null || RecurringModel.PeriodId == \"\";\r\n\t\t\t\tif (vRecurringModel.PeriodId) recurringMessages.push(\"First Due Date Options is not selected.\");\r\n\t\t\t\tvRecurringModel.WeeklyId = RecurringModel.PeriodCode == PeriodCodes.Weekly && (RecurringModel.WeeklyNumber == null || RecurringModel.WeeklyNumber == \"\");\r\n\t\t\t\tif (vRecurringModel.WeeklyId) recurringMessages.push(\"Day of week is not selected.\");\r\n\t\t\t\tvRecurringModel.BiWeeklyId = RecurringModel.PeriodCode == PeriodCodes.BiWeekly && (RecurringModel.BiWeeklyNumber == null || RecurringModel.BiWeeklyNumber == \"\");\r\n\t\t\t\tif (vRecurringModel.BiWeeklyId) recurringMessages.push(\"Day of week is not selected.\");\r\n\t\t\t\tvRecurringModel.MonthlyId = RecurringModel.PeriodCode == PeriodCodes.Monthly && (RecurringModel.MonthlyNumber == null || RecurringModel.MonthlyNumber == \"\");\r\n\t\t\t\tif (vRecurringModel.MonthlyId) recurringMessages.push(\"Day of month is not selected.\");\r\n\t\t\t\tvRecurringModel.QuarterlyId = RecurringModel.PeriodCode == PeriodCodes.Quarterly && (RecurringModel.QuarterlyNumber == null || RecurringModel.QuarterlyNumber == \"\");\r\n\t\t\t\tif (vRecurringModel.QuarterlyId) recurringMessages.push(\"Day of first month of quarter is not selected.\");\r\n\r\n\t\t\t\tif (recurringMessages.length > 0) {\r\n\t\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", recurringMessages.map((x, i) =>
{x}
));\r\n\t\t\t\t\tthis.setState({ vRecurringModel });\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\treturn true;\r\n\r\n\t\t\tdefault:\r\n\t\t\t\tthis.props.showMessage(\"warning\", \"Entry Type not selected\", \"Select Entry Type to continue.\");\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t}\r\n\r\n\tGetModel() {\r\n\t\tconst { model, FromFileModel, IndividualModel, RecurringModel } = this.state;\r\n\r\n\t\tswitch (model.EntryCode) {\r\n\t\t\tcase EFTEntryType.FromFile: return { model, FromFileModel };\r\n\t\t\tcase EFTEntryType.Individual: return { model, IndividualModel };\r\n\t\t\tcase EFTEntryType.Recurring: return { model, RecurringModel };\r\n\t\t\tdefault: return null;\r\n\t\t}\r\n\t}\r\n\r\n\tFillData(data) {\r\n\t\tconst { model, FromFileModel, IndividualModel, RecurringModel } = data;\r\n\r\n\t\tswitch (model.EntryCode) {\r\n\t\t\tcase EFTEntryType.FromFile: this.setState({ model, FromFileModel }); break;\r\n\t\t\tcase EFTEntryType.Individual:\r\n\t\t\t\tIndividualModel.TransactionDate = IndividualModel.TransactionDate ? DateHelper.ToMoment(IndividualModel.TransactionDate) : null;\r\n\t\t\t\tthis.setState({ model, IndividualModel });\r\n\t\t\t\tbreak;\r\n\t\t\tcase EFTEntryType.Recurring:\r\n\t\t\t\tRecurringModel.StartDate = RecurringModel.StartDate ? DateHelper.ToMoment(RecurringModel.StartDate) : null;\r\n\t\t\t\tRecurringModel.EndDate = RecurringModel.EndDate ? DateHelper.ToMoment(RecurringModel.EndDate) : null;\r\n\t\t\t\tRecurringModel.FreezeStartDate = RecurringModel.FreezeStartDate ? DateHelper.ToMoment(RecurringModel.FreezeStartDate) : null;\r\n\t\t\t\tRecurringModel.FreezeEndDate = RecurringModel.FreezeEndDate ? DateHelper.ToMoment(RecurringModel.FreezeEndDate) : null;\r\n\t\t\t\tthis.setState({ model, RecurringModel });\r\n\t\t\t\tbreak;\r\n\t\t\tdefault: return;\r\n\t\t}\r\n\t}\r\n\r\n\tGetModelId() {\r\n\t\tconst { model, IndividualModel, RecurringModel } = this.state;\r\n\r\n\t\tswitch (model.EntryCode) {\r\n\t\t\tcase EFTEntryType.FromFile: return null;\r\n\t\t\tcase EFTEntryType.Individual: return IndividualModel.Id;\r\n\t\t\tcase EFTEntryType.Recurring: return RecurringModel.Id;\r\n\t\t\tdefault: return null;\r\n\t\t}\r\n\t}\r\n\r\n\tLimitDataLoad(data) {\r\n\t\tthis.setState({ LimitBalanceData: data, isLoading: false });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, vModel, isLoading, alert, isFileDialogOpen, isIndividualDialogOpen, isRecurringDialogOpen, isClearDialogOpen, isFileResultDialogOpen, FileResultList, FromFileModel, vFromFileModel, IndividualModel, vIndividualModel, RecurringModel, vRecurringModel, LimitToken, addNewCustomerMenuId, idIndividualClientWarningOpen, CustomerStoreList } = this.state;\r\n\t\tconst { Disabled, history } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t{this.isClient && }\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\tMain Parameters\r\n\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t{/* */}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\t\t\t\t{/* \r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
*/}\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t `${d.FinancialInstitution.Description} - ${d.AccountNumber}`}\r\n\t\t\t\t\t\t\tValue={IndividualModel.BeneficiaryId}\r\n\t\t\t\t\t\t\tDisabled={true} />\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t `${d.FinancialInstitution.Description} - ${d.AccountNumber}`}\r\n\t\t\t\t\t\t\tValue={RecurringModel.BeneficiaryId}\r\n\t\t\t\t\t\t\tDisabled={true} />\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t this.setState({ isFileResultDialogOpen: false })}>\r\n\t\t\t\t\t\t\t\t\tclose\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t row.value ? \"Yes\" : \"No\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Comment\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"Comment\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Entry Type\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"EntryType\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"EFT Type\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"EFTType\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Customer Number\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"CustomerNumber\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Financial Institution Number\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"FinancialInstitutionNumber\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Transit Number\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"TransitNumber\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Customer Account\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"CustomerAccount\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Transaction Type\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"TransactionType\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Transaction Amount\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"TransactionAmount\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Transaction Code\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"TransactionCode\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"TransactionDate\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Start Date\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"StartDate\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"End Date\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"EndDate\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"EFT First Due Date Option\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"EFTFirstDueDateOption\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Period Weekly\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"PeriodWeekly\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Period BiWeekly\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"PeriodBiWeekly\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Period Monthly\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"PeriodMonthly\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Period Quarterly\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"PeriodQuarterly\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Freeze Start Date\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"FreezeStartDate\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Freeze End Date\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"FreezeEndDate\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Transfer Memo\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"TransferMemo\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\tData={FileResultList}\r\n\t\t\t\t\t\t\tSorted={[{ id: \"LineId\", desc: false }]}\r\n\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_EFT} />\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCreateEFT.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool,\r\n\tshowMessage: PropTypes.func\r\n};\r\n\r\nCreateEFT.defaultProps = {\r\n\tDisabled: false\r\n};\r\n\r\nexport default withArtifex(CreateEFT, createEftStyle);","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { DetailIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericMultipleSelectInput, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericRadioInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { Direction, GridColumnType, MenuCodes } from \"views/Constants/Constant\";\r\nimport Select from \"react-select\";\r\nimport { Proxy } from \"core\";\r\n\r\nclass EftClearingTransactionSearch extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tClearingStarDate: DateHelper.GetDate(),\r\n\t\t\tClearingEndDate: DateHelper.GetDate()\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tdailyFileList: [],\r\n\t\t\tLogicalRecord: [],\r\n\t\t\tfileInfoModel: {},\r\n\t\t\tisLoading: false,\r\n\t\t\topenDialog: false,\r\n\t\t\tisDownloadDialogOpen: false,\r\n\t\t\tExportReportType: null\r\n\t\t};\r\n\r\n\t\tthis.index = 0;\r\n\t\tthis.sortParamValue = { Member: \"ParameterValue\" };\r\n\t\tthis.trxTable = React.createRef();\r\n\t\tthis.ColumnsdailyFileList = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t { this.HandleChangeActiveStatus(row.original); }} />\r\n\t\t\t\t\t
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Logical Record Type\",\r\n\t\t\t\taccessor: \"LogicalRecordType\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\t{\r\n\t\t\t\t\t\trow.value == \"C\" ? \"Credit\" : row.value == \"D\" ? \"Debit\" : row.value == \"I\" ? \"Return of Credit\" : row.value == \"J\" ? \"Return of Debit\" : \"-\"}
\r\n\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Logical Record Count\",\r\n\t\t\t\taccessor: \"LogicalRecordCount\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Originator\",\r\n\t\t\t\taccessor: \"OriginatorId\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"File Creation Number\",\r\n\t\t\t\taccessor: \"FileCreationNumber\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Unique Client Id\",\r\n\t\t\t\taccessor: \"ClientId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Eft Transaction Type\",\r\n\t\t\t\taccessor: \"TransactionType\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value ? row.value : \"-\"}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Description\",\r\n\t\t\t\taccessor: \"TransactionDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"Amount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"TransactionDate\",\r\n\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"PayeeDraweeInstitutionId\",\r\n\t\t\t\taccessor: \"PayeeDraweeInstitutionId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"PayeeDraweeAccountNumber\",\r\n\t\t\t\taccessor: \"PayeeDraweeAccountNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Item Trace No\",\r\n\t\t\t\taccessor: \"ItemTraceNo\",\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Stored Transaction Type\",\r\n\t\t\t\taccessor: \"StoredTransactionType\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Originator Short Name\",\r\n\t\t\t\taccessor: \"OriginatorShortName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Payee Drawee Name\",\r\n\t\t\t\taccessor: \"PayeeDraweeName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Originator Long Name\",\r\n\t\t\t\taccessor: \"OriginatorLongName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Originating Direct Clearer User\",\r\n\t\t\t\taccessor: \"OriginatingDirectClearerUserId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Cross Reference Number\",\r\n\t\t\t\taccessor: \"CrossReferenceNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"InstitutionId For Returns\",\r\n\t\t\t\taccessor: \"InstitutionIdForReturns\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Number For Returns\",\r\n\t\t\t\taccessor: \"AccountNumberForReturns\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Originator Sundry Information\",\r\n\t\t\t\taccessor: \"OriginatorSundryInformation\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Originator Direct Clearer SettlementCode\",\r\n\t\t\t\taccessor: \"OriginatorDirectClearerSettlementCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Invalid Data Element\",\r\n\t\t\t\taccessor: \"InvalidDataElement\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"File Information\",\r\n\t\t\t\taccessor: \"FileInformation\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Direction\",\r\n\t\t\t\taccessor: \"Direction.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Clearing Date\",\r\n\t\t\t\taccessor: \"ClearingDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Process Status\",\r\n\t\t\t\taccessor: \"ProcessStatus.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Match Status\",\r\n\t\t\t\taccessor: \"MatchStatus.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Validation Status\",\r\n\t\t\t\taccessor: \"ValidationStatus.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"ValidationDescription\",\r\n\t\t\t\taccessor: \"ValidationDescription\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Type\",\r\n\t\t\t\taccessor: \"TransactionTypeTrnx.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Eft Processor\",\r\n\t\t\t\taccessor: \"EftProcessor.ParameterDesc\"\r\n\t\t\t},\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tif (this.props.MenuCode == MenuCodes.Menu_Backoffice_EftClearingTransactionDdt ||\r\n\t\t\t\tthis.props.MenuCode == MenuCodes.Menu_Client_EftClearingTransactionDdt) {\r\n\t\t\t\tsetAppLeftTitle(\"DDT Clearing Transaction Search\");\r\n\t\t\t} else {\r\n\t\t\t\tsetAppLeftTitle(\"EFT Clearing Transaction Search\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tif (this.props.MenuCode == MenuCodes.Menu_Backoffice_EftClearingTransactionDdt ||\r\n\t\t\t\tthis.props.MenuCode == MenuCodes.Menu_Client_EftClearingTransactionDdt) {\r\n\t\t\t\tsetAppCenterTitle(\"DDT MANAGEMENT\");\r\n\t\t\t} else if (this.props.MenuCode == MenuCodes.EftClearingTransactionEftClient) {\r\n\t\t\t\tsetAppCenterTitle(\"EFT SYSTEM\");\r\n\t\t\t} else {\r\n\t\t\t\tsetAppCenterTitle(\"CLEARING & SETTLEMENT\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.parameterSearch();\r\n\t\tthis.setState({ loadingCompleted: true });\r\n\r\n\r\n\t}\r\n\r\n\tValidate(isTemplateCreate) {\r\n\t\tconst { fileInfoModel } = this.state;\r\n\r\n\t\tvar messages = [];\r\n\t\tif (fileInfoModel.TransactionType == null || fileInfoModel.TransactionType == \"\") {\r\n\t\t\tmessages.push(\"Transaction Type can not be null.\");\r\n\t\t}\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\tValidateSearchRequest = () => {\r\n\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tvar messages = [];\r\n\r\n\t\tif (!model.CrossReferenceNumber && !model.AccountNumber) {\r\n\r\n\t\t\tif (!model.Amount && (this.props.MenuCode != MenuCodes.Menu_Client_EftClearingTransactionDdt && this.props.MenuCode != MenuCodes.EftClearingTransactionEftClient)) {\r\n\t\t\t\tif (!model.UniqueClientId) {\r\n\t\t\t\t\tmessages.push(\"Client not selected\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (!model.ClearingStarDate) {\r\n\t\t\t\tmessages.push(\"Clearing Start Date not selected\");\r\n\t\t\t}\r\n\r\n\t\t\tif (!model.ClearingEndDate) {\r\n\t\t\t\tmessages.push(\"Clearing End Date not selected\");\r\n\t\t\t}\r\n\r\n\t\t\tif (model.ClearingStarDate && model.ClearingEndDate) {\r\n\t\t\t\tvar diffMonths = model.ClearingEndDate.diff(model.ClearingStarDate, \"days\");\r\n\t\t\t\tif (diffMonths < 0) {\r\n\t\t\t\t\tmessages.push(\"Clearing End Date must be later than Clearing Start Date\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (diffMonths > 30) {\r\n\t\t\t\t\tmessages.push(\"Difference between Clearing Start Date and Clearing End Date cannot be longer than 30 days\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tHandleClearCancel = () => {\r\n\t\tthis.setState({ openDialog: false });\r\n\t}\r\n\r\n\tSelectedRowChange = (index) => {\r\n\t\tconst tempModel = this.state.dailyFileList[index];\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (tempModel.Id == null || tempModel.Id == undefined)\r\n\t\t\tthis.props.showMessage(\"warning\", \"File Information\", \"FileInformationId can not be null\");\r\n\t\telse {\r\n\t\t\tthis.setState({ fileInfoModel: tempModel, model, isLoading: false, rowIndex: index });\r\n\t\t}\r\n\t}\r\n\r\n\tparameterSearch = async () => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar responseData = await ExecuteApiPost(\"/coreapi/v1.0/Parameter/Search\", { ParameterCode: \"LogicalRecord\" });\r\n\t\tthis.setState({ LogicalRecord: responseData });\r\n\t}\r\n\r\n\tGetDailyFileList = () => {\r\n\t\tif (!this.ValidateSearchRequest())\r\n\t\t\treturn;\r\n\r\n\t\tthis.setState(state => ({ trxGridToken: !state.trxGridToken }));\r\n\r\n\t}\r\n\r\n\thandleUpdate = async () => {\r\n\t\tif (!this.Validate(true))\r\n\t\t\treturn;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar fileInfoModel = { ...this.state.fileInfoModel };\r\n\t\tvar responseData = await ExecuteApiPost(\"/bankapi/v1.0/BankBmoEFT/EftClearingTransactionUpdate\", {\r\n\t\t\tId: fileInfoModel.Id,\r\n\t\t\tTransactionType: fileInfoModel.TransactionType,\r\n\t\t\tLogicalRecordType: fileInfoModel.LogicalRecordType\r\n\t\t});\r\n\r\n\t\tif (responseData != null) {\r\n\t\t\tthis.props.showMessage(\"success\", \"File Information\", \"Transaction Type Update\");\r\n\t\t\tthis.setState({\r\n\t\t\t\tisLoading: false, openDialog: false\r\n\t\t\t});\r\n\t\t\tthis.GetDailyFileList();\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.setState({ isLoading: false });\r\n\t\t}\r\n\t}\r\n\r\n\treturnInsert = async () => {\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tvar fileInfoModel = { ...this.state.fileInfoModel };\r\n\r\n\t\tif (fileInfoModel.StoredTransactionType == null || fileInfoModel.StoredTransactionType == \"\") {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Return Reason Code can not be null\");\r\n\t\t\tthis.setState({ isLoading: false });\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar responseData = await ExecuteApiPost(\"/bankapi/v1.0/BankBmoEFT/EftClearingTransactionReturnInsert\", {\r\n\t\t\tId: fileInfoModel.Id,\r\n\t\t\tStoredTransactionType: fileInfoModel.StoredTransactionType,\r\n\t\t\tLogicalRecordType: fileInfoModel.LogicalRecordType\r\n\t\t});\r\n\r\n\t\tif (responseData != null) {\r\n\t\t\tthis.props.showMessage(\"success\", \"File Information\", \"Transaction Completed\");\r\n\t\t\tthis.setState({\r\n\t\t\t\tisLoading: false, openDialog: false\r\n\t\t\t});\r\n\t\t\tthis.GetDailyFileList();\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.setState({ isLoading: false });\r\n\t\t}\r\n\t}\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tif (name == \"ExportReportType\") {\r\n\t\t\tthis.setState({\r\n\t\t\t\tExportReportType: newValue\r\n\t\t\t});\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tif (name == \"LogicalRecordId\") {\r\n\t\t\tmodel[name] = newValue.map((x) => x.value);\r\n\t\t}\r\n\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\thandleFileinfoChange = (name, newValue, data) => {\r\n\t\tconst fileInfoModel = { ...this.state.fileInfoModel };\r\n\t\tfileInfoModel[name] = newValue;\r\n\t\tthis.setState({ fileInfoModel });\r\n\t}\r\n\r\n\tClearModel = () => {\r\n\t\tthis.index++;\r\n\t\tthis.setState({\r\n\t\t\tmodel: { ...this.initialModel }, fileInfoModel: {}\r\n\t\t});\r\n\t}\r\n\r\n\tHandleChangeActiveStatus = (model) => {\r\n\t\tthis.setState({ openDialog: true, fileInfoModel: model });\r\n\t}\r\n\r\n\tDialogClose = () => {\r\n\t\tthis.setState({ openDialog: false });\r\n\t}\r\n\r\n\tRenderTransactionCode(d) {\r\n\t\tconst transactionCode = d.ParameterValue;\r\n\t\tconst transactionCodeDescription = d.ParameterDesc;\r\n\r\n\t\treturn `${transactionCode} - ${transactionCodeDescription}`;\r\n\t}\r\n\tGetExportButtonDialog() {\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t/>\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t)\r\n\t}\r\n\r\n\tExportClick = () => {\r\n\t\tif (!this.ValidateSearchRequest())\r\n\t\t\treturn;\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.accessor != \"Actions\" && c.accessor != \"ED\" && (c.show == undefined || c.show)) {\r\n\t\t\t\ttrxColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\t\tconsole.log(this.trxTable);\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: trxColumns, ExportSelectedColumns: trxColumns });\r\n\t}\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tconst temp = { ...this.state.model };\r\n\r\n\t\tvar jsonColList = [];\r\n\r\n\t\tvar trxColumns = {};\r\n\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\ttrxColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t});\r\n\t\tjsonColList.push(trxColumns);\r\n\r\n\t\tvar mytitle = \"EFT Clearing Transaction Search\";\r\n\r\n\t\ttemp.jsonFile = {\r\n\t\t\tcolmns: jsonColList,\r\n\t\t\tformat: this.state.ExportReportType,\r\n\t\t\ttitle: mytitle\r\n\t\t};\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\"/bankapi/v1.0/BankBmoEFT/EftClearingTransactionExportDownload\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t},\r\n\t\t\tthis.props.showMessage\r\n\t\t);\r\n\t}\r\n\r\n\thandlePaginationData = (data) => {\r\n\t\tthis.setState({ dailyFileList: data });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, isLoading, openDialog, fileInfoModel } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{this.props.MenuCode != MenuCodes.Menu_Client_EftClearingTransactionDdt && this.props.MenuCode != MenuCodes.EftClearingTransactionEftClient && \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tValue={fileInfoModel.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{this.props.MenuCode != MenuCodes.EftClearingTransactionEftClient && \r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{fileInfoModel.LogicalRecordType == \"J\" || fileInfoModel.LogicalRecordType == \"I\" ?\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t d.ParameterValue + \" (\" + d.ParameterDesc + \")\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tParameter={{ ParameterCode: \"EFTTransactionType\", ParameterValue2: \"ReturnReason\" }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t d.ParameterValue + \" (\" + d.ParameterDesc + \")\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tParameter={{ ParameterCode: \"EFTTransactionType\", ParameterValue2: \"ReturnReason\" }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{(fileInfoModel.LogicalRecordType == \"J\" || fileInfoModel.LogicalRecordType == \"I\") && (fileInfoModel.Direction?.ParameterValue == Direction.Outgoing) ? : (fileInfoModel.LogicalRecordType == \"C\" || fileInfoModel.LogicalRecordType == \"D\") && (fileInfoModel.Direction?.ParameterValue == Direction.Incoming) ? : \"\"}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t{this.GetExportButtonDialog()}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{this.props.MenuCode != MenuCodes.Menu_Client_EftClearingTransactionDdt && this.props.MenuCode != MenuCodes.EftClearingTransactionEftClient && \r\n\t\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t{this.props.MenuCode != MenuCodes.EftClearingTransactionEftClient && \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t `${d.ParameterDesc}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tStaticData={this.state.LogicalRecord}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{this.props.MenuCode == MenuCodes.EftClearingTransactionEftClient && \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{this.props.MenuCode != MenuCodes.EftClearingTransactionEftClient && \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t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t\t\t\t\t\t\t\t\t\tShowPagination={true}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tLoadAtStartup={this.state.loadingCompleted}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValidateRequest={this.ValidateSearchRequest}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tColumns={this.ColumnsdailyFileList}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tRowSelected={this.SelectedRowChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tSelectedIndex={this.state.rowIndex}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tPaginationFetchDataCallback={this.handlePaginationData} />\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nEftClearingTransactionSearch.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\thandleOperationType: PropTypes.func,\r\n\tshowQuestionMessage: PropTypes.func,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\nexport default withArtifex(EftClearingTransactionSearch, {});","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport AlertHelper from \"core/AlertHelper\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport Select from \"react-select\";\r\nimport AccountLimitToolbar from \"views/Components/AccountLimitToolbar\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericRadioInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { GridColumnType, ProgramCodes, MenuCodes } from \"views/Constants/Constant.js\";\r\n\r\nclass Errors extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.isClient = ClientHelper.IsClient();\r\n\t\tthis.clientRowId = ClientHelper.GetClientRowId();\r\n\t\tthis.clientId = ClientHelper.GetClientId();\r\n\t\tthis.isBackOffice = ClientHelper.IsBackOffice();\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tUniqueClientId: this.isBackOffice ? undefined : this.clientRowId,\r\n\t\t\tTransactinDateFrom: DateHelper.GetDate(),\r\n\t\t\tTransactinDateTo: DateHelper.GetDate(),\r\n\t\t\tReferenceNumber: null\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tcountModel: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tLimitToken: false\r\n\t\t};\r\n\r\n\t\tthis.trxTable = React.createRef();\r\n\r\n\t\tthis.sortParamDesc = { Member: \"ParameterDesc\" };\r\n\t\tthis.sortParamValue = { Member: \"ParameterValue\" };\r\n\r\n\t\tthis.HandleClear = this.HandleClear.bind(this);\r\n\t\tthis.HandleChange = this.HandleChange.bind(this);\r\n\t\tthis.HandleChangeItemCount = this.HandleChangeItemCount.bind(this);\r\n\r\n\t\tthis.ErrorListCallback = this.ErrorListCallback.bind(this);\r\n\r\n\t\tthis.GetItemCountCallback = this.GetItemCountCallback.bind(this);\r\n\t\tthis.SuccessItemCountCallback = this.SuccessItemCountCallback.bind(this);\r\n\t\tthis.ErrorItemCountCallback = this.ErrorItemCountCallback.bind(this);\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\t\t//this.GetItemCountCallback();\r\n\r\n\t\tif (setAppLeftTitle)\r\n\r\n\t\t\tif (this.props.MenuCode == MenuCodes.Menu_Backoffice_RejectedReturnTransactionsDdt ||\r\n\t\t\t\tthis.props.MenuCode == MenuCodes.Menu_Client_RejectedReturnTransactionsDdt) {\r\n\t\t\t\tsetAppLeftTitle(\"DDT Rejected & Returned Transactions\");\r\n\t\t\t} else {\r\n\t\t\t\tsetAppLeftTitle(\"Rejected & Returned Transactions\");\r\n\t\t\t}\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tif (this.props.MenuCode == MenuCodes.Menu_Backoffice_RejectedReturnTransactionsDdt ||\r\n\t\t\t\tthis.props.MenuCode == MenuCodes.Menu_Client_RejectedReturnTransactionsDdt) {\r\n\t\t\t\tsetAppCenterTitle(\"DDT MANAGEMENT\");\r\n\t\t\t} else {\r\n\t\t\t\tsetAppCenterTitle(\"EFT SYSTEM\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\t\tthis.RefreshToolBar();\r\n\t\tthis.setState({ loadingCompleted: true });\r\n\t}\r\n\r\n\tRefreshToolBar = () => {\r\n\t\tthis.setState({ LimitToken: !this.state.LimitToken });\r\n\t}\r\n\r\n\tHandleClear() {\r\n\t\tthis.setState({ model: { ...this.initialModel } });\r\n\t}\r\n\r\n\tHandleChange(name, value) {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tif (name == \"MainSearchItemId\")\r\n\t\t\tthis.initialModel[name] = value;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleChangeItemCount(name, value) {\r\n\t\tconst countModel = { ...this.state.countModel };\r\n\t\tcountModel[name] = value;\r\n\t\tthis.setState({ countModel });\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\r\n\tHandleGetList = () => {\r\n\t\tthis.setState(state => ({ trxGridToken: !state.trxGridToken }));\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tif (!model.CrossReferenceNumber && !model.PayeeAccount) {\r\n\t\t\tif (!model.UniqueClientId) {\r\n\t\t\t\tthis.ShowMessage(\"warning\", \"Client not selected\", \"Select Client to continue\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\tif (!model.TransactinDateFrom) {\r\n\t\t\t\tthis.ShowMessage(\"warning\", \"From Date not selected\", \"Select From Date to continue\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\tif (!model.TransactinDateTo) {\r\n\t\t\t\tthis.ShowMessage(\"warning\", \"To Date not selected\", \"Select To Date to continue\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\tvar diffMonths = model.TransactinDateTo.diff(model.TransactinDateFrom, \"days\");\r\n\t\t\tif (diffMonths < 0) {\r\n\t\t\t\tthis.ShowMessage(\"warning\", \"To Date must be later than From Date\", \"To Date must be later than From Date\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\tif (diffMonths > 30) {\r\n\t\t\t\tthis.ShowMessage(\"warning\", \"Difference between From Date and To Date cannot be longer than 30 days\", \"Difference between From Date and To Date cannot be longer than 30 days\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.accessor != \"Actions\" && c.accessor != \"ED\" && (c.show == undefined || c.show)) {\r\n\t\t\t\ttrxColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: trxColumns, ExportSelectedColumns: trxColumns });\r\n\t}\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tconst temp = { ...this.state.model };\r\n\r\n\t\tvar jsonColList = [];\r\n\r\n\t\tvar trxColumns = {};\r\n\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\ttrxColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t});\r\n\t\tjsonColList.push(trxColumns);\r\n\r\n\t\tvar mytitle = \"EFT Rejected & Returned Transactions\";\r\n\r\n\t\ttemp.jsonFile = {\r\n\t\t\tcolmns: jsonColList,\r\n\t\t\tformat: this.state.ExportReportType,\r\n\t\t\ttitle: mytitle\r\n\t\t};\r\n\t\tvar request = {\r\n\t\t\tUniqueClientId: temp.UniqueClientId,\r\n\t\t\tFinancialInstitutionId:temp.FinancialInstitutionId,\r\n\t\t\tMainSearchItemId:temp.MainSearchItemId,\r\n\t\t\tEftTypeId: temp.EftTypeId,\r\n\t\t\tTransactionTypeId : temp.TransactionTypeId,\r\n\t\t\tTransactionCodeId:temp.TransactionCodeId,\r\n\t\t\tReturnReasonId:temp.ReturnReasonId,\r\n\t\t\tPayeeName:temp.PayeeName,\r\n\t\t\tTransactionAmount:temp.TransactionAmount,\r\n\t\t\tCrossReferenceNumber:temp.CrossReferenceNumber,\r\n\t\t\tStoreId: temp.StoreId,\r\n\t\t\tTransactinDateFrom:temp.TransactinDateFrom,\r\n\t\t\tTransactinDateTo:temp.TransactinDateTo,\r\n\t\t\tDirectionId: temp.DirectionId,\r\n\t\t\tTransactionSourceId : temp.TransactionSourceId,\r\n\t\t\tPayeeAccount:temp.PayeeAccount,\r\n\t\t\tMenuCode:temp.MenuCode,\r\n\t\t\tReferenceNumber:temp.ReferenceNumber,\r\n\t\t\tjsonFile:temp.jsonFile,\r\n\r\n\t};\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\"/bankapi/v1.0/BankBmoEFT/DDTRejectedReturnedExportDownload\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t},\r\n\t\t\tthis.props.showMessage\r\n\t\t);\r\n\t}\r\n\r\n\tSuccessListCallback = (responseData) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (responseData.Item != null) {\r\n\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t} else {\r\n\t\t\tthis.setState({ list: [] });\r\n\t\t}\r\n\t}\r\n\r\n\tErrorListCallback(error) {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t}\r\n\r\n\tGetItemCountCallback() {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Transaction/GetEftTransactionCountByStatus\",\r\n\t\t\t{},\r\n\t\t\tthis.SuccessItemCountCallback,\r\n\t\t\tthis.ErrorItemCountCallback\r\n\t\t);\r\n\t}\r\n\r\n\tSuccessItemCountCallback(responseData) {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.HandleChangeItemCount(\"RejectedFiles\", String(responseData.RejectedFiles));\r\n\t\tthis.HandleChangeItemCount(\"ErrorCount\", String(responseData.ErrorCount));\r\n\t\tthis.HandleChangeItemCount(\"ReturnCount\", String(responseData.ReturnCount));\r\n\t}\r\n\r\n\tErrorItemCountCallback(error) {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t}\r\n\r\n\t// HandleSend(model) {\r\n\t// \tthis.setState({ isLoading: true });\r\n\t// \tProxy.POST(\r\n\t// \t\t\"/bankapi/v1.0/\",\r\n\t// \t\tmodel,\r\n\t// \t\tthis.SuccessSendCallback,\r\n\t// \t\tthis.ErrorSendCallback\r\n\t// \t);\r\n\t// }\r\n\r\n\t// SuccessSendCallback(responseData) {\r\n\t// \tthis.setState({ isLoading: false });\r\n\t// \tif (!responseData.IsSucceeded) {\r\n\t// \t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t// \t\treturn;\r\n\t// \t}\r\n\t// \tthis.props.showMessage(\"success\", \"Succeeded!\", \"Operation is successfully!\");\r\n\t// }\r\n\r\n\t// ErrorSendCallback(error) {\r\n\t// \tthis.setState({ isLoading: false });\r\n\t// \tthis.props.showMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t// }\r\n\r\n\tShowMessage(type, title, message) {\r\n\t\tthis.setState({\r\n\t\t\talert: AlertHelper.CreateAlert(title, message, type, () => this.setState({ alert: \"\" }))\r\n\t\t});\r\n\t}\r\n\r\n\tRenderParam(d) {\r\n\t\tconst code = d.ParameterValue;\r\n\t\tconst desc = d.ParameterDesc;\r\n\r\n\t\treturn `${code} - ${desc}`;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, isLoading, model, list, LimitToken } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.isClient && (this.props.MenuCode != MenuCodes.Menu_Client_RejectedReturnTransactionsDdt) && }\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tAll={this.isBackOffice}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={Disabled || this.isClient} />\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t `${String(d.FinancialInstitutionId ?? \"\").padStart(3, \"0\")} - ${d.Description}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.FinancialInstitutionId}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t `${String(d.TransitNumber ?? \"\").padStart(4, \"0\")} - ${d.Description}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.FinancialInstitutionBranchId}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\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t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\t{row.value == \"C\" ? \"Credit\" : row.value == \"D\" ? \"Debit\" : row.value == \"I\" ? \"Return of Credit\" : row.value == \"J\" ? \"Return of Debit\" : \"-\"}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Logical Record Count\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"LogicalRecordCount\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Eft Type\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"EftType\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Originator\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"OriginatorId\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"File Creation Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"FileCreationNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Payee Drawee Institution\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"PayeeDraweeInstitution\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Name\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"EFT Transaction Type\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionType\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Stored Transaction Type\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"StoredTransactionType\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Direction\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Direction\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Process Status\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ProcessStatus\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Match Status\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"MatchStatus\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Validation Description\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ValidationDescription\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Validation Status\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ValidationStatus\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Financial Institution\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"FinancialInstitution\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Customer Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"CustomerNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"File Id\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"FileId\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"File Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"FileInformationName\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Store\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Store\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Return Transaction Type\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ReturnTransactionType\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Type Trnx\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionTypeTrnx\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Customer Account\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"PayeeDraweeAccountNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Item Trace No\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ItemTraceNo\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Originator Short Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"OriginatorShortName\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Payee Drawee Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"PayeeDraweeName\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Originator Long Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"OriginatorLongName\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Cross Reference Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"CrossReferenceNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Source\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionSource\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_EFT}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tServerSide\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tLoadAtStartup={this.state.loadingCompleted}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValidateRequest={this.Validate}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tPrepareRequest={() => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tconst { model } = this.state;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (this.props.MenuCode != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmodel.MenuCode = this.props.MenuCode;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn model;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tRequestUrl=\"/bankapi/v1.0/BankBmoEFT/SearchEFTRejectedsTransactionsPaged\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tRequestMethod=\"POST\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nErrors.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default Errors;\r\n","\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericSelectInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent.jsx\";\r\nimport { GridColumnType } from \"views/Constants/Constant.js\";\r\n\r\nclass ExternalBankSettlementInstruction extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\tselected: true,\r\n\t\t\tvModel: {},\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false,\r\n\t\t};\r\n\r\n\t\tthis.index = 0;\r\n\t\tthis.sortParamValue = { Member: \"ParameterValue\" };\r\n\t\tthis.trxTable = React.createRef();\r\n\t\tthis.ColumnsdailyFileList = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Unique Client Id\",\r\n\t\t\t\taccessor: \"UniqueClient.UniqueClientId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \" Client Name\",\r\n\t\t\t\taccessor: \"UniqueClient.ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"ClientCustomer.CustomerName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Beneficiary\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row?.original?.Beneficiary?.FinancialInstitution?.Description + \"(\" + row?.original?.Beneficiary?.AccountNumber + \")\"}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Financial Account\",\r\n\t\t\t\taccessor: \"FinancialAccount.AccountName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Eft Transaction Type\",\r\n\t\t\t\taccessor: \"EftTransactionType.ParameterDesc\",\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Settlement Amount Finding Type\",\r\n\t\t\t\taccessor: \"SettlementAmountFindingType.ParameterDesc\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Settlement Transaction Type\",\r\n\t\t\t\taccessor: \"SettlementTransactionType.ParameterDesc\"\r\n\t\t\t},\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\t\tif (setAppLeftTitle) setAppLeftTitle(\"External Bank Settlement Instruction\");\r\n\t\tif (setAppCenterTitle) setAppCenterTitle(\"Client\");\r\n\t\tthis.setState({ loadingCompleted: true });\r\n\t}\r\n\r\n\tValidatecheck = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tvar messages = [];\r\n\r\n\t\tvModel.UniqueClientId = false;\r\n\t\tvModel.ClientCustomerId = false;\r\n\t\tvModel.BeneficiaryId = false;\r\n\t\tvModel.FinancialAccountId = false;\r\n\t\tvModel.SettlementTransactionTypeId = false;\r\n\t\tvModel.EftTransactionTypeId = false;\r\n\t\tif (!model.UniqueClientId) {\r\n\t\t\tmessages.push(\"Client not selected\");\r\n\t\t\tvModel.UniqueClientId = true;\r\n\t\t}\r\n\t\tif (!model.ClientCustomerId) {\r\n\t\t\tmessages.push(\"Client Customer not selected\");\r\n\t\t\tvModel.ClientCustomerId = true;\r\n\t\t}\r\n\t\tif (!model.BeneficiaryId) {\r\n\t\t\tmessages.push(\"Beneficiary not selected\");\r\n\t\t\tvModel.BeneficiaryId = true;\r\n\t\t}\r\n\t\tif (!model.FinancialAccountId) {\r\n\t\t\tmessages.push(\"Financial Account not selected\");\r\n\t\t\tvModel.FinancialAccountId = true;\r\n\t\t}\r\n\t\tif (!model.SettlementTransactionTypeId) {\r\n\t\t\tmessages.push(\"Transaction Code not selected\");\r\n\t\t\tvModel.SettlementTransactionTypeId = true;\r\n\t\t}\r\n\t\tif (!model.EftTransactionTypeId) {\r\n\t\t\tmessages.push(\"Transaction Code not selected\");\r\n\t\t\tvModel.EftTransactionTypeId = true;\r\n\t\t}\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\tSelectedRowChange = (index) => {\r\n\t\tconst model = this.state.list[index];\r\n\t\tif (model.Id == null || model.Id == undefined)\r\n\t\t\tthis.props.showMessage(\"warning\", \"File Information\", \"FileInformationId can not be null\");\r\n\t\telse {\r\n\t\t\tthis.setState({ model, isLoading: false, selected: false });\r\n\t\t}\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/bankapi/v1.0/BankBmoEFT/SettlementInstructionSearch\", model);\r\n\t\tif (result != null) {\r\n\t\t\tthis.setState({ list: result });\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.setState({ list: [] });\r\n\r\n\t\t}\r\n\t}\r\n\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\tClearModel = () => {\r\n\t\tthis.index++;\r\n\t\tthis.setState({\r\n\t\t\tmodel: {}, list: []\r\n\t\t});\r\n\t}\r\n\r\n\tRenderTransactionCode(d) {\r\n\t\tconst transactionCode = d.ParameterValue;\r\n\t\tconst transactionCodeDescription = d.ParameterDesc;\r\n\r\n\t\treturn `${transactionCode} - ${transactionCodeDescription}`;\r\n\t}\r\n\tRenderItemClientCustomer = (d) => {\r\n\t\treturn `${d.ClientCustomerNumber} - ${d.Name}`;\r\n\t}\r\n\trender() {\r\n\t\tconst { Disabled, showConfirmMessageInDelete, ExecuteApiPost } = this.props;\r\n\t\tconst { model, isLoading, vModel, selected, list } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t ExecuteApiPost(\"/bankapi/v1.0/BankBmoEFT/SettlementInstructionInsertOrUpdate\", model, null, null, this.Validatecheck, [this.ClearModel, this.Search], true),\r\n\t\t\t\t\t\tDisabled: Disabled\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tCode: \"Update\",\r\n\t\t\t\t\t\tDisabled: Disabled || selected,\r\n\t\t\t\t\t\tOnClick: () => ExecuteApiPost(\"/bankapi/v1.0/BankBmoEFT/SettlementInstructionInsertOrUpdate\", model, null, null, null, [this.ClearModel, this.Search], true)\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tCode: \"Delete\",\r\n\t\t\t\t\t\tDisabled: Disabled || selected,\r\n\t\t\t\t\t\tOnClick: () => showConfirmMessageInDelete(() => ExecuteApiPost(\"/bankapi/v1.0/BankBmoEFT/SettlementInstructionDelete\", { Id: model.Id }, null, null, null, [this.ClearModel, this.Search], true))\r\n\t\t\t\t\t},\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.UniqueClientId}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t `${d.FinancialInstitution.Description} - ${d.AccountNumber}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.BeneficiaryId}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.BeneficiaryId}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\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t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nExternalBankSettlementInstruction.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default ExternalBankSettlementInstruction;\r\n","import GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport { GenericTitle, GenericTextInput, GenericSelectInput, GenericAlert } from \"views/Components/Generic\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\n\r\nclass CorporateAccountDetail extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\tIsCustomer: 0\r\n\t\t};\r\n\t\tthis.GetProfileInfo = this.GetProfileInfo.bind(this);\r\n\t\tthis.handleCustomerProfileInfo = this.handleCustomerProfileInfo.bind(this);\r\n\r\n\t\tthis.ShowMessage = this.ShowMessage.bind(this);\r\n\t\tthis.hideAlert = this.hideAlert.bind(this);\r\n\t\tthis.errorDefinitionCallback = this.errorDefinitionCallback.bind(this);\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.GetProfileInfo();\r\n\t}\r\n\tGetProfileInfo() {\r\n\t\t//GetCustomerBankAccountsOp class\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/BankCustomer/GetProfileInfo\",\r\n\t\t\t{},\r\n\t\t\tthis.handleCustomerProfileInfo,\r\n\t\t\tthis.errorDefinitionCallback\r\n\t\t);\r\n\t}\r\n\thandleCustomerProfileInfo(responseData) {\r\n\t\tconsole.log(\"customerAccountProfile\", responseData.IsSucceeded + \"\");\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error !\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t} else {\r\n\t\t\tif (responseData.Item != null) {\r\n\t\t\t\tif (!responseData.Item.IsCustomer) {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tmodel: responseData.Item.Corporate || {},\r\n\t\t\t\t\t\tIsCustomer: 2\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}\r\n\r\n\terrorDefinitionCallback(error) {\r\n\t\tthis.ShowMessage(\"error\", \"Error !\", \"An error occurred while requesting data\" + error);\r\n\t}\r\n\tShowMessage(type, title, message) {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\thideAlert() {\r\n\t\tthis.setState({\r\n\t\t\talert: null\r\n\t\t});\r\n\t}\r\n\trender() {\r\n\t\tconst { model } = this.state;\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t \r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
Communication
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t \"+\" + d.Code + \" (\" + d.Name + \")\"}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t \"+\" + d.Code + \" (\" + d.Name + \")\"}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCorporateAccountDetail.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tmodel: PropTypes.object\r\n};\r\n\r\nexport default CorporateAccountDetail;","\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport AlertHelper from \"core/AlertHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { DetailIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from 'react';\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericDialog, GenericGrid, GenericLabel, GenericNumberInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { Direction, GridColumnType } from \"views/Constants/Constant.js\";\r\nclass RbcOutgoingResponseReport extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props)\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tFromDate: DateHelper.GetDate(),\r\n\t\t\t\tToDate: DateHelper.GetDate(),\r\n\t\t\t},\r\n\t\t\tgetTransactionByFileIdModel: {\r\n\t\t\t},\r\n\t\t\tdailyFileList: [],\r\n\t\t\tfileInfoModel: {},\r\n\t\t\theaderModel: {},\r\n\t\t\ttransactionList: [],\r\n\t\t\tisLoading: false,\r\n\t\t\terrorList: []\r\n\t\t}\r\n\r\n\t\tthis.ColumnsdailyFileList = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"File Name\",\r\n\t\t\t\taccessor: \"FileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"File Date\",\r\n\t\t\t\taccessor: \"FileDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Record Count\",\r\n\t\t\t\taccessor: \"RecordCount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Send Status\",\r\n\t\t\t\taccessor: \"SendStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"File Creation Number\",\r\n\t\t\t\taccessor: \"FileCreationNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Record Count\",\r\n\t\t\t\taccessor: \"RecordCount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reject Count\",\r\n\t\t\t\taccessor: \"RejectedCount\"\r\n\t\t\t}\r\n\t\t]\r\n\r\n\t\tthis.ColumnserrorFileList = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Number\",\r\n\t\t\t\taccessor: \"ClientNumber\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Error Detail Record Type\",\r\n\t\t\t\taccessor: \"ErrorDetailRecordType\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Service Types\",\r\n\t\t\t\taccessor: \"ServiceTypes\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"File Creation Number\",\r\n\t\t\t\taccessor: \"FileCreationNumber\",\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Payment Type\",\r\n\t\t\t\taccessor: \"PaymentType\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Error Code\",\r\n\t\t\t\taccessor: \"ErrorCode\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Error Message\",\r\n\t\t\t\taccessor: \"ErrorMessage\",\r\n\t\t\t},\r\n\r\n\t\t]\r\n\r\n\t\tthis.ColumnstransactionList = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"CustomerName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"RecordType\",\r\n\t\t\t\taccessor: \"RecordType\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value == \"1\" ? \"Debit detail record\" : row.value == \"2\" ? \"Credit detail record\" : \"\"}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"ClientNumber\",\r\n\t\t\t\taccessor: \"ClientNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Service Types\",\r\n\t\t\t\taccessor: \"ServiceTypes\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value == \"001\" ? \"PAP CAD\" : row.value == \"002\" ? \"PAP USD\" : row.value == \"003\" ? \"PDS CAD\" : row.value == \"004\" ? \"PDS USD\" : row.value == \"005\" ? \"PC-PAP-CAD\" : row.value == \"006\" ? \"PC-PAP-USD\" : row.value == \"007\" ? \"PC-PDS-CAD\" : row.value == \"008\" ? \"PC-PDS-USD\" : row.value == \"009\" ? \"CPS-CAD\" : row.value == \"010\" ? \" CPS-USD\" : \"\"}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"FileCreationNumber\",\r\n\t\t\t\taccessor: \"FileCreationNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"PaymentType\",\r\n\t\t\t\taccessor: \"PaymentType\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value == \"C\" ? \"CREDIT\" : row.value == \"D\" ? \"DEBIT\" : \"\"}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"DetailRecordType\",\r\n\t\t\t\taccessor: \"DetailRecordType\"\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"CustomerNumber\",\r\n\t\t\t\taccessor: \"CustomerNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"CustomerName\",\r\n\t\t\t\taccessor: \"CustomerName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"OriginalDueDate\",\r\n\t\t\t\taccessor: \"OriginalDueDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"PaymentNumber\",\r\n\t\t\t\taccessor: \"PaymentNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"FinancialInstitutionNumber\",\r\n\t\t\t\taccessor: \"FinancialInstitutionNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"BranchNumber\",\r\n\t\t\t\taccessor: \"BranchNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"AccountNumber\",\r\n\t\t\t\taccessor: \"AccountNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Currency\",\r\n\t\t\t\taccessor: \"Currency\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value == \"CAD\" ? \"Canadian $\" : row.value == \"USD\" ? \"United States $\" : \"\"}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Destination Country\",\r\n\t\t\t\taccessor: \"DestinationCountry\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value == \"CAN\" ? \"Canada\" : row.value == \"USA\" ? \"United States\" : \"\"}
\r\n\t\t\t\t)\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"PaymentAmount\",\r\n\t\t\t\taccessor: \"PaymentAmount\",\r\n\t\t\t\ttype: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"ElectronicMessage\",\r\n\t\t\t\taccessor: \"ElectronicMessage\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"PaymentStatus\",\r\n\t\t\t\taccessor: \"PaymentStatus\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value == \" \" ? \"Valid Payment\" : row.value == \"E\" ? \"Reversed Payment/Record\" : row.value == \"W\" ? \"Warnings\" : row.value == \"T\" ? \"T level errors\" : row.value == \"R\" ? \"Rejected Payment/Record\" : row.value == \"U\" ? \" Returned Payment/Record\" : row.value == \"I\" ? \" In Excess Payments\" : row.value == \"P\" ? \"Represented Item\" : \"\"}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"MatchStatus\",\r\n\t\t\t\taccessor: \"MatchStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Error Description\",\r\n\t\t\t\taccessor: \"ErrorCode\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t { } : () => { this.HandleChangeActiveStatus(row.original); }} />\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t]\r\n\t}\r\n\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Rbc Outgoing Response Report\")\r\n\t\t}\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"CLEARING & SETTLEMENT\")\r\n\t\t}\r\n\t}\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tGetDailyFileList = async () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar model = { ...this.state.model };\r\n\t\tvar responseData = await ExecuteApiPost(\"/bankapi/v1.0/BankBmoEFT/GetEFTRbcOutgoingResponseReportFileList\", model, null, null, null, null, null);\r\n\t\tif (responseData != null) {\r\n\t\t\tthis.setState({\r\n\t\t\t\ttransactionList: [], headerModel: {},\r\n\t\t\t\tdailyFileList:responseData.length < 1 ? [] : responseData, isLoading: false\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\tGetTransactionList = async (Id) => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar headerModel = { ...this.state.headerModel };\r\n\t\tvar transactionList = { ...this.state.transactionList };\r\n\t\tvar getTransactionByFileIdModel = { ...this.state.getTransactionByFileIdModel };\r\n\t\tgetTransactionByFileIdModel = { ...this.state.model };\r\n\t\tgetTransactionByFileIdModel.FileId = Id;\r\n\t\tgetTransactionByFileIdModel.UniqueClientId = this.state.model.UniqueClientId == null ? null : this.state.model.UniqueClientId;\r\n\t\tvar responseData = await ExecuteApiPost(\"/bankapi/v1.0/BankBmoEFT/GetEFTRbcClearingFileDetailsReportByFileId\", getTransactionByFileIdModel, null, null, null, null, null);\r\n\t\tif (responseData != null) {\r\n\t\t\tif (responseData.RbcClearingReportFileHeaderDetail != null) {\r\n\t\t\t\theaderModel = responseData.RbcClearingReportFileHeaderDetail == null ? {} : responseData.RbcClearingReportFileHeaderDetail;\r\n\t\t\t\theaderModel.FileDate = this.state.fileInfoModel.FileDate;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\theaderModel = {};\r\n\r\n\t\t\tif (responseData.EftRbcClearingReportFileDetail != null || responseData.EftRbcClearingReportFileDetail.length > 1) {\r\n\t\t\t\ttransactionList = responseData.EftRbcClearingReportFileDetail;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\ttransactionList = [];\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.setState({ transactionList, headerModel, isLoading: false });\r\n\t}\r\n\tSelectedRowChange = (index) => {\r\n\t\tconst tempModel = this.state.dailyFileList[index];\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (tempModel.Id == null || tempModel.Id == undefined)\r\n\t\t\tthis.props.showMessage(\"warning\", \"File Information\", \"FileInformationId can not be null\");\r\n\t\telse {\r\n\t\t\tmodel.UniqueClientId = tempModel.UniqueClientId;\r\n\t\t\tthis.setState({ fileInfoModel: tempModel, model, isLoading: true, rowIndex: index });\r\n\t\t\tthis.GetTransactionList(tempModel.Id);\r\n\r\n\t\t}\r\n\t}\r\n\r\n\tClearModel = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {\r\n\t\t\t\tFromDate: DateHelper.GetDateTime(), ToDate: DateHelper.GetDateTime(),\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tHandleChangeActiveStatus = (model) => {\r\n\t\tthis.setState({ openDialog: true, errorList: [model] });\r\n\t}\r\n\tDialogClose = () => {\r\n\t\tthis.setState({ openDialog: false });\r\n\t}\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, headerModel, isLoading, openDialog, errorList } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tthis.SelectedRowChange(index);\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\tSelectedIndex={this.state.rowIndex} />\r\n\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t
Transaction List

\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\r\n\t\t)\r\n\t}\r\n}\r\nRbcOutgoingResponseReport.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\thandleOperationType: PropTypes.func,\r\n\tshowQuestionMessage: PropTypes.func,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\nexport default withArtifex(RbcOutgoingResponseReport, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { EditIcon, SubmitOrSendIcon } from \"core/Icons\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport AccountLimitToolbar from \"views/Components/AccountLimitToolbar\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericCheckInput, GenericDateInput, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\n\r\nclass Returns extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tcheckedValues: [],\r\n\t\t\tlist: [],\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tcountModel: {},\r\n\t\t\tLimitToken: false\r\n\t\t};\r\n\r\n\t\tthis.HandleClear = this.HandleClear.bind(this);\r\n\t\tthis.HandleCheck = this.HandleCheck.bind(this);\r\n\t\tthis.HandleChange = this.HandleChange.bind(this);\r\n\t\tthis.HandleChangeItemCount = this.HandleChangeItemCount.bind(this);\r\n\r\n\t\tthis.HandleGetList = this.HandleGetList.bind(this);\r\n\t\tthis.SuccessListCallback = this.SuccessListCallback.bind(this);\r\n\t\tthis.ErrorListCallback = this.ErrorListCallback.bind(this);\r\n\r\n\t\tthis.GetItemCountCallback = this.GetItemCountCallback.bind(this);\r\n\t\tthis.SuccessItemCountCallback = this.SuccessItemCountCallback.bind(this);\r\n\t\tthis.ErrorItemCountCallback = this.ErrorItemCountCallback.bind(this);\r\n\r\n\t\tthis.HandleSend = this.HandleSend.bind(this);\r\n\t\tthis.SuccessSendCallback = this.SuccessSendCallback.bind(this);\r\n\t\tthis.ErrorSendCallback = this.ErrorSendCallback.bind(this);\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\t\tthis.GetItemCountCallback();\r\n\r\n\t\tif (setAppLeftTitle)\r\n\t\t\tsetAppLeftTitle(\"Error Transaction\");\r\n\t\tif (setAppCenterTitle)\r\n\t\t\tsetAppCenterTitle(\"EFT SYSTEM\");\r\n\r\n\t\tthis.RefreshToolBar();\r\n\t}\r\n\r\n\tRefreshToolBar = () => {\r\n\t\tthis.setState({ LimitToken: !this.state.LimitToken });\r\n\t}\r\n\r\n\tHandleClear() {\r\n\t\tthis.setState({ model: this.initialModel });\r\n\t}\r\n\r\n\tHandleCheck(e, x) {\r\n\t\tthis.setState(state => ({\r\n\t\t\tcheckedValues: state.checkedValues.includes(x)\r\n\t\t\t\t? state.checkedValues.filter(c => c !== x)\r\n\t\t\t\t: [...state.checkedValues, x]\r\n\t\t}));\r\n\t}\r\n\r\n\tHandleChange(name, value) {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleChangeItemCount(name, value) {\r\n\t\tconst countModel = { ...this.state.countModel };\r\n\t\tcountModel[name] = value;\r\n\t\tthis.setState({ countModel });\r\n\t}\r\n\r\n\tHandleGetList() {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/BankBmoEFT/SearchEFTTransactions\",\r\n\t\t\tthis.state.model,\r\n\t\t\tthis.SuccessListCallback,\r\n\t\t\tthis.ErrorListCallback\r\n\t\t);\r\n\t}\r\n\r\n\tSuccessListCallback(responseData) {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (responseData.Item !== null) {\r\n\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t} else {\r\n\t\t\tthis.setState({ list: [] });\r\n\t\t}\r\n\t}\r\n\r\n\tErrorListCallback(error) {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t}\r\n\r\n\tGetItemCountCallback() {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Transaction/GetEftTransactionCountByStatus\",\r\n\t\t\t{},\r\n\t\t\tthis.SuccessItemCountCallback,\r\n\t\t\tthis.ErrorItemCountCallback\r\n\t\t);\r\n\t}\r\n\r\n\tSuccessItemCountCallback(responseData) {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.HandleChangeItemCount(\"RejectedFiles\", String(responseData.RejectedFiles));\r\n\t\tthis.HandleChangeItemCount(\"ErrorCount\", String(responseData.ErrorCount));\r\n\t\tthis.HandleChangeItemCount(\"ReturnCount\", String(responseData.ReturnCount));\r\n\t}\r\n\r\n\tErrorItemCountCallback(error) {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t}\r\n\r\n\tHandleSend(model) {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/\",\r\n\t\t\tmodel,\r\n\t\t\tthis.SuccessSendCallback,\r\n\t\t\tthis.ErrorSendCallback\r\n\t\t);\r\n\t}\r\n\r\n\tSuccessSendCallback(responseData) {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.ShowMessage(\"success\", \"Succeeded!\", \"Operation is successfully!\");\r\n\t}\r\n\r\n\tErrorSendCallback(error) {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t}\r\n\r\n\tShowMessage(type, title, message) {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode(type, title, message) {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, checkedValues, isLoading, model, list, LimitToken } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t model, FillDataFromModel: model => this.setState({ model }), ValidationFunction: this.Validate },\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
Returns
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r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\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t { this.HandleSend(row.original); }} />\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t c.Id == row.original.Id).length > 0}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={(e) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.HandleCheck(e, row.original);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={!row.original.IsEditable} />\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t { RouteHelper.Push(this.props.history, \"/CreateEFT\", \"CreateEFT_Id\", row.original.Id); }} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsortable: false,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfilterable: false,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 150\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Source\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionSource.ParameterDesc\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Program\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Program.Description\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Type\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionType.ParameterDesc\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Settlement Type\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"PriorityType.ParameterDesc\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Customer Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ClientNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Name of Customer\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionAmount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Fee Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"FeeAmount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Status\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionStatus.ParameterDesc\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Sub-Status\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionCodeName\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Type\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"EFTTransactionType.ParameterDesc\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction ID\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ReferenceNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Financial Institution\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"FinancialInstitution.Description\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Financial Institution Branch\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"FinancialInstitutionBranch.Description\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transit Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"FinancialInstitutionBranch.TransitNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Account Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"AccountNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"File Id\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"FileId\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"File Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"FileName\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Store\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Store.StoreName\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Settlement Date\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"SettlementDate\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Customer Note\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"CustomerNote.Note\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Posting Date\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Return Transaction Type\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ReturnTransactionType\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Original Transaction Date\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"OriginalTransactionDate\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Payee Institution Id\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"PayeeInstitutionId\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Payee Account\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"PayeeAccount\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Item Trace Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ItemTraceNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Original Transaction Type\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"OriginalTransactionType\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Institution Id For Returns\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"InstitutionIdForReturns\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Account Number For Returns\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"AccountNumberForReturns\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Return Code\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ReturnCode\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Return Indicator\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ReturnIndicator\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_EFT} />\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nReturns.propTypes = {\r\n\tclasses: PropTypes.object.isRequired\r\n};\r\n\r\nexport default Returns;\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport AccountLimitToolbar from \"views/Components/AccountLimitToolbar\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant.js\";\r\n\r\nclass BulkFiles extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.isBackOffice = ClientHelper.IsBackOffice();\r\n\t\tthis.initialModel = {\r\n\t\t\tUniqueClientId: this.isBackOffice ? null : ClientHelper.GetClientRowId(),\r\n\t\t\tFromDate: DateHelper.GetDate(),\r\n\t\t\tToDate: DateHelper.GetDate(),\r\n\t\t\tFileStatusId: null,\r\n\t\t\tFileName: null,\r\n\t\t\tReferenceNumber: null,\r\n\t\t\tIsUniqueDataSearch: false\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\ttransactionList: [],\r\n\t\t\tfileList: [],\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tvModel: {}\r\n\t\t};\r\n\r\n\t\tthis.bulkFilesColumns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"File Date\",\r\n\t\t\t\taccessor: \"FileDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Unique Client Id\",\r\n\t\t\t\taccessor: \"ClientNumber\",\r\n\t\t\t\tshow: this.isBackOffice\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\",\r\n\t\t\t\tshow: this.isBackOffice\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"File Name\",\r\n\t\t\t\taccessor: \"FileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"File Source\",\r\n\t\t\t\taccessor: \"FileSource\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"File Status\",\r\n\t\t\t\taccessor: \"FileStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Record Count\",\r\n\t\t\t\taccessor: \"RecordCount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reject Count\",\r\n\t\t\t\taccessor: \"RejectCount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Nr of Credit Trans.\",\r\n\t\t\t\taccessor: \"TotalNumberCredit\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Credit Amount\",\r\n\t\t\t\taccessor: \"TotalAmountCredit\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Fee Credit Amount\",\r\n\t\t\t\taccessor: \"TotalFeeAmountCredit\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Nr of Debit Trans.\",\r\n\t\t\t\taccessor: \"TotalNumberDebit\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Debit Amount\",\r\n\t\t\t\taccessor: \"TotalAmountDebit\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Fee Debit Amount\",\r\n\t\t\t\taccessor: \"TotalFeeAmountDebit\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t}\r\n\r\n\t\t];\r\n\r\n\t\tthis.transactionColumns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Settlement Date\",\r\n\t\t\t\taccessor: \"SettlementDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Unique Client Id\",\r\n\t\t\t\taccessor: \"ClientNumber\",\r\n\t\t\t\tshow: this.isBackOffice\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\",\r\n\t\t\t\tshow: this.isBackOffice\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"CustomerName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Type\",\r\n\t\t\t\taccessor: \"TransactionType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Financial Institution\",\r\n\t\t\t\taccessor: \"FID\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Financial Institution Branch\",\r\n\t\t\t\taccessor: \"FIBranch\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Account Number\",\r\n\t\t\t\taccessor: \"AccountNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"Amount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Fee Amount\",\r\n\t\t\t\taccessor: \"FeeAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Status\",\r\n\t\t\t\taccessor: \"TransactionStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"EFT Type\",\r\n\t\t\t\taccessor: \"EftTransactionType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transit Number\",\r\n\t\t\t\taccessor: \"TransitNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Number\",\r\n\t\t\t\taccessor: \"CustomerNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"File ID\",\r\n\t\t\t\taccessor: \"FileId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"File Name\",\r\n\t\t\t\taccessor: \"FileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Source\",\r\n\t\t\t\taccessor: \"TransactionSource\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client User\",\r\n\t\t\t\taccessor: \"InsertUser\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Reference Number\",\r\n\t\t\t\taccessor: \"ReferenceNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Store\",\r\n\t\t\t\taccessor: \"CustomerStore\",\r\n\t\t\t\twidth: 150\r\n\t\t\t}\r\n\t\t];\r\n\r\n\r\n\r\n\t\tthis.sortedFilesByDate = [{ id: \"FileDate\", desc: true }];\r\n\t\tthis.sortedTransactionsByDate = [{ id: \"TransactionDate\", desc: true }];\r\n\t\tthis.emptyObject = {};\r\n\t\tthis.genericSelectFileStatusParameter = {\r\n\t\t\tParameterCode: \"BankFileStatus\"\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\t\tif (setAppLeftTitle)\r\n\t\t\tsetAppLeftTitle(\"Bulk Files\");\r\n\t\tif (setAppCenterTitle)\r\n\t\t\tsetAppCenterTitle(\"EFT SYSTEM\");\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ vModel: {}, model: { ...this.initialModel }, transactionList: [], fileList: [] });\r\n\t}\r\n\tHandleChange = (name, value) => {\r\n\t\tthis.setState(function (state) {\r\n\t\t\tvar model = state.model || {};\r\n\t\t\tvar vModel = state.vModel || {};\r\n\t\t\tmodel[name] = value;\r\n\t\t\tif (name == \"ReferenceNumber\" || name == \"FileName\") {\r\n\t\t\t\tmodel.IsUniqueDataSearch = value?.length > 0;\r\n\t\t\t\tif (model.IsUniqueDataSearch) {\r\n\t\t\t\t\tvModel = {};\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn { model, vModel };\r\n\t\t});\r\n\t}\r\n\r\n\tHandleSearch = async () => {\r\n\r\n\t\tif (!this.Validate()) return;\r\n\t\tvar result = await this.props.ExecuteApiPost(\"/bankapi/v1.0/BankBmoEFTFile/SearchEftBulkFile\", this.state.model);\r\n\t\tthis.setState({ fileList: result || [], transactionList: [] });\r\n\t}\r\n\r\n\tHandleRowSelectedBulkFile = async (index) => {\r\n\r\n\t\tvar file = this.state.fileList[index];\r\n\t\tvar result = await this.props.ExecuteApiPost(\"/bankapi/v1.0/BankBmoEFTFile/SearchEftBulkFileTransactions\", { FileId: file.Id });\r\n\t\tthis.setState({ transactionList: result || [] });\r\n\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\r\n\t\tvar messages = [];\r\n\t\tif (!model.IsUniqueDataSearch) {\r\n\t\t\tif ((vModel.UniqueClientId = !model.UniqueClientId)) messages.push(\"Client not selected\");\r\n\t\t\tif ((vModel.FromDate = !model.FromDate)) messages.push(\"From Date not selected\",);\r\n\t\t\tif ((vModel.ToDate = !model.ToDate)) messages.push(\"To Date not selected\");\r\n\r\n\t\t\tvar diffMonths = model.ToDate.diff(model.FromDate, \"days\");\r\n\t\t\tif ((vModel.Date = diffMonths < 0)) messages.push(\"To Date must be later than From Date\");\r\n\t\t\tif ((vModel.Date = diffMonths > 30)) messages.push(\"Difference between From Date and To Date cannot be longer than 30 days\");\r\n\t\t}\r\n\t\tthis.setState({ vModel });\r\n\t\tif (messages.length != 0) {\r\n\r\n\t\t\tthis.props.showValidationErrors(messages);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, vModel, isBackOffice } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{!isBackOffice && }\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.UniqueClientId}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tDefaultIndex={this.isBackOffice ? -1 : 0}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={!this.isBackOffice} />\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\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t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t

Transactions of File

\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nBulkFiles.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default BulkFiles;\r\n","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport Select from \"react-select\";\r\nimport AccountLimitToolbar from \"views/Components/AccountLimitToolbar\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericCheckInput, GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericNumberInput, GenericRadioInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent.jsx\";\r\nimport { BankTransactionStatus, GridColumnType, MenuCodes, ProgramCodes } from \"views/Constants/Constant.js\";\r\n\r\nclass EftIncomingTransactions extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.clientRowId = ClientHelper.GetClientRowId();\r\n\t\tthis.isBackOffice = ClientHelper.IsBackOffice();\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tTransactinDateFrom: DateHelper.GetDate(),\r\n\t\t\tTransactinDateTo: DateHelper.GetDate(),\r\n\t\t\tUniqueClientId: this.isBackOffice ? undefined : this.clientRowId,\r\n\t\t\tReferenceNumber: null,\r\n\t\t\tMenuCode: props.MenuCode\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tcountModel: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tcheckedValues: [],\r\n\t\t\tselectList: [],\r\n\t\t};\r\n\r\n\t\tthis.trxTable = React.createRef();\r\n\r\n\t\tthis.trxSorted = [{ \"id\": \"TransactionDate\", \"desc\": true }];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { MenuCode, setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\r\n\t\tif (setAppLeftTitle) {\r\n\r\n\t\t\tif (this.props.MenuCode == MenuCodes.Eft_BackofficeEftIncoming ||\r\n\t\t\t\tthis.props.MenuCode == MenuCodes.Eft_Transaction_Incoming) {\r\n\t\t\t\tsetAppLeftTitle(\"Incoming Transactions\");\r\n\t\t\t} else {\r\n\t\t\t\tsetAppLeftTitle(\"Incoming EFT Transactions\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tif (MenuCode == MenuCodes.Menu_Backoffice_DDT_Transactions_IncomingEftTransactions ||\r\n\t\t\t\tMenuCode == MenuCodes.Menu_Client_DDT_Transactions_IncomingEftTransactions ||\r\n\t\t\t\tMenuCode == MenuCodes.Menu_SubClientIncomingEftTransactions)\r\n\t\t\t\tsetAppCenterTitle(\"DDT MANAGEMENT\");\r\n\t\t\telse\r\n\t\t\t\tsetAppCenterTitle(\"EFT SYSTEM\");\r\n\t\t}\r\n\r\n\r\n\t\tthis.setState({ loadingCompleted: true });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel } });\r\n\t}\r\n\r\n\tHandleChange = (name, value) => {\r\n\t\tthis.setState(function (state) {\r\n\t\t\tvar model = state.model || {};\r\n\t\t\tmodel[name] = value;\r\n\t\t\tif (name == \"FinancialInstitutionId\") {\r\n\t\t\t\tmodel.FinancialInstitutionBranchId = null;\r\n\t\t\t}\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tHandleCheck(trans) {\r\n\t\tvar selectList = [...this.state.selectList];\r\n\r\n\t\tselectList = this.state.selectList.includes(trans.TransactionEftId)\r\n\t\t\t? this.state.selectList.filter(t => t !== trans.TransactionEftId)\r\n\t\t\t: [...this.state.selectList, trans.TransactionEftId];\r\n\r\n\t\tthis.setState(state => ({\r\n\t\t\tselectList,\r\n\t\t\tcheckedValues: state.checkedValues.includes(trans)\r\n\t\t\t\t? state.checkedValues.filter(c => c !== trans)\r\n\t\t\t\t: [...state.checkedValues, trans]\r\n\t\t}));\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\r\n\tGetData = () => {\r\n\t\tthis.setState(state => ({ trxGridToken: !state.trxGridToken }));\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\treturn true;\r\n\t}\r\n\r\n\tExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.accessor != \"Actions\" && c.accessor != \"ED\" && (c.show == undefined || c.show)) {\r\n\t\t\t\ttrxColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: trxColumns, ExportSelectedColumns: trxColumns });\r\n\t}\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tconst temp = { ...this.state.model };\r\n\r\n\t\tvar jsonColList = [];\r\n\r\n\t\tvar trxColumns = {};\r\n\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\ttrxColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t});\r\n\t\tjsonColList.push(trxColumns);\r\n\r\n\t\tvar mytitle = \"EFT Incoming Transactions\";\r\n\r\n\t\ttemp.jsonFile = {\r\n\t\t\tcolmns: jsonColList,\r\n\t\t\tformat: this.state.ExportReportType,\r\n\t\t\ttitle: mytitle\r\n\t\t};\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\"/bankapi/v1.0/BankBmoEFT/SearchEFTIncomingTransactionExportDownload\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t},\r\n\t\t\tthis.props.showMessage\r\n\t\t);\r\n\t}\r\n\r\n\thandleTrace = () => {\r\n\t\tif (this.state.selectList.length > 0)\r\n\t\t\tthis.setState({\r\n\t\t\t\tisLoading: false,\r\n\t\t\t\talert: this.hideAlert()} OnConfirm={() => this.handleTraceOk(this.state.selectList)} />\r\n\t\t\t});\r\n\t\telse {\r\n\t\t\tthis.ShowErrorMessage(\"Trace List must not be null !!\");\r\n\t\t}\r\n\t}\r\n\r\n\thandleTraceOk = (IdList) => {\r\n\t\tthis.showLoading();\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/BankBmoEFT/TraceIncomingEftByIds\",\r\n\t\t\t{ TransactionEFTIds: IdList },\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowErrorMessage(\"Error =>\" + responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tisLoading: false,\r\n\t\t\t\t\t\tselectList: {},\r\n\t\t\t\t\t\talert: this.hideAlert()} />\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tthis.ErrorSendCallback\r\n\t\t);\r\n\t}\r\n\r\n\tErrorListCallback = (error) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowErrorMessage(\"An error occurred while requesting data =>\" + error.message);\r\n\t}\r\n\r\n\tErrorSendCallback = (error) => {\r\n\t\tthis.ShowErrorMessage(\"An error occurred while sending data =>\" + error.message);\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\tisLoading: false,\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowErrorMessage = (message) => {\r\n\t\tthis.setState({\r\n\t\t\tisLoading: false,\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\tshowLoading = () => {\r\n\t\tthis.setState({ isLoading: true, alert: null });\r\n\t}\r\n\r\n\thideLoading = () => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\thideAlert = () => {\r\n\t\tthis.setState({ alert: null, isLoading: false });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, isLoading, model } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t 0 ? false : true },\r\n\t\t\t\t\t{ Code: \"Clear\", OnClick: this.HandleClear, Disabled: Disabled },\r\n\t\t\t\t\t{ Code: \"Export\", OnClick: this.ExportClick, Disabled: Disabled }\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={!this.isBackOffice}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t `${String(d.FinancialInstitutionId ?? \"\").padStart(3, \"0\")} - ${d.Description}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.FinancialInstitutionId}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={Disabled}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tAll={true}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t `${String(d.TransitNumber ?? \"\").padStart(4, \"0\")} - ${d.Description}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.FinancialInstitutionBranchId || -1}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={Disabled}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tSorted={{ Member: \"TransitNumber\" }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tAll={true}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t

Transaction List

\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t c.TransactionEftId == row.original.TransactionEftId).length > 0}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={() => { this.HandleCheck(row.original); }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={row.original.StatusParamValue == BankTransactionStatus.Traced}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsortable: false,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfilterable: false,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 60,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tshow: !this.isBackOffice\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTimeUtc\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Settlement Date\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"SettlementDate\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTimeUtc\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Unique Client Id\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ClientNumber\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tshow: this.isBackOffice,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ClientName\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tshow: this.isBackOffice,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Originator Long Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"OriginatorLongName\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Originator Short Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"OriginatorShortName\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Type\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionType\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Customer Account Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"AccountNumber\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Fee Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"FeeAmount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Status\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionStatus\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"EFT Type\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"EftTransactionType\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transit Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransitNumber\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Customer Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"CustomerNumber\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"File ID\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"FileId\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"File Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"FileName\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Source\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionSource\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Client User\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"InsertUser\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Reference Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ReferenceNumber\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Store\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"CustomerStore\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 150\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tSorted={this.trxSorted}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_EFT}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tServerSide\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tLoadAtStartup={this.state.loadingCompleted}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValidateRequest={this.Validate}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tPrepareRequest={() => { return this.state.model; }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tRequestUrl=\"/bankapi/v1.0/BankBmoEFT/SearchEFTIncomingTransactionPaged\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tRequestMethod=\"POST\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nEftIncomingTransactions.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default EftIncomingTransactions;\r\n","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport AlertHelper from \"core/AlertHelper\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { TraceIcon } from \"core/Icons\";\r\nimport MenuAuthorityRightHelper from \"core/MenuAuthorityRightHelper\";\r\nimport TransactionTraceHelper from \"core/TransactionTraceHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport Select from \"react-select\";\r\nimport AccountLimitToolbar from \"views/Components/AccountLimitToolbar\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericNumberInput, GenericRadioInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent.jsx\";\r\nimport { BankTransactionStatus, GridColumnType, ProgramCodes } from \"views/Constants/Constant.js\";\r\n\r\nclass EftOutgoingTransactions extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.clientRowId = ClientHelper.GetClientRowId();\r\n\t\tthis.isBackOffice = ClientHelper.IsBackOffice();\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tTransactinDateFrom: DateHelper.GetDate(),\r\n\t\t\tTransactinDateTo: DateHelper.GetDate(),\r\n\t\t\tUniqueClientId: this.isBackOffice ? undefined : this.clientRowId,\r\n\t\t\tReferenceNumber: undefined,\r\n\t\t\tFileName: undefined,\r\n\t\t\tAccountNumber: undefined,\r\n\t\t\tAmount: undefined,\r\n\t\t\tFinancialInstitutionId: undefined,\r\n\t\t\tTransactionTypeId: undefined,\r\n\t\t\tEftTypeId: undefined,\r\n\t\t\tFinancialInstitutionBranchId: undefined,\r\n\t\t\tjsonFile: undefined,\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tisLoading: false,\r\n\t\t\tgridButtonRightDetail: []\r\n\t\t};\r\n\r\n\t\tthis.trxTable = React.createRef();\r\n\r\n\t\tthis.MenuAuthorityRightHelper = new MenuAuthorityRightHelper();\r\n\r\n\t\tthis.traceHelper = new TransactionTraceHelper(this);\r\n\t\tthis.sortedByDate = [{ id: \"TransactionDate\", desc: true }];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\t\tif (setAppLeftTitle)\r\n\t\t\tsetAppLeftTitle(\"Outgoing Transactions\");\r\n\t\tif (setAppCenterTitle)\r\n\t\t\tsetAppCenterTitle(\"EFT SYSTEM\");\r\n\r\n\t\tthis.setState({ loadingCompleted: true });\r\n\t\tthis.GetGridButtonsRight();\r\n\t}\r\n\r\n\tGetGridButtonsRight = async () => {\r\n\t\tconst { MenuCode } = this.props;\r\n\t\tvar gridButtonRightDetail = await this.MenuAuthorityRightHelper.RightCheckList(MenuCode, [\"EFTOUTTRACE\"]);\r\n\r\n\t\tthis.setState({ gridButtonRightDetail });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel } });\r\n\t}\r\n\r\n\tHandleChange = (name, value) => {\r\n\t\tthis.setState(function (state) {\r\n\t\t\tvar model = state.model || {};\r\n\t\t\tmodel[name] = value;\r\n\t\t\tif (name == \"FinancialInstitutionId\") {\r\n\t\t\t\tmodel.FinancialInstitutionBranchId = null;\r\n\t\t\t}\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\r\n\tGetData = () => {\r\n\t\tthis.setState(state => ({ trxGridToken: !state.trxGridToken }));\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\treturn true;\r\n\t}\r\n\r\n\tExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.accessor != \"Actions\" && c.accessor != \"ED\" && (c.show == undefined || c.show)) {\r\n\t\t\t\ttrxColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: trxColumns, ExportSelectedColumns: trxColumns });\r\n\t}\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tconst temp = { ...this.state.model };\r\n\r\n\t\tvar jsonColList = [];\r\n\r\n\t\tvar trxColumns = {};\r\n\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\ttrxColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t});\r\n\t\tjsonColList.push(trxColumns);\r\n\r\n\t\tvar mytitle = \"EFT Outgoing Transactions\";\r\n\r\n\t\ttemp.jsonFile = {\r\n\t\t\tcolmns: jsonColList,\r\n\t\t\tformat: this.state.ExportReportType,\r\n\t\t\ttitle: mytitle\r\n\t\t};\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\"/bankapi/v1.0/BankBmoEFT/SearchEFTOutgoingTransactionExportDownload\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t},\r\n\t\t\tthis.props.showMessage\r\n\t\t);\r\n\t}\r\n\r\n\tErrorListCallback = (error) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowErrorMessage(\"An error occurred while requesting data =>\" + error.message);\r\n\t}\r\n\r\n\tErrorSendCallback = (error) => {\r\n\t\tthis.ShowErrorMessage(\"An error occurred while sending data =>\" + error.message);\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\tisLoading: false,\r\n\t\t\talert: AlertHelper.CreateAlert(title, message, type, this.hideAlert)\r\n\t\t});\r\n\t}\r\n\r\n\tShowErrorMessage = (message) => {\r\n\t\tthis.setState({\r\n\t\t\tisLoading: false,\r\n\t\t\talert: AlertHelper.CreateAlert(\"Warning\", message, \"warning\", this.hideAlert)\r\n\t\t});\r\n\t}\r\n\tshowLoading = () => {\r\n\t\tthis.setState({ isLoading: true, alert: null });\r\n\t}\r\n\r\n\thideLoading = () => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\thideAlert = () => {\r\n\t\tthis.setState({ alert: null, isLoading: false });\r\n\t}\r\n\tGetHandleTrace = (model) => () => {\r\n\t\tthis.traceHelper.InsertTransactionTraceWithAlert(model.TransactionId);\r\n\t}\r\n\r\n\tisAvailableForTraceTransaction = (row) => {\r\n\t\tvar availableForTrace = true;\r\n\t\tswitch (row.StatusParamValue) {\r\n\t\t\t// case BankTransactionStatus.Pending:\r\n\t\t\tcase BankTransactionStatus.Error:\r\n\t\t\tcase BankTransactionStatus.Cancelled:\r\n\t\t\t\tavailableForTrace = false;\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\tavailableForTrace = availableForTrace && !row.TransactionTraceId && row.TransactionId > 0;\r\n\t\treturn availableForTrace;\r\n\t}\r\n\tRenderStore(d) {\r\n\t\tconst storeName = d.StoreName;\r\n\t\tif (d.StoreCode == null){\r\n\t\t\treturn `${storeName}`;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn `${storeName}(${d.StoreCode})`;\r\n\t\t}\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, isLoading, model, gridButtonRightDetail } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{!this.isBackOffice && }\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={!this.isBackOffice}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t `${String(d.FinancialInstitutionId ?? \"\").padStart(3, \"0\")} - ${d.Description}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.FinancialInstitutionId}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={Disabled}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tAll={true}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t `${String(d.TransitNumber ?? \"\").padStart(4, \"0\")} - ${d.Description}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.FinancialInstitutionBranchId || -1}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={Disabled}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tSorted={{ Member: \"TransitNumber\" }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tAll={true}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n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t\t\t\tsortable: false,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfilterable: false,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 60,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tshow: !this.isBackOffice\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTimeUtc\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Settlement Date\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"SettlementDate\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTimeUtc\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Unique Client Id\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ClientNumber\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tshow: this.isBackOffice\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ClientName\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tshow: this.isBackOffice\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"CustomerName\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Type\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionType\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Financial Institution\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"FID\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Financial Institution Branch\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"FIBranch\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Customer Account Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"AccountNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Fee Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"FeeAmount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Status\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionStatus\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"EFT Type\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"EftTransactionType\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transit Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransitNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Customer Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"CustomerNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"File ID\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"FileId\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"File Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"FileName\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Source\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionSource\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Client User\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"InsertUser\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Reference Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ReferenceNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Store\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"CustomerStore\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 150\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Trace Status\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TraceStatus\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tSorted={this.sortedByDate}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_EFT}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tServerSide\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tLoadAtStartup={this.state.loadingCompleted}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValidateRequest={this.Validate}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tPrepareRequest={() => { return this.state.model;}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tRequestUrl=\"/bankapi/v1.0/BankBmoEFT/SearchEFTOutgoingTransactionPaged\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tRequestMethod=\"POST\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nEftOutgoingTransactions.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default EftOutgoingTransactions;\r\n","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { DeleteIcon, EditIcon, SubmitOrSendIcon, SuspiciousIcon, TraceIcon } from \"core/Icons\";\r\nimport MenuAuthorityRightHelper from \"core/MenuAuthorityRightHelper\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport Select from \"react-select\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericRadioInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { ActionCodes, ApprovalStatus, BankTransactionStatus, Direction, GridColumnType, MenuCodes, ProgramCodes } from \"views/Constants/Constant.js\";\r\n\r\nclass EftPendingBalanceSearch extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.isClient = ClientHelper.IsClient();\r\n\t\tthis.clientRowId = ClientHelper.GetClientRowId();\r\n\t\tthis.clientId = ClientHelper.GetClientId();\r\n\t\tthis.isBackOffice = ClientHelper.IsBackOffice();\r\n\t\tthis.isSalesPerson = ClientHelper.IsSalesPerson();\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tUniqueClientId: this.isBackOffice ? undefined : this.clientRowId,\r\n\t\t\tMainSearchItemId: -1,\r\n\t\t\tStartDate: null,\r\n\t\t\tEndDate: null\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tisLoading: false,\r\n\t\t\tmainSearchItem: this.props.MainSearchItem,\r\n\t\t\tselected: null,\r\n\t\t\tLimitToken: false,\r\n\t\t\tsuspiciousDialog: false,\r\n\t\t\tgridButtonRightDetail: [],\r\n\t\t\tdata: [],\r\n\t\t};\r\n\r\n\t\tthis.trxTable = React.createRef();\r\n\r\n\t\tthis.MenuAuthorityRightHelper = new MenuAuthorityRightHelper();\r\n\r\n\t\tthis.sortParamDesc = { Member: \"ParameterDesc\" };\r\n\t\tthis.trxSorted = [{ \"id\": \"TransactionDate\", \"desc\": true }];\r\n\t\tthis.renderItemStoreName = {};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"PROGRAM\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"EFT Pending Balance\");\r\n\t\t}\r\n\t}\r\n\r\n\tRefreshToolBar = () => {\r\n\t\tthis.setState({ LimitToken: !this.state.LimitToken });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: this.initialModel });\r\n\t}\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst temp = { ...this.state.model };\r\n\t\ttemp[name] = newValue;\r\n\t\tthis.setState({ model: temp });\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({ alert: this.setState({ alert: \"\" })} /> });\r\n\t}\r\n\r\n\tShowConfirmMessage(type, title, message, onConfirm) {\r\n\t\tthis.setState({ alert: this.setState({ alert: \"\" })} OnConfirm={onConfirm} /> });\r\n\t}\r\n\r\n\tSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/BankBmoEFT/EftPendingBalanceSearch\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (responseData.Item != null) {\r\n\r\n\t\t\t\t\tthis.setState({ data: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\te => {\r\n\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t}\r\n\t\t);\r\n\r\n\t}\r\n\tClearSuspiciousDialog = () => {\r\n\t\tthis.setState({ suspiciousDialog: false, sdCancelMemo: \"\", sdCancelReasonId: \"\", sdTransactionId: null });\r\n\t}\r\n\tRenderItemStoreName = (d) => {\r\n\t\tthis.renderItemStoreName = `${d.StoreName} - (${d.StoreCode})`;\r\n\t\treturn this.renderItemStoreName;\r\n\t}\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, isLoading, model,data} = this.state;\r\n\r\n\t\tvar IsClient = !this.isSalesPerson && this.isClient;\r\n\t\tvar IsCallCenter = this.props.MenuCode === MenuCodes.CallCenterEFTTransactions;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert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\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t

EFT Pending Balance List

\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nEftPendingBalanceSearch.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default EftPendingBalanceSearch;\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport AlertHelper from \"core/AlertHelper\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { EditIcon } from \"core/Icons\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport AccountLimitToolbar from \"views/Components/AccountLimitToolbar\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { GridColumnType, ProgramCodes, TransactionOrderStatus } from \"views/Constants/Constant.js\";\r\n\r\nclass Transactions extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.isClient = ClientHelper.IsClient(); \r\n\t\tthis.clientId = ClientHelper.GetClientId();\r\n\t\tthis.initialModel = {\r\n\t\t\tStartingFromDate: DateHelper.GetDate(),\r\n\t\t\tEndOfDate: DateHelper.GetDate(),\r\n\t\t};\r\n\r\n\t\tthis.sortParamDesc = { Member: \"ParameterDesc\" };\r\n\r\n\t\tthis.state = {\r\n\t\t\tlist: [],\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tcountModel: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tLimitToken: false,\r\n\t\t\tSelectedRowIndex: undefined,\r\n\t\t\tSelectedRow: {}\r\n\t\t};\r\n\r\n\t\tthis.HandleClear = this.HandleClear.bind(this);\r\n\t\tthis.HandleChange = this.HandleChange.bind(this);\r\n\r\n\t\tthis.HandleGetList = this.HandleGetList.bind(this);\r\n\t\tthis.HandleCancel = this.HandleCancel.bind(this);\r\n\t\tthis.Cancel = this.Cancel.bind(this);\r\n\t\tthis.SuccessListCallback = this.SuccessListCallback.bind(this);\r\n\t\tthis.ErrorListCallback = this.ErrorListCallback.bind(this);\r\n\t\tthis.RowSelected = this.RowSelected.bind(this);\r\n\r\n\t\tthis.ShowMessage = this.ShowMessage.bind(this);\r\n\t\tthis.hideAlert = this.hideAlert.bind(this);\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\r\n\t\tif (setAppLeftTitle)\r\n\t\t\tsetAppLeftTitle(\"Recurring Transaction Search\");\r\n\t\tif (setAppCenterTitle)\r\n\t\t\tsetAppCenterTitle(\"EFT SYSTEM\");\r\n\r\n\t\tthis.RefreshToolBar();\r\n\t}\r\n\r\n\tRefreshToolBar = () => {\r\n\t\tthis.setState({ LimitToken: !this.state.LimitToken });\r\n\t}\r\n\r\n\tHandleClear() {\r\n\t\tif (this.isClient) {\r\n\t\t\tthis.initialModel.UniqueClientId = this.state.model?.UniqueClientId;\r\n\t\t}\r\n\t\tthis.setState({ model: { ...this.initialModel } });\r\n\t}\r\n\r\n\tHandleChange(name, value) {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleGetList() {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/BankBmoEFT/SearchRecurringEFTTransactions\",\r\n\t\t\tthis.state.model,\r\n\t\t\tthis.SuccessListCallback,\r\n\t\t\tthis.ErrorListCallback\r\n\t\t);\r\n\t}\r\n\r\n\tHandleCancel() {\r\n\t\tconst { SelectedRow } = this.state;\r\n\t\tvar status = SelectedRow.TransactionOrderStatus.ParameterValue;\r\n\t\tif (status != TransactionOrderStatus.Working && status != TransactionOrderStatus.Pending) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"You can only cancel working or pending recurring transactions\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.props.showConfirmMessage(\"warning\", \"Recurring Transaction Cancel Confirmation\", \"Are you sure to cancel this recurring transaction?\", () => { this.Cancel(); });\r\n\t}\r\n\r\n\tCancel() {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/BankBmoEFT/CancelRecurringRequest\",\r\n\t\t\t{ Id: this.state.SelectedRow.Id },\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while cancelling recurring transaction\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.props.showMessage(\"info\", \"Recurring Transaction Cancelled.\");\r\n\r\n\t\t\t\tthis.HandleGetList();\r\n\r\n\t\t\t\tthis.setState({ SelectedRow: undefined, SelectedRowIndex: undefined });\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while cancelling recurring transaction\", errorMessage);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tSuccessListCallback(responseData) {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (responseData.Item !== null) {\r\n\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t} else {\r\n\t\t\tthis.setState({ list: [] });\r\n\t\t}\r\n\t}\r\n\r\n\tErrorListCallback(error) {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t}\r\n\r\n\tShowMessage(type, title, message) {\r\n\t\tthis.setState({ alert: AlertHelper.CreateAlert(title, message, type, this.hideAlert) });\r\n\t}\r\n\r\n\thideAlert() {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\tRowSelected(index) {\r\n\t\tthis.setState({ SelectedRowIndex: index, SelectedRow: this.state.list[index] });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, isLoading, model, list, LimitToken, SelectedRowIndex } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.isClient && }\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\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r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t { RouteHelper.Push(this.props.history, \"/CreateEFT\", \"CreateEFT_RecurringId\", row.original.Id); }} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsortable: false,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfilterable: false,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 60\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"CustomerName\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"PayeeName\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Type\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionType.ParameterDesc\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Financial Institution\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"FinancialInstitution.Description\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transit Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"FinancialInstitutionBranch.TransitNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Customer Account Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"AccountNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionAmount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Fee Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"FeeAmount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Order Status\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionOrderStatus.ParameterDesc\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"EFT Transaction Code\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"EFTTransactionType.ParameterDesc\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Settlement Type\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"PriorityType.ParameterDesc\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"First Due Date Option\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"FirstDueDateOption.ParameterDesc\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Total Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TotalAmount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => Formatter.FormatMoney(row.original.NumberOfPayments * row.original.TransactionAmount)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Period\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"NumberOfPayments\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Start Date\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"StartingFromDate\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"End Date\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"EndOfDate\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Total Payment Count\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"NumberOfPayments\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"CompletedPaymentCount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"CompletedPayments\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Remaining Payment Count\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"RemainingPayments\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Last Payment Status\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"LastPaymentStatus\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Freeze From Date\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"FreezeFromDate\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Freeze To Date\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"FreezeToDate\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Source\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionSource.ParameterDesc\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Client User\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"InsertUser\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Reference Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"UniqueReferenceNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Store\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"CustomerStore\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 150\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Last Error Status\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"LastCheckStatus\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tRowSelected={this.RowSelected}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tSelectedIndex={SelectedRowIndex}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_EFT}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tIsSorted={false} />\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nTransactions.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default Transactions;\r\n","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport {VerificationIcon, DeleteIcon, EditIcon, SubmitOrSendIcon, SuspiciousIcon, TraceIcon } from \"core/Icons\";\r\nimport MenuAuthorityRightHelper from \"core/MenuAuthorityRightHelper\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport TransactionTraceHelper from \"core/TransactionTraceHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport Select from \"react-select\";\r\nimport AccountLimitToolbar from \"views/Components/AccountLimitToolbar\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericRadioInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { ActionCodes, ApprovalStatus, BankTransactionStatus, Direction, GridColumnType, MenuCodes, ProgramCodes } from \"views/Constants/Constant.js\";\r\n\r\nclass Transactions extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.isClient = ClientHelper.IsClient();\r\n\t\tthis.clientRowId = ClientHelper.GetClientRowId();\r\n\t\tthis.clientId = ClientHelper.GetClientId();\r\n\t\tthis.isBackOffice = ClientHelper.IsBackOffice();\r\n\t\tthis.isSalesPerson = ClientHelper.IsSalesPerson();\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tUniqueClientId: this.isBackOffice ? undefined : this.clientRowId,\r\n\t\t\tMainSearchItemId: -1,\r\n\t\t\tTransactinDateFrom: DateHelper.GetDate(),\r\n\t\t\tTransactinDateTo: DateHelper.GetDate()\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tisLoading: false,\r\n\t\t\tmainSearchItem: this.props.MainSearchItem,\r\n\t\t\tselected: null,\r\n\t\t\tLimitToken: false,\r\n\t\t\tsuspiciousDialog: false,\r\n\t\t\tgridButtonRightDetail: []\r\n\t\t};\r\n\r\n\t\tthis.trxTable = React.createRef();\r\n\r\n\t\tthis.MenuAuthorityRightHelper = new MenuAuthorityRightHelper();\r\n\r\n\t\tthis.sortParamDesc = { Member: \"ParameterDesc\" };\r\n\t\tthis.trxSorted = [{ \"id\": \"TransactionDate\", \"desc\": true }];\r\n\t\tthis.traceHelper = new TransactionTraceHelper(this);\r\n\r\n\r\n\r\n\r\n\t\t\r\n\t\tthis.renderItemStoreName = {};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle, MenuCode } = this.props;\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tif (MenuCode == MenuCodes.Backoffice_SalesPersonEftTransactionSearch) {\r\n\t\t\tif (setAppCenterTitle) setAppCenterTitle(\"SALES PERSON\");\r\n\t\t\tif (setAppLeftTitle) setAppLeftTitle(\"Transaction Search\");\r\n\t\t} else if (MenuCode == MenuCodes.CallCenterEFTTransactions) {\r\n\t\t\tif (setAppCenterTitle) setAppCenterTitle(\"CALL CENTER\");\r\n\t\t\tif (setAppLeftTitle) setAppLeftTitle(\"EFT Transaction Search\");\r\n\t\t\tthis.GetGridButtonsRight();\r\n\t\t} else {\r\n\t\t\tif (setAppCenterTitle) setAppCenterTitle(\"EFT SYSTEM\");\r\n\t\t\tif (setAppLeftTitle) setAppLeftTitle(\"EFT Transactions\");\r\n\t\t}\r\n\r\n\t\tvar data = RouteHelper.ReadAndClear(\"EFTTransactionSearch_Date\");\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Parameter/Search\",\r\n\t\t\t{\r\n\t\t\t\tparameterCode: \"BankTransactionStatus\",\r\n\t\t\t\tparameterValue: \"AA\"\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tif (responseData.Item != null && responseData.Item.length > 0) {\r\n\t\t\t\t\t\tmodel.AwaitingApproval = responseData.Item[0].Id;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t);\r\n\r\n\t\tif (data) {\r\n\t\t\tmodel.TransactinDateFrom = data.FromDate;\r\n\t\t\tmodel.TransactinDateTo = data.ToDate;\r\n\t\t\tmodel.IsSettled = data.IsSettled;\r\n\t\t\tthis.setState({ model });\r\n\t\t\tthis.HandleGetList();\r\n\t\t}\r\n\r\n\t\tthis.RefreshToolBar();\r\n\t\tthis.setState({ loadingCompleted: true });\r\n\t}\r\n\r\n\tRefreshToolBar = () => {\r\n\t\tthis.setState({ LimitToken: !this.state.LimitToken });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: this.initialModel });\r\n\t}\r\n\r\n\tHandleChange = (name, value, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tif (name == \"MainSearchItemId\" && data)\r\n\t\t\tthis.setState({ mainSearchItem: data.ParameterValue });\r\n\t\tif (name == \"FinancialInstitutionId\") {\r\n\t\t\tmodel.FinancialInstitutionBranchId = null;\r\n\t\t}\r\n\t\tif (name == \"UniqueClientId\" && value == null) {\r\n\t\t\tmodel[name] = 0;\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\r\n\tHandleGetList = () => {\r\n\t\tthis.setState(state => ({ trxGridToken: !state.trxGridToken }));\r\n\t}\r\n\r\n\tExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.accessor != \"Actions\" && c.accessor != \"ED\" && (c.show == undefined || c.show)) {\r\n\t\t\t\ttrxColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: trxColumns, ExportSelectedColumns: trxColumns });\r\n\t}\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tconst temp = { ...this.state.model };\r\n\r\n\t\tvar jsonColList = [];\r\n\r\n\t\tvar trxColumns = {};\r\n\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\ttrxColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t});\r\n\t\tjsonColList.push(trxColumns);\r\n\r\n\t\tvar mytitle = \"EFT Transactions\";\r\n\r\n\t\ttemp.jsonFile = {\r\n\t\t\tcolmns: jsonColList,\r\n\t\t\tformat: this.state.ExportReportType,\r\n\t\t\ttitle: mytitle\r\n\t\t};\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\"/bankapi/v1.0/BankBmoEFT/SearchEFTTransactionsExcelDownload\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t},\r\n\t\t\tthis.props.showMessage\r\n\t\t);\r\n\t}\r\n\r\n\tHandleSend = model => {\r\n\t\tthis.ShowConfirmMessage(\"warning\", \"Workflow Confirmation\", \"Are you sure to send it for workflow confirmation ?\", () => {\r\n\r\n\t\t\tvar jsonData = JSON.stringify(model.Id);\r\n\r\n\t\t\tvar requestData = {\r\n\t\t\t\tMenuCode: MenuCodes.Eft_SubmitApprove,\r\n\t\t\t\tActionCode: ActionCodes.Submit,\r\n\t\t\t\tJsonData: jsonData,\r\n\t\t\t\tRowId: model.Id\r\n\t\t\t};\r\n\r\n\t\t\tthis.setState({ alert: \"\", isLoading: true });\r\n\t\t\tProxy.POST(\"/coreapi/v1.0/WorkflowData/InsertWorkflowData\",\r\n\t\t\t\trequestData,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Request successfully sent for approval\");\r\n\t\t\t\t},\r\n\t\t\t\terrorMessage => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", \"An error occurred while sending approve request \" + errorMessage);\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t});\r\n\t}\r\n\r\n\tHandleApproveOrDeny = (TransactionId,isApproved) => {\r\n\r\n\t\tif(isApproved) {\r\n\t\t\tthis.ShowConfirmMessage(\"question\", \"Approval Confirmation\", \"Are you sure you want to approve this transaction?\", () => {\r\n\t\t\t\tvar requestData = {\r\n\t\t\t\t\ttransactionId: TransactionId,\r\n\t\t\t\t\tisApproved: isApproved,\r\n\t\t\t\t};\r\n\t\r\n\t\t\t\tthis.setState({ alert: \"\", isLoading: true });\r\n\t\t\t\tProxy.POST(\"/bankapi/v1.0/BankBmoEFT/ClientEFTMakerCheckerApproveOrDeny\",\r\n\t\t\t\t\trequestData,\r\n\t\t\t\t\tresponseData => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\t\t\tthis.HandleGetList();\r\n\r\n\t\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Transaction successfully approved\");\r\n\t\t\t\t\t},\r\n\t\t\t\t\terrorMessage => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", \"An error occurred while sending approve request \" + errorMessage);\r\n\t\t\t\t\t}\r\n\t\t\t\t);\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\tthis.ShowConfirmMessage(\"question\", \"Rejection Confirmation\", \"Are you sure you want to reject this transaction?\", () => {\r\n\t\t\t\tvar requestData = {\r\n\t\t\t\t\ttransactionId: TransactionId,\r\n\t\t\t\t\tisApproved: isApproved,\r\n\t\t\t\t};\r\n\t\r\n\t\t\t\tthis.setState({ alert: \"\", isLoading: true });\r\n\t\t\t\tProxy.POST(\"/bankapi/v1.0/BankBmoEFT/ClientEFTMakerCheckerApproveOrDeny\",\r\n\t\t\t\t\trequestData,\r\n\t\t\t\t\tresponseData => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tthis.HandleGetList();\r\n\t\r\n\t\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Transaction successfully rejected\");\r\n\t\t\t\t\t},\r\n\t\t\t\t\terrorMessage => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", \"An error occurred while sending reject request \" + errorMessage);\r\n\t\t\t\t\t}\r\n\t\t\t\t);\r\n\t\t\t});\r\n\t\t}\r\n\t\t\r\n\t}\r\n\r\n\tHandleTrace = model => {\r\n\r\n\t\tif(model.Direction.ParameterValue == Direction.Outgoing){\r\n\t\t\tthis.traceHelper.InsertTransactionTraceWithAlert(model.Id);\r\n\t\t}\r\n\t\telse{\r\n\t\tthis.ShowConfirmMessage(\"warning\", \"Workflow Confirmation\", \"Are you sure to send it for workflow confirmation ?\", () => {\r\n\r\n\t\t\tvar jsonData = JSON.stringify(model.Id);\r\n\r\n\t\t\tvar requestData = {\r\n\t\t\t\tMenuCode: MenuCodes.Eft_TraceApprove,\r\n\t\t\t\tActionCode: ActionCodes.Submit,\r\n\t\t\t\tJsonData: jsonData,\r\n\t\t\t\tRowId: model.Id\r\n\t\t\t};\r\n\r\n\t\t\tthis.setState({ alert: \"\", isLoading: true });\r\n\t\t\tProxy.POST(\"/coreapi/v1.0/WorkflowData/InsertWorkflowData\",\r\n\t\t\t\trequestData,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Request successfully sent for approval\");\r\n\t\t\t\t},\r\n\t\t\t\terrorMessage => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", \"An error occurred while sending approve request \" + errorMessage);\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t});\r\n\t\t}\t\t\r\n\t}\r\n\r\n\tHandleSuspicious = model => {\r\n\t\tthis.setState({ sdTransactionId: model.Id, suspiciousDialog: true });\r\n\t}\r\n\r\n\tHandleSuspiciousConfirm = () => {\r\n\t\tconst { sdCancelMemo, sdCancelReasonId, sdTransactionId } = this.state;\r\n\r\n\t\tthis.ShowConfirmMessage(\"warning\", \"Workflow Confirmation\", \"Are you sure to send it for workflow confirmation ?\", () => {\r\n\r\n\t\t\tvar data = {\r\n\t\t\t\tTransactionId: sdTransactionId,\r\n\t\t\t\tCancelReasonId: sdCancelReasonId,\r\n\t\t\t\tCancelMemo: sdCancelMemo\r\n\t\t\t};\r\n\r\n\t\t\tvar jsonData = JSON.stringify(data);\r\n\r\n\t\t\tvar requestData = {\r\n\t\t\t\tMenuCode: MenuCodes.Eft_SuspiciousApprove,\r\n\t\t\t\tActionCode: ActionCodes.Submit,\r\n\t\t\t\tJsonData: jsonData,\r\n\t\t\t\tRowId: data.TransactionId\r\n\t\t\t};\r\n\r\n\t\t\tthis.setState({ alert: \"\", isLoading: true });\r\n\t\t\tProxy.POST(\"/coreapi/v1.0/WorkflowData/InsertWorkflowData\",\r\n\t\t\t\trequestData,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tthis.setState({ suspiciousDialog: false, sdCancelReasonId: \"\", sdCancelMemo: \"\" });\r\n\t\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Request successfully sent for approval\");\r\n\t\t\t\t},\r\n\t\t\t\terrorMessage => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", \"An error occurred while sending approve request \" + errorMessage);\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t});\r\n\t}\r\n\r\n\tHandleCancel = model => {\r\n\t\tthis.ShowConfirmMessage(\"warning\", \"Cancel Confirmation\", \"Are you sure to cancel this transaction ?\", () => {\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tProxy.POST(\"/bankapi/v1.0/BankBmoEFT/CancelEftTransactionById\",\r\n\t\t\t\t{ TransactionId: model.Id },\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Transaction successfully cancelled\");\r\n\t\t\t\t},\r\n\t\t\t\terrorMessage => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", \"An error occurred while cancelling transaction \" + errorMessage);\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t});\r\n\t}\r\n\r\n\tGetGridButtonsRight = async () => {\r\n\t\tconst { MenuCode } = this.props;\r\n\t\tvar gridButtonRightDetail = await this.MenuAuthorityRightHelper.RightCheckList(MenuCode, [\"CALEFTSEND\", \"CALEFTEDIT\", \"CALEFTCANC\", \"CALEFTTRAC\", \"CALEFTSUSP\"]);\r\n\r\n\t\tthis.setState({ gridButtonRightDetail });\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({ alert: this.setState({ alert: \"\" })} /> });\r\n\t}\r\n\r\n\tShowConfirmMessage(type, title, message, onConfirm) {\r\n\t\tthis.setState({ alert: this.setState({ alert: \"\" })} OnConfirm={onConfirm} /> });\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tif (!model.ReferenceNumber && !model.AccountNumber && !model.FileName) {\r\n\r\n\t\t\tif (!model.MainSearchItemId) {\r\n\t\t\t\tthis.ShowMessage(\"warning\", \"Main Search Item not selected\", \"Select Main Search Item to continue\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\tif (!model.TransactionAmount && (!model.FinancialInstitutionId || !model.FinancialInstitutionBranchId)) {\r\n\t\t\t\tif (!model.UniqueClientId) {\r\n\t\t\t\t\tthis.ShowMessage(\"warning\", \"Client not selected\", \"Select Client to continue\");\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (!model.TransactinDateFrom) {\r\n\t\t\t\tthis.ShowMessage(\"warning\", \"From Date not selected\", \"Select From Date to continue\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\tif (!model.TransactinDateTo) {\r\n\t\t\t\tthis.ShowMessage(\"warning\", \"To Date not selected\", \"Select To Date to continue\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\tvar diffMonths = model.TransactinDateTo.diff(model.TransactinDateFrom, \"days\");\r\n\t\t\tif (diffMonths < 0) {\r\n\t\t\t\tthis.ShowMessage(\"warning\", \"To Date must be later than From Date\", \"To Date must be later than From Date\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\tif (diffMonths > 30) {\r\n\t\t\t\tthis.ShowMessage(\"warning\", \"Difference between From Date and To Date cannot be longer than 30 days\", \"Difference between From Date and To Date cannot be longer than 30 days\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tClearSuspiciousDialog = () => {\r\n\t\tthis.setState({ suspiciousDialog: false, sdCancelMemo: \"\", sdCancelReasonId: \"\", sdTransactionId: null });\r\n\t}\r\n\tRenderItemStoreName = (d) => {\r\n\t\tthis.renderItemStoreName = `${d.StoreName} - (${d.StoreCode})`;\r\n\t\treturn this.renderItemStoreName;\r\n\t}\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, isLoading, model, LimitToken, suspiciousDialog, sdCancelReasonId, sdCancelMemo, gridButtonRightDetail } = this.state;\r\n\r\n\t\tvar IsClient = !this.isSalesPerson && this.isClient;\r\n\t\tvar IsCallCenter = this.props.MenuCode === MenuCodes.CallCenterEFTTransactions;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{IsClient && }\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t model, FillDataFromModel: model => this.setState({ model }), ValidationFunction: this.Validate },\r\n\t\t\t\t\t{ Code: \"Export\", OnClick: this.ExportClick, Disabled: Disabled }\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={Disabled || IsClient} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t `${String(d.FinancialInstitutionId ?? \"\").padStart(3, \"0\")} - ${d.Description}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={model.FinancialInstitutionId || -1}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={Disabled}\r\n\t\t\t\t\t\t\t\t\t\t\t\tAll={true} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t `${String(d.TransitNumber ?? \"\").padStart(4, \"0\")} - ${d.Description}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={model.FinancialInstitutionBranchId || -1}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={Disabled}\r\n\t\t\t\t\t\t\t\t\t\t\t\tSorted={{ Member: \"TransitNumber\" }}\r\n\t\t\t\t\t\t\t\t\t\t\t\tAll={true} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{this.isBackOffice ?\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t : null}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t

Transaction List

\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t x.Code == \"CALEFTSEND\")?.HasAuthority}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tIcon={SubmitOrSendIcon}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tOnClick={() => { this.HandleSend(row.original); }} />\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t x.Code == \"CALEFTEDIT\")?.HasAuthority}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tIcon={EditIcon}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tOnClick={() => { RouteHelper.Push(this.props.history, \"/CreateEFT\", \"CreateEFT_Id\", row.original.Id); }} />\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t x.Code == \"CALEFTCANC\")?.HasAuthority}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tIcon={DeleteIcon}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tOnClick={() => { this.HandleCancel(row.original); }} />\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t x.Code == \"CALEFTTRAC\")?.HasAuthority\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tIcon={TraceIcon}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tOnClick={() => { this.HandleTrace(row.original); }} />\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t x.Code == \"CALEFTSUSP\")?.HasAuthority}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tIcon={SuspiciousIcon}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tOnClick={() => { this.HandleSuspicious(row.original); }} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\tsortable: false,\r\n\t\t\t\t\t\t\t\t\t\t\tfilterable: false,\r\n\t\t\t\t\t\t\t\t\t\t\twidth: 200,\r\n\t\t\t\t\t\t\t\t\t\t\tshow: IsCallCenter\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTimeUtc\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Merchant Clearing Date\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"SettlementDate\",\r\n\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTimeUtc\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Trace Status\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"TraceStatus\",\r\n\t\t\t\t\t\t\t\t\t\t\tshow: IsCallCenter,\r\n\t\t\t\t\t\t\t\t\t\t\t// Cell: row => {\r\n\t\t\t\t\t\t\t\t\t\t\t// \tswitch (row.value) {\r\n\t\t\t\t\t\t\t\t\t\t\t// \t\tcase ApprovalStatus.Waiting:\r\n\t\t\t\t\t\t\t\t\t\t\t// \t\tcase ApprovalStatus.Approved:\r\n\t\t\t\t\t\t\t\t\t\t\t// \t\tcase ApprovalStatus.Completed:\r\n\t\t\t\t\t\t\t\t\t\t\t// \t\t\treturn \"Trace\";\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t// \t\tdefault:\r\n\t\t\t\t\t\t\t\t\t\t\t// \t\t\treturn \"\";\r\n\t\t\t\t\t\t\t\t\t\t\t// \t}\r\n\t\t\t\t\t\t\t\t\t\t\t// }\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Suspicious Status\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"SuspiciousStatus\",\r\n\t\t\t\t\t\t\t\t\t\t\tshow: IsCallCenter,\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => {\r\n\t\t\t\t\t\t\t\t\t\t\t\tswitch (row.value) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tcase ApprovalStatus.Waiting:\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn \"Waiting Review\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tcase ApprovalStatus.Approved:\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tcase ApprovalStatus.Completed:\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn \"Review Result Approved\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tcase ApprovalStatus.Rejected:\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn \"Review Result Rejected\";\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn \"\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Unique Client Id\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"UniqueClientId\",\r\n\t\t\t\t\t\t\t\t\t\t\tshow: this.isSalesPerson || this.isBackOffice,\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"UniqueClientName\",\r\n\t\t\t\t\t\t\t\t\t\t\tshow: this.isSalesPerson || this.isBackOffice,\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ClientName\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Type\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionType.ParameterDesc\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Financial Institution\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"FinancialInstitution.Description\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Financial Institution Branch\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"FinancialInstitutionBranch.Description\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Customer Account Number\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"AccountNumber\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionAmount\",\r\n\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Fee Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"FeeAmount\",\r\n\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Status\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionStatus.ParameterDesc\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Customer Number\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ClientNumber\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transit Number\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransitNumber\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Eft Processor\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"EftProcessor\",\r\n\t\t\t\t\t\t\t\t\t\t\tshow: this.isBackOffice,\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Settlement Type\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"PriorityType.ParameterDesc\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"EFT Transaction Code\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"EFTTransactionType.ParameterDesc\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"File Id\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"FileId\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"File Name\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"FileName\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Customer Store\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"CustomerStore\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\",\r\n\t\t\t\t\t\t\t\t\t\t\twidth: 150\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Memo\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionMemo\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Return Transaction Type\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ReturnTransactionType\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Original Transaction Date\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"OriginalTransactionDate\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Customer Institution Id\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"PayeeInstitutionId\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Customer Account\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"PayeeAccount\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Item Trace Number\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ItemTraceNumber\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Original Transaction Type\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"OriginalTransactionType\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Institution Id For Returns\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"InstitutionIdForReturns\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Account Number For Returns\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"AccountNumberForReturns\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Logical Record Count\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"LogicalRecordCount\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Payee Drawee Institution Id\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"PayeeDraweeInstitutionId\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Originator Id\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"OriginatorId\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"File Creation Number\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"FileCreationNumber\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Payee Drawee Account Number\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"PayeeDraweeAccountNumber\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Clearing Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Originator Short Name\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"OriginatorShortName\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Payee Drawee Name\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"PayeeDraweeName\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Originator Long Name\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"OriginatorLongName\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Sequence In Segment\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"SequenceInSegment\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Group Number\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"GroupNumber\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Cross Reference Number\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"CrossReferenceNumber\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"File Information\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"FileInformation\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Clearing Date\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ClearingDate\",\r\n\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTimeUtc\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Process Status\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ProcessStatus\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Match Status\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"MatchStatus\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Validation Status\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ValidationStatus\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Validation Description\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ValidationDescription\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Recommit Date\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"RecommitDate\",\r\n\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTimeUtc\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Reject File Sent Date\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"RejectFileSentDate\",\r\n\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTimeUtc\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Item Trace No\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ItemTraceNo\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Stored Transaction Type\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"StoredTransactionType\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Return Date\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ReturnDate\",\r\n\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTimeUtc\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Invalid Data Element\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"InvalidDataElement\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Originator Direct Clearer Settlement Code\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"OriginatorDirectClearerSettlementCode\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Originator Sundry Information\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"OriginatorSundryInformation\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Originating Direct Clearer User Id\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"OriginatingDirectClearerUserId\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Return Code\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ReturnCode\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Return Indicator\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ReturnIndicator\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Source\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionSource.ParameterDesc\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Client User\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"InsertUser\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Reference Number\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ReferenceNumber\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Trace Reject Reason\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"TraceRejectReason\",\r\n\t\t\t\t\t\t\t\t\t\t\tshow: IsCallCenter,\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Suspicious Reject Reason\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"SuspiciousRejectReason\",\r\n\t\t\t\t\t\t\t\t\t\t\tshow: IsCallCenter,\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\tSorted={this.trxSorted}\r\n\t\t\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_EFT}\r\n\t\t\t\t\t\t\t\t\tServerSide\r\n\t\t\t\t\t\t\t\t\tLoadAtStartup={this.state.loadingCompleted}\r\n\t\t\t\t\t\t\t\t\tValidateRequest={this.Validate}\r\n\t\t\t\t\t\t\t\t\tPrepareRequest={() => {\r\n\t\t\t\t\t\t\t\t\t\t// Only call center needs suspicious and trace columns datas (For performance)\r\n\t\t\t\t\t\t\t\t\t\tconst { model } = this.state;\r\n\t\t\t\t\t\t\t\t\t\tmodel.IsCallCenter = this.props.MenuCode == MenuCodes.CallCenterEFTTransactions;\r\n\t\t\t\t\t\t\t\t\t\treturn model;\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\tRequestUrl=\"/bankapi/v1.0/BankBmoEFT/SearchEFTTransactionsPaged\"\r\n\t\t\t\t\t\t\t\t\tRequestMethod=\"POST\"\r\n\t\t\t\t\t\t\t\t/> \r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{ !this.isBackOffice &&\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t

EFT Approval List

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t { this.HandleApproveOrDeny(row.original.Id, true); }} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t { this.HandleApproveOrDeny(row.original.Id, false); }} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\tsortable: false,\r\n\t\t\t\t\t\t\t\t\t\t\tfilterable: false,\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Requested By\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"InsertUser\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTimeUtc\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Status\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionStatus.ParameterDesc\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ClientName\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Type\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionType.ParameterDesc\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Financial Institution\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"FinancialInstitution.Description\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Financial Institution Branch\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"FinancialInstitutionBranch.Description\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Customer Account Number\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"AccountNumber\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionAmount\",\r\n\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Fee Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"FeeAmount\",\r\n\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Customer Number\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ClientNumber\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transit Number\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransitNumber\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Eft Processor\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"EftProcessor\",\r\n\t\t\t\t\t\t\t\t\t\t\tshow: this.isBackOffice,\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Settlement Type\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"PriorityType.ParameterDesc\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"EFT Transaction Code\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"EFTTransactionType.ParameterDesc\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Memo\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionMemo\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Cross Reference Number\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"CrossReferenceNumber\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Reference Number\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"ReferenceNumber\",\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\tSorted={this.trxSorted}\r\n\t\t\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_EFT}\r\n\t\t\t\t\t\t\t\t\tServerSide\r\n\t\t\t\t\t\t\t\t\tHideLoadMore\r\n\t\t\t\t\t\t\t\t\tLoadAtStartup={this.state.loadingCompleted}\r\n\t\t\t\t\t\t\t\t\tPrepareRequest={() => {\r\n\r\n\r\n\t\t\t\t\t\t\t\t\t\tconst { model } = this.state;\r\n\t\t\t\t\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\t\t\t\t\tCacheGuid: null,\r\n\t\t\t\t\t\t\t\t\t\t\tUniqueClientId: model.UniqueClientId,\r\n\t\t\t\t\t\t\t\t\t\t\tMainSearchItemId: -1,\r\n\t\t\t\t\t\t\t\t\t\t\ttransactionStatusId: model.AwaitingApproval\r\n\t\t\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\tRequestUrl=\"/bankapi/v1.0/BankBmoEFT/SearchEFTTransactionsPaged\"\r\n\t\t\t\t\t\t\t\t\tRequestMethod=\"POST\"\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nTransactions.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default Transactions;\r\n","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport AlertHelper from \"core/AlertHelper\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { ApproveIcon, EditIcon } from \"core/Icons\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport Select from \"react-select\";\r\nimport AccountLimitToolbar from \"views/Components/AccountLimitToolbar\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericCheckInput, GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericNumberInput, GenericRadioInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { BankTransactionStatusParameterDesc, GridColumnType, ProgramCodes } from \"views/Constants/Constant.js\";\r\n\r\nclass UnSettleds extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.isBackOffice = ClientHelper.IsBackOffice();\r\n\t\tthis.clientRowId = ClientHelper.GetClientRowId();\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tToDate: DateHelper.GetDate(),\r\n\t\t\tFromDate: DateHelper.GetDate(),\r\n\t\t\tUniqueClientId: this.isBackOffice ? undefined : this.clientRowId\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tcheckedValues: [],\r\n\t\t\tapprovedList: [],\r\n\t\t\tselectList: [],\r\n\t\t\tdeleteList: [],\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tcountModel: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tLimitToken: false\r\n\t\t};\r\n\r\n\t\tthis.trxTable = React.createRef();\r\n\r\n\t\tthis.sortParamDesc = { Member: \"ParameterDesc\" };\r\n\t\tthis.trxSorted = [{ \"id\": \"TransactionDate\", \"desc\": true }];\r\n\r\n\t\tthis.HandleClear = this.HandleClear.bind(this);\r\n\t\tthis.HandleCheck = this.HandleCheck.bind(this);\r\n\t\tthis.HandleChange = this.HandleChange.bind(this);\r\n\t\tthis.HandleChangeItemCount = this.HandleChangeItemCount.bind(this);\r\n\t\tthis.Validate = this.Validate.bind(this);\r\n\r\n\t\tthis.HandleGetList = this.HandleGetList.bind(this);\r\n\t\tthis.ErrorSendCallback = this.ErrorSendCallback.bind(this);\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\t\tif (setAppLeftTitle)\r\n\t\t\tsetAppLeftTitle(\"Un-Settled & Un-Processed Transactions\");\r\n\t\tif (setAppCenterTitle)\r\n\t\t\tsetAppCenterTitle(\"EFT SYSTEM\");\r\n\r\n\t\tthis.RefreshToolBar();\r\n\t\tthis.setState({ loadingCompleted: true });\r\n\t}\r\n\r\n\tRefreshToolBar = () => {\r\n\t\tthis.setState({ LimitToken: !this.state.LimitToken });\r\n\t}\r\n\r\n\tHandleClear() {\r\n\t\tthis.setState({ model: this.initialModel });\r\n\t}\r\n\r\n\tHandleCheck(trans) {\r\n\t\tvar selectList = [...this.state.selectList];\r\n\t\tvar deleteList = [...this.state.deleteList];\r\n\r\n\t\tif (trans.TransactionStatus == BankTransactionStatusParameterDesc.Unapproved)\r\n\t\t\tselectList = this.state.selectList.includes(trans.TransactionEFTId)\r\n\t\t\t\t? this.state.selectList.filter(t => t !== trans.TransactionEFTId)\r\n\t\t\t\t: [...this.state.selectList, trans.TransactionEFTId];\r\n\r\n\t\tdeleteList = this.state.deleteList.includes(trans.TransactionEFTId)\r\n\t\t\t? this.state.deleteList.filter(t => t !== trans.TransactionEFTId)\r\n\t\t\t: [...this.state.deleteList, trans.TransactionEFTId];\r\n\t\tthis.setState(state => ({\r\n\t\t\tselectList, deleteList,\r\n\t\t\tcheckedValues: state.checkedValues.includes(trans)\r\n\t\t\t\t? state.checkedValues.filter(c => c !== trans)\r\n\t\t\t\t: [...state.checkedValues, trans]\r\n\t\t}));\r\n\t}\r\n\r\n\tHandleChange(name, value, data) {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tif (name == \"MainSearchItemId\")\r\n\t\t\tmodel.MainSearchItem = data;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleChangeItemCount(name, value) {\r\n\t\tconst countModel = { ...this.state.countModel };\r\n\t\tcountModel[name] = value;\r\n\t\tthis.setState({ countModel });\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\r\n\tHandleGetList() {\r\n\t\tthis.setState(state => ({ selectList: [], checkedValues: [], deleteList: [], trxGridToken: !state.trxGridToken }));\r\n\t}\r\n\r\n\thandleApproved = (trans) => {\r\n\t\tvar approvedList = [...this.state.approvedList];\r\n\t\tapprovedList = [];\r\n\t\tapprovedList.push(trans);\r\n\t\tthis.setState({\r\n\t\t\tapprovedList,\r\n\t\t\tisLoading: false,\r\n\t\t\talert: AlertHelper.CreateQuestionAlert(\"Approved\", \"Approve transaction ?\", \"warning\", () => this.handleApprovedOK(approvedList), this.hideAlert)\r\n\t\t});\r\n\t}\r\n\r\n\thandleSubmit = () => {\r\n\t\tif (this.state.selectList.length > 0)\r\n\t\t\tthis.setState({\r\n\t\t\t\tisLoading: false,\r\n\t\t\t\talert: AlertHelper.CreateQuestionAlert(\"Approved\", \"Approve selected [\" + this.state.selectList.length + \"] Unapproved transactions ?\", \"warning\", () => this.handleApprovedOK(this.state.selectList), this.hideAlert)\r\n\t\t\t});\r\n\t\telse {\r\n\t\t\tthis.ShowErrorMessage(\"You did not select any unapproved transaction!\");\r\n\t\t}\r\n\t}\r\n\r\n\thandleApprovedOK = (IdList) => {\r\n\t\tthis.showLoading();\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/BankBmoEFT/ApprovedUnsettledAndUnProcessedTransctionById\",\r\n\t\t\t{ TransactionEFTIds: IdList },\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowErrorMessage(\"Error =>\" + responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.ShowMessage(\"success\", \"Approved\", \"Transactions approved operation completed successfully.\");\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tthis.ErrorSendCallback\r\n\t\t);\r\n\t}\r\n\r\n\thandleDelete = () => {\r\n\t\tif (this.state.deleteList.length > 0) {\r\n\t\t\tthis.setState({\r\n\t\t\t\tisLoading: false,\r\n\t\t\t\talert: AlertHelper.CreateQuestionAlert(\"Warning\", \"Are you sure you want to delete and cancel the selected transactions?\", \"warning\", this.handleDeleteOK, this.hideAlert)\r\n\t\t\t});\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.ShowErrorMessage(\" Deleted List must not be null !! \");\r\n\t\t}\r\n\t}\r\n\r\n\thandleDeleteOK = () => {\r\n\t\tthis.showLoading();\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/BankBmoEFT/DeleteUnsettledAndUnProcessedTransactionById\",\r\n\t\t\t{ TransactionEFTIds: this.state.deleteList },\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowErrorMessage(\"Error =>\" + responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.ShowMessage(\"success\", \"Delete\", \"Transactions delete operation completed successfully.\");\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tthis.ErrorSendCallback\r\n\t\t);\r\n\t}\r\n\r\n\tErrorSendCallback(error) {\r\n\t\tthis.ShowErrorMessage(\"An error occurred while sending data =>\" + error.message);\r\n\t}\r\n\r\n\tShowMessage(type, title, message) {\r\n\t\tthis.setState({\r\n\t\t\tisLoading: false,\r\n\t\t\talert: AlertHelper.CreateAlert(title, message, type, this.hideAlert)\r\n\t\t});\r\n\t}\r\n\r\n\tShowErrorMessage = (message) => {\r\n\t\tthis.setState({\r\n\t\t\tisLoading: false,\r\n\t\t\talert: AlertHelper.CreateAlert(\"Warning\", message, \"warning\", this.hideAlert)\r\n\t\t});\r\n\t}\r\n\r\n\tValidate() {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.accessor != \"Actions\" && c.accessor != \"ED\" && (c.show == undefined || c.show)) {\r\n\t\t\t\ttrxColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: trxColumns, ExportSelectedColumns: trxColumns });\r\n\t}\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tconst temp = { ...this.state.model };\r\n\r\n\t\tvar jsonColList = [];\r\n\r\n\t\tvar trxColumns = {};\r\n\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\ttrxColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t});\r\n\t\tjsonColList.push(trxColumns);\r\n\r\n\t\tvar mytitle = \"EFT Un-Settled & Un-Processed Transactions\";\r\n\r\n\t\ttemp.jsonFile = {\r\n\t\t\tcolmns: jsonColList,\r\n\t\t\tformat: this.state.ExportReportType,\r\n\t\t\ttitle: mytitle\r\n\t\t};\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\"/bankapi/v1.0/BankBmoEFT/SearchUnSettledUnProcessEFTTransactionsExportDownload\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t},\r\n\t\t\tthis.props.showMessage\r\n\t\t);\r\n\t}\r\n\r\n\tshowLoading = () => {\r\n\t\tthis.setState({ isLoading: true, alert: null });\r\n\t}\r\n\r\n\thideLoading = () => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\thideAlert = () => {\r\n\t\tthis.setState({ alert: null, isLoading: false });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, isLoading, model } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{!this.isBackOffice && }\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\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t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t c.TransactionId == row.original.TransactionId).length > 0}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={() => { this.HandleCheck(row.original); }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={!row.original.IsEditable} />\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t { this.handleApproved(row.original.TransactionEFTId); }} />\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t { RouteHelper.Push(this.props.history, \"/CreateEFT\", \"CreateEFT_Id\", row.original.TransactionId); }} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsortable: false,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfilterable: false,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 110\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Unique Client Id\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ClientNumber\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tshow: this.isBackOffice,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ClientName\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tshow: this.isBackOffice,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Type\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionType\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Financial Institution\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"FinancialInstitution.Description\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Financial Institution Branch\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"FinancialInstitutionBranch.Description\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"EFT Transaction Code\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionCodeName\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Customer Account Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"AccountNumber\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionAmount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Fee Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"FeeAmount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"EFT Type\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"EFTTransactionType\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transit Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"FinancialInstitutionBranch.TransitNumber\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => Formatter.PadLeft(row.value, 5, \"0\")\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Status\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionStatus\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"File Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"FileName\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Source\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionSource\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Client User\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"InsertUser\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Reference Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionReferenceNumber\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => row.value ?? \"-\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Store\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"CustomerStore\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 150\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tSorted={this.trxSorted}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_EFT}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tServerSide\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tLoadAtStartup={this.state.loadingCompleted}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValidateRequest={this.Validate}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tPrepareRequest={() => { return this.state.model; }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tRequestUrl=\"/bankapi/v1.0/BankBmoEFT/SearchUnSettledUnProcessEFTTransactionsPaged\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tRequestMethod=\"POST\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nUnSettleds.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default UnSettleds;\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes, { bool, func } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport AccountComponent from \"views/Components/AccountComponent.jsx\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericNumberInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { TransactionType } from \"views/Constants/Constant.js\";\r\n\r\nclass EftIncomingApprove extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tisLoading: false,\r\n\t\t\tScreenDisabled: true,\r\n\t\t\tSourceAccountModel: {\r\n\t\t\t\tAccountNumber: \"\"\r\n\t\t\t},\r\n\t\t\tDestinationAccountModel: {\r\n\t\t\t\tFinancialInstitutionId: \"\",\r\n\t\t\t\tFinancialInstitutionBranchId: \"\",\r\n\t\t\t\tAccountNumber: \"\"\r\n\t\t\t}\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"EFT Incoming Transaction Approve\");\r\n\t\tthis.props.setAppCenterTitle(\"EFT SYSTEM\");\r\n\t}\r\n\r\n\tHandleSubmit = () => {\r\n\t\tthis.showIsLoading();\r\n\t\tProxy.GET(\r\n\t\t\t\"/bankapi/v1.0/BankBmoEFT/InComingApproval/Id?Id=\" + this.state.model.TransactionEftId,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tisLoading: false,\r\n\t\t\t\t\t\talert: this.hideAlert()} />\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tisLoading: false,\r\n\t\t\t\t\t\talert: this.hideAlert()} />\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tisLoading: false,\r\n\t\t\t\t\talert: this.hideAlert()} />\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleCancel = () => {\r\n\t\tthis.showIsLoading();\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/BankBmoEFT/InComingCancel/Id?Id=\" + this.props.fileInfomodel.Id,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tisLoading: false,\r\n\t\t\t\t\t\talert: this.hideAlert()} />\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tisLoading: false,\r\n\t\t\t\t\t\talert: this.hideAlert()} />\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tisLoading: false,\r\n\t\t\t\t\talert: this.hideAlert()} />\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tFillData = (model) => {\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\terrorCallback = (error) => {\r\n\t\tthis.showErrorMessage(\"An error occurred during the api visit\" + error);\r\n\t}\r\n\r\n\tshowErrorMessage = (message) => {\r\n\t\tthis.setState({\r\n\t\t\tisLoading: false,\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\r\n\thideAlert = () => { this.setState({ alert: null }); }\r\n\r\n\tshowIsLoading = () => { this.setState({ isLoading: true, alert: null }); }\r\n\r\n\thideIsLoading = () => { this.setState({ isLoading: false, alert: null }); }\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { isLoading, ScreenDisabled, model, SourceAccountModel, DestinationAccountModel } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{model.ClientType && model.ClientType.substring(0, 1) == TransactionType.Credit &&\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t{model.ClientType && model.ClientType.substring(0, 1) == TransactionType.Debit &&\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nEftIncomingApprove.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\thandleOperationType: PropTypes.func,\r\n\tshowQuestionMessage: func,\r\n\tsetAppLeftTitle: func,\r\n\tsetAppCenterTitle: func,\r\n\tDisabled: bool\r\n};\r\n\r\nexport default withArtifex(EftIncomingApprove, {});","\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport AlertHelper from \"core/AlertHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { EFTEntryType, EFTTransactionTypes } from \"views/Constants/Constant\";\r\nimport CreateEFTIndividual from \"views/EFT/CreateEFT/CreateEFTIndividual\";\r\n\r\nclass EftSubmitApprove extends Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tisLoading: false,\r\n\t\t\tmodel: {\r\n\r\n\t\t\t},\r\n\t\t\tIndividualModel: {\r\n\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tthis.SubmitClick = this.SubmitClick.bind(this);\r\n\t\tthis.Nothing = this.Nothing.bind(this);\r\n\t\tthis.FillData = this.FillData.bind(this);\r\n\t\tthis.GetModel = this.GetModel.bind(this);\r\n\r\n\t\tthis.ShowMessage = this.ShowMessage.bind(this);\r\n\t\tthis.hideAlert = this.hideAlert.bind(this);\r\n\t}\r\n\r\n\tNothing() {\r\n\r\n\t}\r\n\r\n\tSubmitClick(workflowId, after, accessToken) {\r\n\t\tconst { Id } = this.state;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/bankapi/v1.0/BankBmoEFT/ApprovedUnsettledAndUnProcessedTransctionById\",\r\n\t\t\t{ TransactionEFTIds: [Id] },\r\n\t\t\tfileResponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!fileResponseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred\", fileResponseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (after) after();\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred\", errorMessage);\r\n\t\t\t},\r\n\t\t\tworkflowId,\r\n\t\t\taccessToken\r\n\t\t);\r\n\t}\r\n\r\n\tGetModel() {\r\n\t\tconst { model } = this.state;\r\n\t\treturn model;\r\n\t}\r\n\r\n\tFillData(Id) {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/bankapi/v1.0/BankBmoEFT/GetByIdRequest\",\r\n\t\t\t{ Item: Id },\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while fetching data\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvar eftData = responseData.Item;\r\n\t\t\t\tvar data = eftData.Transaction;\r\n\r\n\t\t\t\tthis.setState(function (state) {\r\n\t\t\t\t\tvar model = state.model || {};\r\n\t\t\t\t\tvar IndividualModel = state.IndividualModel || {};\r\n\r\n\t\t\t\t\tmodel.UniqueClientId = data.UniqueClientId;\r\n\r\n\t\t\t\t\tmodel.EntryType = data.EntryTypeId;\r\n\t\t\t\t\tmodel.EntryCode = data.EntryType ? data.EntryType.ParameterValue : \"\";\r\n\t\t\t\t\tmodel.EFTType = eftData.EFTTypeId;\r\n\r\n\t\t\t\t\tmodel.IsUpdate = true;\r\n\t\t\t\t\tIndividualModel.Id = data.Id;\r\n\t\t\t\t\tIndividualModel.PayeeId = eftData.PayeeId;\r\n\t\t\t\t\tIndividualModel.PayeeName = eftData.PayeeName;\r\n\t\t\t\t\tIndividualModel.BeneficiaryId = eftData.BeneficiaryId;\r\n\t\t\t\t\tIndividualModel.Amount = data.TransactionAmount;\r\n\t\t\t\t\tIndividualModel.TransactionDate = data.TransactionDate ? DateHelper.ToMoment(data.TransactionDate) : null;\r\n\t\t\t\t\tIndividualModel.TransferMemo = eftData.TransferMemo;\r\n\t\t\t\t\tIndividualModel.TransactionType = data.TransactionTypeId;\r\n\t\t\t\t\tIndividualModel.TransactionTypeCode = data.TransactionType ? data.TransactionType.ParameterValue : \"\";\r\n\t\t\t\t\tIndividualModel.TransactionCode = eftData.EFTTransactionTypeId;\r\n\r\n\t\t\t\t\tif (IndividualModel.TransactionTypeCode == EFTTransactionTypes.Credit) {\r\n\t\t\t\t\t\tIndividualModel.BeneficiaryId = eftData.DestinationAccountId;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (IndividualModel.TransactionTypeCode == EFTTransactionTypes.Debit) {\r\n\t\t\t\t\t\tIndividualModel.BeneficiaryId = eftData.SourceAccountId;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\treturn { model, IndividualModel, Id: eftData.Id };\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while fetching data\", errorMessage);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tShowMessage(type, title, message) {\r\n\t\tthis.setState({ alert: AlertHelper.CreateAlert(title, message, type, this.hideAlert) });\r\n\t}\r\n\r\n\thideAlert() {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, IndividualModel, isLoading, Id, alert } = this.state;\r\n\t\tconst parentModel = { EntryCode: EFTEntryType.Individual, UniqueClientId: model.UniqueClientId };\r\n\r\n\t\treturn (\r\n\t\t\t<>\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nexport default withArtifex(EftSubmitApprove, {});","import Card from \"components/Card/Card\";\r\nimport CardBody from \"components/Card/CardBody\";\r\nimport GridContainer from \"components/Grid/GridContainer\";\r\nimport GridItem from \"components/Grid/GridItem\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericAlert, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { EFTEntryType } from \"views/Constants/Constant\";\r\nimport CreateEFTIndividual from \"views/EFT/CreateEFT/CreateEFTIndividual\";\r\n\r\nclass EftSuspiciousApprove extends Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tisLoading: false,\r\n\t\t\tmodel: {\r\n\r\n\t\t\t},\r\n\t\t\tIndividualModel: {\r\n\t\t\t\tIsCustomerPopupOpen: false\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tthis.SubmitClick = this.SubmitClick.bind(this);\r\n\t\tthis.Nothing = this.Nothing.bind(this);\r\n\t\tthis.FillData = this.FillData.bind(this);\r\n\t\tthis.GetModel = this.GetModel.bind(this);\r\n\t\tthis.ValueChanged = this.ValueChanged.bind(this);\r\n\r\n\t\tthis.ShowMessage = this.ShowMessage.bind(this);\r\n\t\tthis.hideAlert = this.hideAlert.bind(this);\r\n\t}\r\n\r\n\tNothing() {\r\n\r\n\t}\r\n\r\n\tValueChanged(name, newValue) {\r\n\t\tthis.setState({ [name]: newValue });\r\n\t}\r\n\r\n\tSubmitClick(workflowId, after, accessToken) {\r\n\t\tconst { Id, CancelReasonId, CancelMemo } = this.state;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/bankapi/v1.0/BankBmoEFT/SuspiciousApproval\",\r\n\t\t\t{ TransactionId: Id, ReasonId: CancelReasonId, Memo: CancelMemo },\r\n\t\t\tfileResponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!fileResponseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred\", fileResponseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (after) after();\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred\", errorMessage);\r\n\t\t\t},\r\n\t\t\tworkflowId,\r\n\t\t\taccessToken\r\n\t\t);\r\n\t}\r\n\r\n\tGetModel() {\r\n\t\tconst { model } = this.state;\r\n\t\treturn model;\r\n\t}\r\n\r\n\tFillData(data) {\r\n\t\tthis.setState({ isLoading: true, CancelReasonId: data.CancelReasonId, CancelMemo: data.CancelMemo });\r\n\t\tProxy.POST(\"/bankapi/v1.0/BankBmoEFT/GetByIdRequest\",\r\n\t\t\t{ Item: data.TransactionId },\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while fetching data\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvar eftData = responseData.Item;\r\n\t\t\t\tvar transactionData = eftData.Transaction;\r\n\r\n\t\t\t\tthis.setState(function (state) {\r\n\t\t\t\t\tvar model = state.model || {};\r\n\t\t\t\t\tvar IndividualModel = state.IndividualModel || {};\r\n\r\n\t\t\t\t\tmodel.UniqueClientId = transactionData.UniqueClientId;\r\n\r\n\t\t\t\t\tmodel.EntryType = transactionData.EntryTypeId;\r\n\t\t\t\t\tmodel.EntryCode = transactionData.EntryType ?? \"\";\r\n\t\t\t\t\tmodel.EFTType = eftData.EFTTypeId;\r\n\r\n\t\t\t\t\tmodel.IsUpdate = true;\r\n\t\t\t\t\tIndividualModel.Id = transactionData.Id;\r\n\t\t\t\t\tIndividualModel.PayeeId = eftData.PayeeId;\r\n\t\t\t\t\tIndividualModel.PayeeName = eftData.PayeeName;\r\n\t\t\t\t\tIndividualModel.PayeerFinancialInstitutionRowId = eftData.FinancialInstitutionId;\r\n\t\t\t\t\tIndividualModel.PayeerFinancialInstitutionBranchRowId = eftData.FinancialInstitutionBranchId;\r\n\t\t\t\t\tIndividualModel.PayeerAccountNumber = eftData.AccountNumber;\r\n\t\t\t\t\tIndividualModel.PayeerFinancialInstitutionId = eftData.FinancialInstitution?.FinIns;\r\n\t\t\t\t\tIndividualModel.PayeerTransitNumber = eftData.FinancialInstitutionBranch?.TransitNo;\r\n\t\t\t\t\tIndividualModel.Amount = transactionData.TransactionAmount;\r\n\t\t\t\t\tIndividualModel.TransactionDate = transactionData.TransactionDate ? DateHelper.ToMoment(transactionData.TransactionDate) : null;\r\n\t\t\t\t\tIndividualModel.TransferMemo = eftData.TransferMemo;\r\n\t\t\t\t\tIndividualModel.TransactionType = transactionData.TransactionTypeId;\r\n\t\t\t\t\tIndividualModel.TransactionTypeCode = transactionData.TransactionType ?? \"\";\r\n\t\t\t\t\tIndividualModel.TransactionCode = eftData.EFTTransactionTypeId;\r\n\r\n\t\t\t\t\treturn { model, IndividualModel, Id: eftData.TransactionId };\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while fetching data\", errorMessage);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tShowMessage(type, title, message) {\r\n\t\tthis.setState({ alert: });\r\n\t}\r\n\r\n\thideAlert() {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, isLoading, Id, CancelReasonId, CancelMemo, alert } = this.state;\r\n\t\tconst parentModel = { EntryCode: EFTEntryType.Individual, UniqueClientId: model.UniqueClientId };\r\n\t\tconst { Disabled } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t<>\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nEftSuspiciousApprove.propTypes = {\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(EftSuspiciousApprove, {});","import { Proxy, withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericAlert } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { EFTEntryType, EFTTransactionTypes } from \"views/Constants/Constant\";\r\nimport CreateEFTIndividual from \"views/EFT/CreateEFT/CreateEFTIndividual\";\r\n\r\nclass EftTraceApprove extends Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tisLoading: false,\r\n\t\t\tmodel: {\r\n\r\n\t\t\t},\r\n\t\t\tIndividualModel: {\r\n\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tthis.SubmitClick = this.SubmitClick.bind(this);\r\n\t\tthis.RejectClick = this.RejectClick.bind(this);\r\n\t\tthis.Nothing = this.Nothing.bind(this);\r\n\t\tthis.FillData = this.FillData.bind(this);\r\n\t\tthis.GetModel = this.GetModel.bind(this);\r\n\r\n\t\tthis.ShowMessage = this.ShowMessage.bind(this);\r\n\t\tthis.hideAlert = this.hideAlert.bind(this);\r\n\t}\r\n\r\n\tNothing() {\r\n\r\n\t}\r\n\r\n\tSubmitClick(workflowId, after, accessToken) {\r\n\t\tconst { Id } = this.state;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/bankapi/v1.0/BankBmoEFT/TraceApproval\",\r\n\t\t\t{ Id: Id },\r\n\t\t\tfileResponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!fileResponseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred\", fileResponseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (after) after();\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred\", errorMessage);\r\n\t\t\t},\r\n\t\t\tworkflowId,\r\n\t\t\taccessToken\r\n\t\t);\r\n\t}\r\n\r\n\tRejectClick(after) {\r\n\t\tconst { Id } = this.state;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/bankapi/v1.0/BankBmoEFT/TraceCancel\",\r\n\t\t\t{ Id: Id },\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (after) after();\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred\", errorMessage);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tGetModel() {\r\n\t\tconst { model } = this.state;\r\n\t\treturn model;\r\n\t}\r\n\r\n\tFillData(Id) {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/bankapi/v1.0/BankBmoEFT/GetByIdRequest\",\r\n\t\t\t{ Item: Id },\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while fetching data\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvar eftData = responseData.Item;\r\n\t\t\t\tvar data = eftData.Transaction;\r\n\r\n\t\t\t\tthis.setState(function (state) {\r\n\t\t\t\t\tvar model = state.model || {};\r\n\t\t\t\t\tvar IndividualModel = state.IndividualModel || {};\r\n\r\n\t\t\t\t\tmodel.UniqueClientId = data.UniqueClientId;\r\n\r\n\t\t\t\t\tmodel.EntryType = data.EntryTypeId;\r\n\t\t\t\t\tmodel.EntryCode = data.EntryType ? data.EntryType.ParameterValue : \"\";\r\n\t\t\t\t\tmodel.EFTType = eftData.EFTTypeId;\r\n\r\n\t\t\t\t\tmodel.IsUpdate = true;\r\n\t\t\t\t\tIndividualModel.Id = data.Id;\r\n\t\t\t\t\tIndividualModel.PayeeId = eftData.PayeeId;\r\n\t\t\t\t\tIndividualModel.PayeeName = eftData.PayeeName;\r\n\t\t\t\t\tIndividualModel.BeneficiaryId = eftData.BeneficiaryId;\r\n\t\t\t\t\tIndividualModel.Amount = data.TransactionAmount;\r\n\t\t\t\t\tIndividualModel.TransactionDate = data.TransactionDate ? DateHelper.ToMoment(data.TransactionDate) : null;\r\n\t\t\t\t\tIndividualModel.TransferMemo = eftData.TransferMemo;\r\n\t\t\t\t\tIndividualModel.TransactionType = data.TransactionTypeId;\r\n\t\t\t\t\tIndividualModel.TransactionTypeCode = data.TransactionType ? data.TransactionType.ParameterValue : \"\";\r\n\t\t\t\t\tIndividualModel.TransactionCode = eftData.EFTTransactionTypeId;\r\n\r\n\t\t\t\t\tif (IndividualModel.TransactionTypeCode == EFTTransactionTypes.Credit) {\r\n\t\t\t\t\t\tIndividualModel.BeneficiaryId = eftData.DestinationAccountId;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (IndividualModel.TransactionTypeCode == EFTTransactionTypes.Debit) {\r\n\t\t\t\t\t\tIndividualModel.BeneficiaryId = eftData.SourceAccountId;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\treturn { model, IndividualModel, Id };\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while fetching data\", errorMessage);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tShowMessage(type, title, message) {\r\n\t\tthis.setState({ alert: });\r\n\t}\r\n\r\n\thideAlert() {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, IndividualModel, isLoading, Id, alert } = this.state;\r\n\t\tconst parentModel = { EntryCode: EFTEntryType.Individual, UniqueClientId: model.UniqueClientId };\r\n\r\n\t\treturn (\r\n\t\t\t<>\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nexport default withArtifex(EftTraceApprove, {});","import {\r\n\tDialog,\r\n\tDialogActions,\r\n\tDialogContent,\r\n\tDialogTitle,\r\n\tIconButton\r\n} from \"@material-ui/core\";\r\nimport { primaryColor } from \"assets/jss/material-dashboard-pro-react.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport { ProfileIcon, EditIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport {\r\n\tGenericAlert,\r\n\tGenericLabel,\r\n\tGenericIcon,\r\n\tGenericExpansionPanel,\r\n\tGenericGrid,\r\n\tGenericNumberInput,\r\n\tGenericSelectInput,\r\n\tGenericTextInput\r\n} from \"views/Components/Generic\";\r\nimport { ProgramCodes } from \"views/Constants/Constant.js\";\r\nimport AccountComponent from \"views/Components/AccountComponent\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport ToolbarButton from \"views/Components/ToolbarButton\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nclass CountryLimits extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.emptyLimitModel = {\r\n\t\t\tId: null,\r\n\t\t\tCountry: null,\r\n\t\t\tLimit: null,\r\n\t\t\tUniqueClientId: null,\r\n\t\t\tProgram: null\r\n\t\t};\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t { this.handleSelect(row.original, row.index); }}>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\tresizable: false,\r\n\t\t\t\twidth: 80\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Country Code\",\r\n\t\t\t\taccessor: \"Country.Code\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Country Name\",\r\n\t\t\t\taccessor: \"Country.Name\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Program\",\r\n\t\t\t\taccessor: \"Program.Description\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Country Limit\",\r\n\t\t\t\taccessor: \"Limit\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.state = {\r\n\t\t\talert: null,\r\n\t\t\tlist: [],\r\n\t\t\tmodel: this.emptyLimitModel,\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Country Limits\");\r\n\t\tthis.props.setAppCenterTitle(\"FX TRANSFER\");\r\n\t}\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tconst dialogModel = { ...this.state.dialogModel };\r\n\t\tconst initialModel = { ...this.emptyLimitModel };\r\n\t\tif (name === \"UniqueClientId\") {\r\n\t\t\tif (\r\n\t\t\t\tClientHelper.IsClient() &&\r\n\t\t\t\tinitialModel.UniqueClientId == null &&\r\n\t\t\t\tnewValue != null\r\n\t\t\t) {\r\n\t\t\t\tthis.emptyLimitModel.UniqueClientId = newValue;\r\n\t\t\t}\r\n\t\t\tmodel.UniqueClientId = newValue;\r\n\t\t} else if (name === \"CountryId\") {\r\n\t\t\tmodel.Country = data;\r\n\t\t} else if (name === \"Limit\") {\r\n\t\t\tmodel.Limit = newValue;\r\n\t\t} else if (name === \"ProgramType\") {\r\n\t\t\tmodel.Program = data;\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\thandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: this.emptyLimitModel,\r\n\t\t\talert: null,\r\n\t\t\tlist: []\r\n\t\t});\r\n\t};\r\n\r\n\thandleSearch = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst request = {\r\n\t\t\tProgramId: model.Program == null ? null : model.Program.Id,\r\n\t\t\tCountryId: model.Country == null ? null : model.Country.Id,\r\n\t\t};\r\n\t\tProxy.ExecuteGeneral(\r\n\t\t\tthis, \"POST\",\r\n\t\t\t\"/bankapi/v1.0/CountryLimit/Search\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tlist: responseData.Item\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\thandleSubmit = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst request = {\r\n\t\t\tId: model.Id == null ? 0 : model.Id,\r\n\t\t\tUniqueClientId: 0,\r\n\t\t\tIsRecordValid: true,\r\n\t\t\tLimit: model.Limit == null ? 0 : model.Limit,\r\n\t\t\tProgramId: model.Program == null ? null : model.Program.Id,\r\n\t\t\tCountryId: model.Country == null ? null : model.Country.Id,\r\n\t\t};\r\n\r\n\t\tProxy.ExecuteGeneral(\r\n\t\t\tthis, \"POST\",\r\n\t\t\t\"/bankapi/v1.0/CountryLimit/\" + (model.Id == null ? \"Insert\" : \"Update\"),\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tmodel: this.emptyLimitModel\r\n\t\t\t\t}, this.handleSearch);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\thandleDelete = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst request = {\r\n\t\t\tId: model.Id == null ? 0 : model.Id,\r\n\t\t\tUniqueClientId: 0,\r\n\t\t\tIsRecordValid: false,\r\n\t\t\tLimit: model.Limit == null ? 0 : model.Limit,\r\n\t\t\tProgramId: model.Program == null ? null : model.Program.Id,\r\n\t\t\tCountryId: model.Country == null ? null : model.Country.Id,\r\n\t\t};\r\n\r\n\t\tProxy.ExecuteGeneral(\r\n\t\t\tthis, \"POST\",\r\n\t\t\t\"/bankapi/v1.0/CountryLimit/Update\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tmodel: this.emptyLimitModel\r\n\t\t\t\t}, this.handleSearch);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\thandleSelect = (data, index) => {\r\n\t\tvar clonedData = Object.assign({}, data);\r\n\t\tthis.setState({ model: clonedData });\r\n\t};\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, alert, list, isLoading } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t `${d.Code} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.Country == null ? null : model.Country.Id}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={model.Id != null} />\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t\tOnConfirm={onConfirm}\r\n\t\t\t\t/>\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n}\r\n\r\nCountryLimits.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\thandleChange: PropTypes.func,\r\n\tmenuId: PropTypes.number,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default withArtifex(CountryLimits, {});\r\n","import { Dialog, DialogActions, DialogContent, DialogTitle, IconButton } from \"@material-ui/core\";\r\nimport { primaryColor } from \"assets/jss/material-dashboard-pro-react.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport { ProfileIcon, EditIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport { GenericTitle, GenericAlert, GenericIcon, GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport { ProgramCodes } from \"views/Constants/Constant.js\";\r\nimport AccountComponent from \"views/Components/AccountComponent\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport ToolbarButton from \"views/Components/ToolbarButton\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nclass FeeProfiles extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.emptyProfile = {\r\n\t\t\tId: 0,\r\n\t\t\tIsRecordValid: true,\r\n\t\t\tProfileName: null,\r\n\t\t\tUniqueClientId: null,\r\n\t\t\tDetailList : null\r\n\t\t}\r\n\r\n\t\tthis.emptyDetail = {\r\n\t\t\tIndex: null,\r\n\t\t\tId: 0,\r\n\t\t\tIsRecordValid: true,\r\n\t\t\tProfileId: 0,\r\n\t\t\tSupplierId: null,\r\n\t\t\tSupplier: null,\r\n\t\t\tCountryId: null,\r\n\t\t\tCountry: null,\r\n\t\t\tTransferSourceTypeId: null,\r\n\t\t\tTransferSourceType: null,\r\n\t\t\tTransferMethodId: null,\r\n\t\t\tTransferMethod: null,\r\n\t\t\tSupplierFee: 0.00,\r\n\t\t\tFeeMarkup: 0.00,\r\n\t\t\tFxMarkup: 0.00\r\n\t\t}\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tSelectedFeeProfile: Object.assign({}, this.emptyProfile),\r\n\t\t\tSelectedTransactionFee: Object.assign({}, this.emptyDetail),\r\n\t\t\tProfileList: [],\r\n\t\t\tDetailList: [],\r\n\t\t};\r\n\r\n\t\tthis.feeProfileColumns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t { this.handleSelectProfile(row.original, row.index); }}>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\tresizable: false,\r\n\t\t\t\twidth: 50\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Profile Name\",\r\n\t\t\t\taccessor: \"ProfileName\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\r\n\t\tif (ClientHelper.IsClient()) {\r\n\t\t\tthis.emptyProfile.UniqueClientId = ClientHelper.GetClientId();\r\n\t\t} else {\r\n\t\t\tthis.emptyProfile.UniqueClientId = null;\r\n\t\t}\r\n\t\tthis.feeProfileColumns.push({\r\n\t\t\tHeader: \"\",\r\n\t\t\tCell: row => (
)\r\n\t\t});\r\n\r\n\t\tthis.feeItemColumns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t { this.handleSelectDetail(row.original, row.index); }}>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\tresizable: false,\r\n\t\t\t\twidth: 60\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Profile Name\",\r\n\t\t\t\taccessor: \"Profile.ProfileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Supplier\",\r\n\t\t\t\taccessor: \"Supplier.Title\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Country\",\r\n\t\t\t\taccessor: \"Country.Name\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transfer method\",\r\n\t\t\t\taccessor: \"TransferMethod.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transfer Source\",\r\n\t\t\t\taccessor: \"TransferSourceType.ParameterDesc\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: Object.assign({}, this.initialModel),\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\t};\r\n\r\n\ttoArray = (value) => {\r\n\t\tvar returnList = [];\r\n\t\tif (value != null && value[0]) {\r\n\t\t\tfor (const key in value) {\r\n\t\t\t\tif (value.hasOwnProperty(key)) {\r\n\t\t\t\t\tconst element = value[key];\r\n\t\t\t\t\treturnList.push(element);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn returnList;\r\n\t};\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Fee Profiles\");\r\n\t\tthis.props.setAppCenterTitle(\"FX TRANSFER\");\r\n\t}\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tconst emptyProfile = { ...this.emptyProfile };\r\n\t\tif (name === \"UniqueClientId\") {\r\n\t\t\tif (\r\n\t\t\t\tClientHelper.IsClient() &&\r\n\t\t\t\temptyProfile.UniqueClientId == null &&\r\n\t\t\t\tnewValue != null\r\n\t\t\t) {\r\n\t\t\t\tthis.initialModel.UniqueClientId = newValue;\r\n\t\t\t}\r\n\t\t\tmodel.SelectedFeeProfile.UniqueClientId = newValue;\r\n\t\t} else if (name === \"ProfileName\") {\r\n\t\t\tmodel.SelectedFeeProfile.ProfileName = newValue;\r\n\t\t} else if (name == \"SupplierId\") {\r\n\t\t\tmodel.SelectedTransactionFee.SupplierId = newValue;\r\n\t\t\tmodel.SelectedTransactionFee.Supplier = data;\r\n\t\t} else if (name == \"CountryId\") {\r\n\t\t\tmodel.SelectedTransactionFee.CountryId = newValue;\r\n\t\t\tmodel.SelectedTransactionFee.Country = data;\r\n\t\t} else if (name == \"FeeMarkup\") {\r\n\t\t\tmodel.SelectedTransactionFee.FeeMarkup = newValue;\r\n\t\t} else if (name == \"SupplierFee\") {\r\n\t\t\tmodel.SelectedTransactionFee.SupplierFee = newValue;\r\n\t\t} else if (name == \"FxMarkup\") {\r\n\t\t\tmodel.SelectedTransactionFee.FxMarkup = newValue;\r\n\t\t} else if (name == \"TransferMethodId\") {\r\n\t\t\tmodel.SelectedTransactionFee.TransferMethodId = newValue;\r\n\t\t\tmodel.SelectedTransactionFee.TransferMethod = data;\r\n\t\t} else if (name == \"TransferSourceTypeId\") {\r\n\t\t\tmodel.SelectedTransactionFee.TransferSourceTypeId = newValue;\r\n\t\t\tmodel.SelectedTransactionFee.TransferSourceType = data;\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\thandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {\r\n\t\t\t\tSelectedFeeProfile: Object.assign({}, this.emptyProfile),\r\n\t\t\t\tSelectedTransactionFee: Object.assign({}, this.emptyDetail),\r\n\t\t\t\tProfileList: [],\r\n\t\t\t\tDetailList: [],\r\n\t\t\t}\r\n\t\t});\r\n\t};\r\n\r\n\thandleSearch = () => {\r\n\t\tthis.executeSearch();\r\n\t};\r\n\r\n\thandleSelectProfile = (data, index) => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tvar feeProfile = Object.assign({}, data);\r\n\t\tvar feeItemList = Object.assign({}, data.DetailList);\r\n\r\n\t\tmodel.SelectedFeeProfile = feeProfile;\r\n\t\tmodel.SelectedTransactionFee = Object.assign({}, this.emptyDetail);\r\n\t\tmodel.DetailList = this.toArray(feeItemList);\r\n\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\thandleSelectDetail = (data, index) => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\r\n\t\tmodel.SelectedTransactionFee = Object.assign({}, data);\r\n\t\tmodel.SelectedTransactionFee.Index = index;\r\n\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\thandleAddDetail = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tvar newItem = Object.assign({}, model.SelectedTransactionFee);\r\n\r\n\t\tif (!this.validateNewDetail(newItem, model.DetailList)) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar temporary = [];\r\n\t\tif (newItem.Id == 0) {\r\n\t\t\tnewItem.ProfileId = model.SelectedFeeProfile.Id;\r\n\t\t\tnewItem.CardTransactionFeeProfile = model.SelectedFeeProfile;\r\n\r\n\t\t\tif (newItem.Index != null) {\r\n\t\t\t\tfor (let index = 0; index < model.DetailList.length; index++) {\r\n\t\t\t\t\tconst element = model.DetailList[index];\r\n\t\t\t\t\ttemporary.push(index == newItem.Index ? newItem : element);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tmodel.DetailList.forEach((value, index, array) => { temporary.push(value); });\r\n\t\t\t\ttemporary.push(newItem);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tmodel.DetailList.forEach(element => {\r\n\t\t\t\tif (element.Id == newItem.Id) {\r\n\t\t\t\t\ttemporary.push(newItem);\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttemporary.push(element);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\tmodel.SelectedTransactionFee = Object.assign({}, this.emptyDetail);\r\n\t\tmodel.DetailList = temporary;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\thandleDeleteDetail = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tvar newItem = Object.assign({}, model.SelectedTransactionFee);\r\n\r\n\t\tvar temporary = [];\r\n\t\tif (newItem.Id != 0) {\r\n\t\t\tnewItem.IsRecordValid = false;\r\n\t\t\tmodel.DetailList.forEach(element => {\r\n\t\t\t\tif (element.Id != newItem.Id) { temporary.push(element); }\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\tfor (let index = 0; index < model.DetailList.length; index++) {\r\n\t\t\t\tconst element = model.DetailList[index];\r\n\t\t\t\tif (index != newItem.Index) { temporary.push(element); }\r\n\t\t\t}\r\n\t\t}\r\n\t\tmodel.SelectedTransactionFee = Object.assign({}, this.emptyDetail);\r\n\t\tmodel.DetailList = temporary;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\thandleClearDetail = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel.SelectedTransactionFee = Object.assign({}, this.emptyDetail);\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\texecuteSearch = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tconst request = {\r\n\t\t\tProfileName: model.SelectedFeeProfile.ProfileName\r\n\t\t};\r\n\t\tProxy.ExecuteGeneral(\r\n\t\t\tthis, \"POST\",\r\n\t\t\t\"/bankapi/v1.0/FxFeeProfile/SearchProfile\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\t// model.SelectedFeeProfile = Object.assign({}, this.emptyProfile);\r\n\t\t\t\tmodel.SelectedTransactionFee = Object.assign({}, this.emptyDetail);\r\n\t\t\t\tmodel.ProfileList = responseData.Item;\r\n\t\t\t\tmodel.DetailList = [];\r\n\t\t\t\tthis.setState({ model });\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\texecuteSubmit = () => {\r\n\t\tif (!this.validateSubmit()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst model = { ...this.state.model };\r\n\t\tvar callUrl = model.SelectedFeeProfile.Id != 0 ?\r\n\t\t\t\"/bankapi/v1.0/FxFeeProfile/Update\" :\r\n\t\t\t\"/bankapi/v1.0/FxFeeProfile/Insert\";\r\n\r\n\t\tvar requestList = [];\r\n\t\tif (model.SelectedFeeProfile.Id != 0) {\r\n\t\t\tvar originalDetail = model.ProfileList.find(x => x.Id == model.SelectedFeeProfile.Id).DetailList;\r\n\t\t\tvar originalDetailList = this.toArray(originalDetail);\r\n\r\n\t\t\tmodel.DetailList.forEach(element => {\r\n\t\t\t\t// added list\r\n\t\t\t\tif (element.Id == 0) { requestList.push(element); }\r\n\t\t\t\t// modified list\r\n\t\t\t\tif (element.Id != 0) { requestList.push(element); }\r\n\t\t\t});\r\n\r\n\t\t\t// deleted list\r\n\t\t\toriginalDetailList.forEach(element => {\r\n\t\t\t\tvar relatedItem = model.DetailList.find(x => x.Id == element.Id);\r\n\t\t\t\tif (relatedItem == null) {\r\n\t\t\t\t\tvar deletedItem = Object.assign({}, element);\r\n\t\t\t\t\tdeletedItem.IsRecordValid = false;\r\n\t\t\t\t\trequestList.push(deletedItem);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\tmodel.DetailList.forEach(element => {\r\n\t\t\t\t// added list\r\n\t\t\t\trequestList.push(element);\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tconst UniqueClientId = ClientHelper.IsClient() ? null : model.SelectedFeeProfile.UniqueClientId;\r\n\t\tconst request = {\r\n\t\t\tProfileName: model.SelectedFeeProfile.ProfileName,\r\n\t\t\tUniqueClientId: UniqueClientId,\r\n\t\t\tId: model.SelectedFeeProfile != null ? model.SelectedFeeProfile.Id : null,\r\n\t\t\tIsRecordValid: true,\r\n\t\t\tDetailList: requestList\r\n\t\t};\r\n\t\tProxy.ExecuteGeneral(\r\n\t\t\tthis, \"POST\",\r\n\t\t\tcallUrl,\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tmodel.SelectedFeeProfile = responseData.Item;\r\n\t\t\t\tmodel.SelectedTransactionFee = Object.assign({}, this.emptyDetail);\r\n\t\t\t\tmodel.ProfileList = [];\r\n\t\t\t\tmodel.ProfileList.push(responseData.Item);\r\n\t\t\t\tmodel.DetailList = responseData.Item.DetailList;\r\n\t\t\t\tthis.setState({ model });\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\texecuteDelete = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tconst UniqueClientId = ClientHelper.IsClient() ? null : model.SelectedFeeProfile.UniqueClientId;\r\n\t\tconst request = {\r\n\t\t\tProfileName: model.SelectedFeeProfile.ProfileName,\r\n\t\t\tUniqueClientId: UniqueClientId,\r\n\t\t\tId: model.SelectedFeeProfile != null ? model.SelectedFeeProfile.Id : null,\r\n\t\t\tIsRecordValid: false\r\n\t\t};\r\n\t\tProxy.ExecuteGeneral(\r\n\t\t\tthis, \"POST\",\r\n\t\t\t\"/prepaidapi/v1.0/CardTransactionFeeProfile/Delete\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tmodel: {\r\n\t\t\t\t\t\tSelectedFeeProfile: Object.assign({}, this.emptyProfile),\r\n\t\t\t\t\t\tSelectedTransactionFee: Object.assign({}, this.emptyDetail),\r\n\t\t\t\t\t\tProfileList: [],\r\n\t\t\t\t\t\tDetailList: [],\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\tvalidateSubmit = () => {\r\n\t\tvar errorList = [];\r\n\t\tconst { model } = this.state;\r\n\r\n\t\t// Client is optional\r\n\t\t// if (model.UniqueClientId == null || model.UniqueClientId == 0) {\r\n\t\t// \terrorList.push(\"Client must be selected!\");\r\n\t\t// }\r\n\r\n\t\tif (model.SelectedFeeProfile == null\r\n\t\t\t|| model.SelectedFeeProfile.ProfileName == null\r\n\t\t\t|| model.SelectedFeeProfile.ProfileName === \"\") {\r\n\t\t\terrorList.push(\"Please fill Profile Name field.\");\r\n\t\t}\r\n\r\n\t\tif (errorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Required fields!\", errorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\tvalidateNewDetail = (newItem, allDetail) => {\r\n\t\tvar errorList = [];\r\n\t\tconst { model } = this.state;\r\n\r\n\t\t//model.SelectedTransactionFee.TransactionCodeId\r\n\t\t//model.SelectedTransactionFee.FeeRate\r\n\t\t//model.SelectedTransactionFee.FlatAmount\r\n\r\n\t\tif (newItem.SupplierId == null) {\r\n\t\t\terrorList.push(\"Please fill in the Supplier field.\");\r\n\t\t}\r\n\t\tif (newItem.CountryId == null) {\r\n\t\t\terrorList.push(\"Please fill in the Country field.\");\r\n\t\t}\r\n\t\tif (newItem.TransferMethodId == null) {\r\n\t\t\terrorList.push(\"Please fill in the Transfer Source field.\");\r\n\t\t}\r\n\t\tif (newItem.TransferSourceTypeId == null) {\r\n\t\t\terrorList.push(\"Please fill in the Transfer Method field.\");\r\n\t\t}\r\n\r\n\t\tif (newItem.Id == 0) {\r\n\t\t\tif (newItem.Index != null) {\r\n\t\t\t\tfor (let index = 0; index < allDetail.length; index++) {\r\n\t\t\t\t\tconst element = allDetail[index];\r\n\t\t\t\t\tif (index != newItem.Index &&\r\n\t\t\t\t\t\telement.SupplierId == newItem.SupplierId &&\r\n\t\t\t\t\t\telement.CountryId == newItem.CountryId &&\r\n\t\t\t\t\t\telement.TransferMethodId == newItem.TransferMethodId &&\r\n\t\t\t\t\t\telement.TransferSourceTypeId == newItem.TransferSourceTypeId) {\r\n\t\t\t\t\t\terrorList.push(\"Please fill in fields with different value.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tallDetail.forEach((value, index, array) => {\r\n\t\t\t\t\tif (value.SupplierId == newItem.SupplierId &&\r\n\t\t\t\t\t\tvalue.CountryId == newItem.CountryId &&\r\n\t\t\t\t\t\tvalue.TransferMethodId == newItem.TransferMethodId &&\r\n\t\t\t\t\t\tvalue.TransferSourceTypeId == newItem.TransferSourceTypeId) {\r\n\t\t\t\t\t\terrorList.push(\"Please fill in fields with different value.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tallDetail.forEach(element => {\r\n\t\t\t\tif (element.Id != newItem.Id &&\r\n\t\t\t\t\telement.SupplierId == newItem.SupplierId &&\r\n\t\t\t\t\telement.CountryId == newItem.CountryId &&\r\n\t\t\t\t\telement.TransferMethodId == newItem.TransferMethodId &&\r\n\t\t\t\t\telement.TransferSourceTypeId == newItem.TransferSourceTypeId) {\r\n\t\t\t\t\terrorList.push(\"Please fill in fields with different value.\");\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tif (errorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Required fields!\", errorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, isLoading, alert } = this.state;\r\n\t\tvar emptyAccountModel = { FinancialInstitutionId: 0, AccountNumber: \"\" };\r\n\t\tconst dialogBorderStyle = {\r\n\t\t\tborderColor: primaryColor,\r\n\t\t\tborderWidth: \"7px\",\r\n\t\t\tborderStyle: \"Solid\"\r\n\t\t};\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t 0,\r\n\t\t\t\t\t\t\tModelFunction: () => model,\r\n\t\t\t\t\t\t\tFillDataFromModel: model => this.setState({ model }),\r\n\t\t\t\t\t\t\tValidationFunction: this.Validate\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Delete\",\r\n\t\t\t\t\t\t\tOnClick: this.executeDelete,\r\n\t\t\t\t\t\t\tDisabled: Disabled || model.Id > 0,\r\n\t\t\t\t\t\t\tModelFunction: () => model,\r\n\t\t\t\t\t\t\tFillDataFromModel: model => this.setState({ model }),\r\n\t\t\t\t\t\t\tValidationFunction: this.Validate\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Search\",\r\n\t\t\t\t\t\t\tOnClick: this.handleSearch,\r\n\t\t\t\t\t\t\tDisabled: Disabled || model.Id > 0,\r\n\t\t\t\t\t\t\tModelFunction: () => model,\r\n\t\t\t\t\t\t\tFillDataFromModel: model => this.setState({ model }),\r\n\t\t\t\t\t\t\tValidationFunction: this.Validate\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{ Code: \"Clear\", OnClick: this.handleClear, Disabled: Disabled }\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t `${d.Title}`}\r\n\t\t\t\t\t\t\t\t\t\t\tValue={model.SelectedTransactionFee.SupplierId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\tAll />\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{/* empty */}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t `${d.Code} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\tValue={model.SelectedTransactionFee.CountryId}\r\n\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t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t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })} />\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })} />\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t\tOnConfirm={onConfirm} />\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n\r\n\r\n}\r\n\r\nFeeProfiles.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\thandleChange: PropTypes.func,\r\n\tmenuId: PropTypes.number,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default withArtifex(FeeProfiles, {});\r\n","import { Dialog, DialogActions, DialogContent, DialogTitle, IconButton } from \"@material-ui/core\";\r\nimport { primaryColor } from \"assets/jss/material-dashboard-pro-react.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport { ProfileIcon, EditIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport { GenericCheckInput, GenericTitle, GenericAlert, GenericIcon, GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport { ProgramCodes } from \"views/Constants/Constant.js\";\r\nimport AccountComponent from \"views/Components/AccountComponent\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport ToolbarButton from \"views/Components/ToolbarButton\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nclass LimitProfiles extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.emptyProfile = {\r\n\t\t\tId: 0,\r\n\t\t\tIsRecordValid: true,\r\n\t\t\tProfileName: null,\r\n\t\t\tDetailList: null\r\n\t\t}\r\n\r\n\t\tthis.emptyDetail = {\r\n\t\t\tIndex: null,\r\n\t\t\tId: 0,\r\n\t\t\tIsRecordValid: true,\r\n\t\t\tProfileId: 0,\r\n\t\t\tTransactionLimit: 0.00,\r\n\t\t\tAccountLimit: 0.00,\r\n\t\t\tReviewDailyLimit: 0.00,\r\n\t\t\tHourlyLimit: 0.00,\r\n\t\t\tWeeklyLimit: 0.00,\r\n\t\t\tWeekendLimit: 0.00,\r\n\t\t\tMonthlyLimit: 0.00,\r\n\t\t\tNonReviewDailyLimit: null\r\n\t\t}\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tSelectedLimitProfile: Object.assign({}, this.emptyProfile),\r\n\t\t\tSelectedTransactionLimit: Object.assign({}, this.emptyDetail),\r\n\t\t\tProfileList: [],\r\n\t\t\tDetailList: [],\r\n\t\t};\r\n\r\n\t\tthis.limitProfileColumns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t { this.handleSelectProfile(row.original, row.index); }}>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\tresizable: false,\r\n\t\t\t\twidth: 60\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Profile Name\",\r\n\t\t\t\taccessor: \"ProfileName\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\r\n\t\tif (ClientHelper.IsClient()) {\r\n\t\t\tthis.emptyProfile.UniqueClientId = ClientHelper.GetClientId();\r\n\t\t} else {\r\n\t\t\tthis.emptyProfile.UniqueClientId = null;\r\n\t\t}\r\n\r\n\t\tthis.limitProfileColumns.push({\r\n\t\t\tHeader: \"\",\r\n\t\t\tCell: row => (
)\r\n\t\t});\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: Object.assign({}, this.initialModel),\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\t};\r\n\r\n\ttoArray = (value) => {\r\n\t\tvar returnList = [];\r\n\t\tif (value != null && value[0]) {\r\n\t\t\tfor (const key in value) {\r\n\t\t\t\tif (value.hasOwnProperty(key)) {\r\n\t\t\t\t\tconst element = value[key];\r\n\t\t\t\t\treturnList.push(element);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn returnList;\r\n\t};\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Limit Profiles\");\r\n\t\tthis.props.setAppCenterTitle(\"FX TRANSFER\");\r\n\t}\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tconst emptyProfile = { ...this.emptyProfile };\r\n\t\tif (name === \"ProfileName\") {\r\n\t\t\tmodel.SelectedLimitProfile.ProfileName = newValue;\r\n\t\t} else if (name == \"TransactionLimit\") {\r\n\t\t\tmodel.SelectedTransactionLimit.TransactionLimit = newValue;\r\n\t\t} else if (name == \"AccountLimit\") {\r\n\t\t\tmodel.SelectedTransactionLimit.AccountLimit = newValue;\r\n\t\t} else if (name == \"ReviewDailyLimit\") {\r\n\t\t\tmodel.SelectedTransactionLimit.ReviewDailyLimit = newValue;\r\n\t\t} else if (name == \"HourlyLimit\") {\r\n\t\t\tmodel.SelectedTransactionLimit.HourlyLimit = newValue;\r\n\t\t} else if (name == \"WeeklyLimit\") {\r\n\t\t\tmodel.SelectedTransactionLimit.WeeklyLimit = newValue;\r\n\t\t} else if (name == \"WeekendLimit\") {\r\n\t\t\tmodel.SelectedTransactionLimit.WeekendLimit = newValue;\r\n\t\t} else if (name == \"MonthlyLimit\") {\r\n\t\t\tmodel.SelectedTransactionLimit.MonthlyLimit = newValue;\r\n\t\t} else if (name == \"NonReviewDailyLimit\") {\r\n\t\t\tmodel.SelectedTransactionLimit.NonReviewDailyLimit = newValue;\r\n\t\t} else if (name == \"HasNonReviewDailyLimit\") {\r\n\t\t\tmodel.SelectedTransactionLimit.NonReviewDailyLimit = newValue ? 0 : null;\r\n\t\t}\r\n\t\t// HasNonReviewDailyLimit\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\thandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {\r\n\t\t\t\tSelectedLimitProfile: Object.assign({}, this.emptyProfile),\r\n\t\t\t\tSelectedTransactionLimit: Object.assign({}, this.emptyDetail),\r\n\t\t\t\tProfileList: [],\r\n\t\t\t\tDetailList: [],\r\n\t\t\t}\r\n\t\t});\r\n\t};\r\n\r\n\thandleSearch = () => {\r\n\t\tthis.executeSearch();\r\n\t};\r\n\r\n\thandleSelectProfile = (data, index) => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tvar limitProfile = Object.assign({}, data);\r\n\t\tvar limitItemList = Object.assign({}, data.DetailList);\r\n\r\n\t\tmodel.SelectedLimitProfile = limitProfile;\r\n\t\tmodel.SelectedTransactionLimit = Object.assign({}, this.emptyDetail);\r\n\t\tmodel.DetailList = this.toArray(limitItemList);\r\n\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\thandleSelectDetail = (data, index) => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\r\n\t\tmodel.SelectedTransactionLimit = Object.assign({}, data);\r\n\t\tmodel.SelectedTransactionLimit.Index = index;\r\n\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\thandleAddDetail = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tvar newItem = Object.assign({}, model.SelectedTransactionLimit);\r\n\r\n\t\tif (!this.validateNewDetail(newItem, model.DetailList)) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar temporary = [];\r\n\t\tif (newItem.Id == 0) {\r\n\t\t\tnewItem.ProfileId = model.SelectedLimitProfile.Id;\r\n\t\t\tnewItem.CardTransactionLimitProfile = model.SelectedLimitProfile;\r\n\r\n\t\t\tif (newItem.Index != null) {\r\n\t\t\t\tfor (let index = 0; index < model.DetailList.length; index++) {\r\n\t\t\t\t\tconst element = model.DetailList[index];\r\n\t\t\t\t\ttemporary.push(index == newItem.Index ? newItem : element);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tmodel.DetailList.forEach((value, index, array) => { temporary.push(value); });\r\n\t\t\t\ttemporary.push(newItem);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tmodel.DetailList.forEach(element => {\r\n\t\t\t\tif (element.Id == newItem.Id) {\r\n\t\t\t\t\ttemporary.push(newItem);\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttemporary.push(element);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\tmodel.SelectedTransactionLimit = Object.assign({}, this.emptyDetail);\r\n\t\tmodel.DetailList = temporary;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\thandleDeleteDetail = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tvar newItem = Object.assign({}, model.SelectedTransactionLimit);\r\n\r\n\t\tvar temporary = [];\r\n\t\tif (newItem.Id != 0) {\r\n\t\t\tnewItem.IsRecordValid = false;\r\n\t\t\tmodel.DetailList.forEach(element => {\r\n\t\t\t\tif (element.Id != newItem.Id) { temporary.push(element); }\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\tfor (let index = 0; index < model.DetailList.length; index++) {\r\n\t\t\t\tconst element = model.DetailList[index];\r\n\t\t\t\tif (index != newItem.Index) { temporary.push(element); }\r\n\t\t\t}\r\n\t\t}\r\n\t\tmodel.SelectedTransactionLimit = Object.assign({}, this.emptyDetail);\r\n\t\tmodel.DetailList = temporary;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\thandleClearDetail = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel.SelectedTransactionLimit = Object.assign({}, this.emptyDetail);\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\texecuteSearch = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tconst request = {\r\n\t\t\tProfileName: model.SelectedLimitProfile.ProfileName\r\n\t\t};\r\n\t\tProxy.ExecuteGeneral(\r\n\t\t\tthis, \"POST\",\r\n\t\t\t\"/bankapi/v1.0/FxLimitProfile/SearchProfile\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\t// model.SelectedLimitProfile = Object.assign({}, this.emptyProfile);\r\n\t\t\t\tmodel.SelectedTransactionLimit = Object.assign({}, this.emptyDetail);\r\n\t\t\t\tmodel.ProfileList = responseData.Item;\r\n\t\t\t\tmodel.DetailList = [];\r\n\t\t\t\tthis.setState({ model });\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\texecuteSubmit = () => {\r\n\t\tif (!this.validateSubmit()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst model = { ...this.state.model };\r\n\t\tvar callUrl = model.SelectedLimitProfile.Id != 0 ?\r\n\t\t\t\"/bankapi/v1.0/FxLimitProfile/Update\" :\r\n\t\t\t\"/bankapi/v1.0/FxLimitProfile/Insert\";\r\n\r\n\t\tvar requestList = [];\r\n\t\tif (model.SelectedLimitProfile.Id != 0) {\r\n\t\t\tvar originalDetail = model.ProfileList.find(x => x.Id == model.SelectedLimitProfile.Id).DetailList;\r\n\t\t\tvar originalDetailList = this.toArray(originalDetail);\r\n\r\n\t\t\tmodel.DetailList.forEach(element => {\r\n\t\t\t\t// added list\r\n\t\t\t\tif (element.Id == 0) { requestList.push(element); }\r\n\t\t\t\t// modified list\r\n\t\t\t\tif (element.Id != 0) { requestList.push(element); }\r\n\t\t\t});\r\n\r\n\t\t\t// deleted list\r\n\t\t\toriginalDetailList.forEach(element => {\r\n\t\t\t\tvar relatedItem = model.DetailList.find(x => x.Id == element.Id);\r\n\t\t\t\tif (relatedItem == null) {\r\n\t\t\t\t\tvar deletedItem = Object.assign({}, element);\r\n\t\t\t\t\tdeletedItem.IsRecordValid = false;\r\n\t\t\t\t\trequestList.push(deletedItem);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\tmodel.DetailList.forEach(element => {\r\n\t\t\t\t// added list\r\n\t\t\t\trequestList.push(element);\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tconst request = {\r\n\t\t\tProfileName: model.SelectedLimitProfile.ProfileName,\r\n\t\t\tId: model.SelectedLimitProfile != null ? model.SelectedLimitProfile.Id : null,\r\n\t\t\tIsRecordValid: true,\r\n\t\t\tDetailList: requestList\r\n\t\t};\r\n\t\tProxy.ExecuteGeneral(\r\n\t\t\tthis, \"POST\",\r\n\t\t\tcallUrl,\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tmodel.SelectedLimitProfile = responseData.Item;\r\n\t\t\t\tmodel.SelectedTransactionLimit = Object.assign({}, this.emptyDetail);\r\n\t\t\t\tmodel.ProfileList = [];\r\n\t\t\t\tmodel.ProfileList.push(responseData.Item);\r\n\t\t\t\tmodel.DetailList = responseData.Item.DetailList;\r\n\t\t\t\tthis.setState({ model });\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\texecuteDelete = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tconst request = {\r\n\t\t\tProfileName: model.SelectedLimitProfile.ProfileName,\r\n\t\t\tId: model.SelectedLimitProfile != null ? model.SelectedLimitProfile.Id : null,\r\n\t\t\tIsRecordValid: false\r\n\t\t};\r\n\t\tProxy.ExecuteGeneral(\r\n\t\t\tthis, \"POST\",\r\n\t\t\t\"/prepaidapi/v1.0/CardTransactionLimitProfile/Delete\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tmodel: {\r\n\t\t\t\t\t\tSelectedLimitProfile: Object.assign({}, this.emptyProfile),\r\n\t\t\t\t\t\tSelectedTransactionLimit: Object.assign({}, this.emptyDetail),\r\n\t\t\t\t\t\tProfileList: [],\r\n\t\t\t\t\t\tDetailList: [],\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\tvalidateSubmit = () => {\r\n\t\tvar errorList = [];\r\n\t\tconst { model } = this.state;\r\n\r\n\t\t// Client is optional\r\n\t\t// if (model.UniqueClientId == null || model.UniqueClientId == 0) {\r\n\t\t// \terrorList.push(\"Client must be selected!\");\r\n\t\t// }\r\n\r\n\t\tif (model.SelectedLimitProfile == null\r\n\t\t\t|| model.SelectedLimitProfile.ProfileName == null\r\n\t\t\t|| model.SelectedLimitProfile.ProfileName === \"\") {\r\n\t\t\terrorList.push(\"Please fill Profile Name field.\");\r\n\t\t}\r\n\r\n\t\tif (errorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Required fields!\", errorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\tvalidateNewDetail = (newItem, allDetail) => {\r\n\t\tvar errorList = [];\r\n\t\tconst { model } = this.state;\r\n\r\n\t\t//model.SelectedTransactionLimit.TransactionCodeId\r\n\t\t//model.SelectedTransactionLimit.LimitRate\r\n\t\t//model.SelectedTransactionLimit.FlatAmount\r\n\r\n\t\t// if (newItem.SupplierId == null) {\r\n\t\t// \terrorList.push(\"Please fill in the Supplier field.\");\r\n\t\t// }\r\n\t\t// if (newItem.CountryId == null) {\r\n\t\t// \terrorList.push(\"Please fill in the Country field.\");\r\n\t\t// }\r\n\t\t// if (newItem.TransferMethodId == null) {\r\n\t\t// \terrorList.push(\"Please fill in the Transfer Source field.\");\r\n\t\t// }\r\n\t\t// if (newItem.TransferSourceTypeId == null) {\r\n\t\t// \terrorList.push(\"Please fill in the Transfer Method field.\");\r\n\t\t// }\r\n\r\n\t\t// if (newItem.Id == 0) {\r\n\t\t// \tif (newItem.Index != null) {\r\n\t\t// \t\tfor (let index = 0; index < allDetail.length; index++) {\r\n\t\t// \t\t\tconst element = allDetail[index];\r\n\t\t// \t\t\tif (index != newItem.Index &&\r\n\t\t// \t\t\t\telement.SupplierId == newItem.SupplierId &&\r\n\t\t// \t\t\t\telement.CountryId == newItem.CountryId &&\r\n\t\t// \t\t\t\telement.TransferMethodId == newItem.TransferMethodId &&\r\n\t\t// \t\t\t\telement.TransferSourceTypeId == newItem.TransferSourceTypeId) {\r\n\t\t// \t\t\t\terrorList.push(\"Please fill in fields with different value.\");\r\n\t\t// \t\t\t}\r\n\t\t// \t\t}\r\n\t\t// \t} else {\r\n\t\t// \t\tallDetail.forEach((value, index, array) => {\r\n\t\t// \t\t\tif (value.SupplierId == newItem.SupplierId &&\r\n\t\t// \t\t\t\tvalue.CountryId == newItem.CountryId &&\r\n\t\t// \t\t\t\tvalue.TransferMethodId == newItem.TransferMethodId &&\r\n\t\t// \t\t\t\tvalue.TransferSourceTypeId == newItem.TransferSourceTypeId) {\r\n\t\t// \t\t\t\terrorList.push(\"Please fill in fields with different value.\");\r\n\t\t// \t\t\t}\r\n\t\t// \t\t});\r\n\t\t// \t}\r\n\t\t// } else {\r\n\t\t// \tallDetail.forEach(element => {\r\n\t\t// \t\tif (element.Id != newItem.Id &&\r\n\t\t// \t\t\telement.SupplierId == newItem.SupplierId &&\r\n\t\t// \t\t\telement.CountryId == newItem.CountryId &&\r\n\t\t// \t\t\telement.TransferMethodId == newItem.TransferMethodId &&\r\n\t\t// \t\t\telement.TransferSourceTypeId == newItem.TransferSourceTypeId) {\r\n\t\t// \t\t\terrorList.push(\"Please fill in fields with different value.\");\r\n\t\t// \t\t}\r\n\t\t// \t});\r\n\t\t// }\r\n\r\n\t\tif (errorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Required fields!\", errorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, isLoading, alert } = this.state;\r\n\t\tvar emptyAccountModel = { FinancialInstitutionId: 0, AccountNumber: \"\" };\r\n\t\tconst dialogBorderStyle = {\r\n\t\t\tborderColor: primaryColor,\r\n\t\t\tborderWidth: \"7px\",\r\n\t\t\tborderStyle: \"Solid\"\r\n\t\t};\r\n\r\n\r\n\t\tconst limitItemColumns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t { this.handleSelectDetail(row.original, row.index); }}>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\tresizable: false,\r\n\t\t\t\twidth: 50\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Profile Name\",\r\n\t\t\t\tCell: row => (
{model.SelectedLimitProfile.ProfileName}
),\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Limit\",\r\n\t\t\t\taccessor: \"TransactionLimit\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Limit\",\r\n\t\t\t\taccessor: \"AccountLimit\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Review Daily Limit\",\r\n\t\t\t\taccessor: \"ReviewDailyLimit\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Hourly Limit\",\r\n\t\t\t\taccessor: \"HourlyLimit\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Weekly Limit\",\r\n\t\t\t\taccessor: \"WeeklyLimit\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Weekend Limit\",\r\n\t\t\t\taccessor: \"WeekendLimit\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Monthly Limit\",\r\n\t\t\t\taccessor: \"MonthlyLimit\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Non Review Daily Limit\",\r\n\t\t\t\taccessor: \"NonReviewDailyLimit\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t 0,\r\n\t\t\t\t\t\t\tModelFunction: () => model,\r\n\t\t\t\t\t\t\tFillDataFromModel: model => this.setState({ model }),\r\n\t\t\t\t\t\t\tValidationFunction: this.Validate\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Delete\",\r\n\t\t\t\t\t\t\tOnClick: this.executeDelete,\r\n\t\t\t\t\t\t\tDisabled: Disabled || model.Id > 0,\r\n\t\t\t\t\t\t\tModelFunction: () => model,\r\n\t\t\t\t\t\t\tFillDataFromModel: model => this.setState({ model }),\r\n\t\t\t\t\t\t\tValidationFunction: this.Validate\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Search\",\r\n\t\t\t\t\t\t\tOnClick: this.handleSearch,\r\n\t\t\t\t\t\t\tDisabled: Disabled || model.Id > 0,\r\n\t\t\t\t\t\t\tModelFunction: () => model,\r\n\t\t\t\t\t\t\tFillDataFromModel: model => this.setState({ model }),\r\n\t\t\t\t\t\t\tValidationFunction: this.Validate\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{ Code: \"Clear\", OnClick: this.handleClear, Disabled: Disabled }\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\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t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })} />\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })} />\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t\tOnConfirm={onConfirm} />\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n\r\n\r\n}\r\n\r\nLimitProfiles.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\thandleChange: PropTypes.func,\r\n\tmenuId: PropTypes.number,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default withArtifex(LimitProfiles, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport { DeleteIcon } from \"core/Icons\";\r\nimport ResourceHelper from \"core/ResourceHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericGrid, GenericNumberInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nclass UserMenuFavorite extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tlist: []\r\n\t\t\t}\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"Favorite Management\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Manage Favorite Menus\");\r\n\t\t}\r\n\r\n\t\tthis.GetByUserId();\r\n\t}\r\n\r\n\tOrderChange = (rowIndex, value) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel.orderList[rowIndex].Order = value;\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tGetByUserId = async () => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/UserFavoriteMenuMap/GetByUserId\", {});\r\n\r\n\t\tif (result != null) {\r\n\t\t\tthis.setState({ isLoading: true });\r\n\r\n\t\t\tvar list = [], orderList = [];\r\n\r\n\t\t\tresult.map(x => {\r\n\t\t\t\tlist.push({\r\n\t\t\t\t\tId: x.Id,\r\n\t\t\t\t\tMenuId: x.MenuId,\r\n\t\t\t\t\tMenu: ResourceHelper.GetForMenu(x.MenuName),\r\n\t\t\t\t\tOrder: x.Order\r\n\t\t\t\t});\r\n\t\t\t\torderList.push({\r\n\t\t\t\t\tOrder: x.Order\r\n\t\t\t\t});\r\n\r\n\t\t\t\treturn null;\r\n\t\t\t});\r\n\r\n\t\t\tvar { model } = this.state;\r\n\t\t\tmodel.list = list;\r\n\t\t\tmodel.orderList = orderList;\r\n\r\n\t\t\tthis.setState({ model, isLoading: false });\r\n\t\t}\r\n\t}\r\n\r\n\tSubmit = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar favoriteOrderList = [];\r\n\r\n\t\tfor (var i = 0; i < model.list.length; i++) {\r\n\t\t\tfavoriteOrderList.push({\r\n\t\t\t\tId: model.list[i].Id,\r\n\t\t\t\tOrder: model.orderList[i].Order\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tExecuteApiPost(\"/coreapi/v1.0/UserFavoriteMenuMap/Submit\", { favoriteOrderList }, null, null, this.Validate, [this.AfterSubmitOrDelete], true);\r\n\t}\r\n\r\n\tAfterSubmitOrDelete = () => {\r\n\t\tvar user = ClientHelper.GetUser();\r\n\t\tuser.IsFavorite = true;\r\n\r\n\t\tlocalStorage.setItem(\"user\", JSON.stringify(user));\r\n\t\tlocalStorage.removeItem(\"MenuData\");\r\n\r\n\t\tsetTimeout(function () {\r\n\t\t\twindow.location.reload(true);\r\n\t\t}, 2000);\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errors = [];\r\n\t\tvar isEmpty = false;\r\n\r\n\t\tif (model.list.length == 0) {\r\n\t\t\terrors.push(\"Favorite list is empty.\");\r\n\t\t\tshowValidationErrors(errors);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tmodel.list.map(x => {\r\n\t\t\tif (x.Order == null) {\r\n\t\t\t\tisEmpty = true;\r\n\t\t\t}\r\n\r\n\t\t\treturn null;\r\n\t\t});\r\n\r\n\t\tif (isEmpty) {\r\n\t\t\terrors.push(\"Order can not be null.\");\r\n\t\t\tshowValidationErrors(errors);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, isLoading } = this.state;\r\n\t\tconst { ExecuteApiPost, showConfirmMessageInDelete } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tshowConfirmMessageInDelete(() => ExecuteApiPost(\"/coreapi/v1.0/UserFavoriteMenuMap/Delete\", { Id: row.original.Id }, null, null, null, [this.AfterSubmitOrDelete], true));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\twidth: 60\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Order\",\r\n\t\t\t\t\t\t\t\t\t\t\twidth: 75,\r\n\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t this.OrderChange(row.index, value)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: \"Menu\",\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: \"Menu\"\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t]} />\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nUserMenuFavorite.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default UserMenuFavorite;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericDateInput, GenericExpansionPanel, GenericGrid, GenericSelectInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport DateHelper from \"core/DateHelper\";\r\n\r\n\r\nclass AggregatedFeeByClient extends React.Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tlist: [],\r\n\t\t\tmodel: {},\r\n\t\t\tfilterModel: {},\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\r\n\t\tthis.trxTable = React.createRef();\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Aggregated Fee By Client\");\r\n\t\tthis.props.setAppCenterTitle(\"ACCOUNTS\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {}\r\n\t\t});\r\n\t};\r\n\r\n\tHandleSearch = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tconst { showMessage } = this.props;\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/FeeTransaction/SearchAggregatedFee\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t this.setState({ isLoading: false });\r\n \r\n\t\t\t if (!responseData.IsSucceeded) {\r\n\t\t\t\t showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t return;\r\n\t\t\t }\r\n\t\t\t this.setState({\r\n\t\t\t\tlist: responseData.Item ?? [],\r\n\t\t\t });\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t this.setState({ isLoading: false });\r\n\t\t\t showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t );\r\n\t};\r\n\r\n\trender() {\r\n\t\tconst { alert, model, list, isLoading } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nAggregatedFeeByClient.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default AggregatedFeeByClient;\r\n","import { DialogContent, DialogTitle, Slide } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDialog, GenericDialogActions, GenericGrid, GenericInput, GenericLabel, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport TabsComponent from \"views/Components/TabsComponent\";\r\nimport ButtonOverride from \"./Tabs/ButtonOverride\";\r\nimport General from \"./Tabs/General\";\r\nimport GridColumns from \"./Tabs/GridColumns\";\r\nimport Include from \"./Tabs/Include\";\r\nimport Input from \"./Tabs/Input\";\r\n\r\nfunction Transition(props) {\r\n\treturn ;\r\n}\r\nclass GenericScreenDefinition extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tInclude: [],\r\n\t\t\tInputs: [],\r\n\t\t\tGridColumns: [],\r\n\t\t\tDocumentButtons: true,\r\n\t\t\tButtonOverrides: [\r\n\t\t\t\t{\r\n\t\t\t\t\tCode: \"Get\",\r\n\t\t\t\t\tHidden: false\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tCode: \"Insert\",\r\n\t\t\t\t\tHidden: false\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tCode: \"Delete\",\r\n\t\t\t\t\tHidden: false\r\n\t\t\t\t}\r\n\t\t\t]\r\n\t\t};\r\n\r\n\t\tthis.initialSelectInputModel = {\r\n\t\t\tMethod: \"GET\",\r\n\t\t\tUrl: \"/coreapi/v1.0/dynamic/do\",\r\n\t\t\tParameter: {},\r\n\t\t\tDataRoot: \"Item\",\r\n\t\t\tKeyValueMember: \"Id\",\r\n\t\t\tTextValueMember: \"ParameterDesc\"\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tvModel: {},\r\n\t\t\tId: 0,\r\n\t\t\tCode: \"\",\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tincludeModel: {},\r\n\t\t\tinputModel: {},\r\n\t\t\tparameterModel: {},\r\n\t\t\tgridColumnsModel: {},\r\n\t\t\tbuttonModel: {},\r\n\t\t\ttempParameters: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tisPreviewDialogOpen: false\r\n\t\t};\r\n\r\n\t\tthis.HandleClear = this.HandleClear.bind(this);\r\n\t\tthis.HandleChangeScreen = this.HandleChangeScreen.bind(this);\r\n\t\tthis.HandleChangeScreenSelect = this.HandleChangeScreenSelect.bind(this);\r\n\r\n\t\tthis.HandleChange = this.HandleChange.bind(this);\r\n\t\tthis.HandleChangeInclude = this.HandleChangeInclude.bind(this);\r\n\t\tthis.HandleChangeInput = this.HandleChangeInput.bind(this);\r\n\t\tthis.HandleChangeParameter = this.HandleChangeParameter.bind(this);\r\n\t\tthis.HandleChangeGridColumns = this.HandleChangeGridColumns.bind(this);\r\n\t\tthis.HandleChangeButton = this.HandleChangeButton.bind(this);\r\n\r\n\t\tthis.HandleBooleanChange = this.HandleBooleanChange.bind(this);\r\n\t\tthis.HandleBooleanChangeInput = this.HandleBooleanChangeInput.bind(this);\r\n\t\tthis.HandleBooleanChangeParam = this.HandleBooleanChangeParam.bind(this);\r\n\t\tthis.HandleBooleanChangeButton = this.HandleBooleanChangeButton.bind(this);\r\n\r\n\t\tthis.HandleSubmit = this.HandleSubmit.bind(this);\r\n\t\tthis.SuccessSubmitCallback = this.SuccessSubmitCallback.bind(this);\r\n\t\tthis.ErrorSubmitCallback = this.ErrorSubmitCallback.bind(this);\r\n\r\n\t\tthis.AddInclude = this.AddInclude.bind(this);\r\n\t\tthis.DeleteInclude = this.DeleteInclude.bind(this);\r\n\r\n\t\tthis.AddInput = this.AddInput.bind(this);\r\n\t\tthis.UpdateInput = this.UpdateInput.bind(this);\r\n\t\tthis.DeleteInput = this.DeleteInput.bind(this);\r\n\t\tthis.ClearInputs = this.ClearInputs.bind(this);\r\n\t\tthis.SelectInputModel = this.SelectInputModel.bind(this);\r\n\r\n\t\tthis.AddParameter = this.AddParameter.bind(this);\r\n\t\tthis.DeleteParameter = this.DeleteParameter.bind(this);\r\n\r\n\t\tthis.AddGridColumns = this.AddGridColumns.bind(this);\r\n\t\tthis.DeleteGridColumns = this.DeleteGridColumns.bind(this);\r\n\t\tthis.SelectGridColumn = this.SelectGridColumn.bind(this);\r\n\r\n\t\tthis.AddButton = this.AddButton.bind(this);\r\n\t\tthis.UpdateButton = this.UpdateButton.bind(this);\r\n\t\tthis.DeleteButton = this.DeleteButton.bind(this);\r\n\t\tthis.ClearButtons = this.ClearButtons.bind(this);\r\n\t\tthis.SelectButton = this.SelectButton.bind(this);\r\n\r\n\t\tthis.Validate = this.Validate.bind(this);\r\n\r\n\t\tthis.ShowPreview = this.ShowPreview.bind(this);\r\n\r\n\t\tthis.ShowMessage = this.ShowMessage.bind(this);\r\n\t\tthis.ShowMessageNode = this.ShowMessageNode.bind(this);\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Generic Screen Definition\");\r\n\t\tthis.props.setAppCenterTitle(\"SYSTEM ADMIN\");\r\n\t}\r\n\r\n\tHandleClear() {\r\n\t\tthis.setState({ model: this.initialModel, inputModel: {}, Id: 0, vModel: {} });\r\n\t}\r\n\r\n\tHandleChangeScreen(name, newValue) {\r\n\t\tthis.setState({ Code: newValue });\r\n\t}\r\n\r\n\tHandleChangeScreenSelect(name, newValue, data) {\r\n\t\tlet model = data != null ? JSON.parse(data.Data) : { ...this.initialModel };\r\n\t\tlet Id = newValue;\r\n\t\tlet Code = data?.Code;\r\n\t\tthis.setState({ model, Code, Id });\r\n\t}\r\n\r\n\tHandleChange(name, newValue) {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleChangeInclude(name, newValue) {\r\n\t\tconst includeModel = { ...this.state.includeModel };\r\n\t\tincludeModel[name] = newValue;\r\n\t\tthis.setState({ includeModel });\r\n\t}\r\n\r\n\tHandleChangeInput(name, newValue) {\r\n\t\tconst inputModel = { ...this.state.inputModel };\r\n\t\tinputModel[name] = newValue;\r\n\t\tif (newValue === \"select\" || newValue === \"filter\" || newValue === \"radio\") {\r\n\t\t\tthis.setState({ inputModel: { ...inputModel, ...this.initialSelectInputModel } });\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({ inputModel });\r\n\t}\r\n\r\n\tHandleChangeParameter(name, newValue) {\r\n\t\tconst parameterModel = { ...this.state.parameterModel };\r\n\t\tparameterModel[name] = newValue;\r\n\t\tthis.setState({ parameterModel });\r\n\t}\r\n\r\n\tHandleChangeGridColumns(name, newValue) {\r\n\t\tconst gridColumnsModel = { ...this.state.gridColumnsModel };\r\n\t\tgridColumnsModel[name] = newValue;\r\n\t\tthis.setState({ gridColumnsModel });\r\n\t}\r\n\r\n\tHandleChangeButton(name, newValue) {\r\n\t\tconst buttonModel = { ...this.state.buttonModel };\r\n\t\tbuttonModel[name] = newValue;\r\n\t\tthis.setState({ buttonModel });\r\n\t}\r\n\r\n\tHandleBooleanChange(name, value) {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = JSON.parse(value);\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleBooleanChangeInput(name, value) {\r\n\t\tconst inputModel = { ...this.state.inputModel };\r\n\t\tinputModel[name] = JSON.parse(value);\r\n\t\tthis.setState({ inputModel });\r\n\t}\r\n\r\n\tHandleBooleanChangeParam(name, value) {\r\n\t\tconst parameterModel = { ...this.state.parameterModel };\r\n\t\tparameterModel[name] = JSON.parse(value);\r\n\t\tthis.setState({ parameterModel });\r\n\t}\r\n\r\n\tHandleBooleanChangeButton(name, value) {\r\n\t\tconst buttonModel = { ...this.state.buttonModel };\r\n\t\tbuttonModel[name] = JSON.parse(value);\r\n\t\tthis.setState({ buttonModel });\r\n\t}\r\n\r\n\tHandleSubmit() {\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tconst { Id, Code, model } = this.state;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Screen/InsertOrUpdate\",\r\n\t\t\t{\r\n\t\t\t\tId: Id,\r\n\t\t\t\tCode: Code,\r\n\t\t\t\tData: JSON.stringify(model, null, 4)\r\n\t\t\t},\r\n\t\t\tthis.SuccessSubmitCallback,\r\n\t\t\tthis.ErrorSubmitCallback\r\n\t\t);\r\n\t}\r\n\r\n\tSuccessSubmitCallback(responseData) {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.ShowMessage(\"success\", \"Operation is successfully!\");\r\n\t}\r\n\r\n\tErrorSubmitCallback(error) {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t}\r\n\r\n\tAddInclude() {\r\n\t\tconst { model } = this.state;\r\n\t\tconst includeModel = { ...this.state.includeModel };\r\n\r\n\t\tif (!model.Include.includes(includeModel.Text))\r\n\t\t\tmodel.Include.push(includeModel.Text);\r\n\t\tthis.setState({ model, includeModel: {} });\r\n\t}\r\n\r\n\tDeleteInclude() {\r\n\t\tconst { model, includeModel } = this.state;\r\n\t\tconst currentIndex = model.Include.findIndex(x => x == includeModel.Text);\r\n\r\n\t\tif (currentIndex > -1) {\r\n\t\t\tmodel.Include.splice(currentIndex, 1);\r\n\t\t}\r\n\t\tthis.setState({ model, includeModel: {} });\r\n\t}\r\n\r\n\tAddInput() {\r\n\t\tconst { model } = this.state;\r\n\t\tconst inputModel = { ...this.state.inputModel };\r\n\r\n\t\tconst input = model.Inputs.find(x => x.Name == inputModel.Name);\r\n\t\tif (input) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Invalid\", \"The Name of the inputs must be unique!\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tmodel.Inputs.push(inputModel);\r\n\t\tthis.setState({ model, inputModel: {} });\r\n\t}\r\n\r\n\tUpdateInput() {\r\n\t\tconst { model, inputModel } = this.state;\r\n\t\tconst currentIndex = model.Inputs.findIndex(x => x.Name == inputModel.Name);\r\n\r\n\t\tif (currentIndex > -1) {\r\n\t\t\tmodel.Inputs[currentIndex] = inputModel;\r\n\t\t}\r\n\t\tthis.setState({ model, inputModel: {} });\r\n\t}\r\n\r\n\tDeleteInput() {\r\n\t\tconst { model, inputModel } = this.state;\r\n\t\tconst currentIndex = model.Inputs.findIndex(x => x.Name == inputModel.Name);\r\n\r\n\t\tif (currentIndex > -1) {\r\n\t\t\tmodel.Inputs.splice(currentIndex, 1);\r\n\t\t}\r\n\t\tthis.setState({ model, inputModel: {} });\r\n\t}\r\n\r\n\tClearInputs() {\r\n\t\tthis.setState({ inputModel: {} });\r\n\t}\r\n\r\n\tSelectInputModel(inputModel) {\r\n\t\tthis.setState({ inputModel });\r\n\t}\r\n\r\n\tAddParameter() {\r\n\t\tlet { model, inputModel } = this.state;\r\n\t\tconst parameterModel = { ...this.state.parameterModel };\r\n\t\tvar param = { [parameterModel.Name]: parameterModel.Value };\r\n\t\tif (parameterModel.Inner)\r\n\t\t\tparam = { [parameterModel.Key]: param };\r\n\r\n\t\tvar tempParameters = { ...inputModel.Parameter, ...param };\r\n\r\n\t\tconst currentIndex = model.Inputs.findIndex(x => x.Name == inputModel.Name);\r\n\r\n\t\tif (currentIndex === -1) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"You must add the input first!\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tinputModel.Parameter = tempParameters;\r\n\t\tthis.setState({ tempParameters: {}, parameterModel: {} });\r\n\t\tthis.ShowMessage(\"success\", \"Info\", \"Added the parameter to input.\");\r\n\t}\r\n\r\n\tDeleteParameter(paramModel) {\r\n\t\tlet { model } = this.state;\r\n\t\tlet isDeleted = false;\r\n\r\n\t\tfor (let obj of model.Inputs.filter(input => { return input.Parameter !== undefined; })) {\r\n\t\t\tObject.entries(obj.Parameter).forEach(entry => {\r\n\t\t\t\tif (entry[0] === paramModel[0] && entry[1] === paramModel[1]) {\r\n\t\t\t\t\tdelete obj.Parameter[paramModel[0]];\r\n\t\t\t\t\tisDeleted = true;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tif (isDeleted) {\r\n\t\t\tthis.setState({ model, parameterModel: {} });\r\n\t\t\tthis.ShowMessage(\"success\", \"Info\", \"Removed the parameter\");\r\n\t\t}\r\n\t}\r\n\r\n\tAddGridColumns() {\r\n\t\tconst { model } = this.state;\r\n\t\tconst gridColumnsModel = { ...this.state.gridColumnsModel };\r\n\t\tmodel.GridColumns.push(gridColumnsModel);\r\n\t\tthis.setState({ model, gridColumnsModel: {} });\r\n\t}\r\n\r\n\tDeleteGridColumns() {\r\n\t\tconst { model, gridColumnsModel } = this.state;\r\n\t\tconst currentIndex = model.GridColumns.findIndex(x => x == gridColumnsModel);\r\n\r\n\t\tif (currentIndex > -1) {\r\n\t\t\tmodel.GridColumns.splice(currentIndex, 1);\r\n\t\t}\r\n\t\tthis.setState({ model, gridColumnsModel: {} });\r\n\t}\r\n\r\n\tSelectGridColumn(gridColumnsModel) {\r\n\t\tthis.setState({ gridColumnsModel });\r\n\t}\r\n\r\n\tAddButton() {\r\n\t\tconst { model } = this.state;\r\n\t\tconst buttonModel = { ...this.state.buttonModel };\r\n\t\tmodel.ButtonOverrides.push(buttonModel);\r\n\t\tthis.setState({ model, buttonModel: {} });\r\n\t}\r\n\r\n\tUpdateButton() {\r\n\t\tconst { model, buttonModel } = this.state;\r\n\t\tconst currentIndex = model.ButtonOverrides.findIndex(x => x.Code == buttonModel.Code);\r\n\r\n\t\tif (currentIndex > -1) {\r\n\t\t\tmodel.ButtonOverrides[currentIndex] = buttonModel;\r\n\t\t}\r\n\t\tthis.setState({ model, buttonModel: {} });\r\n\t}\r\n\r\n\tDeleteButton() {\r\n\t\tconst { model, buttonModel } = this.state;\r\n\t\tconst currentIndex = model.ButtonOverrides.findIndex(x => x == buttonModel);\r\n\r\n\t\tif (currentIndex > -1) {\r\n\t\t\tmodel.ButtonOverrides.splice(currentIndex, 1);\r\n\t\t}\r\n\t\tthis.setState({ model, buttonModel: {} });\r\n\t}\r\n\r\n\tClearButtons() {\r\n\t\tthis.setState({ buttonModel: {} });\r\n\t}\r\n\r\n\tSelectButton(buttonModel) {\r\n\t\tthis.setState({ buttonModel });\r\n\t}\r\n\r\n\tIsValidJson(json) {\r\n\t\ttry {\r\n\t\t\tJSON.parse(json);\r\n\t\t\treturn true;\r\n\t\t} catch (e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}\r\n\r\n\tValidate() {\r\n\t\tconst { model, Code, vModel } = this.state;\r\n\r\n\t\tif (Code.length !== 6) {\r\n\t\t\tvModel.Code = true;\r\n\t\t\tthis.ShowMessage(\"warning\", \"Code not valid\", \"The Screen Code must be 6 characters!\");\r\n\t\t\treturn false;\r\n\t\t} else { vModel.Code = false; }\r\n\r\n\t\tif (!model.HeaderText) {\r\n\t\t\tvModel.HeaderText = true;\r\n\t\t\tthis.ShowMessage(\"warning\", \"Header Text not selected\", \"Select Header Text Year to continue.\");\r\n\t\t\treturn false;\r\n\t\t} else { vModel.HeaderText = false; }\r\n\r\n\t\tif (!model.LeftTitle) {\r\n\t\t\tvModel.LeftTitle = true;\r\n\t\t\tthis.ShowMessage(\"warning\", \"Left Title not selected\", \"Select Left Title Year to continue.\");\r\n\t\t\treturn false;\r\n\t\t} else { vModel.LeftTitle = false; }\r\n\r\n\t\tif (!model.CenterTitle) {\r\n\t\t\tvModel.CenterTitle = true;\r\n\t\t\tthis.ShowMessage(\"warning\", \"Center Title not selected\", \"Select Center Title Year to continue.\");\r\n\t\t\treturn false;\r\n\t\t} else { vModel.CenterTitle = false; }\r\n\t\tthis.setState({ vModel });\r\n\t\treturn true;\r\n\t}\r\n\r\n\tShowPreview(isShown = true) {\r\n\t\tif (isShown)\r\n\t\t\tthis.setState({ isPreviewDialogOpen: true });\r\n\t\telse\r\n\t\t\tthis.setState({ isPreviewDialogOpen: false });\r\n\t}\r\n\r\n\tShowMessage(type, title, message) {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode(type, title, message) {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, inputModel, parameterModel, includeModel, gridColumnsModel, buttonModel, isLoading, isPreviewDialogOpen } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t model, FillDataFromModel: model => this.setState({ model }), ValidationFunction: this.Validate },\r\n\t\t\t\t\t{ Code: \"Preview\", OnClick: this.ShowPreview, Disabled: Disabled || model === this.initialModel },\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\r\n\t\t\t\t this.ShowPreview(false)} TransitionComponent={Transition}>\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tmodel.Inputs.map((view, i) =>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\t\t\t\t\tHeader: obj.Title,\r\n\t\t\t\t\t\t\t\t\t\t\taccessor: obj.ColumnName\r\n\t\t\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\tDocumentTitle={model.CenterTitle}\r\n\t\t\t\t\t\t\t\t\tShowPagination={model.ShowPagination}\r\n\t\t\t\t\t\t\t\t\tHideButton={model.DocumentButtons === false}\r\n\t\t\t\t\t\t\t\t\tSorted={model.Sorted && model.Sorted.map(obj => {\r\n\t\t\t\t\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\t\t\t\t\tid: obj.ColumnName || obj.id,\r\n\t\t\t\t\t\t\t\t\t\t\tdesc: obj.Desc || obj.desc\r\n\t\t\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t `${d.Id} - ${d.Code}`}\r\n\t\t\t\t\t\t\t\t\tValue={this.state.Id}\r\n\t\t\t\t\t\t\t\t\tValueChanged={this.HandleChangeScreenSelect} />\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\ttabButton: \"Include\",\r\n\t\t\t\t\t\t\t\t\ttabContent: (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\ttabButton: \"Input\",\r\n\t\t\t\t\t\t\t\t\ttabContent: (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\ttabButton: \"Grid\",\r\n\t\t\t\t\t\t\t\t\ttabContent: (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\ttabButton: \"Button\",\r\n\t\t\t\t\t\t\t\t\ttabContent: (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nGenericScreenDefinition.propTypes = {\r\n\tclasses: PropTypes.object.isRequired\r\n};\r\n\r\nexport default withArtifex(GenericScreenDefinition, {});\r\n","import { Dialog, DialogContent } from \"@material-ui/core\";\r\nimport CardMedia from \"@material-ui/core/CardMedia\";\r\nimport loginPageStyle from \"assets/jss/material-dashboard-pro-react/views/loginPageStyle.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withRedux } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport Recaptcha from \"react-recaptcha\";\r\nimport { UserConstants } from \"store\";\r\nimport { GenericAlert, GenericCircularProgress, GenericEmailInput, GenericTextInput, GenericNumberInput } from \"views/Components/Generic\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nclass InteracConfirmLogin extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tinitialize: false,\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t\tcaptchaLoaded: false,\r\n\t\t\tmodel: {\r\n\t\t\t\tEmail: \"\",\r\n\t\t\t\tPassword: \"\",\r\n\t\t\t\tCustomerNumber: \"\",\r\n\t\t\t\tIsCaptchaVerified: false\r\n\t\t\t}\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\t// var user = ClientHelper.GetUser();\r\n\t\t// if (user != null) {\r\n\t\t// \tthis.props.history.replace(\"/\");\r\n\t\t// }\r\n\r\n\t\tthis.setState({ initialize: true });\r\n\t}\r\n\r\n\tRecaptchaVerify = (response) => {\r\n\t\tif (response) {\r\n\t\t\tthis.handleChange(\"IsCaptchaVerified\", true);\r\n\t\t}\r\n\t}\r\n\tRecaptchaLoadCallBack = () => {\r\n\t\tthis.setState({ captchaLoaded: true });\r\n\r\n\t}\r\n\thandleChange = (name, newValue) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.model || {};\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tPerformLogin = () => {\r\n\t\tvar ErrorList = [];\r\n\t\tconst { Email, Password, IsCaptchaVerified, CustomerNumber } = this.state.model;\r\n\r\n\t\tif (!Email || !Email.trim()) {\r\n\t\t\tErrorList.push(\"Email cannot be null.\");\r\n\t\t}\r\n\r\n\t\tif (!CustomerNumber || !CustomerNumber.trim()) {\r\n\t\t\tErrorList.push(\"Customer Number cannot be null.\");\r\n\t\t}\r\n\t\tif (!Password || !Password.trim()) {\r\n\t\t\tErrorList.push(\"Password cannot be null.\");\r\n\t\t}\r\n\r\n\t\tif (!IsCaptchaVerified) {\r\n\t\t\tErrorList.push(\"Captcha cannot be verified.\");\r\n\t\t}\r\n\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/InteracConfirmPayment/Login\",\r\n\t\t\t{\r\n\t\t\t\tEmail,\r\n\t\t\t\tPassword,\r\n\t\t\t\tCustomerNumber\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tconst user = {\r\n\t\t\t\t\tEmail: this.state.model.Email,\r\n\t\t\t\t\tCustomerNumber: this.state.model.CustomerNumber,\r\n\t\t\t\t\tSessionId: responseData.DCBankAccessToken,\r\n\t\t\t\t\tForceTwoFactorAuth: responseData.ForceTwoFactorAuth,\r\n\t\t\t\t\tSessionStatus: responseData.SessionStatus,\r\n\t\t\t\t\tMustChangePwd: responseData.MustChangePwd,\r\n\t\t\t\t\tCanBeClient: responseData.CanBeClient\r\n\t\t\t\t};\r\n\r\n\t\t\t\t//Proxy SessionId kullaniyor GetUserByEmail operation icin\r\n\t\t\t\tlocalStorage.setItem(\"user\", JSON.stringify({ SessionId: user.SessionId }));\r\n\r\n\t\t\t\tconst { dispatch } = this.props;\r\n\t\t\t\tdispatch({ type: UserConstants.LOGIN_SUCCESS, user });\r\n\r\n\t\t\t\tthis.PerformGetUser(user.SessionId, user.CanBeClient, user.ForceTwoFactorAuth);\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tPerformGetUser = (SessionId, CanBeClient, ForceTwoFactorAuth) => {\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/User/GetUserByEmailWithClientInfo\",\r\n\t\t\t{ Email: this.state.model.Email },\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tvar userInfo = responseData.User;\r\n\t\t\t\tuserInfo.SessionId = SessionId;\r\n\t\t\t\tuserInfo.CanBeClient = CanBeClient;\r\n\r\n\t\t\t\tlocalStorage.setItem(\"user\", JSON.stringify(userInfo));\r\n\r\n\t\t\t\tif (userInfo.User == undefined || ForceTwoFactorAuth) {\r\n\t\t\t\t\tvar data = {};\r\n\t\t\t\t\tdata.Url = window.location.href;\r\n\t\t\t\t\tdata.pID = this.GetParameterByName(\"pID\", data.Url);\r\n\t\t\t\t\tdata.rID = this.GetParameterByName(\"rID\", data.Url);\r\n\t\t\t\t\tdata.src = this.GetParameterByName(\"src\", data.Url);\r\n\t\t\t\t\tdata.fiID = this.GetParameterByName(\"fiID\", data.Url);\r\n\t\t\t\t\tdata.cuID = this.GetParameterByName(\"cuID\", data.Url);\r\n\t\t\t\t\tdata.lang = this.GetParameterByName(\"lang\", data.Url);\r\n\r\n\t\t\t\t\tif (data.pID != null && data.pID != \"\") { // money send\r\n\t\t\t\t\t\tdata.IsValidUrl = true;\r\n\t\t\t\t\t\tdata.IsMoneySend = true;\r\n\t\t\t\t\t\tdata.IsMoneyRequest = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (data.rID != null && data.rID != \"\") { // money request\r\n\t\t\t\t\t\tdata.IsValidUrl = true;\r\n\t\t\t\t\t\tdata.IsMoneySend = false;\r\n\t\t\t\t\t\tdata.IsMoneyRequest = false;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (data.pID != null && data.rID != null) {\r\n\t\t\t\t\t\tdata.IsValidUrl = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tconsole.log(data);\r\n\r\n\t\t\t\t\tRouteHelper.Push(this.props.history, \"/InteracConfirm/Otp\", \"InteracData\", data);\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.props.history.replace(\"/InteracConfirm\");\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tGetParameterByName = (name, url) => {\r\n\t\tname = name.replace(/[\\[\\]]/g, '\\\\$&');\r\n\t\tvar regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'),\r\n\t\t\tresults = regex.exec(url);\r\n\t\tif (!results) return null;\r\n\t\tif (!results[2]) return '';\r\n\t\treturn decodeURIComponent(results[2].replace(/\\+/g, ' '));\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\t// type:-success->warning->info->error\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\thandleKeyPress = (e) => {\r\n\t\tif (e.key == \"Enter\") {\r\n\t\t\tthis.PerformLogin();\r\n\t\t}\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes } = this.props;\r\n\t\tconst { model, isLoading, alert, captchaLoaded, initialize } = this.state;\r\n\t\tconst logo = require(\"assets/img/\" + window.LoginLogo);\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nInteracConfirmLogin.propTypes = {\r\n\tclasses: PropTypes.object.isRequired\r\n};\r\n\r\nexport default withRedux(InteracConfirmLogin, loginPageStyle);","import { Dialog, DialogContent, DialogTitle, Grid } from \"@material-ui/core\";\r\nimport CardMedia from \"@material-ui/core/CardMedia\";\r\nimport FormControlLabel from \"@material-ui/core/FormControlLabel\";\r\nimport Radio from \"@material-ui/core/Radio\";\r\nimport loginPageStyle from \"assets/jss/material-dashboard-pro-react/views/loginPageStyle.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardFooter from \"components/Card/CardFooter.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport Black from \"components/Typography/Black.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport { Link } from \"react-router-dom\";\r\nimport { GenericAlert, GenericDialog, GenericDialogActions, GenericLabel, GenericNumberInput } from \"views/Components/Generic\";\r\nimport { AuthenticationMethod } from \"views/Constants/Constant\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nclass InteracConfirmOtp extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t\tisShowQRCode: false,\r\n\t\t\tmodel: {\r\n\t\t\t\tVerificationCode: \"\"\r\n\t\t\t},\r\n\t\t\tauthMethod: null,\r\n\t\t\trememberAuthValue: true,\r\n\t\t\tQRCode: \"\",\r\n\t\t\tOtpId: 0\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconsole.log(RouteHelper.Read(\"InteracData\"));\r\n\t\tvar user = ClientHelper.GetUser();\r\n\t\tif (user && user.AuthenticationMethod) {\r\n\t\t\tthis.setState({ authMethod: user.AuthenticationMethod.ParameterValue });\r\n\t\t\tif (user.AuthenticationMethod.ParameterValue == AuthenticationMethod.Twilio) {\r\n\t\t\t\tthis.SendSMSOTP();\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (!user) {\r\n\t\t\tRouteHelper.Push(this.props.history, \"/InteracConfirm/Login\");\r\n\t\t}\r\n\t}\r\n\r\n\tValueChanged = (name, newValue) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\r\n\r\n\tHandleChangeAuthMethod = (event) => {\r\n\t\tthis.setState({ authMethod: event.target.value });\r\n\t\tif (event.target.value === AuthenticationMethod.Google) {\r\n\t\t\t// this.GetQRCode();\r\n\t\t} else {\r\n\t\t\tthis.SendSMSOTP();\r\n\t\t}\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model, authMethod } = this.state;\r\n\r\n\t\tif (!authMethod) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Authentication Method is not selected\", \"Select Authentication Method to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!model.VerificationCode) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Verification Code is empty\", \"Enter the Verification Code to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tRouting = () => {\r\n\t\tvar user = ClientHelper.GetUser();\r\n\t\tif (user == null)\r\n\t\t\tRouteHelper.Push(this.props.history, \"/InteracConfirm/Login\");\r\n\t\telse {\r\n\t\t\tRouteHelper.Push(this.props.history, \"/InteracConfirm/Process\");\r\n\t\t}\r\n\t}\r\n\r\n\tGetQRCode = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/InteracConfirmPayment/GetAuthenticatorRegisterLink\",\r\n\t\t\t{},\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.AuthenticatorQrLink !== null) {\r\n\t\t\t\t\tthis.setState({ QRCode: responseData.AuthenticatorQrLink, isShowQRCode: true });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tSendSMSOTP = () => {\r\n\t\tvar user = ClientHelper.GetUser();\r\n\t\tif (user == null) {\r\n\t\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/InteracConfirmPayment/SendSmsOtp\",\r\n\t\t\t{\r\n\t\t\t\tMethodName: \"Login\",\r\n\t\t\t\tUserId: user ? user.Id : null,\r\n\t\t\t\tOrganizationUniqueId: window.OrganizationUniqueId\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ OtpId: responseData.OtpId });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tVerify = () => {\r\n\t\tconst { authMethod } = this.state;\r\n\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tif (authMethod == AuthenticationMethod.Google) {\r\n\t\t\tthis.AuthenticatorVerify();\r\n\t\t} else {\r\n\t\t\tthis.TwilioVerify();\r\n\t\t}\r\n\t}\r\n\r\n\tAuthenticatorVerify = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/InteracConfirmPayment/VerifyAuthenticatorOtp\",\r\n\t\t\t{\r\n\t\t\t\tCode: this.state.model.VerificationCode,\r\n\t\t\t\tOrganizationUniqueId: window.OrganizationUniqueId\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tvar user = ClientHelper.GetUser();\r\n\t\t\t\tuser.SessionId = responseData.DCBankAccessToken;\r\n\t\t\t\tlocalStorage.setItem(\"user\", JSON.stringify(user));\r\n\r\n\t\t\t\tthis.Routing();\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tTwilioVerify = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/InteracConfirmPayment/VerifySmsOtp\", {\r\n\t\t\tOtpId: this.state.OtpId,\r\n\t\t\tOtp: this.state.model.VerificationCode,\r\n\t\t\tOtpMethod: \"Login\"\r\n\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.Routing();\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\t// type:-success->warning->info->error\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\tHandleKeyPress = (e) => {\r\n\t\tif (e.key == \"Enter\") {\r\n\t\t\tthis.Verify();\r\n\t\t}\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes } = this.props;\r\n\t\tconst { model, isLoading, alert, isShowQRCode, QRCode } = this.state;\r\n\r\n\t\tconst logo = require(\"assets/img/\" + window.OtpLogo);\r\n\t\tconst googleLogo = require(\"assets/img/\" + window.OtpGoogleLogo);\r\n\t\tconst twilioLogo = require(\"assets/img/\" + window.OtpTwilio);\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t

To use an authenticator app go through the following steps:

\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
  1. \r\n\t\t\t\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t\t\t\t\tDownload a two-factor authenticator app like Microsoft Authenticator for\r\n\t\t\t\t\t\t\t\t\t\t Windows Phone,\r\n\t\t\t\t\t\t\t\t\t\t Android and\r\n\t\t\t\t\t\t\t\t\t\t iOS or\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGoogle Authenticator for\r\n\t\t\t\t\t\t\t\t\t\t Android and\r\n\t\t\t\t\t\t\t\t\t\t iOS.\r\n\t\t\t\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t\t\t
  2. \r\n\t\t\t\t\t\t\t\t
  3. \r\n\t\t\t\t\t\t\t\t\t

    Scan the QR Code into your two factor authenticator app. Spaces and casing do not matter.

    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
  4. \r\n\t\t\t\t\t\t\t\t
  5. \r\n\t\t\t\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t\t\t\t\tOnce you have scanned the QR code or input the key above, your two factor authentication app will provide you\r\n\t\t\t\t\t\t\t\t\t\twith a unique code. Enter the code in the confirmation box below.\r\n\t\t\t\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t\t\t
  6. \r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t{QRCode.length > 0 &&\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\tSelect Your 2FA Authentication Method\r\n\t\t\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t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= {\r\n\tdivBorder: {\r\n\t\tmarginTop: 20,\r\n\t\twidth: \"65%\",\r\n\t\tborderRadius: \"5px 5px 5px 5px\",\r\n\t\tborder: \"1px solid #000000\"\r\n\t},\r\n\tborder: {\r\n\t\tborderRadius: \"5px 5px 5px 5px\",\r\n\t\tborder: \"1px solid #000000\"\r\n\t}\r\n\r\n};\r\nInteracConfirmOtp.propTypes = {\r\n\tclasses: PropTypes.object.isRequired\r\n};\r\n\r\nexport default withArtifex(InteracConfirmOtp, loginPageStyle);","import { Dialog, DialogContent } from \"@material-ui/core\";\r\nimport CardMedia from \"@material-ui/core/CardMedia\";\r\nimport loginPageStyle from \"assets/jss/material-dashboard-pro-react/views/loginPageStyle.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport Recaptcha from \"react-recaptcha\";\r\nimport { UserConstants } from \"store\";\r\nimport { GenericAlert, GenericCircularProgress, GenericEmailInput, GenericTextInput, GenericTitle, GenericLabel, GenericSelectInput, GenericNumberInput } from \"views/Components/Generic\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nclass InteracConfirmPaymentOperation extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t\tmodel: {}\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tvar user = ClientHelper.GetUser();\r\n\t\tif (!user) {\r\n\t\t\tRouteHelper.Push(this.props.history, \"/InteracConfirm/Login\", \"InteracData\", {});\r\n\t\t}\r\n\r\n\t\tvar data = RouteHelper.Read(\"InteracData\");\r\n\t\tthis.setState({ model: data || {} });\r\n\t\tconsole.log(data);\r\n\r\n\r\n\t\tthis.FetchRequest();\r\n\t}\r\n\r\n\t\r\n\tSubmit = () => {\r\n\r\n\t\tif (this.state.model == null) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", \"Account must be selected !\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (this.state.model.AccountId == null || this.state.model.AccountId == 0) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", \"Account must be selected !\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar data = RouteHelper.Read(\"InteracData\");\r\n\t\tdata.AccountId = this.state.model.AccountId;\r\n\r\n\t\tconsole.log(data);\r\n\t\tRouteHelper.Push(this.props.history, \"/InteracConfirm/Review\", \"InteracData\", data);\r\n\t}\r\n\r\n\r\n\tFetchRequest = () => {\r\n\t\tvar data = RouteHelper.Read(\"InteracData\");\r\n\t\tif (data == null) {\r\n\t\t\tconsole.log(\"InteracData null\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (!data.IsValidUrl) {\r\n\t\t\tconsole.log(\"InteracData URL not VALID\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (data.IsMoneySend) {\r\n\t\t\tthis.FetchGetIncomingTransfers();\r\n\t\t}\r\n\t\tif (data.IsMoneyRequest) {\r\n\r\n\t\t}\r\n\t}\r\n\r\n\tFetchGetIncomingTransfers = (model) => {\r\n\t\tvar data = RouteHelper.Read(\"InteracData\");\r\n\t\tvar temp = {};\r\n\t\ttemp.participantUserId = data.pID;\r\n\t\ttemp.transferReferenceNumber = data.src;\r\n\r\n\t\tconsole.log(\"GetIncomingTransfers Request\");\r\n\t\tconsole.log(temp);\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/InteracConfirmPayment/GetIncomingTransfers\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tconsole.log(\"GetIncomingTransfers\");\r\n\t\t\t\tconsole.log(responseData);\r\n\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tvar data = RouteHelper.Read(\"InteracData\");\r\n\t\t\t\t\tdata.GetIncomingTransfersResponse = responseData.Item;\r\n\t\t\t\t\tlocalStorage.setItem(\"InteracData\", JSON.stringify(data));\r\n\r\n\t\t\t\t\tthis.FetchAuthenticateTransfer();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tconsole.log(\"GetIncomingTransfers response null\");\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tFetchAuthenticateTransfer = () => {\r\n\t\tvar data = RouteHelper.Read(\"InteracData\");\r\n\t\tvar temp = {};\r\n\t\ttemp.participantUserId = data.pID;\r\n\t\ttemp.transferReferenceNumber = data.src;\r\n\t\ttemp.securityAnswer = \"DC\";\r\n\r\n\t\tconsole.log(\"AuthenticateTransfer Request\");\r\n\t\tconsole.log(temp);\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/InteracConfirmPayment/AuthenticateTransfer\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tconsole.log(\"AuthenticateTransfer\");\r\n\t\t\t\tconsole.log(responseData);\r\n\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tvar data = RouteHelper.Read(\"InteracData\");\r\n\t\t\t\t\tdata.AuthenticateTransferResponse = responseData.Item;\r\n\t\t\t\t\tlocalStorage.setItem(\"InteracData\", JSON.stringify(data));\r\n\t\t\t\t} else {\r\n\t\t\t\t\tconsole.log(\"AuthenticateTransfer response null\");\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tFetchDeclineTransfer = () => {\r\n\t\tvar data = RouteHelper.Read(\"InteracData\");\r\n\t\tvar temp = {};\r\n\t\ttemp.participantUserId = data.pID;\r\n\t\ttemp.transferReferenceNumber = data.src;\r\n\r\n\t\ttemp.declineReason = \"Reject from DC\";\r\n\r\n\t\tconsole.log(\"DeclineTransfer Request\");\r\n\t\tconsole.log(temp);\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/InteracConfirmPayment/DeclineTransfer\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tconsole.log(\"DeclineTransfer\");\r\n\t\t\t\tconsole.log(responseData);\r\n\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tvar data = RouteHelper.Read(\"InteracData\");\r\n\t\t\t\t\tdata.DeclineTransferResponse = responseData.Item;\r\n\t\t\t\t\tlocalStorage.setItem(\"InteracData\", JSON.stringify(data));\r\n\t\t\t\t} else {\r\n\t\t\t\t\tconsole.log(\"DeclineTransfer response null\");\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\thandleChange = (name, newValue) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.model || {};\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\t// type:-success->warning->info->error\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\tHandleKeyPress = (e) => {\r\n\t\tif (e.key == \"Enter\") {\r\n\t\t\tthis.Submit();\r\n\t\t}\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes } = this.props;\r\n\t\tconst { model, isLoading, alert } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nInteracConfirmPaymentOperation.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(InteracConfirmPaymentOperation, loginPageStyle);","import { Dialog, DialogContent } from \"@material-ui/core\";\r\nimport CardMedia from \"@material-ui/core/CardMedia\";\r\nimport loginPageStyle from \"assets/jss/material-dashboard-pro-react/views/loginPageStyle.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport Recaptcha from \"react-recaptcha\";\r\nimport { UserConstants } from \"store\";\r\nimport { GenericAlert, GenericCircularProgress, GenericEmailInput, GenericTextInput, GenericTitle, GenericLabel, GenericSelectInput, GenericNumberInput } from \"views/Components/Generic\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nclass InteracConfirmPaymentResult extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t\tmodel: {}\r\n\t\t};\r\n\r\n\t\tthis.ParameterMaxLength100 = { maxLength: 100 };\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tvar data = RouteHelper.Read(\"InteracData\");\r\n\t\tthis.setState({ model: data || {} });\r\n\t\tconsole.log(data);\r\n\t}\r\n\r\n\r\n\tLogOutUser = () => {\r\n\t\tthrow new Error(\"Method not implemented.\");\r\n\t}\r\n\thandleChange = (name, newValue) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.model || {};\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\r\n\trender() {\r\n\t\tconst { classes } = this.props;\r\n\t\tconst { model, isLoading, alert } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{alert}\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nInteracConfirmPaymentResult.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(InteracConfirmPaymentResult, loginPageStyle);","import { Dialog, DialogContent } from \"@material-ui/core\";\r\nimport CardMedia from \"@material-ui/core/CardMedia\";\r\nimport loginPageStyle from \"assets/jss/material-dashboard-pro-react/views/loginPageStyle.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport Recaptcha from \"react-recaptcha\";\r\nimport { UserConstants } from \"store\";\r\nimport { GenericAlert, GenericCircularProgress, GenericEmailInput, GenericTextInput, GenericTitle, GenericLabel, GenericSelectInput, GenericNumberInput } from \"views/Components/Generic\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nclass InteracConfirmPaymentReview extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t\tmodel: {}\r\n\t\t};\r\n\r\n\t\tthis.ParameterMaxLength100 = { maxLength: 100 };\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tvar data = RouteHelper.Read(\"InteracData\");\r\n\t\tthis.setState({ model: data || {} });\r\n\t\tconsole.log(data);\r\n\t}\r\n\r\n\tSubmit = () => {\r\n\t\tvar data = RouteHelper.Read(\"InteracData\");\r\n\t\tdata.Message = this.state.model.Message;\r\n\r\n\r\n\t\tif (this.state.model.Message == null || this.state.model.Message == \"\") {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", \"Account must be selected !\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t//todo\r\n\r\n\t\tconsole.log(data);\r\n\t\tRouteHelper.Push(this.props.history, \"/InteracConfirm/Result\", \"InteracData\", data);\r\n\t}\r\n\r\n\tFetchCompleteTransfer = () => {\r\n\t\tvar data = RouteHelper.Read(\"InteracData\");\r\n\t\tvar temp = {};\r\n\t\ttemp.participantUserId = data.pID;\r\n\t\ttemp.transferReferenceNumber = data.src;\r\n\t\r\n\t\t\r\n\r\n\t\tconsole.log(\"CompleteTransfer Request\");\r\n\t\tconsole.log(JSON.parse(temp));\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/InteracConfirmPayment/CompleteTransfer\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tconsole.log(\"CompleteTransfer\");\r\n\t\t\t\tconsole.log(JSON.parse(responseData));\r\n\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tvar data = RouteHelper.Read(\"InteracData\");\r\n\t\t\t\t\tdata.DeclineTransferResponse = responseData.Item;\r\n\t\t\t\t\tlocalStorage.setItem(\"InteracData\", JSON.stringify(data));\r\n\t\t\t\t} else {\r\n\t\t\t\t\tconsole.log(\"CompleteTransfer response null\");\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tCancel = () =>{\r\n\t\tRouteHelper.Push(this.props.history, \"/InteracConfirm/Process\");\r\n\t}\r\n\r\n\thandleChange = (name, newValue) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.model || {};\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\t// type:-success->warning->info->error\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes } = this.props;\r\n\t\tconst { model, isLoading, alert } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{alert}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nInteracConfirmPaymentReview.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(InteracConfirmPaymentReview, loginPageStyle);","import { withStyles } from \"@material-ui/core/styles\";\r\nimport ErrorBoundary from \"error/ErrorBoundary\";\r\nimport React from \"react\";\r\nexport default function withArtifex(HocComponent, styles) {\r\n\tfunction Hoc(props) {\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n\r\n\treturn withStyles(styles)(Hoc);\r\n}","import GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport { Proxy, withArtifex } from \"core\";\r\n\r\nclass InteracConfirmSecurityQuestion extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\r\n\t\t};\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes } = this.props;\r\n\t\tconst { model } = this.state;\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nInteracConfirmSecurityQuestion.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(InteracConfirmSecurityQuestion, {});","import { DialogContent, DialogTitle, IconButton } from \"@material-ui/core\";\r\nimport createEtransferStyle from \"assets/jss/material-dashboard-pro-react/views/createEtransferStyle.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport AccountLimitToolbar from \"views/Components/AccountLimitToolbar.jsx\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericCheckInput, GenericDateInput, GenericDialog, GenericDialogActions, GenericGrid, GenericIcon, GenericLabel, GenericNumberInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent.jsx\";\r\nimport { ClientType, ETransferDayOfMonthTypes, EtransferEntryType, EtransferFrequencyCodes, EtransferPeriodCodes, EtransferTransactionTypes, MenuCodes, Portals, ProgramCodes, EtransferType, GridColumnType, DcbETransferType } from \"views/Constants/Constant\";\r\nimport CreateEtransferFromFile from \"./CreateEtransferFromFile\";\r\nimport CreateEtransferIndividual from \"./CreateEtransferIndividual\";\r\nimport CreateEtransferRecurring from \"./CreateEtransferRecurring\";\r\n\r\nclass CreateEtransfer extends Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.isClient = ClientHelper.IsClient();\r\n\t\tthis.uniqueClientId = ClientHelper.GetClientRowId();\r\n\r\n\t\tthis.defaultModel = {\r\n\t\t\tEntryType: \"\",\r\n\t\t\tEntryCode: \"\",\r\n\t\t\tEtransferType: \"\",\r\n\t\t\tIsUpdate: false,\r\n\t\t\tUniqueClientId: this.uniqueClientId\r\n\t\t};\r\n\r\n\t\tthis.defaultFromFileModel = {\r\n\t\t\tAutoApprove: false,\r\n\t\t\tFileName: \"\",\r\n\t\t\tFile: null\r\n\t\t};\r\n\t\tthis.defaultIndividualModel = {\r\n\t\t\tId: null,\r\n\t\t\tPayeeId: \"\",\r\n\t\t\tPayeeName: \"\",\r\n\t\t\tPayeeEmail: \"\",\r\n\t\t\tNewClient: false,\r\n\t\t\tAmount: null,\r\n\t\t\tDateOfFunds: DateHelper.GetDateTime(),\r\n\t\t\tMoneyReqExpDate: DateHelper.GetDateTime().add(9,\"days\"),\r\n\t\t\tTransferMemo: \"\",\r\n\t\t\tSecurityQuestion: 0,\r\n\t\t\tSecurityQuestionText: \"\",\r\n\t\t\tSecurityQuestionAnswer: \"\",\r\n\t\t\tIsCustomerPopupOpen: false,\r\n\t\t\tTransactionType: \"\",\r\n\t\t\tTransactionTypeCode: null,\r\n\t\t\tHasDDR: false,\r\n\t\t\tmaxExpireDate: 30,\r\n\t\t\tIsHaveQuestion: false,\r\n\t\t\tNotificationTypeId: 0,\r\n\t\t\tServiceType: 0,\r\n\t\t\tPhoneNumber: \"\",\r\n\t\t\tCustomerStoreId: 0,\r\n\t\t\tTransferType: -1,\r\n\t\t\tIsDcbMoneyRequest: false\r\n\t\t};\r\n\r\n\t\tthis.defaultRecurringModel = {\r\n\t\t\tId: null,\r\n\t\t\tPayeeId: \"\",\r\n\t\t\tPayeeName: \"\",\r\n\t\t\tPayeeEmail: \"\",\r\n\t\t\tNewClient: false,\r\n\t\t\tStartDate: DateHelper.GetDateTime(),\r\n\t\t\tEndDate: DateHelper.GetDateTime(),\r\n\t\t\tPaymentCount: null,\r\n\t\t\tRecurringAmount: null,\r\n\t\t\tTransferMemo: \"\",\r\n\t\t\tSecurityQuestion: 0,\r\n\t\t\tSecurityQuestionText: \"\",\r\n\t\t\tSecurityQuestionAnswer: \"\",\r\n\t\t\tFrequencyType: \"\",\r\n\t\t\tFrequencyCode: \"\",\r\n\t\t\tPeriodType: \"\",\r\n\t\t\tPeriodCode: \"\",\r\n\t\t\tDayOfWeekId: \"\",\r\n\t\t\tDayOfWeekNumber: \"\",\r\n\t\t\tDayOfMonthTypeId: \"\",\r\n\t\t\tDayOfMonthTypeNumber: \"\",\r\n\t\t\tDayOfMonthId: \"\",\r\n\t\t\tDayOfMonthNumber: \"\",\r\n\t\t\tWeekOfMonthTypeId: \"\",\r\n\t\t\tWeekOfMonthTypeNumber: \"\",\r\n\t\t\tWeekOfMonthId: \"\",\r\n\t\t\tWeekOfMonthNumber: \"\",\r\n\t\t\tIsCustomerPopupOpen: false,\r\n\t\t\tTransactionType: \"\",\r\n\t\t\tTransactionTypeCode: null,\r\n\t\t\tFreezeStartDate: null,\r\n\t\t\tFreezeEndDate: null,\r\n\t\t\tHasDDR: false,\r\n\t\t\tIsHaveQuestion: false,\r\n\t\t\tNotificationTypeId: 0,\r\n\t\t\tServiceType: 0,\r\n\t\t\tPhoneNumber: \"\",\r\n\t\t\tCustomerStoreId: 0\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tisLoading: this.isClient,\r\n\t\t\tisFileDialogOpen: false,\r\n\t\t\tisIndividualDialogOpen: false,\r\n\t\t\tisRecurringDialogOpen: false,\r\n\t\t\tisClearDialogOpen: false,\r\n\t\t\tisFileResultDialogOpen: false,\r\n\t\t\tidIndividualClientWarningOpen: false,\r\n\t\t\tFileResultList: [],\r\n\t\t\tmodel: { ...this.defaultModel },\r\n\t\t\tvModel: {},\r\n\t\t\tFromFileModel: { ...this.defaultFromFileModel },\r\n\t\t\tvFromFileModel: {},\r\n\t\t\tIndividualModel: { ...this.defaultIndividualModel },\r\n\t\t\tvIndividualModel: {},\r\n\t\t\tRecurringModel: { ...this.defaultRecurringModel },\r\n\t\t\tvRecurringModel: {},\r\n\t\t\tLimitToken: false,\r\n\t\t\tLimitBalanceData: {\r\n\t\t\t\tAvailableCreditLimit: 0,\r\n\t\t\t\tAvailableDebitLimit: 0,\r\n\t\t\t\tAvailableBalance: 0\r\n\t\t\t},\r\n\t\t\taddNewCustomerMenuId: 0,\r\n\t\t\tUpdateRefreshIndividual: false,\r\n\t\t\tUpdateRefreshRecurring: false,\r\n\t\t\tCustomerStoreList: []\r\n\t\t};\r\n\r\n\t\tthis.ValueChanged = this.ValueChanged.bind(this);\r\n\t\tthis.FromFileModelChange = this.FromFileModelChange.bind(this);\r\n\t\tthis.IndividualModelChange = this.IndividualModelChange.bind(this);\r\n\t\tthis.RecurringModelChange = this.RecurringModelChange.bind(this);\r\n\t\tthis.SubmitClick = this.SubmitClick.bind(this);\r\n\t\tthis.ClearClick = this.ClearClick.bind(this);\r\n\t\tthis.Validate = this.Validate.bind(this);\r\n\t\tthis.ClearScreen = this.ClearScreen.bind(this);\r\n\t\tthis.ClearDialogConfirm = this.ClearDialogConfirm.bind(this);\r\n\r\n\t\tthis.SubmitFileClick = this.SubmitFileClick.bind(this);\r\n\t\tthis.SubmitIndividualClick = this.SubmitIndividualClick.bind(this);\r\n\t\tthis.SubmitRecurringClick = this.SubmitRecurringClick.bind(this);\r\n\t\tthis.RefreshToolBar = this.RefreshToolBar.bind(this);\r\n\r\n\t\tthis.GetModel = this.GetModel.bind(this);\r\n\t\tthis.FillData = this.FillData.bind(this);\r\n\t\tthis.GetModelId = this.GetModelId.bind(this);\r\n\t\tthis.LimitDataLoad = this.LimitDataLoad.bind(this);\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle, setPortal } = this.props;\r\n\t\tthis.GetMaxExpireDate();\r\n\t\tif (setAppLeftTitle)\r\n\t\t\tsetAppLeftTitle(\"Create e-Transfer\");\r\n\t\tif (setAppCenterTitle)\r\n\t\t\tsetAppCenterTitle(\"Interac e-Transfer\");\r\n\t\tif (setPortal)\r\n\t\t\tsetPortal(Portals.eTransfer);\r\n\r\n\t\tProxy.GET(\"/bankapi/v1.0/BankCustomer/CheckClientIndividual\",\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t// this.props.showMessage(\"error\", \"An error occurred while fetching data\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvar data = responseData.Item;\r\n\t\t\t\tif (data) {\r\n\t\t\t\t\tif (data.IsClient && data.IsIndividual)\r\n\t\t\t\t\t\tthis.setState({ idIndividualClientWarningOpen: true });\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\tProxy.POST(\"/coreapi/v1.0/Menu/GetByMenuCode\",\r\n\t\t\tMenuCodes.CustomerDefinition,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t// this.props.showMessage(\"error\", \"An error occurred while fetching data\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvar menu = responseData.Item;\r\n\t\t\t\tif (menu) {\r\n\t\t\t\t\tvar menuId = menu.Id;\r\n\t\t\t\t\tthis.setState({ addNewCustomerMenuId: menuId });\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\tvar Id = RouteHelper.ReadAndClear(\"CreateEtransfer_Id\");\r\n\t\tvar RecurringId = RouteHelper.ReadAndClear(\"CreateEtransfer_RecurringId\");\r\n\t\tif ((Id == null || Id <= 0) && RecurringId == null || RecurringId <= 0) {\r\n\t\t\tthis.GetCustomerStore();\r\n\t\t}\r\n\r\n\t \r\n\r\n\r\n\t\t// Individual\r\n\t\tif (Id) {\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tProxy.POST(\"/bankapi/v1.0/BankInteracETransfer/GetByIdRequest\",\r\n\t\t\t\t{ Item: Id },\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while fetching data\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tvar etransferData = responseData.Item;\r\n\t\t\t\t\tvar data = etransferData.Transaction;\r\n\r\n\t\t\t\t\tthis.setState(function (state) {\r\n\t\t\t\t\t\tvar model = state.model || {};\r\n\t\t\t\t\t\tvar IndividualModel = state.IndividualModel || {};\r\n\r\n\t\t\t\t\t\tmodel.UniqueClientId = data.UniqueClientId;\r\n\r\n\t\t\t\t\t\tmodel.EntryType = data.EntryTypeId;\r\n\t\t\t\t\t\tmodel.EntryCode = EtransferEntryType.Individual;\r\n\t\t\t\t\t\tmodel.EtransfertypeParamValue = etransferData.PriorityType.ParameterValue;\r\n\t\t\t\t\t\tmodel.EtransferType = etransferData.PriorityTypeId;\r\n\r\n\t\t\t\t\t\tmodel.IsUpdate = true;\r\n\t\t\t\t\t\tIndividualModel.Id = data.Id;\r\n\t\t\t\t\t\tIndividualModel.PayeeId = etransferData.PayeeId;\t\t\t\t\t\t\r\n\t\t\t\t\t\tIndividualModel.CustomerStoreId = data.StoreId;\r\n\t\t\t\t\t\tIndividualModel.PayeeName = etransferData.PayeeName;\r\n\t\t\t\t\t\tIndividualModel.PayeeEmail = etransferData.PayeeEmail;\r\n\t\t\t\t\t\tIndividualModel.Amount = data.TransactionAmount;\r\n\t\t\t\t\t\tIndividualModel.DateOfFunds = data.TransactionDate ? DateHelper.ToMoment(data.TransactionDate) : null;\r\n\t\t\t\t\t\tIndividualModel.MoneyReqExpDate = etransferData.MoneyRequestExpiryDate ? DateHelper.ToMoment(etransferData.MoneyRequestExpiryDate) : null;\r\n\t\t\t\t\t\tIndividualModel.SecurityQuestion = etransferData.SecurityQuestionId;\r\n\t\t\t\t\t\tIndividualModel.IsHaveQuestion = etransferData.SecurityQuestionId != null && etransferData.SecurityQuestionId > 0;\r\n\t\t\t\t\t\tIndividualModel.SecurityQuestionText = etransferData.SecurityQuestion;\r\n\t\t\t\t\t\tIndividualModel.SecurityQuestionAnswer = etransferData.SecurityQuestionAnswer;\r\n\t\t\t\t\t\tIndividualModel.TransferMemo = etransferData.Memo;\r\n\t\t\t\t\t\tIndividualModel.TransactionType = data.TransactionTypeId;\r\n\t\t\t\t\t\tIndividualModel.TransactionTypeCode = data.TransactionType ? data.TransactionType.ParameterValue : \"\";\r\n\t\t\t\t\t\tIndividualModel.NotificationTypeId = etransferData.NotificationTypeId;\r\n\t\t\t\t\t\tIndividualModel.NotificationType = etransferData.NotificationType;\r\n\t\t\t\t\t\tIndividualModel.ServiceType = etransferData.NotificationType != null ? etransferData.NotificationType.ParameterValue3 : 0;\r\n\t\t\t\t\t\tIndividualModel.PhoneNumber = etransferData.Payee != null ? etransferData.Payee.Phone != null ? etransferData.Payee.Phone.PhoneNumber : \"\" : \"\";\r\n\r\n\t\t\t\t\t\treturn { model, IndividualModel, UpdateRefreshIndividual: !this.state.UpdateRefreshIndividual };\r\n\t\t\t\t\t}, () => this.GetCustomerStore());\r\n\t\t\t\t},\r\n\t\t\t\terrorMessage => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while fetching data\", errorMessage);\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\t// Recurring\r\n\t\telse if (RecurringId) {\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tProxy.POST(\"/bankapi/v1.0/BankInteracETransfer/GetByIdRecurringRequest\",\r\n\t\t\t\t{ Item: RecurringId },\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while fetching data\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tvar data = responseData.Item;\r\n\r\n\t\t\t\t\tthis.setState(function (state) {\r\n\t\t\t\t\t\tvar model = state.model || {};\r\n\t\t\t\t\t\tvar RecurringModel = state.RecurringModel || {};\r\n\r\n\t\t\t\t\t\tmodel.UniqueClientId = data.UniqueClientId;\r\n\r\n\t\t\t\t\t\tmodel.EntryType = data.EntryTypeId;\r\n\t\t\t\t\t\tmodel.EntryCode = EtransferEntryType.Recurring;\r\n\t\t\t\t\t\tmodel.EtransferType = data.PriorityTypeId;\r\n\r\n\t\t\t\t\t\tmodel.IsUpdate = true;\r\n\t\t\t\t\t\tRecurringModel.Id = data.Id;\r\n\t\t\t\t\t\tRecurringModel.PayeeId = data.PayeeId;\r\n\t\t\t\t\t\tRecurringModel.CustomerStoreId = data.CustomerStoreId;\r\n\r\n\t\t\t\t\t\tif (data.CustomerPayee && data.CustomerPayee.ClientType) {\r\n\t\t\t\t\t\t\tRecurringModel.PayeeEmail = data.CustomerPayee.Email;\r\n\t\t\t\t\t\t\tif (data.CustomerPayee.ClientType.ParameterValue == ClientType.Corporate)\r\n\t\t\t\t\t\t\t\tRecurringModel.PayeeName = data.CustomerPayee.CompanyLegalName;\r\n\t\t\t\t\t\t\telse if (data.CustomerPayee.ClientType.ParameterValue == ClientType.Personal)\r\n\t\t\t\t\t\t\t\tRecurringModel.PayeeName = data.CustomerPayee.FirstName + \" \" + data.CustomerPayee.LastName;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tRecurringModel.StartDate = data.StartingFrom ? DateHelper.ToMoment(data.StartingFrom) : null;\r\n\t\t\t\t\t\tRecurringModel.EndDate = data.EndOfDate ? DateHelper.ToMoment(data.EndOfDate) : null;\r\n\t\t\t\t\t\tRecurringModel.FreezeStartDate = data.FreezeFromDate ? DateHelper.ToMoment(data.FreezeFromDate) : null;\r\n\t\t\t\t\t\tRecurringModel.FreezeEndDate = data.FreezeToDate ? DateHelper.ToMoment(data.FreezeToDate) : null;\r\n\t\t\t\t\t\tRecurringModel.RecurringAmount = data.TransactionAmount;\r\n\t\t\t\t\t\tRecurringModel.TransferMemo = data.Memo;\r\n\t\t\t\t\t\tRecurringModel.SecurityQuestion = data.SecurityQuestionId;\r\n\t\t\t\t\t\tRecurringModel.IsHaveQuestion = data.SecurityQuestionId != null && data.SecurityQuestionId > 0;\r\n\t\t\t\t\t\tRecurringModel.SecurityQuestionText = data.SecurityQuestionText;\r\n\t\t\t\t\t\tRecurringModel.SecurityQuestionAnswer = data.SecurityQuestionAnswer;\r\n\t\t\t\t\t\tRecurringModel.FrequencyType = data.FrequencyTypeId;\r\n\t\t\t\t\t\tRecurringModel.FrequencyCode = data.FrequencyType != null ? data.FrequencyType.ParameterValue : \"\";\r\n\t\t\t\t\t\tRecurringModel.PeriodType = data.PeriodTypeId;\r\n\t\t\t\t\t\tRecurringModel.PeriodCode = data.PeriodType != null ? data.PeriodType.ParameterValue : \"\";\r\n\t\t\t\t\t\tRecurringModel.DayOfWeekId = data.DayOfWeekId;\r\n\t\t\t\t\t\tRecurringModel.DayOfWeekNumber = data.DayOfWeek != null ? data.DayOfWeek.ParameterValue : \"\";\r\n\t\t\t\t\t\tRecurringModel.DayOfMonthTypeId = data.DayOfMonthTypeId;\r\n\t\t\t\t\t\tRecurringModel.DayOfMonthTypeNumber = data.DayOfMonthType != null ? data.DayOfMonthType.ParameterValue : \"\";\r\n\t\t\t\t\t\tRecurringModel.DayOfMonthId = data.DayOfMonthId;\r\n\t\t\t\t\t\tRecurringModel.DayOfMonthNumber = data.DayOfMonth != null ? data.DayOfMonth.ParameterValue : \"\";\r\n\t\t\t\t\t\tRecurringModel.WeekOfMonthTypeId = data.WeekOfMonthTypeId;\r\n\t\t\t\t\t\tRecurringModel.WeekOfMonthTypeNumber = data.WeekOfMonthType != null ? data.WeekOfMonthType.ParameterValue : \"\";\r\n\t\t\t\t\t\tRecurringModel.WeekOfMonthId = data.WeekOfMonthId;\r\n\t\t\t\t\t\tRecurringModel.WeekOfMonthNumber = data.WeekOfMonth != null ? data.WeekOfMonth.ParameterValue : \"\";\r\n\t\t\t\t\t\tRecurringModel.PaymentCount = data.NumberOfPayments;\r\n\t\t\t\t\t\tRecurringModel.TransactionType = data.TransactionTypeId;\r\n\t\t\t\t\t\tRecurringModel.TransactionTypeCode = data.TransactionType ? data.TransactionType.ParameterValue : \"\";\r\n\t\t\t\t\t\tRecurringModel.NotificationTypeId = data.NotificationTypeId;\r\n\t\t\t\t\t\tRecurringModel.NotificationType = data.NotificationType;\r\n\t\t\t\t\t\tRecurringModel.ServiceType = data.NotificationType != null ? data.NotificationType.ParameterValue3 : 0;\r\n\t\t\t\t\t\tRecurringModel.PhoneNumber = data.CustomerPayee != null ? data.CustomerPayee.Phone != null ? data.CustomerPayee.Phone.PhoneNumber : \"\" : \"\";\r\n\r\n\t\t\t\t\t\treturn { model, RecurringModel, UpdateRefreshRecurring: !this.state.UpdateRefreshRecurring };\r\n\t\t\t\t\t}, () => this.GetCustomerStore());\r\n\t\t\t\t},\r\n\t\t\t\terrorMessage => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while fetching data\", errorMessage);\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t}\r\n \tGetCustomerStore = () => {\r\n\t\tProxy.POST(\"/bankapi/v1.0/CustomerStore/GetStoreAccountMaps\", { Id: this.state.model != null ? this.state.model.UniqueClientId : 0, ProgramCode: ProgramCodes.Bank_Programs_e_Transfer },\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tconsole.log(responseData.ErrorDescription);\r\n\t\t\t\t\tthis.setState({ CustomerStoreList: [] });\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ CustomerStoreList: responseData.Item || [] });\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ CustomerStoreList: [] });\r\n\t\t\t\tconsole.log(errorMessage);\r\n\t\t\t});\r\n\t}\r\n\tGetMaxExpireDate = () => {\r\n\t\tProxy.POST(\"/coreapi/v1.0/Parameter/Search\",\r\n\t\t\t{\r\n\t\t\t\tParameterCode: \"InteracEtransferExpireDate\",\r\n\t\t\t\tParameterValue: \"MX\"\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", \"An error occurred while request \" + responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item.length != null && responseData.Item.length > 0) {\r\n\t\t\t\t\tthis.setState(state => {\r\n\t\t\t\t\t\tvar maxExpDate = DateHelper.GetDateTime().add((state.IndividualModel.maxExpireDate - 1), \"d\");\r\n\t\t\t\t\t\tif (state.IndividualModel.MoneyReqExpDate >= maxExpDate) {\r\n\t\t\t\t\t\t\tstate.IndividualModel.maxExpireDate = responseData.Item[0].ParameterValue2 > 30 ? 30 : responseData.Item[0].ParameterValue2;\r\n\t\t\t\t\t\t\tstate.IndividualModel.MoneyReqExpDate = DateHelper.GetDateTime().add((state.IndividualModel.maxExpireDate - 1), \"d\");\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\treturn state;\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\te => {\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", \"An error occurred while inserting data \");\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tRefreshToolBar() {\r\n\t\tthis.setState({ LimitToken: !this.state.LimitToken });\r\n\t}\r\n\r\n\tValueChanged(name, newValue, data) {\r\n\t\tthis.setState(function (state) {\r\n\t\t\tvar model = state.model || {};\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\tif (name == \"EntryType\" && data != null)\r\n\t\t\t\tmodel.EntryCode = data.ParameterValue;\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tFromFileModelChange(modelFunction) {\r\n\t\tthis.setState(function (state) {\r\n\t\t\tvar model = state.FromFileModel || {};\r\n\r\n\t\t\tif (modelFunction)\r\n\t\t\t\tmodel = modelFunction(model);\r\n\r\n\t\t\treturn { FromFileModel: model };\r\n\t\t});\r\n\t}\r\n\r\n\tIndividualModelChange(modelFunction) {\r\n\t\tthis.setState(function (state) {\r\n\t\t\tvar model = state.IndividualModel || {};\r\n\r\n\t\t\tif (modelFunction)\r\n\t\t\t\tmodel = modelFunction(model);\r\n\r\n\t\t\treturn { IndividualModel: model };\r\n\t\t});\r\n\t}\r\n\r\n\tRecurringModelChange(modelFunction) {\r\n\t\tthis.setState(function (state) {\r\n\t\t\tvar model = state.RecurringModel || {};\r\n\r\n\t\t\tif (modelFunction)\r\n\t\t\t\tmodel = modelFunction(model);\r\n\r\n\t\t\treturn { RecurringModel: model };\r\n\t\t});\r\n\t}\r\n\r\n\tSubmitClick(workflowId, after, accessToken) {\r\n\t\tconst { DateOfFunds, MoneyReqExpDate } = this.state.IndividualModel;\r\n\t\tconst diffMonths = MoneyReqExpDate.diff(DateOfFunds, \"days\");\r\n\t\tif(diffMonths > 30) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Between two dates cannot be longer than 30 days!\");\r\n\t\t}\r\n\t\tif (!this.Validate() && diffMonths < 30)\r\n\t\t\treturn;\r\n\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tswitch (model.EntryCode) {\r\n\t\t\tcase EtransferEntryType.FromFile:\r\n\t\t\t\tthis.setState({ isFileDialogOpen: true, workflowId, after, accessToken });\r\n\t\t\t\tbreak;\r\n\t\t\tcase EtransferEntryType.Individual:\r\n\t\t\t\tthis.setState({ isIndividualDialogOpen: true, workflowId, after, accessToken });\r\n\t\t\t\tbreak;\r\n\t\t\tcase EtransferEntryType.Recurring:\r\n\t\t\t\tthis.setState({ isRecurringDialogOpen: true, workflowId, after, accessToken });\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t}\r\n\r\n\tSubmitFileClick() {\r\n\t\tconst { FromFileModel } = this.state;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tvar formData = new FormData();\r\n\t\tformData.append(\"file\", FromFileModel.File, FromFileModel.FileName);\r\n\t\tformData.append(\"approved\", String(FromFileModel.AutoApprove));\r\n\r\n\t\tProxy.FileUpload(\"/bankapi/v1.0/BankInteracETransferFile/UploadCreateTransactionFile\",\r\n\t\t\tformData,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false, isFileDialogOpen: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while upload file\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvar fileId = responseData.Item ? responseData.Item.FileId : 0;\r\n\r\n\t\t\t\tthis.setState({ isLoading: true });\r\n\t\t\t\tProxy.POST(\"/bankapi/v1.0/BankInteracETransferFile/GetFileInformation\",\r\n\t\t\t\t\t{ Id: fileId },\r\n\t\t\t\t\tfileResponseData => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false, isFileDialogOpen: false });\r\n\r\n\t\t\t\t\t\tif (!fileResponseData.IsSucceeded) {\r\n\t\t\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while load file information\", fileResponseData.ErrorDescription);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tthis.setState({ FileResultList: fileResponseData.Item, isFileResultDialogOpen: true });\r\n\t\t\t\t\t},\r\n\t\t\t\t\terrorMessage => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false, isFileDialogOpen: false });\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while load file information\", errorMessage);\r\n\t\t\t\t\t}\r\n\t\t\t\t);\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false, isFileDialogOpen: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while upload file\", errorMessage);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tSubmitIndividualClick() {\r\n\t\tconst { model, workflowId, after, accessToken } = this.state;\r\n\r\n\t\tvar individualRequest = this.GetModel();\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tif (!model.IsUpdate)\r\n\t\t\tProxy.POST(\"/bankapi/v1.0/BankInteracETransfer/InsertIndividualRequest\",\r\n\t\t\t\tindividualRequest,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tthis.setState({ isLoading: false, isIndividualDialogOpen: false });\r\n\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while inserting data\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (after) after();\r\n\r\n\t\t\t\t\tthis.props.showMessage(\"success\", \"Individual Transaction Entry successfully saved.\");\r\n\r\n\t\t\t\t\tif (this.isClient)\r\n\t\t\t\t\t\tthis.ClearScreen();\r\n\t\t\t\t},\r\n\t\t\t\terrorMessage => {\r\n\t\t\t\t\tthis.setState({ isLoading: false, isIndividualDialogOpen: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while inserting data\", errorMessage);\r\n\t\t\t\t},\r\n\t\t\t\tworkflowId,\r\n\t\t\t\taccessToken\r\n\t\t\t);\r\n\t\telse\r\n\t\t\tProxy.POST(\"/bankapi/v1.0/BankInteracETransfer/EditETransferRequest\",\r\n\t\t\t\tindividualRequest,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tthis.setState({ isLoading: false, isIndividualDialogOpen: false });\r\n\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while updating data\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (after) after();\r\n\r\n\t\t\t\t\tthis.props.showMessage(\"success\", \"Individual Transaction Entry successfully updated.\");\r\n\r\n\t\t\t\t\tif (this.isClient)\r\n\t\t\t\t\t\tthis.ClearScreen();\r\n\t\t\t\t},\r\n\t\t\t\terrorMessage => {\r\n\t\t\t\t\tthis.setState({ isLoading: false, isIndividualDialogOpen: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while updating data\", errorMessage);\r\n\t\t\t\t},\r\n\t\t\t\tworkflowId,\r\n\t\t\t\taccessToken\r\n\t\t\t);\r\n\t}\r\n\r\n\tSubmitRecurringClick() {\r\n\t\tconst { model, workflowId, after, accessToken } = this.state;\r\n\r\n\t\tvar recurringRequest = this.GetModel();\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tif (!model.IsUpdate)\r\n\t\t\tProxy.POST(\"/bankapi/v1.0/BankInteracETransfer/InsertRecurringRequest\",\r\n\t\t\t\trecurringRequest,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tthis.setState({ isLoading: false, isRecurringDialogOpen: false });\r\n\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while inserting data\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (after) after();\r\n\r\n\t\t\t\t\tthis.props.showMessage(\"success\", \"Recurring Transaction Entry successfully saved.\");\r\n\r\n\t\t\t\t\tif (this.isClient)\r\n\t\t\t\t\t\tthis.ClearScreen();\r\n\t\t\t\t},\r\n\t\t\t\terrorMessage => {\r\n\t\t\t\t\tthis.setState({ isLoading: false, isRecurringDialogOpen: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while inserting data\", errorMessage);\r\n\t\t\t\t},\r\n\t\t\t\tworkflowId,\r\n\t\t\t\taccessToken\r\n\t\t\t);\r\n\t\telse\r\n\t\t\tProxy.POST(\"/bankapi/v1.0/BankInteracETransfer/EditRecurringRequest\",\r\n\t\t\t\trecurringRequest,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tthis.setState({ isLoading: false, isRecurringDialogOpen: false });\r\n\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while updating data\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (after) after();\r\n\r\n\t\t\t\t\tthis.props.showMessage(\"success\", \"Recurring Transaction Entry successfully updated.\");\r\n\r\n\t\t\t\t\tif (this.isClient)\r\n\t\t\t\t\t\tthis.ClearScreen();\r\n\t\t\t\t},\r\n\t\t\t\terrorMessage => {\r\n\t\t\t\t\tthis.setState({ isLoading: false, isRecurringDialogOpen: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while updating data\", errorMessage);\r\n\t\t\t\t},\r\n\t\t\t\tworkflowId,\r\n\t\t\t\taccessToken\r\n\t\t\t);\r\n\t}\r\n\r\n\tClearClick() {\r\n\t\tthis.setState({ isClearDialogOpen: true });\r\n\t}\r\n\r\n\tClearDialogConfirm() {\r\n\t\tthis.ClearScreen();\r\n\t}\r\n\r\n\tClearScreen() {\r\n\t\tthis.setState({ model: { ...this.defaultModel }, vModel: {}, vFromFileModel: {}, vIndividualModel: {}, vRecurringModel: {}, isClearDialogOpen: false, isLoading: true, isFileResultDialogOpen: false });\r\n\t\tthis.FromFileModelChange(() => { return { ...this.defaultFromFileModel }; });\r\n\t\tthis.IndividualModelChange(() => { return { ...this.defaultIndividualModel }; });\r\n\t\tthis.RecurringModelChange(() => { return { ...this.defaultRecurringModel }; });\r\n\t\tthis.RefreshToolBar();\r\n\t\tthis.GetMaxExpireDate();\r\n\t}\r\n\r\n\tValidate() {\r\n\t\tconst { model, vModel, FromFileModel, vFromFileModel, IndividualModel, vIndividualModel, RecurringModel, vRecurringModel } = this.state;\r\n\r\n\t\tvModel.EntryType = model.EntryType == null || model.EntryType == \"\";\r\n\t\tif (vModel.EntryType) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Entry Type not selected\", \"Select Entry Type to continue.\");\r\n\t\t\tthis.setState({ vModel });\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tvModel.EtransferType = (model.EtransferType == null || model.EtransferType == \"\") && model.EntryCode != EtransferEntryType.FromFile;\r\n\t\tif (vModel.EtransferType) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"e-Transfer Type not selected\", \"Select e-Transfer Type to continue.\");\r\n\t\t\tthis.setState({ vModel });\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tswitch (model.EntryCode) {\r\n\t\t\tcase EtransferEntryType.FromFile:\r\n\t\t\t\tvFromFileModel.File = !FromFileModel.File;\r\n\t\t\t\tif (vFromFileModel.File) {\r\n\t\t\t\t\tthis.props.showMessage(\"warning\", \"File not selected\", \"Select File to continue.\");\r\n\t\t\t\t\tthis.setState({ vModel });\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\treturn true;\r\n\r\n\t\t\tcase EtransferEntryType.Individual:\r\n\t\t\t\tvar individualMessages = [];\r\n\t\t\t\t// if (this.state.CustomerStoreList.length > 0) {\r\n\t\t\t\t// \tvIndividualModel.CustomerStoreId = IndividualModel.CustomerStoreId == null || IndividualModel.CustomerStoreId <= 0;\r\n\t\t\t\t// \tif (vIndividualModel.CustomerStoreId) individualMessages.push(\"Customer Store cannot be null.\");\r\n\t\t\t\t// }\r\n\t\t\t\tvIndividualModel.TransactionType = IndividualModel.TransactionType == null || IndividualModel.TransactionType == \"\";\r\n\t\t\t\tif (vIndividualModel.TransactionType) individualMessages.push(\"Transaction Type cannot be null.\");\r\n\t\t\t\tvIndividualModel.PayeeId = IndividualModel.PayeeId == null || IndividualModel.PayeeId == \"\";\r\n\t\t\t\tif (vIndividualModel.PayeeId) individualMessages.push(\"Customer Name cannot be null.\");\r\n\t\t\t\tvIndividualModel.Amount = IndividualModel.Amount == null || IndividualModel.Amount == \"\";\r\n\t\t\t\tif (vIndividualModel.Amount) individualMessages.push(\"Amount cannot be null.\");\r\n\r\n\t\t\t\tvIndividualModel.DateOfFunds = IndividualModel.DateOfFunds == null;\r\n\t\t\t\tif (vIndividualModel.DateOfFunds) individualMessages.push(\"Date Of Funds cannot be null.\");\r\n\t\t\t\telse {\r\n\t\t\t\t\tvIndividualModel.DateOfFunds = typeof IndividualModel.DateOfFunds != \"object\";\r\n\t\t\t\t\tif (vIndividualModel.DateOfFunds) individualMessages.push(\"Date Of Funds is invalid.\");\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tvIndividualModel.DateOfFunds = !model.IsUpdate && IndividualModel.DateOfFunds < DateHelper.GetDateLocal();\r\n\t\t\t\t\t\tif (vIndividualModel.DateOfFunds) individualMessages.push(\"Date Of Funds cannot be past.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvIndividualModel.MoneyReqExpDate = IndividualModel.MoneyReqExpDate == null;\r\n\t\t\t\tif (vIndividualModel.MoneyReqExpDate) individualMessages.push(\"Money Request Expiry Date cannot be null.\");\r\n\t\t\t\telse {\r\n\t\t\t\t\tvIndividualModel.MoneyReqExpDate = typeof IndividualModel.MoneyReqExpDate != \"object\";\r\n\t\t\t\t\tif (vIndividualModel.MoneyReqExpDate) individualMessages.push(\"Money Request Expiry Date is invalid.\");\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tvIndividualModel.MoneyReqExpDate = IndividualModel.MoneyReqExpDate < DateHelper.GetDateLocal();\r\n\t\t\t\t\t\tif (vIndividualModel.MoneyReqExpDate) individualMessages.push(\"Money Request Expiry Date cannot be past.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (IndividualModel.TransactionTypeCode == EtransferTransactionTypes.Credit && !IndividualModel.HasDDR && IndividualModel.TransferType != DcbETransferType.AccountDeposit) {\r\n\t\t\t\t\tif (IndividualModel.IsHaveQuestion && IndividualModel.IsHaveQuestion == true) {\r\n\t\t\t\t\t\tvIndividualModel.SecurityQuestion = IndividualModel.SecurityQuestion == null || IndividualModel.SecurityQuestion == 0;\r\n\t\t\t\t\t\tif (vIndividualModel.SecurityQuestion) individualMessages.push(\"Security Question is not selected.\");\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tlet isTooShortSecurityQuestionAnswer = IndividualModel.SecurityQuestionAnswer?.length && IndividualModel.SecurityQuestionAnswer?.length < 3;\r\n\t\t\t\t\t\t\tvIndividualModel.SecurityQuestionAnswer = IndividualModel.SecurityQuestionAnswer == null || IndividualModel.SecurityQuestionAnswer == \"\" || isTooShortSecurityQuestionAnswer;\r\n\t\t\t\t\t\t\tif (vIndividualModel.SecurityQuestionAnswer) {\r\n\t\t\t\t\t\t\t\tif (!isTooShortSecurityQuestionAnswer)\r\n\t\t\t\t\t\t\t\t\tindividualMessages.push(\"Security Question Answer cannot be null.\");\r\n\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t\tindividualMessages.push(\"Security Question Answer cannot be smaller than 3 character\");\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tvIndividualModel.SecurityQuestionText = IndividualModel.SecurityQuestionText == null || IndividualModel.SecurityQuestionText == \"\" || IndividualModel.SecurityQuestionText?.length < 3;\r\n\t\t\t\t\t\tif (vIndividualModel.SecurityQuestionText) individualMessages.push(IndividualModel.SecurityQuestionText?.length && IndividualModel.SecurityQuestionText?.length < 3 ? \"Security Question Text cannot be smaller than 3 character\" : \"Security Question is not defined.\");\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tlet isTooShortSecurityQuestionAnswer = IndividualModel.SecurityQuestionAnswer?.length && IndividualModel.SecurityQuestionAnswer?.length < 3;\r\n\t\t\t\t\t\t\tvIndividualModel.SecurityQuestionAnswer = IndividualModel.SecurityQuestionAnswer == null || IndividualModel.SecurityQuestionAnswer == \"\" || isTooShortSecurityQuestionAnswer;\r\n\t\t\t\t\t\t\tif (vIndividualModel.SecurityQuestionAnswer) {\r\n\t\t\t\t\t\t\t\tif (!isTooShortSecurityQuestionAnswer)\r\n\t\t\t\t\t\t\t\t\tindividualMessages.push(\"Security Question Answer cannot be null.\");\r\n\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t\tindividualMessages.push(\"Security Question Answer cannot be smaller than 3 character\");\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tvIndividualModel.NotificationTypeId = IndividualModel.NotificationTypeId == null || IndividualModel.NotificationTypeId == 0;\r\n\t\t\t\tif (vIndividualModel.NotificationTypeId) individualMessages.push(\"Notification Type cannot be null.\");\r\n\r\n\t\t\t\tif (IndividualModel.ServiceType == 0 && (IndividualModel.PayeeEmail == null || IndividualModel.PayeeEmail == \"\")) {\r\n\t\t\t\t\tindividualMessages.push(\"Customer eMail cannot be null.\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (IndividualModel.ServiceType == 1 && (IndividualModel.PhoneNumber == null || IndividualModel.PhoneNumber == \"\")) {\r\n\t\t\t\t\tindividualMessages.push(\"Customer Phone Number cannot be null.\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (individualMessages.length > 0) {\r\n\t\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", individualMessages.map((x, i) =>
{x}
));\r\n\t\t\t\t\tthis.setState({ vIndividualModel });\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn true;\r\n\r\n\t\t\tcase EtransferEntryType.Recurring:\r\n\t\t\t\tvar recurringMessages = [];\r\n\t\t\t\tif (this.state.CustomerStoreList.length > 0) {\r\n\t\t\t\t\tvRecurringModel.CustomerStoreId = RecurringModel.CustomerStoreId == null || RecurringModel.CustomerStoreId <= 0;\r\n\t\t\t\t\tif (vRecurringModel.CustomerStoreId) recurringMessages.push(\"Customer Store cannot be null.\");\r\n\t\t\t\t}\r\n\t\t\t\tvRecurringModel.TransactionType = RecurringModel.TransactionType == null || RecurringModel.TransactionType == \"\";\r\n\t\t\t\tif (vRecurringModel.TransactionType) recurringMessages.push(\"Transaction Type cannot be null.\");\r\n\t\t\t\tvRecurringModel.PayeeId = RecurringModel.PayeeId == null || RecurringModel.PayeeId == \"\";\r\n\t\t\t\tif (vRecurringModel.PayeeId) recurringMessages.push(\"Customer Name cannot be null.\");\r\n\t\t\t\tvRecurringModel.NotificationTypeId = RecurringModel.NotificationTypeId == null || RecurringModel.NotificationTypeId == 0;\r\n\t\t\t\tif (vRecurringModel.NotificationTypeId) recurringMessages.push(\"Notification Type cannot be null.\");\r\n\r\n\t\t\t\tif (RecurringModel.ServiceType == 0 && (RecurringModel.PayeeEmail == null || RecurringModel.PayeeEmail == \"\")) {\r\n\t\t\t\t\trecurringMessages.push(\"Customer eMail cannot be null.\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (RecurringModel.ServiceType == 1 && (RecurringModel.PhoneNumber == null || RecurringModel.PhoneNumber == \"\")) {\r\n\t\t\t\t\trecurringMessages.push(\"Customer Phone Number cannot be null.\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvRecurringModel.StartDate = RecurringModel.StartDate == null;\r\n\t\t\t\tif (vRecurringModel.StartDate) recurringMessages.push(\"Start Date cannot be null.\");\r\n\t\t\t\telse {\r\n\t\t\t\t\tvRecurringModel.StartDate = typeof RecurringModel.StartDate != \"object\";\r\n\t\t\t\t\tif (vRecurringModel.StartDate) recurringMessages.push(\"Start Date is invalid.\");\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tvRecurringModel.StartDate = !model.IsUpdate && RecurringModel.StartDate < DateHelper.GetLocalDateAsUtc();\r\n\t\t\t\t\t\tif (vRecurringModel.StartDate) recurringMessages.push(\"Start Date cannot be past.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvRecurringModel.EndDate = RecurringModel.EndDate == null;\r\n\t\t\t\tif (vRecurringModel.EndDate) recurringMessages.push(\"End Date cannot be null.\");\r\n\t\t\t\telse {\r\n\t\t\t\t\tvRecurringModel.EndDate = typeof RecurringModel.EndDate != \"object\";\r\n\t\t\t\t\tif (vRecurringModel.EndDate) recurringMessages.push(\"End Date is invalid.\");\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tvRecurringModel.EndDate = RecurringModel.EndDate < DateHelper.GetLocalDateAsUtc();\r\n\t\t\t\t\t\tif (vRecurringModel.EndDate) recurringMessages.push(\"End Date cannot be past.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (vRecurringModel.StartDate == false && vRecurringModel.EndDate == false && RecurringModel.StartDate > RecurringModel.EndDate) recurringMessages.push(\"Start Date cannot be after End Date.\");\r\n\r\n\t\t\t\tif (model.IsUpdate) {\r\n\t\t\t\t\tvRecurringModel.FreezeStartDate = RecurringModel.FreezeStartDate != null && typeof RecurringModel.FreezeStartDate != \"object\";\r\n\t\t\t\t\tif (vRecurringModel.FreezeStartDate) recurringMessages.push(\"Freeze Start Date is invalid.\");\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tvRecurringModel.FreezeStartDate = RecurringModel.FreezeStartDate != null && RecurringModel.FreezeStartDate < RecurringModel.StartDate;\r\n\t\t\t\t\t\tif (vRecurringModel.FreezeStartDate) recurringMessages.push(\"Freeze Start Date cannot be before Start Date.\");\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tvRecurringModel.FreezeEndDate = RecurringModel.FreezeEndDate != null && typeof RecurringModel.FreezeEndDate != \"object\";\r\n\t\t\t\t\tif (vRecurringModel.FreezeEndDate) recurringMessages.push(\"Freeze End Date is invalid.\");\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tvRecurringModel.FreezeEndDate = RecurringModel.FreezeEndDate != null && RecurringModel.FreezeEndDate > RecurringModel.EndDate;\r\n\t\t\t\t\t\tif (vRecurringModel.FreezeEndDate) recurringMessages.push(\"Freeze End Date cannot be after End Date.\");\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (vRecurringModel.FreezeStartDate == false && vRecurringModel.FreezeEndDate == false && RecurringModel.FreezeStartDate > RecurringModel.FreezeEndDate) recurringMessages.push(\"Freeze Start Date cannot be after Freeze End Date.\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvRecurringModel.PaymentCount = RecurringModel.PaymentCount == null;\r\n\t\t\t\tif (vRecurringModel.PaymentCount) recurringMessages.push(\"Period/No. Of Payment cannot be null.\");\r\n\t\t\t\tvRecurringModel.RecurringAmount = RecurringModel.RecurringAmount == null || RecurringModel.RecurringAmount == \"\";\r\n\t\t\t\tif (vRecurringModel.RecurringAmount) recurringMessages.push(\"Recurring Amount cannot be null.\");\r\n\t\t\t\tvRecurringModel.FrequencyType = RecurringModel.FrequencyType == null || RecurringModel.FrequencyType == \"\";\r\n\t\t\t\tif (vRecurringModel.FrequencyType) recurringMessages.push(\"Frequency is not selected.\");\r\n\t\t\t\tif (RecurringModel.FrequencyCode == EtransferFrequencyCodes.Weekly || RecurringModel.FrequencyCode == EtransferFrequencyCodes.Monthly) {\r\n\t\t\t\t\tvRecurringModel.PeriodType = RecurringModel.PeriodType == null || RecurringModel.PeriodType == \"\";\r\n\t\t\t\t\tif (vRecurringModel.PeriodType) recurringMessages.push(\"Period is not selected.\");\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tif (RecurringModel.PeriodCode == EtransferPeriodCodes.DayOfMonth) {\r\n\t\t\t\t\t\t\tvRecurringModel.DayOfMonthTypeId = RecurringModel.DayOfMonthTypeNumber == null || RecurringModel.DayOfMonthTypeNumber == \"\";\r\n\t\t\t\t\t\t\tif (vRecurringModel.DayOfMonthTypeId)\r\n\t\t\t\t\t\t\t\trecurringMessages.push(\"Day of month type is not selected.\");\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tvRecurringModel.DayOfMonthId = RecurringModel.DayOfMonthTypeNumber == ETransferDayOfMonthTypes.SelectedDay && (RecurringModel.DayOfMonthNumber == null || RecurringModel.DayOfMonthNumber == \"\");\r\n\t\t\t\t\t\t\t\tif (vRecurringModel.DayOfMonthId)\r\n\t\t\t\t\t\t\t\t\trecurringMessages.push(\"Day of month is not selected.\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (RecurringModel.PeriodCode == EtransferPeriodCodes.DayOfWeek) {\r\n\t\t\t\t\t\t\tvRecurringModel.DayOfWeekId = RecurringModel.DayOfWeekNumber == null || RecurringModel.DayOfWeekNumber == \"\";\r\n\t\t\t\t\t\t\tif (vRecurringModel.DayOfWeekId)\r\n\t\t\t\t\t\t\t\trecurringMessages.push(\"Day of week is not selected.\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (RecurringModel.PeriodCode == EtransferPeriodCodes.WeekOfMonth) {\r\n\t\t\t\t\t\t\tvRecurringModel.WeekOfMonthTypeId = RecurringModel.WeekOfMonthTypeNumber == null || RecurringModel.WeekOfMonthTypeNumber == \"\";\r\n\t\t\t\t\t\t\tif (vRecurringModel.WeekOfMonthTypeId)\r\n\t\t\t\t\t\t\t\trecurringMessages.push(\"Week of month type is not selected.\");\r\n\t\t\t\t\t\t\tvRecurringModel.WeekOfMonthId = RecurringModel.WeekOfMonthNumber == null || RecurringModel.WeekOfMonthNumber == \"\";\r\n\t\t\t\t\t\t\tif (vRecurringModel.WeekOfMonthId)\r\n\t\t\t\t\t\t\t\trecurringMessages.push(\"Week of month is not selected.\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (RecurringModel.TransactionTypeCode == EtransferTransactionTypes.Credit && !RecurringModel.HasDDR) {\r\n\t\t\t\t\tif (RecurringModel.IsHaveQuestion && RecurringModel.IsHaveQuestion == true) {\r\n\t\t\t\t\t\tvRecurringModel.SecurityQuestion = RecurringModel.SecurityQuestion == null || RecurringModel.SecurityQuestion == 0;\r\n\t\t\t\t\t\tif (vRecurringModel.SecurityQuestion) recurringMessages.push(\"Security Question is not selected.\");\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tlet isTooShortSecurityQuestionAnswer = RecurringModel.SecurityQuestionAnswer?.length && RecurringModel.SecurityQuestionAnswer?.length < 3;\r\n\t\t\t\t\t\t\tvRecurringModel.SecurityQuestionAnswer = RecurringModel.SecurityQuestionAnswer == null || RecurringModel.SecurityQuestionAnswer == \"\" || isTooShortSecurityQuestionAnswer;\r\n\t\t\t\t\t\t\tif (vRecurringModel.SecurityQuestionAnswer) {\r\n\t\t\t\t\t\t\t\tif (!isTooShortSecurityQuestionAnswer)\r\n\t\t\t\t\t\t\t\t\trecurringMessages.push(\"Security Question Answer cannot be null.\");\r\n\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t\trecurringMessages.push(\"Security Question Answer cannot be smaller than 3 character\");\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tvRecurringModel.SecurityQuestionText = RecurringModel.SecurityQuestionText == null || RecurringModel.SecurityQuestionText == \"\" || RecurringModel.SecurityQuestionText?.length < 3;\r\n\t\t\t\t\t\tif (vRecurringModel.SecurityQuestionText) recurringMessages.push(RecurringModel.SecurityQuestionText?.length && RecurringModel.SecurityQuestionText?.length < 3 ? \"Security Question Text cannot be smaller than 3 character\" : \"Security Question is not defined.\");\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tlet isTooShortSecurityQuestionAnswer = RecurringModel.SecurityQuestionAnswer?.length && RecurringModel.SecurityQuestionAnswer?.length < 3;\r\n\t\t\t\t\t\t\tvRecurringModel.SecurityQuestionAnswer = RecurringModel.SecurityQuestionAnswer == null || RecurringModel.SecurityQuestionAnswer == \"\" || isTooShortSecurityQuestionAnswer;\r\n\t\t\t\t\t\t\tif (vRecurringModel.SecurityQuestionAnswer) {\r\n\t\t\t\t\t\t\t\tif (!isTooShortSecurityQuestionAnswer)\r\n\t\t\t\t\t\t\t\t\trecurringMessages.push(\"Security Question Answer cannot be null.\");\r\n\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t\trecurringMessages.push(\"Security Question Answer cannot be smaller than 3 character\");\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (recurringMessages.length > 0) {\r\n\t\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", recurringMessages.map((x, i) =>
{x}
));\r\n\t\t\t\t\tthis.setState({ vRecurringModel });\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\treturn true;\r\n\r\n\t\t\tdefault:\r\n\t\t\t\tthis.props.showMessage(\"warning\", \"Entry Type not selected\", \"Select Entry Type to continue.\");\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t}\r\n\r\n\tGetModel() {\r\n\t\tconst { model, FromFileModel, IndividualModel, RecurringModel } = this.state;\r\n\r\n\t\tswitch (model.EntryCode) {\r\n\t\t\tcase EtransferEntryType.FromFile: return { model, FromFileModel };\r\n\t\t\tcase EtransferEntryType.Individual: return { model, IndividualModel };\r\n\t\t\tcase EtransferEntryType.Recurring: return { model, RecurringModel };\r\n\t\t\tdefault: return null;\r\n\t\t}\r\n\t}\r\n\r\n\tFillData(data) {\r\n\t\tconst { model, FromFileModel, IndividualModel, RecurringModel } = data;\r\n\r\n\t\tswitch (model.EntryCode) {\r\n\t\t\tcase EtransferEntryType.FromFile: this.setState({ model, FromFileModel }); break;\r\n\t\t\tcase EtransferEntryType.Individual:\r\n\t\t\t\tIndividualModel.DateOfFunds = IndividualModel.DateOfFunds ? DateHelper.ToMoment(IndividualModel.DateOfFunds) : null;\r\n\t\t\t\tIndividualModel.MoneyReqExpDate = IndividualModel.MoneyReqExpDate ? DateHelper.ToMoment(IndividualModel.MoneyReqExpDate) : null;\r\n\t\t\t\tthis.setState({ model, IndividualModel });\r\n\t\t\t\tbreak;\r\n\t\t\tcase EtransferEntryType.Recurring:\r\n\t\t\t\tRecurringModel.StartDate = RecurringModel.StartDate ? DateHelper.ToMoment(RecurringModel.StartDate) : null;\r\n\t\t\t\tRecurringModel.EndDate = RecurringModel.EndDate ? DateHelper.ToMoment(RecurringModel.EndDate) : null;\r\n\t\t\t\tRecurringModel.FreezeStartDate = RecurringModel.FreezeStartDate ? DateHelper.ToMoment(RecurringModel.FreezeStartDate) : null;\r\n\t\t\t\tRecurringModel.FreezeEndDate = RecurringModel.FreezeEndDate ? DateHelper.ToMoment(RecurringModel.FreezeEndDate) : null;\r\n\t\t\t\tthis.setState({ model, RecurringModel });\r\n\t\t\t\tbreak;\r\n\t\t\tdefault: return;\r\n\t\t}\r\n\t}\r\n\r\n\tGetModelId() {\r\n\t\tconst { model, IndividualModel, RecurringModel } = this.state;\r\n\r\n\t\tswitch (model.EntryCode) {\r\n\t\t\tcase EtransferEntryType.FromFile: return null;\r\n\t\t\tcase EtransferEntryType.Individual: return IndividualModel.Id;\r\n\t\t\tcase EtransferEntryType.Recurring: return RecurringModel.Id;\r\n\t\t\tdefault: return null;\r\n\t\t}\r\n\t}\r\n\r\n\tLimitDataLoad(data) {\r\n\t\tthis.setState({ LimitBalanceData: data, isLoading: false });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, vModel, isLoading, alert, isFileDialogOpen, isIndividualDialogOpen, isRecurringDialogOpen, isClearDialogOpen, isFileResultDialogOpen, FileResultList, FromFileModel, vFromFileModel, IndividualModel, vIndividualModel, RecurringModel, vRecurringModel, LimitToken, addNewCustomerMenuId, idIndividualClientWarningOpen, UpdateRefreshIndividual, UpdateRefreshRecurring, CustomerStoreList } = this.state;\r\n\t\tconst { Disabled, history } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t{this.isClient && }\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\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t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"e-Transfer Type\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"ETransferType\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Customer Number\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"CustomerNumber\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Transaction Amount\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"TransactionAmount\",\r\n\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Date of Funds\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"DateFunds\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Transaction Expire Date\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"TransactionExpDate\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Security Question Text\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"SecurityQuestionText\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Security Question Answer\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"SecurityQuestionAnswer\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Starting From\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"StartingFrom\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"End Of Date\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"EndOfDate\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Frequency Type\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"FrequencyType\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Period Type\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"PeriodType\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Day Of Month Type\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"DayOfMonthType\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Day Of Month\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"DayOfMonth\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Day Of Week\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"DayOfWeek\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Week Of Month Type\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"WeekOfMonthType\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Week Of Month\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"WeekOfMonth\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Freeze Start Date\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"FreezeStartDate\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Freeze End Date\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"FreezeEndDate\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Transaction Description\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"TransactionDescription\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Customer Store Code\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"CustomerStoreCode\"\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\tData={FileResultList}\r\n\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_e_Transfer} />\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCreateEtransfer.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool,\r\n\tshowMessage: PropTypes.func\r\n};\r\n\r\nCreateEtransfer.defaultProps = {\r\n\tDisabled: false\r\n};\r\n\r\nexport default withArtifex(CreateEtransfer, createEtransferStyle);","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { EditIcon } from \"core/Icons\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport AccountLimitToolbar from \"views/Components/AccountLimitToolbar\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericCheckInput, GenericDateInput, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { ProgramCodes, GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass Errors extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tcheckedValues: [],\r\n\t\t\tlist: [],\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tcountModel: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tLimitToken: false\r\n\t\t};\r\n\r\n\t\tthis.HandleCheck = this.HandleCheck.bind(this);\r\n\t\tthis.HandleChange = this.HandleChange.bind(this);\r\n\t\tthis.HandleChangeItemCount = this.HandleChangeItemCount.bind(this);\r\n\t\tthis.HandleClear = this.HandleClear.bind(this);\r\n\r\n\t\tthis.HandleGetList = this.HandleGetList.bind(this);\r\n\t\tthis.SuccessListCallback = this.SuccessListCallback.bind(this);\r\n\t\tthis.ErrorListCallback = this.ErrorListCallback.bind(this);\r\n\r\n\t\tthis.GetItemCountCallback = this.GetItemCountCallback.bind(this);\r\n\t\tthis.SuccessItemCountCallback = this.SuccessItemCountCallback.bind(this);\r\n\t\tthis.ErrorItemCountCallback = this.ErrorItemCountCallback.bind(this);\r\n\r\n\t\tthis.HandleSubmit = this.HandleSubmit.bind(this);\r\n\t\tthis.SuccessSendCallback = this.SuccessSendCallback.bind(this);\r\n\t\tthis.ErrorSendCallback = this.ErrorSendCallback.bind(this);\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\t\tthis.GetItemCountCallback();\r\n\r\n\t\tif (setAppLeftTitle)\r\n\t\t\tsetAppLeftTitle(\"Error Transactions\");\r\n\t\tif (setAppCenterTitle)\r\n\t\t\tsetAppCenterTitle(\"Interac e-Transfer\");\r\n\r\n\t\tthis.RefreshToolBar();\r\n\t}\r\n\r\n\tRefreshToolBar = () => {\r\n\t\tthis.setState({ LimitToken: !this.state.LimitToken });\r\n\t}\r\n\r\n\tHandleCheck(e, x) {\r\n\t\tthis.setState(state => ({\r\n\t\t\tcheckedValues: state.checkedValues.includes(x)\r\n\t\t\t\t? state.checkedValues.filter(c => c !== x)\r\n\t\t\t\t: [...state.checkedValues, x]\r\n\t\t}));\r\n\t}\r\n\r\n\tHandleClear() {\r\n\t\tthis.setState({ model: this.initialModel });\r\n\t}\r\n\r\n\tHandleChange(name, value) {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tif (name == \"MainSearchItemId\")\r\n\t\t\tthis.initialModel[name] = value;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleChangeItemCount(name, value) {\r\n\t\tconst countModel = { ...this.state.countModel };\r\n\t\tcountModel[name] = value;\r\n\t\tthis.setState({ countModel });\r\n\t}\r\n\r\n\tHandleGetList() {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/BankInteracETransfer/SearchETransferTransactions\",\r\n\t\t\tthis.state.model,\r\n\t\t\tthis.SuccessListCallback,\r\n\t\t\tthis.ErrorListCallback\r\n\t\t);\r\n\t}\r\n\r\n\tSuccessListCallback(responseData) {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (responseData.Item !== null) {\r\n\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t} else {\r\n\t\t\tthis.setState({ list: [] });\r\n\t\t}\r\n\t}\r\n\r\n\tErrorListCallback(error) {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t}\r\n\r\n\tGetItemCountCallback() {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Transaction/GetETransferTransactionCountByStatus\",\r\n\t\t\t{},\r\n\t\t\tthis.SuccessItemCountCallback,\r\n\t\t\tthis.ErrorItemCountCallback\r\n\t\t);\r\n\t}\r\n\r\n\tSuccessItemCountCallback(responseData) {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.HandleChangeItemCount(\"RejectedFiles\", String(responseData.RejectedFiles));\r\n\t\tthis.HandleChangeItemCount(\"ErrorCount\", String(responseData.ErrorCount));\r\n\t}\r\n\r\n\tErrorItemCountCallback(error) {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t}\r\n\r\n\tHandleSubmit(model) {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/\",\r\n\t\t\tmodel,\r\n\t\t\tthis.SuccessSendCallback,\r\n\t\t\tthis.ErrorSendCallback\r\n\t\t);\r\n\t}\r\n\r\n\tSuccessSendCallback(responseData) {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.showSuccessMessage(\"Succeeded!\");\r\n\t}\r\n\r\n\tErrorSendCallback(error) {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t}\r\n\r\n\tShowMessage(type, title, message) {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode(type, title, message) {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, checkedValues, isLoading, model, list, LimitToken } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t model, FillDataFromModel: model => this.setState({ model }), ValidationFunction: this.Validate },\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t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\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t c.Id == row.original.Id).length > 0}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={(e) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.HandleCheck(e, row.original);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={!row.original.IsEditable} />\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t { RouteHelper.Push(this.props.history, \"/CreateEtransfer\", \"CreateEtransfer_Id\", row.original.Id); }} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsortable: false,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfilterable: false,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 100\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction ID\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ClientReferenceNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Source\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionSource.ParameterDesc\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Program\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Program.Description\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Type\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionType.ParameterDesc\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Settlement Type\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"PriorityType.ParameterDesc\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Customer Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ClientNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Name of Customer\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionAmount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Fee Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"FeeAmount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Status\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionStatus.ParameterDesc\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Sub-Status\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionCodeName\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Customer E-Mail\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"EMailAddress\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Error Code\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ErrorCode.ParameterDesc\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"File Id\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"FileId\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"File Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"FileName\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_e_Transfer} />\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nErrors.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default Errors;\r\n","import GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport { GenericTitle, GenericTextInput, GenericSelectInput, GenericAlert } from \"views/Components/Generic\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\n\r\nclass CorporateAccountDetail extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\tIsCustomer: 0\r\n\t\t};\r\n\t\tthis.GetProfileInfo = this.GetProfileInfo.bind(this);\r\n\t\tthis.handleCustomerProfileInfo = this.handleCustomerProfileInfo.bind(this);\r\n\r\n\t\tthis.ShowMessage = this.ShowMessage.bind(this);\r\n\t\tthis.hideAlert = this.hideAlert.bind(this);\r\n\t\tthis.errorDefinitionCallback = this.errorDefinitionCallback.bind(this);\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.GetProfileInfo();\r\n\t}\r\n\tGetProfileInfo() {\r\n\t\t//GetCustomerBankAccountsOp class\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/BankCustomer/GetProfileInfo\",\r\n\t\t\t{},\r\n\t\t\tthis.handleCustomerProfileInfo,\r\n\t\t\tthis.errorDefinitionCallback\r\n\t\t);\r\n\t}\r\n\thandleCustomerProfileInfo(responseData) {\r\n\t\tconsole.log(\"customerAccountProfile\", responseData.IsSucceeded + \"\");\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error !\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t} else {\r\n\t\t\tif (responseData.Item != null) {\r\n\t\t\t\tif (!responseData.Item.IsCustomer) {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tmodel: responseData.Item.Corporate || {},\r\n\t\t\t\t\t\tIsCustomer: 2\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}\r\n\r\n\terrorDefinitionCallback(error) {\r\n\t\tthis.ShowMessage(\"error\", \"Error !\", \"An error occurred while requesting data\" + error);\r\n\t}\r\n\tShowMessage(type, title, message) {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\thideAlert() {\r\n\t\tthis.setState({\r\n\t\t\talert: null\r\n\t\t});\r\n\t}\r\n\trender() {\r\n\t\tconst { model } = this.state;\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t \r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
Communication
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t \"+\" + d.Code + \" (\" + d.Name + \")\"}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t \"+\" + d.Code + \" (\" + d.Name + \")\"}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCorporateAccountDetail.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tmodel: PropTypes.object\r\n};\r\n\r\nexport default CorporateAccountDetail;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport AccountLimitToolbar from \"views/Components/AccountLimitToolbar\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport { GridColumnType, ProgramCodes,EtransferApplicationTypes } from \"views/Constants/Constant.js\";\r\n\r\nclass BulkFiles extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.isBackOffice = ClientHelper.IsBackOffice();\r\n\t\t\r\n\t\tthis.initialModel = {\r\n\t\t\tUniqueClientId: this.isBackOffice ? null : ClientHelper.GetClientRowId(),\r\n\t\t\tFromDate: DateHelper.GetDate(),\r\n\t\t\tToDate: DateHelper.GetDate(),\r\n\t\t\tFileStatusId: null,\r\n\t\t\tFileName: null,\r\n\t\t\tReferenceNumber: null,\r\n\t\t\tIsUniqueDataSearch: false\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\ttransactionList: [],\r\n\t\t\tfileList: [],\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tvModel: {}\r\n\t\t};\r\n\r\n\t\tthis.bulkFilesColumns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"File Date\",\r\n\t\t\t\taccessor: \"FileDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Unique Client Id\",\r\n\t\t\t\taccessor: \"ClientNumber\",\r\n\t\t\t\tshow: this.isBackOffice\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\",\r\n\t\t\t\tshow: this.isBackOffice\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"File Name\",\r\n\t\t\t\taccessor: \"FileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"File Source\",\r\n\t\t\t\taccessor: \"FileSource\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"File Status\",\r\n\t\t\t\taccessor: \"FileStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Record Count\",\r\n\t\t\t\taccessor: \"RecordCount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reject Count\",\r\n\t\t\t\taccessor: \"RejectCount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Nr of Credit Trans.\",\r\n\t\t\t\taccessor: \"TotalNumberCredit\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Credit Amount\",\r\n\t\t\t\taccessor: \"TotalAmountCredit\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Fee Credit Amount\",\r\n\t\t\t\taccessor: \"TotalFeeAmountCredit\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Nr of Debit Trans.\",\r\n\t\t\t\taccessor: \"TotalNumberDebit\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Debit Amount\",\r\n\t\t\t\taccessor: \"TotalAmountDebit\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Fee Debit Amount\",\r\n\t\t\t\taccessor: \"TotalFeeAmountDebit\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t}\r\n\r\n\t\t];\r\n\r\n\t\tthis.transactionColumns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\ttype: GridColumnType.DateTimeUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Unique Client Id\",\r\n\t\t\t\taccessor: \"ClientNumber\",\r\n\t\t\t\tshow: this.isBackOffice\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\",\r\n\t\t\t\tshow: this.isBackOffice\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\" ,\r\n\t\t\t\taccessor: \"SenderName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Number\",\r\n\t\t\t\taccessor: \"ClientCustomerNumber\"\r\n\t\t\t\t\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transfer Type\",\r\n\t\t\t\taccessor: \"TransactionType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer EMail\",\r\n\t\t\t\taccessor: \"CustomerEmail\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"TransactionAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Fee Amount\",\r\n\t\t\t\taccessor: \"FeeAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transfer Status\",\r\n\t\t\t\taccessor: \"BankTransactionStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Interac Status\",\r\n\t\t\t\taccessor: \"InteracStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Description\",\r\n\t\t\t\taccessor: \"TransactionMemo\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Settlement Type\",\r\n\t\t\t\taccessor: \"SettlementType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Deferred\",\r\n\t\t\t\taccessor: \"IsDefered\",\r\n\t\t\t\tCell: row => row.value == true ? \"Yes\" : \"No\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Expire Date\",\r\n\t\t\t\taccessor: \"ExpireDate\",\r\n\t\t\t\ttype: GridColumnType.DateTimeUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Interac Ref. Number\",\r\n\t\t\t\taccessor: \"TransferReferenceNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Insert Date\",\r\n\t\t\t\taccessor: \"RequestDate\",\r\n\t\t\t\ttype: GridColumnType.DateTimeUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Source\",\r\n\t\t\t\taccessor: \"TransactionSource\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Store Code\",\r\n\t\t\t\taccessor: \"StoreName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Application\",\r\n\t\t\t\taccessor: \"ApplicationId\",\r\n\t\t\t\tCell: row => {\r\n\t\t\t\t\tvar rowValue = \"\";\r\n\t\t\t\t\tEtransferApplicationTypes && EtransferApplicationTypes.forEach(item => {\r\n\t\t\t\t\t\tif (item.Value == row.value)\r\n\t\t\t\t\t\t\trowValue = item.Text;\r\n\t\t\t\t\t});\r\n\t\t\t\t\treturn rowValue;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Insert User\",\r\n\t\t\t\taccessor: \"InsertUser\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reference Number\",\r\n\t\t\t\taccessor: \"ParticipantReferenceNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Error Description\",\r\n\t\t\t\taccessor: \"ErrorDesc\"\r\n\t\t\t}\r\n\r\n\t\t];\r\n\r\n\t\tthis.transactionColumns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\ttype: GridColumnType.DateTimeUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Unique Client Id\",\r\n\t\t\t\taccessor: \"ClientNumber\",\r\n\t\t\t\tshow: this.isBackOffice\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\",\r\n\t\t\t\tshow: this.isBackOffice\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\" ,\r\n\t\t\t\taccessor: \"SenderName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Number\",\r\n\t\t\t\taccessor: \"ClientCustomerNumber\"\r\n\t\t\t\t\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transfer Type\",\r\n\t\t\t\taccessor: \"TransactionType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer EMail\",\r\n\t\t\t\taccessor: \"CustomerEmail\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"TransactionAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Fee Amount\",\r\n\t\t\t\taccessor: \"FeeAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transfer Status\",\r\n\t\t\t\taccessor: \"BankTransactionStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Interac Status\",\r\n\t\t\t\taccessor: \"InteracStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Description\",\r\n\t\t\t\taccessor: \"TransactionMemo\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Settlement Type\",\r\n\t\t\t\taccessor: \"SettlementType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Deferred\",\r\n\t\t\t\taccessor: \"IsDefered\",\r\n\t\t\t\tCell: row => row.value == true ? \"Yes\" : \"No\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Expire Date\",\r\n\t\t\t\taccessor: \"ExpireDate\",\r\n\t\t\t\ttype: GridColumnType.DateTimeUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Interac Ref. Number\",\r\n\t\t\t\taccessor: \"TransferReferenceNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Insert Date\",\r\n\t\t\t\taccessor: \"RequestDate\",\r\n\t\t\t\ttype: GridColumnType.DateTimeUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Source\",\r\n\t\t\t\taccessor: \"TransactionSource\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Store Code\",\r\n\t\t\t\taccessor: \"StoreName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Application\",\r\n\t\t\t\taccessor: \"ApplicationId\",\r\n\t\t\t\tCell: row => {\r\n\t\t\t\t\tvar rowValue = \"\";\r\n\t\t\t\t\tEtransferApplicationTypes && EtransferApplicationTypes.forEach(item => {\r\n\t\t\t\t\t\tif (item.Value == row.value)\r\n\t\t\t\t\t\t\trowValue = item.Text;\r\n\t\t\t\t\t});\r\n\t\t\t\t\treturn rowValue;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Insert User\",\r\n\t\t\t\taccessor: \"InsertUser\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reference Number\",\r\n\t\t\t\taccessor: \"ParticipantReferenceNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Error Description\",\r\n\t\t\t\taccessor: \"ErrorDesc\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\r\n\r\n\t\tthis.sortedFilesByDate = [{ id: \"FileDate\", desc: true }];\r\n\t\tthis.sortedTransactionsByDate = [{ id: \"TransactionDate\", desc: true }];\r\n\t\tthis.emptyObject = {};\r\n\t\tthis.genericSelectFileStatusParameter = {\r\n\t\t\tParameterCode: \"BankFileStatus\"\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\t\tif (setAppLeftTitle)\r\n\t\t\tsetAppLeftTitle(\"Bulk Files\");\r\n\t\tif (setAppCenterTitle)\r\n\t\t\tsetAppCenterTitle(\"eTransfer SYSTEM\");\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ vModel: {}, model: { ...this.initialModel },transactionList:[],fileList:[] });\r\n\t}\r\n\tHandleChange = (name, value) => {\r\n\t\tthis.setState(function (state) {\r\n\t\t\tvar model = state.model || {};\r\n\t\t\tmodel[name] = value;\r\n\t\t\tif (name == \"ReferenceNumber\" || name == \"FileName\") {\r\n\t\t\t\tmodel.IsUniqueDataSearch = value?.length > 0;\r\n\t\t\t}\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tHandleSearch = async () => {\r\n\r\n\t\tif (!this.Validate()) return;\r\n\t\tvar result = await this.props.ExecuteApiPost(\"/bankapi/v1.0/BankInteracETransferFile/SearchETransferBulkFile\", this.state.model);\r\n\t\tthis.setState({ fileList: result || [] ,transactionList: [] });\r\n\t}\r\n\r\n\tHandleRowSelectedBulkFile = async (index) => {\r\n\r\n\t\tvar file = this.state.fileList[index];\r\n\t\tvar result = await this.props.ExecuteApiPost(\"/bankapi/v1.0/BankInteracETransferFile/SearchETransferBulkFileTransactions\", file.Id);\r\n\t\tthis.setState({ transactionList: result || [] });\r\n\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\r\n\t\tvar messages = [];\r\n\t\tif (!model.IsUniqueDataSearch) {\r\n\t\t\tif ((vModel.UniqueClientId = !model.UniqueClientId)) messages.push(\"Client not selected\", \"Select Client to continue\");\r\n\t\t\tif ((vModel.FromDate = !model.FromDate)) messages.push(\"From Date not selected\", \"Select From Date to continue\");\r\n\t\t\tif ((vModel.ToDate = !model.ToDate)) messages.push(\"To Date not selected\", \"Select To Date to continue\");\r\n\r\n\t\t\tvar diffMonths = model.ToDate.diff(model.FromDate, \"days\");\r\n\t\t\tif ((vModel.Date = diffMonths < 0)) messages.push(\"To Date must be later than From Date\", \"To Date must be later than From Date\");\r\n\t\t\tif ((vModel.Date = diffMonths > 30)) messages.push(\"Difference between From Date and To Date cannot be longer than 30 days\");\r\n\t\t}\r\n\t\tthis.setState({ vModel });\r\n\t\tif (messages.length != 0) {\r\n\r\n\t\t\tthis.props.showValidationErrors(messages);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, vModel, isBackOffice } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\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\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nBulkFiles.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default BulkFiles;\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes, { bool, func } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport GridContainer from \"components/Grid/GridContainer\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { GridColumnType, EtransferApplicationTypes, ProgramCodes } from \"views/Constants/Constant\";\r\nimport AccountLimitToolbar from \"views/Components/AccountLimitToolbar\";\r\n\r\nclass FraudCheckResults extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tToDate: DateHelper.GetDate(),\r\n\t\t\t\tFromDate: DateHelper.GetDate(),\r\n\t\t\t\tClientId: 0\r\n\t\t\t},\r\n\t\t\tgetDataList: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tisBackOffice: false,\r\n\t\t\tNowDate: DateHelper.GetDate(),\r\n\t\t\tclientId: 0,\r\n\t\t\tvIndividualModel: {},\r\n\t\t\tLimitToken: false\r\n\t\t};\r\n\t\tthis.isClient = ClientHelper.IsClient();\r\n\t\tthis.sortedByDate = [{ id: \"Date\", desc: true }];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Fraud Check Results\");\r\n\t\tthis.props.setAppCenterTitle(\"INTERAC E-TRANSFER\");\r\n\t\tvar model = { ...this.state.model };\r\n\t\tvar { isBackOffice, clientId } = this.state;\r\n\t\tisBackOffice = ClientHelper.IsBackOffice();\r\n\t\tif (!isBackOffice) {\r\n\t\t\tmodel.ClientId = ClientHelper.GetClientRowId();\r\n\t\t\tclientId = ClientHelper.GetClientRowId();\r\n\t\t}\r\n\t\tthis.setState({ model, isBackOffice, clientId });\r\n\t}\r\n\r\n\tRefreshToolBar = () => {\r\n\t\tthis.setState({ LimitToken: !this.state.LimitToken });\r\n\t}\r\n\thandleChange = (name, newValue) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model || {};\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\tValidate = () => {\r\n\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tif (typeof model.FromDate != \"object\" && model.FromDate != \"\" && model.FromDate != null) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Start Date is invalid\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (typeof model.ToDate != \"object\" && model.ToDate != \"\" && model.ToDate != null) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"End Date is invalid\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif ((typeof model.FromDate == \"object\" && typeof model.ToDate == \"object\") && model.ToDate < model.FromDate) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Start Date cannot be bigger than End Date\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\tGetData = () => {\r\n\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/BankInteracETransfer/GetFraudChecks\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item == null || responseData.Item.length < 1) {\r\n\t\t\t\t\tthis.setState({ getDataList: [], isLoading: false });\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tgetDataList: responseData.Item.TransactionList == null || undefined ? [] : responseData.Item.TransactionList, isLoading: false\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", \"An error occurred during the api visit\" + error);\r\n\t\t\t}\r\n\t\t);\r\n\r\n\t}\r\n\tshowErrorMessage = (message) => {\r\n\t\tthis.setState({\r\n\t\t\tisLoading: false,\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\tisLoading: false,\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\r\n\thandleClear = () => { this.setState({ model: { ToDate: DateHelper.GetDate(), FromDate: DateHelper.GetDate(), ClientId: this.state.clientId }, getDataList: [] }); }\r\n\thideAlert() { this.setState({ alert: null }); }\r\n\tshowLoading = () => { this.setState({ alert: null, isLoading: true }); }\r\n\thideLoading = () => { this.setState({ alert: null, isLoading: false }); }\r\n\thileCancelDialog = () => { this.setState({ cancelDialog: false }); }\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, isLoading, isBackOffice, NowDate, LimitToken } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\t\t\t\t{this.isClient && }\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\tValue={model.ClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\tDisabled={!isBackOffice} />\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\tvar rowValue = \"\";\r\n\t\t\t\t\t\t\t\t\t\t\t\tEtransferApplicationTypes && EtransferApplicationTypes.forEach(item => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (item.Value == row.value)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\trowValue = item.Text;\r\n\t\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn rowValue;\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\tSorted={this.sortedByDate}\r\n\t\t\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_e_Transfer} />\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nFraudCheckResults.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: func,\r\n\tsetAppCenterTitle: func,\r\n\tDisabled: bool\r\n};\r\n\r\nexport default withArtifex(FraudCheckResults, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericDateInput, GenericNumberInput, GenericSelectInput,} from \"views/Components/Generic\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { MenuCodes } from \"views/Constants/Constant.js\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\n\r\n\r\nclass InteracUrl extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n let IsSwitchReport = this.props.MenuCode == MenuCodes.Menu_SwitchReport;\r\n this.emptyObject = {};\r\n this.sortedName = { Member: \"Name\" };\r\n this.initialModel = {\r\n Id: 0,\r\n UniqueClientId: ClientHelper.IsClient()\r\n ? ClientHelper.GetClientRowId()\r\n : undefined,\r\n Customer: null,\r\n DefaultAccount: null,\r\n PaymentStatusId: null,\r\n ToDate: null,\r\n FromDate: null,\r\n CardTokenNumber: null,\r\n CustomerNumber: null,\r\n ReferenceNumber: null,\r\n };\r\n this.isClient = ClientHelper.IsClient();\r\n this.parameterUniqueClientId = {\r\n UniqueClientId: this.isClient ? ClientHelper.GetClientId() : undefined,\r\n };\r\n\r\n this.columns = [\r\n {\r\n Header: \"Url\",\r\n accessor: \"Url\",\r\n width: 500,\r\n },\r\n {\r\n Header: \"Amount\",\r\n accessor: \"TransactionAmount\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Contact Name\",\r\n accessor: \"ContactName\",\r\n },\r\n\t\t{\r\n\t\t\tHeader: \"Customer Number\",\r\n\t\t\taccessor: \"ClientCustomerNumber\",\r\n\t\t },\r\n {\r\n Header: \"Transaction Status\",\r\n accessor: \"TransactionStatus\",\r\n },\r\n {\r\n Header: \"Reference Number\",\r\n accessor: \"ReferenceNumber\",\r\n },\r\n {\r\n Header: \"Transaction Type\",\r\n accessor: \"TransactionType\",\r\n },\r\n {\r\n Header: \"Interac Referans Number\",\r\n accessor: \"InteracReferansNumber\",\r\n },\r\n {\r\n Header: \"Transaction Date\",\r\n accessor: \"TransactionDate\",\r\n type: GridColumnType.DateUtc,\r\n },\r\n ];\r\n\r\n this.state = {\r\n // model: {},\r\n model: this.initialModel,\r\n isLoading: false,\r\n checkedAccounts: [],\r\n ClientTypeParameter: {},\r\n panelTransactionIsActive: false,\r\n list: [],\r\n isBackOffice: ClientHelper.IsBackOffice(),\r\n };\r\n }\r\n\r\n componentDidMount() {\r\n const { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n if (setAppCenterTitle) {\r\n setAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n }\r\n if (setAppLeftTitle) {\r\n setAppLeftTitle(\"Interac Url\");\r\n }\r\n }\r\n\r\n ValueChanged = (name, value) => {\r\n const model = { ...this.state.model };\r\n model[name] = value;\r\n\r\n this.setState({ model });\r\n };\r\n\r\n RenderItemUniqueClient = (d) => {\r\n this.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n return this.renderItemUniqueClient;\r\n };\r\n\r\n Search = async () => {\r\n if (!this.Validate()) return;\r\n const { ExecuteApiPost } = this.props;\r\n const model = { ...this.state.model };\r\n const request = {\r\n FromDate: model.FromDate,\r\n ToDate: model.ToDate,\r\n CustomerNumber:\r\n model.Customer == null ? null : model.Customer.CustomerNumber,\r\n UniqueClientId: model.UniqueClientId,\r\n ReferenceNumber: model.ReferenceNumber,\r\n };\r\n var result = await ExecuteApiPost(\r\n \"/bankapi/v1.0/Transaction/InteracUrlApi\",\r\n request,\r\n null,\r\n null,\r\n null\r\n );\r\n\r\n if (result != null) {\r\n this.setState({ list: result || [] });\r\n }\r\n };\r\n\r\n Clear = () => {\r\n this.setState({ model: {}, list: [], selected: null, checkedAccounts: [] });\r\n };\r\n\r\n Validate = () => {\r\n var { model } = this.state;\r\n const { showValidationErrors } = this.props;\r\n var errors = [];\r\n if (errors.length > 0) {\r\n showValidationErrors(errors);\r\n\r\n return false;\r\n }\r\n\r\n return true;\r\n };\r\n\r\n GetRenderItemUniqueClient = (x) => {\r\n this.renderItemUniqueClient = `${x.Name} - ${x.UniqueClientId}`;\r\n return this.renderItemUniqueClient;\r\n };\r\n\r\n handleChange = (name, newValue, data) => {\r\n const model = {\r\n ...this.state.model,\r\n };\r\n model[name] = newValue;\r\n this.setState({ model });\r\n };\r\n handleChangeForCustomer = (name, newValue) => {\r\n const model = { ...this.state.model };\r\n const initialModel = { ...this.initialModel };\r\n if (name === \"Customer\") {\r\n if (newValue != null) {\r\n model.Customer = newValue;\r\n if (newValue.Accounts != null && newValue.Accounts.length > 0) {\r\n model.CustomerNumber = newValue.Accounts[0].CustomerNumber;\r\n } else {\r\n model.CustomerNumber = null;\r\n }\r\n } else {\r\n model.Customer = initialModel.Customer;\r\n }\r\n }\r\n this.setState({ model });\r\n };\r\n HandleClear = () => {\r\n this.setState({\r\n model: this.initialModel,\r\n filterModel: {},\r\n selected: null,\r\n list: [],\r\n });\r\n };\r\n\r\n FillCustomer = (customer) => {\r\n this.handleChange(\"Customer\", customer);\r\n };\r\n render() {\r\n const { model, model2, list, panelTransactionIsActive, isBackOffice } =\r\n this.state;\r\n const { Disabled } = this.props;\r\n\r\n return (\r\n
\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\nInteracUrl.propTypes = {\r\n setAppLeftTitle: PropTypes.func,\r\n setAppCenterTitle: PropTypes.func,\r\n ExecuteApiPost: PropTypes.func,\r\n Disabled: PropTypes.bool,\r\n menuId: PropTypes.any,\r\n ApprovalData: PropTypes.any,\r\n After: PropTypes.any,\r\n};\r\n\r\nexport default InteracUrl;\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { EditIcon } from \"core/Icons\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport AccountLimitToolbar from \"views/Components/AccountLimitToolbar\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { GridColumnType, ProgramCodes, TransactionOrderStatus, MenuCodes } from \"views/Constants/Constant.js\";\r\n\r\nclass Transactions extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.isClient = ClientHelper.IsClient();\r\n\t\tthis.initialModel = {\r\n\t\t\tUniqueClientId: this.isClient ? ClientHelper.GetClientRowId() : null,\r\n\t\t\tStartingFromDate: DateHelper.GetDate(),\r\n\t\t\tEndOfDate: DateHelper.GetDate()\r\n\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tlist: [],\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tcountModel: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tLimitToken: false,\r\n\t\t\tSelectedRowIndex: undefined,\r\n\t\t\tSelectedRow: {}\r\n\t\t};\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t { RouteHelper.Push(this.props.history, \"/CreateEtransfer\", \"CreateEtransfer_RecurringId\", row.original.Id); }} />\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\twidth: 60,\r\n\t\t\t\tshow: this.isClient\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Unique Client Id\",\r\n\t\t\t\taccessor: \"ClientNumber\",\r\n\t\t\t\tshow: !this.isClient\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\",\r\n\t\t\t\tshow: !this.isClient\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Type\",\r\n\t\t\t\taccessor: \"TransactionTypeDescription\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Settlement Type\",\r\n\t\t\t\taccessor: \"PriorityTypeDescription\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Name of Customer\",\r\n\t\t\t\taccessor: \"PayeeName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"TransactionAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Fee Amount\",\r\n\t\t\t\taccessor: \"FeeAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Order Status\",\r\n\t\t\t\taccessor: \"TransactionOrderStatusDescription\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Frequency Type\",\r\n\t\t\t\taccessor: \"FrequencyTypeDescription\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Start Date\",\r\n\t\t\t\taccessor: \"StartingFromDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"End Date\",\r\n\t\t\t\taccessor: \"EndOfDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Payment Count\",\r\n\t\t\t\taccessor: \"NumberOfPayments\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"CompletedPaymentCount\",\r\n\t\t\t\taccessor: \"CompletedPayments\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Remaining Payment Count\",\r\n\t\t\t\taccessor: \"RemainingPayments\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Last Payment Status\",\r\n\t\t\t\taccessor: \"LastPaymentStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Freeze From Date\",\r\n\t\t\t\taccessor: \"FreezeFromDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Freeze To Date\",\r\n\t\t\t\taccessor: \"FreezeToDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\t\t\t\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Store\",\r\n\t\t\t\taccessor: \"CustomerStore\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Last Error Status\",\r\n\t\t\t\taccessor: \"LastCheckStatus\"\r\n\t\t\t}\r\n\t\t]\r\n\t\tthis.sortedByDate = [{ id: \"StartingFromDate\", desc: true }];\r\n\r\n\t\tthis.HandleClear = this.HandleClear.bind(this);\r\n\t\tthis.HandleChange = this.HandleChange.bind(this);\r\n\r\n\t\tthis.HandleGetList = this.HandleGetList.bind(this);\r\n\t\tthis.HandleCancel = this.HandleCancel.bind(this);\r\n\t\tthis.Cancel = this.Cancel.bind(this);\r\n\t\tthis.SuccessListCallback = this.SuccessListCallback.bind(this);\r\n\t\tthis.ErrorListCallback = this.ErrorListCallback.bind(this);\r\n\t\tthis.RowSelected = this.RowSelected.bind(this);\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tif (this.props.MenuCode == MenuCodes.Transactions_BackofficeEtransferRecurringTransactionSearch) {\r\n\t\t\t\tsetAppLeftTitle(\"Recurring Transaction\");\r\n\t\t\t} else {\r\n\t\t\t\tsetAppLeftTitle(\"Recurring Transaction Search\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (setAppCenterTitle)\r\n\t\t\tsetAppCenterTitle(\"Interac e-Transfer\");\r\n\r\n\t\tthis.RefreshToolBar();\r\n\t}\r\n\r\n\tRefreshToolBar = () => {\r\n\t\tthis.setState({ LimitToken: !this.state.LimitToken });\r\n\t}\r\n\r\n\tHandleClear() {\r\n\t\tthis.setState({ model: this.initialModel, list: [] });\r\n\t}\r\n\r\n\tHandleChange(name, value) {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleGetList() {\r\n\r\n\t\tif (!this.IsValid())\r\n\t\t\treturn;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/BankInteracETransfer/SearchRecurringETransferTransactions\",\r\n\t\t\tthis.state.model,\r\n\t\t\tthis.SuccessListCallback,\r\n\t\t\tthis.ErrorListCallback\r\n\t\t);\r\n\t}\r\n\r\n\tIsValid = () => {\r\n\t\tvar vmodel = { ...this.state.model };\r\n\t\tif (typeof vmodel.StartingFromDate != \"object\" && vmodel.StartingFromDate != \"\" && vmodel.StartingFromDate != null) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"From Date is invalid\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (typeof vmodel.EndOfDate != \"object\" && vmodel.EndOfDate != \"\" && vmodel.EndOfDate != null) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"To Date is invalid\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif ((typeof vmodel.StartingFromDate == \"object\" && typeof vmodel.EndOfDate == \"object\") && vmodel.EndOfDate < vmodel.StartingFromDate) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"From Date cannot be bigger than To Date\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\tHandleCancel() {\r\n\t\tconst { SelectedRow } = this.state;\r\n\t\tvar status = SelectedRow.TransactionOrderStatusValue;\r\n\t\tif (status != TransactionOrderStatus.Working && status != TransactionOrderStatus.Pending) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"You can only cancel working or pending recurring transactions\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.props.showConfirmMessage(\"warning\", \"Recurring Transaction Cancel Confirmation\", \"Are you sure to cancel this recurring transaction?\", () => { this.Cancel(); });\r\n\t}\r\n\r\n\tCancel() {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/BankInteracETransfer/CancelRecurringRequest\",\r\n\t\t\t{ Id: this.state.SelectedRow.Id },\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while cancelling recurring transaction\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.props.showMessage(\"info\", \"Recurring Transaction Cancelled.\");\r\n\r\n\t\t\t\tthis.HandleGetList();\r\n\r\n\t\t\t\tthis.setState({ SelectedRow: undefined, SelectedRowIndex: undefined });\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while cancelling recurring transaction\", errorMessage);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tSuccessListCallback(responseData) {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (responseData.Item !== null) {\r\n\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t} else {\r\n\t\t\tthis.setState({ list: [] });\r\n\t\t}\r\n\t}\r\n\r\n\tErrorListCallback(error) {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t}\r\n\r\n\tShowMessage(type, title, message) {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode(type, title, message) {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tRowSelected(index) {\r\n\t\tthis.setState({ SelectedRowIndex: index, SelectedRow: this.state.list[index] });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, isLoading, model, list, LimitToken, SelectedRowIndex } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.isClient && }\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={Disabled || this.isClient} />\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n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t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nTransactions.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default Transactions;\r\n","import { DialogContent, DialogTitle, Typography } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport {\r\n DeleteIcon,\r\n EditIcon,\r\n InformationIcon,\r\n SubmitOrSendIcon,\r\n SuspiciousIcon,\r\n TraceIcon,\r\n UploadIcon,\r\n} from \"core/Icons\";\r\nimport MenuAuthorityRightHelper from \"core/MenuAuthorityRightHelper\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport Select from \"react-select\";\r\nimport AccountLimitToolbar from \"views/Components/AccountLimitToolbar\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport {\r\n GenericAlert,\r\n GenericDateInput,\r\n GenericDialog,\r\n GenericDialogActions,\r\n GenericExpansionPanel,\r\n GenericGrid,\r\n GenericLabel,\r\n GenericNumberInput,\r\n GenericSelectInput,\r\n GenericTextInput,\r\n GenericTitle,\r\n GenericRadioInput,\r\n} from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport {\r\n ActionCodes,\r\n ApprovalStatus,\r\n BankTransactionStatus,\r\n Direction,\r\n EtransferApplicationTypes,\r\n ETransferMoneyRequestStatus,\r\n ETransferMoneySendStatus,\r\n GridColumnType,\r\n MenuCodes,\r\n ProgramCodes,\r\n} from \"views/Constants/Constant.js\";\r\nimport Logo from \"../../../assets/img/logo.png\";\r\nclass Transactions extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n\r\n this.isClient = ClientHelper.IsClient();\r\n this.clientRowId = ClientHelper.GetClientRowId();\r\n this.clientId = ClientHelper.GetClientId();\r\n this.isBackOffice = ClientHelper.IsBackOffice();\r\n this.isSalesPerson = ClientHelper.IsSalesPerson();\r\n\r\n this.isCallCenter =\r\n props.MenuCode === MenuCodes.CallCenterEtransferTransactions;\r\n\r\n this.initialModel = {\r\n UniqueClientId:\r\n this.isBackOffice || this.isSalesPerson ? undefined : this.clientRowId,\r\n MainSearchItemId: -1,\r\n SearchEndDate: DateHelper.GetDate(),\r\n SearchStartDate: DateHelper.GetDate(),\r\n RefNo: undefined,\r\n InteracRefNo: undefined,\r\n ResponseReferenceNumber: undefined,\r\n PayeeEmail: undefined,\r\n TransactionId: undefined,\r\n jsonFile: undefined,\r\n searchIsNotSpecific: true,\r\n SettlementStatusId: undefined,\r\n SettlementDate: undefined,\r\n };\r\n\r\n this.state = {\r\n model: this.initialModel,\r\n countModel: {},\r\n isLoading: false,\r\n mainSearchItem: this.props.MainSearchItem,\r\n LimitToken: false,\r\n suspiciousDialog: false,\r\n vIndividualModel: {},\r\n gridButtonRightDetail: [],\r\n isInfoDialogOpen: false,\r\n infoDialogData: {},\r\n };\r\n\r\n this.trxTable = React.createRef();\r\n\r\n this.MenuAuthorityRightHelper = new MenuAuthorityRightHelper();\r\n\r\n this.sortedByDate = [{ id: \"TransactionDate\", desc: true }];\r\n this.sortedByFileDate = [{ id: \"FileDate\", desc: true }];\r\n\r\n this.renderItemStoreName = {};\r\n }\r\n\r\n componentDidMount() {\r\n const { setAppLeftTitle, setAppCenterTitle, MenuCode } = this.props;\r\n\r\n if (\r\n MenuCode == MenuCodes.Backoffice_SalesPersonETransferTransactionSearch\r\n ) {\r\n if (setAppLeftTitle) setAppLeftTitle(\"Transaction Search\");\r\n if (setAppCenterTitle) setAppCenterTitle(\"SALES PERSON\");\r\n } else if (MenuCode == MenuCodes.CallCenterEtransferTransactions) {\r\n if (setAppLeftTitle) setAppLeftTitle(\"e-Transfer Transaction Search\");\r\n if (setAppCenterTitle) setAppCenterTitle(\"CALL CENTER\");\r\n this.GetGridButtonsRight();\r\n } else {\r\n if (setAppLeftTitle) setAppLeftTitle(\"e-Transfer Transactions\");\r\n if (setAppCenterTitle) setAppCenterTitle(\"INTERAC E-TRANSFER\");\r\n }\r\n\r\n var data = RouteHelper.ReadAndClear(\"eTransferTransactionSearch_Date\");\r\n\r\n if (data) {\r\n const { model } = this.state;\r\n model.SearchStartDate =\r\n typeof data.FromDate === \"string\"\r\n ? new Date(data.FromDate)\r\n : data.FromDate;\r\n model.SearchEndDate =\r\n typeof data.ToDate === \"string\" ? new Date(data.ToDate) : data.ToDate;\r\n model.IsSettled = data.IsSettled;\r\n this.setState({ model });\r\n this.HandleGetList();\r\n }\r\n\r\n this.RefreshToolBar();\r\n this.setState({ loadingCompleted: true });\r\n }\r\n\r\n RefreshToolBar = () => {\r\n this.setState({ LimitToken: !this.state.LimitToken });\r\n };\r\n\r\n HandleClear = () => {\r\n this.setState({ model: this.initialModel });\r\n };\r\n\r\n HandleChange = (name, value, data) => {\r\n const model = { ...this.state.model };\r\n model[name] = value;\r\n var searchIsNotSpecific =\r\n (model.RefNo == undefined || model.RefNo == null || model.RefNo == \"\") &&\r\n (model.InteracRefNo == undefined ||\r\n model.InteracRefNo == null ||\r\n model.InteracRefNo == \"\") &&\r\n (model.ResponseReferenceNumber == undefined ||\r\n model.ResponseReferenceNumber == null ||\r\n model.ResponseReferenceNumber == \"\") &&\r\n (model.PayeeEmail == undefined ||\r\n model.PayeeEmail == null ||\r\n model.PayeeEmail == \"\") &&\r\n (model.TransactionId == undefined ||\r\n model.TransactionId == null ||\r\n model.TransactionId == 0);\r\n\r\n model[\"searchIsNotSpecific\"] = searchIsNotSpecific;\r\n\r\n if (name == \"MainSearchItemId\" && data)\r\n this.setState({ mainSearchItem: data.ParameterValue });\r\n\r\n if (name == \"MainSearchItemId\" && value == null) {\r\n model[name] = -1;\r\n }\r\n if (name == \"PriorityTypeId\" && value == null) {\r\n model[name] = -1;\r\n }\r\n if (name == \"TransactionSourceId\" && value == null) {\r\n model[name] = -1;\r\n }\r\n if (name == \"TransactionTypeId\" && value == null) {\r\n model[name] = -1;\r\n }\r\n if (name == \"StoreId\" && value == null) {\r\n model[name] = -1;\r\n }\r\n this.setState({ model });\r\n };\r\n\r\n ValueChanged = (name, value) => {\r\n this.setState({ [name]: value });\r\n };\r\n\r\n HandleGetList = () => {\r\n this.setState((state) => ({ trxGridToken: !state.trxGridToken }));\r\n };\r\n\r\n ExportClick = () => {\r\n var trxColumns = [];\r\n this.trxTable.current.props.Columns.forEach((c) => {\r\n if (\r\n c.accessor != \"Actions\" &&\r\n c.accessor != \"ED\" &&\r\n (c.show == undefined || c.show)\r\n ) {\r\n trxColumns.push({\r\n value: c.accessor,\r\n title: c.Header,\r\n columntype: c.ColumnType,\r\n type: c.type,\r\n });\r\n }\r\n }, this);\r\n\r\n this.setState({\r\n isDownloadDialogOpen: true,\r\n GridKeyValueList: trxColumns,\r\n ExportSelectedColumns: trxColumns,\r\n });\r\n };\r\n\r\n ExcelDownload = () => {\r\n if (!this.state.ExportReportType) {\r\n this.ShowMessage(\r\n \"warning\",\r\n \"Export Report Type not selected\",\r\n \"Select Export Report Type to continue\"\r\n );\r\n return;\r\n }\r\n\r\n if (\r\n this.state.ExportReportType == \"PDF\" &&\r\n this.state.ExportSelectedColumns.length > 15\r\n ) {\r\n this.ShowMessage(\r\n \"warning\",\r\n \"PDF document cannot exceed 15 columns\",\r\n \"PDF document cannot exceed 15 columns\"\r\n );\r\n return;\r\n }\r\n\r\n this.setState({ isDownloadDialogOpen: false });\r\n\r\n if (!this.Validate()) return;\r\n\r\n const temp = { ...this.state.model };\r\n\r\n var jsonColList = [];\r\n\r\n var trxColumns = {};\r\n this.state.ExportSelectedColumns.map((c) => {\r\n trxColumns[c.value] = {\r\n value: c.value,\r\n title: c.title,\r\n columntype: c.columntype,\r\n type: c.type,\r\n };\r\n });\r\n jsonColList.push(trxColumns);\r\n\r\n var mytitle = \"Etransfer Transactions\";\r\n\r\n temp.jsonFile = {\r\n colmns: jsonColList,\r\n format: this.state.ExportReportType,\r\n title: mytitle,\r\n };\r\n\r\n this.setState({ isLoading: true });\r\n Proxy.DownloadGeneratedFile(\r\n \"/bankapi/v1.0/BankInteracETransfer/SearchETransferTransactionsExcelDownload\",\r\n temp,\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n if (!responseData.IsSucceeded) {\r\n this.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n return;\r\n }\r\n },\r\n (errorMessage) => {\r\n this.setState({ isLoading: false });\r\n this.ShowMessage(\"error\", \"Error\", errorMessage);\r\n },\r\n this.props.showMessage\r\n );\r\n };\r\n\r\n HandleSend = (model) => {\r\n this.ShowConfirmMessage(\r\n \"warning\",\r\n \"Workflow Confirmation\",\r\n \"Are you sure to send it for workflow confirmation ?\",\r\n () => {\r\n var jsonData = JSON.stringify(model.Id);\r\n\r\n var requestData = {\r\n MenuCode: MenuCodes.Etransfer_SubmitApprove,\r\n ActionCode: ActionCodes.Submit,\r\n JsonData: jsonData,\r\n RowId: model.Id,\r\n };\r\n\r\n this.setState({ alert: \"\", isLoading: true });\r\n Proxy.POST(\r\n \"/coreapi/v1.0/WorkflowData/InsertWorkflowData\",\r\n requestData,\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n\r\n if (!responseData.IsSucceeded) {\r\n this.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n return;\r\n }\r\n this.ShowMessage(\r\n \"success\",\r\n \"Success\",\r\n \"Request successfully sent for approval\"\r\n );\r\n },\r\n (errorMessage) => {\r\n this.setState({ isLoading: false });\r\n this.ShowMessage(\r\n \"error\",\r\n \"Error\",\r\n \"An error occurred while sending approve request \" + errorMessage\r\n );\r\n }\r\n );\r\n }\r\n );\r\n };\r\n\r\n HandleTrace = (model) => {\r\n this.ShowConfirmMessage(\r\n \"warning\",\r\n \"Workflow Confirmation\",\r\n \"Are you sure to send it for workflow confirmation ?\",\r\n () => {\r\n var jsonData = JSON.stringify(model.Id);\r\n\r\n var requestData = {\r\n MenuCode: MenuCodes.Etransfer_TraceApprove,\r\n ActionCode: ActionCodes.Submit,\r\n JsonData: jsonData,\r\n RowId: model.Id,\r\n };\r\n\r\n this.setState({ alert: \"\", isLoading: true });\r\n Proxy.POST(\r\n \"/coreapi/v1.0/WorkflowData/InsertWorkflowData\",\r\n requestData,\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n\r\n if (!responseData.IsSucceeded) {\r\n this.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n return;\r\n }\r\n this.ShowMessage(\r\n \"success\",\r\n \"Success\",\r\n \"Request successfully sent for approval\"\r\n );\r\n },\r\n (errorMessage) => {\r\n this.setState({ isLoading: false });\r\n this.ShowMessage(\r\n \"error\",\r\n \"Error\",\r\n \"An error occurred while sending approve request \" + errorMessage\r\n );\r\n }\r\n );\r\n }\r\n );\r\n };\r\n\r\n HandleSuspicious = (model) => {\r\n this.setState({ sdTransactionId: model.Id, suspiciousDialog: true });\r\n };\r\n\r\n HandleSuspiciousConfirm = () => {\r\n const { sdCancelMemo, sdCancelReasonId, sdTransactionId } = this.state;\r\n\r\n this.ShowConfirmMessage(\r\n \"warning\",\r\n \"Workflow Confirmation\",\r\n \"Are you sure to send it for workflow confirmation ?\",\r\n () => {\r\n var data = {\r\n TransactionId: sdTransactionId,\r\n CancelReasonId: sdCancelReasonId,\r\n CancelMemo: sdCancelMemo,\r\n };\r\n\r\n var jsonData = JSON.stringify(data);\r\n\r\n var requestData = {\r\n MenuCode: MenuCodes.Etransfer_SuspiciousApprove,\r\n ActionCode: ActionCodes.Submit,\r\n JsonData: jsonData,\r\n RowId: data.TransactionId,\r\n };\r\n\r\n this.setState({ alert: \"\", isLoading: true });\r\n Proxy.POST(\r\n \"/coreapi/v1.0/WorkflowData/InsertWorkflowData\",\r\n requestData,\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n\r\n if (!responseData.IsSucceeded) {\r\n this.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n return;\r\n }\r\n\r\n this.setState({\r\n suspiciousDialog: false,\r\n sdCancelReasonId: \"\",\r\n sdCancelMemo: \"\",\r\n });\r\n this.ShowMessage(\r\n \"success\",\r\n \"Success\",\r\n \"Request successfully sent for approval\"\r\n );\r\n },\r\n (errorMessage) => {\r\n this.setState({ isLoading: false });\r\n this.ShowMessage(\r\n \"error\",\r\n \"Error\",\r\n \"An error occurred while sending approve request \" + errorMessage\r\n );\r\n }\r\n );\r\n }\r\n );\r\n };\r\n\r\n HandleCancel = (model) => {\r\n this.ShowConfirmMessage(\r\n \"warning\",\r\n \"Cancel Confirmation\",\r\n \"Are you sure to cancel this transaction ?\",\r\n () => {\r\n this.setState({ isLoading: true });\r\n Proxy.POST(\r\n \"/bankapi/v1.0/BankInteracETransfer/CancelEtransferTransactionById\",\r\n { TransactionId: model.Id, Reason: \"Cancelled By Call Center\" },\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n\r\n if (!responseData.IsSucceeded) {\r\n this.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n return;\r\n }\r\n\r\n this.ShowMessage(\r\n \"success\",\r\n \"Success\",\r\n \"Request successfully sent for approval\"\r\n );\r\n },\r\n (errorMessage) => {\r\n this.setState({ isLoading: false });\r\n this.ShowMessage(\r\n \"error\",\r\n \"Error\",\r\n \"An error occurred while sending approve request \" + errorMessage\r\n );\r\n }\r\n );\r\n }\r\n );\r\n };\r\n\r\n HandleRemind = (model) => {\r\n this.ShowConfirmMessage(\r\n \"warning\",\r\n \"Remind Transfer\",\r\n \"Do you want to remind this transfer ?\",\r\n () => {\r\n this.setState({ isLoading: true });\r\n Proxy.POST(\r\n \"/bankapi/v1.0/BankInteracETransfer/RemindEtransferTransaction\",\r\n {\r\n TransactionTypeId: model.TransactionTypeId,\r\n TransferReferenceNumber: model.ParticipantReferenceNumber,\r\n },\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n\r\n if (!responseData.IsSucceeded) {\r\n this.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n return;\r\n }\r\n\r\n this.ShowMessage(\r\n \"success\",\r\n \"Success\",\r\n \"Transfer reminded successfully\"\r\n );\r\n },\r\n (errorMessage) => {\r\n this.setState({ isLoading: false });\r\n this.ShowMessage(\"error\", \"Error\", errorMessage);\r\n }\r\n );\r\n }\r\n );\r\n };\r\n\r\n GetGridButtonsRight = async () => {\r\n const { MenuCode } = this.props;\r\n var gridButtonRightDetail =\r\n await this.MenuAuthorityRightHelper.RightCheckList(MenuCode, [\r\n \"CALETSSEND\",\r\n \"CALETSEDIT\",\r\n \"CALETSCANC\",\r\n \"CALETSTRAC\",\r\n \"CALETSSUSP\",\r\n \"CALETSREMN\",\r\n ]);\r\n\r\n this.setState({ gridButtonRightDetail });\r\n };\r\n\r\n ShowMessage = (type, title, message) => {\r\n this.setState({\r\n alert: (\r\n this.setState({ alert: \"\" })}\r\n />\r\n ),\r\n });\r\n };\r\n\r\n ShowMessageNode = (type, title, message) => {\r\n this.setState({\r\n alert: (\r\n this.setState({ alert: \"\" })}\r\n />\r\n ),\r\n });\r\n };\r\n\r\n ShowConfirmMessage(type, title, message, onConfirm) {\r\n this.setState({\r\n alert: (\r\n this.setState({ alert: \"\" })}\r\n OnConfirm={onConfirm}\r\n />\r\n ),\r\n });\r\n }\r\n\r\n Validate = () => {\r\n const { model } = this.state;\r\n\r\n var searchIsNotSpecific = model.searchIsNotSpecific;\r\n this.setState({ model });\r\n\r\n if (searchIsNotSpecific) {\r\n if (!model.UniqueClientId) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"Select Client to continue\"\r\n );\r\n return false;\r\n }\r\n\r\n if (\r\n typeof model.SearchStartDate != \"object\" &&\r\n model.SearchStartDate != \"\" &&\r\n model.SearchStartDate != null\r\n ) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"Start Date is invalid\"\r\n );\r\n return false;\r\n }\r\n if (\r\n typeof model.SearchEndDate != \"object\" &&\r\n model.SearchEndDate != \"\" &&\r\n model.SearchEndDate != null\r\n ) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"End Date is invalid\"\r\n );\r\n return false;\r\n }\r\n if (!model.SearchStartDate) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"From Date cannot be empty\"\r\n );\r\n return false;\r\n }\r\n if (!model.SearchEndDate) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"To Date cannot be empty\"\r\n );\r\n return false;\r\n }\r\n var diffMonths = model.SearchEndDate.diff(model.SearchStartDate, \"days\");\r\n if (diffMonths < 0) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"Start Date cannot be bigger than End Date\"\r\n );\r\n return false;\r\n }\r\n\r\n if (diffMonths > 30) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"Difference between Start Date and End Date cannot be longer than 30 days\"\r\n );\r\n return false;\r\n }\r\n }\r\n return true;\r\n };\r\n showErrorMessage(message) {\r\n this.setState({\r\n isLoading: false,\r\n alert: (\r\n this.hideAlert()}\r\n />\r\n ),\r\n });\r\n }\r\n hideAlert() {\r\n this.setState({ alert: null });\r\n }\r\n\r\n ClearSuspiciousDialog = () => {\r\n this.setState({\r\n suspiciousDialog: false,\r\n sdCancelMemo: \"\",\r\n sdCancelReasonId: \"\",\r\n sdTransactionId: null,\r\n });\r\n };\r\n RenderItemStoreName = (d) => {\r\n this.renderItemStoreName = `${d.StoreName} - (${d.StoreCode})`;\r\n return this.renderItemStoreName;\r\n };\r\n\r\n getInfoDialogData = (row) => {\r\n console.log(row);\r\n this.setState({ isInfoDialogOpen: false });\r\n\r\n const payload = {\r\n TransactionEtransferId: row?.original?.EtransferId,\r\n TransactionId: null,\r\n TransferReferenceNumber: null,\r\n };\r\n\r\n Proxy.POST(\r\n \"/bankapi/v1.0/ClearingSettlement/GetEtransferRemittancePartyData\",\r\n payload,\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n this.setState({ isInfoDialogOpen: true });\r\n\r\n this.setState({\r\n infoDialogData: responseData?.Item,\r\n });\r\n },\r\n (errorMessage) => {\r\n this.setState({ isLoading: false });\r\n this.ShowMessage(\r\n \"error\",\r\n \"Error\",\r\n \"An error occurred while sending approve request. \" +\r\n (typeof errorMessage !== \"string\" ? errorMessage : \"\")\r\n );\r\n }\r\n );\r\n };\r\n handleAmountInput = (num) => {\r\n if (typeof num === \"number\") {\r\n return `${num?.toString()?.includes(\".\") ? num : num + \".00\"} ${\r\n this.state.infoDialogData?.ReferredDocumentRemittedCurrency\r\n }`;\r\n }\r\n return null;\r\n };\r\n showInfoDialog = () => {\r\n const { isInfoDialogOpen } = this.state;\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n this.setState({ isInfoDialogOpen: false })}\r\n >\r\n CANCEL\r\n \r\n \r\n \r\n \r\n );\r\n };\r\n\r\n render() {\r\n const { Disabled } = this.props;\r\n const {\r\n alert,\r\n isLoading,\r\n model,\r\n LimitToken,\r\n suspiciousDialog,\r\n sdCancelReasonId,\r\n sdCancelMemo,\r\n gridButtonRightDetail,\r\n } = this.state;\r\n\r\n return (\r\n
\r\n {this.isClient && (\r\n \r\n )}\r\n\r\n \r\n\r\n {alert}\r\n model,\r\n FillDataFromModel: (model) => this.setState({ model }),\r\n ValidationFunction: this.Validate,\r\n },\r\n { Code: \"Export\", OnClick: this.ExportClick, Disabled: Disabled },\r\n ]}\r\n menuId={this.props.menuId}\r\n ApprovalData={this.props.ApprovalData}\r\n After={this.props.After}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n `${d.UniqueClientId} - ${d.Name}`}\r\n Value={model.UniqueClientId || \"\"}\r\n ValueChanged={this.HandleChange}\r\n CanClear\r\n Required={model.searchIsNotSpecific}\r\n Disabled={\r\n Disabled ||\r\n this.isClient ||\r\n !model.searchIsNotSpecific\r\n }\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n (\r\n
\r\n this.getInfoDialogData(row)}\r\n />\r\n
\r\n ),\r\n sortable: false,\r\n filterable: false,\r\n width: 75,\r\n show: !this.isCallCenter,\r\n },\r\n {\r\n Header: \"Actions\",\r\n accessor: \"Actions\",\r\n Cell: (row) => (\r\n
\r\n x.Code == \"CALETSSEND\"\r\n )?.HasAuthority\r\n }\r\n Icon={SubmitOrSendIcon}\r\n OnClick={() => {\r\n this.HandleSend(row.original);\r\n }}\r\n />\r\n\r\n x.Code == \"CALETSEDIT\"\r\n )?.HasAuthority\r\n }\r\n Icon={EditIcon}\r\n OnClick={() => {\r\n RouteHelper.Push(\r\n this.props.history,\r\n row.original.Program.ProgramCode ==\r\n ProgramCodes.Bank_Programs_e_Transfer\r\n ? \"/CreateEtransfer\"\r\n : \"/BankingBackofficeCreateEtransferx\",\r\n \"CreateEtransfer_Id\",\r\n row.original.Id\r\n );\r\n }}\r\n />\r\n\r\n x.Code == \"CALETSCANC\"\r\n )?.HasAuthority\r\n }\r\n Icon={DeleteIcon}\r\n OnClick={() => {\r\n this.HandleCancel(row.original);\r\n }}\r\n />\r\n\r\n x.Code == \"CALETSTRAC\"\r\n )?.HasAuthority\r\n }\r\n Icon={TraceIcon}\r\n OnClick={() => {\r\n this.HandleTrace(row.original);\r\n }}\r\n />\r\n\r\n x.Code == \"CALETSSUSP\"\r\n )?.HasAuthority\r\n }\r\n Icon={SuspiciousIcon}\r\n OnClick={() => {\r\n this.HandleSuspicious(row.original);\r\n }}\r\n />\r\n\r\n x.Code == \"CALETSREMN\"\r\n )?.HasAuthority\r\n }\r\n Icon={UploadIcon}\r\n OnClick={() => {\r\n this.HandleRemind(row.original);\r\n }}\r\n />\r\n
\r\n ),\r\n sortable: false,\r\n filterable: false,\r\n width: 200,\r\n show: this.isCallCenter,\r\n },\r\n {\r\n Header: \"Transaction Date\",\r\n accessor: \"TransactionDate\",\r\n type: GridColumnType.DateTimeUtc,\r\n },\r\n {\r\n Header: \"Trace Status\",\r\n accessor: \"TraceStatus\",\r\n show: this.isCallCenter,\r\n Cell: (row) => {\r\n switch (row.value) {\r\n case ApprovalStatus.Waiting:\r\n case ApprovalStatus.Approved:\r\n case ApprovalStatus.Completed:\r\n return \"Trace\";\r\n\r\n default:\r\n return \"\";\r\n }\r\n },\r\n },\r\n {\r\n Header: \"Suspicious Status\",\r\n accessor: \"SuspiciousStatus\",\r\n show: this.isCallCenter,\r\n Cell: (row) => {\r\n switch (row.value) {\r\n case ApprovalStatus.Waiting:\r\n return \"Waiting Review\";\r\n case ApprovalStatus.Approved:\r\n case ApprovalStatus.Completed:\r\n return \"Review Result Approved\";\r\n case ApprovalStatus.Rejected:\r\n return \"Review Result Rejected\";\r\n\r\n default:\r\n return \"\";\r\n }\r\n },\r\n },\r\n {\r\n Header: \"Merchant Clearing Date\",\r\n accessor: \"SettlementDate\",\r\n type: GridColumnType.DateTimeUtc,\r\n },\r\n {\r\n Header: \"Account Number\",\r\n accessor: \"AccountNumber\",\r\n },\r\n {\r\n Header: \"Unique Client Id\",\r\n accessor: \"ClientUniqueClientId\",\r\n },\r\n {\r\n Header: \"Client Name\",\r\n accessor: \"ClientName\",\r\n },\r\n {\r\n Header: \"Customer Number\",\r\n accessor: \"CustomerNumber\",\r\n },\r\n {\r\n Header: \"Customer Name\",\r\n accessor: \"PayeeName\",\r\n },\r\n {\r\n Header: \"Transaction Type\",\r\n accessor: \"TransactionType.ParameterDesc\",\r\n Cell: (row) => (\r\n
\r\n {row.value == \"Credit\"\r\n ? \"Money Send\"\r\n : \"Money Request\"}\r\n
\r\n ),\r\n },\r\n {\r\n Header: \"Direction\",\r\n accessor: \"Direction.ParameterDesc\",\r\n },\r\n {\r\n Header: \"Customer E-Mail\",\r\n accessor: \"EMailAddress\",\r\n },\r\n {\r\n Header: \"Amount\",\r\n accessor: \"TransactionAmount\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Fee Amount\",\r\n accessor: \"FeeAmount\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"System Settlement Status\",\r\n accessor: \"SettlementStatus\",\r\n },\r\n {\r\n Header: \"Transaction Status\",\r\n accessor: \"SubmitStatus.ParameterDesc\",\r\n },\r\n\t\t\t\t\t\t\t\t\t {\r\n Header: \"Interac Status\",\r\n accessor: \"InteracStatusParamDesc\",\r\n },\r\n {\r\n Header: \"Settlement Type\",\r\n accessor: \"PriorityType.ParameterDesc\",\r\n },\r\n {\r\n Header: \"Transaction Description\",\r\n accessor: \"TransactionMemo\",\r\n },\r\n {\r\n Header: \"File Id\",\r\n accessor: \"FileId\",\r\n },\r\n {\r\n Header: \"File Name\",\r\n accessor: \"FileName\",\r\n },\r\n {\r\n Header: \"Transaction Source\",\r\n accessor: \"TransactionSource.ParameterDesc\",\r\n },\r\n {\r\n Header: \"Customer Store\",\r\n accessor: \"CustomerStore\",\r\n },\r\n {\r\n Header: \"Store Code\",\r\n accessor: \"StoreCode\",\r\n },\r\n {\r\n Header: \"Application\",\r\n accessor: \"ApplicationId\",\r\n Cell: (row) => {\r\n var rowValue = \"\";\r\n EtransferApplicationTypes &&\r\n EtransferApplicationTypes.forEach((item) => {\r\n if (item.Value == row.value)\r\n rowValue = item.Text;\r\n });\r\n return rowValue;\r\n },\r\n },\r\n {\r\n Header: \"Reference Number\",\r\n accessor: \"ReferenceNumber\",\r\n },\r\n {\r\n Header: \"Interac Reference Number\",\r\n accessor: \"InteracReferenceNumber\",\r\n },\r\n {\r\n Header: \"Response Reference Number\",\r\n accessor: \"RequestReferenceNumber\",\r\n },\r\n {\r\n Header: \"Error Description\",\r\n accessor: \"ErrorDesc\",\r\n },\r\n {\r\n Header: \"Trace Reject Reason\",\r\n accessor: \"TraceRejectReason\",\r\n show: this.isCallCenter,\r\n },\r\n {\r\n Header: \"Suspicious Reject Reason\",\r\n accessor: \"SuspiciousRejectReason\",\r\n show: this.isCallCenter,\r\n },\r\n\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tHeader: \"Sender Email\",\r\n\t\t\t\t\t\t\t\t\t\taccessor: \"SenderEmail\",\r\n\t\t\t\t\t\t\t\t\t },\r\n\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tHeader: \"Receiver Name\",\r\n\t\t\t\t\t\t\t\t\t\taccessor: \"ReceiverName\",\r\n\t\t\t\t\t\t\t\t\t },\r\n\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tHeader: \"Receiver Email\",\r\n\t\t\t\t\t\t\t\t\t\taccessor: \"ReceiverEmail\",\r\n\t\t\t\t\t\t\t\t\t },\r\n\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tHeader: \"Client Reference Number\",\r\n\t\t\t\t\t\t\t\t\t\taccessor: \"ClientRefNo\",\r\n\t\t\t\t\t\t\t\t\t },\r\n ]}\r\n Sorted={this.sortedByDate}\r\n ProgramCode={ProgramCodes.Bank_Programs_e_Transfer}\r\n ServerSide\r\n LoadAtStartup={this.state.loadingCompleted}\r\n ValidateRequest={this.Validate}\r\n PrepareRequest={() => {\r\n // Only call center needs suspicious and trace columns datas (For performance)\r\n const { model } = this.state;\r\n model.IsCallCenter = this.isCallCenter;\r\n return model;\r\n }}\r\n RequestUrl=\"/bankapi/v1.0/BankInteracETransfer/SearchETransferTransactionsPaged\"\r\n RequestMethod=\"POST\"\r\n />\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n this.setState({ ExportSelectedColumns: value })\r\n }\r\n isMulti\r\n name=\"columns\"\r\n getOptionLabel={(d) => d.title}\r\n options={this.state.GridKeyValueList}\r\n className=\"basic-multi-select\"\r\n classNamePrefix=\"select\"\r\n />\r\n \r\n \r\n \r\n \r\n this.setState({ isDownloadDialogOpen: false })}\r\n >\r\n Cancel\r\n \r\n \r\n \r\n {this.showInfoDialog()}\r\n
\r\n );\r\n }\r\n}\r\n\r\nTransactions.propTypes = {\r\n classes: PropTypes.object,\r\n};\r\n\r\nexport default Transactions;\r\n","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { DeleteIcon, EditIcon } from \"core/Icons\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport AccountLimitToolbar from \"views/Components/AccountLimitToolbar\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericCheckInput, GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle, GenericLabel, GenericRadioInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { BankTransactionStatus, GridColumnType, ProgramCodes, EtransferApplicationTypes } from \"views/Constants/Constant.js\";\r\nimport Select from \"react-select\";\r\n\r\nclass UnSettleds extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tSearchEndDate: DateHelper.GetDate(),\r\n\t\t\tSearchStartDate: DateHelper.GetDate(),\r\n\t\t\tIsBankingScreen: false\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tcheckedValues: [],\r\n\t\t\tlist: [],\r\n\t\t\talllist: [],\r\n\t\t\tfileList: [],\r\n\t\t\tselectList: [],\r\n\t\t\treSubmitSelectList: [],\r\n\t\t\tdeleteList: [],\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tvModel: {},\r\n\t\t\tcountModel: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tmainSearchItem: null,\r\n\t\t\tLimitToken: false,\r\n\t\t\tisBackOffice: false,\r\n\t\t\tcancelRequestModel: {\r\n\t\t\t\tSelectedETransfer: {},\r\n\t\t\t\tcancellationReason: null\r\n\t\t\t},\r\n\t\t\tcancelDialog: false\r\n\t\t};\r\n\r\n\t\tthis.sortedByDate = [{ id: \"TransactionDate\", desc: true }];\r\n\t\tthis.sortedByFileDate = [{ id: \"FileDate\", desc: true }];\r\n\t\tthis.trxTable = React.createRef();\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\t\tvar { model, isBackOffice } = this.state;\r\n\t\tmodel.IsBankingScreen = this.props.MenuCode == \"BETUSP\";\r\n\t\tif (setAppLeftTitle)\r\n\t\t\tsetAppLeftTitle(\"Un-Settled & Un-Processed Transactions\");\r\n\t\tif (setAppCenterTitle)\r\n\t\t\tsetAppCenterTitle(model.IsBankingScreen ? \"BANKING\" : \"INTERAC E-TRANSFER\");\r\n\r\n\t\tisBackOffice = ClientHelper.IsBackOffice();\r\n\t\tif (!isBackOffice) {\r\n\t\t\tmodel.ClientId = ClientHelper.GetClientRowId();\r\n\t\t}\r\n\t\tthis.setState({ model, isBackOffice, loadingCompleted: true });\r\n\r\n\t\tthis.RefreshToolBar();\r\n\t}\r\n\r\n\tRefreshToolBar = () => {\r\n\t\tthis.setState({ LimitToken: !this.state.LimitToken });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: this.initialModel, list: [], fileList: [] });\r\n\t}\r\n\r\n\tHandleCheck = (trans) => {\r\n\t\tvar selectList = [...this.state.selectList];\r\n\t\tvar reSubmitSelectList = [...this.state.reSubmitSelectList];\r\n\t\tvar deleteList = [...this.state.deleteList];\r\n\r\n\t\tif (trans.BankTransactionStatusParamValue == BankTransactionStatus.Error ||\r\n\t\t\ttrans.BankTransactionStatusParamValue == BankTransactionStatus.InsufficientBalance ||\r\n\t\t\ttrans.BankTransactionStatusParamValue == BankTransactionStatus.BlockedLimit) {\r\n\t\t\treSubmitSelectList = this.state.reSubmitSelectList.includes(trans.TransactionEtransferId)\r\n\t\t\t\t? this.state.reSubmitSelectList.filter(t => t !== trans.TransactionEtransferId)\r\n\t\t\t\t: [...this.state.reSubmitSelectList, trans.TransactionEtransferId];\r\n\t\t}\r\n\t\tif (trans.BankTransactionStatusParamValue == BankTransactionStatus.Unapproved) {\r\n\t\t\tselectList = this.state.selectList.includes(trans.TransactionEtransferId)\r\n\t\t\t\t? this.state.selectList.filter(t => t !== trans.TransactionEtransferId)\r\n\t\t\t\t: [...this.state.selectList, trans.TransactionEtransferId];\r\n\t\t}\r\n\r\n\t\tdeleteList = this.state.deleteList.includes(trans.TransactionEtransferId)\r\n\t\t\t? this.state.deleteList.filter(t => t !== trans.TransactionEtransferId)\r\n\t\t\t: [...this.state.deleteList, trans.TransactionEtransferId];\r\n\t\tthis.setState(state => ({\r\n\t\t\tselectList, deleteList, reSubmitSelectList,\r\n\t\t\tcheckedValues: state.checkedValues.includes(trans)\r\n\t\t\t\t? state.checkedValues.filter(c => c !== trans)\r\n\t\t\t\t: [...state.checkedValues, trans]\r\n\t\t}));\r\n\t}\r\n\r\n\tHandleChange = (name, value, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tif (name == \"MainSearchItemId\" && data) {\r\n\t\t\tthis.initialModel[name] = value;\r\n\t\t\tthis.setState({ mainSearchItem: data.ParameterValue });\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleChangeItemCount = (name, value) => {\r\n\t\tconst countModel = { ...this.state.countModel };\r\n\t\tcountModel[name] = value;\r\n\t\tthis.setState({ countModel });\r\n\t}\r\n\tselectedRowChange = (index) => {\r\n\t\tvar transList = [...this.state.alllist];\r\n\t\tconst selectFile = this.state.fileList[index];\r\n\t\tvar fileTransactions = transList.filter(k => k.FileId == selectFile.FileId);\r\n\t\tthis.setState({ list: fileTransactions, rowIndex: index });\r\n\t}\r\n\r\n\tIsValid = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\r\n\t\tvar searchIsNotSpecific = (model.RefNo == undefined || model.RefNo == null || model.RefNo == \"\") &&\r\n\t\t\t(model.PayeeEmail == undefined || model.PayeeEmail == null || model.PayeeEmail == \"\") &&\r\n\t\t\t(model.FileName == undefined || model.FileName == null || model.FileName == \"\");\r\n\r\n\t\tmodel[\"searchIsNotSpecific\"] = searchIsNotSpecific;\r\n\r\n\t\tvar validateStatus = true;\r\n\r\n\t\tif (searchIsNotSpecific) {\r\n\r\n\t\t\tif (typeof model.SearchStartDate != \"object\" && model.SearchStartDate != \"\" && model.SearchStartDate != null) {\r\n\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Start Date is invalid\");\r\n\t\t\t\tvalidateStatus = false;\r\n\t\t\t}\r\n\r\n\t\t\tif (typeof model.SearchEndDate != \"object\" && model.SearchEndDate != \"\" && model.SearchEndDate != null) {\r\n\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"End Date is invalid\");\r\n\t\t\t\tvalidateStatus = false;\r\n\t\t\t}\r\n\r\n\t\t\tif ((typeof model.SearchStartDate == \"object\" && typeof model.SearchEndDate == \"object\") && model.SearchEndDate < model.SearchStartDate) {\r\n\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Start Date cannot be bigger than End Date\");\r\n\t\t\t\tvalidateStatus = false;\r\n\t\t\t}\r\n\r\n\t\t\tthis.setState({ model, vModel });\r\n\t\t\tif (!validateStatus)\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.setState({ model, vModel });\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\tHandleGetList = () => {\r\n\t\tthis.setState(state => ({ trxGridToken: !state.trxGridToken }));\r\n\t}\r\n\thandleSubmit = () => {\r\n\t\tif (this.state.selectList.length > 0)\r\n\t\t\tthis.setState({\r\n\t\t\t\tisLoading: false,\r\n\t\t\t\talert: this.hideAlert()} OnConfirm={() => this.handleApprovedOK(this.state.selectList)} />\r\n\t\t\t});\r\n\t\telse {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning!\", \"There is not selected any Unapproved transaction!\");\r\n\r\n\t\t}\r\n\t}\r\n\thandleReSubmit = () => {\r\n\t\tif (this.state.reSubmitSelectList.length > 0)\r\n\t\t\tthis.setState({\r\n\t\t\t\tisLoading: false,\r\n\t\t\t\talert: this.hideAlert()} OnConfirm={() => this.handleReSubmitApprove(this.state.reSubmitSelectList)} />\r\n\t\t\t});\r\n\t\telse {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning!\", \"There is not selected any appropriate transaction for Re-Submit operation!\");\r\n\r\n\t\t}\r\n\t}\r\n\thandleReSubmitApprove = (IdList) => {\r\n\t\tthis.showLoading();\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/BankInteracETransfer/ReSubmitUnsettledAndUnProcessedTransactionById\",\r\n\t\t\t{ TransactionEtransferIds: IdList },\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowErrorMessage(\"Error =>\" + responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.ShowMessage(\"success\", \"Re-Submit\", \"Re-Submit operation completed successfully.\");\r\n\t\t\t\t\tthis.HandleGetList();\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tthis.ErrorSendCallback\r\n\t\t);\r\n\t}\r\n\thandleApprovedOK = (IdList) => {\r\n\t\tthis.showLoading();\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/BankInteracETransfer/ApprovedUnsettledAndUnProcessedTransctionById\",\r\n\t\t\t{ TransactionEtransferIds: IdList },\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowErrorMessage(\"Error =>\" + responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.ShowMessage(\"success\", \"Approved\", \"Transactions approved operation completed successfully.\");\r\n\t\t\t\t\tthis.HandleGetList();\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tthis.ErrorSendCallback\r\n\t\t);\r\n\t}\r\n\r\n\tErrorSendCallback(error) {\r\n\t\tthis.ShowErrorMessage(\"An error occurred while Approval data =>\" + error.message);\r\n\t}\r\n\r\n\tShowMessage = (type = \"info\", title, message) => {\r\n\t\tthis.setState({ alert: this.setState({ alert: null })} />, isLoading: false });\r\n\t}\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\tShowErrorMessage = (message) => {\r\n\t\tthis.setState({\r\n\t\t\tisLoading: false,\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({ alert: null, isLoading: false });\r\n\t}\r\n\tshowLoading = () => {\r\n\t\tthis.setState({ isLoading: true, alert: null });\r\n\t}\r\n\r\n\thandleCancel = (eTransfer) => {\r\n\t\tif (!this.state.isBackOffice) {\r\n\t\t\tvar cancelRequestModel = { ...this.state.cancelRequestModel };\r\n\t\t\tconst selectTransfer = eTransfer;\r\n\t\t\tcancelRequestModel.SelectedETransfer = selectTransfer;\r\n\t\t\tthis.setState({ cancelRequestModel, cancelDialog: true });\r\n\t\t}\r\n\t}\r\n\r\n\thandleChangeCancelModel = (name, newValue) => {\r\n\t\tconst cancelRequestModel = { ...this.state.cancelRequestModel };\r\n\t\tcancelRequestModel.cancellationReason = newValue;\r\n\t\tthis.setState({ cancelRequestModel });\r\n\t}\r\n\r\n\tconfirmCancel = () => {\r\n\t\tvar cancelRequestModel = { ...this.state.cancelRequestModel };\r\n\t\tif (cancelRequestModel.cancellationReason != null && cancelRequestModel.cancellationReason != \"\") {\r\n\t\t\tthis.hideCancelDialog();\r\n\t\t\tthis.showLoading();\r\n\r\n\t\t\tProxy.POST(\"/bankapi/v1.0/BankInteracETransfer/CancelOutgoingEtransfer\",\r\n\t\t\t\tcancelRequestModel,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.setState({ IsConfirm: false });\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Transaction cancelled successfully\");\r\n\t\t\t\t\tthis.HandleGetList();\r\n\t\t\t\t\tthis.RefreshToolBar();\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t});\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Cancellation Reason cannot be null !\");\r\n\t\t}\r\n\t}\r\n\r\n\thideCancelDialog = () => { this.setState({ cancelDialog: false }); }\r\n\r\n\tExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.accessor != \"Actions\" && c.accessor != \"ED\" && (c.show == undefined || c.show)) {\r\n\t\t\t\ttrxColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: trxColumns, ExportSelectedColumns: trxColumns });\r\n\t}\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tif (!this.IsValid())\r\n\t\t\treturn;\r\n\r\n\t\tconst temp = { ...this.state.model };\r\n\r\n\t\tvar jsonColList = [];\r\n\r\n\t\tvar trxColumns = {};\r\n\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\ttrxColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t});\r\n\t\tjsonColList.push(trxColumns);\r\n\r\n\t\tvar mytitle = \"Interac e-Transfer Unsettled & Unprocessed Transfers\";\r\n\r\n\t\ttemp.jsonFile = {\r\n\t\t\tcolmns: jsonColList,\r\n\t\t\tformat: this.state.ExportReportType,\r\n\t\t\ttitle: mytitle\r\n\t\t};\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\"/bankapi/v1.0/BankInteracETransfer/SearchUnSettledExportDownload\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t},\r\n\t\t\tthis.props.showMessage\r\n\t\t);\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, checkedValues, isLoading, model, list, fileList, LimitToken, isBackOffice, cancelRequestModel, cancelDialog } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{!isBackOffice && model.IsBankingScreen ?\r\n\t\t\t\t\t\r\n\t\t\t\t\t: !isBackOffice && }\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t model, FillDataFromModel: model => this.setState({ model }), ValidationFunction: this.Validate },\r\n\t\t\t\t\t{ Code: \"Export\", OnClick: this.ExportClick, Disabled: Disabled }\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t
Cancel Transaction\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\r\n\t\t\t\t{/*EXPORT DIALOG*/}\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{!model.IsBankingScreen &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t c.TransactionEtransferId == row.original.TransactionEtransferId).length > 0}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={(e) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.HandleCheck(row.original);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={!row.original.IsEditable || isBackOffice} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t { RouteHelper.Push(this.props.history, row.original.ProgramCode == ProgramCodes.Bank_Programs_e_Transfer ? \"/CreateEtransfer\" : \"/EtransferFromAccount\", \"CreateEtransfer_Id\", row.original.TransactionId); }} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t { this.handleCancel(row.original); }} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsortable: false,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfilterable: false,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 100,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tshow: !isBackOffice\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTimeUtc\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Insert Date\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"InsertDate\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTimeUtc\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Account Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"AccountNumber\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Unique Client Id\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ClientNumber\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tshow: isBackOffice\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ClientName\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tshow: isBackOffice\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Customer Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ClientCustomerNumber\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tshow: !model.IsBankingScreen\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: !model.IsBankingScreen ? \"Customer Name\" : \"Contact Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"CustomerName\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Type\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionType\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{row.value == \"Credit\" ? \"Money Send\" : \"Money Request\"}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: !model.IsBankingScreen ? \"Customer e-mail\" : \"Contact e-mail\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Email\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionAmount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Fee Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"FeeAmount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Status\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionStatus\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"e-Transfer Type\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ETransferType\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Description\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionMemo\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"File Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"FileName\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tshow: !model.IsBankingScreen\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Source\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionSource\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Store Code\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"StoreName\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Application\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ApplicationId\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar rowValue = \"\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tEtransferApplicationTypes && EtransferApplicationTypes.forEach(item => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (item.Value == row.value)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\trowValue = item.Text;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn rowValue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Reference Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ParticipantReferenceNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Error Description\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ErrorDescription\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Customer Store\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"CustomerStore\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Sender Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"PayeeName\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Sender Email\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"PayeeEmail\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Receiver Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ReceiverName\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Receiver Email\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ReceiverEmail\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Client Reference Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ClientReferenceNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_e_Transfer}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tServerSide\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tLoadAtStartup={this.state.loadingCompleted}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValidateRequest={this.IsValid}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tPrepareRequest={() => { return this.state.model; }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tRequestUrl=\"/bankapi/v1.0/BankInteracETransfer/SearchUnSettledPaged\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tRequestMethod=\"POST\" />\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nUnSettleds.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default UnSettleds;\r\n","import FormControl from \"@material-ui/core/FormControl\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\nimport Input from \"@material-ui/core/Input\";\r\nimport InputLabel from \"@material-ui/core/InputLabel\";\r\nimport withStyles from \"@material-ui/core/styles/withStyles\";\r\nimport customInputStyle from \"assets/jss/material-dashboard-pro-react/components/customInputStyle.jsx\";\r\nimport classNames from \"classnames\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\n\r\nfunction CustomInput({ ...props }) {\r\n\tconst {\r\n\t\tclasses,\r\n\t\tformControlProps,\r\n\t\tlabelText,\r\n\t\tid,\r\n\t\tlabelProps,\r\n\t\tinputProps,\r\n\t\terror,\r\n\t\twhite,\r\n\t\tinputRootCustomClasses,\r\n\t\tsuccess,\r\n\t\thelpText,\r\n\t\tLabelMd,\r\n\t\tfloatRight,\r\n\t\tLabelStyle,\r\n\t\tInputStyle,\r\n\t\tonInput,\r\n\t\tRequired,\r\n\t\tIsInvalid\r\n\t} = props;\r\n\r\n\tconst { maxLength } = inputProps;\r\n\r\n\tconst labelClasses = classNames({\r\n\t\t[\" \" + classes.labelRootError]: error,\r\n\t\t[\" \" + classes.labelRootSuccess]: success && !error\r\n\t});\r\n\tconst underlineClasses = classNames({\r\n\t\t[classes.underlineError]: error,\r\n\t\t[classes.underlineSuccess]: success && !error,\r\n\t\t[classes.underline]: true,\r\n\t\t[classes.whiteUnderline]: white\r\n\t});\r\n\tconst marginTop = classNames({\r\n\t\t[inputRootCustomClasses]: inputRootCustomClasses !== undefined\r\n\t});\r\n\tconst inputClasses = classNames({\r\n\t\t[classes.input]: true,\r\n\t\t[classes.whiteInput]: white\r\n\t});\r\n\tvar formControlClasses;\r\n\tif (formControlProps !== undefined) {\r\n\t\tformControlClasses = classNames(\r\n\t\t\tformControlProps.className,\r\n\t\t\tclasses.formControl\r\n\t\t);\r\n\t} else {\r\n\t\tformControlClasses = classes.formControl;\r\n\t}\r\n\tvar helpTextClasses = classNames({\r\n\t\t[classes.labelRootError]: error,\r\n\t\t[classes.labelRootSuccess]: success && !error\r\n\t});\r\n\r\n\tvar borderColor = \"#e9eaec\";\r\n\tif (IsInvalid) {\r\n\t\tborderColor = window.InvalidFieldColor;\r\n\t}\r\n\telse if (Required) {\r\n\t\tborderColor = window.RequiredFieldColor;\r\n\t}\r\n\r\n\treturn (\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t{labelText != undefined && labelText != \"\" &&\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{labelText !== undefined ? (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{labelText}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t) : null}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t{helpText !== undefined ? (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{helpText}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t) : null}\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t);\r\n}\r\n\r\nCustomInput.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tlabelText: PropTypes.node,\r\n\tlabelProps: PropTypes.object,\r\n\tid: PropTypes.string,\r\n\tinputProps: PropTypes.object,\r\n\tformControlProps: PropTypes.object,\r\n\tinputRootCustomClasses: PropTypes.string,\r\n\terror: PropTypes.bool,\r\n\tsuccess: PropTypes.bool,\r\n\twhite: PropTypes.bool,\r\n\thelpText: PropTypes.node,\r\n\tLabelMd: PropTypes.number,\r\n\tFloatRight: PropTypes.bool,\r\n\tLabelStyle: PropTypes.object,\r\n\tInputStyle: PropTypes.object,\r\n\tRequired: PropTypes.bool,\r\n\tIsInvalid: PropTypes.bool\r\n};\r\n\r\nexport default withStyles(customInputStyle)(CustomInput);\r\n","import { Proxy, withArtifex } from \"core\";\r\nimport AlertHelper from \"core/AlertHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { EtransferEntryType, ProgramCodes } from \"views/Constants/Constant\";\r\nimport CreateEtransferIndividual from \"views/InteraceTransfer/CreateEtransfer/CreateEtransferIndividual\";\r\n\r\nclass EtransferSubmitApprove extends Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tisLoading: false,\r\n\t\t\tmodel: {\r\n\r\n\t\t\t},\r\n\t\t\tIndividualModel: {\r\n\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tthis.SubmitClick = this.SubmitClick.bind(this);\r\n\t\tthis.Nothing = this.Nothing.bind(this);\r\n\t\tthis.FillData = this.FillData.bind(this);\r\n\t\tthis.GetModel = this.GetModel.bind(this);\r\n\r\n\t\tthis.ShowMessage = this.ShowMessage.bind(this);\r\n\t\tthis.hideAlert = this.hideAlert.bind(this);\r\n\t}\r\n\r\n\tNothing() {\r\n\r\n\t}\r\n\r\n\tSubmitClick(workflowId, after, accessToken) {\r\n\t\tconst { Id } = this.state;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/bankapi/v1.0/BankInteracETransfer/ApprovedUnsettledAndUnProcessedTransctionById\",\r\n\t\t\t{ TransactionEtransferIds: [Id] },\r\n\t\t\tfileResponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!fileResponseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred\", fileResponseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (after) after();\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred\", errorMessage);\r\n\t\t\t},\r\n\t\t\tworkflowId,\r\n\t\t\taccessToken\r\n\t\t);\r\n\t}\r\n\r\n\tGetModel() {\r\n\t\tconst { model } = this.state;\r\n\t\treturn model;\r\n\t}\r\n\r\n\tFillData(Id) {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/bankapi/v1.0/BankInteracETransfer/GetByIdRequest\",\r\n\t\t\t{ Item: Id },\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while fetching data\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvar etransferData = responseData.Item;\r\n\t\t\t\tvar data = etransferData.Transaction;\r\n\r\n\t\t\t\tthis.setState(function (state) {\r\n\t\t\t\t\tvar model = state.model || {};\r\n\t\t\t\t\tvar IndividualModel = state.IndividualModel || {};\r\n\r\n\t\t\t\t\tmodel.UniqueClientId = data.UniqueClientId;\r\n\r\n\t\t\t\t\tmodel.IsBanking = data.Program.ProgramCode != ProgramCodes.Bank_Programs_e_Transfer;\r\n\r\n\t\t\t\t\tmodel.EntryType = data.EntryTypeId;\r\n\t\t\t\t\tmodel.EntryCode = data.EntryType ? data.EntryType.ParameterValue : \"\";\r\n\t\t\t\t\tmodel.EtransferType = etransferData.PriorityTypeId;\r\n\r\n\t\t\t\t\tmodel.IsUpdate = true;\r\n\t\t\t\t\tIndividualModel.Id = data.Id;\r\n\t\t\t\t\tIndividualModel.PayeeId = etransferData.PayeeId;\r\n\t\t\t\t\tIndividualModel.PayeeName = etransferData.PayeeName;\r\n\t\t\t\t\tIndividualModel.PayeeEmail = etransferData.PayeeEmail;\r\n\t\t\t\t\tIndividualModel.Amount = data.TransactionAmount;\r\n\t\t\t\t\tIndividualModel.DateOfFunds = data.TransactionDate ? DateHelper.ToMoment(data.TransactionDate) : null;\r\n\t\t\t\t\tIndividualModel.MoneyReqExpDate = etransferData.MoneyRequestExpiryDate ? DateHelper.ToMoment(etransferData.MoneyRequestExpiryDate) : null;\r\n\t\t\t\t\tIndividualModel.SecurityQuestion = etransferData.SecurityQuestionId;\r\n\t\t\t\t\tIndividualModel.SecurityQuestionText = etransferData.SecurityQuestion;\r\n\t\t\t\t\tIndividualModel.SecurityQuestionAnswer = etransferData.SecurityQuestionAnswer;\r\n\t\t\t\t\tIndividualModel.TransferMemo = etransferData.Memo;\r\n\t\t\t\t\tIndividualModel.TransactionType = data.TransactionTypeId;\r\n\t\t\t\t\tIndividualModel.TransactionTypeCode = data.TransactionType ? data.TransactionType.ParameterValue : \"\";\r\n\r\n\t\t\t\t\treturn { model, IndividualModel, Id: etransferData.Id };\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while fetching data\", errorMessage);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tShowMessage(type, title, message) {\r\n\t\tthis.setState({ alert: AlertHelper.CreateAlert(title, message, type, this.hideAlert) });\r\n\t}\r\n\r\n\thideAlert() {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, isLoading, Id, alert } = this.state;\r\n\t\tconst parentModel = { EntryCode: EtransferEntryType.Individual, UniqueClientId: model.UniqueClientId };\r\n\r\n\t\treturn (\r\n\t\t\t<>\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nexport default withArtifex(EtransferSubmitApprove, {});","import Card from \"components/Card/Card\";\r\nimport CardBody from \"components/Card/CardBody\";\r\nimport GridContainer from \"components/Grid/GridContainer\";\r\nimport GridItem from \"components/Grid/GridItem\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericAlert, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { EtransferEntryType, ProgramCodes } from \"views/Constants/Constant\";\r\nimport CreateEtransferIndividual from \"views/InteraceTransfer/CreateEtransfer/CreateEtransferIndividual\";\r\n\r\nclass EtransferSuspiciousApprove extends Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tisLoading: false,\r\n\t\t\tmodel: {\r\n\r\n\t\t\t},\r\n\t\t\tIndividualModel: {\r\n\t\t\t\tIsCustomerPopupOpen: false\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tthis.SubmitClick = this.SubmitClick.bind(this);\r\n\t\tthis.Nothing = this.Nothing.bind(this);\r\n\t\tthis.FillData = this.FillData.bind(this);\r\n\t\tthis.GetModel = this.GetModel.bind(this);\r\n\t\tthis.ValueChanged = this.ValueChanged.bind(this);\r\n\r\n\t\tthis.ShowMessage = this.ShowMessage.bind(this);\r\n\t\tthis.hideAlert = this.hideAlert.bind(this);\r\n\t}\r\n\r\n\tNothing() {\r\n\r\n\t}\r\n\r\n\tValueChanged(name, newValue) {\r\n\t\tthis.setState({ [name]: newValue });\r\n\t}\r\n\r\n\tSubmitClick(workflowId, after) {\r\n\t\tconst { Id, CancelReasonId, CancelMemo } = this.state;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/bankapi/v1.0/BankInteracETransfer/SuspiciousApproval\",\r\n\t\t\t{ TransactionId: Id, ReasonId: CancelReasonId, Memo: CancelMemo },\r\n\t\t\tfileResponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!fileResponseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred\", fileResponseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (after) after();\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred\", errorMessage);\r\n\t\t\t},\r\n\t\t\tworkflowId\r\n\t\t);\r\n\t}\r\n\r\n\tGetModel() {\r\n\t\tconst { model } = this.state;\r\n\t\treturn model;\r\n\t}\r\n\r\n\tFillData(data) {\r\n\t\tthis.setState({ isLoading: true, CancelReasonId: data.CancelReasonId, CancelMemo: data.CancelMemo });\r\n\t\tProxy.POST(\"/bankapi/v1.0/BankInteracETransfer/GetByIdRequest\",\r\n\t\t\t{ Item: data.TransactionId },\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while fetching data\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvar etransferData = responseData.Item;\r\n\t\t\t\tvar transactionData = etransferData.Transaction;\r\n\r\n\t\t\t\tthis.setState(function (state) {\r\n\t\t\t\t\tvar model = state.model || {};\r\n\t\t\t\t\tvar IndividualModel = state.IndividualModel || {};\r\n\r\n\t\t\t\t\tmodel.UniqueClientId = transactionData.UniqueClientId;\r\n\r\n\t\t\t\t\tmodel.IsBanking = transactionData.Program.ProgramCode != ProgramCodes.Bank_Programs_e_Transfer;\r\n\r\n\t\t\t\t\tmodel.EntryType = transactionData.EntryTypeId;\r\n\t\t\t\t\tmodel.EntryCode = transactionData.EntryType ?? \"\";\r\n\t\t\t\t\tmodel.EtransfertypeParamValue = etransferData.PriorityType.ParameterValue;\r\n\t\t\t\t\tmodel.EtransferType = etransferData.PriorityTypeId;\r\n\r\n\t\t\t\t\tmodel.IsUpdate = true;\r\n\t\t\t\t\tIndividualModel.Id = transactionData.Id;\r\n\t\t\t\t\tIndividualModel.PayeeId = etransferData.PayeeId;\r\n\t\t\t\t\tIndividualModel.PayeeName = etransferData.PayeeName;\r\n\t\t\t\t\tIndividualModel.PayeeEmail = etransferData.PayeeEmail;\r\n\t\t\t\t\tIndividualModel.Amount = transactionData.TransactionAmount;\r\n\t\t\t\t\tIndividualModel.DateOfFunds = transactionData.TransactionDate ? DateHelper.ToMoment(etransferData.TransactionDate) : null;\r\n\t\t\t\t\tIndividualModel.MoneyReqExpDate = etransferData.MoneyRequestExpiryDate ? DateHelper.ToMoment(etransferData.MoneyRequestExpiryDate) : null;\r\n\t\t\t\t\tIndividualModel.SecurityQuestion = etransferData.SecurityQuestionId;\r\n\t\t\t\t\tIndividualModel.IsHaveQuestion = etransferData.SecurityQuestionId != null && etransferData.SecurityQuestionId > 0;\r\n\t\t\t\t\tIndividualModel.SecurityQuestionText = etransferData.SecurityQuestion;\r\n\t\t\t\t\tIndividualModel.SecurityQuestionAnswer = etransferData.SecurityQuestionAnswer;\r\n\t\t\t\t\tIndividualModel.TransferMemo = etransferData.Memo;\r\n\t\t\t\t\tIndividualModel.TransactionType = transactionData.TransactionTypeId;\r\n\t\t\t\t\tIndividualModel.TransactionTypeCode = transactionData.TransactionType ? transactionData.TransactionType.ParameterValue : \"\";\r\n\t\t\t\t\tIndividualModel.NotificationTypeId = etransferData.NotificationTypeId;\r\n\t\t\t\t\tIndividualModel.NotificationType = etransferData.NotificationType;\r\n\t\t\t\t\tIndividualModel.ServiceType = etransferData.NotificationType != null ? etransferData.NotificationType.ParameterValue3 : 0;\r\n\t\t\t\t\tIndividualModel.PhoneNumber = etransferData.Payee != null ? etransferData.Payee.Phone != null ? etransferData.Payee.Phone.PhoneNumber : \"\" : \"\";\r\n\r\n\t\t\t\t\treturn { model, IndividualModel, Id: etransferData.TransactionId };\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while fetching data\", errorMessage);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tShowMessage(type, title, message) {\r\n\t\tthis.setState({ alert: });\r\n\t}\r\n\r\n\thideAlert() {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, IndividualModel, isLoading, Id, CancelReasonId, CancelMemo, alert } = this.state;\r\n\t\tconst parentModel = { EntryCode: EtransferEntryType.Individual, UniqueClientId: model.UniqueClientId };\r\n\t\tconst { Disabled } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t<>\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nEtransferSuspiciousApprove.propTypes = {\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(EtransferSuspiciousApprove, {});","import { Proxy, withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericAlert } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { EtransferEntryType, ProgramCodes } from \"views/Constants/Constant\";\r\nimport CreateEtransferIndividual from \"views/InteraceTransfer/CreateEtransfer/CreateEtransferIndividual\";\r\n\r\nclass EtransferTraceApprove extends Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tisLoading: false,\r\n\t\t\tmodel: {\r\n\r\n\t\t\t},\r\n\t\t\tIndividualModel: {\r\n\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tthis.SubmitClick = this.SubmitClick.bind(this);\r\n\t\tthis.Nothing = this.Nothing.bind(this);\r\n\t\tthis.FillData = this.FillData.bind(this);\r\n\t\tthis.GetModel = this.GetModel.bind(this);\r\n\r\n\t\tthis.ShowMessage = this.ShowMessage.bind(this);\r\n\t\tthis.hideAlert = this.hideAlert.bind(this);\r\n\t}\r\n\r\n\tNothing() {\r\n\r\n\t}\r\n\r\n\tSubmitClick(workflowId, after, accessToken) {\r\n\t\tconst { Id } = this.state;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/bankapi/v1.0/BankInteracETransfer/TraceApproval\",\r\n\t\t\tId,\r\n\t\t\tfileResponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!fileResponseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred\", fileResponseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (after) after();\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred\", errorMessage);\r\n\t\t\t},\r\n\t\t\tworkflowId,\r\n\t\t\taccessToken\r\n\t\t);\r\n\t}\r\n\r\n\tGetModel() {\r\n\t\tconst { model } = this.state;\r\n\t\treturn model;\r\n\t}\r\n\r\n\tFillData(Id) {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/bankapi/v1.0/BankInteracETransfer/GetByIdRequest\",\r\n\t\t\t{ Item: Id },\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while fetching data\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvar etransferData = responseData.Item;\r\n\t\t\t\tvar data = etransferData.Transaction;\r\n\r\n\t\t\t\tthis.setState(function (state) {\r\n\t\t\t\t\tvar model = state.model || {};\r\n\t\t\t\t\tvar IndividualModel = state.IndividualModel || {};\r\n\r\n\t\t\t\t\tmodel.UniqueClientId = data.UniqueClientId;\r\n\r\n\t\t\t\t\tmodel.IsBanking = data.Program.ProgramCode != ProgramCodes.Bank_Programs_e_Transfer;\r\n\r\n\t\t\t\t\tmodel.EntryType = data.EntryTypeId;\r\n\t\t\t\t\tmodel.EntryCode = data.EntryType ? data.EntryType.ParameterValue : \"\";\r\n\t\t\t\t\tmodel.EtransferType = etransferData.PriorityTypeId;\r\n\r\n\t\t\t\t\tmodel.IsUpdate = true;\r\n\t\t\t\t\tIndividualModel.Id = data.Id;\r\n\t\t\t\t\tIndividualModel.Id = data.Id;\r\n\t\t\t\t\tIndividualModel.PayeeId = etransferData.PayeeId;\r\n\t\t\t\t\tIndividualModel.PayeeName = etransferData.PayeeName;\r\n\t\t\t\t\tIndividualModel.PayeeEmail = etransferData.PayeeEmail;\r\n\t\t\t\t\tIndividualModel.Amount = data.TransactionAmount;\r\n\t\t\t\t\tIndividualModel.DateOfFunds = data.TransactionDate ? DateHelper.ToMoment(data.TransactionDate) : null;\r\n\t\t\t\t\tIndividualModel.MoneyReqExpDate = etransferData.MoneyRequestExpiryDate ? DateHelper.ToMoment(etransferData.MoneyRequestExpiryDate) : null;\r\n\t\t\t\t\tIndividualModel.SecurityQuestion = etransferData.SecurityQuestionId;\r\n\t\t\t\t\tIndividualModel.SecurityQuestionText = etransferData.SecurityQuestion;\r\n\t\t\t\t\tIndividualModel.SecurityQuestionAnswer = etransferData.SecurityQuestionAnswer;\r\n\t\t\t\t\tIndividualModel.TransferMemo = etransferData.Memo;\r\n\t\t\t\t\tIndividualModel.TransactionType = data.TransactionTypeId;\r\n\t\t\t\t\tIndividualModel.TransactionTypeCode = data.TransactionType ? data.TransactionType.ParameterValue : \"\";\r\n\r\n\t\t\t\t\treturn { model, IndividualModel, Id };\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while fetching data\", errorMessage);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tShowMessage(type, title, message) {\r\n\t\tthis.setState({ alert: });\r\n\t}\r\n\r\n\thideAlert() {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, isLoading, Id, alert } = this.state;\r\n\t\tconst parentModel = { EntryCode: EtransferEntryType.Individual, UniqueClientId: model.UniqueClientId };\r\n\r\n\t\treturn (\r\n\t\t\t<>\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nexport default withArtifex(EtransferTraceApprove, {});","import { Dialog, DialogContent } from \"@material-ui/core\";\r\nimport style from \"assets/jss/material-dashboard-pro-react/views/buttonToolbarStyle.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericCircularProgress, GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTitle } from \"views/Components/Generic\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\n\r\nconst initialState = {\r\n\tvModel: {},\r\n\tmodel: {},\r\n\tisBrowse: false,\r\n\tparameterDatalist: [],\r\n\tparamDetailList: [],\r\n\tisLoading: false,\r\n\trowIndex: -1,\r\n\talert: null\r\n};\r\n\r\nconst url = \"/lmsapi/v1.0/AutomatedCollectionParameter/\";\r\n\r\nclass AutomatedCollectionParameter extends Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = { ...initialState };\r\n\r\n\t\tthis.sortedParameterDesc = { Member: \"ParameterDesc\" };\r\n\r\n\t\tthis.LoanTypeParameterCode = { ParameterCode: \"LOSLoanType\" };\r\n\t\tthis.LoanPurposeParameterCode = { ParameterCode: \"LOSLoanPurpose\" };\r\n\t\tthis.LMSAutoCLCParamAction = { ParameterCode: \"LMSAutoCLCParamAction\" };\r\n\r\n\t\tthis.LMSAutoCollectionParamProfileFlexSet = {\r\n\t\t\tFlexType: \"LMSAutoCollectionParamProfile\",\r\n\t\t\tFlexCode: \"LMSCPP\"\r\n\t\t};\r\n\r\n\t}\r\n\t/**Begin Life cycle Methods */\r\n\tcomponentDidMount() {\r\n\t\tthis\r\n\t\t\t.props\r\n\t\t\t.setAppLeftTitle(\"Automated Collection Parameters\");\r\n\t\tthis\r\n\t\t\t.props\r\n\t\t\t.setAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n\t}\r\n\t/**END Life cycle Methods */\r\n\r\n\t/** General Methods */\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: null })}\r\n\t\t\t\tOnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\tShowMessageAndRefresh = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlertAndRefresh()} />\r\n\t\t});\r\n\t}\r\n\thideAlertAndRefresh = () => {\r\n\t\tthis.setState({ alert: null, isLoading: false, state: { ...initialState } });\r\n\t\twindow\r\n\t\t\t.location\r\n\t\t\t.reload();\r\n\r\n\t}\r\n\tHideAlert = () => {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\tErrorCallback = (error) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t}\r\n\r\n\r\n\t/** END General Methods */\r\n\r\n\t/** BEGIN ACTIONS */\r\n\r\n\tGetAutoCollectionParamDetails = () => {\r\n\t\tconst data = this.state.model;\r\n\t\tif (data != null && data.Id > 0) {\r\n\t\t\tthis.HideAlert();\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tthis.Post(data, \"SearchParamDetail\");\r\n\t\t}\r\n\t}\r\n\tOperationCheck = () => {\r\n\r\n\t\tvar ErrorList = [];\r\n\t\tconst data = this.state.model;\r\n\t\tconst { vModel } = this.state;\r\n\t\tif (data == null) {\r\n\t\t\tErrorList.push(\"Main parameters not defined.\");\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please Fill Required Fields\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (data.LoanTypeId == null || data.LoanTypeId == 0) {\r\n\t\t\tvModel.LoanTypeId = true;\r\n\t\t\tErrorList.push(\"Loan type must be defined.\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvModel.LoanTypeId = false;\r\n\t\t}\r\n\t\tif (data.LoanPurposeId == null || data.LoanPurposeId == 0) {\r\n\t\t\tvModel.LoanPurposeId = true;\r\n\t\t\tErrorList.push(\"Purpose of loan must be defined.\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvModel.LoanPurposeId = false;\r\n\t\t}\r\n\t\tif (data.AutoCollectionProfileId == null || data.AutoCollectionProfileId == 0) {\r\n\t\t\tvModel.AutoCollectionProfileId = true;\r\n\t\t\tErrorList.push(\"Profile must be defined.\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvModel.AutoCollectionProfileId = false;\r\n\t\t}\r\n\t\tconst paramDetails = this.state.paramDetailList;\r\n\t\tif (paramDetails.length == 0) {\r\n\t\t\tErrorList.push(\"Parameter detail must be defined.\");\r\n\t\t}\r\n\t\tparamDetails.map((item) => {\r\n\t\t\tif (item.NumberOfDelayDay == null || item.AutoCollectionParamActionId == 0) {\r\n\t\t\t\tErrorList.push(\"Number 0f delay day must be any value bigger than 0.\");\r\n\t\t\t}\r\n\t\t\tif (item.AutoCollectionParamActionId == null || item.NumberOfDelayDay == 0) {\r\n\t\t\t\tErrorList.push(\"Action must be defined.\");\r\n\t\t\t}\r\n\t\t\tif (item.AutoCollectionParamAction.ParameterValue != 3 && (item.LoanNotificationTemplateId == null || item.LoanNotificationTemplateId == 0)) {\r\n\t\t\t\tErrorList.push(\"Notification template must be defined.\");\r\n\t\t\t}\r\n\r\n\t\t\treturn null;\r\n\t\t});\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please Fill Required Fields\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (data.Id != null && data.Id > 0) {\r\n\t\t\tthis.ActionUpdate();\r\n\t\t} else {\r\n\t\t\tthis.ActionSubmit();\r\n\t\t}\r\n\t\tthis.setState({ vModel });\r\n\t}\r\n\r\n\tActionSubmit = () => {\r\n\t\tthis.HideAlert();\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst data = {};\r\n\t\tdata.AutoCollectionParam = this.state.model;\r\n\t\tdata.AutoCollectionParamDetailList = this.state.paramDetailList;\r\n\t\tthis.Post(data, \"Save\");\r\n\t}\r\n\r\n\tActionSearch = () => {\r\n\t\tthis.HideAlert();\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst data = this.state.model;\r\n\t\tthis.Post(data, \"Search\");\r\n\r\n\t}\r\n\r\n\tActionUpdate = () => {\r\n\t\tthis.HideAlert();\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst data = {};\r\n\t\tdata.AutoCollectionParam = this.state.model;\r\n\t\tdata.AutoCollectionParamDetailList = this.state.paramDetailList;\r\n\t\tthis.Post(data, \"Save\");\r\n\t}\r\n\r\n\tActionDelete = () => {\r\n\t\tvar ErrorList = [];\r\n\t\tthis.HideAlert();\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst data = this.state.model;\r\n\t\tif (data == null || data.Id == null || data.ScoreCardValueId == 0) {\r\n\t\t\tErrorList.push(\"Any approval parameter not selected.\");\r\n\t\t}\r\n\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please Select A Record From Parameter List\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.Post(data, \"Delete\");\r\n\t}\r\n\r\n\tActionClear = () => {\r\n\t\tthis.setState({ model: {}, parameterDatalist: [{}], paramDetailList: [], alert: null, isLoading: false, rowIndex: -1 });\r\n\t}\r\n\r\n\tPost = (model, methodName) => {\r\n\t\tthis.setState({ alert: null });\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tif (methodName == \"Search\") {\r\n\t\t\tmodel.LoanPurposeId = !model.LoanPurposeId\r\n\t\t\t\t? 0\r\n\t\t\t\t: model.LoanPurposeId;\r\n\t\t}\r\n\r\n\t\tProxy.POST((url + methodName), model, (responseData) => {\r\n\t\t\tswitch (methodName) {\r\n\t\t\t\tcase \"Search\":\r\n\t\t\t\t\tif (responseData.IsSucceeded && responseData.Item != null) {\r\n\t\t\t\t\t\tthis.setState({ parameterDatalist: responseData.Item, isLoading: false });\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessageNode(\"error\", \"Error\", \"No Record Listed\");\r\n\t\t\t\t\t\tthis.ActionClear();\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase \"Delete\":\r\n\t\t\t\t\tif (responseData.IsSucceeded && responseData.Item != null) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"The Parameter Deleted\");\r\n\t\t\t\t\t\tthis.ActionClear();\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tthis.ShowMessageNode(\"error\", \"Error\", \"The Parameter Did Not Delete\");\r\n\t\t\t\t\t\tthis.ActionClear();\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.setState({ alert: null, isLoading: false, state: { ...initialState } });\r\n\t\t\t\t\tthis.ActionSearch();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase \"SearchParamDetail\":\r\n\t\t\t\t\tif (responseData.IsSucceeded && responseData.Item != null) {\r\n\t\t\t\t\t\tthis.setState({ paramDetailList: responseData.Item, isLoading: false });\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessageNode(\"error\", \"Error\", \"No Detail Record Listed\");\r\n\t\t\t\t\t\tthis.setState({ paramDetailList: [], isLoading: false });\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tif (responseData.IsSucceeded && responseData.Item != null) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"The Parameter Saved\");\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tthis.ActionClear();\r\n\t\t\t\t\t\tthis.ActionSearch();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", \"The Parameter Did Not Save\");\r\n\t\t\t\t\t\tthis.setState({ alert: null, isLoading: false, state: { ...initialState } });\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t}\r\n\t\t}, this.ErrorCallback);\r\n\r\n\t}\r\n\r\n\t/** END ACTIONS */\r\n\r\n\r\n\r\n\r\n\t/** BEGIN EVENTS */\r\n\r\n\tHandleChange = (name, newValue) => {\r\n\t\tconst model = {\r\n\t\t\t...this.state.model\r\n\t\t};\r\n\r\n\t\tif (name == \"LoanTypeId\") {\r\n\t\t\tmodel[name] = newValue != null\r\n\t\t\t\t? newValue\r\n\t\t\t\t: 0;\r\n\t\t\tmodel[\"LoanPurposeId\"] = null;\r\n\t\t} else {\r\n\t\t\tmodel[name] = newValue;\r\n\t\t}\r\n\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\thandleChangeCriteria = (name, newValue, index, data) => {\r\n\t\tthis.setState(function () {\r\n\t\t\tvar list = this.state.paramDetailList;\r\n\t\t\tconst item = list[index];\r\n\t\t\tif (item != null) {\r\n\t\t\t\titem[name] = newValue;\r\n\t\t\t}\r\n\t\t\tif (name === \"AutoCollectionParamActionId\" && item != null) {\r\n\t\t\t\titem.AutoCollectionParamAction = data;\r\n\t\t\t}\r\n\t\t\treturn { paramDetailList: list };\r\n\t\t});\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tconst list = this.state.parameterDatalist;\r\n\t\tlet model = list[index];\r\n\t\tthis.setState({ model, rowIndex: index }, () => this.GetAutoCollectionParamDetails());\r\n\t}\r\n\r\n\tAddSingleCriteria = () => {\r\n\t\tconst { model, paramDetailList: list } = this.state;\r\n\r\n\t\tconst temp = {\r\n\t\t\tId: 0,\r\n\t\t\tAutomatedCollectionParameterId: model.Id,\r\n\t\t\tAutoCollectionParamActionId: 0,\r\n\t\t\tAutoCollectionParamAction: { ParameterValue: 3 },\r\n\t\t\tLoanNotificationTemplateId: 0\r\n\t\t};\r\n\t\tlist.push(temp);\r\n\t\tthis.setState({ paramDetailList: list });\r\n\t}\r\n\r\n\tRemoveSelectedCriteria = (index) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar paramDetailList = state.paramDetailList;\r\n\t\t\tparamDetailList.splice(index, 1);\r\n\t\t\treturn { paramDetailList };\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, alert, paramDetailList, isLoading, vModel, rowIndex } = this.state;\r\n\r\n\t\tvar ForInsert = !model.Id || model.Id <= 0;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t{alert}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{paramDetailList != null && paramDetailList.map((item, index) => (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t this.handleChangeCriteria(name, value, index, data)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={false} />\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t this.handleChangeCriteria(name, value, index, data)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={false} />\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t{(item.AutoCollectionParamAction.ParameterValue != 3) &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t this.handleChangeCriteria(name, value, index, data)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"Id\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tTextValueMember=\"Name\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethod=\"POST\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUrl=\"/lmsapi/v1.0/LoanNotificationTemplate/SearchTemp\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tParameter={{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tLoanTypeId: 0,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tLoanPurposeId: 0,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAutoCollectionParamActionId: 0\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t))}\r\n\r\n\t\t\t\t\t\t\t\t\r\n\r\n\r\n\r\n\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nconst styles = ({\r\n\tLabelText: {\r\n\t\tcolor: \"Black\",\r\n\t\tmarginLeft: 20\r\n\t},\r\n\tLabelText2: {\r\n\t\tcolor: \"black\",\r\n\t\tmarginLeft: 50\r\n\t},\r\n\tComboStyle: {\r\n\t\tmarginLeft: 30\r\n\t},\r\n\tLabelStyle: {\r\n\t\tfontSize: 8 + \"px !important;\"\r\n\t},\r\n\tInputStyle: {\r\n\t\tbackgroundColor: \"White\"\r\n\t}\r\n});\r\n\r\nAutomatedCollectionParameter.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(AutomatedCollectionParameter, style);\r\n","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport ClientHelper from \"core/ClientHelper.js\";\r\nimport { ETransferIcon, ProfileIcon } from \"core/Icons\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent\";\r\nimport {\r\n\tGenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel,\r\n\tGenericGrid, GenericLabel, GenericSelectInput, GenericTextInput\r\n} from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\nimport ApplicantDefinition from \"views/LOS/ApplicantDefinition/ApplicantDefinition\";\r\n\r\nclass BorrowerList extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tCustomerId: 0,\r\n\t\t\t\tCustomerNumber: \"\",\r\n\t\t\t\tUniqueClientId: 0,\r\n\t\t\t\tAccountNumber:null,\r\n\t\t\t\tEmail:null\r\n\t\t\t},\r\n\t\t\topenDetailModel: false,\r\n\t\t\tApplicantId: 0,\r\n\t\t\tisBackOffice: ClientHelper.IsBackOffice()\r\n\t\t};\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date\",\r\n\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"UniqueClient.ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Unique Client Id\",\r\n\t\t\t\taccessor: \"UniqueClient.UniqueClientId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Full Name\",\r\n\t\t\t\taccessor: \"FullName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"DCBank Unique ID\",\r\n\t\t\t\taccessor: \"ApplicantUniqueId\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Bank Account No\",\r\n\t\t\t\taccessor: \"AccountNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Email\",\r\n\t\t\t\taccessor: \"Email\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Phone\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t{row.original.MobilePhoneCountryCode == null ? \"\" : \"+\" + row.original.MobilePhoneCountryCode.Code + \" \" + row.original.MobilePhoneNumber}\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date of birth\",\r\n\t\t\t\taccessor: \"BirthDate\",\r\n\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"External Account Number\",\r\n\t\t\t\taccessor: \"ExternalAccountNumber\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.urlApplicant = \"/losapi/v1.0/Applicant/\";\r\n\t\tif (!this.state.isBackOffice) {\r\n\t\t\tthis.columns.unshift(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t RouteHelper.Push(this.props.history, \"/lmsPaymentAdmin\", \"LmsPaymentAdminApplicantId\", row.original.Id)} />\r\n\t\t\t\t\t\t\t this.setState({ ApplicantId: row.original.Id, openDetailModel: true })} />\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t),\r\n\t\t\t\t\t// @ts-ignore\r\n\t\t\t\t\twidth: 70,\r\n\t\t\t\t\tfilterable: false,\r\n\t\t\t\t\tsortable: false\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\r\n\r\n\t\tthis.ValueChangedCustomer = this.ValueChangedCustomer.bind(this);\r\n\t\tthis.Search = this.Search.bind(this);\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Borrower List\");\r\n\t\t}\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = value;\r\n\t\t\tif (name == \"UniqueClientId\" && value == null) {\r\n\t\t\t\tmodel[name] = 0;\r\n\t\t\t}\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tasync ValueChangedCustomer(customer) {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tif (customer == null) {\r\n\t\t\tmodel.CustomerId = 0;\r\n\t\t\tmodel.CustomerNumber = \"\";\r\n\t\t\tmodel.AccountNumber = null;\r\n\t\t\tmodel.Email = null;\r\n\r\n\t\t\tthis.setState({ model });\r\n\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(`${this.urlApplicant}GetAccountByCustomerId`, { CustomerId: customer.Id });\r\n\r\n\t\tif (result != null) {\r\n\t\t\tmodel.AccountNumber = result.AccountNumber;\r\n\t\t\tmodel.CustomerId = customer.Id;\r\n\t\t\tmodel.CustomerNumber = customer.CustomerNumber;\r\n\t\t\tmodel.Email = customer.Email;\r\n\r\n\t\t\tthis.setState({ model });\r\n\t\t}\r\n\t}\r\n\r\n\tasync Search() {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(`${this.urlApplicant}Search`, model);\r\n\r\n\t\tthis.setState({ list: result || [] });\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {\r\n\t\t\t\tCustomerId: 0,\r\n\t\t\t\tCustomerNumber: \"\",\r\n\t\t\t\tUniqueClientId: 0\r\n\t\t\t}\r\n\t\t\t, list: []\r\n\t\t\t, selected: null\r\n\t\t});\r\n\t}\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\treturn `${d.UniqueClientId} - ${d.Name}`;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, list, selected, openDetailModel, ApplicantId, isBackOffice } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\r\n\t\tvar uniqueClientId = ClientHelper.GetClientRowId();\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{isBackOffice && (\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nBorrowerList.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default BorrowerList;","import { DialogContent, DialogTitle, Slide } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel } from \"views/Components/Generic\";\r\n\r\nfunction Transition(props) {\r\n\treturn ;\r\n}\r\n\r\nclass BulkApplicationDelivery extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.fileInputRef = React.createRef();\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"File Name\",\r\n\t\t\t\taccessor: \"FileName\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.columnsSubmitDetail = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"First Name\",\r\n\t\t\t\taccessor: \"FirstName\",\r\n\t\t\t\tCell: row => (
{row.value}
)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Last Name\",\r\n\t\t\t\taccessor: \"LastName\",\r\n\t\t\t\tCell: row => (
{row.value}
)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"e-Mail Address\",\r\n\t\t\t\taccessor: \"EmailAddress\",\r\n\t\t\t\tCell: row => (
{row.value}
)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Succeeded\",\r\n\t\t\t\taccessor: \"IsSucceeded\",\r\n\t\t\t\tCell: row => (
{Formatter.FormatYesNo(row.value)}
)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Error Description\",\r\n\t\t\t\taccessor: \"ErrorDescription\",\r\n\t\t\t\tCell: row => (
{row.value}
)\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.columnsRowStyleColor = {};\r\n\r\n\t\tthis.fileCode = \"LenderBulkApplication\";\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\tisSubmitDetailDialogOpen: false\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Bulk Application Delivery\");\r\n\t\t}\r\n\r\n\t\tthis.Search();\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tconst { list } = this.state;\r\n\r\n\t\tthis.setState({ model: list[index], selected: index });\r\n\t}\r\n\r\n\tGetColumnsRowStyleColor(isSucceeded) {\r\n\t\tthis.columnsRowStyleColor = {\r\n\t\t\tcolor: !isSucceeded\r\n\t\t\t\t? \"#FB3005\"\r\n\t\t\t\t: \"#387A5C\"\r\n\t\t};\r\n\r\n\t\treturn this.columnsRowStyleColor;\r\n\t}\r\n\r\n\tSubmitDetailDialogOpen = () => {\r\n\t\tthis.setState({ isSubmitDetailDialogOpen: true });\r\n\t}\r\n\r\n\tSubmitDetailDialogClose = () => {\r\n\t\tthis.setState({ isSubmitDetailDialogOpen: false });\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/lmsapi/v1.0/LosOutService/Search\", {});\r\n\r\n\t\tthis.setState({ list: result || [] });\r\n\t}\r\n\r\n\tSubmit = async () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst { model } = this.state;\r\n\t\tconst { ExecuteApiFileUpload } = this.props;\r\n\t\tvar formData = new FormData();\r\n\t\tformData.append(\"file\", model.File, model.FileName);\r\n\r\n\t\tvar result = await ExecuteApiFileUpload(\"/lmsapi/v1.0/LosOutService/Submit\", formData, [this.Search]);\r\n\r\n\t\tif (result) {\r\n\t\t\tthis.setState({ listSubmitDetail: result }, () => this.SubmitDetailDialogOpen());\r\n\t\t}\r\n\t}\r\n\r\n\tUpload = () => {\r\n\t\tthis.fileInputRef.current.click();\r\n\t}\r\n\r\n\tFileSelect = (e) => {\r\n\t\te.preventDefault();\r\n\r\n\t\tvar file = e.target.files[0];\r\n\t\tif (!file) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar { model } = this.state;\r\n\r\n\t\tmodel.File = file;\r\n\t\tmodel.FileName = file.name;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tValidate() {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errors = [];\r\n\r\n\t\tif (model.FileName == null\r\n\t\t\t&& model.File == null) {\r\n\t\t\terrors.push(\"Bulk application delivery file cannot be empty.\");\r\n\t\t}\r\n\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, list, listSubmitDetail, selected, isSubmitDetailDialogOpen } = this.state;\r\n\t\tconst { Disabled, ExecuteApiFileDownloadWithGenericResponse } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t ExecuteApiFileDownloadWithGenericResponse(\"/coreapi/v1.0/File/DownloadFileFromBinary\", { FileId: model.FileId }, model.FileName, model.FileExtension)\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nBulkApplicationDelivery.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tExecuteApiFileUpload: PropTypes.func,\r\n\tExecuteApiFileDownloadWithGenericResponse: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default BulkApplicationDelivery;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericCheckInput, GenericExpansionPanel, GenericNumberInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\n\r\nclass CardFinancialAdjustment extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.emptyObject = {};\r\n\t\tthis.parameterApplicantId = {};\r\n\t\tthis.parameterUniqueClientId = {};\r\n\r\n\t\tthis.renderItemApplication = {};\r\n\t\tthis.renderItemUniqueClient = {};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tApplicantId: 0,\r\n\t\t\t\tUniqueClientId: 0,\r\n\t\t\t\tIsCashAdvance: false\r\n\t\t\t}\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"Loan Management System\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Card Financial Adjustment\");\r\n\t\t}\r\n\t}\r\n\r\n\tValueChanged = (name, value, data) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\tif (!value) {\r\n\t\t\t\tif (name == \"UniqueClientId\" || name == \"ApplicantId\") {\r\n\t\t\t\t\tmodel[name] = 0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (name == \"UniqueClientId\") {\r\n\t\t\t\tmodel.ApplicantId = 0;\r\n\t\t\t}\r\n\t\t\telse if (name == \"ApplicantId\") {\r\n\t\t\t\tmodel.ApplicationId = null;\r\n\t\t\t\tmodel.CardId = null;\r\n\t\t\t\tmodel.CardFinancialId = null;\r\n\t\t\t\tmodel.CatmCardId = null;\r\n\t\t\t}\r\n\t\t\telse if (name == \"CardId\") {\r\n\t\t\t\tmodel.CardFinancialId = data?.CardFinancialId;\r\n\t\t\t\tmodel.CatmCardId = data?.CatmCardId;\r\n\t\t\t}\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tRenderItemApplication = (d) => {\r\n\t\tthis.renderItemApplication = `${d.ApplicationNumber}`;\r\n\r\n\t\treturn this.renderItemApplication;\r\n\t}\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tGetParameterApplicantId = () => {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tthis.parameterApplicantId.Id = model.ApplicantId;\r\n\t\tthis.parameterApplicantId.ApplicantId = model.ApplicantId;\r\n\r\n\t\treturn this.parameterApplicantId;\r\n\t}\r\n\r\n\tGetParameterUniqueClientId = () => {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tthis.parameterUniqueClientId.Id = model.UniqueClientId;\r\n\r\n\t\treturn this.parameterUniqueClientId;\r\n\t}\r\n\r\n\tSubmit = async () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst { model } = this.state;\r\n\t\tconst { ExecuteApiPost, showConfirmMessage } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/lmsapi/v1.0/Statement/CheckCardFinancialAdjustmentTranactionAlreadySent\", model);\r\n\r\n\t\tif (result != null) {\r\n\t\t\tif (result) {\r\n\t\t\t\tvar confirmResult = await showConfirmMessage(\"warning\", \"Warning\", \"The same transaction has been sent to the card today. Are you sure you want to send it again?\");\r\n\r\n\t\t\t\tif (confirmResult) {\r\n\t\t\t\t\tthis.SubmitConfirm();\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tthis.SubmitConfirm();\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tSubmitConfirm = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\r\n\t\tExecuteApiPost(\"/lmsapi/v1.0/Statement/SaveCardFinancialAdjustment\", model, null, null, null, null, true);\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {\r\n\t\t\t\tApplicantId: 0,\r\n\t\t\t\tUniqueClientId: 0,\r\n\t\t\t\tIsCashAdvance: false\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tvar { model } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errors = [];\r\n\r\n\t\tif (!model.UniqueClientId || model.UniqueClientId == 0) {\r\n\t\t\terrors.push(\"Client cannot be empty.\");\r\n\t\t}\r\n\t\tif (!model.ApplicantId || model.ApplicantId == 0) {\r\n\t\t\terrors.push(\"Applicant cannot be empty.\");\r\n\t\t}\r\n\t\tif (!model.ApplicationId) {\r\n\t\t\terrors.push(\"Application cannot be empty.\");\r\n\t\t}\r\n\t\tif (!model.CardId) {\r\n\t\t\terrors.push(\"Applicant's card cannot be empty.\");\r\n\t\t}\r\n\t\tif (!model.TransactionCode) {\r\n\t\t\terrors.push(\"Transaction code cannot be empty.\");\r\n\t\t}\r\n\t\tif (!model.Amount) {\r\n\t\t\terrors.push(\"Amount cannot be empty.\");\r\n\t\t}\r\n\t\tif (!model.Description) {\r\n\t\t\terrors.push(\"Description cannot be empty.\");\r\n\t\t}\r\n\r\n\t\tmodel[\"IsUniqueClientId\"] = !model.UniqueClientId || model.UniqueClientId == 0;\r\n\t\tmodel[\"IsApplicantId\"] = !model.ApplicantId || model.ApplicantId == 0;\r\n\t\tmodel[\"IsApplicationId\"] = !model.ApplicationId;\r\n\t\tmodel[\"IsCardId\"] = !model.CardId;\r\n\t\tmodel[\"IsTransactionCode\"] = !model.TransactionCode;\r\n\t\tmodel[\"IsAmount\"] = !model.Amount;\r\n\t\tmodel[\"IsDescription\"] = !model.Description;\r\n\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCardFinancialAdjustment.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default CardFinancialAdjustment;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericAlert,} from \"views/Components/Generic\";\r\nimport { ProgramCodes } from \"views/Constants/Constant.js\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass CardOwingBalanceReport extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n this.initialModel = {\r\n Id: 0,\r\n UniqueClientId: ClientHelper.IsClient()\r\n ? ClientHelper.GetClientRowId()\r\n : undefined,\r\n Customer: null,\r\n DefaultAccount: null,\r\n CardTokenNumber: null,\r\n CustomerNumber: null,\r\n CustomerId: 0,\r\n };\r\n\r\n this.columns = [\r\n {\r\n Header: \"Customer Name\",\r\n accessor: \"CustomerName\",\r\n },\r\n {\r\n Header: \"Debit Inquiry\",\r\n accessor: \"DebitInquiry\",\r\n\t\t type: GridColumnType.Money,\r\n\t\t ColumnType: GridColumnType.Money\r\n },\r\n\t\t{\r\n\t\t\tHeader: \"Card Status\",\r\n\t\t\taccessor: \"ApplicationCardStatus\",\r\n\t\t },\r\n\t\t {\r\n\t\t\tHeader: \"Fee Profile\",\r\n\t\t\taccessor: \"FeeProfile\",\r\n\t\t },\r\n\t\t {\r\n\t\t\tHeader: \"Statement Day Of Month\",\r\n\t\t\taccessor: \"StatementDayOfMonth\",\r\n\t\t },\r\n\t\t {\r\n\t\t\tHeader: \"Statement Date\",\r\n\t\t\taccessor: \"StatementDate\",\r\n\t\t\ttype: GridColumnType.Date,\r\n\t\t\tColumnType: GridColumnType.Date,\r\n\t\t },\r\n ];\r\n\r\n this.state = {\r\n model: this.initialModel,\r\n isLoading: false,\r\n checkedAccounts: [],\r\n ClientTypeParameter: {},\r\n panelTransactionIsActive: false,\r\n list: [],\r\n isBackOffice: ClientHelper.IsBackOffice(),\r\n };\r\n }\r\n\r\n componentDidMount() {\r\n const { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n if (setAppCenterTitle) {\r\n setAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n }\r\n if (setAppLeftTitle) {\r\n setAppLeftTitle(\"Card Owing Balance Report\");\r\n }\r\n }\r\n\r\n ValueChanged = (name, value) => {\r\n const model = { ...this.state.model };\r\n model[name] = value;\r\n\r\n this.setState({ model });\r\n };\r\n\r\n Search = async () => {\r\n if (!this.Validate()) return;\r\n const { ExecuteApiPost } = this.props;\r\n const model = { ...this.state.model };\r\n const request = {\r\n CustomerNumber:\r\n model.Customer == null ? null : model.Customer.CustomerNumber,\r\n UniqueClientId: model.UniqueClientId,\r\n CustomerId: model.CustomerId,\r\n };\r\n var result = await ExecuteApiPost(\r\n \"/lmsapi/v1.0/PaymentAdmin/CardOwingBalanceReport\",\r\n request,\r\n null,\r\n null,\r\n null\r\n );\r\n\r\n if (result != null) {\r\n this.setState({ list: result || [] });\r\n }\r\n };\r\n\r\n Clear = () => {\r\n this.setState({ model: {}, list: [], selected: null, checkedAccounts: [] });\r\n };\r\n Validate = () => {\r\n var { model } = this.state;\r\n\t const { showValidationErrors } = this.props;\r\n this.setState({ model });\r\n\t var messages = [];\r\n if (!model.CustomerNumber) {\r\n }\r\n\t if (model.UniqueClientId == undefined || model.UniqueClientId == null) {\r\n\t\tmessages.push(\"Client cannot be empty.\");\r\n\t}\r\n\tif (messages.length > 0) {\r\n\t\tshowValidationErrors(messages);\r\n\t\treturn false;\r\n\t}\r\n return true;\r\n };\r\n\r\n handleChange = (name, newValue) => {\r\n const model = {\r\n ...this.state.model,\r\n };\r\n model[name] = newValue;\r\n this.setState({ model });\r\n };\r\n\r\n handleChangeForCustomer = (name, newValue) => {\r\n const model = { ...this.state.model };\r\n const initialModel = { ...this.initialModel };\r\n if (name === \"Customer\") {\r\n if (newValue != null) {\r\n model.Customer = newValue;\r\n if (newValue.Accounts != null && newValue.Accounts.length > 0) {\r\n model.CustomerNumber = newValue.Accounts[0].CustomerNumber;\r\n } else {\r\n model.CustomerNumber = null;\r\n }\r\n } else {\r\n model.Customer = initialModel.Customer;\r\n }\r\n }\r\n this.setState({ model });\r\n };\r\n\r\n HandleClear = () => {\r\n this.setState({\r\n model: this.initialModel,\r\n filterModel: {},\r\n selected: null,\r\n list: [],\r\n });\r\n };\r\n\r\n FillCustomer = (customer) => {\r\n this.handleChangeForCustomer(\"Customer\", customer);\r\n };\r\n\r\n render() {\r\n const { model, list, isBackOffice } = this.state;\r\n const { Disabled } = this.props;\r\n\r\n return (\r\n
\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n `${d.UniqueClientId} - ${d.Name}`}\r\n Value={model.UniqueClientId || \"\"}\r\n ValueChanged={this.handleChange}\r\n All\r\n CanClear\r\n\t\t\t\t\t\t\t\tRequired\r\n Disabled={!isBackOffice}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\nCardOwingBalanceReport.propTypes = {\r\n setAppLeftTitle: PropTypes.func,\r\n setAppCenterTitle: PropTypes.func,\r\n ExecuteApiPost: PropTypes.func,\r\n Disabled: PropTypes.bool,\r\n menuId: PropTypes.any,\r\n ApprovalData: PropTypes.any,\r\n After: PropTypes.any,\r\n};\r\n\r\nexport default CardOwingBalanceReport;\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent\";\r\nimport { GenericAlert, GenericDateInput, GenericExpansionPanel, GenericGrid, GenericSelectInput,GenericTitle,GenericLabel, GenericRadioInput, GenericDialogActions,GenericDialog } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport { DialogTitle, DialogContent } from \"@material-ui/core\";\r\nimport Select from \"react-select\";\r\nimport Button from \"components/CustomButtons/Button\";\r\n\r\n\r\nclass CardTransaction extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: null,\r\n\t\t\tCustomer: null,\r\n\t\t\tDefaultAccount: null,\r\n\t\t\tCardId: null,\r\n\t\t\tValidFrom: null,\r\n\t\t\tValidTo: null,\r\n\t\t\tCmsTransactionCodeId: null,\r\n\t\t\tCatmTransactionCodeId: null\r\n\t\t};\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Cardholder Name\",\r\n\t\t\t\taccessor: \"CardOwnerName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Masked Card Number\",\r\n\t\t\t\taccessor: \"MaskedCardNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Code\",\r\n\t\t\t\taccessor: \"TransactionTypeName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Merchant\",\r\n\t\t\t\taccessor: \"MerchantName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"City\",\r\n\t\t\t\taccessor: \"City\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Response Code\",\r\n\t\t\t\taccessor: \"ResponseCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Original Amount\",\r\n\t\t\t\taccessor: \"TransactionAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\r\n\t\t\t\t// Cell: row => (\r\n\t\t\t\t// \t
\r\n\t\t\t\t// \t\t{row.original.TransactionAmount + \" \" + (row.original.TransactionCurrency != null ? row.original.TransactionCurrency.Code : \"\")}\r\n\t\t\t\t// \t
\r\n\t\t\t\t// ),\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"BillingAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t// Cell: row => (\r\n\t\t\t\t// \t
\r\n\t\t\t\t// \t\t{row.original.BillingAmount + \" \" + (row.original.CardholderCurrency != null ? row.original.CardholderCurrency.Code : \"\")}\r\n\t\t\t\t// \t
\r\n\t\t\t\t// ),\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Fee\",\r\n\t\t\t\taccessor: \"Fee\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Merchant Clearing Amount\",\r\n\t\t\t\taccessor: \"SettlementAmount\",\r\n\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t// Cell: row => (\r\n\t\t\t\t// \t
\r\n\t\t\t\t// \t\t{row.original.SettlementAmount + \" \" + (row.original.SettlementCurrency != null ? row.original.SettlementCurrency.Code : \"\")}\r\n\t\t\t\t// \t
\r\n\t\t\t\t// ),\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Merchant Clearing Date\",\r\n\t\t\t\taccessor: \"SettlementDate\",\r\n\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Remaining Balance\",\r\n\t\t\t\taccessor: \"RemainingBalance\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Mobile Wallet Type\",\r\n\t\t\t\taccessor: \"MobileWalletType\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.cardTrxTable = React.createRef();\r\n\r\n\t\tthis.parameterIsCatmTrue = { IsCatm: true };\r\n\t\tthis.parameterIsCatmFalse = { IsCatm: false };\r\n\r\n\t\tthis.state = {\r\n\t\t\tlist: [],\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tfilterModel: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tLimitToken: false,\r\n\t\t\tLimitBalanceData: {\r\n\t\t\t\tAvailableCreditLimit: 0,\r\n\t\t\t\tAvailableDebitLimit: 0,\r\n\t\t\t\tAvailableBalance: 0\r\n\t\t\t},\r\n\t\t\tisBackOffice: ClientHelper.IsBackOffice()\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tif (this.props.setAppCenterTitle) {\r\n\t\t\tthis.props.setAppLeftTitle(\"Card Transaction Search\");\r\n\t\t\tthis.props.setAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n\t\t}\r\n\t}\r\n\r\n\tRefreshToolBar = () => {\r\n\t\tthis.setState({ LimitToken: !this.state.LimitToken });\r\n\t};\r\n\r\n\tLimitDataLoad = data => {\r\n\t\tthis.setState({ LimitBalanceData: data, isLoading: false });\r\n\t};\r\n\r\n\thandleChange = (name, newValue) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tconst initialModel = { ...this.initialModel };\r\n\t\tif (name === \"Customer\") {\r\n\t\t\tif (newValue != null) {\r\n\t\t\t\tmodel.Customer = newValue;\r\n\t\t\t\tif (newValue.Accounts != null && newValue.Accounts.length > 0) {\r\n\t\t\t\t\tmodel.DefaultAccount = newValue.Accounts[0];\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tmodel.Customer = initialModel.Customer;\r\n\t\t\t\tmodel.DefaultAccount = initialModel.DefaultAccount;\r\n\t\t\t}\r\n\t\t} else if (name === \"UniqueClientId\") {\r\n\t\t\tif (\r\n\t\t\t\t!this.state.isBackOffice &&\r\n\t\t\t\tinitialModel.UniqueClientId == null &&\r\n\t\t\t\tnewValue != null\r\n\t\t\t) {\r\n\t\t\t\tthis.initialModel.UniqueClientId = newValue;\r\n\t\t\t}\r\n\t\t\tmodel.UniqueClientId = newValue;\r\n\t\t} else if (name === \"ValidFrom\") {\r\n\t\t\tmodel.ValidFrom = newValue;\r\n\t\t} else if (name === \"ValidTo\") {\r\n\t\t\tmodel.ValidTo = newValue;\r\n\t\t} else if (name === \"CatmTransactionCodeId\") {\r\n\t\t\tmodel.CatmTransactionCodeId = newValue;\r\n\t\t} else if (name === \"CmsTransactionCodeId\") {\r\n\t\t\tmodel.CmsTransactionCodeId = newValue;\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tfilterModel: {},\r\n\t\t\tselected: null,\r\n\t\t\tlist: []\r\n\t\t});\r\n\t};\r\n\r\n\tExportClick = () => {\r\n\t\tvar cardTrxColumns = [];\r\n\t\tthis.cardTrxTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.show == undefined || c.show) {\r\n\t\t\t\tcardTrxColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: cardTrxColumns, ExportSelectedColumns: cardTrxColumns });\r\n\t}\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\t\tconst temp = { ...this.state.model };\r\n\t\tvar jsonColList = [];\r\n\r\n\t\tvar cardTrxColumns = {};\r\n\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\tcardTrxColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t});\r\n\t\tjsonColList.push(cardTrxColumns);\r\n\r\n\t\tvar mytitle = \"Card Transaction List\";\r\n\r\n\t\ttemp.jsonFile = {\r\n\t\t\tcolmns: jsonColList,\r\n\t\t\tformat: this.state.ExportReportType,\r\n\t\t\ttitle: mytitle\r\n\t\t};\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tvar request = {\r\n\t\t\tCriteria: 0,\r\n\t\t\tBeginDate: temp.ValidFrom,\r\n\t\t\tEndDate: temp.ValidTo,\r\n\t\t\tCatmTransactionCodeId: temp.CatmTransactionCodeId,\r\n\t\t\tCmsTransactionCodeId: temp.CmsTransactionCodeId,\r\n\t\t\tClientCustomerId: temp.Customer == null ? null : temp.Customer.Id,\r\n\t\t\tUniqueClientId: this.state.isBackOffice ? temp.UniqueClientId : ClientHelper.GetClientId(),\r\n\t\t\tCardId: temp.CardId,\r\n\t\t\tjsonFile:temp.jsonFile\r\n\t\t};\r\n\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\"/lmsapi/v1.0/Statement/CardTransactionSearchExportDownload\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t},\r\n\t\t\tthis.props.showMessage\r\n\t\t);\r\n\t}\r\n\r\n\taddDays = (date, days) => {\r\n\t\tvar returnDate = new Date();\r\n\t\treturnDate.setDate(date.getDate() + days);\r\n\t\treturn returnDate;\r\n\t};\r\n\r\n\tHandleSearch = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tvar request = {\r\n\t\t\tCriteria: 0,\r\n\t\t\tBeginDate: model.ValidFrom,\r\n\t\t\tEndDate: model.ValidTo,\r\n\t\t\tCatmTransactionCodeId: model.CatmTransactionCodeId,\r\n\t\t\tCmsTransactionCodeId: model.CmsTransactionCodeId,\r\n\t\t\tClientCustomerId: model.Customer == null ? null : model.Customer.Id,\r\n\t\t\tUniqueClientId: this.state.isBackOffice ? model.UniqueClientId : ClientHelper.GetClientId(),\r\n\t\t\tCardId: model.CardId\r\n\t\t};\r\n\t\tProxy.ExecuteGeneral(\r\n\t\t\tthis, \"POST\",\r\n\t\t\t\"/lmsapi/v1.0/Statement/CardTransactionSearch\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tmodel,\r\n\t\t\t\t\tlist: responseData.Item\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t\tOnConfirm={onConfirm}\r\n\t\t\t\t/>\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, isLoading, isBackOffice } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t model,\r\n\t\t\t\t\t\t\tFillDataFromModel: modelFillData => this.setState({ modelFillData }),\r\n\t\t\t\t\t\t\t//ValidationFunction: this.Validate\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{ Code: \"Clear\", OnClick: this.HandleClear, Disabled: Disabled },\r\n\t\t\t\t\t\t{ Code: \"Export\", OnClick: this.ExportClick, Disabled: Disabled }\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After}\r\n\t\t\t\t/>\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={!isBackOffice}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tDefaultIndex={!isBackOffice ? 0 : -1}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t { this.handleChange(\"Customer\", customer); }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tPrograms={[ProgramCodes.Prepaid]} />\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCardTransaction.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(CardTransaction, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericAlert, GenericDialog, GenericLabel, GenericTextInput, GenericDialogActions, GenericCheckInput,} from \"views/Components/Generic\";\r\nimport { ProgramCodes } from \"views/Constants/Constant.js\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent\";\r\nimport { RowDetailIcon } from \"core/Icons\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Button from \"components/CustomButtons/Button\";\r\n\r\nclass CreditBureauReporting extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n this.emptyObject = {};\r\n this.sortedName = { Member: \"Name\" };\r\n this.initialModel = {\r\n Id: 0,\r\n UniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined,\r\n Customer: null,\r\n CustomerNumber: null,\r\n\t\tAddToReport:null,\r\n };\r\n\r\n this.state = {\r\n model: this.initialModel,\r\n isDetailDialogOpen: false,\r\n CustomerNumber: null,\r\n CustomerName: null,\r\n AddToReport: null,\r\n isLoading: false,\r\n checkedAccounts: [],\r\n list: [],\r\n isBackOffice: ClientHelper.IsBackOffice(),\r\n };\r\n this.checkStyle = { marginLeft: \"300px\" };\r\n this.linkDivStyle = { float: \"right\" };\r\n\r\n this.columns = [\r\n {\r\n Header: \"Actions\",\r\n accessor: \"Actions\",\r\n Cell: (d) => (\r\n
\r\n \r\n this.openDetailDialog(d.original.CustomerNumber, d.original.CustomerName, d.original.AddToReport)\r\n }\r\n />\r\n
\r\n ),\r\n sortable: false,\r\n filterable: false,\r\n width: 70,\r\n },\r\n {\r\n Header: \"Add To Report\",\r\n accessor: \"AddToReport\",\r\n Cell: (row) =>
{row.value == true ? \"Yes\" : \"No\"}
,\r\n },\r\n {\r\n Header: \"Customer Name\",\r\n accessor: \"CustomerNumber\",\r\n },\r\n {\r\n Header: \"Customer Name\",\r\n accessor: \"CustomerName\",\r\n },\r\n ];\r\n\r\n this.LMSPaymentStatus = {\r\n ParameterCode: \"LMSPaymentStatus\",\r\n };\r\n }\r\n\r\n openDetailDialog = (customerNumber, customerName, addToReport) => {\r\n this.setState({\r\n isDetailDialogOpen: true,\r\n CustomerNumber: customerNumber,\r\n CustomerName: customerName,\r\n AddToReport: addToReport,\r\n });\r\n };\r\n\r\n UserDetailDialogOpen = (AddToReport) => {\r\n this.setState({ AddToReport, isUserDetailDialogOpen: true });\r\n };\r\n\r\n componentDidMount() {\r\n const { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n if (setAppCenterTitle) {\r\n setAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n }\r\n if (setAppLeftTitle) {\r\n setAppLeftTitle(\"Credit Bureau Reporting\");\r\n }\r\n }\r\n\r\n ValueChanged = (name, value) => {\r\n const model = { ...this.state.model };\r\n model[name] = value;\r\n\r\n this.setState({ model });\r\n };\r\n\r\n Search = async () => {\r\n if (!this.Validate()) return;\r\n const { ExecuteApiPost } = this.props;\r\n const model = { ...this.state.model };\r\n const request = {\r\n CustomerNumber: model.Customer == null ? null : model.Customer.CustomerNumber,\r\n UniqueClientId: model.UniqueClientId,\r\n AddToReport: model.AddToReport,\r\n };\r\n var result = await ExecuteApiPost(\r\n \"/lmsapi/v1.0/PaymentAdmin/ApplicationCardAddToReport\",\r\n request,\r\n null,\r\n null,\r\n null\r\n );\r\n\r\n if (result != null) {\r\n this.setState({ list: result || [] });\r\n }\r\n };\r\n\r\n Update = async (customerNumber, addToReport) => {\r\n if (!this.Validate()) return;\r\n const { ExecuteApiPost } = this.props;\r\n const model = { ...this.state.model };\r\n var req = this.Search();\r\n const request = {\r\n CustomerNumber: customerNumber,\r\n AddToReport: addToReport,\r\n };\r\n var result = await ExecuteApiPost(\r\n \"/lmsapi/v1.0/PaymentAdmin/UpdateApplicationCardAddToReport\",\r\n request,\r\n null,\r\n null,\r\n null\r\n );\r\n\r\n if (result != null) {\r\n this.setState({ list: result || [] });\r\n this.setState({ isDetailDialogOpen: false });\r\n\t\tthis.Search();\r\n }\r\n };\r\n\r\n Clear = () => {\r\n this.setState({\r\n model: {},\r\n list: [],\r\n selected: null,\r\n checkedAccounts: [],\r\n isDetailDialogOpen: false,\r\n });\r\n };\r\n ShowMessage = (type, title, message) => {\r\n this.setState({\r\n alert: (\r\n this.setState({ alert: \"\" })}\r\n />\r\n ),\r\n });\r\n };\r\n Validate = () => {\r\n var { model } = this.state;\r\n const { showValidationErrors } = this.props;\r\n var searchIsNotSpecific = model.searchIsNotSpecific;\r\n this.setState({ model });\r\n\r\n return true;\r\n };\r\n\r\n handleChange = (name, newValue, data) => {\r\n const model = {\r\n ...this.state.model,\r\n };\r\n if (name === \"AddToReportUpdate\") {\r\n this.setState({ AddToReport: newValue });\r\n }\r\n model[name] = newValue;\r\n this.setState({ model });\r\n };\r\n\r\n handleChangeForCustomer = (name, newValue) => {\r\n const model = { ...this.state.model };\r\n const initialModel = { ...this.initialModel };\r\n if (name === \"Customer\") {\r\n if (newValue != null) {\r\n model.Customer = newValue;\r\n if (newValue.Accounts != null && newValue.Accounts.length > 0) {\r\n model.CustomerNumber = newValue.Accounts[0].CustomerNumber;\r\n } else {\r\n model.CustomerNumber = null;\r\n }\r\n } else {\r\n model.Customer = initialModel.Customer;\r\n }\r\n }\r\n this.setState({ model });\r\n };\r\n\r\n HandleClear = () => {\r\n this.setState({\r\n model: this.initialModel,\r\n filterModel: {},\r\n selected: null,\r\n list: [],\r\n });\r\n };\r\n\r\n FillCustomer = (customer) => {\r\n this.handleChangeForCustomer(\"Customer\", customer);\r\n };\r\n\r\n render() {\r\n const { model, list, isBackOffice, isDetailDialogOpen } = this.state;\r\n const { Disabled } = this.props;\r\n\r\n return (\r\n
\r\n this.Update(),\r\n },\r\n ]}\r\n menuId={this.props.menuId}\r\n ApprovalData={this.props.ApprovalData}\r\n After={this.props.After}\r\n />\r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n `${d.UniqueClientId} - ${d.Name}`}\r\n Value={model.UniqueClientId || \"\"}\r\n ValueChanged={this.handleChange}\r\n All\r\n CanClear\r\n Disabled={!isBackOffice}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n \r\n this.Update(\r\n this.state.CustomerNumber,\r\n this.state.AddToReport\r\n )\r\n }\r\n >\r\n Submit\r\n \r\n this.setState({ isDetailDialogOpen: false})}\r\n >\r\n Close\r\n \r\n \r\n
\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n );\r\n }\r\n}\r\n\r\nCreditBureauReporting.propTypes = {\r\n setAppLeftTitle: PropTypes.func,\r\n setAppCenterTitle: PropTypes.func,\r\n ExecuteApiPost: PropTypes.func,\r\n Disabled: PropTypes.bool,\r\n menuId: PropTypes.any,\r\n ApprovalData: PropTypes.any,\r\n After: PropTypes.any,\r\n};\r\n\r\nexport default CreditBureauReporting;\r\n","const ChequeManagementStyle = {\t\r\n\tgridBorder: {\r\n\t\tborderLeft: \"1px solid #808080\",\r\n\t\tborderBottom: \"1px solid #808080\",\r\n\t\tborderTop: \"1px solid #808080\",\r\n\t\tborderRight: \"1px solid #808080\"\r\n\t},\r\n\tgridTextBold: {\r\n\t\tfontWeight:\"bold\"\r\n\t},\r\n\tgridTextCenter: {\r\n\t\ttextAlign:\"center\"\r\n\t},\r\n\tcontainerHeight:{\r\n\t\theight:\"50px\",\r\n\t\t\r\n\t},\r\n\tpt :{\r\n\t\tpaddingTop:\"15px !important\"\r\n\t}\r\n};\r\n\r\nexport default ChequeManagementStyle;\r\n","import { chartColors } from \"assets/jss/material-dashboard-pro-react.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport CardIcon from \"components/Card/CardIcon.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericGrid, GenericLabel, GenericNumberInput, GenericSelectInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport FundingSummaryChart from \"views/LMS/FundingSummary/FundingSummaryChart\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass FundingSummary extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.UploadClick = this.UploadClick.bind(this);\r\n\t\tthis.fileInputRef = React.createRef();\r\n\t\tthis.emptyObject = {};\r\n\t\tthis.FileTypeParameterCode = { ParameterCode: \"LOSFileType\" };\r\n\r\n\t\tthis.ColumnsData = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date\",\r\n\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tfilterMethod: (filter, row, column) => {\r\n\t\t\t\t\treturn Formatter.FormatDateTime(row[filter.id]).toLowerCase().startsWith(filter.value.toLowerCase());\r\n\t\t\t\t},\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Partner\",\r\n\t\t\t\taccessor: \"ClientPartner.LegalNameOfBusiness\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"No of Un-Funded Approved Loans\",\r\n\t\t\t\taccessor: \"UnFundedApprovedLoansCount\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount of Un-Funded Approved Loans\",\r\n\t\t\t\taccessor: \"UnFundedApprovedLoansAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"No Of 30 days Funded Loans\",\r\n\t\t\t\taccessor: \"LastOneMonthFundedApprovedLoansCount\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount Of 30 Days Funded Loans\",\r\n\t\t\t\taccessor: \"LastOneMonthFundedApprovedLoansAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"No Of 60 days Funded Loans\",\r\n\t\t\t\taccessor: \"LastTwoMonthsFundedApprovedLoansCount\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount Of 60 Days Funded Loans\",\r\n\t\t\t\taccessor: \"LastTwoMonthsFundedApprovedLoansAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money,\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"No Of 90 days Funded Loans\",\r\n\t\t\t\taccessor: \"LastThreeMonthsFundedApprovedLoansCount\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount Of 90 Days Funded Loans\",\r\n\t\t\t\taccessor: \"LastThreeMonthsFundedApprovedLoansAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money,\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t},\r\n\t\t];\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tLoanType: null\r\n\t\t\t},\r\n\t\t\tisLoading: false,\r\n\t\t\tReadOnly: true,\r\n\t\t\tselected: null,\r\n\t\t\tlist: [],\r\n\t\t\tunFundedApprovedChartData: {\r\n\t\t\t\tlabels: [\"\"],\r\n\t\t\t\tdatasets: [{\r\n\t\t\t\t\tdata: [100],\r\n\t\t\t\t\tbackgroundColor: \"rgb(255, 159, 64)\",\r\n\t\t\t\t\thoverBackgroundColor: \"rgb(255, 159, 64)\"\r\n\t\t\t\t}],\r\n\t\t\t\ttext: \"\"\r\n\t\t\t},\r\n\t\t\tapprovedFundedOneMonthChartData: {\r\n\t\t\t\tlabels: [\"\"],\r\n\t\t\t\tdatasets: [{\r\n\t\t\t\t\tdata: [100],\r\n\t\t\t\t\tbackgroundColor: \"rgb(255, 159, 64)\",\r\n\t\t\t\t\thoverBackgroundColor: \"rgb(255, 159, 64)\"\r\n\t\t\t\t}],\r\n\t\t\t\ttext: \"30\"\r\n\t\t\t},\r\n\t\t\tapprovedFundedTwoMonthsChartData: {\r\n\t\t\t\tlabels: [\"\"],\r\n\t\t\t\tdatasets: [{\r\n\t\t\t\t\tdata: [100],\r\n\t\t\t\t\tbackgroundColor: \"rgb(255, 159, 64)\",\r\n\t\t\t\t\thoverBackgroundColor: \"rgb(255, 159, 64)\"\r\n\t\t\t\t}],\r\n\t\t\t\ttext: \"60\"\r\n\t\t\t},\r\n\t\t\tpieChartData: {\r\n\t\t\t\tlabels: [\"\"],\r\n\t\t\t\tdatasets: [\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdata: [100],\r\n\t\t\t\t\t\tbackgroundColor: \"rgb(255, 159, 64)\",\r\n\t\t\t\t\t\thoverBackgroundColor: \"rgb(255, 159, 64)\"\r\n\t\t\t\t\t}\r\n\t\t\t\t],\r\n\t\t\t\ttext: \"\"\r\n\t\t\t},\r\n\t\t};\r\n\r\n\t\tthis.InterestTypeParameterCode = { ParameterCode: \"LOSInterestType\" };\r\n\t\tthis.PeriodParameterCode = { ParameterCode: \"Period\" };\r\n\t\tthis.PayOptionParameterCode = { ParameterCode: \"LOSPayOption\" };\r\n\t\tthis.YesNoParameterCode = { ParameterCode: \"LOSYesNo\" };\r\n\t\tthis.LoanTypeParameterCode = { ParameterCode: \"LOSLoanType\" };\r\n\r\n\t\tthis.SuccessListCallback = this.SuccessListCallback.bind(this);\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Funding Summary\");\r\n\t\tthis.props.setAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n\t}\r\n\r\n\tSearch = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tif (!model.Top) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Top Filter Not Selected\", \"Select Top Filter To Continue\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/lmsapi/v1.0/Dashboard/GetFundingSummary\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tconsole.log(\"GetFundingSummary ->\", responseData.IsSucceeded);\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tconsole.log(responseData);\r\n\t\t\t\t\tthis.SuccessListCallback(responseData);\r\n\t\t\t\t\tmodel.OutstandingData = responseData.Item.OutstandingData;\r\n\t\t\t\t\tmodel.TotalLoanData = responseData.Item.TotalLoanData;\r\n\t\t\t\t\tmodel.PastdueData = responseData.Item.PastdueData;\r\n\t\t\t\t\tmodel.InterestData = responseData.Item.InterestData;\r\n\t\t\t\t\tmodel.PaymentsData = responseData.Item.PaymentsData;\r\n\t\t\t\t\tthis.setState({ model, list: responseData.Item.FundedLoans, isLoading: false });\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ model: {}, list: [], isLoading: false });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tif (name === \"LoanTypeId\")\r\n\t\t\tmodel.LoanType = data;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tUploadClick() {\r\n\t\tthis.fileInputRef.current.click();\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.HideAlert();\r\n\t\tthis.setState({ model: {}, selected: null });\r\n\t}\r\n\r\n\tErrorCallback = (error) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"Error\", \"An error occurred during the api visit\" + error);\r\n\t}\r\n\r\n\tShowMessageAndRefresh = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlertAndRefresh()} />\r\n\t\t});\r\n\t}\r\n\r\n\thideAlertAndRefresh = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t\twindow.location.reload();\r\n\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: null })} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\r\n\tHideAlert = () => {\r\n\t\tthis.setState({ alert: null, isLoading: false });\r\n\t}\r\n\r\n\tRefreshToolBar = () => {\r\n\t\tthis.setState({ LimitToken: !this.state.LimitToken });\r\n\t}\r\n\r\n\tSuccessListCallback(responseData) {\r\n\t\tconsole.log(\"successslistcallback\");\r\n\t\tvar arrayColor = [];\r\n\t\tvar arrayColor2 = [];\r\n\t\tvar arrayColor3 = [];\r\n\r\n\t\tif (responseData.Item !== null) {\r\n\t\t\tvar colorNames = Object.keys(chartColors);\r\n\t\t\tvar i = 0;\r\n\r\n\t\t\tvar colorName = colorNames[i % colorNames.length];\r\n\t\t\tvar newColor = chartColors[colorName];\r\n\t\t\tarrayColor.push(newColor);\r\n\r\n\t\t\tvar unFundedApprovedChartDataObj = {\r\n\t\t\t\tlabels: [responseData.Item.UnFundedChartData[0].Label],\r\n\t\t\t\tdatasets: [{\r\n\t\t\t\t\tdata: [responseData.Item.UnFundedChartData[0].Amount > 0 ? responseData.Item.UnFundedChartData[0].Amount : 100],\r\n\t\t\t\t\thoverBackgroundColor: arrayColor,\r\n\t\t\t\t\tbackgroundColor: arrayColor\r\n\t\t\t\t}],\r\n\t\t\t\ttext: \"Un-Approveds\"\r\n\t\t\t};\r\n\r\n\t\t\tcolorNames = Object.keys(chartColors);\r\n\t\t\tcolorName = colorNames[i % colorNames.length];\r\n\t\t\tnewColor = chartColors[colorName];\r\n\t\t\tarrayColor2.push(newColor);\r\n\r\n\t\t\tvar approvedFundedOneMonthChartDataObj = {\r\n\t\t\t\tlabels: [responseData.Item.FundedOneMonthChartData[0].Label],\r\n\t\t\t\tdatasets: [{\r\n\t\t\t\t\tdata: [responseData.Item.FundedOneMonthChartData[0].Amount > 0 ? responseData.Item.FundedOneMonthChartData[0].Amount : 100],\r\n\t\t\t\t\thoverBackgroundColor: arrayColor2,\r\n\t\t\t\t\tbackgroundColor: arrayColor2\r\n\t\t\t\t}],\r\n\t\t\t\ttext: \"30\"\r\n\t\t\t};\r\n\r\n\t\t\tcolorNames = Object.keys(chartColors);\r\n\t\t\tcolorName = colorNames[i % colorNames.length];\r\n\t\t\tnewColor = chartColors[colorName];\r\n\t\t\tarrayColor3.push(newColor);\r\n\r\n\t\t\tvar approvedFundedTwoMonthsChartDataObj = {\r\n\t\t\t\tlabels: [responseData.Item.FundedTwoMonthsChartData[0].Label],\r\n\t\t\t\tdatasets: [{\r\n\t\t\t\t\tdata: [responseData.Item.FundedTwoMonthsChartData[0].Amount > 0 ? responseData.Item.FundedTwoMonthsChartData[0].Amount : 100],\r\n\t\t\t\t\thoverBackgroundColor: arrayColor3,\r\n\t\t\t\t\tbackgroundColor: arrayColor3\r\n\t\t\t\t}],\r\n\t\t\t\ttext: \"60\"\r\n\t\t\t};\r\n\r\n\t\t\tvar pieChartObj = {\r\n\t\t\t\tlabels: [],\r\n\t\t\t\tdatasets: [],\r\n\t\t\t\ttext: \"\"\r\n\t\t\t};\r\n\t\t\tvar obj = {\r\n\t\t\t\tdata: [],\r\n\t\t\t\tbackgroundColor: [],\r\n\t\t\t\thoverBackgroundColor: []\r\n\t\t\t};\r\n\t\t\tcolorNames = Object.keys(chartColors);\r\n\t\t\tfor (var item of responseData.Item.FundingStatusChartData) {\r\n\t\t\t\tcolorName = colorNames[i % colorNames.length];\r\n\t\t\t\tnewColor = chartColors[colorName];\r\n\t\t\t\tpieChartObj.labels.push(item[\"Label\"]);\r\n\t\t\t\tobj.data.push(item[\"Amount\"]);\r\n\t\t\t\tobj.backgroundColor.push(newColor);\r\n\t\t\t\tobj.hoverBackgroundColor.push(newColor);\r\n\t\t\t\tpieChartObj.datasets = [obj];\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\r\n\t\t\t/********************************************************/\r\n\t\t\tconst { model } = this.state;\r\n\t\t\tmodel.BeginDate = responseData.Item.BeginDate;\r\n\t\t\tmodel.EndDate = responseData.Item.EndDate;\r\n\t\t\tthis.setState({\r\n\t\t\t\tmodel,\r\n\t\t\t\tunFundedApprovedChartData: unFundedApprovedChartDataObj,\r\n\t\t\t\tapprovedFundedOneMonthChartData: approvedFundedOneMonthChartDataObj,\r\n\t\t\t\tapprovedFundedTwoMonthsChartData: approvedFundedTwoMonthsChartDataObj,\r\n\t\t\t\tpieChartData: pieChartObj\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { ForInsert, Disabled } = this.props;\r\n\t\tconst { alert, isLoading, ReadOnly, model } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t{alert}\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t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\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\tApproved Funded Loans\r\n\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nconst styles = ({\r\n\tLabelText: {\r\n\t\tcolor: \"Black\",\r\n\t\tmarginLeft: 50\r\n\t},\r\n\tLabelText2: {\r\n\t\tcolor: \"black\",\r\n\t\tmarginLeft: 80\r\n\t},\r\n\tLabelStyle: {\r\n\t\tfontSize: 8 + \"px !important\",\r\n\t},\r\n\tInputStyle: {\r\n\t\tbackgroundColor: \"White\"\r\n\t},\r\n\tcardTopMargin: {\r\n\t\tmarginTop: 30\r\n\t}\r\n});\r\n\r\nFundingSummary.propTypes = {\r\n\ttabList: PropTypes.array,\r\n\tclasses: PropTypes.object.isRequired,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tApplicantSaved: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmodel: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(FundingSummary, styles);","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericCheckInput, GenericExpansionPanel, GenericNumberInput, GenericSelectInput, GenericTitle } from \"views/Components/Generic\";\r\nimport { LmsLimitAdjustmentHistoryStatus } from \"views/Constants/Constant\";\r\n\r\nconst LOSLoanType = {\r\n\tSecureCard: \"0\",\r\n\tLoan: \"1\",\r\n\tLOC: \"2\",\r\n};\r\n\r\nclass LimitAdjustmentForWorkflow extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.parameterApplicantId = {};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\r\n\t\t\t},\r\n\t\t\tapplicantList: [],\r\n\t\t\tfeeProfileList: [],\r\n\t\t\tparameterList: [],\r\n\t\t\tloanApprovalFeeList: [],\r\n\t\t\tisApprovedPeriodDisabled: false\r\n\t\t};\r\n\r\n\t\tthis.parameterCodeList = [\"LOSOccupation\", \"LOSDocumentType\", \"LOSPayOption\"\r\n\t\t\t, \"LOSYesNo\", \"LOSLoanPurpose\", \"LOSPaymentSchedule\", \"LOSRateOption\"\r\n\t\t\t, \"LOSPaymentMethod\", \"LOSLoanTranferType\", \"LMSPaymentDay\"\r\n\t\t\t, \"LOSSalary\", \"LOSAddrTime\", \"LOSOccupation\", \"EntityType\"\r\n\t\t\t, \"PaymentFrequency\", \"PaymentMethod\", \"PaymentOption\", \"LOSEmplTime\"\r\n\t\t\t, \"LOSDepositIn\", \"LOSApprovalSubStatus\", \"LOSVerifiedStatus\", \"IdentityVerifyingPerson\", \"LOSMaritalStatus\"];\r\n\r\n\t\tthis.parameterLOSPaymentFrequency = {\r\n\t\t\tParameterCode: \"LOSPaymentSchedule\"\r\n\t\t};\r\n\r\n\t\tthis.parameterLOSPaymentMethod = {\r\n\t\t\tParameterCode: \"LOSPaymentMethod\"\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t}\r\n\r\n\tGetApplicantList = async (model) => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/losapi/v1.0/LoanApproval/GetLoanApprovalUiParameter\", {\r\n\t\t\t\"ParameterList\": this.parameterCodeList,\r\n\t\t\t\"MenuCode\": this.props.MenuCode,\r\n\t\t\t\"UniqueClientId\": model.UniqueClientId\r\n\t\t});\r\n\r\n\t\tthis.setState({\r\n\t\t\tapplicantList: result?.ApplicantList || [],\r\n\t\t\tfeeProfileList: result?.FeeProfileList || [],\r\n\t\t\tparameterList: result?.ParameterList || []\r\n\t\t});\r\n\t}\r\n\r\n\tRenderItemApplication = (data) => {\r\n\t\tthis.renderItemApplication = `${data.ApplicationNumber} - ${data.LoanType.ParameterDesc}`;\r\n\r\n\t\treturn this.renderItemApplication;\r\n\t}\r\n\r\n\tSubmit = async (workflowId, after) => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result;\r\n\r\n\t\tif (!model.AdditionalSecurityAmount || (model.AdditionalSecurityAmount && String(model.AdditionalSecurityAmount) == \"0\")) {\r\n\t\t\tvar requestUpdateCardLimit = {\r\n\t\t\t\tApplicationId: model.Id,\r\n\t\t\t\tNewCardLimit: model.NewCardLimit,\r\n\t\t\t\tApplicationCardId: model.ApplicationCardId,\r\n\t\t\t\tStatusParameterValue: LmsLimitAdjustmentHistoryStatus.Approved,\r\n\t\t\t\tIsLimitAdjustment: true\r\n\t\t\t};\r\n\r\n\t\t\tresult = await ExecuteApiPost(\"/lmsapi/v1.0/PaymentAdmin/UpdateCardLimit\", requestUpdateCardLimit, null, null, null, null, null, workflowId);\r\n\r\n\t\t\tif (result != null && after) {\r\n\t\t\t\tafter();\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tvar requestUpdateApplication = {\r\n\t\t\t\tApplicationId: model.Id,\r\n\t\t\t\tNewSecurityAmount: model.AdditionalSecurityAmount,\r\n\t\t\t\tApplicationCardId: model.ApplicationCardId,\r\n\t\t\t\tStatusParameterValue: LmsLimitAdjustmentHistoryStatus.NeedsSecurityAmount\r\n\t\t\t};\r\n\r\n\t\t\tresult = await ExecuteApiPost(\"/lmsapi/v1.0/LimitAdjustmentHistory/ApplicationUpdate\", requestUpdateApplication, null, null, null, null, null, workflowId);\r\n\r\n\t\t\tif (result != null && after) {\r\n\t\t\t\tafter();\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tReject = async (after, rejectReason) => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\r\n\t\tvar request = {\r\n\t\t\tApplicationCardId: model.ApplicationCardId,\r\n\t\t\tStatusParameterValue: LmsLimitAdjustmentHistoryStatus.Rejected,\r\n\t\t\tRejectReason: rejectReason\r\n\t\t};\r\n\r\n\t\tvar result = await ExecuteApiPost(\"/lmsapi/v1.0/LimitAdjustmentHistory/Update\", request);\r\n\r\n\t\tif (result != null && after) {\r\n\t\t\tafter();\r\n\t\t}\r\n\t}\r\n\r\n\tGetModel = () => {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\treturn { model };\r\n\t}\r\n\r\n\tFillData = (data) => {\r\n\t\tthis.parameterApplicantId = {\r\n\t\t\tApplicantId: data.Id\r\n\t\t};\r\n\r\n\t\tthis.setState({ model: data, isApprovedPeriodDisabled: data.LoanType.ParameterValue == LOSLoanType.SecureCard });\r\n\r\n\t\tthis.GetApplicantList(data);\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, applicantList, feeProfileList, parameterList, isApprovedPeriodDisabled } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t prm.ParameterCode == this.parameterLOSPaymentFrequency.ParameterCode)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"Id\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tTextValueMember=\"ParameterDesc\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.RequestedPaymentFrequencyId} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t prm.ParameterCode == this.parameterLOSPaymentFrequency.ParameterCode)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"Id\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tTextValueMember=\"ParameterDesc\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.ApprovedPaymentFrequencyId} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{!isApprovedPeriodDisabled &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t prm.ParameterCode == this.parameterLOSPaymentMethod.ParameterCode)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"Id\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tTextValueMember=\"ParameterDesc\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.ApprovedPaymentMethodId} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{!isApprovedPeriodDisabled &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nLimitAdjustmentForWorkflow.propTypes = {\r\n\tExecuteApiPost: PropTypes.func,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default LimitAdjustmentForWorkflow;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericDateFilterInput, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericDialog, GenericLabel, GenericRadioInput, GenericDialogActions } from \"views/Components/Generic\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Select from \"react-select\";\r\nimport { Proxy } from \"core\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\n\r\nclass LimitAdjustmentHistory extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Request Date\",\r\n\t\t\t\taccessor: \"RequestDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Application Number\",\r\n\t\t\t\taccessor: \"ApplicationNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Applicant Name\",\r\n\t\t\t\taccessor: \"ApplicantName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Loan Type\",\r\n\t\t\t\taccessor: \"LoanType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Previous Card Limit\",\r\n\t\t\t\taccessor: \"PreviousCardLimit\",\r\n\t\t\t\ttype: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"New Card Limit\",\r\n\t\t\t\taccessor: \"NewCardLimit\",\r\n\t\t\t\ttype: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Previous Security Amount\",\r\n\t\t\t\taccessor: \"SecurityBalance\",\r\n\t\t\t\ttype: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Added Security Amount\",\r\n\t\t\t\taccessor: \"AddedSecurityAmount\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\trow.original.AddedSecurityAmount == 0\r\n\t\t\t\t\t\t? \"N/A\"\r\n\t\t\t\t\t\t: Formatter.FormatMoney(row.original.AddedSecurityAmount)\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"New Security Amount\",\r\n\t\t\t\taccessor: \"NewSecurityAmount\",\r\n\t\t\t\ttype: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Review Date\",\r\n\t\t\t\taccessor: \"ReviewDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Status\",\r\n\t\t\t\taccessor: \"Status\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reject Reason\",\r\n\t\t\t\taccessor: \"RejectReason\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.lmAdjHisTable = React.createRef();\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tDateFilter: {}\r\n\t\t\t},\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Limit Adjustment History\");\r\n\t\t}\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/lmsapi/v1.0/LimitAdjustmentHistory/Search\", model);\r\n\r\n\t\tthis.setState({ list: result || [] });\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: { DateFilter: {} }, list: [] });\r\n\t}\r\n\r\n\tValueChangedForReportType = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\r\n\tExportClick = () => {\r\n\t\tvar lmAdjHisColumns = [];\r\n\t\tthis.lmAdjHisTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.show == undefined || c.show) {\r\n\t\t\t\tlmAdjHisColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: lmAdjHisColumns, ExportSelectedColumns: lmAdjHisColumns });\r\n\t}\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\t\tconst temp = { ...this.state.model };\r\n\t\tvar jsonColList = [];\r\n\t\tvar lmAdjHisColumns = {};\r\n\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\tlmAdjHisColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t});\r\n\t\tjsonColList.push(lmAdjHisColumns);\r\n\r\n\t\tvar mytitle = \"Limit Adjustment History\";\r\n\r\n\t\ttemp.jsonFile = {\r\n\t\t\tcolmns: jsonColList,\r\n\t\t\tformat: this.state.ExportReportType,\r\n\t\t\ttitle: mytitle\r\n\t\t};\r\n\r\n\t\tvar request = {\r\n\t\t\tApplicantId: temp.ApplicantId,\r\n\t\t\tStatusId: temp.StatusId,\r\n\t\t\tDateFilter: temp.DateFilter,\r\n\t\t\tjsonFile: temp.jsonFile\r\n\t\t};\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\"/lmsapi/v1.0/LimitAdjustmentHistory/ExportDownload\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t},\r\n\t\t\tthis.props.showMessage\r\n\t\t);\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, list, isLoading } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t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Types.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default LimitAdjustmentHistory;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport { ContentState, convertToRaw, EditorState } from \"draft-js\";\r\nimport draftToHtml from \"draftjs-to-html\";\r\nimport htmlToDraft from \"html-to-draftjs\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport \"react-autocomplete-input/dist/bundle.css\";\r\nimport { Editor } from \"react-draft-wysiwyg\";\r\nimport \"react-draft-wysiwyg/dist/react-draft-wysiwyg.css\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericExpansionPanel, GenericGrid, GenericTextInput, GenericSelectInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\n\r\nconst initialState = {\r\n\tvModel: {},\r\n\tmodel: {},\r\n\tresultLetterTempList: [],\r\n\tisBrowse: false,\r\n\tisLoading: false,\r\n\teditorModelEmail: EditorState.createEmpty()\r\n\r\n};\r\nconst url = \"/lmsapi/v1.0/LoanNotificationTemplate/\";\r\n\r\nclass LoanNotificationTemplateDefinition extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = initialState;\r\n\t\tthis.fileInputRef = React.createRef();\r\n\r\n\t\tthis.ParamLOSLoanType = {\r\n\t\t\tParameterCode: \"LOSLoanType\"\r\n\t\t};\r\n\t\tthis.ParamLOSLoanPurpose = {\r\n\t\t\tParameterCode: \"LOSLoanPurpose\"\r\n\t\t};\r\n\t\tthis.ParamLMSAutoCLCParamAction = {\r\n\t\t\tParameterCode: \"LMSAutoCLCParamAction\"\r\n\t\t};\r\n\t\tthis.sortedParameterDesc = { Member: \"ParameterDesc\" };\r\n\t}\r\n\r\n\t/**Begin Life cycle Methods */\r\n\tcomponentDidMount() {\r\n\t\tthis\r\n\t\t\t.props\r\n\t\t\t.setAppLeftTitle(\"Collection Notification Template Definition\");\r\n\t\tthis\r\n\t\t\t.props\r\n\t\t\t.setAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n\t\tthis.setState({\r\n\t\t\teditorModelEmail: this.EmptyEditorContent()\r\n\t\t});\r\n\r\n\t\tthis.GetAllDataModelProperty();\r\n\t}\r\n\r\n\t/**End life cycle Methods */\r\n\r\n\t/* Begin Standard Methods */\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: null })}\r\n\t\t\t\tOnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\tShowMessageAndRefresh = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlertAndRefresh()} />\r\n\t\t});\r\n\t}\r\n\thideAlertAndRefresh = () => {\r\n\t\tthis.setState({ alert: null, isLoading: false, state: initialState });\r\n\t\twindow\r\n\t\t\t.location\r\n\t\t\t.reload();\r\n\r\n\t}\r\n\tHideAlert = () => {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\tIsStringNullOrEmptyOrWhiteSpace = (value) => {\r\n\r\n\t\treturn typeof value !== \"string\" || value == null || value.trim().length == 0;\r\n\t}\r\n\t/* End Standard Methods */\r\n\r\n\t/** BEGIN Actions */\r\n\tOperationCheck = () => {\r\n\t\tvar ErrorList = [];\r\n\t\tconst data = this.state.model;\r\n\t\tconst { vModel } = this.state;\r\n\t\tif (data == null) {\r\n\t\t\tErrorList.push(\"Template parameters not defined.\");\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please Fill Required Fields\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (data.LoanTypeId == null || data.LoanTypeId == 0) {\r\n\t\t\tvModel.LoanTypeId = true;\r\n\t\t\tErrorList.push(\"Loan type must be selected.\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvModel.LoanTypeId = false;\r\n\t\t}\r\n\t\tif (data.LoanPurposeId == null || data.LoanPurposeId == 0) {\r\n\t\t\tvModel.LoanPurposeId = true;\r\n\t\t\tErrorList.push(\"Purpose of the loan must be selected.\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvModel.LoanPurposeId = false;\r\n\t\t}\r\n\t\tif (data.AutoCollectionParamActionId == null || data.AutoCollectionParamActionId == 0) {\r\n\t\t\tvModel.AutoCollectionParamActionId = true;\r\n\t\t\tErrorList.push(\"Action must be selected.\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvModel.AutoCollectionParamActionId = false;\r\n\t\t}\r\n\t\tif (this.IsStringNullOrEmptyOrWhiteSpace(data.Name)) {\r\n\t\t\tvModel.Name = true;\r\n\t\t\tErrorList.push(\"Name must be entered.\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvModel.Name = false;\r\n\t\t}\r\n\t\tvar letterContent = this.EditorContentToHtml(this.state.editorModelEmail);\r\n\t\tif (letterContent == null || letterContent == \"\") {\r\n\t\t\tErrorList.push(\"Template content must be defined.\");\r\n\t\t}\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please Fill Required Fields\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tvar { model } = this.state;\r\n\t\tmodel.Content = letterContent;\r\n\t\tthis.setState({ model });\r\n\r\n\t\tthis.ActionSubmit(model);\r\n\t\tthis.setState({ vModel });\r\n\t}\r\n\tActionSubmit = (model) => {\r\n\t\tthis.HideAlert();\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tthis.Post(model, \"SaveTemp\");\r\n\r\n\t}\r\n\tActionSearch = () => {\r\n\t\tthis.HideAlert();\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst data = this.state.model;\r\n\t\tthis.Post(data, \"SearchTemp\");\r\n\r\n\t}\r\n\tActionDelete = () => {\r\n\t\tvar ErrorList = [];\r\n\t\tthis.HideAlert();\r\n\t\tconst data = this.state.model;\r\n\t\tif (data == null || data.Id == null || data.Id == 0) {\r\n\t\t\tErrorList.push(\"Any template not selected.\");\r\n\t\t}\r\n\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please Select A Record From Templates List\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tthis.Post(data, \"DeleteTemp\");\r\n\t}\r\n\tActionClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {},\r\n\t\t\tnotificationTempList: [],\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t\teditorModelEmail: this.EmptyEditorContent()\r\n\t\t});\r\n\t}\r\n\r\n\tGetAllDataModelProperty = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.GET(\r\n\t\t\t\"/coreapi/v1.0/NotificationTemplate/GetDataModelProperties\",\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tvar temp = responseData.Item.map(x => {\r\n\t\t\t\t\t\treturn { text: x.PropertyDescription, value: x.PropertyName };\r\n\t\t\t\t\t});\r\n\t\t\t\t\tthis.setState({ propertyList: temp });\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tPost = (model, methodName) => {\r\n\t\tthis.setState({ alert: null });\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST((url + methodName), model, (responseData) => {\r\n\t\t\tswitch (methodName) {\r\n\t\t\t\tcase \"SearchTemp\":\r\n\t\t\t\t\tif (responseData != null && responseData.Item != null && responseData.Item.length > 0) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"success\", \"Success\", responseData.Item.length + \" Record(s) Listed\");\r\n\t\t\t\t\t\tthis.setState({ notificationTempList: responseData.Item, isLoading: false });\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.setState({ alert: null, isLoading: false });\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase \"DeleteTemp\":\r\n\t\t\t\t\tif (responseData != null && responseData.Item != null) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"The Template Deleted\");\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.setState({ alert: null, isLoading: false, state: initialState });\r\n\t\t\t\t\tthis.ActionSearch();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tif (responseData != null && responseData.Item != null) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"success\", \"Success\", `The Templete ${!model.Id ? \"Saved\" : \"Updated\"}`);\r\n\t\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\t\tmodel: {},\r\n\t\t\t\t\t\t\tisLoading: false,\r\n\t\t\t\t\t\t\tnotificationTempList: [],\r\n\t\t\t\t\t\t\teditorModelEmail: this.EmptyEditorContent()\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.setState({ alert: null, isLoading: false, state: initialState });\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t}, this.ErrorCallback);\r\n\t}\r\n\r\n\tErrorCallback = (error) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t}\r\n\t/* END Actions */\r\n\r\n\t/** Begin Events */\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = {\r\n\t\t\t...this.state.model\r\n\t\t};\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\tRowSelected = (index) => {\r\n\t\tconst list = this.state.notificationTempList;\r\n\t\tthis.setState({\r\n\t\t\tmodel: list[index],\r\n\t\t\teditorModelEmail: this.HtmlToEditorContent(list[index].Content)\r\n\t\t});\r\n\t}\r\n\r\n\r\n\r\n\t/** End Events */\r\n\r\n\t/**Begin Editor Methods */\r\n\r\n\tEmptyEditorContent = () => {\r\n\t\tconst html = \"

\";\r\n\t\tvar contentBlock = htmlToDraft(html);\r\n\t\tvar contentState = ContentState.createFromBlockArray(contentBlock.contentBlocks);\r\n\t\tconst editorState = EditorState.createWithContent(contentState);\r\n\t\treturn editorState;\r\n\t}\r\n\tEditorContentToHtml = (model) => {\r\n\t\treturn draftToHtml(convertToRaw(model.getCurrentContent()));\r\n\t}\r\n\tEditorContentToText = (model) => {\r\n\t\tvar html = draftToHtml(convertToRaw(model.getCurrentContent()));\r\n\t\tvar tmp = document.createElement(\"DIV\");\r\n\t\ttmp.innerHTML = html;\r\n\t\treturn tmp.textContent || tmp.innerText || \"\";\r\n\r\n\t}\r\n\tHtmlToEditorContent = (html) => {\r\n\t\tvar contentBlock = htmlToDraft(html);\r\n\t\tvar contentState = ContentState.createFromBlockArray(contentBlock.contentBlocks);\r\n\t\tconst editorState = EditorState.createWithContent(contentState);\r\n\t\treturn editorState;\r\n\t}\r\n\r\n\tEditorStateChangeEmail = (obj) => {\r\n\t\tthis.setState({ editorModelEmail: obj });\r\n\t\tthis.EditorContentToText(this.state.editorModelEmail);\r\n\t}\r\n\r\n\tGetFileBase64 = (file, callback) => {\r\n\t\tvar reader = new FileReader();\r\n\t\treader.readAsDataURL(file);\r\n\t\treader.onload = () => callback(reader.result);\r\n\t\treader.onerror = error => { };\r\n\t};\r\n\r\n\tImageUploadCallback = file => new Promise(\r\n\t\t(resolve, reject) => this.GetFileBase64(\r\n\t\t\tfile,\r\n\t\t\tdata => resolve({ data: { link: data } })\r\n\t\t)\r\n\t);\r\n\r\n\t/**End Editor Methods */\r\n\r\n\trender() {\r\n\t\tconst { model, alert, editorModelEmail, isLoading, propertyList, vModel } = this.state;\r\n\r\n\t\tvar ForInsert = !model.Id || model.Id <= 0;\r\n\t\treturn (\r\n\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t{alert}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t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t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\n\r\n\r\nLoanNotificationTemplateDefinition.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(LoanNotificationTemplateDefinition, {});","import { chartColors } from \"assets/jss/material-dashboard-pro-react.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { DocumentIcon, ETransferIcon, ProfileIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport {\r\n\tGenericDateInput, GenericExpansionPanel,\r\n\tGenericGrid, GenericLabel, GenericSelectInput\r\n} from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\nimport LoanCircleChart from \"views/LMS/LoanChart/LoanCircleChart\";\r\n// import ApplicantDefinition from \"views/LOS/ApplicantDefinition/ApplicantDefinition\";\r\n// import LedgerCard from \"views/LOS/LedgerCard/LedgerCard.jsx\";\r\n// import Statement from \"views/LOS/Statement/Statement\";\r\n\r\nconst PaymentManagementUrl = \"/lmsapi/v1.0/PaymentManagement/\";\r\nconst defaultChartDataSet = [\r\n\t{\r\n\t\tdata: [100],\r\n\t\tbackgroundColor: \"rgb(255, 159, 64)\",\r\n\t\thoverBackgroundColor: \"rgb(255, 159, 64)\"\r\n\t}\r\n];\r\nconst initialChartContract =\r\n\t[\r\n\t\t{\r\n\t\t\tname: \"current\",\r\n\t\t\tlabels: [\"Current\"],\r\n\t\t\tdatasets: defaultChartDataSet,\r\n\t\t\ttext: \"\"\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: \"thirtyDays\",\r\n\t\t\tlabels: [\"30 Days\", \"Tran Amount\"],\r\n\t\t\tdatasets: defaultChartDataSet,\r\n\t\t\ttext: \"\"\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: \"sixtyDays\",\r\n\t\t\tlabels: [\"60 Days\", \"Tran Amount\"],\r\n\t\t\tdatasets: defaultChartDataSet,\r\n\t\t\ttext: \"\"\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: \"ninetyDays\",\r\n\t\t\tlabels: [\"90 Days\", \"Tran Amount\"],\r\n\t\t\tdatasets: defaultChartDataSet,\r\n\t\t\ttext: \"\"\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: \"ninetyDaysPlus\",\r\n\t\t\tlabels: [\"+ 90 Days\", \"Tran Amount\"],\r\n\t\t\tdatasets: defaultChartDataSet,\r\n\t\t\ttext: \"\"\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: \"totalInterestFee\",\r\n\t\t\tlabels: [\"Total Interest & Fees\", \"Tran Amount\"],\r\n\t\t\tdatasets: defaultChartDataSet,\r\n\t\t\ttext: \"\"\r\n\t\t}\r\n\t];\r\n\r\nconst initialState = {\r\n\tReadOnly: true,\r\n\tisLoading: false,\r\n\tpaymentTransactionList: [],\r\n\tchartList: initialChartContract,\r\n\tmodel: {}\r\n\r\n};\r\n\r\nclass PaymentManagement extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = Object.assign({}, initialState);\r\n\t\t//#region Grid columns\r\n\t\tthis.ColumnsData = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tthis.SelectedRow(row.original);\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tthis.SelectedRow(row.original);\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date\",\r\n\t\t\t\taccessor: \"Application.InsertDateTime\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Partner\",\r\n\t\t\t\taccessor: \"Application.ClientPartner.LegalNameOfBusiness\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Program\",\r\n\t\t\t\taccessor: \"Application.Applicant.FullName\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"DDT Number\",\r\n\t\t\t\taccessor: \"Application.ApplicationNumber\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Application Owner Name\",\r\n\t\t\t\taccessor: \"Application.LoanType.ParameterDesc\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Amount\",\r\n\t\t\t\taccessor: \"Application.Applicant.WalletAccount.AccountNumber\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total No. of Payment\",\r\n\t\t\t\taccessor: \"MaskedCardNumber\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Remaining Total Amount\",\r\n\t\t\t\taccessor: \"Application.ApprovedAmount\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Remaining No. of Payment\",\r\n\t\t\t\taccessor: \"MaskedCardNumber\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Installment Amount\",\r\n\t\t\t\taccessor: \"TotalLoan\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Payment Channel\",\r\n\t\t\t\taccessor: \"MaskedCardNumber\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Payment Status\",\r\n\t\t\t\taccessor: \"Application.ApprovedPaymentFrequency.ParameterDesc\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"No. of Days Delayed\",\r\n\t\t\t\taccessor: \"Application.ApprovedPaymentFrequency.ParameterDesc\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount of Late Payment\",\r\n\t\t\t\taccessor: \"ApplicationPaymentDetail.PrincipalAmount\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Penalty Fee\",\r\n\t\t\t\taccessor: \"Outstanding\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t}\r\n\t\t];\r\n\t\t//#endregion\t\r\n\r\n\t\t/** ParamCodes */\r\n\t\tthis.LMSPaymentStatus = {\r\n\t\t\tParameterCode: \"LMSPaymentStatus\"\r\n\t\t};\r\n\t\tthis.SetPaymentChartData = this.SetPaymentChartData.bind(this);\r\n\r\n\t}\r\n\t/** Begin Lifecycle Methods */\r\n\tcomponentDidMount() {\r\n\t\tthis\r\n\t\t\t.props\r\n\t\t\t.setAppLeftTitle(\"Payment Management\");\r\n\t\tthis\r\n\t\t\t.props\r\n\t\t\t.setAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n\t}\r\n\r\n\t/** End Lifecycle Methods */\r\n\r\n\t/** Begin Methods */\r\n\tformatNumber = (num) => {\r\n\t\treturn \" $\" + num\r\n\t\t\t.toString()\r\n\t\t\t.replace(/(\\d)(?=(\\d{3})+(?!\\d))/g, \"$1,\");\r\n\t}\r\n\tSetPaymentChartData(paymentChartData) {\r\n\t\tconst chartList = this.state.chartList;\r\n\t\tif (paymentChartData !== null) {\r\n\t\t\tchartList.map(item => {\r\n\t\t\t\tswitch (item.name) {\r\n\t\t\t\t\tcase \"current\":\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tvar datasets = [\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tdata: this.GetChartDataSource(paymentChartData.CurrentChartData),\r\n\t\t\t\t\t\t\t\t\tbackgroundColor: this.GetChartColor(),\r\n\t\t\t\t\t\t\t\t\thoverBackgroundColor: this.GetChartColor()\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t];\r\n\t\t\t\t\t\t\titem[\"datasets\"] = datasets;\r\n\t\t\t\t\t\t\titem[\"text\"] = this.GetChartText(paymentChartData.CurrentChartData);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tcase \"thirtyDays\":\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tdatasets = [\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tdata: this.GetChartDataSource(paymentChartData.ThirtyDaysChartData),\r\n\t\t\t\t\t\t\t\t\tbackgroundColor: this.GetChartColor(),\r\n\t\t\t\t\t\t\t\t\thoverBackgroundColor: this.GetChartColor()\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t];\r\n\t\t\t\t\t\t\titem[\"datasets\"] = datasets;\r\n\t\t\t\t\t\t\titem[\"text\"] = this.GetChartText(paymentChartData.ThirtyDaysChartData);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tcase \"sixtyDays\":\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tdatasets = [\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tdata: this.GetChartDataSource(paymentChartData.SixtyDaysChartData),\r\n\t\t\t\t\t\t\t\t\tbackgroundColor: this.GetChartColor(),\r\n\t\t\t\t\t\t\t\t\thoverBackgroundColor: this.GetChartColor()\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t];\r\n\t\t\t\t\t\t\titem[\"datasets\"] = datasets;\r\n\t\t\t\t\t\t\titem[\"text\"] = this.GetChartText(paymentChartData.SixtyDaysChartData);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tcase \"ninetyDays\":\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tdatasets = [\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tdata: this.GetChartDataSource(paymentChartData.NinetyDaysChartData),\r\n\t\t\t\t\t\t\t\t\tbackgroundColor: this.GetChartColor(),\r\n\t\t\t\t\t\t\t\t\thoverBackgroundColor: this.GetChartColor()\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t];\r\n\t\t\t\t\t\t\titem[\"datasets\"] = datasets;\r\n\t\t\t\t\t\t\titem[\"text\"] = this.GetChartText(paymentChartData.NinetyDaysChartData);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tcase \"ninetyDaysPlus\":\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tdatasets = [\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tdata: this.GetChartDataSource(paymentChartData.NinetyDaysPlusChartData),\r\n\t\t\t\t\t\t\t\t\tbackgroundColor: this.GetChartColor(),\r\n\t\t\t\t\t\t\t\t\thoverBackgroundColor: this.GetChartColor()\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t];\r\n\t\t\t\t\t\t\titem[\"datasets\"] = datasets;\r\n\t\t\t\t\t\t\titem[\"text\"] = this.GetChartText(paymentChartData.NinetyDaysPlusChartData);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tcase \"totalInterestFee\":\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tdatasets = [\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tdata: this.GetChartDataSource(paymentChartData.TotalInterestFeeChartData),\r\n\t\t\t\t\t\t\t\t\tbackgroundColor: this.GetChartColor(),\r\n\t\t\t\t\t\t\t\t\thoverBackgroundColor: this.GetChartColor()\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t];\r\n\t\t\t\t\t\t\titem[\"datasets\"] = datasets;\r\n\t\t\t\t\t\t\titem[\"text\"] = this.GetChartText(paymentChartData.TotalInterestFeeChartData);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\titem[\"datasets\"] = defaultChartDataSet;\r\n\t\t\t\t\t\t\titem[\"text\"] = \"\";\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\tthis.setState({ chartList });\r\n\r\n\t}\r\n\tGetChartColor = () => {\r\n\t\tvar returnColor = \"rgb(255, 159, 64)\";\r\n\t\tvar colorNames = Object.keys(chartColors);\r\n\t\tvar colorIndex = 0;\r\n\t\treturnColor = chartColors[colorNames[colorIndex]] || returnColor;\r\n\t\treturn returnColor;\r\n\r\n\t}\r\n\tGetChartDataSource = (chartDataItem) => {\r\n\t\tvar dataSource = [100];\r\n\t\tdataSource.push(chartDataItem != null\r\n\t\t\t? chartDataItem.RequestAmount\r\n\t\t\t: 0);\r\n\t\tdataSource.push(chartDataItem != null\r\n\t\t\t? chartDataItem.RequestAmountCount\r\n\t\t\t: 0);\r\n\t\treturn dataSource;\r\n\t}\r\n\tGetChartText = (chartDataItem) => {\r\n\t\tvar chartText = \"0\";\r\n\t\tif (chartDataItem !== null) {\r\n\t\t\tchartText = chartDataItem.RequestAmountCount + \" \" + this.formatNumber(chartDataItem.RequestAmount.toFixed());\r\n\t\t}\r\n\t\treturn chartText;\r\n\t}\r\n\t/** End Methods */\r\n\t/** Begin Actions */\r\n\t/** CLEAR */\r\n\thandleClear = () => {\r\n\t\tconst chartList = initialChartContract;\r\n\t\tthis.setState(Object.assign({}, initialState));\r\n\t\tthis.setState({ chartList });\r\n\r\n\t}\r\n\t/** CLEAR */\r\n\r\n\t/** SEARCH */\r\n\tHandleSearch = async () => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tconst { model } = this.state.model;\r\n\t\tvar result = await ExecuteApiPost(`${PaymentManagementUrl}Search`, model);\r\n\t\tif (result != null) {\r\n\t\t\tthis.setState({ paymentTransactionList: result.PaymentTransactionDataList || [] });\r\n\t\t\tthis.SetPaymentChartData(result);\r\n\t\t}\r\n\r\n\t}\r\n\r\n\t/** SEARCH */\r\n\t/** End actions */\r\n\r\n\t/** Begin Events */\r\n\tSelectedRow = (row) => {\r\n\r\n\t}\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = {\r\n\t\t\t...this.state.model\r\n\t\t};\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\t/** End Events */\r\n\r\n\t/** Begin Render */\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst {\r\n\t\t\talert,\r\n\t\t\tisLoading,\r\n\t\t\tmodel,\r\n\t\t\tchartList\r\n\t\t} = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{/**Filter Panel */}\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t/* \r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t */\r\n\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t{/**Charts */}\r\n\t\t\t\t\r\n\r\n\t\t\t\t{/**List */}\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n\t/** End Render */\r\n}\r\n\r\nPaymentManagement.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmodel: PropTypes.object\r\n};\r\nexport default PaymentManagement;\r\n","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport { chartColors } from \"assets/jss/material-dashboard-pro-react.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { DocumentIcon, ProfileIcon } from \"core/Icons\";\r\nimport moment from \"moment\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericSelectInput, GenericTitle } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { GridColumnType, LOSApplicationCardStatus, LOSLoanType } from \"views/Constants/Constant\";\r\nimport PortfolioPerformanceChart from \"views/LMS/PortfolioPerformance/PortfolioPerformanceChart\";\r\nimport ApplicantDefinition from \"views/LOS/ApplicantDefinition/ApplicantDefinition\";\r\nimport Statement from \"views/LOS/Statement/Statement\";\r\nclass PortfolioPerformance extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.UploadClick = this.UploadClick.bind(this);\r\n\t\tthis.fileInputRef = React.createRef();\r\n\t\tthis.emptyObject = {};\r\n\t\tthis.FileTypeParameterCode = {\r\n\t\t\tParameterCode: \"LOSFileType\"\r\n\t\t};\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tFromDate: DateHelper.GetDate(),\r\n\t\t\t\tToDate: DateHelper.GetDate()\r\n\t\t\t},\r\n\t\t\tApplicationsList: [],\r\n\t\t\tApplicantList: [],\r\n\t\t\tisBrowse: false,\r\n\t\t\tisLoading: false,\r\n\t\t\tReadOnly: true,\r\n\t\t\tselected: null,\r\n\t\t\tisLedgerCardDialogOpen: false,\r\n\t\t\tisStatementDialogOpen: false,\r\n\t\t\tPortfolioPerformanceList: [],\r\n\t\t\tmodelrow: {},\r\n\t\t\tprogramList: [],\r\n\t\t\ttotalLoansChartData: {\r\n\t\t\t\tlabels: [\"Total Loans\"],\r\n\t\t\t\tdatasets: [\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdata: [100],\r\n\t\t\t\t\t\tbackgroundColor: \"rgb(255, 159, 64)\",\r\n\t\t\t\t\t\thoverBackgroundColor: \"rgb(255, 159, 64)\"\r\n\t\t\t\t\t}\r\n\t\t\t\t],\r\n\t\t\t\ttext: \"\"\r\n\t\t\t},\r\n\t\t\toutStandingChartData: {\r\n\t\t\t\tlabels: [\"Outstanding\"],\r\n\t\t\t\tdatasets: [\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdata: [100],\r\n\t\t\t\t\t\tbackgroundColor: \"rgb(255, 159, 64)\",\r\n\t\t\t\t\t\thoverBackgroundColor: \"rgb(255, 159, 64)\"\r\n\t\t\t\t\t}\r\n\t\t\t\t],\r\n\t\t\t\ttext: \"\"\r\n\t\t\t},\r\n\t\t\tcurrentChartData: {\r\n\t\t\t\tlabels: [\"Current\"],\r\n\t\t\t\tdatasets: [\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdata: [100],\r\n\t\t\t\t\t\tbackgroundColor: \"rgb(255, 159, 64)\",\r\n\t\t\t\t\t\thoverBackgroundColor: \"rgb(255, 159, 64)\"\r\n\t\t\t\t\t}\r\n\t\t\t\t],\r\n\t\t\t\ttext: \"\"\r\n\t\t\t},\r\n\t\t\tpastDueChartData: {\r\n\t\t\t\tlabels: [\"Past Due\"],\r\n\t\t\t\tdatasets: [\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdata: [100],\r\n\t\t\t\t\t\tbackgroundColor: \"rgb(255, 159, 64)\",\r\n\t\t\t\t\t\thoverBackgroundColor: \"rgb(255, 159, 64)\"\r\n\t\t\t\t\t}\r\n\t\t\t\t],\r\n\t\t\t\ttext: \"\"\r\n\t\t\t},\r\n\t\t\twriteOffsChartData: {\r\n\t\t\t\tlabels: [\"Write Offs\"],\r\n\t\t\t\tdatasets: [\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdata: [100],\r\n\t\t\t\t\t\tbackgroundColor: \"rgb(255, 159, 64)\",\r\n\t\t\t\t\t\thoverBackgroundColor: \"rgb(255, 159, 64)\"\r\n\t\t\t\t\t}\r\n\t\t\t\t],\r\n\t\t\t\ttext: \"\"\r\n\t\t\t},\r\n\t\t\tinterestChartData: {\r\n\t\t\t\tlabels: [\"Interest\"],\r\n\t\t\t\tdatasets: [\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdata: [100],\r\n\t\t\t\t\t\tbackgroundColor: \"rgb(255, 159, 64)\",\r\n\t\t\t\t\t\thoverBackgroundColor: \"rgb(255, 159, 64)\"\r\n\t\t\t\t\t}\r\n\t\t\t\t],\r\n\t\t\t\ttext: \"\"\r\n\t\t\t},\r\n\t\t\tfeesChartData: {\r\n\t\t\t\tlabels: [\"Fees\"],\r\n\t\t\t\tdatasets: [\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdata: [100],\r\n\t\t\t\t\t\tbackgroundColor: \"rgb(255, 159, 64)\",\r\n\t\t\t\t\t\thoverBackgroundColor: \"rgb(255, 159, 64)\"\r\n\t\t\t\t\t}\r\n\t\t\t\t],\r\n\t\t\t\ttext: \"\"\r\n\t\t\t},\r\n\t\t\tisBorrowerDetailDialogOpen: false,\r\n\t\t\tapplicantId: 0,\r\n\t\t\tisBackOffice: ClientHelper.IsBackOffice()\r\n\t\t};\r\n\r\n\t\tthis.ColumnsData = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date\",\r\n\t\t\t\taccessor: \"Application.InsertDateTime\",\r\n\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Assign User\",\r\n\t\t\t\taccessor: \"AssignUserFullName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Borrower Name\",\r\n\t\t\t\taccessor: \"Application.Applicant.FullName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Application Number\",\r\n\t\t\t\taccessor: \"Application.ApplicationNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Partner\",\r\n\t\t\t\taccessor: \"Application.ClientPartner.LegalNameOfBusiness\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Approval Status\",\r\n\t\t\t\taccessor: \"Application.ApprovalStatus.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Activation Status\",\r\n\t\t\t\taccessor: \"Application.Status.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Loan Type\",\r\n\t\t\t\taccessor: \"Application.LoanType.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Wallet Account Number\",\r\n\t\t\t\taccessor: \"Application.Applicant.WalletAccount.AccountNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Masked Card Number\",\r\n\t\t\t\taccessor: \"MaskedCardNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Loan\",\r\n\t\t\t\taccessor: \"TotalLoan\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money,\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Payment\",\r\n\t\t\t\taccessor: \"TotalPayment\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money,\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Principal Amount\",\r\n\t\t\t\taccessor: \"TotalLoan\",\r\n\t\t\t\t// accessor: \"ApplicationPaymentDetail.PrincipalAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money,\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Outstanding\",\r\n\t\t\t\taccessor: \"Outstanding\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money,\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Past Due\",\r\n\t\t\t\taccessor: \"PastDue\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money,\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Write Offs\",\r\n\t\t\t\taccessor: \"WriteOfBalance\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money,\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Interest\",\r\n\t\t\t\taccessor: \"InterestBalance\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money,\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Fees\",\r\n\t\t\t\taccessor: \"FeeBalance\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money,\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Payment Frequency\",\r\n\t\t\t\taccessor: \"Application.ApprovedPaymentFrequency.ParameterDesc\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\r\n\t\tif (!this.state.isBackOffice) {\r\n\t\t\tthis.ColumnsData.unshift(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\t\t// @ts-ignore\r\n\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tthis.DialogBorrowerDetailOpen(row.original.Application.ApplicantId);\r\n\t\t\t\t\t\t\t\t}} />\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tthis.SelectedRow(row.original);\r\n\t\t\t\t\t\t\t\t}} />\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t),\r\n\t\t\t\t\tsortable: false,\r\n\t\t\t\t\tfilterable: false\r\n\t\t\t\t},\r\n\t\t\t);\r\n\t\t}\r\n\r\n\r\n\t\tthis.InterestTypeParameterCode = {\r\n\t\t\tParameterCode: \"LOSInterestType\"\r\n\t\t};\r\n\t\tthis.PeriodParameterCode = {\r\n\t\t\tParameterCode: \"Period\"\r\n\t\t};\r\n\t\tthis.PayOptionParameterCode = {\r\n\t\t\tParameterCode: \"LOSPayOption\"\r\n\t\t};\r\n\t\tthis.YesNoParameterCode = {\r\n\t\t\tParameterCode: \"LOSYesNo\"\r\n\t\t};\r\n\t\tthis.LoanTypeParameterCode = {\r\n\t\t\tParameterCode: \"LOSLoanType\"\r\n\t\t};\r\n\t\tthis.LOSPaymentFrequency = {\r\n\t\t\tParameterCode: \"LOSPaymentSchedule\"\r\n\t\t};\r\n\r\n\t\tthis.SuccessListCallback = this\r\n\t\t\t.SuccessListCallback\r\n\t\t\t.bind(this);\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis\r\n\t\t\t.props\r\n\t\t\t.setAppLeftTitle(\"Portfolio Performance\");\r\n\t\tthis\r\n\t\t\t.props\r\n\t\t\t.setAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n\t}\r\n\r\n\tSelectedRow(row) {\r\n\t\tif (row.Application.LoanType.ParameterValue === LOSLoanType.Loan) {\r\n\t\t\tthis.setState({ modelrow: row });\r\n\t\t\tthis.LedgerCardDialogOpenOrClose();\r\n\t\t} else {\r\n\t\t\tthis.setState({ modelrow: row });\r\n\t\t\tthis.StatementDialogOpenOrClose();\r\n\t\t}\r\n\t}\r\n\r\n\tDialogBorrowerDetailOpen = (applicantId) => {\r\n\t\tthis.setState({ isBorrowerDetailDialogOpen: true, applicantId });\r\n\t}\r\n\r\n\tDialogBorrowerDetailClose = () => {\r\n\t\tthis.setState({ isBorrowerDetailDialogOpen: false });\r\n\t}\r\n\r\n\tSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/lmsapi/v1.0/Dashboard/GetData\", this.state.model, responseData => {\r\n\t\t\tconsole.log(\"GetPortfolioPerformance ->\", responseData.IsSucceeded);\r\n\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif (responseData.Item != null) {\r\n\t\t\t\tconsole.log(responseData);\r\n\t\t\t\tthis.SuccessListCallback(responseData);\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tPortfolioPerformanceList: responseData.Item.ApplicationDetailList || [],\r\n\t\t\t\t\tisLoading: false\r\n\t\t\t\t});\r\n\t\t\t} else {\r\n\t\t\t\tthis.setState({ PortfolioPerformanceList: [], isLoading: false });\r\n\t\t\t}\r\n\t\t}, error => {\r\n\t\t\tthis.setState({ isLoading: false });\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t});\r\n\t}\r\n\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = {\r\n\t\t\t...this.state.model\r\n\t\t};\r\n\t\tif (name === \"FromDate\" && (newValue instanceof moment) && newValue > model.ToDate) {\r\n\t\t\t// @ts-ignore\r\n\t\t\tvar endDate = newValue.clone();\r\n\t\t\tmodel[\"ToDate\"] = endDate.add(33, \"days\");\r\n\t\t}\r\n\t\tif (name === \"FromDate\") {\r\n\t\t\tif ((newValue instanceof moment) && Math.abs(model.ToDate.diff(newValue, \"days\")) > 33) {\r\n\t\t\t\t// @ts-ignore\r\n\t\t\t\tendDate = newValue.clone();\r\n\t\t\t\tmodel[\"ToDate\"] = endDate.add(33, \"days\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\r\n\t}\r\n\r\n\tUploadClick() {\r\n\t\tthis\r\n\t\t\t.fileInputRef\r\n\t\t\t.current\r\n\t\t\t.click();\r\n\t}\r\n\r\n\thideAlert = () => {\r\n\t\tthis.setState({ alert: null, isLoading: false });\r\n\t}\r\n\r\n\tLedgerCardDialogOpenOrClose = () => {\r\n\t\tif (this.state.isLedgerCardDialogOpen == false) {\r\n\t\t\tthis.setState({ isLedgerCardDialogOpen: true });\r\n\t\t} else {\r\n\t\t\tthis.setState({ isLedgerCardDialogOpen: false });\r\n\t\t}\r\n\t}\r\n\r\n\tStatementDialogOpenOrClose = () => {\r\n\t\tif (this.state.isStatementDialogOpen == false) {\r\n\t\t\tthis.setState({ isStatementDialogOpen: true });\r\n\t\t} else {\r\n\t\t\tthis.setState({ isStatementDialogOpen: false });\r\n\t\t}\r\n\t}\r\n\r\n\tHandleClickClearOk = () => {\r\n\t\tthis.HideAlert();\r\n\t\tthis.setState({\r\n\t\t\tmodel: {\r\n\t\t\t\tFromDate: DateHelper.GetDate(),\r\n\t\t\t\tToDate: DateHelper.GetDate()\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: {}, selected: null });\r\n\t}\r\n\r\n\tErrorCallback = (error) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"Error\", \"An error occurred during the api visit\" + error);\r\n\t}\r\n\tShowMessageAndRefresh = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlertAndRefresh()} />\r\n\t\t});\r\n\t}\r\n\thideAlertAndRefresh = () => {\r\n\t\tthis.setState({ alert: null, isLoading: false });\r\n\t\twindow\r\n\t\t\t.location\r\n\t\t\t.reload();\r\n\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: null })}\r\n\t\t\t\tOnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\r\n\tHideAlert = () => {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\tRefreshToolBar = () => {\r\n\t\tthis.setState({\r\n\t\t\tLimitToken: !this.state.LimitToken\r\n\t\t});\r\n\t}\r\n\r\n\tformatNumber = (num) => {\r\n\t\treturn \" $\" + num\r\n\t\t\t.toString()\r\n\t\t\t.replace(/(\\d)(?=(\\d{3})+(?!\\d))/g, \"$1,\");\r\n\t}\r\n\r\n\tSuccessListCallback(responseData) {\r\n\t\tconsole.log(\"successslistcallback\");\r\n\t\tvar arrayData = [];\r\n\t\tvar arrayData2 = [];\r\n\t\tvar arrayData3 = [];\r\n\t\tvar arrayData4 = [];\r\n\t\tvar arrayData5 = [];\r\n\t\tvar arrayData6 = [];\r\n\t\tvar arrayData7 = [];\r\n\t\tvar arrayLabel = [];\r\n\t\tvar arrayLabel2 = [];\r\n\t\tvar arrayLabel3 = [];\r\n\t\tvar arrayLabel4 = [];\r\n\t\tvar arrayLabel5 = [];\r\n\t\tvar arrayLabel6 = [];\r\n\t\tvar arrayLabel7 = [];\r\n\t\tvar arrayColor = [];\r\n\t\tvar arrayColor2 = [];\r\n\t\tvar arrayColor3 = [];\r\n\t\tvar arrayColor4 = [];\r\n\t\tvar arrayColor5 = [];\r\n\t\tvar arrayColor6 = [];\r\n\t\tvar arrayColor7 = [];\r\n\r\n\t\tif (responseData.Item !== null) {\r\n\t\t\tvar colorNames = Object.keys(chartColors);\r\n\t\t\tvar i = 0;\r\n\r\n\t\t\tvar colorName = colorNames[i % colorNames.length];\r\n\t\t\tvar newColor = chartColors[colorName];\r\n\t\t\tarrayColor.push(newColor);\r\n\t\t\tarrayData.push(responseData.Item.TotalLoansChartData != null\r\n\t\t\t\t? responseData.Item.TotalLoansChartData.TotalRequestAmount\r\n\t\t\t\t: 0);\r\n\t\t\tarrayData.push(responseData.Item.TotalLoansChartData != null\r\n\t\t\t\t? responseData.Item.TotalLoansChartData.RequestAmountCount\r\n\t\t\t\t: 0);\r\n\r\n\t\t\tarrayLabel.push(\"Tran Amount\");\r\n\t\t\tarrayLabel.push(\"Total Amount\");\r\n\t\t\tif (responseData.Item.TotalLoansChartData != null) {\r\n\t\t\t\tvar totalLoanString = responseData.Item.TotalLoansChartData.RequestAmountCount + \" \"\r\n\t\t\t\t\t+ this.formatNumber(responseData.Item.TotalLoansChartData.TotalRequestAmount ? responseData.Item.TotalLoansChartData.TotalRequestAmount.toFixed(2) : 0);\r\n\t\t\t}\r\n\r\n\t\t\tvar totalLoansChartDataObj = {\r\n\t\t\t\tlabels: arrayLabel,\r\n\t\t\t\tdatasets: [\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdata: arrayData,\r\n\t\t\t\t\t\thoverBackgroundColor: arrayColor,\r\n\t\t\t\t\t\tbackgroundColor: arrayColor\r\n\t\t\t\t\t}\r\n\t\t\t\t],\r\n\t\t\t\ttext: responseData.Item.TotalLoansChartData != null\r\n\t\t\t\t\t? totalLoanString\r\n\t\t\t\t\t: \"0\"\r\n\t\t\t};\r\n\r\n\t\t\tcolorNames = Object.keys(chartColors);\r\n\t\t\tcolorName = colorNames[i % colorNames.length];\r\n\t\t\tnewColor = chartColors[colorName];\r\n\t\t\tarrayColor2.push(newColor);\r\n\t\t\tarrayData2.push(responseData.Item.OutstandingChartData != null\r\n\t\t\t\t? responseData.Item.OutstandingChartData.WaitingRequestAmount\r\n\t\t\t\t: 0);\r\n\t\t\tarrayData2.push(responseData.Item.OutstandingChartData != null\r\n\t\t\t\t? responseData.Item.OutstandingChartData.WaitingTotalPerson\r\n\t\t\t\t: 0);\r\n\r\n\t\t\tarrayLabel2.push(\"Tran Amount\");\r\n\t\t\tarrayLabel2.push(\"Total Amount\");\r\n\t\t\tif (responseData.Item.OutstandingChartData != null) {\r\n\t\t\t\tvar outStandingString = responseData.Item.OutstandingChartData.WaitingTotalPerson\r\n\t\t\t\t\t+ this.formatNumber(responseData.Item.OutstandingChartData.WaitingRequestAmount ? responseData.Item.OutstandingChartData.WaitingRequestAmount.toFixed(2) : 0);\r\n\t\t\t}\r\n\r\n\t\t\tvar outStandingChartDataObj = {\r\n\t\t\t\tlabels: arrayLabel2,\r\n\t\t\t\tdatasets: [\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdata: arrayData2,\r\n\t\t\t\t\t\thoverBackgroundColor: arrayColor2,\r\n\t\t\t\t\t\tbackgroundColor: arrayColor2\r\n\t\t\t\t\t}\r\n\t\t\t\t],\r\n\t\t\t\ttext: responseData.Item.OutstandingChartData != null\r\n\t\t\t\t\t? outStandingString\r\n\t\t\t\t\t: \"0\"\r\n\t\t\t};\r\n\r\n\t\t\tcolorName = colorNames[i % colorNames.length];\r\n\t\t\tnewColor = chartColors[colorName];\r\n\t\t\tarrayColor3.push(newColor);\r\n\t\t\tarrayData3.push(responseData.Item.CurrentChartData != null\r\n\t\t\t\t? responseData.Item.CurrentChartData.PaidRequestAmount\r\n\t\t\t\t: 0);\r\n\t\t\tarrayData3.push(responseData.Item.CurrentChartData != null\r\n\t\t\t\t? responseData.Item.CurrentChartData.PaidTotalPerson\r\n\t\t\t\t: 0);\r\n\r\n\t\t\tarrayLabel3.push(\"Tran Amount\");\r\n\t\t\tarrayLabel3.push(\"Total Amount\");\r\n\t\t\tif (responseData.Item.CurrentChartData != null) {\r\n\t\t\t\tvar currentString = responseData.Item.CurrentChartData.PaidTotalPerson\r\n\t\t\t\t\t+ this.formatNumber(responseData.Item.CurrentChartData.PaidRequestAmount ? responseData.Item.CurrentChartData.PaidRequestAmount.toFixed(2) : 0);\r\n\t\t\t}\r\n\r\n\t\t\tvar currentChartDataObj = {\r\n\t\t\t\tlabels: arrayLabel3,\r\n\t\t\t\tdatasets: [\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdata: arrayData3,\r\n\t\t\t\t\t\thoverBackgroundColor: arrayColor3,\r\n\t\t\t\t\t\tbackgroundColor: arrayColor3\r\n\t\t\t\t\t}\r\n\t\t\t\t],\r\n\t\t\t\ttext: responseData.Item.CurrentChartData != null\r\n\t\t\t\t\t? currentString\r\n\t\t\t\t\t: \"0\"\r\n\t\t\t};\r\n\r\n\t\t\tcolorNames = Object.keys(chartColors);\r\n\t\t\tcolorName = colorNames[i % colorNames.length];\r\n\t\t\tnewColor = chartColors[colorName];\r\n\t\t\tarrayColor4.push(newColor);\r\n\t\t\tarrayData4.push(responseData.Item.PastdueChartData != null\r\n\t\t\t\t? responseData.Item.PastdueChartData.UnPaidRequestAmount\r\n\t\t\t\t: 0);\r\n\t\t\tarrayData4.push(responseData.Item.PastdueChartData != null\r\n\t\t\t\t? responseData.Item.PastdueChartData.UnPaidTotalPerson\r\n\t\t\t\t: 0);\r\n\r\n\t\t\tarrayLabel4.push(\"Tran Amount\");\r\n\t\t\tarrayLabel4.push(\"Total Amount\");\r\n\t\t\tif (responseData.Item.PastdueChartData != null) {\r\n\t\t\t\tvar pastDueString = responseData.Item.PastdueChartData.UnPaidTotalPerson + \" \"\r\n\t\t\t\t\t+ this.formatNumber(responseData.Item.PastdueChartData.UnPaidRequestAmount ? responseData.Item.PastdueChartData.UnPaidRequestAmount.toFixed(2) : 0);\r\n\t\t\t}\r\n\r\n\t\t\tvar pastDueChartDataObj = {\r\n\t\t\t\tlabels: arrayLabel4,\r\n\t\t\t\tdatasets: [\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdata: arrayData4,\r\n\t\t\t\t\t\thoverBackgroundColor: arrayColor4,\r\n\t\t\t\t\t\tbackgroundColor: arrayColor4\r\n\t\t\t\t\t}\r\n\t\t\t\t],\r\n\t\t\t\ttext: responseData.Item.PastdueChartData != null\r\n\t\t\t\t\t? pastDueString\r\n\t\t\t\t\t: \"0\"\r\n\t\t\t};\r\n\r\n\t\t\tcolorName = colorNames[i % colorNames.length];\r\n\t\t\tnewColor = chartColors[colorName];\r\n\t\t\tarrayColor5.push(newColor);\r\n\t\t\tarrayData5.push(responseData.Item.WriteOffsChartData);\r\n\r\n\t\t\tarrayLabel5.push(\"Total Amount\");\r\n\t\t\tif (responseData.Item.WriteOffsChartData != null) {\r\n\t\t\t\tvar writeOffsString = this.formatNumber(responseData.Item.WriteOffsChartData.toFixed(2));\r\n\t\t\t}\r\n\r\n\t\t\tvar writeOffsChartDataObj = {\r\n\t\t\t\tlabels: arrayLabel5,\r\n\t\t\t\tdatasets: [\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdata: arrayData5,\r\n\t\t\t\t\t\thoverBackgroundColor: arrayColor5,\r\n\t\t\t\t\t\tbackgroundColor: arrayColor5\r\n\t\t\t\t\t}\r\n\t\t\t\t],\r\n\t\t\t\ttext: responseData.Item.WriteOffsChartData != null\r\n\t\t\t\t\t? writeOffsString\r\n\t\t\t\t\t: \"0\"\r\n\t\t\t};\r\n\r\n\r\n\t\t\tcolorName = colorNames[i % colorNames.length];\r\n\t\t\tnewColor = chartColors[colorName];\r\n\t\t\tarrayColor6.push(newColor);\r\n\t\t\tarrayData6.push(responseData.Item.InterestChartData != null\r\n\t\t\t\t? responseData.Item.InterestChartData.InterestBalance\r\n\t\t\t\t: 0);\r\n\t\t\tarrayLabel6.push(\"Total Amount\");\r\n\t\t\tif (responseData.Item.InterestChartData != null) {\r\n\t\t\t\tvar interestString = this.formatNumber(responseData.Item.InterestChartData.InterestBalance ? responseData.Item.InterestChartData.InterestBalance.toFixed(2) : 0);\r\n\t\t\t}\r\n\t\t\tvar interestChartDataObj = {\r\n\t\t\t\tlabels: arrayLabel6,\r\n\t\t\t\tdatasets: [\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdata: arrayData6,\r\n\t\t\t\t\t\thoverBackgroundColor: arrayColor6,\r\n\t\t\t\t\t\tbackgroundColor: arrayColor6\r\n\t\t\t\t\t}\r\n\t\t\t\t],\r\n\t\t\t\ttext: responseData.Item.InterestChartData != null\r\n\t\t\t\t\t? interestString\r\n\t\t\t\t\t: \"0\"\r\n\t\t\t};\r\n\r\n\r\n\t\t\tcolorName = colorNames[i % colorNames.length];\r\n\t\t\tnewColor = chartColors[colorName];\r\n\t\t\tarrayColor7.push(newColor);\r\n\t\t\tarrayData7.push(responseData.Item.FeesChartData != null\r\n\t\t\t\t? responseData.Item.FeesChartData.TotalSetupAmount\r\n\t\t\t\t: 0);\r\n\r\n\t\t\tarrayLabel7.push(\"Total Amount\");\r\n\t\t\tif (responseData.Item.FeesChartData != null) {\r\n\t\t\t\tvar feesString = this.formatNumber(responseData.Item.FeesChartData.TotalSetupAmount ? responseData.Item.FeesChartData.TotalSetupAmount.toFixed(2) : 0);\r\n\t\t\t}\r\n\r\n\t\t\tvar feesChartDataObj = {\r\n\t\t\t\tlabels: arrayLabel7,\r\n\t\t\t\tdatasets: [\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdata: arrayData7,\r\n\t\t\t\t\t\thoverBackgroundColor: arrayColor7,\r\n\t\t\t\t\t\tbackgroundColor: arrayColor7\r\n\t\t\t\t\t}\r\n\t\t\t\t],\r\n\t\t\t\ttext: responseData.Item.FeesChartData != null\r\n\t\t\t\t\t? feesString\r\n\t\t\t\t\t: \"0\"\r\n\t\t\t};\r\n\t\t\t/********************************************************/\r\n\t\t\tconst { model } = this.state;\r\n\t\t\tmodel.BeginDate = responseData.Item.BeginDate;\r\n\t\t\tmodel.EndDate = responseData.Item.EndDate;\r\n\t\t\tthis.setState({\r\n\t\t\t\tmodel,\r\n\t\t\t\ttotalLoansChartData: responseData.Item.TotalLoansChartData != null && responseData.Item.TotalLoansChartData.RequestAmountCount > 0 ? totalLoansChartDataObj : { ...this.state.totalLoansChartData, ...{ text: \"0\" } },\r\n\t\t\t\toutStandingChartData: responseData.Item.OutstandingChartData != null && responseData.Item.OutstandingChartData.WaitingTotalPerson > 0 ? outStandingChartDataObj : { ...this.state.outStandingChartData, ...{ text: \"0\" } },\r\n\t\t\t\tcurrentChartData: responseData.Item.CurrentChartData != null && responseData.Item.CurrentChartData.PaidTotalPerson > 0 ? currentChartDataObj : { ...this.state.currentChartData, ...{ text: \"0\" } },\r\n\t\t\t\tpastDueChartData: responseData.Item.PastdueChartData != null && responseData.Item.PastdueChartData.UnPaidTotalPerson > 0 ? pastDueChartDataObj : { ...this.state.pastDueChartData, ...{ text: \"0\" } },\r\n\t\t\t\twriteOffsChartData: responseData.Item.WriteoffsChartData != null ? writeOffsChartDataObj : { ...this.state.writeOffsChartData, ...{ text: \"0\" } },\r\n\t\t\t\tinterestChartData: responseData.Item.InterestChartData != null && responseData.Item.InterestChartData.InterestBalance > 0 ? interestChartDataObj : { ...this.state.interestChartData, ...{ text: \"0\" } },\r\n\t\t\t\tfeesChartData: responseData.Item.FeesChartData != null && responseData.Item.FeesChartData.TotalSetupAmount > 0 ? feesChartDataObj : { ...this.state.feesChartData, ...{ text: \"0\" } },\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\treturn `${d.UniqueClientId} - ${d.Name}`;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { ForInsert, Disabled } = this.props;\r\n\t\tconst {\r\n\t\t\talert,\r\n\t\t\tisLoading,\r\n\t\t\tisStatementDialogOpen,\r\n\t\t\tmodel,\r\n\t\t\tapplicantId,\r\n\t\t\tisBorrowerDetailDialogOpen,\r\n\t\t\tisBackOffice\r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\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nPortfolioPerformance.propTypes = {\r\n\ttabList: PropTypes.array,\r\n\tclasses: PropTypes.object.isRequired,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tApplicantSaved: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmodel: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(PortfolioPerformance);","import Card from \"components/Card/Card\";\r\nimport CardBody from \"components/Card/CardBody\";\r\nimport GridContainer from \"components/Grid/GridContainer\";\r\nimport GridItem from \"components/Grid/GridItem\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport {\r\n GenericDateInput,\r\n GenericExpansionPanel,\r\n GenericGrid,\r\n GenericSelectInput,\r\n} from \"views/Components/Generic\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass FeeBasedTransactionReport extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n\r\n this.columns = [\r\n {\r\n Header: \"Report Date\",\r\n accessor: \"ReportDate\",\r\n type: GridColumnType.Date,\r\n },\r\n {\r\n Header: \"Customer Name\",\r\n accessor: \"CustomerName\",\r\n },\r\n {\r\n Header: \"Customer Number\",\r\n accessor: \"CustomerNumber\",\r\n },\r\n {\r\n Header: \"Credit Card Interest\",\r\n accessor: \"CreditCardInterest\",\r\n type: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Inactivity Fee\",\r\n accessor: \"InactivityFee\",\r\n type: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Monthly Card Fee\",\r\n accessor: \"MonthlyCardFee\",\r\n type: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Overdue Fee\",\r\n accessor: \"OverdueFee\",\r\n type: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Overdraft Fee\",\r\n accessor: \"OverdraftFee\",\r\n type: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Card Activation Fee\",\r\n accessor: \"CardActivationFee\",\r\n type: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Domestic Transaction Fee\",\r\n accessor: \"DomesticTransactionFee\",\r\n type: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Domestic Atm Transaction Fee\",\r\n accessor: \"DomesticAtmTransactionFee\",\r\n type: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"International Transaction Fee\",\r\n accessor: \"InternationalTransactionFee\",\r\n type: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"International Atm Transaction Fee\",\r\n accessor: \"InternationalAtmTransactionFee\",\r\n type: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Decline Fee\",\r\n accessor: \"DeclineFee\",\r\n type: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Card Issuing Fee\",\r\n accessor: \"CardIssuingFee\",\r\n type: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Card Renewal Fee\",\r\n accessor: \"CardRenewalFee\",\r\n type: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Card ReEmboss Fee\",\r\n accessor: \"CardReEmbossFee\",\r\n type: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Annual Card Fee\",\r\n accessor: \"AnnualCardFee\",\r\n type: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Balance Inquiry Fee\",\r\n accessor: \"BalanceInquiryFee\",\r\n type: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"ATM Domestic Transaction Fee\",\r\n accessor: \"ATMDomesticTransactionFee\",\r\n type: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"POS Domestic Transaction Fee\",\r\n accessor: \"POSDomesticTransactionFee\",\r\n type: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"ATM International Transaction Fee\",\r\n accessor: \"ATMInternationalTransactionFee\",\r\n type: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"POS International Transaction Fee\",\r\n accessor: \"POSInternationalTransactionFee\",\r\n type: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Foreign Exchange Fee\",\r\n accessor: \"ForeignExchangeFee\",\r\n type: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"ETransfer Fee\",\r\n accessor: \"ETransferFee\",\r\n type: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Bill Payment Fee\",\r\n accessor: \"BillPaymentFee\",\r\n type: GridColumnType.Money,\r\n },\r\n ];\r\n\r\n this.uniqueClientId = ClientHelper.GetClientRowId();\r\n\r\n this.emptyObject = {};\r\n this.parameterUniqueClientId = {};\r\n\r\n this.sortedFullName = { Member: \"FullName\" };\r\n\r\n this.validateProperties = [\r\n { ToDate: \"End Date\" },\r\n { FromDate: \"Start Date\" },\r\n\t\t{ UniqueClientId: \"Client\" },\r\n ];\r\n\r\n this.state = {\r\n model: {\r\n UniqueClientId: this.uniqueClientId,\r\n },\r\n };\r\n }\r\n\r\n componentDidMount() {\r\n const { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\r\n if (setAppCenterTitle) {\r\n setAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n }\r\n if (setAppLeftTitle) {\r\n setAppLeftTitle(\"Fee Based Transaction Report\");\r\n }\r\n }\r\n\r\n ValueChanged = (name, value) => {\r\n this.setState((state) => {\r\n var model = state.model;\r\n model[name] = value;\r\n\r\n return { model };\r\n });\r\n };\r\n\r\n GetParameterUniqueClientId = () => {\r\n const { model } = this.state;\r\n\r\n this.parameterUniqueClientId.UniqueClientId = model.UniqueClientId;\r\n\r\n return this.parameterUniqueClientId;\r\n };\r\n\r\n Search = async () => {\r\n const { model } = this.state;\r\n const { ExecuteApiPost } = this.props;\r\n var result = await ExecuteApiPost(\r\n \"/lmsapi/v1.0/FeeAndCodeBasedTransaction/SearchFeeBasedTransactionReport\",\r\n model,\r\n model,\r\n this.validateProperties\r\n );\r\n\r\n this.setState({ list: result || [] });\r\n };\r\n\r\n Clear = () => {\r\n this.setState({ model: { UniqueClientId: this.uniqueClientId }, list: [] });\r\n };\r\n\r\n render() {\r\n const { Disabled } = this.props;\r\n const { model, list } = this.state;\r\n\t var IsClient = ClientHelper.IsClient();\r\n\r\n return (\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n `${d.UniqueClientId} - ${d.Name}`}\r\n TextValueMember=\"Name\"\r\n Value={model.UniqueClientId}\r\n ValueChanged={this.ValueChanged}\r\n\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\tDefaultIndex={IsClient ? 0 : -1}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\nFeeBasedTransactionReport.propTypes = {\r\n setAppLeftTitle: PropTypes.func,\r\n setAppCenterTitle: PropTypes.func,\r\n ExecuteApiPost: PropTypes.func,\r\n Disabled: PropTypes.bool,\r\n ApprovalData: PropTypes.any,\r\n After: PropTypes.any,\r\n};\r\n\r\nexport default FeeBasedTransactionReport;\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport {\r\n GenericSelectInput,\r\n GenericDateInput,\r\n GenericExpansionPanel,\r\n GenericRadioInput,\r\n GenericGrid,\r\n GenericDialog,\r\n GenericAlert,\r\n GenericDialogActions,\r\n GenericLabel,\r\n GenericTitle,\r\n} from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Select from \"react-select\";\r\n\r\nclass FeeReport extends Component {\r\n constructor(props) {\r\n super(props);\r\n\r\n this.initialModel = {\r\n Id: 0,\r\n UniqueClientId: ClientHelper.IsClient()\r\n ? ClientHelper.GetClientRowId()\r\n : undefined,\r\n IsMainCard: true,\r\n ProgramCode: \"\",\r\n FromDate: DateHelper.GetLocalDateAsUtc(),\r\n ToDate: DateHelper.GetLocalDateAsUtc(),\r\n };\r\n\r\n this.state = {\r\n model: this.initialModel,\r\n list: [],\r\n isLoading: false,\r\n vModel: {},\r\n };\r\n\r\n this.emptyObject = {};\r\n\r\n this.maxLength6 = { maxLength: 6 };\r\n\r\n this.parameterUniqueClientId = {\r\n UniqueClientId: ClientHelper.IsClient()\r\n ? ClientHelper.GetClientId()\r\n : undefined,\r\n };\r\n\r\n this.parameterProduct = {};\r\n\r\n this.Columns = [\r\n {\r\n Header: \"Client\",\r\n accessor: \"ClientInfo\",\r\n },\r\n {\r\n\t\t\tHeader: \"Transaction Date\",\r\n\t\t\taccessor: \"TransactionDate\",\r\n\t\t\ttype: GridColumnType.Date,\r\n\t\t },\r\n\t\t {\r\n\t\t\tHeader: \"Customer Name\",\r\n\t\t\taccessor: \"CustomerName\",\r\n\t\t },\r\n\t\t {\r\n\t\t\tHeader: \"Customer Number\",\r\n\t\t\taccessor: \"CustomerNumber\",\r\n\t\t },\r\n\t\t {\r\n\t\t\tHeader: \"Wallet Account Number\",\r\n\t\t\taccessor: \"WalletAccountNumber\",\r\n\t\t },\r\n\t\t {\r\n\t\t\tHeader: \"Fee Type\",\r\n\t\t\taccessor: \"FeeType\",\r\n\t\t },\r\n\t\t {\r\n\t\t\tHeader: \"Fee Amount\",\r\n\t\t\taccessor: \"Amount\",\r\n\t\t\ttype: GridColumnType.Money,\r\n\t\t },\r\n\t\t {\r\n\t\t\t Header: \"Reference Number\",\r\n\t\t\t accessor: \"ReferenceNumber\",\r\n\t\t },\r\n ];\r\n\r\n\r\n this.sortParamValue = { Member: \"ParameterValue\" };\r\n\r\n this.trxTable = React.createRef();\r\n }\r\n\r\n showMessage = (type, title, message) => {\r\n this.setState({\r\n alert: (\r\n this.setState({ alert: \"\" })}\r\n />\r\n ),\r\n });\r\n };\r\n setValueToState = (name, value) => {\r\n this.setState({ [name]: value });\r\n };\r\n showLoading() {\r\n this.setState({ isLoading: true });\r\n }\r\n\r\n hideLoading() {\r\n this.setState({ isLoading: false });\r\n }\r\n ExportClick = () => {\r\n var trxColumns = [];\r\n this.trxTable.current.props.Columns.forEach((c) => {\r\n if (\r\n c.accessor != \"Actions\" &&\r\n c.accessor != \"ED\" &&\r\n (c.show == undefined || c.show)\r\n ) {\r\n trxColumns.push({\r\n value: c.accessor,\r\n title: c.Header,\r\n columntype: c.ColumnType,\r\n type: c.type,\r\n });\r\n }\r\n }, this);\r\n\r\n this.setState({\r\n isDownloadDialogOpen: true,\r\n GridKeyValueList: trxColumns,\r\n ExportSelectedColumns: trxColumns,\r\n });\r\n };\r\n\r\n hideAlert = () => {\r\n this.setState({\r\n alert: null,\r\n isLoading: false,\r\n });\r\n };\r\n\r\n ExcelDownload = () => {\r\n if (!this.state.ExportReportType) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Export Report Type not selected\",\r\n \"Select Export Report Type to continue\"\r\n );\r\n return;\r\n }\r\n\r\n if (\r\n this.state.ExportReportType == \"PDF\" &&\r\n this.state.ExportSelectedColumns.length > 15\r\n ) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"PDF document cannot exceed 15 columns\",\r\n \"PDF document cannot exceed 15 columns\"\r\n );\r\n return;\r\n }\r\n\r\n this.setState({ isDownloadDialogOpen: false });\r\n\r\n this.props.showConfirmMessage(\r\n \"question\",\r\n \"Long Process Warning\",\r\n \"This process may take a while. Continue ?\",\r\n () => {\r\n this.hideAlert();\r\n const { model } = this.state;\r\n model.IsClientBalanceScreen = true;\r\n\r\n // Add jsonFile\r\n var jsonColList = [];\r\n\r\n var trxColumns = {};\r\n this.state.ExportSelectedColumns.map((c) => {\r\n trxColumns[c.value] = {\r\n value: c.value,\r\n title: c.title,\r\n columntype: c.columntype,\r\n type: c.type,\r\n };\r\n });\r\n jsonColList.push(trxColumns);\r\n\r\n model[\"jsonFile\"] = {\r\n colmns: jsonColList,\r\n format: this.state.ExportReportType,\r\n title: \"Switch Settlement Aggregate Report\",\r\n };\r\n\r\n this.setState({ isLoading: true });\r\n Proxy.DownloadGeneratedFile(\r\n \"/lmsapi/v1.0/FeeAndCodeBasedTransaction/DownloadFeeReport\",\r\n model,\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n if (!responseData.IsSucceeded) {\r\n this.props.showMessage(\r\n \"error\",\r\n \"Error\",\r\n responseData.ErrorDescription\r\n );\r\n return;\r\n }\r\n },\r\n (errorMessage) => {\r\n this.setState({ isLoading: false });\r\n this.props.showMessage(\"error\", \"Error\", errorMessage);\r\n },\r\n this.props.showMessage\r\n );\r\n }\r\n );\r\n };\r\n\r\n openExportDialog = () => {\r\n this.setState({\r\n isDownloadDialogOpen: true,\r\n });\r\n };\r\n\r\n closeExportDialog = () => {\r\n this.setState({\r\n isDownloadDialogOpen: false,\r\n });\r\n };\r\n\r\n componentDidMount() {\r\n this.props.setAppLeftTitle(\"Fee Report\");\r\n this.props.setAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n }\r\n\r\n HandleChange = (name, newValue, data) => {\r\n const model = { ...this.state.model };\r\n model[name] = newValue;\r\n this.setState({ model });\r\n };\r\n\r\n ValueChangedForExport = (name, value) => {\r\n this.setState({ [name]: value });\r\n };\r\n\r\n HandleClear = () => {\r\n this.setState({\r\n model: { ...this.initialModel },\r\n isEdit: false,\r\n index: -1,\r\n });\r\n };\r\n\r\n HandleSearch = () => {\r\n if (!this.Validate()) {\r\n return;\r\n }\r\n\r\n const model = { ...this.state.model };\r\n model.ProgramCode = this.ProgramCode;\r\n\r\n this.setState({ isLoading: true });\r\n Proxy.POST(\r\n \"/lmsapi/v1.0/FeeAndCodeBasedTransaction/FeeReport\",\r\n model,\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n if (!responseData.IsSucceeded) {\r\n this.props.showMessage(\r\n \"error\",\r\n \"Error\",\r\n responseData.ErrorDescription\r\n );\r\n return;\r\n }\r\n if (responseData.Item !== null) {\r\n this.setState({ list: responseData.Item });\r\n }\r\n },\r\n (error) => {\r\n this.setState({ isLoading: false });\r\n this.props.showMessage(\"error\", \"Error\", error);\r\n }\r\n );\r\n };\r\n Validate = () => {\r\n const { model, vModel } = this.state;\r\n const { showValidationErrors } = this.props;\r\n\r\n var errorList = [];\r\n\r\n vModel.FromDate = !model.FromDate;\r\n if (vModel.FromDate) errorList.push(\"From Date cannot be empty!\");\r\n\r\n vModel.ToDate = !model.ToDate;\r\n if (vModel.ToDate) errorList.push(\"To Date cannot be empty!\");\r\n\r\n vModel.UniqueClientId = !model.UniqueClientId;\r\n if (vModel.UniqueClientId) errorList.push(\"Select the Client to continue.\");\r\n\r\n if (errorList.length > 0) {\r\n showValidationErrors(errorList);\r\n return false;\r\n }\r\n\r\n return true;\r\n };\r\n\r\n GetModel = () => {\r\n return this.state.model;\r\n };\r\n\r\n render() {\r\n const { Disabled } = this.props;\r\n const { alert, model, list, isLoading } = this.state;\r\n var IsClient = ClientHelper.IsClient();\r\n return (\r\n
\r\n \r\n\r\n {alert}\r\n this.ExportClick(),\r\n Disabled: Disabled,\r\n },\r\n ]}\r\n menuId={this.props.menuId}\r\n ApprovalData={this.props.ApprovalData}\r\n After={this.props.After}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n `${d.UniqueClientId} - ${d.Name}`}\r\n TextValueMember=\"Name\"\r\n Value={model.UniqueClientId}\r\n ValueChanged={this.HandleChange}\r\n CanClear\r\n All\r\n Required\r\n DefaultIndex={IsClient ? 0 : -1}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n this.setState({ ExportSelectedColumns: value })\r\n }\r\n isMulti\r\n name=\"Columns\"\r\n getOptionLabel={(d) => d.title}\r\n options={this.state.GridKeyValueList}\r\n className=\"basic-multi-select\"\r\n classNamePrefix=\"select\"\r\n />\r\n \r\n \r\n \r\n \r\n this.setState({ isDownloadDialogOpen: false })}\r\n >\r\n Cancel\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\nFeeReport.propTypes = {\r\n classes: PropTypes.object.isRequired,\r\n Disabled: PropTypes.bool,\r\n};\r\n\r\nexport default withArtifex(FeeReport, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport {\r\n GenericSelectInput,\r\n GenericDateInput,\r\n GenericExpansionPanel,\r\n GenericRadioInput,\r\n GenericGrid,\r\n GenericDialog,\r\n GenericAlert,\r\n GenericDialogActions,\r\n GenericLabel,\r\n GenericTitle,\r\n GenericNumberInput\r\n} from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Select from \"react-select\";\r\n\r\nclass FeeRevenueReport extends Component {\r\n constructor(props) {\r\n super(props);\r\n\r\n this.initialModel = {\r\n Id: 0,\r\n UniqueClientId: ClientHelper.IsClient()\r\n ? ClientHelper.GetClientRowId()\r\n : undefined,\r\n IsMainCard: true,\r\n ProgramCode: \"\",\r\n FromDate: DateHelper.GetLocalDateAsUtc(),\r\n ToDate: DateHelper.GetLocalDateAsUtc(),\r\n };\r\n\r\n this.state = {\r\n model: this.initialModel,\r\n list: [],\r\n isLoading: false,\r\n vModel: {},\r\n };\r\n\r\n this.emptyObject = {};\r\n\r\n this.maxLength6 = { maxLength: 6 };\r\n\r\n this.parameterUniqueClientId = {\r\n UniqueClientId: ClientHelper.IsClient()\r\n ? ClientHelper.GetClientId()\r\n : undefined,\r\n };\r\n\r\n this.parameterProduct = {};\r\n\r\n this.Columns = [\r\n {\r\n Header: \"Client\",\r\n accessor: \"ClientInfo\",\r\n },\r\n {\r\n Header: \"Insert Date\",\r\n accessor: \"InsertDate\",\r\n type: GridColumnType.Date,\r\n },\r\n {\r\n Header: \"Customer Name\",\r\n accessor: \"CustomerName\",\r\n },\r\n {\r\n Header: \"Customer Number\",\r\n accessor: \"CustomerNumber\",\r\n },\r\n {\r\n Header: \"Source Account Name\",\r\n accessor: \"SourceAccountName\",\r\n },\r\n {\r\n Header: \"Source Account Number\",\r\n accessor: \"SourceAccountNumber\",\r\n },\r\n {\r\n Header: \"Fee Type\",\r\n accessor: \"FeeType\",\r\n },\r\n {\r\n Header: \"Revenue Fee Amount\",\r\n accessor: \"RevenueFeeAmount\",\r\n type: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Reference Number\",\r\n accessor: \"ReferenceNumber\",\r\n }\r\n ];\r\n\r\n\r\n this.sortParamValue = { Member: \"ParameterValue\" };\r\n\r\n this.trxTable = React.createRef();\r\n }\r\n\r\n showMessage = (type, title, message) => {\r\n this.setState({\r\n alert: (\r\n this.setState({ alert: \"\" })}\r\n />\r\n ),\r\n });\r\n };\r\n setValueToState = (name, value) => {\r\n this.setState({ [name]: value });\r\n };\r\n showLoading() {\r\n this.setState({ isLoading: true });\r\n }\r\n\r\n hideLoading() {\r\n this.setState({ isLoading: false });\r\n }\r\n ExportClick = () => {\r\n var trxColumns = [];\r\n this.trxTable.current.props.Columns.forEach((c) => {\r\n if (\r\n c.accessor != \"Actions\" &&\r\n c.accessor != \"ED\" &&\r\n (c.show == undefined || c.show)\r\n ) {\r\n trxColumns.push({\r\n value: c.accessor,\r\n title: c.Header,\r\n columntype: c.ColumnType,\r\n type: c.type,\r\n });\r\n }\r\n }, this);\r\n\r\n this.setState({\r\n isDownloadDialogOpen: true,\r\n GridKeyValueList: trxColumns,\r\n ExportSelectedColumns: trxColumns,\r\n });\r\n };\r\n\r\n hideAlert = () => {\r\n this.setState({\r\n alert: null,\r\n isLoading: false,\r\n });\r\n };\r\n\r\n ExcelDownload = () => {\r\n if (!this.state.ExportReportType) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Export Report Type not selected\",\r\n \"Select Export Report Type to continue\"\r\n );\r\n return;\r\n }\r\n\r\n if (\r\n this.state.ExportReportType == \"PDF\" &&\r\n this.state.ExportSelectedColumns.length > 15\r\n ) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"PDF document cannot exceed 15 columns\",\r\n \"PDF document cannot exceed 15 columns\"\r\n );\r\n return;\r\n }\r\n\r\n this.setState({ isDownloadDialogOpen: false });\r\n\r\n this.props.showConfirmMessage(\r\n \"question\",\r\n \"Long Process Warning\",\r\n \"This process may take a while. Continue ?\",\r\n () => {\r\n this.hideAlert();\r\n const { model } = this.state;\r\n model.IsClientBalanceScreen = true;\r\n\r\n // Add jsonFile\r\n var jsonColList = [];\r\n\r\n var trxColumns = {};\r\n this.state.ExportSelectedColumns.map((c) => {\r\n trxColumns[c.value] = {\r\n value: c.value,\r\n title: c.title,\r\n columntype: c.columntype,\r\n type: c.type,\r\n };\r\n });\r\n jsonColList.push(trxColumns);\r\n\r\n model[\"jsonFile\"] = {\r\n colmns: jsonColList,\r\n format: this.state.ExportReportType,\r\n title: \"Switch Settlement Aggregate Report\",\r\n };\r\n\r\n this.setState({ isLoading: true });\r\n Proxy.DownloadGeneratedFile(\r\n \"/lmsapi/v1.0/FeeAndCodeBasedTransaction/DownloadFeeRevenueReport\",\r\n model,\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n if (!responseData.IsSucceeded) {\r\n this.props.showMessage(\r\n \"error\",\r\n \"Error\",\r\n responseData.ErrorDescription\r\n );\r\n return;\r\n }\r\n },\r\n (errorMessage) => {\r\n this.setState({ isLoading: false });\r\n this.props.showMessage(\"error\", \"Error\", errorMessage);\r\n },\r\n this.props.showMessage\r\n );\r\n }\r\n );\r\n };\r\n\r\n openExportDialog = () => {\r\n this.setState({\r\n isDownloadDialogOpen: true,\r\n });\r\n };\r\n\r\n closeExportDialog = () => {\r\n this.setState({\r\n isDownloadDialogOpen: false,\r\n });\r\n };\r\n\r\n componentDidMount() {\r\n this.props.setAppLeftTitle(\"Fee Revenue Report\");\r\n this.props.setAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n }\r\n\r\n HandleChange = (name, newValue, data) => {\r\n const model = { ...this.state.model };\r\n model[name] = newValue;\r\n this.setState({ model });\r\n };\r\n\r\n ValueChangedForExport = (name, value) => {\r\n this.setState({ [name]: value });\r\n };\r\n\r\n HandleClear = () => {\r\n this.setState({\r\n model: { ...this.initialModel },\r\n isEdit: false,\r\n index: -1,\r\n });\r\n };\r\n\r\n HandleSearch = () => {\r\n if (!this.Validate()) {\r\n return;\r\n }\r\n\r\n const model = { ...this.state.model };\r\n model.ProgramCode = this.ProgramCode;\r\n\r\n this.setState({ isLoading: true });\r\n Proxy.POST(\r\n \"/lmsapi/v1.0/FeeAndCodeBasedTransaction/SearchFeeRevenueReport\",\r\n model,\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n if (!responseData.IsSucceeded) {\r\n this.props.showMessage(\r\n \"error\",\r\n \"Error\",\r\n responseData.ErrorDescription\r\n );\r\n return;\r\n }\r\n if (responseData.Item !== null) {\r\n this.setState({ list: responseData.Item });\r\n }\r\n },\r\n (error) => {\r\n this.setState({ isLoading: false });\r\n this.props.showMessage(\"error\", \"Error\", error);\r\n }\r\n );\r\n };\r\n Validate = () => {\r\n const { model, vModel } = this.state;\r\n const { showValidationErrors } = this.props;\r\n\r\n var errorList = [];\r\n\r\n vModel.FromDate = !model.FromDate;\r\n if (vModel.FromDate) errorList.push(\"From Date cannot be empty!\");\r\n\r\n vModel.ToDate = !model.ToDate;\r\n if (vModel.ToDate) errorList.push(\"To Date cannot be empty!\");\r\n\r\n vModel.UniqueClientId = !model.UniqueClientId;\r\n if (vModel.UniqueClientId) errorList.push(\"Select the Client to continue.\");\r\n\r\n if (errorList.length > 0) {\r\n showValidationErrors(errorList);\r\n return false;\r\n }\r\n\r\n return true;\r\n };\r\n\r\n GetModel = () => {\r\n return this.state.model;\r\n };\r\n\r\n render() {\r\n const { Disabled } = this.props;\r\n const { alert, model, list, isLoading } = this.state;\r\n var IsClient = ClientHelper.IsClient();\r\n return (\r\n
\r\n \r\n\r\n {alert}\r\n this.ExportClick(),\r\n Disabled: Disabled,\r\n },\r\n ]}\r\n menuId={this.props.menuId}\r\n ApprovalData={this.props.ApprovalData}\r\n After={this.props.After}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n `${d.UniqueClientId} - ${d.Name}`}\r\n TextValueMember=\"Name\"\r\n Value={model.UniqueClientId}\r\n ValueChanged={this.HandleChange}\r\n CanClear\r\n All\r\n Required\r\n DefaultIndex={IsClient ? 0 : -1}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n this.setState({ ExportSelectedColumns: value })\r\n }\r\n isMulti\r\n name=\"Columns\"\r\n getOptionLabel={(d) => d.title}\r\n options={this.state.GridKeyValueList}\r\n className=\"basic-multi-select\"\r\n classNamePrefix=\"select\"\r\n />\r\n \r\n \r\n \r\n \r\n this.setState({ isDownloadDialogOpen: false })}\r\n >\r\n Cancel\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\nFeeRevenueReport.propTypes = {\r\n classes: PropTypes.object.isRequired,\r\n Disabled: PropTypes.bool,\r\n};\r\n\r\nexport default withArtifex(FeeRevenueReport, {});\r\n","import Card from \"components/Card/Card\";\r\nimport CardBody from \"components/Card/CardBody\";\r\nimport GridContainer from \"components/Grid/GridContainer\";\r\nimport GridItem from \"components/Grid/GridItem\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport {\r\n GenericDateInput,\r\n GenericExpansionPanel,\r\n GenericGrid,\r\n GenericSelectInput,\r\n} from \"views/Components/Generic\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass TransactionNameBasedFeeReport extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n\r\n this.columns = [\r\n {\r\n Header: \"Transaction Name\",\r\n accessor: \"TxnName\",\r\n },\r\n {\r\n Header: \"Total Fee Amount\",\r\n accessor: \"TotalFeeAmount\",\r\n type: GridColumnType.Money,\r\n },\r\n ];\r\n\r\n this.uniqueClientId = ClientHelper.GetClientRowId();\r\n\r\n this.emptyObject = {};\r\n this.parameterUniqueClientId = {};\r\n\r\n this.sortedFullName = { Member: \"FullName\" };\r\n\r\n this.validateProperties = [\r\n { ToDate: \"End Date\" },\r\n { FromDate: \"Start Date\" },\r\n\t\t{ UniqueClientId: \"Client\" },\r\n ];\r\n\r\n this.state = {\r\n model: {\r\n UniqueClientId: this.uniqueClientId,\r\n },\r\n };\r\n }\r\n\r\n componentDidMount() {\r\n const { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\r\n if (setAppCenterTitle) {\r\n setAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n }\r\n if (setAppLeftTitle) {\r\n setAppLeftTitle(\"Transaction Name Based Fee Report\");\r\n }\r\n }\r\n\r\n ValueChanged = (name, value) => {\r\n this.setState((state) => {\r\n var model = state.model;\r\n model[name] = value;\r\n\r\n return { model };\r\n });\r\n };\r\n\r\n GetParameterUniqueClientId = () => {\r\n const { model } = this.state;\r\n\r\n this.parameterUniqueClientId.UniqueClientId = model.UniqueClientId;\r\n\r\n return this.parameterUniqueClientId;\r\n };\r\n\r\n Search = async () => {\r\n const { model } = this.state;\r\n const { ExecuteApiPost } = this.props;\r\n var result = await ExecuteApiPost(\r\n \"/lmsapi/v1.0/FeeAndCodeBasedTransaction/SearchTransactionCodeBasedFeeReport\",\r\n model,\r\n model,\r\n this.validateProperties\r\n );\r\n\r\n this.setState({ list: result || [] });\r\n };\r\n\r\n Clear = () => {\r\n this.setState({ model: { UniqueClientId: this.uniqueClientId }, list: [] });\r\n };\r\n\r\n render() {\r\n const { Disabled } = this.props;\r\n const { model, list } = this.state;\r\n\t var IsClient = ClientHelper.IsClient();\r\n\r\n return (\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n `${d.UniqueClientId} - ${d.Name}`}\r\n TextValueMember=\"Name\"\r\n Value={model.UniqueClientId}\r\n ValueChanged={this.ValueChanged}\r\n\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\tDisabled={IsClient}\r\n\t\t\t\t\t\t\t\tDefaultIndex={IsClient ? 0 : -1}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\nTransactionNameBasedFeeReport.propTypes = {\r\n setAppLeftTitle: PropTypes.func,\r\n setAppCenterTitle: PropTypes.func,\r\n ExecuteApiPost: PropTypes.func,\r\n Disabled: PropTypes.bool,\r\n ApprovalData: PropTypes.any,\r\n After: PropTypes.any,\r\n};\r\n\r\nexport default TransactionNameBasedFeeReport;\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport { DeleteIcon, EditIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport {\r\n GenericAlert,\r\n GenericGrid,\r\n GenericLabel,\r\n GenericSelectInput,\r\n GenericTextInput,\r\n} from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton.jsx\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport {\r\n ActionCodes,\r\n AddressType,\r\n ClientType,\r\n MenuCodes,\r\n} from \"views/Constants/Constant.js\";\r\n\r\nclass CanadaPostAddressComponent extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n model: {},\r\n isLoading: false,\r\n alert: null,\r\n ProvinceList: [],\r\n CityList: [],\r\n };\r\n\r\n this.ParameterAddressType = { ParameterCode: \"AddressType\" };\r\n this.ParameterAddressTypeIndv = {\r\n ParameterCode: \"AddressType\",\r\n ParameterValue3: \"P\",\r\n };\r\n this.lengthAddress = { maxLength: 280 };\r\n this.lengthZipCode = { maxLength: 40 };\r\n }\r\n\r\n componentDidMount() {\r\n this.LoadCanadaPost();\r\n this.modelUpdate();\r\n }\r\n modelUpdate = () => {\r\n const { addressModel } = this.props;\r\n if (addressModel?.CountryId > 0) {\r\n this.getProvince(addressModel.CountryId);\r\n if (addressModel?.ProvinceId > 0) {\r\n this.getCity(addressModel.ProvinceId);\r\n }\r\n }\r\n };\r\n LoadCanadaPost = () => {\r\n Proxy.POST(\r\n \"/coreapi/v1.0/Parameter/Search\",\r\n {\r\n ParameterCode: \"CanadaPostApiKey\",\r\n ParameterValue: \"CP\",\r\n ParameterDesc: \"\",\r\n },\r\n (responseData) => {\r\n if (!responseData.IsSucceeded) {\r\n console.log(\"Canada Post Api key not fetched !\");\r\n return;\r\n }\r\n if (responseData.Item == null) {\r\n console.log(\"Canada Post Api key not fetched !\");\r\n return;\r\n }\r\n if (responseData.Item[0] == null) {\r\n console.log(\"Canada Post Api key not fetched !\");\r\n return;\r\n }\r\n var apikey = responseData.Item[0].ParameterDesc;\r\n console.log(\"KEY CP \", apikey);\r\n\r\n var url = window.CanadaPostAddressCompleteUrl;\r\n var path = url + apikey;\r\n\r\n var pca;\r\n\r\n var handleChangeCP = this.props.handleChange;\r\n var CanadaPostSubmit = this.SubmitCanadaPostAddressModel;\r\n var CanadaPostRequest = this.SubmitCanadaPostRequest;\r\n\r\n const script = document.createElement(\"script\");\r\n script.src = path;\r\n script.async = false;\r\n document.head.appendChild(script);\r\n script.onload = function () {\r\n pca = window.pca;\r\n if (pca != null) {\r\n var fields = [\r\n {\r\n element: \"street-address\",\r\n field: \"Line1\",\r\n mode: pca.fieldMode.SEARCH,\r\n },\r\n {\r\n element: \"street-address2\",\r\n field: \"Line2\",\r\n mode: pca.fieldMode.POPULATE,\r\n },\r\n {\r\n element: \"postcode\",\r\n field: \"PostalCode\",\r\n mode: pca.fieldMode.SEARCH,\r\n },\r\n ],\r\n options = {\r\n key: apikey,\r\n },\r\n control = new pca.Address(fields, options);\r\n CanadaPostRequest();\r\n\r\n control.listen(\"populate\", function (address) {\r\n var temp = {};\r\n temp.Address1 = address.Line1;\r\n temp.Address2 = address.Line2;\r\n temp.ZipCode = address.PostalCode;\r\n\r\n handleChangeCP(\"Address1\", address.Line1);\r\n handleChangeCP(\"Address2\", address.Line2);\r\n handleChangeCP(\"ZipCode\", address.PostalCode);\r\n\r\n CanadaPostSubmit(address);\r\n });\r\n }\r\n };\r\n },\r\n (e) => {\r\n console.log(\"Canada Post Api key not fetched !\");\r\n }\r\n );\r\n };\r\n SubmitCanadaPostAddressModel = (model) => {\r\n this.setState({ isLoading: true });\r\n Proxy.POST(\r\n \"/coreapi/v1.0/Country/CanadaPost\",\r\n model,\r\n (responseData) => {\r\n if (!responseData.IsSucceeded) {\r\n this.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n return;\r\n }\r\n this.setState({ isLoading: false });\r\n var address = {};\r\n if (responseData.Item != null) {\r\n address.CountryId = responseData.Item.CountryId;\r\n address.ProvinceId = responseData.Item.ProvinceId;\r\n address.CityId = responseData.Item.CityId;\r\n } else {\r\n address.CountryId = 0;\r\n address.ProvinceId = 0;\r\n address.CityId = 0;\r\n }\r\n this.props.handleChange(\"CountryId\", address.CountryId);\r\n this.props.handleChange(\"ProvinceId\", address.ProvinceId);\r\n this.props.handleChange(\"CityId\", address.CityId);\r\n this.modelUpdate();\r\n },\r\n (error) => {\r\n this.setState({ isLoading: false });\r\n this.ShowMessage(\"error\", \"Error\", error);\r\n }\r\n );\r\n };\r\n SubmitCanadaPostRequest = async () => {\r\n const model = { ...this.state.model };\r\n var requestdata = {\r\n UniqueClientId: null,\r\n MenuCode: this.props.MenuCode,\r\n AppCenterTitle: \"CanadaPostAddress\",\r\n AppLeftTitle: \"CanadaPostAddress\",\r\n };\r\n // var result = await this.props.ExecuteApiPost(\"/bankapi/v1.0/Reporting/CanadaPostRequestReportInsert\", requestdata);\r\n Proxy.POST(\r\n \"/bankapi/v1.0/Reporting/CanadaPostRequestReportInsert\",\r\n requestdata,\r\n (responseData) => {\r\n if (responseData.Item != null) {\r\n }\r\n }\r\n );\r\n };\r\n ShowMessage = (type, title, message) => {\r\n // type:-success->warning->info->error\r\n this.setState({\r\n alert: (\r\n this.hideAlert()}\r\n />\r\n ),\r\n });\r\n this.setState({ isLoading: false });\r\n };\r\n hideAlert = () => {\r\n this.setState({\r\n alert: null,\r\n isLoading: false,\r\n });\r\n };\r\n getProvince = (CountryId) => {\r\n Proxy.POST(\r\n \"/coreapi/v1.0/Province/Filter\",\r\n { CountryId: CountryId },\r\n (responseData) => {\r\n if (!responseData.IsSucceeded) {\r\n console.log(responseData.ErrorDescription);\r\n return;\r\n }\r\n if (responseData.Item == null) {\r\n console.log(\"Response Item Null!\");\r\n return;\r\n }\r\n this.setState({ ProvinceList: responseData.Item });\r\n },\r\n (e) => {\r\n console.log(e);\r\n }\r\n );\r\n };\r\n getCity = (ProvinceId) => {\r\n Proxy.POST(\r\n \"/coreapi/v1.0/City/Filter\",\r\n { ProvinceId: ProvinceId },\r\n (responseData) => {\r\n if (!responseData.IsSucceeded) {\r\n console.log(responseData.ErrorDescription);\r\n return;\r\n }\r\n if (responseData.Item == null) {\r\n console.log(\"Response Item Null!\");\r\n return;\r\n }\r\n this.setState({ CityList: responseData.Item });\r\n },\r\n (e) => {\r\n console.log(e);\r\n }\r\n );\r\n };\r\n RenderLeftSide = (model, Disabled) => {\r\n return (\r\n <>\r\n \r\n \r\n\r\n {\r\n this.props.handleChange(name, newValue, data);\r\n this.setState({ ProvinceList: [] }, () =>\r\n this.getProvince(newValue)\r\n );\r\n }}\r\n Disabled={Disabled}\r\n Required={this.props.isCountryOptional == false ? false : true}\r\n IsInvalid={\r\n this.props.isCountryOptional == false\r\n ? false\r\n : this.props.vModel.CountryId\r\n }\r\n />\r\n \r\n );\r\n };\r\n RenderRightSide = (model, Disabled) => {\r\n return (\r\n <>\r\n {model.CountryId > 0 && this.state.ProvinceList.length < 1 ? (\r\n \r\n ) : (\r\n {\r\n this.props.handleChange(name, newValue, data);\r\n this.setState({ CityList: [] }, () => this.getCity(newValue));\r\n }}\r\n Disabled={Disabled}\r\n Required={this.props.isProvinceOptional == false ? false : true}\r\n IsInvalid={\r\n this.props.isProvinceOptional == false\r\n ? false\r\n : this.props.vModel.ProvinceId\r\n }\r\n />\r\n )}\r\n {(model.ProvinceId > 1 && this.state.CityList.length < 1) ||\r\n (model.CountryId > 0 && this.state.ProvinceList.length < 1) ? (\r\n \r\n ) : (\r\n \r\n )}\r\n\r\n \r\n \r\n );\r\n };\r\n render() {\r\n const { Disabled, GridXs, GridCount, addressModel } = this.props;\r\n return (\r\n <>\r\n {this.state.alert}\r\n \r\n\r\n {GridCount == 0 && (\r\n <>\r\n {this.RenderLeftSide(addressModel, Disabled)}\r\n {this.RenderRightSide(addressModel, Disabled)}\r\n \r\n )}\r\n {GridCount == 1 && (\r\n \r\n {this.RenderLeftSide(addressModel, Disabled)}\r\n {this.RenderRightSide(addressModel, Disabled)}\r\n \r\n )}\r\n {GridCount == 2 && (\r\n <>\r\n \r\n {this.RenderLeftSide(addressModel, Disabled)}\r\n \r\n \r\n {this.RenderRightSide(addressModel, Disabled)}\r\n \r\n \r\n )}\r\n \r\n );\r\n }\r\n}\r\n\r\nCanadaPostAddressComponent.propTypes = {\r\n classes: PropTypes.object,\r\n};\r\n\r\nexport default withArtifex(CanadaPostAddressComponent, {});\r\n","import Card from \"components/Card/Card\";\r\nimport CardBody from \"components/Card/CardBody\";\r\nimport GridContainer from \"components/Grid/GridContainer\";\r\nimport GridItem from \"components/Grid/GridItem\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericDateInput, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass UserLogReport extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Modified Date\",\r\n\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Category Name\",\r\n\t\t\t\taccessor: \"CategoryName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Table Name\",\r\n\t\t\t\taccessor: \"TableName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Modified Field\",\r\n\t\t\t\taccessor: \"ColumnName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Original Value\",\r\n\t\t\t\taccessor: \"OriginalValue\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"New Value\",\r\n\t\t\t\taccessor: \"NewValue\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Modified User\",\r\n\t\t\t\taccessor: \"InsertUser\"\r\n\t\t\t}\r\n\t\t\t,\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"CustomerName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Number\",\r\n\t\t\t\taccessor: \"CustomerNumber\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.uniqueClientId = ClientHelper.GetClientRowId();\r\n\r\n\t\tthis.emptyObject = {};\r\n\t\tthis.parameterUniqueClientId = {};\r\n\r\n\t\tthis.sortedFullName = { Member: \"FullName\" };\r\n\r\n\t\tthis.validateProperties = [{ \"UserId\": \"User\" }];\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tUniqueClientId: this.uniqueClientId\r\n\t\t\t}\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"User Log Report\");\r\n\t\t}\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tGetParameterUniqueClientId = () => {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tthis.parameterUniqueClientId.UniqueClientId = model.UniqueClientId;\r\n\r\n\t\treturn this.parameterUniqueClientId;\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/AuditLogView/Search\", model, model, this.validateProperties);\r\n\r\n\t\tthis.setState({ list: result || [] });\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: { UniqueClientId: this.uniqueClientId }, list: [] });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, list } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{/* */}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{/* */}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nUserLogReport.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default UserLogReport;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { DeleteIcon, DownloadIcon, EditIcon } from \"core/Icons\";\r\nimport moment from \"moment\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ReactTable from \"react-table\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericExpansionPanel, GenericLabel, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\n\r\nconst initialState = {\r\n\tmodel: {\r\n\t\tFileTypeId: null,\r\n\t\tDescription: null,\r\n\t\tVersionNumber: null,\r\n\t},\r\n\tisBrowse: false,\r\n\tagreementList: [],\r\n\tisLoading: false,\r\n\tReadOnly: false,\r\n\tvModel: {}\r\n};\r\nclass AgreementTemplate extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.SetFile = this.SetFile.bind(this);\r\n\t\tthis.UploadClick = this.UploadClick.bind(this);\r\n\t\tthis.FileSelect = this.FileSelect.bind(this);\r\n\t\tthis.fileInputRef = React.createRef();\r\n\t\tthis.UpdateFile = this.UpdateFile.bind(this);\r\n\t\tthis.FileTypeParameterCode = { ParameterCode: \"LOSFileType\" };\r\n\t\tthis.state = initialState;\r\n\t\tthis.maxLength20 = { maxLength: 20 };\r\n\t\tthis.marginLeft2 = { marginLeft: 2 };\r\n\t\tthis.ColumnsData = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t this.setState({ model: { ...row.original }, fileModel: row.original.File })} />\r\n\t\t\t\t\t\t this.showQuestionMessage(\"Delete this record !\", row.original)} />\r\n\t\t\t\t\t\t this.DownloadModel(row.original)} />\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\twidth: 100\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Loan Type\",\r\n\t\t\t\taccessor: \"LoanType.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Description\",\r\n\t\t\t\taccessor: \"Description\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date\",\r\n\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\tCell: row => {\r\n\t\t\t\t\treturn
{typeof row.value === \"number\" ? row.value : typeof row.value === \"boolean\" ? row.value === true ? \"Yes\" : \"No\" : moment(row.value, moment.ISO_8601, true).isValid() ? Formatter.FormatDateTime(row.value) : row.value}
;\r\n\t\t\t\t},\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Version Number\",\r\n\t\t\t\taccessor: \"VersionNumber\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tif (this.props.setAppCenterTitle) {\r\n\t\t\tthis.props.setAppLeftTitle(\"Agreement Template\");\r\n\t\t}\r\n\t\tif (this.props.setAppCenterTitle) {\r\n\t\t\tthis.props.setAppCenterTitle(\"LOAN ORIGINATOR SYSTEM\");\r\n\t\t}\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\r\n\t}\r\n\r\n\tUploadClick() {\r\n\t\tthis.fileInputRef.current.click();\r\n\t}\r\n\tshowQuestionMessage = (message, model) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} OnConfirm={() => this.DeleteModel(model)} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\r\n\tFileSelect(e) {\r\n\t\te.preventDefault();\r\n\t\tvar file = e.target.files[0];\r\n\t\tfile.FileName = file.name;\r\n\t\tif (!file) return;\r\n\t\tthis.setState({ fileModel: file, isBrowse: true });\r\n\t}\r\n\r\n\tSetFile(file, documentModel) {\r\n\t\tthis.setState({\r\n\t\t\tfileModel: { file, documentModel }\r\n\t\t});\r\n\t}\r\n\r\n\tHandleClickClearOk = () => {\r\n\t\tthis.HideAlert();\r\n\t\tthis.setState({ model: {} });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.ShowConfirmMessage(\"warning\", \"Warning\", \"This will erase the information you entered on the screen. Are you sure you want to quit this Agreement Template ?\", () => this.HandleClickClearOk());\r\n\t}\r\n\r\n\tErrorCallback = (error) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"Error\", \"An error occurred during the api visit\" + error);\r\n\t}\r\n\tShowMessageAndRefresh = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlertAndRefresh()} />\r\n\t\t});\r\n\t}\r\n\thideAlertAndRefresh = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t\twindow.location.reload();\r\n\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: null })} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\r\n\tHideAlert = () => {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\tRefreshToolBar = () => {\r\n\t\tthis.setState({ LimitToken: !this.state.LimitToken });\r\n\t}\r\n\r\n\r\n\tDownloadModel = (index) => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst { showMessage } = this.props;\r\n\t\tProxy.FileDownloadWithGenericResponse(\r\n\t\t\t\"/coreapi/v1.0/File/DownloadFileFromBinary\",\r\n\t\t\tindex.File.FileName,\r\n\t\t\tindex.File.FileExtension.ParameterDesc,\r\n\t\t\t{\r\n\t\t\t\t\"FileId\": index.FileId\r\n\t\t\t},\r\n\t\t\t() => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tDeleteModel = (model) => {\r\n\t\tif (model == null || model.Id == null || model.Id == 0) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", \"Template Must Be Selected For Delete Operation\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/losapi/v1.0/AgreementTemplate/Delete\",\r\n\t\t\t{ Id: model.Id },\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.ShowMessageAndRefresh(\"success\", \"Success\", \"Template Deleted\");\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/losapi/v1.0/AgreementTemplate/Search\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.setState({ agreementList: responseData.Item || [], isLoading: false });\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ agreementList: [], isLoading: false });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tSubmit = () => {\r\n\t\tif (!this.ValidateSubmit()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/losapi/v1.0/AgreementTemplate/InsertUpdate\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.setState({ model: responseData.Item });\r\n\t\t\t\t\tif (this.state.isBrowse == true) {\r\n\t\t\t\t\t\tthis.UpdateFile(responseData.Item.Id);\r\n\t\t\t\t\t\tthis.setState({ isBrowse: false });\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tthis.ShowMessageAndRefresh(\"success\", \"Success\", \"Operation Successfully Completed\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tUpdateFile = (documentId) => {\r\n\t\tvar formData = new FormData();\r\n\t\tformData.append(\"file\", this.state.fileModel, String(this.state.fileModel.FileName));\r\n\t\tformData.append(\"documentId\", String(documentId));\r\n\t\tProxy.FileUpload(\r\n\t\t\t\"/losapi/v1.0/AgreementTemplate/UploadFile\",\r\n\t\t\tformData,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.setState({ model: responseData.Item });\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessageAndRefresh(\"success\", \"Success\", \"Operation Successfully Completed\");\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t}\r\n\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tValidateSubmit = () => {\r\n\t\tvar { model, vModel, fileModel } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errors = [];\r\n\r\n\t\tif (!model.LoanTypeId) {\r\n\t\t\terrors.push(\"Loan type cannot be empty.\");\r\n\t\t\tvModel.LoanTypeId = true;\r\n\t\t} else {\r\n\t\t\tvModel.LoanTypeId = false;\r\n\t\t}\r\n\r\n\t\tif (fileModel == null\r\n\t\t\t|| fileModel.FileName == null) {\r\n\t\t\terrors.push(\"File cannot be empty.\");\r\n\t\t}\r\n\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\trender() {\r\n\t\tvar FileNameValue = \"\";\r\n\t\tif (this.state.fileModel) {\r\n\t\t\tFileNameValue = this.state.fileModel.FileName;\r\n\t\t}\r\n\t\telse if (this.state.documentModel) {\r\n\t\t\tFileNameValue = this.state.documentModel.FileName;\r\n\t\t}\r\n\r\n\t\tconst { ForInsert, Disabled } = this.props;\r\n\t\tconst { vModel } = this.state;\r\n\t\tconst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t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t 0} */\r\n\t\t\t\t\t\t\t\t\t\tminRows={2}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\nAgreementTemplate.propTypes = {\r\n\ttabList: PropTypes.array,\r\n\tclasses: PropTypes.object.isRequired,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tApplicantSaved: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(AgreementTemplate, {});","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericRadioInput } from \"views/Components/Generic\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\nimport ApplicantDefinition from \"views/LOS/ApplicantDefinition/ApplicantDefinition\";\r\nimport Select from \"react-select\";\r\nimport { Proxy } from \"core\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nclass UncompletedApplicantList extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columns = [\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date\",\r\n\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"FullName\",\r\n\t\t\t\taccessor: \"FullName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Unique ID\",\r\n\t\t\t\taccessor: \"ApplicantUniqueId\"\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"ID Verification Status\",\r\n\t\t\t\taccessor: \"IdVerification\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Internal Blacklist Status\",\r\n\t\t\t\taccessor: \"InternalBlacklist\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Watch List Verification Status\",\r\n\t\t\t\taccessor: \"WatchListVerification\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Trans Union Id Verification Status\",\r\n\t\t\t\taccessor: \"TransUnionIdVerification\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Credit History Verification Status\",\r\n\t\t\t\taccessor: \"CreditHistoryVerification\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"E-Mail\",\r\n\t\t\t\taccessor: \"Email\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Loan Type\",\r\n\t\t\t\taccessor: \"ApplicantAppliedFor.LoanType.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sale Channel\",\r\n\t\t\t\taccessor: \"ApplicantAppliedFor.SaleChannel.ParameterDesc\"\r\n\t\t\t}\r\n\t\t];\r\n\t\tthis.appListTable = React.createRef();\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tFromDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\t\tToDate: DateHelper.GetLocalDateAsUtc()\r\n\t\t\t},\r\n\t\t\tisApplicantDetailDialogOpen: false,\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"LOAN ORIGINATOR SYSTEM\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Incomplete Applicant List\");\r\n\t\t}\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\tif (name == \"FromDate\") {\r\n\t\t\t\tmodel[\"ToDate\"] = undefined;\r\n\t\t\t}\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tconst { list } = this.state;\r\n\r\n\t\tthis.setState({ model: list[index], selected: index, isApplicantDetailDialogOpen: true });\r\n\t}\r\n\r\n\tApplicantDetaiDialogClose = () => {\r\n\t\tthis.setState({ isApplicantDetailDialogOpen: false });\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/losapi/v1.0/Applicant/GetUncompleteList\", model);\r\n\r\n\t\tthis.setState({ list: result || [] });\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {\r\n\t\t\t\tFromDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\t\tToDate: DateHelper.GetLocalDateAsUtc()\r\n\t\t\t}, list: [], selected: null\r\n\t\t});\r\n\t}\r\n\r\n\tExportClick = () => {\r\n\t\tvar appListColumns = [];\r\n\t\tthis.appListTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.show == undefined || c.show) {\r\n\t\t\t\tappListColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: appListColumns, ExportSelectedColumns: appListColumns });\r\n\t}\r\n\r\n\tValueChangedForReportType = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\t\tconst temp = { ...this.state.model };\r\n\r\n\r\n\t\tvar jsonColList = [];\r\n\r\n\t\tvar appListColumns = {};\r\n\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\tappListColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t});\r\n\t\tjsonColList.push(appListColumns);\r\n\r\n\t\tvar mytitle = \"Incomplete Applicant List\";\r\n\r\n\t\ttemp.jsonFile = {\r\n\t\t\tcolmns: jsonColList,\r\n\t\t\tformat: this.state.ExportReportType,\r\n\t\t\ttitle: mytitle\r\n\t\t};\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tvar request = {\r\n\t\t\tFromDate: temp.FromDate,\r\n\t\t\tToDate: temp.ToDate,\r\n\t\t\tjsonFile: temp.jsonFile\r\n\t\t};\r\n\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\"/losapi/v1.0/Applicant/GetUncompleteListExportDownload\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t},\r\n\t\t\tthis.props.showMessage\r\n\t\t);\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, list, selected, isApplicantDetailDialogOpen,isLoading } = this.state;\r\n\t\tconst { history, Disabled, IsPopUp, MenuCode, ExecuteApiPost, ExecuteApiFileDownloadWithGenericResponse } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nUncompletedApplicantList.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tIsPopUp: PropTypes.bool,\r\n\tApplicantModel: PropTypes.object,\r\n\tApprovalDisabled: PropTypes.bool,\r\n\tApplicantDefinitionDiologOpenOrClose: PropTypes.func,\r\n\tHandleChange: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n};\r\n\r\nexport default withArtifex(UncompletedApplicantList, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericDateInput, GenericExpansionPanel, GenericGrid } from \"views/Components/Generic\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass ApplicationBorrowerReview extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Applicant Name\",\r\n\t\t\t\taccessor: \"ApplicantFullName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Application Number\",\r\n\t\t\t\taccessor: \"ApplicationNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Review Period\",\r\n\t\t\t\taccessor: \"ApplicationBorrowerReview.ReviewPeriod.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Review Type\",\r\n\t\t\t\taccessor: \"ApplicationBorrowerReview.ReviewType.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Review Alert Report\",\r\n\t\t\t\taccessor: \"ApplicationBorrowerReview.ReviewAlertTime.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Review Alert Notification to Borrower\",\r\n\t\t\t\taccessor: \"ApplicationBorrowerReview.ReviewAlertNotification.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Review Result Notification to Borrower\",\r\n\t\t\t\taccessor: \"ApplicationBorrowerReview.ReviewResultNotification.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Previous Review Date\",\r\n\t\t\t\taccessor: \"ApplicationBorrowerReview.PreviousReviewDate\",\r\n\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Next Review Date\",\r\n\t\t\t\taccessor: \"ApplicationBorrowerReview.NextReviewDate\",\r\n\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Review Result\",\r\n\t\t\t\taccessor: \"ApplicationBorrowerReview.ReviewStatus.ParameterDesc\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {}\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"LOAN ORIGINATOR SYSTEM\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Review Alert\");\r\n\t\t}\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tconst { list } = this.state;\r\n\r\n\t\tthis.setState({ model: list[index], selected: index });\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\t\tvar { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/losapi/v1.0/ApplicationBorrowerReview/Search\", model);\r\n\r\n\t\tthis.setState({ model, list: result || [] });\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, list: [], selected: null });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, list, selected } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nApplicationBorrowerReview.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default ApplicationBorrowerReview;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport { TaskPool } from \"core/TaskPool\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport \"react-autocomplete-input/dist/bundle.css\";\r\nimport \"react-draft-wysiwyg/dist/react-draft-wysiwyg.css\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericExpansionPanel, GenericGrid, GenericSelectInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\n\r\nconst initialState = {\r\n\tmodel: {\r\n\t\tLoanTypeId: null,\r\n\t\tLoanPurposeId: null,\r\n\t\tLoanResultLetterTypeId: null\r\n\t},\r\n\tvModel: {},\r\n\tapplicantModel: {},\r\n\tresultLetterMapList: [],\r\n\tapplicationList: [],\r\n\tisBrowse: false,\r\n\tisLoading: false,\r\n\tisLetterTempActive: false\r\n};\r\nconst url = \"/losapi/v1.0/ApplicationResultLetter/\";\r\n\r\nclass ApplicationResultLetterApplicantMap extends Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = initialState;\r\n\t\tthis.ParamLOSLoanType = {\r\n\t\t\tParameterCode: \"LOSLoanType\"\r\n\t\t};\r\n\t\tthis.ParamLOSLoanPurpose = {\r\n\t\t\tParameterCode: \"LOSLoanPurpose\"\r\n\t\t};\r\n\t\tthis.ParamLOSResultLetterType = {\r\n\t\t\tParameterCode: \"LOSResultLetterType\"\r\n\t\t};\r\n\t\tthis.loadTaskPool = new TaskPool(this.handleLoadTaskPoolAppend, this.handleLoadTaskPoolCompleted);\r\n\r\n\t\tthis.renderItemApplication = {};\r\n\r\n\t\tthis.sortedFullName = { Member: \"FullName\" };\r\n\t}\r\n\r\n\t/**Begin Life cycle Methods */\r\n\tcomponentDidMount() {\r\n\t\tthis\r\n\t\t\t.props\r\n\t\t\t.setAppLeftTitle(\"Application Result Letter\");\r\n\t\tthis\r\n\t\t\t.props\r\n\t\t\t.setAppCenterTitle(\"LOAN ORIGINATOR SYSTEM\");\r\n\t}\r\n\r\n\t/**End life cycle Methods */\r\n\r\n\t/* Begin Standard Methods */\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: null })}\r\n\t\t\t\tOnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\tShowMessageAndRefresh = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlertAndRefresh()} />\r\n\t\t});\r\n\t}\r\n\thideAlertAndRefresh = () => {\r\n\t\tthis.setState({ alert: null, isLoading: false, state: initialState });\r\n\t\twindow\r\n\t\t\t.location\r\n\t\t\t.reload();\r\n\r\n\t}\r\n\tHideAlert = () => {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\t/* End Standard Methods */\r\n\r\n\t/** BEGIN Actions */\r\n\tOperationCheck = () => {\r\n\t\tvar ErrorList = [];\r\n\t\tconst data = this.state.model;\r\n\t\tconst { vModel } = this.state;\r\n\t\tif (data == null) {\r\n\t\t\tErrorList.push(\"Letter parameters not defined.\");\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please Fill Required Fields\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (data.ApplicationResultLetterTemplateId == null || data.ApplicationResultLetterTemplateId == 0) {\r\n\t\t\tvModel.ApplicationResultLetterTemplateId = true;\r\n\t\t\tErrorList.push(\"Letter template must be selected.\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvModel.ApplicationResultLetterTemplateId = false;\r\n\t\t}\r\n\t\tif (data.ApplicantId == null || data.ApplicantId == 0) {\r\n\t\t\tvModel.ApplicantId = true;\r\n\t\t\tErrorList.push(\"Applicant must be selected.\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvModel.ApplicantId = false;\r\n\t\t}\r\n\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please Fill Required Fields\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tthis.setState({ vModel });\r\n\t\tthis.ActionSubmit();\r\n\r\n\t}\r\n\r\n\tActionSubmit = async () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\r\n\t\tawait ExecuteApiPost(\"/losapi/v1.0/ApplicationResultLetter/SaveResultLetter\", model, null, null, null, [this.ActionClear, this.ActionSearch], true);\r\n\r\n\t}\r\n\tActionSearch = () => {\r\n\t\tthis.HideAlert();\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst data = this.state.model;\r\n\t\tthis.Post(data, \"SearchResultLetter\");\r\n\r\n\t}\r\n\tActionDelete = () => {\r\n\t\tvar ErrorList = [];\r\n\t\tthis.HideAlert();\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst data = this.state.model;\r\n\t\tif (data == null || data.Id == null || data.Id == 0) {\r\n\t\t\tErrorList.push(\"Any letter template not selected.\");\r\n\t\t}\r\n\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please select a record from letter templates list.\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.Post(data, \"DeleteResultLetter\");\r\n\r\n\t}\r\n\tActionClear = (actionSearch) => {\r\n\t\tif (!actionSearch) {\r\n\t\t\tthis.setState({ model: {}, resultLetterMapList: [], alert: null, isLoading: false, state: initialState });\r\n\t\t} else {\r\n\t\t\tthis.setState({ model: {}, resultLetterMapList: [], alert: null, isLoading: false, state: initialState }, () => { this.ActionSearch(); });\r\n\t\t}\r\n\t}\r\n\tPost = (model, methodName) => {\r\n\t\tthis.setState({ alert: null });\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST((url + methodName), model, (responseData) => {\r\n\t\t\tswitch (methodName) {\r\n\t\t\t\tcase \"SearchResultLetter\":\r\n\t\t\t\t\tif (responseData != null && responseData.Item != null) {\r\n\t\t\t\t\t\tthis.setState({ resultLetterMapList: responseData.Item, isLoading: false });\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase \"SearchLetterTemp\":\r\n\t\t\t\t\tif (responseData != null && responseData.Item != null && responseData.Item.length > 0) {\r\n\t\t\t\t\t\tthis.setState({ letterTempList: responseData.Item, isLoading: false });\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase \"DeleteResultLetter\":\r\n\t\t\t\t\tif (responseData != null && responseData.Item != null) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Letter Template Deleted\");\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.setState({ alert: null, isLoading: false, state: initialState }, () => { this.ActionClear(true); });\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tif (responseData != null && responseData.Item != null) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Result Letter Saved\");\r\n\t\t\t\t\t\tthis.setState({ model: {}, resultLetterTempList: [] });\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.setState({ alert: null, isLoading: false, state: initialState });\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t}, this.ErrorCallback);\r\n\t}\r\n\r\n\tErrorCallback = (error) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t}\r\n\t/* END Actions */\r\n\r\n\t/** BEGIN Methods */\r\n\tgetResultLetterTempList = () => {\r\n\t\tthis.HideAlert();\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst data = this.state.model;\r\n\t\tthis.Post(data, \"SearchLetterTemp\");\r\n\r\n\t}\r\n\tHandleGetApplicant = (id) => {\r\n\t\tthis\r\n\t\t\t.loadTaskPool\r\n\t\t\t.AppendTask(Proxy.POST(\"/losapi/v1.0/Applicant/Search\", {\r\n\t\t\t\tId: id\r\n\t\t\t}, responseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item && responseData.Item.length > 0) {\r\n\t\t\t\t\tvar { applicantModel } = this.state;\r\n\r\n\t\t\t\t\tObject.assign(applicantModel, responseData.Item[0]);\r\n\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tapplicantModel\r\n\t\t\t\t\t}, () => this.GetApplicationList(responseData.Item[0].Id));\r\n\r\n\t\t\t\t}\r\n\t\t\t}, error => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}));\r\n\t}\r\n\tGetApplicationList(applicantId) {\r\n\t\tthis\r\n\t\t\t.loadTaskPool\r\n\t\t\t.AppendTask(Proxy.POST(\"/losapi/v1.0/Application/Search\", {\r\n\t\t\t\tApplicantId: applicantId\r\n\t\t\t}, responseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tapplicationList: responseData.Item || []\r\n\t\t\t\t});\r\n\t\t\t}, error => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}));\r\n\t}\r\n\tHandleGetApplication = (id) => {\r\n\t\tlet { model } = this.state;\r\n\t\tthis\r\n\t\t\t.loadTaskPool\r\n\t\t\t.AppendTask(Proxy.POST(\"/losapi/v1.0/Application/GetById\", {\r\n\t\t\t\tId: id\r\n\t\t\t}, responseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tmodel.LoanTypeId = responseData.Item.Application.LoanTypeId;\r\n\t\t\t\t\tmodel.LoanPurposeId = responseData.Item.Application.LoanPurposeId;\r\n\t\t\t\t\tmodel.ApplicationId = responseData.Item.Application.Id;\r\n\r\n\t\t\t\t\tthis.setState({ model: model });\r\n\t\t\t\t}\r\n\t\t\t}, this.ErrorCallback));\r\n\t}\r\n\r\n\t/* END Methods */\r\n\r\n\t/** Begin Events */\r\n\tHandleChange = (name, newValue, data) => {\r\n\r\n\t\tconst model = {\r\n\t\t\t...this.state.model\r\n\t\t};\r\n\r\n\t\tif (name == \"ApplicantId\") {\r\n\t\t\tthis.setState({\r\n\t\t\t\tmodel\r\n\t\t\t}, () => {\r\n\t\t\t\tthis.HandleGetApplicant(newValue);\r\n\t\t\t});\r\n\t\t}\r\n\t\tif (name == \"ApplicationId\") {\r\n\t\t\tthis.HandleGetApplication(newValue);\r\n\t\t}\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.state.isLetterTempActive = !(model.LoanTypeId == null || model.LoanPurposeId == null || model.LoanResultLetterTypeId == null);\r\n\t\tthis.setState({ model });\r\n\t\t(this.state.isLetterTempActive && (this.state.letterTempList == null || this.state.letterTempList.length == 0)) && this.getResultLetterTempList();\r\n\t}\r\n\tRowSelected = (index) => {\r\n\t\tconst list = this.state.resultLetterMapList;\r\n\t\tthis.setState({ model: list[index] });\r\n\t}\r\n\thandleLoadTaskPoolCompleted = () => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\thandleLoadTaskPoolAppend = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t}\r\n\r\n\tRenderItemApplication = (d) => {\r\n\t\tthis.renderItemApplication = `${d.ApplicationNumber} - ${d.LoanType.ParameterDesc}`;\r\n\t\treturn this.renderItemApplication;\r\n\t}\r\n\r\n\t/** End Events */\r\n\r\n\trender() {\r\n\t\tconst { model, isLetterTempActive, letterTempList, applicationList, alert, isLoading, vModel } = this.state;\r\n\r\n\t\tvar ForInsert = !model.Id || model.Id <= 0;\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t{alert}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\nApplicationResultLetterApplicantMap.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(ApplicationResultLetterApplicantMap, {});\r\n","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport HtmlEditor from \"core/HtmlEditorHelper\";\r\nimport { EditorState } from \"draft-js\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport \"react-autocomplete-input/dist/bundle.css\";\r\nimport { renderToString } from \"react-dom/server\";\r\nimport { Editor } from \"react-draft-wysiwyg\";\r\nimport \"react-draft-wysiwyg/dist/react-draft-wysiwyg.css\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericColorInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport ResultLetterTemplatePreview from \"views/LOS/ApplicationResultLetter/ResultLetterTemplatePreview\";\r\n\r\nconst url = \"/losapi/v1.0/ApplicationResultLetter/\";\r\n\r\nclass ApplicationResultLetterTemplate extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\talert: null,\r\n\t\t\tmodel: { BackgroundColor: \"#fff\" },\r\n\t\t\tvModel: {},\r\n\t\t\tresultLetterTempList: [],\r\n\t\t\tisBrowse: false,\r\n\t\t\tisLoading: false,\r\n\t\t\teditorModelEmail: EditorState.createEmpty(),\r\n\t\t\teditorPropertyList: [],\r\n\t\t\tFile: {},\r\n\t\t\tisTempPreviewDialogOpen: false,\r\n\t\t\trowIndex: -1\r\n\t\t};\r\n\t\t// preserve the initial state in a new object\r\n\t\tthis.baseState = this.state;\r\n\r\n\t\tthis.ParamLOSLoanType = {\r\n\t\t\tParameterCode: \"LOSLoanType\"\r\n\t\t};\r\n\t\tthis.ParamLOSLoanPurpose = {\r\n\t\t\tParameterCode: \"LOSLoanPurpose\"\r\n\t\t};\r\n\t\tthis.ParamLOSResultLetterType = {\r\n\t\t\tParameterCode: \"LOSResultLetterType\"\r\n\t\t};\r\n\t\tthis.fileInputRef1 = React.createRef();\r\n\t\tthis.fileInputRef2 = React.createRef();\r\n\t\tthis.sortedParameterDesc = { Member: \"ParameterDesc\" };\r\n\t\tthis.LoanPurposeParameterCode = {\r\n\t\t\tParameterCode: \"LOSLoanPurpose\"\r\n\t\t};\r\n\t}\r\n\r\n\t/**Begin Life cycle Methods */\r\n\tcomponentDidMount() {\r\n\t\tthis\r\n\t\t\t.props\r\n\t\t\t.setAppLeftTitle(\"Application Result Letter Template Definition\");\r\n\t\tthis\r\n\t\t\t.props\r\n\t\t\t.setAppCenterTitle(\"LOAN ORIGINATOR SYSTEM\");\r\n\t\tthis.setState({\r\n\t\t\teditorModelEmail: HtmlEditor.EmptyEditorContent()\r\n\t\t});\r\n\t\t((this.state.editorPropertyList == null || this.state.editorPropertyList.length == 0) && this.GetDataModelPropertyList());\r\n\t}\r\n\r\n\t/**End life cycle Methods */\r\n\r\n\t/* Begin Standard Methods */\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: null })}\r\n\t\t\t\tOnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageAndRefresh = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlertAndRefresh()} />\r\n\t\t});\r\n\t}\r\n\r\n\thideAlertAndRefresh = () => {\r\n\t\tthis.setState(function (state) {\r\n\t\t\treturn this.baseState;\r\n\t\t});\r\n\t\twindow\r\n\t\t\t.location\r\n\t\t\t.reload();\r\n\r\n\t}\r\n\r\n\tHideAlert = () => {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\tIsStringNullOrEmptyOrWhiteSpace = (value) => {\r\n\r\n\t\treturn typeof value !== \"string\" || value == null || value.trim().length == 0;\r\n\t}\r\n\r\n\t/* End Standard Methods */\r\n\r\n\t/** BEGIN Actions */\r\n\tOperationCheck = () => {\r\n\t\tvar ErrorList = [];\r\n\t\tconst data = this.state.model;\r\n\t\tconst { vModel } = this.state;\r\n\t\tif (data == null) {\r\n\t\t\tErrorList.push(\"Letter parameters not defined.\");\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please Fill Required Fields\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (data.LoanTypeId == null || data.LoanTypeId == 0) {\r\n\t\t\tvModel.LoanTypeId = true;\r\n\t\t\tErrorList.push(\"Loan type must be selected.\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvModel.LoanTypeId = false;\r\n\t\t}\r\n\t\tif (data.LoanPurposeId == null || data.LoanPurposeId == 0) {\r\n\t\t\tvModel.LoanPurposeId = true;\r\n\t\t\tErrorList.push(\"Purpose of the loan must be selected.\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvModel.LoanPurposeId = false;\r\n\t\t}\r\n\t\tif (data.LoanResultLetterTypeId == null || data.LoanResultLetterTypeId == 0) {\r\n\t\t\tvModel.LoanResultLetterTypeId = true;\r\n\t\t\tErrorList.push(\"Letter for must be selected.\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvModel.LoanResultLetterTypeId = false;\r\n\t\t}\r\n\t\tif (data.Description == null || data.Description == \"\") {\r\n\t\t\tvModel.Description = true;\r\n\t\t\tErrorList.push(\"Description must be entered.\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvModel.Description = true;\r\n\t\t}\r\n\t\tvar contentText = HtmlEditor.EditorContentToHtml(this.state.editorModelEmail);\r\n\t\tif (this.IsStringNullOrEmptyOrWhiteSpace(contentText)) {\r\n\t\t\tErrorList.push(\"Letter message must be defined.\");\r\n\t\t}\r\n\r\n\t\tvar letterContent = renderToString(this.GetHTMLLetterContent(false));\r\n\t\tif (letterContent == null) {\r\n\t\t\tErrorList.push(\"Letter content must be defined.\");\r\n\t\t}\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please Fill Required Fields\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tthis.state.model.ContentText = contentText;\r\n\t\tthis.state.model.LoanResultLetterContent = letterContent;\r\n\t\tthis.setState({ vModel });\r\n\t\tthis.ActionSubmit();\r\n\t}\r\n\r\n\tActionSubmit = () => {\r\n\t\tthis.HideAlert();\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst model = this.state.model;\r\n\t\tthis.Post(model, \"SaveLetterTemp\");\r\n\t}\r\n\r\n\tActionSearch = () => {\r\n\t\t//this.HideAlert();\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst data = this.state.model;\r\n\t\tthis.Post(data, \"SearchLetterTemp\");\r\n\t}\r\n\r\n\tActionDelete = () => {\r\n\t\tvar ErrorList = [];\r\n\t\tthis.HideAlert();\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst data = this.state.model;\r\n\t\tif (data == null || data.Id == null || data.Id == 0) {\r\n\t\t\tErrorList.push(\"Any letter template not selected.\");\r\n\t\t}\r\n\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please Select A Record From Letter Templates List\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.Post(data, \"DeleteLetterTemp\");\r\n\t}\r\n\r\n\tActionClear = () => {\r\n\t\tlet model = {};\r\n\t\tmodel.BackgroundColor = \"#FFFFFF\";\r\n\t\tthis.setState({\r\n\t\t\tmodel: model,\r\n\t\t\tresultLetterTempList: [],\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t\teditorModelEmail: HtmlEditor.EmptyEditorContent()\r\n\t\t});\r\n\t\tthis.setState(function (state) {\r\n\t\t\treturn this.baseState;\r\n\t\t});\r\n\t\tthis.setState({ model, vModel: {} });\r\n\t}\r\n\r\n\tGetDataModelPropertyList = () => {\r\n\t\tthis.HideAlert();\r\n\t\tthis.Post(this.state.model, \"GetDataModelPropertyList\");\r\n\t}\r\n\r\n\tPost = (model, methodName) => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST((url + methodName), model, (responseData) => {\r\n\t\t\tswitch (methodName) {\r\n\t\t\t\tcase \"SearchLetterTemp\":\r\n\t\t\t\t\tif (responseData != null && responseData.Item != null && responseData.Item.length > 0) {\r\n\t\t\t\t\t\tthis.setState({ resultLetterTempList: responseData.Item, isLoading: false });\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tthis.setState({ alert: null, isLoading: false });\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase \"DeleteLetterTemp\":\r\n\t\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Letter Template Deleted\");\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.setState(function (state) {\r\n\t\t\t\t\t\treturn this.baseState;\r\n\t\t\t\t\t});\r\n\t\t\t\t\tthis.setState({ vModel: {} });\r\n\t\t\t\t\tthis.ActionSearch();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase \"GetDataModelPropertyList\":\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis\r\n\t\t\t\t\t\t\t.props\r\n\t\t\t\t\t\t\t.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\tthis.setState({ alert: null, isLoading: false });\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData != null && responseData.Item != null) {\r\n\t\t\t\t\t\tvar temp = responseData\r\n\t\t\t\t\t\t\t.Item\r\n\t\t\t\t\t\t\t.map(x => {\r\n\t\t\t\t\t\t\t\treturn { text: x.PropertyDescription, value: x.PropertyName };\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\tthis.setState({ editorPropertyList: temp });\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.setState({ editorPropertyList: [] });\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.setState({ alert: null, isLoading: false });\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tif (responseData != null && responseData.Item != null) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Letter Template Saved\");\r\n\t\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\t\tmodel: {},\r\n\t\t\t\t\t\t\tvModel: {},\r\n\t\t\t\t\t\t\tresultLetterTempList: [],\r\n\t\t\t\t\t\t\teditorModelEmail: HtmlEditor.EmptyEditorContent(),\r\n\t\t\t\t\t\t\tisLoading: false\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\tthis.ActionSearch();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.setState(function (state) {\r\n\t\t\t\t\t\t\treturn this.baseState;\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t}, this.ErrorCallback);\r\n\t}\r\n\r\n\tErrorCallback = (error) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t}\r\n\t/* END Actions */\r\n\r\n\t/** Begin Events */\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = {\r\n\t\t\t...this.state.model\r\n\t\t};\r\n\r\n\t\tmodel[name] = newValue;\r\n\t\t((this.state.editorPropertyList == null || this.state.editorPropertyList.length == 0) && this.GetDataModelPropertyList());\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tconst list = this.state.resultLetterTempList;\r\n\t\tthis.setState({\r\n\t\t\tmodel: list[index],\r\n\t\t\teditorModelEmail: HtmlEditor.HtmlToEditorContent(list[index].ContentText),\r\n\t\t\trowIndex: index\r\n\t\t});\r\n\t}\r\n\r\n\t/** End Events */\r\n\r\n\t/**Begin Editor Methods */\r\n\tEditorStateChangeEmail = (obj) => {\r\n\t\tthis.setState({ editorModelEmail: obj });\r\n\t\tHtmlEditor.EditorContentToText(this.state.editorModelEmail);\r\n\t}\r\n\r\n\t/**End Editor Methods */\r\n\t/**FILE Methods */\r\n\tFileSelect = (e, name) => {\r\n\t\te.preventDefault();\r\n\r\n\t\tvar file = e.target.files[0];\r\n\t\tif (!file) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar HandleChageTemp = this.HandleChange;\r\n\t\tvar model = this.state.model;\r\n\t\tvar reader = new FileReader();\r\n\t\treader.readAsDataURL(file);\r\n\t\treader.onloadend = function () {\r\n\t\t\tvar base64 = reader.result;\r\n\t\t\tHandleChageTemp(name.concat(\"Name\"), file.name);\r\n\t\t\tHandleChageTemp(name, base64);\r\n\t\t};\r\n\t\treader.onerror = function (error) {\r\n\t\t\tconsole.log(\"File Error: \", error);\r\n\t\t};\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tGetHTMLLetterContent = (isPreview = false) => {\r\n\t\tconst model = this.state.model;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{model.LogoImage != null ? \"\" : ''}\r\n\t\t\t\t\t\t{model.HeaderImage != null ? \"\" : ''}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t

{isPreview ? HtmlEditor.EditorContentToText(this.state.editorModelEmail) : HtmlEditor.EditorContentToHtml(this.state.editorModelEmail)}

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n\r\n\tGetFileBase64 = (file, callback) => {\r\n\t\tvar reader = new FileReader();\r\n\t\treader.readAsDataURL(file);\r\n\t\treader.onload = () => callback(reader.result);\r\n\t\treader.onerror = error => { };\r\n\t};\r\n\r\n\tImageUploadCallback = file => new Promise(\r\n\t\t(resolve, reject) => this.GetFileBase64(\r\n\t\t\tfile,\r\n\t\t\tdata => resolve({ data: { link: data } })\r\n\t\t)\r\n\t);\r\n\r\n\t/**End File Methods */\r\n\r\n\trender() {\r\n\t\tconst { model, alert, editorModelEmail, editorPropertyList, isLoading, isTempPreviewDialogOpen, vModel } = this.state;\r\n\t\tconst { classes } = this.props;\r\n\r\n\t\tvar ForInsert = !model.Id || model.Id <= 0;\r\n\t\treturn (\r\n\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t{alert}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\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\t\teditorModelEmail: HtmlEditor.EmptyEditorContent()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCLEAR\r\n \r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{model.LogoImage == null ?\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.fileInputRef1.current.click()}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tstyle={{ marginTop: 8 }}>LOGO\r\n \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.FileSelect(e, \"LogoImage\")}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tref={this.fileInputRef1}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccept=\"image/*\" />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmodel.LogoImage = null;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmodel: model\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tstyle={{ marginTop: 8 }}>DELETE LOGO\r\n \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{model.LogoImage &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{model.HeaderImage == null ?\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.fileInputRef2.current.click()}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tstyle={{ marginTop: 8 }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t>IMAGE\r\n \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.FileSelect(e, \"HeaderImage\")}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tref={this.fileInputRef2}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccept=\"image/*\" />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t:\r\n\t\t\t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t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nApplicationResultLetterTemplate.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tExecuteApiPost: PropTypes.func,\r\n};\r\n\r\nexport default withArtifex(ApplicationResultLetterTemplate, {});\r\n","// @ts-nocheck\r\nimport ScorcardTableImage from \"assets/img/los-scorecard-value-table.png\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericExpansionPanel, GenericGrid, GenericSelectInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nconst initialState = {\r\n\tmodel: {},\r\n\tvModel: {},\r\n\tisBrowse: false,\r\n\tparameterDatalist: [],\r\n\tisLoading: false\r\n};\r\nconst url = \"/losapi/v1.0/ApprovalParameter/\";\r\n\r\nclass ApprovalParameter extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = initialState;\r\n\t\tthis.LOSScoreCardValuesFlexSet = {\r\n\t\t\tFlexType: \"LOSScoreCardValues\"\r\n\t\t};\r\n\t\tthis.LOSScoreCardValuesActionsFlexSet = {\r\n\t\t\tFlexType: \"LOSScoreCardValuesActions\"\r\n\t\t};\r\n\t\tthis.LOSScoreCardValuesProfilesFlexSet = {\r\n\t\t\tFlexType: \"LOSScoreCardValuesProfiles\"\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis\r\n\t\t\t.props\r\n\t\t\t.setAppLeftTitle(\"Approval Parameters\");\r\n\t\tthis\r\n\t\t\t.props\r\n\t\t\t.setAppCenterTitle(\"LOAN ORIGINATOR SYSTEM\");\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: null })}\r\n\t\t\t\tOnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\tShowMessageAndRefresh = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlertAndRefresh()} />\r\n\t\t});\r\n\t}\r\n\thideAlertAndRefresh = () => {\r\n\t\tthis.setState({ alert: null, isLoading: false, state: this.initialState });\r\n\t\twindow\r\n\t\t\t.location\r\n\t\t\t.reload();\r\n\r\n\t}\r\n\tHideAlert = () => {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\tErrorCallback = (error) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t}\r\n\r\n\tOperationCheck = () => {\r\n\r\n\t\tvar ErrorList = [];\r\n\t\tconst data = this.state.model;\r\n\t\tconst { vModel } = this.state;\r\n\r\n\t\tif (data == null) {\r\n\t\t\tErrorList.push(\"Approval parameters not defined !.\");\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please Fill Required Fields\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (data.ScoreCardValueId == null || data.ScoreCardValueId == 0) {\r\n\t\t\tvModel.ScoreCardValueId = true;\r\n\t\t\tErrorList.push(\"Scorecard value must be defined.\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvModel.ScoreCardValueId = false;\r\n\t\t}\r\n\t\tif (data.LoanActionId == null || data.LoanActionId == 0) {\r\n\t\t\tvModel.LoanActionId = true;\r\n\t\t\tErrorList.push(\"Action must be defined.\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvModel.LoanActionId = false;\r\n\t\t}\r\n\t\tif (data.CollectionProfileId == null || data.LoanCollectionProfileIdActionId == 0) {\r\n\t\t\tvModel.CollectionProfileId = true;\r\n\t\t\tErrorList.push(\"Profile must be defined.\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvModel.CollectionProfileId = false;\r\n\t\t}\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please Fill Required Fields\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (data.Id > 0) {\r\n\t\t\tthis.ActionUpdate();\r\n\t\t} else {\r\n\t\t\tthis.ActionSubmit();\r\n\t\t}\r\n\t\tthis.setState({ vModel });\r\n\r\n\t}\r\n\r\n\tActionSubmit = () => {\r\n\t\tthis.HideAlert();\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst model = this.state.model;\r\n\r\n\t\tthis.Post(model, \"Insert\");\r\n\r\n\t}\r\n\tActionSearch = () => {\r\n\t\tthis.HideAlert();\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst data = this.state.model;\r\n\t\tthis.Post(data, \"Search\");\r\n\r\n\t}\r\n\tActionUpdate = () => {\r\n\t\tthis.HideAlert();\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst data = this.state.model;\r\n\r\n\t\tthis.Post(data, \"Update\");\r\n\r\n\t}\r\n\tActionDelete = () => {\r\n\t\tvar ErrorList = [];\r\n\t\tthis.HideAlert();\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst data = this.state.model;\r\n\t\tif (data == null || data.Id == null || data.ScoreCardValueId == 0) {\r\n\t\t\tErrorList.push(\"Any approval parameter not selected.\");\r\n\t\t}\r\n\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please Select A Record From Parameter List\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.Post(data, \"Delete\");\r\n\r\n\t}\r\n\tActionClear = () => {\r\n\t\tthis.setState({ model: {}, parameterDatalist: [], alert: null, isLoading: false });\r\n\t}\r\n\r\n\tPost = (model, methodName) => {\r\n\t\tthis.setState({ alert: null });\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST((url + methodName), model, (responseData) => {\r\n\t\t\tswitch (methodName) {\r\n\t\t\t\tcase \"Search\":\r\n\t\t\t\t\tif (responseData != null && responseData.Item != null) {\r\n\t\t\t\t\t\tthis.setState({ parameterDatalist: responseData.Item, isLoading: false });\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase \"Delete\":\r\n\t\t\t\t\tif (responseData != null && responseData.Item != null) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Approval Parameter Deleted\");\r\n\t\t\t\t\t\tthis.ActionClear();\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.setState({ alert: null, isLoading: false, state: this.initialState });\r\n\t\t\t\t\tthis.ActionSearch();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t} else if (responseData != null && responseData.Item != null) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Approval Parameter Saved\");\r\n\t\t\t\t\t\tthis.setState({ model: responseData.Item, isLoading: false });\r\n\t\t\t\t\t\tthis.ActionClear();\r\n\t\t\t\t\t\tthis.ActionSearch();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.setState({ alert: null, isLoading: false, state: this.initialState });\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t}\r\n\t\t}, this.ErrorCallback);\r\n\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = {\r\n\t\t\t...this.state.model\r\n\t\t};\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\tRowSelected = (index) => {\r\n\t\tconst list = this.state.parameterDatalist;\r\n\t\tthis.setState({ model: list[index] });\r\n\t}\r\n\tGetRenderItemScorecardValue = (d) => {\r\n\r\n\t\treturn d.ParameterValue + \" - \" + d.ParameterValue2;\r\n\t}\r\n\r\n\r\n\trender() {\r\n\t\tconst { model, alert, isLoading, vModel } = this.state;\r\n\t\tvar ForInsert = !model.Id || model.Id <= 0;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t{alert}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t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isRequired,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(ApprovalParameter, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport { TaskPool } from \"core/TaskPool\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericCheckInput, GenericExpansionPanel, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ClientPartnerAddress from \"views/LOS/ClientPartner/ClientPartnerAddress.jsx\";\r\nimport ClientPartnerContractDetails from \"views/LOS/ClientPartner/ClientPartnerContractDetails.jsx\";\r\nimport ClientPartnerInformation from \"views/LOS/ClientPartner/ClientPartnerInformation.jsx\";\r\n\r\nconst initialState = {\r\n\tmodel: {\r\n\t\tId: 0,\r\n\t\tCustomer: {},\r\n\t\tAccount: {},\r\n\t\tAccountId: 0,\r\n\t\tCustomerId: 0,\r\n\t\tEmail: \"\"\r\n\t},\r\n\tparamClientPartnerAddressList: [],\r\n\tparamClientPartnerContractDetailsList: [],\r\n\tparamClientPartnerAccountDefinitionAndDetailsList: [],\r\n\tisLoading: false,\r\n\tReadOnly: false\r\n};\r\nclass ClientPartner extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.getappCenterTitle = \"Empty\";\r\n\t\tthis.getappLeftTitle = \"Empty\";\r\n\t\tthis.GetClientPartnerContractDetailsModels = this\r\n\t\t\t.GetClientPartnerContractDetailsModels\r\n\t\t\t.bind(this);\r\n\t\tthis.HandleCustomerSelect = this.HandleCustomerSelect.bind(this);\r\n\t\tthis.loadTaskPool = new TaskPool(this.handleLoadTaskPoolAppend, this.handleLoadTaskPoolCompleted);\r\n\t\tthis.state = {\r\n\t\t\tvModel:{},\r\n\t\t\tmodel: initialState.model,\r\n\t\t\tparamClientPartnerAddressList: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tReadOnly: false\r\n\t\t};\r\n\t\tthis.maxLength20 = {\r\n\t\t\tmaxLength: 20\r\n\t\t};\r\n\t\tthis.marginLeft2 = {\r\n\t\t\tmarginLeft: 2\r\n\t\t};\r\n\r\n\t\tthis.emptyObject = {};\r\n\t\tthis.LoanTypeParameterCode = {\r\n\t\t\tParameterCode: \"LOSLoanType\"\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis\r\n\t\t\t.props\r\n\t\t\t.setAppLeftTitle(\"Partner Definition\");this.getappLeftTitle = \"Partner Definition\";\r\n\t\tthis\r\n\t\t\t.props\r\n\t\t\t.setAppCenterTitle(\"LOAN ORIGINATOR SYSTEM\");this.getappCenterTitle = \"LOAN ORIGINATOR SYSTEM\";\r\n\t}\r\n\tGetClientPartnerAddressModels = () => {\r\n\t\tthis\r\n\t\t\t.loadTaskPool\r\n\t\t\t.AppendTask(Proxy.POST(\"/losapi/v1.0/ClientPartnerAddress/GetByClientPartnerId\", {\r\n\t\t\t\tClientPartnerId: this.state.model.Id\r\n\t\t\t}, responseData => {\r\n\t\t\t\tconsole.log(\"GetClientPartnerAddress ->\", responseData.IsSucceeded);\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tparamClientPartnerAddressList: responseData.Item || []\r\n\t\t\t\t\t});\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ paramClientPartnerAddressList: [] });\r\n\t\t\t\t}\r\n\t\t\t}, error => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}));\r\n\t}\r\n\r\n\thandleLoadTaskPoolCompleted = () => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\thandleLoadTaskPoolAppend = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t}\r\n\tOperationCheck = () => {\r\n\r\n\t\tvar ErrorList = [];\r\n\t\tconst data = this.state.model;\r\n\t\tconst {vModel}=this.state;\r\n\t\tif (data.LegalNameOfBusiness == null || data.LegalNameOfBusiness === \"\") {\r\n\t\t\tvModel.LegalNameOfBusiness=true;\r\n\t\t\tErrorList.push(\"Legal name of business must be defined.\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tvModel.LegalNameOfBusiness=false;\r\n\t\t}\r\n\t\tif (data.BusinessPhoneCountryCodeId == null || data.BusinessPhoneCountryCodeId === \"\") {\r\n\t\t\tvModel.BusinessPhoneCountryCodeId=true;\r\n\t\t\tErrorList.push(\"Business phone country code must be defined.\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tvModel.BusinessPhoneCountryCodeId=false;\r\n\t\t}\r\n\t\tif (data.BusinessPhoneNumber == null || data.BusinessPhoneNumber === \"\") {\r\n\t\t\tvModel.BusinessPhoneNumber=true;\r\n\t\t\tErrorList.push(\"Business phone must be defined.\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tvModel.BusinessPhoneNumber=false;\r\n\t\t}\r\n\t\tif (data.Email == null || data.Email === \"\") {\r\n\t\t\tvModel.Email=true;\r\n\t\t\tErrorList.push(\"Email must be defined.\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tvModel.Email=false;\r\n\t\t}\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please Fill Required Fields\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tthis.setState({vModel});\r\n\t\tthis.UpdateModel();\r\n\t}\r\n\r\n\thideAlertAndRefresh = () => {\r\n\t\tthis.setState({ alert: null, isLoading: false });\r\n\t\twindow\r\n\t\t\t.location\r\n\t\t\t.reload();\r\n\r\n\t}\r\n\tShowMessageAndRefresh = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlertAndRefresh()} />\r\n\t\t});\r\n\t}\r\n\tUpdateModel = () => {\r\n\t\tconst model = this.state.model;\r\n\t\tthis\r\n\t\t\t.loadTaskPool\r\n\t\t\t.AppendTask(Proxy.POST(\"/losapi/v1.0/clientpartner/InsertUpdate\", model, responseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ model: responseData.Item });\r\n\t\t\t\tif (model.Id > 0) {\r\n\t\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"The Partner Successfully Updated\");\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.ShowMessageAndRefresh(\"success\", \"Success\", \"The Partner Successfully Saved\");\r\n\t\t\t\t}\r\n\t\t\t}, error => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}));\r\n\t}\r\n\tGetClientPartnerContractDetailsModels = () => {\r\n\t\tthis\r\n\t\t\t.loadTaskPool\r\n\t\t\t.AppendTask(Proxy.POST(\"/losapi/v1.0/ClientPartnerContractDetails/GetByClientPartnerId\", {\r\n\t\t\t\tClientPartnerId: this.state.model.Id\r\n\t\t\t}, responseData => {\r\n\t\t\t\tconsole.log(\"GetClientPartnerContractDetails ->\", responseData.IsSucceeded);\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tparamClientPartnerContractDetailsList: responseData.Item || []\r\n\t\t\t\t\t});\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ paramClientPartnerContractDetailsList: [] });\r\n\t\t\t\t}\r\n\t\t\t}, error => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}));\r\n\t}\r\n\tHandleCustomerSelect = (customer) => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tif (customer == null) {\r\n\t\t\tmodel.Customer = null;\r\n\t\t\tmodel.Account = null;\r\n\t\t\tmodel.Email = null;\r\n\t\t\tthis.setState({ model });\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.loadTaskPool.AppendTask(\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/losapi/v1.0/Applicant/GetAccountByCustomerId\",\r\n\t\t\t\t{ CustomerId: customer.Id },\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tmodel.Account = responseData.Item != null ? responseData.Item : null;\r\n\t\t\t\t\tmodel.AccountId = model.Account.Id;\r\n\t\t\t\t\tmodel.Customer = customer;\r\n\t\t\t\t\tmodel.CustomerId = model.Customer.Id;\r\n\t\t\t\t\tmodel.Email = customer.Email;\r\n\t\t\t\t\tthis.setState({ model });\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t));\r\n\t}\r\n\tGetClientPartnerAccountDefinitionAndDetailsModels = () => {\r\n\t\tthis\r\n\t\t\t.loadTaskPool\r\n\t\t\t.AppendTask(Proxy.POST(\"/losapi/v1.0/ClientPartnerAccountDefinitionAndDetails/GetByClientPartnerId\", {\r\n\t\t\t\tClientPartnerId: this.state.model.Id\r\n\t\t\t}, responseData => {\r\n\t\t\t\tconsole.log(\"GetClientPartnerAccountDefinitionAndDetails ->\", responseData.IsSucceeded);\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tparamClientPartnerAccountDefinitionAndDetailsList: responseData.Item || {}\r\n\t\t\t\t\t});\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ paramClientPartnerAccountDefinitionAndDetailsList: {} });\r\n\t\t\t\t}\r\n\t\t\t}, error => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}));\r\n\r\n\t}\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = {\r\n\t\t\t...this.state.model\r\n\t\t};\r\n\t\tmodel[name] = newValue;\r\n\t\tif (name === \"isGenerateNew\" && newValue == true) {\r\n\t\t\tthis.ShowConfirmMessage(\"warning\", \"Warning\", \"This will erase the information you entered on the screen. Are you sure you want\" +\r\n\t\t\t\t\" to quit this client partner?\",\r\n\t\t\t\t() => this.HandleCreateNew());\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (name === \"Id\") {\r\n\t\t\tthis.HandleGetClientPartner(newValue);\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\t}\r\n\tHandleCreateNew() {\r\n\t\tthis.HideAlert();\r\n\t\tvar newState = initialState;\r\n\t\tnewState.model.isGenerateNew = true;\r\n\r\n\t\tthis.setState({ model: newState.model });\r\n\t}\r\n\tHandleGetClientPartner = (id) => {\r\n\t\tlet { model } = this.state;\r\n\t\tthis\r\n\t\t\t.loadTaskPool\r\n\t\t\t.AppendTask(Proxy.POST(\"/losapi/v1.0/ClientPartner/GetById\", {\r\n\t\t\t\tId: id\r\n\t\t\t}, responseData => {\r\n\t\t\t\tconsole.log(\"GetClientPartner ->\", responseData.IsSucceeded);\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tmodel = responseData.Item.ClientPartner;\r\n\t\t\t\t\tthis.setState({ model, paramClientPartnerAddressList: responseData.Item.ClientPartnerAddressList, paramClientPartnerContractDetailsList: responseData.Item.ClientPartnerContractDetailsList, paramClientPartnerAccountDefinitionAndDetailsList: responseData.Item.ClientPartnerAccountDefinitionAndDetailsList });\r\n\t\t\t\t}\r\n\t\t\t}, this.ErrorCallback));\r\n\t}\r\n\tHandleClickClearOk = () => {\r\n\t\tthis.HideAlert();\r\n\t\tthis.setState(initialState);\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.ShowConfirmMessage(\"warning\", \"Warning\", \"This will erase the information you entered on the screen. Are you sure you want\" +\r\n\t\t\t\" to quit this client partner?\",\r\n\t\t\t() => this.HandleClickClearOk());\r\n\t}\r\n\tErrorCallback = (error) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"Error\", \"An error occurred during the api visit\" + error);\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: null })}\r\n\t\t\t\tOnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\r\n\tHideAlert = () => {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\tRefreshToolBar = () => {\r\n\t\tthis.setState({\r\n\t\t\tLimitToken: !this.state.LimitToken\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst {\r\n\t\t\tmodel,\r\n\t\t\taddressModel,\r\n\t\t\ttempModel,\r\n\t\t\talert,\r\n\t\t\tisLoading,\r\n\t\t\tvModel,\r\n\t\t} = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t 0\r\n\t\t\t\t\t\t}, {\r\n\t\t\t\t\t\t\tCode: \"Update\",\r\n\t\t\t\t\t\t\tOnClick: this.OperationCheck,\r\n\t\t\t\t\t\t\tDisabled: model.Id === 0\r\n\t\t\t\t\t\t}, {\r\n\t\t\t\t\t\t\tCode: \"Clear\",\r\n\t\t\t\t\t\t\tOnClick: this.HandleClear,\r\n\t\t\t\t\t\t\tDisabled: false\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After}\r\n\t\t\t\t\tIsPopUp={false} />\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t{alert}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{/* */}\r\n\t\t\t\t\t\t{/* \t\t\t\t\t */}\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n} ClientPartner.propTypes = {\r\n\ttabList: PropTypes.array,\r\n\tclasses: PropTypes.object.isRequired,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tClientPartnerSaved: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n}; export default withArtifex(ClientPartner, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport { DeleteIcon, EditIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport AccountComponent from \"views/Components/AccountComponent\";\r\nimport { GenericAlert, GenericExpansionPanel, GenericGrid, GenericSelectInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nclass ClientPartnerAccountDefinitionAndDetails extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tAccountDefinitionModel: {},\r\n\t\t\taccountModel: {\r\n\t\t\t\tFinancialInstitutionId: 0,\r\n\t\t\t\tFinancialInstitutionBranchId: 0,\r\n\t\t\t\tAccountNumber: 0\r\n\t\t\t},\r\n\t\t\tpartnerModel: {\r\n\t\t\t\tFinancialInstitutionId: 0,\r\n\t\t\t\tFinancialInstitutionBranchId: 0,\r\n\t\t\t\tAccountNumber: 0\r\n\t\t\t},\r\n\t\t\tClientPartnerAccountDefinitionAndDetailsList: [],\r\n\t\t\tisLoading: false,\r\n\t\t\talert: null\r\n\t\t};\r\n\t\tthis.LoanTypeParameterCode = {\r\n\t\t\tParameterCode: \"LOSLoanType\"\r\n\t\t};\r\n\t\tthis.SalesChannelarameterCode = {\r\n\t\t\tParameterCode: \"LOSSalesChannel\"\r\n\t\t};\r\n\t\tthis.PartnerFeeTypeParameterCode = {\r\n\t\t\tParameterCode: \"LOSPartnerFeeType\"\r\n\t\t};\r\n\t\tthis.IntendUseOfAccountParameterCode = {\r\n\t\t\tParameterCode: \"IntendUseOfAccount\"\r\n\t\t};\r\n\t\tthis.AccountTypeParameterCode = {\r\n\t\t\tParameterCode: \"BankingAccountType\",\r\n\t\t\tParameterValue2: \"SettlementAccount\"\r\n\t\t};\r\n\t\tthis.Parameterwidth33 = {\r\n\t\t\twidth: \"33.6%\"\r\n\t\t};\r\n\t\tthis.Parameterwidth65 = {\r\n\t\t\twidth: \"65.7%\"\r\n\t\t};\r\n\r\n\t\tthis.ColumnsData = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t this.setState({\r\n\t\t\t\t\t\t\t\tAccountDefinitionModel: {\r\n\t\t\t\t\t\t\t\t\t...row.original\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t})} />\r\n\t\t\t\t\t\t this.showQuestionMessage(\"Delete this record !\", row.original)} />\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\twidth: 100\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"Account Type\",\r\n\t\t\t\taccessor: \"AccountType.ParameterDesc\"\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"Partner Financial Institution\",\r\n\t\t\t\taccessor: \"PartnerFinancialInstitution.Description\"\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"Partner Financial Institution Branch\",\r\n\t\t\t\taccessor: \"PartnerFinancialInstitutionBranch.Description\"\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"Partner Account Number\",\r\n\t\t\t\taccessor: \"PartnerAccountNumber\"\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"Client Financial Institution\",\r\n\t\t\t\taccessor: \"ClientAccountFinancialInstitution.Description\"\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"Client Financial Institution Branch\",\r\n\t\t\t\taccessor: \"ClientAccountFinancialInstitutionBranch.Description\"\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"Client Account Number\",\r\n\t\t\t\taccessor: \"ClientAccountAccountNumber\"\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"Instend Use of Account\",\r\n\t\t\t\taccessor: \"IntendUseOfAccount.ParameterDesc\"\r\n\t\t\t}\r\n\t\t];\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\tif (this.props.setAppLeftTitle)\r\n\t\t\tthis.props.setAppLeftTitle(\"Documents\");\r\n\r\n\t\tvar model = {\r\n\t\t\tId: 0\r\n\t\t};\r\n\t\tthis.setState({ AccountDefinitionModel: model, ClientPartnerAccountDefinitionAndDetailsList: this.props.ClientPartnerAccountDefinitionAndDetailsList });\r\n\r\n\t}\r\n\r\n\tOperationCheck = () => {\r\n\r\n\t\tvar ErrorList = [];\r\n\t\tconst data = this.state.AccountDefinitionModel;\r\n\r\n\t\tif (data == null) {\r\n\t\t\tErrorList.push(\"Account definition and details not defined.\");\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please Fill Required Fields\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (data.ClientAccountFinancialInstitutionId != null) {\r\n\t\t\tif (data.ClientAccountFinancialInstitutionBranchId == null || undefined) {\r\n\t\t\t\tErrorList.push(\"Client account branch.\");\r\n\t\t\t\tif (data.ClientAccountAccountNumber === null || data.ClientAccountAccountNumber === undefined || data.ClientAccountAccountNumber === \"\") {\r\n\t\t\t\t\tErrorList.push(\"Client account number.\");\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif (data.ClientAccountAccountNumber === null || data.ClientAccountAccountNumber === undefined || data.ClientAccountAccountNumber === \"\") {\r\n\t\t\t\t\tErrorList.push(\"Client account number.\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tif (data.PartnerFinancialInstitutionId != null) {\r\n\t\t\tif (data.PartnerFinancialInstitutionBranchId == null || undefined) {\r\n\t\t\t\tErrorList.push(\"Partner account branch.\");\r\n\t\t\t\tif (data.PartnerAccountNumber === null || data.PartnerAccountNumber === undefined || data.PartnerAccountNumber === \"\") {\r\n\t\t\t\t\tErrorList.push(\"Partner account number.\");\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif (data.PartnerAccountNumber === null || data.PartnerAccountNumber === undefined || data.PartnerAccountNumber === \"\") {\r\n\t\t\t\t\tErrorList.push(\"Partner account number.\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please Fill Required Fields\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.UpdateModel();\r\n\t}\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\tUpdateModel = () => {\r\n\t\tvar { ClientPartnerModel } = this.props;\r\n\r\n\t\tvar temp = this.state.AccountDefinitionModel;\r\n\t\ttemp.ClientPartnerId = ClientPartnerModel.Id;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tProxy.POST(\"/losapi/v1.0/ClientPartnerAccountDefinitionAndDetails/InsertUpdate\", temp, responseData => {\r\n\t\t\tthis.setState({ isLoading: false });\r\n\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\treturn;\r\n\t\t\t} else {\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", temp.Id > 0\r\n\t\t\t\t\t? \"Client Partner Account Definition And Details Updated\"\r\n\t\t\t\t\t: \"Client Partner Account Definition And Details Saved\");\r\n\t\t\t\tthis.ClearData();\r\n\t\t\t}\r\n\t\t\tthis\r\n\t\t\t\t.props\r\n\t\t\t\t.GetClientPartnerAccountDefinitionAndDetailsModels();\r\n\t\t}, error => {\r\n\t\t\tthis.setState({ isLoading: false });\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t});\r\n\t}\r\n\r\n\tDeleteModel = (model) => {\r\n\t\tif (model == null || model.Id == null || model.Id == 0) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Warning\", \"Document must be selected for delete operation.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/losapi/v1.0/ClientPartnerAccountDefinitionAndDetails/Delete\", {\r\n\t\t\tId: model.Id\r\n\t\t}, responseData => {\r\n\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Client Partner Account Definition And Details Deleted\");\r\n\t\t\tthis.ClearData();\r\n\t\t\tthis\r\n\t\t\t\t.props\r\n\t\t\t\t.GetClientPartnerAccountDefinitionAndDetailsModels();\r\n\t\t}, error => {\r\n\t\t\tthis.setState({ isLoading: false });\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t});\r\n\t}\r\n\tSelectedRowChange = (e, index) => {\r\n\t\tconst model = this.props.ClientPartnerAccountDefinitionAndDetailsList[index];\r\n\t\tconst tempPartner = this.state.partnerModel;\r\n\t\tconst tempAccount = this.state.accountModel;\r\n\t\ttempPartner.FinancialInstitutionId = model.PartnerFinancialInstitutionId;\r\n\t\ttempPartner.FinancialInstitutionBranchId = model.PartnerFinancialInstitutionBranchId;\r\n\t\ttempPartner.AccountNumber = model.PartnerAccountNumber;\r\n\t\ttempAccount.FinancialInstitutionId = model.ClientAccountFinancialInstitutionId;\r\n\t\ttempAccount.FinancialInstitutionBranchId = model.ClientAccountFinancialInstitutionBranchId;\r\n\t\ttempAccount.AccountNumber = model.ClientAccountAccountNumber;\r\n\t\tthis.setState({\r\n\t\t\tAccountDefinitionModel: model || {},\r\n\t\t\taccountModel: tempAccount,\r\n\t\t\tpartnerModel: tempPartner\r\n\t\t});\r\n\t}\r\n\tClearData = () => {\r\n\t\tvar model = {\r\n\t\t\tId: 0\r\n\t\t};\r\n\t\tvar accountModelClear = {\r\n\t\t\tFinancialInstitutionId: 0,\r\n\t\t\tFinancialInstitutionBranchId: 0,\r\n\t\t\tAccountNumber: 0\r\n\t\t};\r\n\t\tvar partnerModelClear = {\r\n\t\t\tFinancialInstitutionId: 0,\r\n\t\t\tFinancialInstitutionBranchId: 0,\r\n\t\t\tAccountNumber: 0\r\n\t\t};\r\n\t\tthis.setState({ AccountDefinitionModel: model, partnerModel: partnerModelClear, accountModel: accountModelClear });\r\n\r\n\t}\r\n\thandleChange2 = (name, newValue, data) => {\r\n\t\tconst temp = this.state.AccountDefinitionModel;\r\n\t\tconst tempPartner = this.state.partnerModel;\r\n\t\tif (name == \"FinancialInstitutionId\" && data != null) {\r\n\t\t\ttemp.PartnerFinancialInstitutionId = data.Id;\r\n\t\t\ttempPartner.FinancialInstitutionId = data.Id;\r\n\t\t\ttemp.PartnerFinancialInstitutionBranchId = null;\r\n\t\t\ttemp.PartnerAccountNumber = null;\r\n\t\t\ttempPartner.AccountNumber = null;\r\n\t\t}\r\n\t\tif (name == \"FinancialInstitutionBranchId\" && data != null) {\r\n\t\t\ttemp.PartnerFinancialInstitutionBranchId = data.Id;\r\n\t\t\ttempPartner.FinancialInstitutionBranchId = data.Id;\r\n\t\t}\r\n\t\tif (name == \"AccountNumber\") {\r\n\t\t\ttemp.PartnerAccountNumber = newValue;\r\n\t\t\ttempPartner.AccountNumber = newValue;\r\n\t\t}\r\n\t\tthis.setState({ AccountDefinitionModel: temp, partnerModel: tempPartner });\r\n\t}\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst temp = this.state.AccountDefinitionModel;\r\n\t\tconst tempAccount = this.state.accountModel;\r\n\t\tif (name == \"FinancialInstitutionId\" && data != null) {\r\n\t\t\ttemp.ClientAccountFinancialInstitutionId = data.Id;\r\n\t\t\ttempAccount.FinancialInstitutionId = data.Id;\r\n\t\t\ttemp.ClientAccountFinancialInstitutionBranchId = null;\r\n\t\t\ttemp.ClientAccountAccountNumber = null;\r\n\t\t\ttempAccount.AccountNumber = null;\r\n\t\t}\r\n\t\tif (name == \"FinancialInstitutionBranchId\" && data != null) {\r\n\t\t\ttemp.ClientAccountFinancialInstitutionBranchId = data.Id;\r\n\t\t\ttempAccount.FinancialInstitutionBranchId = data.Id;\r\n\t\t}\r\n\t\tif (name == \"AccountNumber\") {\r\n\t\t\ttemp.ClientAccountAccountNumber = newValue;\r\n\t\t\ttempAccount.AccountNumber = newValue;\r\n\t\t}\r\n\t\tthis.setState({ AccountDefinitionModel: temp, accountModel: tempAccount });\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.AccountDefinitionModel || {};\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\treturn { AccountDefinitionModel: temp, model, accountModel: tempAccount };\r\n\t\t});\r\n\t}\r\n\tFilterIdentityNumber = (number) => {\r\n\t\tif (number == null)\r\n\t\t\treturn \"\";\r\n\r\n\t\tvar regexp = new RegExp(\"(.*)(.{4})\");\r\n\t\tvar onEk = regexp\r\n\t\t\t.exec(number)[1]\r\n\t\t\t.replace(/([^ ])/g, \"*\");\r\n\t\tvar sonEk = regexp.exec(number)[2];\r\n\r\n\t\treturn onEk + sonEk;\r\n\t}\r\n\tshowQuestionMessage = (message, model) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()}\r\n\t\t\t\tOnConfirm={() => this.DeleteModel(model)} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\t// type:-success->warning->info->error\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({ alert: null, isLoading: false });\r\n\t}\r\n\trender() {\r\n\t\tconst { Disabled: DisabledProp, ClientPartnerAccountDefinitionAndDetailsList } = this.props;\r\n\t\tconst { AccountDefinitionModel, accountModel, partnerModel } = this.state;\r\n\t\tconst Disabled = DisabledProp || this.state.CustomDisabled;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t this.OperationCheck()}>{AccountDefinitionModel.Id > 0\r\n\t\t\t\t\t\t\t\t\t\t\t\t? \"Update\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t: \"Add\"}\r\n\r\n\t\t\t\t\t\t\t\t\t\t this.ClearData()}>\r\n\t\t\t\t\t\t\t\t\t\t\tClear\r\n \r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\tthis.SelectedRowChange(0, index);\r\n\t\t\t\t\t\t\t\t\t\t}} />\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\nClientPartnerAccountDefinitionAndDetails.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tAccountDefinitionModel: PropTypes.object,\r\n\tClientPartnerModel: PropTypes.object,\r\n\tClientPartnerAccountDefinitionAndDetailsList: PropTypes.array,\r\n\tGetClientPartnerAccountDefinitionAndDetailsModels: PropTypes.func,\r\n\thandleChangeParentTab: PropTypes.func,\r\n\thandleChangeChildTab: PropTypes.func,\r\n\tSetFile: PropTypes.func\r\n\r\n};\r\nexport default withArtifex(ClientPartnerAccountDefinitionAndDetails, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { withArtifex } from \"core\";\r\nimport { DeleteIcon, EditIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport { GenericAlert, GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nclass ClientPartnerDdtList extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tClientPartnerDdtListModel: {},\r\n\t\t\tisLoading: false,\r\n\t\t\talert: null\r\n\t\t};\r\n\r\n\t\tthis.ColumnsData = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Action\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t this.setState({\r\n\t\t\t\t\t\t\t\tClientPartnerDdtListModel: {\r\n\t\t\t\t\t\t\t\t\t...row.original\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t})} />\r\n\t\t\t\t\t\t this.showQuestionMessage(\"Delete this record !\", row.original)} />\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\twidth: 100\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"Partner Name\",\r\n\t\t\t\taccessor: \"PartnerName\"\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"DDT Number\",\r\n\t\t\t\taccessor: \"DdtNumber\"\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"DDT Owner Name\",\r\n\t\t\t\taccessor: \"DdtOwnerName\"\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"DDT Balance\",\r\n\t\t\t\taccessor: \"DdtBalance\"\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"Total Paid Amount\",\r\n\t\t\t\taccessor: \"TotalPaidAmount\"\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"Remaining No. of Payment\",\r\n\t\t\t\taccessor: \"RemainingNoOfPayment\"\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"Total Remaining Loan Amount\",\r\n\t\t\t\taccessor: \"TotalRemainingLoanAmount\"\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"Delay Status\",\r\n\t\t\t\taccessor: \"DelayStatus\"\r\n\t\t\t}\r\n\t\t];\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\tif (this.props.setAppLeftTitle)\r\n\t\t\tthis.props.setAppLeftTitle(\"Documents\");\r\n\r\n\t\tvar model = {\r\n\t\t\tId: 0\r\n\t\t};\r\n\t\tthis.setState({ ClientPartnerDdtListModel: model, ClientPartnerAccountDefinitionAndDetailsList: this.props.ClientPartnerAccountDefinitionAndDetailsList });\r\n\t}\r\n\r\n\tOperationCheck = () => {\r\n\r\n\t\tthis.UpdateModel();\r\n\t}\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\tUpdateModel = () => { }\r\n\r\n\tDeleteModel = (model) => { }\r\n\tSelectedRowChange = (e, index) => { }\r\n\tClearData = () => { }\r\n\r\n\thandleChange = (name, newValue, data) => { }\r\n\tFilterIdentityNumber = (number) => { }\r\n\tshowQuestionMessage = (message, model) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()}\r\n\t\t\t\tOnConfirm={() => this.DeleteModel(model)} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\t// type:-success->warning->info->error\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({ alert: null, isLoading: false });\r\n\t}\r\n\trender() {\r\n\t\tconst { Disabled: DisabledProp, ClientPartnerAccountDefinitionAndDetailsList } = this.props;\r\n\t\tconst { ClientPartnerDdtListModel } = this.state;\r\n\t\tconst Disabled = DisabledProp || this.state.CustomDisabled;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t this.OperationCheck()}>{ClientPartnerDdtListModel.Id > 0\r\n\t\t\t\t\t\t\t\t\t\t\t\t? \"Update\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t: \"Add\"}\r\n\r\n\t\t\t\t\t\t\t\t\t\t this.ClearData()}>\r\n\t\t\t\t\t\t\t\t\t\t\tClear\r\n \r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\tthis.SelectedRowChange(0, index);\r\n\t\t\t\t\t\t\t\t\t\t}} />\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nClientPartnerDdtList.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tClientPartnerDdtListModel: PropTypes.object,\r\n\tClientPartnerModel: PropTypes.object,\r\n\tClientPartnerAccountDefinitionAndDetailsList: PropTypes.array,\r\n\tGetClientPartnerAccountDefinitionAndDetailsModels: PropTypes.func,\r\n\thandleChangeParentTab: PropTypes.func,\r\n\thandleChangeChildTab: PropTypes.func,\r\n\tSetFile: PropTypes.func\r\n};\r\n\r\nexport default withArtifex(ClientPartnerDdtList, {});\r\n","import { DialogContent, DialogTitle, Tooltip, Zoom } from \"@material-ui/core\";\r\nimport { AddBoxOutlined } from \"@material-ui/icons\";\r\nimport { primaryColor } from \"assets/jss/material-dashboard-pro-react.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport StringHelper from \"core/StringHelper.js\";\r\nimport { TaskPool } from \"core/TaskPool\";\r\nimport moment from \"moment\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericCheckInput, GenericDialog, GenericDialogActions, GenericEmailInput, GenericExpansionPanel, GenericExpansionPanelCustomHeader, GenericGrid, GenericIcon, GenericLabel, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent.jsx\";\r\nimport { ClientType, MenuCodes, ProgramCodes } from \"views/Constants/Constant.js\";\r\nimport { GetCDICAccountColumns, GetColumns } from \"views/Customer/CustomerColumns\";\r\nimport AssignDDTAccountComponent from \"../Components/AssignDDTAccountComponent.jsx\";\r\nimport BeneficiaryComponent from \"../Components/BeneficiaryComponent.jsx\";\r\nimport CustomerInformationComponent from \"../Components/CustomerInformationComponent.jsx\";\r\nimport BenificialOwner from \"./BenificialOwner\";\r\n\r\nconst customerDefinitionStyle = {\r\n\ttooltip: {\r\n\t\tbackground: primaryColor,\r\n\t\tcolor: \"#ffffff\",\r\n\t\tfontSize: 16\r\n\t}\r\n};\r\n\r\nclass CustomerDefinition extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\talert: null,\r\n\t\t\taccountModel: {},\r\n\t\t\tDCAccountModel: {},\r\n\t\t\tmodel: {\r\n\t\t\t\tId: 0,\r\n\t\t\t\tAccounts: [],\r\n\t\t\t\tWalletAccounts: [],\r\n\t\t\t\tPrograms: props.Programs || [],\r\n\t\t\t\tUniqueClientId: ClientHelper.GetClientRowId()\r\n\t\t\t},\r\n\t\t\ttempModel: {\r\n\t\t\t\tisGenerateNew: props.ForInsert || props.ForUpdate,\r\n\t\t\t\tisPersonal: null\r\n\t\t\t},\r\n\t\t\tIsFinScanCheckRequired: false,\r\n\t\t\tFinScanSearchData: null,\r\n\t\t\twCheckModel: {\r\n\t\t\t\tClientCustomerId: 0,\r\n\t\t\t\tWatchListStatusId: 0,\r\n\t\t\t\tWatchListStatusDescription: null,\r\n\t\t\t\tSearchResult: null,\r\n\t\t\t\tLastReviewDate: null\r\n\t\t\t},\r\n\t\t\tddrModel: {},\r\n\t\t\tvModel: {},\r\n\t\t\tCDICAccounts: [],\r\n\t\t\tClientCustomerList: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tisEdit: false,\r\n\t\t\tisEditAccount: false,\r\n\t\t\tisErrorDialogOpen: false,\r\n\t\t\terrorMessage: \"\",\r\n\t\t\tuniq: \"1\" + Formatter.PadLeft(ClientHelper.GetClientRowId(), 3, \"0\"),\r\n\t\t\tPhone: {},\r\n\t\t\tservices: [],\r\n\t\t\tisDDRInquiryOpen: false,\r\n\t\t\tDDRInquiryResult: \"\",\r\n\t\t\thasChanged: false,\r\n\t\t\thasChangedAccount: false,\r\n\t\t\trowIndex: -1,\r\n\t\t\tReadOnly: ClientHelper.IsBackOffice(),\r\n\r\n\t\t\tAddressType: null\r\n\t\t};\r\n\t\t// preserve the initial state in a new object\r\n\t\tthis.baseState = this.state;\r\n\r\n\t\tthis.loadTaskPool = new TaskPool(this.handleLoadTaskPoolAppend, this.handleLoadTaskPoolCompleted);\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.customerTypes = [];\r\n\r\n\t\tthis.parameterCustomerName = {};\r\n\t\tthis.parameteWalletAccount = {};\r\n\t\tthis.parameterYesNo = {\r\n\t\t\tParameterCode: \"YesNo\"\r\n\t\t};\r\n\r\n\t\tthis.maxLengthCustomerNumber = { maxLength: this.state.model.IsAutoGenerateCustomerNumber ? 11 : 11 - this.state.uniq.length };\r\n\t\tthis.maxLength30 = { maxLength: 30 };\r\n\t\tthis.maxLength64 = { maxLength: 64 };\r\n\r\n\t\tthis.sortName = { Member: \"Name\" };\r\n\t\tthis.sortListName = [{ id: \"CustomerName\" }];\r\n\r\n\t\tthis.retiredOrUnemployedOccupationIds = [];\r\n\t\tthis.specificIdentityTypesIds = [];\r\n\t\tthis.identificationMethodIds = [];\r\n\r\n\t\tthis.DualMethodId = 0;\r\n\t\tthis.InPersonMethodId = 0; \t\r\n\t\tthis.CreditFileMethodId = 0; \r\n\r\n\t\tthis.DefaultCustomerStatusId = 0;\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tvar { model, tempModel } = this.state;\r\n\r\n\t\tthis.FetchCanadaPost();\r\n\r\n\t\tif (!(this.props.ForInsert || this.props.ForUpdate)) {\t\t\t\r\n\t\t\tif (this.props.setAppLeftTitle) this.props.setAppLeftTitle(\"Create Customer\");\r\n\t\t\tif (this.props.setAppCenterTitle) this.props.setAppCenterTitle(\"CUSTOMER SYSTEM\");\r\n\t\t}\r\n\r\n\t\tvar customerModel = RouteHelper.ReadAndClear(\"CustomerModel\") || this.props.Model;\r\n\r\n\t\tvar isOpenFromAMLKYCAlert = this.props.ApprovalData ? true : false;\r\n\t\tif (isOpenFromAMLKYCAlert) {\r\n\t\t\tmodel = JSON.parse(this.props.ApprovalData.JsonData);\r\n\t\t\ttempModel.isGenerateNew = true;\r\n\t\t\tvar ReadOnly = true;\r\n\t\t\tthis.setState({ model, tempModel, ReadOnly });\r\n\t\t\tthis.LoadProgramsForUi(model);\r\n\t\t} else {\r\n\t\t\tthis.setState({ model });\r\n\t\t\tif (customerModel != null) {\r\n\t\t\t\tthis.HandleGetList(customerModel);\r\n\t\t\t}\t\t\t\t\r\n\t\t\tthis.LoadProgramsForUi(customerModel);\r\n\t\t}\r\n\r\n\t\tthis.GetDefaultCustomerStatusId();\r\n\r\n\t}\r\n\t\r\n\tGetDefaultCustomerStatusId() {\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Parameter/Search\",\r\n\t\t\t{\r\n\t\t\t\tParameterCode: \"CustomerStatus\",\r\n\t\t\t\tParameterValue: \"N\"\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tconsole.log(\"Parameters were not found.\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.DefaultCustomerStatusId = responseData.Item[0].Id;\r\n\t\t\t}\t\t\r\n\t\t);\r\n\t\tthis.OnDefaultStatusLoaded();\r\n\t}\r\n\r\n\tOnDefaultStatusLoaded() {\r\n\t\tthis.GetIdentificationMethodIds();\r\n\t\tthis.GetRetiredOrUnemployedOccupationIds();\r\n\t\tthis.GetSpecificIdentityTypesIds();\r\n\t}\r\n\r\n\tGetIdentificationMethodIds() {\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Parameter/Search\",\r\n\t\t\t{\r\n\t\t\t\tParameterCode: \"IdentificationMethod\",\r\n\t\t\t\tParameterValue2: \"Active\"\t\t\t\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tconsole.log(\"Parameters were not found.\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\t\r\n\t\t\t\tthis.DualMethodId = responseData.Item.find(x=>x.ParameterValue ==\"D\").Id;\r\n\t\t\t\tthis.InPersonMethodId = responseData.Item.find(x=>x.ParameterValue==\"I\").Id;\t\t\r\n\t\t\t\tthis.CreditFileMethodId = responseData.Item.find(x=>x.ParameterValue==\"P\").Id;\t\t\t\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tGetSpecificIdentityTypesIds() {\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Parameter/Search\",\r\n\t\t\t{\r\n\t\t\t\tParameterCode: \"IdentityType2\",\r\n\t\t\t\tParameterValue: \"ID010\"\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tconsole.log(\"Parameters were not found.\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tlet list = responseData.Item;\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\tlist.forEach(element => {\r\n\t\t\t\t\tthis.specificIdentityTypesIds.push(element.Id);\r\n\t\t\t\t});\t\r\n\t\t\t}\r\n\t\t);\r\n\t} \r\n\r\n\tGetRetiredOrUnemployedOccupationIds() {\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Parameter/Search\",\r\n\t\t\t{\r\n\t\t\t\tParameterCode: \"Occupation\"\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tconsole.log(\"Parameters were not found.\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tlet list = responseData.Item;\r\n\t\t\t\tlist = list.filter(x=>x.ParameterValue == \"Retired\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t|| x.ParameterValue == \"UnemployedSocialAssistance\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t|| x.ParameterValue == \"UnemploymentAssistance\");\r\n\t\t\t\t\r\n\t\t\t\tlist.forEach(element => {\r\n\t\t\t\t\tthis.retiredOrUnemployedOccupationIds.push(element.Id);\r\n\t\t\t\t});\t\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tFetchCanadaPost = () => {\r\n\t\tvar parent = this;\r\n\r\n\t\tthis.loadTaskPool.AppendTask(\r\n\t\t\tProxy.POST(\"/coreapi/v1.0/Parameter/Search\",\r\n\t\t\t\t{\r\n\t\t\t\t\tParameterCode: \"CanadaPostApiKey\",\r\n\t\t\t\t\tParameterValue: \"CP\"\r\n\t\t\t\t},\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tconsole.log(\"Canada Post Api key not fetched !\");\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item == null) {\r\n\t\t\t\t\t\tconsole.log(\"Canada Post Api key not fetched !\");\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item[0] == null) {\r\n\t\t\t\t\t\tconsole.log(\"Canada Post Api key not fetched !\");\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tvar apikey = responseData.Item[0].ParameterDesc;\r\n\r\n\t\t\t\t\tvar url = window.CanadaPostAddressCompleteUrl;\r\n\t\t\t\t\tvar path = url + apikey;\r\n\r\n\t\t\t\t\tvar pca;\r\n\r\n\t\t\t\t\tvar CanadaPostSubmit = this.SubmitCanadaPostAddressModel;\r\n\r\n\t\t\t\t\tconst script = document.createElement(\"script\");\r\n\t\t\t\t\tscript.src = path;\r\n\t\t\t\t\tscript.async = false;\r\n\t\t\t\t\tdocument.head.appendChild(script);\r\n\t\t\t\t\tscript.onload = function () {\r\n\t\t\t\t\t\tpca = window.pca;\r\n\t\t\t\t\t\tif (pca != null) {\r\n\t\t\t\t\t\t\tvar fields =\r\n\t\t\t\t\t\t\t\t[\r\n\t\t\t\t\t\t\t\t\t{ element: \"street-address\", field: \"Line1\", mode: pca.fieldMode.SEARCH },\r\n\t\t\t\t\t\t\t\t\t{ element: \"street-address2\", field: \"Line2\", mode: pca.fieldMode.POPULATE },\r\n\t\t\t\t\t\t\t\t\t{ element: \"postcode\", field: \"PostalCode\", mode: pca.fieldMode.SEARCH }\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t],\r\n\t\t\t\t\t\t\t\toptions = {\r\n\t\t\t\t\t\t\t\t\tkey: apikey\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\tcontrol = new pca.Address(fields, options);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tvar employer = \r\n\t\t\t\t\t\t\t\t[\r\n\t\t\t\t\t\t\t\t\t{ element: \"employer-address\", field: \"Line1\", mode: pca.fieldMode.SEARCH },\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{ element: \"employer-postcode\", field: \"PostalCode\", mode: pca.fieldMode.SEARCH },\r\n\t\t\t\t\t\t\t\t],\r\n\t\t\t\t\t\t\temployerControl = new pca.Address(employer, options); \r\n\r\n\t\t\t\t\t\t\tcontrol.listen(\"populate\", function (address) {\r\n\t\t\t\t\t\t\t\tCanadaPostSubmit(address);\r\n\t\t\t\t\t\t\t\tparent.setState(state => {\r\n\t\t\t\t\t\t\t\t\tstate.model.AddressLine1 = address.Line1;\r\n\t\t\t\t\t\t\t\t\tstate.model.AddressLine2 = address.Line2;\r\n\t\t\t\t\t\t\t\t\tstate.model.ZipCode = address.PostalCode;\t\t\r\n\t\t\t\t\t\t\t\t\tstate.AddressType = \"Customer\";\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\treturn state;\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\temployerControl.listen(\"populate\", function (address) {\r\n\t\t\t\t\t\t\t\tCanadaPostSubmit(address);\r\n\t\t\t\t\t\t\t\tparent.setState(state => {\r\n\t\t\t\t\t\t\t\t\tstate.model.EmployerAddress = address.Line1;\r\n\t\t\t\t\t\t\t\t\tstate.model.EmployerZipCode = address.PostalCode;\r\n\t\t\t\t\t\t\t\t\tstate.AddressType = \"Employer\";\r\n\t\t\t\t\t\t\t\t\treturn state;\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t}); \r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t};\r\n\t\t\t\t},\r\n\t\t\t\te => {\r\n\t\t\t\t\tconsole.log(\"Canada Post Api key not fetched !\");\r\n\t\t\t\t}\r\n\t\t\t));\r\n\t}\r\n\r\n\tSubmitCanadaPostAddressModel = (model) => {\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Country/CanadaPost\",\r\n\t\t\tmodel,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tvar address = { ...this.state.model };\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tif (this.state.AddressType == \"Customer\"){\r\n\t\t\t\t\t\taddress.CountryId = responseData.Item.CountryId;\r\n\t\t\t\t\t\taddress.ProvinceId = responseData.Item.ProvinceId;\r\n\t\t\t\t\t\taddress.CityId = responseData.Item.CityId;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\taddress.EmployerCountryId = responseData.Item.CountryId;\r\n\t\t\t\t\t\taddress.EmployerProvinceId = responseData.Item.ProvinceId;\r\n\t\t\t\t\t\taddress.EmployerCityId = responseData.Item.CityId;\r\n\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t} \r\n\t\t\t\telse {\r\n\t\t\t\t\taddress.CountryId = 0;\r\n\t\t\t\t\taddress.ProvinceId = 0;\r\n\t\t\t\t\taddress.CityId = 0;\r\n\r\n\t\t\t\t\taddress.EmployerCountryId = 0;\r\n\t\t\t\t\taddress.EmployerProvinceId = 0;\r\n\t\t\t\t\taddress.EmployerCityId = 0; \r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ model: address,AddressType: null });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tLoadProgramsForUi = (temp) => {\r\n\t\tthis.loadTaskPool.AppendTask(\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/bankapi/v1.0/ClientCustomer/GetAllPrograms\",\r\n\t\t\t\t{ UniqueClientId: temp ? temp.UniqueClientId : 0 },\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\t\tthis.baseState.services = responseData.Item;\r\n\t\t\t\t\t\tthis.setState({ services: responseData.Item });\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t));\r\n\t}\r\n\r\n\thandleLoadTaskPoolCompleted = () => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\thandleLoadTaskPoolAppend = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst { model, tempModel, vModel } = this.state;\r\n\t\tmodel[name] = newValue;\r\n\r\n\t\tif (name == \"ClientTypeId\") {\r\n\t\t\tif (data == null) {\r\n\t\t\t\ttempModel.isPersonal = null;\r\n\t\t\t\tdelete model.CompanyLegalName;\r\n\t\t\t\tdelete model.BusinessIdNumber;\r\n\t\t\t\tdelete model.BusinessName;\r\n\t\t\t\tdelete model.CompanyName;\r\n\t\t\t\tdelete model.RegistrationName;\r\n\t\t\t\tdelete model.RetailName;\r\n\t\t\t\tdelete model.Name;\r\n\t\t\t\tdelete model.MiddleName;\r\n\t\t\t\tdelete model.SurName;\r\n\t\t\t\tdelete model.BirthDate;\r\n\t\t\t\tdelete model.OccupationId;\r\n\t\t\t\tdelete model.CustomerName;\r\n\r\n\t\t\t\tdelete model.PriorOccupationId;\r\n\t\t\t\tdelete model.GenderId;\r\n\r\n\t\t\t\tdelete model.IdentificationMethodId;\r\n\r\n\t\t\t\tdelete model.CustomerStatusId;\r\n\r\n\t\t\t} else {\r\n\t\t\t\tif (data.ParameterValue === ClientType.Personal) {\r\n\t\t\t\t\ttempModel.isPersonal = true;\r\n\t\t\t\t\tdelete model.CompanyLegalName;\r\n\t\t\t\t\tdelete model.BusinessIdNumber;\r\n\t\t\t\t\tdelete model.BusinessName;\r\n\t\t\t\t\tdelete model.CompanyName;\r\n\t\t\t\t\tdelete model.RegistrationName;\r\n\t\t\t\t\tdelete model.RetailName;\r\n\t\t\t\t}\r\n\t\t\t\tif (data.ParameterValue === ClientType.Corporate) {\r\n\t\t\t\t\ttempModel.isPersonal = false;\r\n\t\t\t\t\tdelete model.Name;\r\n\t\t\t\t\tdelete model.MiddleName;\r\n\t\t\t\t\tdelete model.SurName;\r\n\t\t\t\t\tdelete model.BirthDate;\r\n\t\t\t\t\tdelete model.OccupationId;\r\n\r\n\t\t\t\t\tdelete model.PriorOccupationId;\r\n\t\t\t\t\tdelete model.GenderId;\r\n\r\n\t\t\t\t\tdelete model.IdentificationMethodId;\r\n\r\n\t\t\t\t\tdelete model.EmployerAddress;\r\n\t\t\t\t\tdelete model.EmployerZipCode;\r\n\t\t\t\t\r\n\t\t\t\t\tdelete model.EmployerCountryId;\r\n\t\t\t\t\tdelete model.EmployerProvinceId;\r\n\t\t\t\t\tdelete model.EmployerCityId; \r\n\t\t\t\t\r\n\t\t\t\t}\r\n\r\n\t\t\t\tmodel.CustomerStatusId = (model.CustomerStatusId == 0 \r\n\t\t\t\t\t\t\t\t\t\t\t|| model.CustomerStatusId == \"undefined\"\r\n\t\t\t\t\t\t\t\t\t\t\t|| model.CustomerStatusId == null) \r\n\t\t\t\t\t\t\t\t? this.DefaultCustomerStatusId\r\n\t\t\t\t\t\t\t\t: model.CustomerStatusId; \r\n\t\t\t\t\r\n\t\t\t\tmodel.IdentityVerifiedBy = ClientHelper.GetUser().Email;\r\n\t\t\t\tmodel.IdentityVerificationDate = DateHelper.GetDateLocal();\r\n\t\t\t\tmodel.SecondaryIdentityVerifiedBy = ClientHelper.GetUser().Email;\r\n\t\t\t\tmodel.SecondaryIdentityVerificationDate = DateHelper.GetDateLocal();\r\n\t\t\t\t\t\r\n\t\t\t\tmodel.PrimaryDocumentReviewedBy = ClientHelper.GetUser().Email;\r\n\t\t\t\tmodel.PrimaryDocumentVerificationDate = DateHelper.GetDateLocal();\t\t\t\t\r\n\t\t\t\tmodel.SecondaryDocumentReviewedBy = ClientHelper.GetUser().Email;\r\n\t\t\t\tmodel.SecondaryDocumentVerificationDate = DateHelper.GetDateLocal();\r\n\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\r\n\t\tif (name == \"IsAutoGenerateCustomerNumber\") {\r\n\t\t\tvModel.ClientCustomerNumber = !newValue;\r\n\t\t\tif (!newValue)\r\n\t\t\t\tmodel.ClientCustomerNumber = \"\";\r\n\t\t}\r\n\r\n\t\tif (name == \"IdentificationMethodId\") {\r\n\t\t\t// model.MustFillIdVerification = data && (data.ParameterValue === IdentificationMethod.InPersonIDVerification || data.ParameterValue === IdentificationMethod.CreditFileMethod);\r\n\t\t\tmodel.MustFillIdVerification = false;\r\n\t\t\tmodel.IdentityVerifyingPersonId = null;\r\n\t\t\t\t\t\t\r\n\t\t\tswitch(newValue) {\r\n\t\t\t\tcase this.DualMethodId:\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// delete InPerson method\r\n\t\t\t\t\t\tdelete model.IdentityTypeId;\r\n\t\t\t\t\t\tdelete model.PrimaryProvincialIdentityTypeId;\r\n\t\t\t\t\t\tdelete model.IdentityPlaceOfIssue;\r\n\t\t\t\t\t\tdelete model.IdentityNumber;\r\n\t\t\t\t\t\tdelete model.IdentityExpireDate;\r\n\t\t\t\t\t\tdelete model.IdentityVerifiedBy;\r\n\t\t\t\t\t\tdelete model.IdentityVerificationDate;\r\n\r\n\t\t\t\t\t\tdelete model.SecondaryIdentityTypeId;\r\n\t\t\t\t\t\tdelete model.SecondaryProvincialIdentityTypeId;\r\n\t\t\t\t\t\tdelete model.SecondaryIdentityPlaceOfIssue;\r\n\t\t\t\t\t\tdelete model.SecondaryIdentityNumber;\r\n\t\t\t\t\t\tdelete model.SecondaryIdentityExpireDate;\r\n\t\t\t\t\t\tdelete model.SecondaryIdentityVerifiedBy;\r\n\t\t\t\t\t\tdelete model.SecondaryIdentityVerificationDate;\r\n\r\n\t\t\t\t\t\t// delete Credit File method\r\n\t\t\t\t\t\tdelete model.CreditAgencyId;\r\n\t\t\t\t\t\tdelete model.CreditFileNumber;\r\n\t\t\t\t\t\tdelete model.CreditFileCompletionDate;\r\n\r\n\t\t\t\t\t\tmodel.PrimaryDocumentReviewedBy = ClientHelper.GetUser().Email;\r\n\t\t\t\t\t\tmodel.PrimaryDocumentVerificationDate = DateHelper.GetDateLocal();\r\n\r\n\t\t\t\t\t\tmodel.SecondaryDocumentReviewedBy = ClientHelper.GetUser().Email;\r\n\t\t\t\t\t\tmodel.SecondaryDocumentVerificationDate = DateHelper.GetDateLocal();\r\n\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\tcase this.InPersonMethodId:\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// delete Dual method\r\n\t\t\t\t\t\tdelete model.PrimaryDocumentId;\r\n\t\t\t\t\t\tdelete model.PrimaryDocumentVerificationDate;\r\n\t\t\t\t\t\tdelete model.PrimaryDocumentNumber;\r\n\t\t\t\t\t\tdelete model.PrimaryDocumentReviewedBy;\r\n\r\n\t\t\t\t\t\tdelete model.SecondaryDocumentId;\r\n\t\t\t\t\t\tdelete model.SecondaryDocumentVerificationDate;\r\n\t\t\t\t\t\tdelete model.SecondaryDocumentNumber;\r\n\t\t\t\t\t\tdelete model.SecondaryDocumentReviewedBy;\r\n\r\n\t\t\t\t\t\t// delete Credit File method\r\n\t\t\t\t\t\tdelete model.CreditAgencyId;\r\n\t\t\t\t\t\tdelete model.CreditFileNumber;\r\n\t\t\t\t\t\tdelete model.CreditFileCompletionDate;\r\n\r\n\t\t\t\t\t\tmodel.IdentityVerifiedBy = ClientHelper.GetUser().Email;\r\n\t\t\t\t\t\tmodel.IdentityVerificationDate = DateHelper.GetDateLocal();\r\n\r\n\t\t\t\t\t\tmodel.SecondaryIdentityVerifiedBy = ClientHelper.GetUser().Email;\r\n\t\t\t\t\t\tmodel.SecondaryIdentityVerificationDate = DateHelper.GetDateLocal();\r\n\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\tcase this.CreditFileMethodId:\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// delete InPerson method\r\n\t\t\t\t\t\tdelete model.IdentityTypeId;\r\n\t\t\t\t\t\tdelete model.PrimaryProvincialIdentityTypeId;\r\n\t\t\t\t\t\tdelete model.IdentityPlaceOfIssue;\r\n\t\t\t\t\t\tdelete model.IdentityNumber;\r\n\t\t\t\t\t\tdelete model.IdentityExpireDate;\r\n\t\t\t\t\t\tdelete model.IdentityVerifiedBy;\r\n\t\t\t\t\t\tdelete model.IdentityVerificationDate;\r\n\r\n\t\t\t\t\t\tdelete model.SecondaryIdentityTypeId;\r\n\t\t\t\t\t\tdelete model.SecondaryProvincialIdentityTypeId;\r\n\t\t\t\t\t\tdelete model.SecondaryIdentityPlaceOfIssue;\r\n\t\t\t\t\t\tdelete model.SecondaryIdentityNumber;\r\n\t\t\t\t\t\tdelete model.SecondaryIdentityExpireDate;\r\n\t\t\t\t\t\tdelete model.SecondaryVerifiedBy;\r\n\t\t\t\t\t\tdelete model.SecondaryVerificationDate;\r\n\r\n\t\t\t\t\t\t// delete Dual method\r\n\t\t\t\t\t\tdelete model.PrimaryDocumentId;\r\n\t\t\t\t\t\tdelete model.PrimaryDocumentVerificationDate;\r\n\t\t\t\t\t\tdelete model.PrimaryDocumentNumber;\r\n\t\t\t\t\t\tdelete model.PrimaryDocumentReviewedBy;\r\n\r\n\t\t\t\t\t\tdelete model.SecondaryDocumentId;\r\n\t\t\t\t\t\tdelete model.SecondaryDocumentVerificationDate;\r\n\t\t\t\t\t\tdelete model.SecondaryDocumentNumber;\r\n\t\t\t\t\t\tdelete model.SecondaryDocumentReviewedBy;\r\n\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\tcase null:\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// delete InPerson method\r\n\t\t\t\t\t\tdelete model.IdentityTypeId;\r\n\t\t\t\t\t\tdelete model.PrimaryProvincialIdentityTypeId;\r\n\t\t\t\t\t\tdelete model.IdentityPlaceOfIssue;\r\n\t\t\t\t\t\tdelete model.IdentityNumber;\r\n\t\t\t\t\t\tdelete model.IdentityExpireDate;\r\n\t\t\t\t\t\tdelete model.IdentityVerifiedBy;\r\n\t\t\t\t\t\tdelete model.IdentityVerificationDate;\r\n\r\n\t\t\t\t\t\tdelete model.SecondaryIdentityTypeId;\r\n\t\t\t\t\t\tdelete model.SecondaryProvincialIdentityTypeId;\r\n\t\t\t\t\t\tdelete model.SecondaryIdentityPlaceOfIssue;\r\n\t\t\t\t\t\tdelete model.SecondaryIdentityNumber;\r\n\t\t\t\t\t\tdelete model.SecondaryIdentityExpireDate;\r\n\t\t\t\t\t\tdelete model.SecondaryVerifiedBy;\r\n\t\t\t\t\t\tdelete model.SecondaryVerificationDate;\r\n\r\n\t\t\t\t\t\t// delete Dual method\r\n\t\t\t\t\t\tdelete model.PrimaryDocumentId;\r\n\t\t\t\t\t\tdelete model.PrimaryDocumentVerificationDate;\r\n\t\t\t\t\t\tdelete model.PrimaryDocumentNumber;\r\n\t\t\t\t\t\tdelete model.PrimaryDocumentReviewedBy;\r\n\r\n\t\t\t\t\t\tdelete model.SecondaryDocumentId;\r\n\t\t\t\t\t\tdelete model.SecondaryDocumentVerificationDate;\r\n\t\t\t\t\t\tdelete model.SecondaryDocumentNumber;\r\n\t\t\t\t\t\tdelete model.SecondaryDocumentReviewedBy;\r\n\r\n\t\t\t\t\t\t// delete Credit File method\r\n\t\t\t\t\t\tdelete model.CreditAgencyId;\r\n\t\t\t\t\t\tdelete model.CreditFileNumber;\r\n\t\t\t\t\t\tdelete model.CreditFileCompletionDate;\r\n\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\r\n\t\tif (name == \"IdentityTypeId\") {\r\n\t\t\tmodel.IdentityNumber = null;\r\n\t\t\tmodel.IdentityTypeParameterValue2 = data && data.ParameterValue2;\r\n\t\t\tmodel.ProofOfResidenceId = null;\r\n\t\t}\r\n\r\n\t\tif (name === \"DontCheckCustomerInformation\" && newValue) {\r\n\t\t\tvar personalType = this.customerTypes.find(x => x.ParameterValue === ClientType.Personal);\r\n\t\t\tif (personalType)\r\n\t\t\t\tthis.HandleChange(\"ClientTypeId\", personalType.Id, personalType);\r\n\t\t}\r\n\r\n\t\tif (name == \"OccupationId\") {\r\n\t\t\tif (!this.retiredOrUnemployedOccupationIds.includes(newValue)) {\r\n\t\t\t\tdelete model.PriorOccupationId;\r\n\t\t\t}\r\n\t\t} \r\n\r\n\t\tthis.setState({ model, tempModel, vModel });\r\n\t}\r\n\r\n\tLoadCustomerData() {\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/ClientCustomer/Search\",\r\n\t\t\t{ Id: this.state.model.Id },\r\n\t\t\tresponseData => {\r\n\t\t\t\tconst responseItem = responseData.Item[0];\r\n\t\t\t\tconst model = { ...this.state.model, Accounts: responseItem?.Accounts }\r\n\t\t\t\tthis.setState({ model });\r\n\t\t\t},\r\n\t\t\tthis.ErrorCallback\r\n\t\t);\r\n\t}\r\n\tHandleChangeCustomer = (name, newValue, data) => {\r\n\t\tconst { model, ClientCustomerList: list } = this.state;\r\n\t\tvar index = list.findIndex(x => x.Id == newValue);\r\n\t\t\r\n\t\tif (index > -1) this.SelectedRowChange(index);\r\n\t\telse {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel[name] = newValue;\r\n\t\t\t\tthis.setState({ model, rowIndex: index });\r\n\t\t\t} else {\r\n\t\t\t\tthis.HandleClickClearOk();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.LoadCustomerData();\r\n\t}\r\n\r\n\tHandleChangeTempModel = (name, newValue) => {\r\n\t\tvar { tempModel } = this.state;\r\n\t\tif (name == \"isGenerateNew\" && newValue) {\r\n\t\t\tthis.HandleClear(newValue);\r\n\t\t} else {\r\n\t\t\ttempModel[name] = newValue;\r\n\t\t\tthis.setState({ tempModel });\r\n\t\t}\r\n\t}\r\n\r\n\tHandleChangeDDRRegistration = (name, newValue, data) => {\r\n\t\tvar { ddrModel } = this.state;\r\n\t\tif (name === \"IsDdrActiveId\") {\r\n\t\t\tddrModel.IsDdrActive = data.ParameterValue === \"true\";\r\n\t\t}\r\n\t\tddrModel[name] = newValue;\r\n\t\tthis.setState({ ddrModel });\r\n\t}\r\n\r\n\tHandleToggle = (value) => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst currentIndex = model.Programs.indexOf(value);\r\n\t\tconst newChecked = model.Programs;\r\n\r\n\t\tif (currentIndex === -1) {\r\n\t\t\tnewChecked.push(value);\r\n\t\t} else {\r\n\t\t\tnewChecked.splice(currentIndex, 1);\r\n\t\t}\r\n\r\n\t\tmodel.Programs = newChecked;\r\n\t\tthis.setState({ model });\r\n\r\n\t\tif (value === ProgramCodes.Bank_Programs_CDIC && currentIndex === -1) {\r\n\t\t\tthis.GetDCAccountList();\r\n\t\t}\r\n\t}\r\n\r\n\tHandleChangeAccount = (name, newValue, data) => {\r\n\t\tconst accountModel = { ...this.state.accountModel };\r\n\t\taccountModel[name] = newValue;\r\n\r\n\t\tif (name === \"FinancialInstitutionId\")\r\n\t\t\taccountModel.FinancialInstitution = data;\r\n\r\n\t\tif (name === \"FinancialInstitutionBranchId\")\r\n\t\t\taccountModel.FinancialInstitutionBranch = data;\r\n\r\n\t\tif (name == \"FinancialInstitutionId\" && data) {\r\n\t\t\taccountModel.BankNumber = data.FinancialInstitutionId;\r\n\t\t\taccountModel.FinancialInstitutionBranchId = null;\r\n\t\t\taccountModel.BranchNumber = null;\r\n\t\t}\r\n\r\n\t\tif (name == \"FinancialInstitutionBranchId\" && data) {\r\n\t\t\taccountModel.BranchNumber = data.TransitNumber;\r\n\t\t}\r\n\r\n\t\tthis.setState({ accountModel });\r\n\t}\r\n\r\n\tHandleChangeDCAccount = (name, newValue, data) => {\r\n\t\tconst DCAccountModel = { ...this.state.DCAccountModel };\r\n\t\tDCAccountModel[name] = newValue;\r\n\t\tthis.setState({ DCAccountModel });\r\n\t\tthis.GetDCAccountList(DCAccountModel);\r\n\t}\r\n\r\n\tGetWatchListCheckModel(clientCustomerId) {\r\n\t\tvar { wCheckModel } = this.state;\r\n\t\tthis.loadTaskPool.AppendTask(\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/amlkycapi/v1.0/FinScanSearchLog/CustomerWatchListCheck\",\r\n\t\t\t\t{\r\n\t\t\t\t\t\"ClientCustomerId\": clientCustomerId\r\n\t\t\t\t},\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\t\twCheckModel.ClientCustomerId = responseData.Item[\"ClientCustomerId\"];\r\n\t\t\t\t\t\twCheckModel.WatchListStatusId = responseData.Item[\"WatchListStatusId\"];\r\n\t\t\t\t\t\twCheckModel.WatchListStatusDescription = responseData.Item[\"WatchListStatusDescription\"];\r\n\t\t\t\t\t\twCheckModel.SearchResult = responseData.Item[\"WatchListSearchResult\"];\r\n\t\t\t\t\t\twCheckModel.LastReviewDate = responseData.Item[\"LastReviewDate\"];\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tthis.setState({ wCheckModel });\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\tthis.ErrorCallback\r\n\t\t));\r\n\t}\r\n\r\n\tHandleGetList = (temp) => {\r\n\t\tvar { model, tempModel, ReadOnly, wCheckModel } = this.state;\r\n\r\n\t\tthis.GetCustomerNameParameter(temp);\r\n\r\n\t\tif (!this.props.ForInsert) {\r\n\t\t\tthis.loadTaskPool.AppendTask(\r\n\t\t\t\tProxy.POST(\r\n\t\t\t\t\t\"/bankapi/v1.0/ClientCustomer/Search\",\r\n\t\t\t\t\ttemp ? { Id: temp.Id } : this.state.model,\r\n\t\t\t\t\tresponseData => {\r\n\t\t\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\t\t\tif (temp && responseData.Item.length === 1) {\r\n\t\t\t\t\t\t\t\tmodel = { ...responseData.Item[0] };\r\n\t\t\t\t\t\t\t\t// model.MustFillIdVerification = model.IdentificationMethod && (model.IdentificationMethod.ParameterValue === IdentificationMethod.InPersonIDVerification || model.IdentificationMethod.ParameterValue === IdentificationMethod.CreditFileMethod);\r\n\t\t\t\t\t\t\t\tmodel.MustFillIdVerification = false;\r\n\t\t\t\t\t\t\t\tif (temp.CDIC) {\r\n\t\t\t\t\t\t\t\t\tmodel.Programs.push(ProgramCodes.Bank_Programs_CDIC);\r\n\t\t\t\t\t\t\t\t\tReadOnly = true;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif (temp.CallCenter) {\r\n\t\t\t\t\t\t\t\t\tReadOnly = true;\r\n\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\ttempModel.isPersonal = model.ClientType.ParameterValue === ClientType.Personal ? true : model.ClientType.ParameterValue === ClientType.Corporate ? false : null;\r\n\r\n\t\t\t\t\t\t\t\t// create current FinScanSearchData search data string\r\n\t\t\t\t\t\t\t\tvar finScanSearchData = (!tempModel.isPersonal) \r\n\t\t\t\t\t\t\t\t\t\t? (model.CompanyLegalName + \";\" + model.CountryId)\r\n\t\t\t\t\t\t\t\t\t\t: (model.Name + \";\" + model.SurName + \";\" + model.CountryId \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t + \";\" + model.BirthDate);\r\n\t\t\t\t\t\t\t\tthis.setState({ FinScanSearchData: finScanSearchData });\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tvar IsIncludePrepaid = model.Programs.includes(\"WALLET\");\r\n\t\t\t\t\t\t\t\tvar IsIncludeLender = model.Programs.includes(ProgramCodes.Lender);\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// get Watch list check data for Wallet or Lender customers\r\n\t\t\t\t\t\t\t\tif ((IsIncludePrepaid || IsIncludeLender) \r\n\t\t\t\t\t\t\t\t\t\t\t&& (model.Id != wCheckModel.ClientCustomerId) ) {\r\n\t\t\t\t\t\t\t\t\tthis.GetWatchListCheckModel(model.Id);\r\n\t\t\t\t\t\t\t\t}\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tthis.setState({ ClientCustomerList: responseData.Item, model, tempModel, rowIndex: 0, ReadOnly, isEdit: ReadOnly === false });\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tthis.setState({ ClientCustomerList: responseData.Item });\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tthis.setState({ ClientCustomerList: [] });\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\tthis.ErrorCallback\r\n\t\t\t));\r\n\t\t}\r\n\t\telse {\r\n\t\t\talert(\"For Insert\");\r\n\t\t}\r\n\t}\r\n\r\n\tSelectedRowChange = (index) => {\r\n\t\tconst { tempModel, ddrModel } = this.state;\r\n\t\tconst list = [...this.state.ClientCustomerList];\r\n\t\tconst customer = Object.assign({}, list[index]);\r\n\r\n\t\t// Customer null ise hiç kod çalışmayacak şekle getirildi. Ama customer nesnesi null olsa da çalışacak bi kod varsa düzenleme yapılması gerek.\r\n\t\tif (customer == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (customer.ClientType != null) {\r\n\t\t\tif (customer.ClientType.ParameterValue === ClientType.Personal) {\r\n\t\t\t\ttempModel.isPersonal = true;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\ttempModel.isPersonal = false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\ttempModel.isGenerateNew = false;\r\n\r\n\t\tvar IsIncludePrepaid = customer.Programs.includes(\"WALLET\");\r\n\t\tvar IsIncludeLender = customer.Programs.includes(ProgramCodes.Lender);\r\n\r\n\t\t// get Watch list check data for Wallet or Lender customers\r\n\t\tif (IsIncludePrepaid || IsIncludeLender) {\r\n\t\t\tthis.GetWatchListCheckModel(customer.Id);\r\n\t\t}\t\t\t\t\t\t\r\n\r\n\t\tif (customer.Programs.includes(ProgramCodes.Bank_Programs_CDIC))\r\n\t\t\tthis.GetDCAccountList();\r\n\r\n\t\t// customer.MustFillIdVerification = customer.IdentificationMethod && (customer.IdentificationMethod.ParameterValue === IdentificationMethod.InPersonIDVerification || customer.IdentificationMethod.ParameterValue === IdentificationMethod.CreditFileMethod);\r\n\t\tcustomer.MustFillIdVerification = false;\r\n\r\n\t\tddrModel.InteracEmail = customer.InteracEmail;\r\n\t\tddrModel.IsDdrActiveId = customer.IsDdrActiveId;\r\n\t\tddrModel.IsDdrActive = customer.IsDdrActive;\r\n\t\tddrModel.WalletAccountId = customer.WalletAccountId;\r\n\r\n\t\tcustomer.IdentityTypeParameterValue2 = customer.IdentityType && customer.IdentityType.ParameterValue2;\r\n\t\tthis.setState({ model: { ...customer }, tempModel, rowIndex: index, isEdit: true, isDDRInquiryOpen: false, ddrModel });\r\n\t}\r\n\r\n\tHandleSubmit = () => {\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tthis.ShowConfirmMessage(\"warning\", this.state.model.Id > 0 ? \"Edit\" : \"Save\", \"Are you sure you want to save this customer ?\", () => this.HandleSubmitOk());\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model, tempModel, vModel, isEdit } = this.state;\r\n\r\n\t\tvar IsIncludeEFT = model.Programs.includes(ProgramCodes.Bank_Programs_EFT);\r\n\t\tvar IsIncludeET = model.Programs.includes(ProgramCodes.Bank_Programs_e_Transfer);\r\n\t\tvar IsIncludeCDIC = model.Programs.includes(ProgramCodes.Bank_Programs_CDIC);\r\n\t\tvar IsIncludePrepaid = model.Programs.includes(\"WALLET\");\r\n\t\tvar IsIncludeLender = model.Programs.includes(ProgramCodes.Lender);\r\n\t\tvar IsFilledPhoneNumber = model.PhoneCountryCodeId > 0 && model.PhoneNumber;\r\n\r\n\t\tvar IsEmailValid = StringHelper.VerifyEmail(model.Email);\r\n\r\n\t\tvar requireds = [];\r\n\r\n\t\trequireds.push({ ClientCustomerNumber: !model.IsAutoGenerateCustomerNumber && (model.ClientCustomerNumber == null || model.ClientCustomerNumber.length < this.maxLengthCustomerNumber.maxLength) });\r\n\t\trequireds.push({ NewCustomer: isEdit == false && !tempModel.isGenerateNew });\r\n\t\trequireds.push({ Program: (!model.DontCheckCustomerInformation && model.Programs.length == 0) });\r\n\t\trequireds.push({ Account: (model.Accounts.filter(x => x.IsRecordValid).length == 0 && IsIncludeEFT) });\r\n\t\trequireds.push({ ClientType: (model.ClientTypeId == null || model.ClientTypeId == undefined) });\r\n\t\t\r\n\t\t// requireds.push({ Email: (IsIncludeCDIC || (IsIncludeET && IsFilledPhoneNumber == false) || IsIncludeLender || IsIncludePrepaid) && (model.Email == null || model.Email == undefined || model.Email.trim() == \"\") });\r\n\t\t\r\n\t\trequireds.push({ Email: !IsFilledPhoneNumber && (IsIncludeLender || IsIncludePrepaid) \r\n\t\t\t\t\t\t\t\t&& (model.Email == null || model.Email == undefined || model.Email.trim() == \"\") });\r\n\r\n\t\trequireds.push({ EmailValid: !model.DontCheckCustomerInformation && (model.Email && model.Email.trim().length > 0 ? !IsEmailValid : false) });\r\n\t\trequireds.push({ FirstName: (model.DontCheckCustomerInformation || tempModel.isPersonal) && (model.Name == null || model.Name.trim() == \"\") });\r\n\t\trequireds.push({ LastName: (model.DontCheckCustomerInformation || tempModel.isPersonal) && (model.SurName == null || model.SurName.trim() == \"\") });\r\n\r\n\t\trequireds.push({ BirthDate: !model.DontCheckCustomerInformation && (tempModel.isPersonal && (IsIncludeCDIC || IsIncludeLender || IsIncludePrepaid)) && (model.BirthDate == null || model.BirthDate == \"\") });\r\n\r\n\t\trequireds.push({ CompanyLegalName: !model.DontCheckCustomerInformation && (tempModel.isPersonal == false) && (model.CompanyLegalName == null || model.CompanyLegalName.trim() == \"\") });\r\n\t\trequireds.push({ BusinessIdNumber: !model.DontCheckCustomerInformation && (tempModel.isPersonal == false) && (IsIncludeCDIC || IsIncludeEFT || IsIncludeET || IsIncludeLender || IsIncludePrepaid) && (model.BusinessIdNumber == null || model.BusinessIdNumber.trim() == \"\") });\r\n\t\trequireds.push({ BusinessName: !model.DontCheckCustomerInformation && (tempModel.isPersonal == false) && (model.BusinessName == null || model.BusinessName.trim() == \"\") });\r\n\t\trequireds.push({ CompanyName: !model.DontCheckCustomerInformation && (tempModel.isPersonal == false && IsIncludeET) && (model.CompanyName == null || model.CompanyName.trim() == \"\") });\r\n\t\trequireds.push({ RegistrationName: !model.DontCheckCustomerInformation && (tempModel.isPersonal == false && IsIncludeET) && (model.RegistrationName == null || model.RegistrationName.trim() == \"\") });\r\n\t\trequireds.push({ RetailName: !model.DontCheckCustomerInformation && (tempModel.isPersonal == false && IsIncludeET) && (model.RetailName == null || model.RetailName.trim() == \"\") });\r\n\t\t\r\n\t\t// requireds.push({ PhoneCountryCode: (IsIncludeCDIC || (IsIncludeET && !model.Email) || IsIncludeLender || IsIncludePrepaid) && !model.DontCheckCustomerInformation && (tempModel.isPersonal != null) && (model.PhoneCountryCodeId == null || model.PhoneCountryCodeId == undefined) });\r\n\t\trequireds.push({ PhoneCountryCode: !model.Email \r\n\t\t\t\t\t\t\t\t&& (IsIncludeLender || IsIncludePrepaid) \t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t&& (model.PhoneCountryCodeId == null || model.PhoneCountryCodeId == undefined) });\r\n\t\t\r\n\t\t// requireds.push({ PhoneNumber: (IsIncludeCDIC || (IsIncludeET && !model.Email) || IsIncludeLender || IsIncludePrepaid) && !model.DontCheckCustomerInformation && (tempModel.isPersonal != null) && (model.PhoneNumber == null || model.PhoneNumber.toString().trim() == \"\") });\r\n\t\trequireds.push({ PhoneNumber: !model.Email \r\n\t\t\t\t\t\t\t\t&& (IsIncludeLender || IsIncludePrepaid) \r\n\t\t\t\t\t\t\t\t&& (model.PhoneNumber == null || model.PhoneNumber.toString().trim() == \"\") });\r\n\r\n\t\trequireds.push({ Occupation: (model.DontCheckCustomerInformation || tempModel.isPersonal) \r\n\t\t\t\t\t\t\t\t&& (model.OccupationId == null) \r\n\t\t\t\t\t\t\t\t&& (IsIncludeLender || IsIncludePrepaid) });\r\n\t\t// requireds.push({ ValidationIdentityFields: (tempModel.isPersonal && (IsIncludePrepaid)) });\r\n\r\n\t\t// Validation od AddressLine1, PostalCode, Country, Province, City\r\n\t\t// has been added\r\n\t\trequireds.push({ AddressLine1: (IsIncludeLender || IsIncludePrepaid) && !model.DontCheckCustomerInformation && (model.AddressLine1 == null || model.AddressLine1.toString().trim() == \"\") });\r\n\t\trequireds.push({ ZipCode: (IsIncludeLender || IsIncludePrepaid) && !model.DontCheckCustomerInformation && (model.ZipCode == null || model.ZipCode.toString().trim() == \"\") });\r\n\t\trequireds.push({ CountryId: (IsIncludeLender || IsIncludePrepaid) && !model.DontCheckCustomerInformation && (model.CountryId == null || model.CountryId.toString().trim() == \"\") });\r\n\t\trequireds.push({ ProvinceId: (IsIncludeLender || IsIncludePrepaid) && !model.DontCheckCustomerInformation && (model.ProvinceId == null || model.ProvinceId.toString().trim() == \"\") });\r\n\t\trequireds.push({ CityId: (IsIncludeLender || IsIncludePrepaid) && !model.DontCheckCustomerInformation && (model.CityId == null || model.CityId.toString().trim() == \"\") });\r\n\r\n\t\trequireds.push({ CustomerStatus: (model.CustomerStatusId == null || model.CustomerStatusId == undefined) \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t&& (IsIncludeLender || IsIncludePrepaid)});\r\n\r\n\t\trequireds.push({ Gender: (model.DontCheckCustomerInformation || tempModel.isPersonal) \r\n\t\t\t\t\t\t\t\t\t\t&& (IsIncludeLender || IsIncludePrepaid)\r\n\t\t\t\t\t\t\t\t\t\t&& (model.GenderId == null || model.GenderId.toString().trim() == \"\") });\r\n\t\t\r\n\t\trequireds.push({ PriorOccupation: (model.DontCheckCustomerInformation || tempModel.isPersonal) \r\n\t\t\t\t\t\t\t&& (model.PriorOccupationId == null || model.PriorOccupationId.toString().trim() == \"\")\r\n\t\t\t\t\t\t\t&& this.retiredOrUnemployedOccupationIds.includes(model.OccupationId) \r\n\t\t\t\t\t\t\t&& (IsIncludeLender || IsIncludePrepaid) });\r\n\t\t\r\n\t\trequireds.push({ IdentificationMethodId: (IsIncludeLender || IsIncludePrepaid) \r\n\t\t\t\t\t\t\t\t&& tempModel.isPersonal \r\n\t\t\t\t\t\t\t\t&& (model.IdentificationMethodId == null || model.IdentificationMethodId.toString().trim() == \"\") });\r\n\r\n\t\trequireds.push({ CreditAgency: (IsIncludeLender || IsIncludePrepaid) \r\n\t\t\t\t\t\t\t&& tempModel.isPersonal \r\n\t\t\t\t\t\t\t&& (model.CreditAgencyId == null || model.CreditAgencyId.toString().trim() == \"\") \r\n\t\t\t\t\t\t && model.IdentificationMethodId == this.CreditFileMethodId});\r\n\r\n\t\trequireds.push({ CreditFile: (IsIncludeLender || IsIncludePrepaid) \r\n\t\t\t\t\t\t\t&& tempModel.isPersonal \r\n\t\t\t\t\t\t\t&& (model.CreditFileNumber == null || model.CreditFileNumber.trim() == \"\") \r\n\t\t\t\t\t\t\t&& model.IdentificationMethodId == this.CreditFileMethodId});\r\n\r\n\t\trequireds.push({ CreditFileCompletionDate: (IsIncludeLender || IsIncludePrepaid) \r\n\t\t\t\t\t\t\t&& tempModel.isPersonal \r\n\t\t\t\t\t\t\t&& (model.CreditFileCompletionDate == null || model.CreditFileCompletionDate == \"\") \r\n\t\t\t\t\t\t\t&& model.IdentificationMethodId == this.CreditFileMethodId});\r\n\t\t\r\n\t\trequireds.push({ PrimaryDocument: (IsIncludeLender || IsIncludePrepaid) \r\n\t\t\t\t\t\t\t&& tempModel.isPersonal \r\n\t\t\t\t\t\t\t&& (model.PrimaryDocumentId == null || model.PrimaryDocumentId.toString().trim() == \"\") \r\n\t\t\t\t\t\t\t&& model.IdentificationMethodId == this.DualMethodId});\r\n\r\n\t\trequireds.push({ PrimaryDocumentVerificationDate: (IsIncludeLender || IsIncludePrepaid) \r\n\t\t\t\t\t\t\t&& tempModel.isPersonal \r\n\t\t\t\t\t\t\t&& (model.PrimaryDocumentVerificationDate == null || model.PrimaryDocumentVerificationDate == \"\") \r\n\t\t\t\t\t\t\t&& model.IdentificationMethodId == this.DualMethodId});\r\n\r\n\t\trequireds.push({ PrimaryDocumentNumber: (IsIncludeLender || IsIncludePrepaid) \r\n\t\t\t\t\t\t\t&& tempModel.isPersonal \r\n\t\t\t\t\t\t\t&& (model.PrimaryDocumentNumber == null || model.PrimaryDocumentNumber.trim() == \"\") \r\n\t\t\t\t\t\t\t&& model.IdentificationMethodId == this.DualMethodId});\r\n\r\n\t\trequireds.push({ PrimaryDocumentReviewedBy: (IsIncludeLender || IsIncludePrepaid) \r\n\t\t\t\t\t\t\t&& tempModel.isPersonal \r\n\t\t\t\t\t\t\t&& (model.PrimaryDocumentReviewedBy == null || model.PrimaryDocumentReviewedBy.trim() == \"\") \r\n\t\t\t\t\t\t\t&& model.IdentificationMethodId == this.DualMethodId});\r\n\t\t\r\n\t\trequireds.push({ IdentityType: (IsIncludeLender || IsIncludePrepaid) \r\n\t\t\t\t\t\t\t&& tempModel.isPersonal \r\n\t\t\t\t\t\t\t&& (model.IdentityTypeId == null || model.IdentityTypeId.toString().trim() == \"\") \r\n\t\t\t\t\t\t\t&& model.IdentificationMethodId == this.InPersonMethodId});\r\n\r\n\t\trequireds.push({ ProvincialIdentityType: (IsIncludeLender || IsIncludePrepaid) \r\n\t\t\t\t\t\t\t&& tempModel.isPersonal \r\n\t\t\t\t\t\t\t&& (model.PrimaryProvincialIdentityTypeId == null || model.PrimaryProvincialIdentityTypeId.toString().trim() == \"\") \r\n\t\t\t\t\t\t\t&& this.specificIdentityTypesIds.includes(model.IdentityTypeId) \r\n\t\t\t\t\t\t\t&& model.IdentificationMethodId == this.InPersonMethodId});\r\n\r\n\t\trequireds.push({ IdentityPlaceOfIssue: (IsIncludeLender || IsIncludePrepaid) \r\n\t\t\t\t\t\t\t&& tempModel.isPersonal \r\n\t\t\t\t\t\t\t&& (model.IdentityPlaceOfIssue == null || model.IdentityPlaceOfIssue.trim() == \"\") \r\n\t\t\t\t\t\t\t&& model.IdentificationMethodId == this.InPersonMethodId});\r\n\r\n\t\trequireds.push({ IdentityNumber: (IsIncludeLender || IsIncludePrepaid) \r\n\t\t\t\t\t\t\t&& tempModel.isPersonal \r\n\t\t\t\t\t\t\t&& (model.IdentityNumber == null || model.IdentityNumber.trim() == \"\") \r\n\t\t\t\t\t\t\t&& model.IdentificationMethodId == this.InPersonMethodId});\r\n\r\n\t\trequireds.push({ IdentityExpireDate: (IsIncludeLender || IsIncludePrepaid) \r\n\t\t\t\t\t\t\t&& tempModel.isPersonal \r\n\t\t\t\t\t\t\t&& (model.IdentityExpireDate == null || model.IdentityExpireDate == \"\") \r\n\t\t\t\t\t\t\t&& model.IdentificationMethodId == this.InPersonMethodId});\r\n\r\n\t\trequireds.push({ IdentityVerifiedBy: (IsIncludeLender || IsIncludePrepaid) \r\n\t\t\t\t\t\t\t&& tempModel.isPersonal \r\n\t\t\t\t\t\t\t&& (model.IdentityVerifiedBy == null || model.IdentityVerifiedBy.trim() == \"\") \r\n\t\t\t\t\t\t\t&& model.IdentificationMethodId == this.InPersonMethodId});\r\n\r\n\t\trequireds.push({ IdentityVerificationDate: (IsIncludeLender || IsIncludePrepaid) \r\n\t\t\t\t\t\t\t&& tempModel.isPersonal \r\n\t\t\t\t\t\t\t&& (model.IdentityVerificationDate == null || model.IdentityVerificationDate == \"\") \r\n\t\t\t\t\t\t\t&& model.IdentificationMethodId == this.InPersonMethodId});\r\n\r\n\t\tvar messages = [];\r\n\t\tif (requireds.find(x => x.NewCustomer == true)) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Add New Customer must be selected!\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (requireds.find(x => x.ClientCustomerNumber == true)) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Please enter a valid client customer number or select Auto-Generate checkbox!\");\r\n\t\t\tvModel.ClientCustomerNumber = true;\r\n\t\t\treturn false;\r\n\t\t} else {\r\n\t\t\tvModel.ClientCustomerNumber = false;\r\n\t\t}\r\n\r\n\t\tif (requireds.find(x => x.Program == true)) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Must be at least one program!\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (requireds.find(x => x.Account == true)) {\r\n\t\t\tvModel.ExternalAccount = true;\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Must be at least one account!\");\r\n\t\t\treturn false;\r\n\t\t} else {\r\n\t\t\tvModel.ExternalAccount = false;\r\n\t\t}\r\n\r\n\t\tif (requireds.find(x => x.ClientType == true)) {\r\n\t\t\tvModel.ClientType = true;\r\n\t\t\tmessages.push(\"Customer Type cannot be empty\");\r\n\t\t} else {\r\n\t\t\tvModel.ClientType = false;\r\n\t\t}\r\n\r\n\t\tif (requireds.find(x => x.CustomerStatus == true)) {\r\n\t\t\tvModel.CustomerStatus = true;\r\n\t\t\tmessages.push(\"Customer Status cannot be empty\");\r\n\t\t} else {\r\n\t\t\tvModel.CustomerStatus = false;\r\n\t\t}\r\n\r\n\t\tif (requireds.find(x => x.Email == true)) {\r\n\t\t\tif (IsIncludeET) {\r\n\t\t\t\tvModel.PhoneCountryCode = requireds.find(x => x.PhoneCountryCode == true);\r\n\t\t\t\tvModel.PhoneNumber = requireds.find(x => x.PhoneNumber == true);\r\n\t\t\t\tmessages.push(\"Either E-Mail or Phone Country Code and Phone Number must be defined.\");\r\n\t\t\t} else {\r\n\t\t\t\tmessages.push(\"E-Mail cannot be empty\");\r\n\t\t\t}\r\n\t\t\tvModel.Email = true;\r\n\t\t} else {\r\n\t\t\tvModel.Email = false;\r\n\t\t}\r\n\r\n\t\tif (requireds.find(x => x.EmailValid == true)) {\r\n\t\t\tvModel.Email = true;\r\n\t\t\tmessages.push(\"E-Mail is invalid\");\r\n\t\t} else if (requireds.find(x => x.EmailValid == false)) {\r\n\t\t\tvModel.Email = false;\r\n\t\t}\r\n\r\n\t\tif (requireds.find(x => x.ValidationIdentityFields == true)) {\r\n\t\t\tvar identityMessages = this.ValidationIdentityFields();\r\n\t\t\tidentityMessages.map(msg => {\r\n\t\t\t\tmessages.push(msg);\r\n\t\t\t\treturn null;\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tif (requireds.find(x => x.FirstName == true)) {\r\n\t\t\tvModel.FirstName = true;\r\n\t\t\tmessages.push(\"First Name cannot be empty\");\r\n\t\t} else {\r\n\t\t\tvModel.FirstName = false;\r\n\t\t}\r\n\r\n\t\tif (requireds.find(x => x.Occupation == true)) {\r\n\t\t\tvModel.Occupation = true;\r\n\t\t\tmessages.push(\"Occupation cannot be empty\");\r\n\t\t} else {\r\n\t\t\tvModel.Occupation = false;\r\n\t\t}\r\n\r\n\t\tif (requireds.find(x => x.PriorOccupation == true)) {\r\n\t\t\tvModel.PriorOccupation = true;\r\n\t\t\tmessages.push(\"Prior Occupation cannot be empty\");\r\n\t\t} else {\r\n\t\t\tvModel.PriorOccupation = false;\r\n\t\t}\r\n\r\n\t\tif (requireds.find(x => x.LastName == true)) {\r\n\t\t\tvModel.LastName = true;\r\n\t\t\tmessages.push(\"Last Name cannot be empty\");\r\n\t\t} else {\r\n\t\t\tvModel.LastName = false;\r\n\t\t}\r\n\r\n\t\tif (requireds.find(x => x.BirthDate == true)) {\r\n\t\t\tvModel.BirthDate = true;\r\n\t\t\tmessages.push(\"Birth Date cannot be empty\");\r\n\t\t} else {\r\n\t\t\tvModel.BirthDate = false;\r\n\t\t}\r\n\r\n\t\tif (requireds.find(x => x.CompanyLegalName == true)) {\r\n\t\t\tvModel.CompanyLegalName = true;\r\n\t\t\tmessages.push(\"Company Legal Name cannot be empty\");\r\n\t\t} else {\r\n\t\t\tvModel.CompanyLegalName = false;\r\n\t\t}\r\n\r\n\t\tif (requireds.find(x => x.BusinessIdNumber == true)) {\r\n\t\t\tvModel.BusinessIdNumber = true;\r\n\t\t\tmessages.push(\"Business Id Number cannot be empty\");\r\n\t\t} else {\r\n\t\t\tvModel.BusinessIdNumber = false;\r\n\t\t}\r\n\r\n\t\tif (requireds.find(x => x.BusinessName == true)) {\r\n\t\t\tvModel.BusinessName = true;\r\n\t\t\tmessages.push(\"Business Name cannot be empty\");\r\n\t\t} else {\r\n\t\t\tvModel.BusinessName = false;\r\n\t\t}\r\n\r\n\t\tif (requireds.find(x => x.CompanyName == true)) {\r\n\t\t\tvModel.CompanyName = true;\r\n\t\t\tmessages.push(\"Company Name cannot be empty\");\r\n\t\t} else {\r\n\t\t\tvModel.CompanyName = false;\r\n\t\t}\r\n\r\n\t\tif (requireds.find(x => x.RegistrationName == true)) {\r\n\t\t\tvModel.RegistrationName = true;\r\n\t\t\tmessages.push(\"Registration Name cannot be empty\");\r\n\t\t} else {\r\n\t\t\tvModel.RegistrationName = false;\r\n\t\t}\r\n\r\n\t\tif (requireds.find(x => x.RetailName == true)) {\r\n\t\t\tvModel.RetailName = true;\r\n\t\t\tmessages.push(\"Retail Name cannot be empty\");\r\n\t\t} else {\r\n\t\t\tvModel.RetailName = false;\r\n\t\t}\r\n\r\n\t\tif (requireds.find(x => x.PhoneCountryCode == true) && !IsIncludeET) {\r\n\t\t\tvModel.PhoneCountryCode = true;\r\n\t\t\tmessages.push(\"Phone Country Code cannot be empty\");\r\n\t\t} else {\r\n\t\t\tvModel.PhoneCountryCode = false;\r\n\t\t}\r\n\r\n\t\tif (requireds.find(x => x.PhoneNumber == true) && !IsIncludeET) {\r\n\t\t\tvModel.PhoneNumber = true;\r\n\t\t\tmessages.push(\"Phone Number cannot be empty\");\r\n\t\t} else {\r\n\t\t\tvModel.PhoneNumber = false;\r\n\t\t}\r\n\r\n\t\tif (model.PhoneNumber != undefined && model.PhoneNumber != null \r\n\t\t\t\t\t\t&& model.PhoneNumber != \"\"\t\r\n\t\t\t\t\t\t&& !StringHelper.IsValidatePhone(model.PhoneNumber.toString())) {\r\n\t\t\tvModel.PhoneNumber = true;\r\n\t\t\tmessages.push(\"Phone Number is invalid\");\r\n\t\t}\r\n\r\n\t\tif (requireds.find(x => x.Gender == true)) {\r\n\t\t\tmessages.push(\"Gender cannot be empty\");\r\n\t\t\tvModel.Gender = true;\r\n\t\t} else {\r\n\t\t\tvModel.Gender = false;\r\n\t\t} \r\n\r\n\t\tif (requireds.find(x => x.AddressLine1 == true)) {\r\n\t\t\tmessages.push(\"Address cannot be empty\");\r\n\t\t\tvModel.AddressLine1 = true;\r\n\t\t} else {\r\n\t\t\tvModel.AddressLine1 = false;\r\n\t\t}\r\n\r\n\t\tif (requireds.find(x => x.ZipCode == true)) {\r\n\t\t\tmessages.push(\"Postal Code cannot be empty\");\r\n\t\t\tvModel.PostalCode = true;\r\n\t\t} else {\r\n\t\t\tvModel.PostalCode = false;\r\n\t\t}\r\n\r\n\t\tif (requireds.find(x => x.CountryId == true)) {\r\n\t\t\tmessages.push(\"Country cannot be empty\");\r\n\t\t\tvModel.CountryId = true;\r\n\t\t} else {\r\n\t\t\tvModel.CountryId = false;\r\n\t\t}\r\n\r\n\t\tif (requireds.find(x => x.ProvinceId == true)) {\r\n\t\t\tmessages.push(\"Province cannot be empty\");\r\n\t\t\tvModel.ProvinceId = true;\r\n\t\t} else {\r\n\t\t\tvModel.ProvinceId = false;\r\n\t\t}\r\n\r\n\t\tif (requireds.find(x => x.CityId == true)) {\r\n\t\t\tmessages.push(\"City cannot be empty\");\r\n\t\t\tvModel.CityId = true;\r\n\t\t} else {\r\n\t\t\tvModel.CityId = false;\r\n\t\t}\r\n\r\n\t\tif (requireds.find(x => x.IdentificationMethodId == true)) {\r\n\t\t\tmessages.push(\"Identification Method cannot be empty\");\r\n\t\t\tvModel.IdentificationMethodId = true;\r\n\t\t} else {\r\n\t\t\tvModel.IdentificationMethodId = false;\r\n\t\t}\r\n\r\n\t\tif (requireds.find(x => x.CreditAgency == true)) {\r\n\t\t\tmessages.push(\"Credit Agency cannot be empty\");\r\n\t\t\tvModel.CreditAgencyId = true;\r\n\t\t} else {\r\n\t\t\tvModel.CreditAgencyId = false;\r\n\t\t}\r\n\r\n\t\tif (requireds.find(x => x.CreditFile == true)) {\r\n\t\t\tmessages.push(\"Credit File Number cannot be empty\");\r\n\t\t\tvModel.CreditFileNumber = true;\r\n\t\t} else {\r\n\t\t\tvModel.CreditFileNumber = false;\r\n\t\t}\r\n\r\n\t\tif (requireds.find(x => x.CreditFileCompletionDate == true)) {\r\n\t\t\tmessages.push(\"Credit File Completion Date Number cannot be empty\");\r\n\t\t\tvModel.CreditFileCompletionDate = true;\r\n\t\t} else {\r\n\t\t\tvModel.CreditFileCompletionDate = false;\r\n\t\t}\r\n\r\n\t\tif (requireds.find(x => x.PrimaryDocument == true)) {\r\n\t\t\tmessages.push(\"Document cannot be empty\");\r\n\t\t\tvModel.PrimaryDocumentId = true;\r\n\t\t} else {\r\n\t\t\tvModel.PrimaryDocumentId = false;\r\n\t\t}\r\n\r\n\t\tif (requireds.find(x => x.PrimaryDocumentVerificationDate == true)) {\r\n\t\t\tmessages.push(\"Verification Date cannot be empty\");\r\n\t\t\tvModel.PrimaryDocumentVerificationDate = true;\r\n\t\t} else {\r\n\t\t\tvModel.PrimaryDocumentVerificationDate = false;\r\n\t\t}\r\n\r\n\t\tif (requireds.find(x => x.PrimaryDocumentNumber == true)) {\r\n\t\t\tmessages.push(\"Document Number cannot be empty\");\r\n\t\t\tvModel.PrimaryDocumentNumber = true;\r\n\t\t} else {\r\n\t\t\tvModel.PrimaryDocumentNumber = false;\r\n\t\t}\r\n\r\n\t\tif (requireds.find(x => x.PrimaryDocumentReviewedBy == true)) {\r\n\t\t\tmessages.push(\"Reviewed By cannot be empty\");\r\n\t\t\tvModel.PrimaryDocumentReviewedBy = true;\r\n\t\t} else {\r\n\t\t\tvModel.PrimaryDocumentReviewedBy = false;\r\n\t\t}\r\n\r\n\t\tif (requireds.find(x => x.IdentityType == true)) {\r\n\t\t\tmessages.push(\"Identity type cannot be empty\");\r\n\t\t\tvModel.IdentityTypeId = true;\r\n\t\t} else {\r\n\t\t\tvModel.IdentityTypeId = false;\r\n\t\t}\r\n\r\n\t\tif (requireds.find(x => x.IdentityPlaceOfIssue == true)) {\r\n\t\t\tmessages.push(\"Place of Issue cannot be empty\");\r\n\t\t\tvModel.IdentityPlaceOfIssue = true;\r\n\t\t} else {\r\n\t\t\tvModel.IdentityPlaceOfIssue = false;\r\n\t\t}\r\n\r\n\t\tif (requireds.find(x => x.IdentityNumber == true)) {\r\n\t\t\tmessages.push(\"Identity Number cannot be empty\");\r\n\t\t\tvModel.IdentityNumber = true;\r\n\t\t} else {\r\n\t\t\tvModel.IdentityNumber = false;\r\n\t\t}\r\n\r\n\t\tif (requireds.find(x => x.IdentityExpireDate == true)) {\r\n\t\t\tmessages.push(\"Identity Expire Date cannot be empty\");\r\n\t\t\tvModel.IdentityExpireDate = true;\r\n\t\t} else {\r\n\t\t\tvModel.IdentityExpireDate = false;\r\n\t\t}\r\n\r\n\t\tif (requireds.find(x => x.IdentityVerifiedBy == true)) {\r\n\t\t\tmessages.push(\"Verified By cannot be empty\");\r\n\t\t\tvModel.IdentityVerifiedBy = true;\r\n\t\t} else {\r\n\t\t\tvModel.IdentityVerifiedBy = false;\r\n\t\t}\r\n\r\n\t\tif (requireds.find(x => x.IdentityVerificationDate == true)) {\r\n\t\t\tmessages.push(\"Verification Date cannot be empty\");\r\n\t\t\tvModel.IdentityVerificationDate = true;\r\n\t\t} else {\r\n\t\t\tvModel.IdentityVerificationDate = false;\r\n\t\t}\r\n\r\n\t\tif (requireds.find(x => x.ProvincialIdentityType == true)) {\r\n\t\t\tmessages.push(\"Provincial Id Type cannot be empty\");\r\n\t\t\tvModel.ProvincialIdentityTypeId = true;\r\n\t\t} else {\r\n\t\t\tvModel.ProvincialIdentityTypeId = false;\r\n\t\t}\r\n\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.setState({ vModel });\r\n\t\treturn true;\r\n\t}\r\n\r\n\tHandleDelete = () => {\r\n\t\tif (!this.state.model.Id) {\r\n\t\t\tthis.setState({\r\n\t\t\t\talert: this.HideAlert()} />\r\n\t\t\t});\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.ShowConfirmMessage(\"warning\", \"Delete\", \"Are you sure you want to inactive this customer ?\", () => this.HandleClickDeleteOk());\r\n\t\t}\r\n\t}\r\n\r\n\tHandleClickDeleteOk = () => {\r\n\t\tthis.HideAlert();\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.GET(\r\n\t\t\t\"/bankapi/v1.0/ClientCustomer/Delete/Id?Id=\" + this.state.model.Id,\r\n\t\t\tthis.SuccessDeleteCallback,\r\n\t\t\tthis.ErrorCallback\r\n\t\t);\r\n\t}\r\n\r\n\tHandleClear = (isGenerateNew) => {\r\n\t\tthis.ShowConfirmMessage(\"warning\", \"Clear\", \"This will erase the information you entered on the screen. Are you sure you want to quit this customer ?\", () => this.HandleClickClearOk(isGenerateNew));\r\n\t}\r\n\r\n\tHandleClickClearOk = (isGenerateNew) => {\r\n\t\tthis.setState(function (state) {\r\n\t\t\tthis.baseState.ClientCustomerList = state.ClientCustomerList;\r\n\t\t\tstate = this.baseState;\r\n\t\t\tstate.model = {\r\n\t\t\t\tId: 0,\r\n\t\t\t\tAccounts: [],\r\n\t\t\t\tWalletAccounts: [],\r\n\t\t\t\tPrograms: this.props.Programs || [],\r\n\t\t\t\tUniqueClientId: ClientHelper.GetClientRowId()\r\n\t\t\t};\r\n\t\t\tstate.tempModel = {\r\n\t\t\t\tisGenerateNew: this.props.ForInsert || this.props.ForUpdate || isGenerateNew,\r\n\t\t\t\tisPersonal: null\r\n\t\t\t};\r\n\t\t\tstate.ddrModel = {};\r\n\t\t\tstate.rowIndex = -1;\r\n\t\t\treturn state;\r\n\t\t});\r\n\t}\r\n\r\n\tHandleNext = () => {\r\n\t\tconst { model, tempModel } = this.state;\r\n\r\n\t\tif (tempModel.isPersonal)\r\n\t\t\tmodel.CustomerName = model.Name + \" \" + model.SurName;\r\n\t\telse\r\n\t\t\tmodel.CustomerName = model.CompanyLegalName;\r\n\r\n\t\tthis.loadTaskPool.AppendTask(\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/amlkycapi/v1.0/AmlKycCheck/KycCheck\",\r\n\t\t\t\t{\r\n\t\t\t\t\tMenuCode: MenuCodes.CustomerDefinition,\r\n\t\t\t\t\tActionCode: \"Submit\",\r\n\t\t\t\t\tJsonData: JSON.stringify(model)\r\n\t\t\t\t},\r\n\t\t\t\t(responseData) => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\t\tif (responseData.Item.Result) {\r\n\t\t\t\t\t\t\tthis.setState({ handledByNext: true }, () => this.HandleSubmit());\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.Item.Reason);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\tthis.ErrorCallback\r\n\t\t\t));\r\n\t}\r\n\r\n\tCheckOld = () => {\r\n\t\tvar interval = moment.duration(DateHelper.GetDate() - DateHelper.ToMoment(this.state.model.BirthDate)).asYears();\r\n\t\tif (interval < 18) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\tGetDCAccountList = (model) => {\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/ClientCustomer/GetAllAccounts\",\r\n\t\t\t{\r\n\t\t\t\tAccountNumber: model ? model.AccountNumber : this.state.DCAccountModel.AccountNumber,\r\n\t\t\t\tClientCustomerId: this.state.model.Id\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ CDICAccounts: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tValidationIdentityFields = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tvar messages = [];\r\n\r\n\t\tif (model.IdentificationMethodId == null) {\r\n\t\t\tvModel.IdentificationMethodId = true;\r\n\t\t\tmessages.push(\"Identity Method cannot be empty\");\r\n\t\t} else {\r\n\t\t\tvModel.IdentificationMethodId = false;\r\n\t\t}\r\n\r\n\t\tif (model.MustFillIdVerification && model.IdentityVerifyingPersonId == null) {\r\n\t\t\tvModel.IdentityVerifyingPersonId = true;\r\n\t\t\tmessages.push(\"Person Verifying cannot be empty\");\r\n\t\t} else {\r\n\t\t\tvModel.IdentityVerifyingPersonId = false;\r\n\t\t}\r\n\r\n\t\tif (model.IdentityTypeId == null) {\r\n\t\t\tvModel.IdentityTypeId = true;\r\n\t\t\tmessages.push(\"Identity Type cannot be empty\");\r\n\t\t} else {\r\n\t\t\tvModel.IdentityTypeId = false;\r\n\t\t}\r\n\r\n\t\tif (model.IdentityNumber == null || model.IdentityNumber.trim() == \"\") {\r\n\t\t\tvModel.IdentityNumber = true;\r\n\t\t\tmessages.push(\"Identity Number cannot be empty\");\r\n\t\t} else {\r\n\t\t\tvModel.IdentityNumber = false;\r\n\t\t}\r\n\r\n\t\tif (model.IdentityPlaceOfIssue == null || model.IdentityPlaceOfIssue.trim() == \"\") {\r\n\t\t\tvModel.IdentityPlaceOfIssue = true;\r\n\t\t\tmessages.push(\"Identity Place of Issue cannot be empty\");\r\n\t\t} else {\r\n\t\t\tvModel.IdentityPlaceOfIssue = false;\r\n\t\t}\r\n\r\n\t\tif (model == null || model.IdentityExpireDate == null) {\r\n\t\t\tvModel.IdentityExpireDate = true;\r\n\t\t\tmessages.push(\"Identity Expire Date cannot be empty\");\r\n\t\t} else {\r\n\t\t\tmodel.IdentityExpireDate = DateHelper.ToMoment(model.IdentityExpireDate);\r\n\t\t\tif (!model.IdentityExpireDate.isValid()) {\r\n\t\t\t\tvModel.IdentityExpireDate = true;\r\n\t\t\t\tmessages.push(\"Identity Expire Date must be valid!\");\r\n\t\t\t}\r\n\t\t\tvar interval1 = model.IdentityExpireDate.diff(DateHelper.GetDate(), \"days\");\r\n\t\t\tif (interval1 < 30) {\r\n\t\t\t\tvModel.IdentityExpireDate = true;\r\n\t\t\t\tmessages.push(\"Identity Expiration Date must be valid within the next 30 days!\");\r\n\t\t\t} else {\r\n\t\t\t\tvModel.IdentityExpireDate = false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Identity number check by IdentityTypeId\r\n\t\tif (model.IdentityType && model.IdentityType.ParameterValue == null) {\r\n\t\t\tvModel.IdentityTypeId = true;\r\n\t\t\tmessages.push(\"Identity Type must be valid!\");\r\n\t\t}\r\n\r\n\t\tthis.setState({ vModel });\r\n\t\treturn messages;\r\n\t}\r\n\r\n\tHandleSubmitOk = () => {\r\n\t\tthis.HideAlert();\r\n\t\tvar CheckOld = true;\r\n\t\tif (this.state.model.BirthDate)\r\n\t\t\tCheckOld = this.CheckOld();\r\n\r\n\t\tif (CheckOld) {\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tvar model = { ...this.state.model };\r\n\t\t\tdelete model.CustomerName;\r\n\r\n\t\t\tvar isNewCustomer = (model.Id == 0);\r\n\r\n\t\t\t// create current FinScanSearchData search data string and\r\n\t\t\t// compare it with existing search data\r\n\t\t\tvar curFinScanSearchData = (!isNewCustomer) ? this.state.FinScanSearchData : null;\r\n\r\n\t\t\tvar newFinScanSearchData = (isNewCustomer) ? null\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t : (\r\n\t\t\t\t\t\t\t\t\t\t(model.ClientType.ParameterValue === ClientType.Corporate) \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t? (model.CompanyLegalName + \";\" + model.CountryId)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: (model.Name + \";\" + model.SurName + \";\" + model.CountryId \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t+ \";\" + model.BirthDate)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t ); \r\n\r\n\t\t\t\t\t\t\r\n\t\t\tthis.setState({ IsFinScanCheckRequired: (isNewCustomer || (curFinScanSearchData != newFinScanSearchData)) });\r\n\t\t\tthis.setState({ FinScanSearchData: null });\r\n\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/bankapi/v1.0/ClientCustomer/InsertOrUpdate\",\r\n\t\t\t\tmodel,\r\n\t\t\t\tthis.SuccessSaveCallback,\r\n\t\t\t\tthis.ErrorCallback\r\n\t\t\t);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", \"Customer age must be bigger then 18 !\");\r\n\t\t}\r\n\t}\r\n\r\n\tSuccessSaveCallback = (responseData) => {\r\n\t\tlet { model, ClientCustomerList, ddrModel, handledByNext } = this.state;\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tif (responseData.ErrorCode === \"ClientCustomerCheckPrimaryAccountE1\")\r\n\t\t\t\tthis.setState({ isErrorDialogOpen: true, errorMessage: responseData.ErrorDescription });\r\n\t\t\telse\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// inserted or updated, do watchlist check\r\n\t\tvar IsIncludePrepaid = model.Programs.includes(\"WALLET\");\r\n\t\tvar IsIncludeLender = model.Programs.includes(ProgramCodes.Lender);\t\r\n\t\tvar isFinScanCheckRequired\t= this.state.IsFinScanCheckRequired;\r\n\r\n\t\tif ((IsIncludePrepaid || IsIncludeLender) \r\n\t\t\t\t\t&& isFinScanCheckRequired) {\r\n\t\t\tthis.GetWatchListCheckModel(responseData.Item[\"Id\"]);\r\n\t\t\tthis.setState({ IsFinScanCheckRequired: false });\r\n\t\t}\r\n\r\n\t\tif (this.props.CustomerSaved) {\r\n\t\t\tthis.props.CustomerSaved(responseData.Item);\r\n\t\t} else {\r\n\t\t\tif (handledByNext) {\r\n\t\t\t\tlet customer = responseData.Item;\r\n\t\t\t\tcustomer.Programs = model.Programs;\r\n\t\t\t\tvar index = ClientCustomerList.findIndex(x => x.Id == customer.Id);\r\n\t\t\t\tif (index > -1) ClientCustomerList[index] = customer;\r\n\t\t\t\telse {\r\n\t\t\t\t\tClientCustomerList.push(customer);\r\n\t\t\t\t\tindex = ClientCustomerList.findIndex(x => x.Id == customer.Id);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tddrModel.InteracEmail = customer.InteracEmail;\r\n\t\t\t\tddrModel.IsDdrActiveId = customer.IsDdrActiveId;\r\n\t\t\t\tddrModel.IsDdrActive = customer.IsDdrActive;\r\n\t\t\t\tddrModel.WalletAccountId = customer.WalletAccountId;\r\n\r\n\t\t\t\tthis.setState({ model: customer, ClientCustomerList, hasChanged: !this.state.hasChanged, isDDRInquiryOpen: true, rowIndex: index, ddrModel });\r\n\t\t\t} else {\r\n\t\t\t\tthis.setState({ hasChanged: !this.state.hasChanged });\r\n\r\n\t\t\t\tthis.HandleClickClearOk();\r\n\t\t\t\tif (!this.props.ForUpdate)\r\n\t\t\t\t\tthis.HandleGetList();\r\n\t\t\t\telse\r\n\t\t\t\t\tthis.HandleGetList(model);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tthis.ShowMessage(\"success\", \"Success\", \"Saved successfully!\");\r\n\t}\r\n\r\n\tSuccessDeleteCallback = () => {\r\n\t\tthis.setState({ isLoading: false, hasChanged: !this.state.hasChanged });\r\n\t\tthis.HandleClickClearOk();\r\n\t\tthis.HandleGetList();\r\n\t\tthis.ShowMessage(\"success\", \"Success\", \"Customer was deleted successfully!\");\r\n\t}\r\n\r\n\tErrorCallback = (error) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"Error\", \"An error occurred during the api visit \" + error);\r\n\t}\r\n\r\n\tHandleDDRInquiry = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tvar model = { ...this.state.model };\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/BankInteracETransfer/GetTransferOptions\",\r\n\t\t\t{\r\n\t\t\t\tUniqueClientId: 0,\r\n\t\t\t\tProgramCode: ProgramCodes.Bank_Programs_e_Transfer,\r\n\t\t\t\tEmail: model.Email\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ DDRInquiryResult: responseData.Item ? \"Available\" : \"Unavailable\" });\r\n\t\t\t},\r\n\t\t\tthis.ErrorCallback\r\n\t\t);\r\n\t}\r\n\r\n\tHandleDDR = () => {\r\n\t\tconst { ddrModel, isEdit } = this.state;\r\n\r\n\t\tif (!ddrModel.InteracEmail) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Interac E-Mail cannot be empty!\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (!ddrModel.IsDdrActiveId) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"You have to choose for DDR!\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (ddrModel.IsDdrActive) {\r\n\t\t\tif (!ddrModel.WalletAccountId) {\r\n\t\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Wallet Account cannot be empty!\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/ClientCustomer/DirectDepositRegistration\",\r\n\t\t\t{\r\n\t\t\t\tClientCustomerId: this.state.model.Id,\r\n\t\t\t\tIsDdrActive: ddrModel.IsDdrActive,\r\n\t\t\t\tWalletAccountId: ddrModel.WalletAccountId,\r\n\t\t\t\tInteracEmail: ddrModel.InteracEmail,\r\n\t\t\t\tIsUpdate: isEdit\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item)\r\n\t\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Operation is successfully!\");\r\n\t\t\t},\r\n\t\t\tthis.ErrorCallback\r\n\t\t);\r\n\t}\r\n\r\n\tAddAccount = (index, isEdit) => {\r\n\t\tconst { model, accountModel, hasChangedAccount } = this.state;\r\n\t\taccountModel.IsRecordValid = true;\r\n\r\n\t\tif (isEdit && index > -1) {\r\n\t\t\tmodel.Accounts[index] = accountModel;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tmodel.Accounts.push(accountModel);\r\n\t\t}\r\n\t\tthis.setState({ model, accountModel: {}, hasChangedAccount: !hasChangedAccount });\r\n\t}\r\n\r\n\tDeleteAccount = (index) => {\r\n\t\tconst { model, hasChangedAccount } = this.state;\r\n\t\tvar accountModel = model.Accounts[index];\r\n\t\tif (accountModel.Id > 0) {\r\n\t\t\taccountModel.IsRecordValid = false;\r\n\t\t\tmodel.Accounts[index] = accountModel;\r\n\t\t} else {\r\n\t\t\tmodel.Accounts.splice(index, 1);\r\n\t\t}\r\n\t\tthis.setState({ model, accountModel: {}, hasChangedAccount: !hasChangedAccount });\r\n\t}\r\n\r\n\tSelectedRowChangeAccount = (index) => {\r\n\t\tvar accountModel = this.state.model.Accounts.filter(x => x.IsRecordValid)[index];\r\n\t\tthis.setState({ accountModel });\r\n\t}\r\n\r\n\tClearAccount = () => {\r\n\t\tthis.setState({ accountModel: {} });\r\n\t}\r\n\r\n\tGetCustomerNameParameter = (temp) => {\r\n\t\tif (temp) {\r\n\t\t\tthis.parameterCustomerName.Id = temp.Id;\r\n\t\t\tthis.parameterCustomerName.UniqueClientId = temp.UniqueClientId;\r\n\t\t} else {\r\n\t\t\tthis.parameterCustomerName = { ...this.emptyObject };\r\n\t\t}\r\n\t\tthis.setState({ hasChanged: !this.state.hasChanged });\r\n\t\treturn this.parameterCustomerName;\r\n\t}\r\n\r\n\tGetWalletAccountParameter = () => {\r\n\t\tthis.parameteWalletAccount.ClientCustomerId = this.state.model.Id;\r\n\t\treturn this.parameteWalletAccount;\r\n\t}\r\n\r\n\tGetTooltip() {\r\n\t\treturn `The prefix of the customer number is ${this.state.uniq} for you. Please complete the rest of the customer number to enter a valid customer number.`;\r\n\t}\r\n\r\n\tRenderItemAccount = (d) => {\r\n\t\tthis.renderItemAccount = `${d.AccountNumber} - ${d.AccountName}`;\r\n\t\treturn this.renderItemAccount;\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: null })} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\r\n\tHeadline = () => {\r\n\t\treturn \r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t;\r\n\t}\r\n\r\n\tHideAlert = () => {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\tRefreshToolBar = () => {\r\n\t\tthis.setState({ LimitToken: !this.state.LimitToken });\r\n\t}\r\n\r\n\t/**\r\n\t * @param {any[]} data\r\n\t */\r\n\tAfterFetchCallback = (data) => {\r\n\t\tthis.customerTypes = data.filter(x => x.ParameterCode == \"ClientType\");\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes, ForInsert, ForUpdate, Disabled } = this.props;\r\n\t\tconst { accountModel, model, tempModel, ddrModel, vModel, services, alert, isLoading, isErrorDialogOpen, errorMessage, CDICAccounts, DCAccountModel, hasChanged, ReadOnly, isDDRInquiryOpen, rowIndex } = this.state;\r\n\t\tconst { wCheckModel } = this.state;\r\n\r\n\t\tvar IsIncludeEFT = model.Programs.includes(ProgramCodes.Bank_Programs_EFT);\r\n\t\tvar IsIncludeET = model.Programs.includes(ProgramCodes.Bank_Programs_e_Transfer);\r\n\t\tvar IsIncludeCDIC = model.Programs.includes(ProgramCodes.Bank_Programs_CDIC);\r\n\t\tvar IsIncludePrepaid = model.Programs.includes(\"WALLET\");\r\n\r\n\t\treturn (\r\n\t\t\t<>\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\r\n\t\t\t\t -1, ModelFunction: () => model, FillDataFromModel: model => this.setState({ model }), ValidationFunction: this.Validate },\r\n\t\t\t\t\t{ Code: \"Update\", OnClick: this.HandleSubmit, Disabled: ReadOnly || Disabled || rowIndex === -1, ModelFunction: () => model, FillDataFromModel: model => this.setState({ model }), ValidationFunction: this.Validate },\r\n\t\t\t\t\t{ Code: \"Clear\", OnClick: this.HandleClear, Disabled: ForInsert || ForUpdate || ReadOnly || Disabled },\r\n\t\t\t\t\t{ Code: \"Delete\", OnClick: this.HandleDelete, Disabled: ForInsert || ReadOnly || Disabled || rowIndex === -1 }\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} IsPopUp={ForInsert || ForUpdate} />\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t 0 || model.IsAutoGenerateCustomerNumber || !tempModel.isGenerateNew}\r\n\t\t\t\t\t\t\t\t\t\t\t\tFormat=\"#######\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tBeginText={model.IsAutoGenerateCustomerNumber ? \"\" : (model.Id == 0 ? this.state.uniq : \"\")}\r\n\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.ClientCustomerNumber} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\thelp\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t 0 ? 0.4 : 1 }}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t 0} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t\t\t\t\t{services.length === 0 &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t{services.map(d => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t x === d.ProgramCode) !== undefined}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.HandleToggle}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={Disabled || ReadOnly || model.DontCheckCustomerInformation || this.props.Programs || d.ProgramCode === ProgramCodes.Lender} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\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\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCustomerDefinition.propTypes = {\r\n\ttabList: PropTypes.array,\r\n\tclasses: PropTypes.object.isRequired,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tModel: PropTypes.object,\r\n\tPrograms: PropTypes.array,\r\n\tCustomerSaved: PropTypes.func,\r\n\tForInsert: PropTypes.bool,\r\n\tForUpdate: PropTypes.bool,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(CustomerDefinition, customerDefinitionStyle);","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport CardIcon from \"components/Card/CardIcon.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { DocumentIcon, EditIcon, InformationIcon, MoveToLegalIcon, ProfileIcon, SignOutIcon } from \"core/Icons\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericNumberInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { GridColumnType, LOSLoanType } from \"views/Constants/Constant\";\r\nimport LedgerCard from \"views/LOS/LedgerCard/LedgerCard.jsx\";\r\n\r\nclass CollectionPool extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tlist: [],\r\n\t\t\tisEdit: false,\r\n\t\t\tisLoading: false,\r\n\t\t\trowIndex: -1,\r\n\t\t\tisAssignCollectorDialogOpen: false,\r\n\t\t\tcollectorModel: {\r\n\t\t\t\tApplicationId: null,\r\n\t\t\t\tCollectionPoolId: null\r\n\t\t\t},\r\n\t\t\tisCallInfoEntryDialogOpen: false,\r\n\t\t\tcallInfoModel: {\r\n\t\t\t\tCollectionPoolId: null\r\n\t\t\t},\r\n\t\t\tisPaymentDialogOpen: false,\r\n\t\t\tpaymentModel: {},\r\n\t\t\tisLedgerCardDialogOpen: false,\r\n\t\t\tLedgerCardList: [],\r\n\t\t\tmodelrow: {},\r\n\t\t\tIsAdmin: null\r\n\t\t};\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.sortedNumber = [{ id: \"ApplicationId\", desc: false }];\r\n\r\n\t\tthis.parameterCallStatus = {\r\n\t\t\tParameterCode: \"LOSCallStatus\"\r\n\t\t};\r\n\r\n\t\tthis.parameterInterviewee = {\r\n\t\t\tParameterCode: \"LOSInterviewee\"\r\n\t\t};\r\n\r\n\t\tthis.parameterInterviewResult = {\r\n\t\t\tParameterCode: \"LOSInterviewResult\"\r\n\t\t};\r\n\r\n\t\tthis.parameterPayOption = {\r\n\t\t\tParameterCode: \"LOSPayOption\"\r\n\t\t};\r\n\r\n\t\tthis.parameterYesNo = {\r\n\t\t\tParameterCode: \"LOSYesNo\"\r\n\t\t};\r\n\t\tthis.parameterUser = {\r\n\t\t\tUniqueClientId: this.state.model.UniqueClientId\r\n\t\t};\r\n\r\n\t\tthis.renderItemCollectionUser = {};\r\n\t\tthis.renderItemUser = {};\r\n\r\n\t\tthis.parameterCollector = {};\r\n\r\n\t\tthis.maxLength26 = { maxLength: 26 };\r\n\t\tthis.maxLength128 = { maxLength: 128 };\r\n\t\tthis.maxLength30 = { maxLength: 30 };\r\n\t\tthis.marginLeft2 = { marginLeft: 2 };\r\n\r\n\t\tthis.ColumnsData = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"AP\",\r\n\t\t\t\tCell: d => (\r\n\t\t\t\t\t<>\r\n\t\t\t\t\t\t { RouteHelper.Push(this.props.history, \"/CreateApplication\", \"ApplicationData\", { ApplicationId: d.original.ApplicationId, ApplicantId: d.original.ApplicantId }); }}\r\n\t\t\t\t\t\t\tDisabled={d.original.ApplicantId === 0} />\r\n\t\t\t\t\t\t { this.LedgerCardDialogOpenOrClose(d.original.Application); }}\r\n\t\t\t\t\t\t\tOnClick={() => { RouteHelper.Push(this.props.history, \"/lmsPaymentAdmin\", \"loanApproval_Id\", d.original.ApplicationId); }}\r\n\t\t\t\t\t\t\tDisabled={d.original.ApplicationId === 0} />\r\n\t\t\t\t\t\t this.RowSelected(d.index)}\r\n\t\t\t\t\t\t\tDisabled={d.original.Id === 0} />\r\n\t\t\t\t\t\t { this.OnClickAssignCaseToCollector(d.original); }} />\r\n\t\t\t\t\t\t { this.OnClickCallInfo(d.original); }}\r\n\t\t\t\t\t\t\tDisabled={d.original.ApplicationId === 0} />\r\n\t\t\t\t\t\t { this.OnClickMoveLegalFollowUp(d.original); }}\r\n\t\t\t\t\t\t\tDisabled={d.original.ApplicationId === 0} />\r\n\t\t\t\t\t\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\twidth: 175\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Collector\",\r\n\t\t\t\taccessor: \"CollectionParameter.User.UserName\",\r\n\t\t\t\twidth: 175\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Application Number\",\r\n\t\t\t\taccessor: \"Application.ApplicationNumber\",\r\n\t\t\t\twidth: 175\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date\",\r\n\t\t\t\taccessor: \"LastPaymentDate\",\r\n\t\t\t\ttype: GridColumnType.Date,\r\n\t\t\t\twidth: 120\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Partner\",\r\n\t\t\t\taccessor: \"ClientPartner.LegalNameOfBusiness\",\r\n\t\t\t\twidth: 175\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"Applicant.FullName\",\r\n\t\t\t\twidth: 175\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Amount\",\r\n\t\t\t\taccessor: \"TotalAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Remaining Total\",\r\n\t\t\t\taccessor: \"TotalWaitingAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"No. of Delayed\",\r\n\t\t\t\taccessor: \"NumberOfDelayDays\"\r\n\t\t\t}\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Collection Transactions\");\r\n\t\tthis.props.setAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n\r\n\t\tthis.GetUnpaidAmountColumns();\r\n\t\tthis.GetCollectionParameter();\r\n\t}\r\n\r\n\tGetUnpaidAmountColumns = () => {\r\n\t\tconst unpaidAmountColumns = [];\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.GET(\r\n\t\t\t\"/losapi/v1.0/CollectionPool/GetAllDelayDayRange\",\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (responseData.Item != null && responseData.Item.length > 0) {\r\n\t\t\t\t\tresponseData.Item.map(x => {\r\n\t\t\t\t\t\tunpaidAmountColumns.push(\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tHeader: x.FlexValue4,\r\n\t\t\t\t\t\t\t\taccessor: x.FlexDesc,\r\n\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\twidth: 140\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\tthis.ColumnsData = [...this.ColumnsData, ...unpaidAmountColumns];\r\n\t\t\t\tthis.ColumnsData.push(\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tHeader: \"Promise Date\",\r\n\t\t\t\t\t\taccessor: \"CollectionPoolCall.PromiseDate\",\r\n\t\t\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tHeader: \"Promise Status\",\r\n\t\t\t\t\t\taccessor: \"CollectionPoolCall.PromiseDate\",\r\n\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t
{row.original.CollectionPoolCall ? row.value != null ? \"Yes\" : \"No\" : \"\"}
\r\n\t\t\t\t\t\t)\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tHeader: \"Call Status\",\r\n\t\t\t\t\t\taccessor: \"CollectionPoolCall.CallStatus.ParameterDesc\"\r\n\t\t\t\t\t});\r\n\t\t\t\tthis.setState({ writeOffDelayDay: responseData.Item[responseData.Item.length - 1] });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tLedgerCardDialogOpenOrClose = (row) => {\r\n\t\tif (this.state.isLedgerCardDialogOpen == false) {\r\n\t\t\tthis.setState({ isLedgerCardDialogOpen: true, modelrow: row });\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.setState({ isLedgerCardDialogOpen: false, modelrow: {} });\r\n\t\t}\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\tHandleChangeCollector = (name, newValue, data) => {\r\n\t\tconst collectorModel = { ...this.state.collectorModel };\r\n\t\tcollectorModel[name] = newValue;\r\n\t\tthis.setState({ collectorModel });\r\n\t};\r\n\r\n\tHandleChangeCallInfo = (name, newValue, data) => {\r\n\t\tconst callInfoModel = { ...this.state.callInfoModel };\r\n\t\tcallInfoModel[name] = newValue;\r\n\t\tthis.setState({ callInfoModel });\r\n\t};\r\n\r\n\tHandleChangePayment = (name, newValue, data) => {\r\n\t\tconst paymentModel = { ...this.state.paymentModel };\r\n\t\tpaymentModel[name] = newValue;\r\n\t\tthis.setState({ paymentModel });\r\n\t};\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tisEdit: false,\r\n\t\t\trowIndex: -1\r\n\t\t});\r\n\t};\r\n\r\n\tGetCollectionParameter = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.GET(\r\n\t\t\t\"/losapi/v1.0/CollectionParameter/GetByUserId\",\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.setState({ IsAdmin: responseData.Item.IsAdmin });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tlet { list } = this.state;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/losapi/v1.0/CollectionPool/Search\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tlist = responseData.Item.map(item => {\r\n\t\t\t\t\tlet obj = {\r\n\t\t\t\t\t\tId: item.Id,\r\n\t\t\t\t\t\tApplicationId: item.ApplicationId,\r\n\t\t\t\t\t\tApplication: item.Application,\r\n\t\t\t\t\t\tApplicantId: item.ApplicantId,\r\n\t\t\t\t\t\tApplicant: item.Applicant,\r\n\t\t\t\t\t\tCollectionParameterId: item.CollectionParameterId,\r\n\t\t\t\t\t\tCollectionParameter: item.CollectionParameter,\r\n\t\t\t\t\t\tClientPartnerId: item.ClientPartnerId,\r\n\t\t\t\t\t\tClientPartner: item.ClientPartner,\r\n\t\t\t\t\t\tCollectionPoolCallId: item.CollectionPoolCallId,\r\n\t\t\t\t\t\tCollectionPoolCall: item.CollectionPoolCall,\r\n\t\t\t\t\t\tLastPaymentDate: item.LastPaymentDate,\r\n\t\t\t\t\t\tLatePaymentPeriodId: item.LatePaymentPeriodId,\r\n\t\t\t\t\t\tNumberOfDelayDays: item.NumberOfDelayDays,\r\n\t\t\t\t\t\tPrincipalAmount: item.PrincipalAmount,\r\n\t\t\t\t\t\tWaitingAmount: item.WaitingAmount,\r\n\t\t\t\t\t\tTotalAmount: item.TotalAmount,\r\n\t\t\t\t\t\tTotalWaitingAmount: item.TotalWaitingAmount,\r\n\t\t\t\t\t};\r\n\r\n\t\t\t\t\tfor (var i = 0; i < item.DelayDayAmounts.length; i++) {\r\n\t\t\t\t\t\tlet delayDayAmount = item.DelayDayAmounts[i];\r\n\t\t\t\t\t\tobj[delayDayAmount.Key] = delayDayAmount.Value;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\treturn obj;\r\n\t\t\t\t});\r\n\t\t\t\tthis.setState({ list });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\tOnClickAssignCaseToCollector = (model) => {\r\n\t\tif (model) {\r\n\t\t\tvar collectorModel = { ...this.state.collectorModel };\r\n\t\t\tcollectorModel.ApplicationId = model.ApplicationId;\r\n\t\t\tcollectorModel.CollectionPoolId = model.Id;\r\n\t\t\tthis.parameterCollector.LoanTypeId = model.Application.LoanTypeId;\r\n\t\t\tthis.parameterCollector.ClientPartnerId = model.Application.ClientPartnerId;\r\n\t\t\tthis.parameterCollector.ApprovedAmount = model.Application.ApprovedAmount;\r\n\t\t\tthis.parameterCollector.TotalAmount = model.TotalAmount;\r\n\t\t\tthis.parameterCollector.NumberOfDelayDays = model.NumberOfDelayDays;\r\n\t\t\tthis.setState({ isAssignCollectorDialogOpen: true, collectorModel });\r\n\t\t}\r\n\t}\r\n\r\n\tOnClickCallInfo = (model) => {\r\n\t\tif (model.Id > 0) {\r\n\t\t\tvar callInfoModel = { ...this.state.callInfoModel };\r\n\t\t\tcallInfoModel.CollectionPoolId = model.Id;\r\n\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tProxy.GET(\r\n\t\t\t\t\"/losapi/v1.0/CollectionPoolCall/GetByPoolId/Id?Id=\" + model.Id,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tcallInfoModel = {\r\n\t\t\t\t\t\tCollectionPoolId: model.Id\r\n\t\t\t\t\t};\r\n\t\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\t\tcallInfoModel = {\r\n\t\t\t\t\t\t\tId: responseData.Item.Id,\r\n\t\t\t\t\t\t\tCollectionPoolId: responseData.Item.CollectionPoolId,\r\n\t\t\t\t\t\t\tCallStatusId: responseData.Item.CallStatusId,\r\n\t\t\t\t\t\t\tIntervieweeId: responseData.Item.IntervieweeId,\r\n\t\t\t\t\t\t\tInterviewResultId: responseData.Item.InterviewResultId,\r\n\t\t\t\t\t\t\tRequestedCallDate: responseData.Item.RequestedCallDate,\r\n\t\t\t\t\t\t\tPersonName: responseData.Item.PersonName,\r\n\t\t\t\t\t\t\tPromiseDate: responseData.Item.PromiseDate,\r\n\t\t\t\t\t\t\tCollectorNote: responseData.Item.CollectorNote\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.setState({ isCallInfoEntryDialogOpen: true, callInfoModel });\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t} else {\r\n\t\t\tcallInfoModel = {\r\n\t\t\t\tApplicationId: model.ApplicationId\r\n\t\t\t};\r\n\t\t\tthis.setState({ isCallInfoEntryDialogOpen: true, callInfoModel });\r\n\t\t}\r\n\t}\r\n\r\n\tOnClickMoveLegalFollowUp = (model) => {\r\n\t\tif (model) {\r\n\t\t\tthis.setState({ isLoading: true });\r\n\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/lmsapi/v1.0/LoanLedgerCard/GetPaymentCloseCaseByApplicationId\",\r\n\t\t\t\t{\r\n\t\t\t\t\tApplicationId: model.ApplicationId,\r\n\t\t\t\t\tMenuCode: this.props.MenuCode\r\n\t\t\t\t},\r\n\t\t\t\t(responseData) => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\t\tthis.setState({ paymentModel: responseData.Item, isPaymentDialogOpen: true, isLoading: false });\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t(error) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t}\r\n\r\n\tDialogAssignCollectorSubmit = () => {\r\n\t\tif (!this.AssignCollectorValidate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/losapi/v1.0/CollectionPool/AssignCaseToCollector\",\r\n\t\t\tthis.state.collectorModel,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.HandleClear();\r\n\t\t\t\tthis.HandleSearch();\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Operation is successfully!\");\r\n\t\t\t\tthis.setState({ isAssignCollectorDialogOpen: false, collectorModel: {} });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tDialogAssignCollectorClose = () => {\r\n\t\tthis.setState({ isAssignCollectorDialogOpen: false });\r\n\t}\r\n\r\n\tDialogCallInfoSubmit = () => {\r\n\t\tif (!this.CallInfoSubmitValidate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/losapi/v1.0/CollectionPoolCall/InsertOrUpdate\",\r\n\t\t\tthis.state.callInfoModel,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.DialogCallInfoClose();\r\n\t\t\t\tthis.HandleClear();\r\n\t\t\t\tthis.HandleSearch();\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Operation is successfully!\");\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tDialogCallInfoClose = () => {\r\n\t\tthis.setState({ isCallInfoEntryDialogOpen: false, callInfoModel: {} });\r\n\t}\r\n\r\n\tDialogPaymentCloseCase = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/lmsapi/v1.0/LoanEarlyPayment/MakeEarlyPayment\",\r\n\t\t\tthis.state.paymentModel,\r\n\t\t\t(responseData) => {\r\n\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ alert: null, isPaymentDialogOpen: false }, () => {\r\n\t\t\t\t\tthis.HandleClear();\r\n\t\t\t\t\tthis.HandleSearch();\r\n\t\t\t\t});\r\n\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tDialogPaymentMoveLegalUp = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/lmsapi/v1.0/LoanEarlyPayment/MoveLegalFollowUp\",\r\n\t\t\tthis.state.paymentModel,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ alert: null, isPaymentDialogOpen: false }, () => {\r\n\t\t\t\t\tthis.HandleClear();\r\n\t\t\t\t\tthis.HandleSearch();\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tDialogPaymentClose = () => {\r\n\t\tthis.setState({ isPaymentDialogOpen: false });\r\n\t}\r\n\r\n\tAssignCollectorValidate = () => {\r\n\t\tconst { collectorModel, IsAdmin } = this.state;\r\n\r\n\t\tif (!collectorModel.CollectionParameterId) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Select the collector to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!IsAdmin && !collectorModel.Reason) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Enter the reason to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t};\r\n\r\n\tCallInfoSubmitValidate = () => {\r\n\t\tconst { callInfoModel } = this.state;\r\n\r\n\t\tif (!callInfoModel.CallStatusId) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Select the call status to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!callInfoModel.RequestedCallDate) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Enter the requested call date to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (!callInfoModel.IntervieweeId) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Select the interviewee to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!callInfoModel.PersonName) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Enter the person name to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!callInfoModel.PromiseDate) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Enter the promise date to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!callInfoModel.CollectorNote) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Enter the callector note to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t};\r\n\r\n\tRenderItemCollectionUser = d => {\r\n\t\tthis.renderItemCollectionUser = `${d.User.UserName} - ${d.User.FirstName} ${d.User.LastName}`;\r\n\t\treturn this.renderItemCollectionUser;\r\n\t};\r\n\r\n\tRenderItemUser = d => {\r\n\t\tthis.renderItemUser = `${d.UserName} - ${d.FirstName} ${d.LastName}`;\r\n\t\treturn this.renderItemUser;\r\n\t};\r\n\r\n\tRowSelected = index => {\r\n\t\tthis.setState({ isEdit: true, model: this.state.list[index], rowIndex: index });\r\n\t};\r\n\r\n\tGetCollectorParameter = () => {\r\n\t\tthis.parameterCollector.IsAdmin = this.state.IsAdmin;\r\n\t\treturn this.parameterCollector;\r\n\t};\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: null })}\r\n\t\t\t\t\tOnConfirm={onConfirm}\r\n\t\t\t\t/>\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n\r\n\trender() {\r\n\t\tconst { Disabled, ForInsert } = this.props;\r\n\t\tconst { alert, model, list, isLoading, rowIndex, collectorModel, isLedg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\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCollectionPool.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(CollectionPool, {});\r\n","import Card from \"components/Card/Card\";\r\nimport CardBody from \"components/Card/CardBody\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericGrid, GenericSelectInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant.js\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\n\r\nclass GetCollectionReport extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tTxnDetail: {},\r\n\t\t\tIsTxnDetailOpen: false\r\n\t\t};\r\n\r\n\t\tthis.ValueChanged = this.ValueChanged.bind(this);\r\n\t\tthis.ClearClick = this.ClearClick.bind(this);\r\n\t\tthis.SearchClick = this.SearchClick.bind(this);\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\r\n\t\tif (setAppLeftTitle)\r\n\t\t\tsetAppLeftTitle(\"Collection Report\");\r\n\r\n\t\tif (setAppCenterTitle)\r\n\t\t\tsetAppCenterTitle(\"Reports\");\r\n\t}\r\n\r\n\tValueChanged(name, newValue) {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model || {};\r\n\t\t\tmodel[name] = newValue;\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tClearClick() {\r\n\t\tthis.setState({ model: {} });\r\n\t}\r\n\r\n\tSearchClick() {\r\n\t\tconst { showMessage } = this.props;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Wallet/GetCollectionReport\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ TransactionList: responseData.Item ?? [] });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { isLoading, alert, model, TransactionList } = this.state;\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.ValueChanged}\r\n\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\tDisabled={IsClient}\r\n\t\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\t\tDefaultIndex={IsClient ? 0 : -1}/>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n\r\n}\r\n\r\nGetCollectionReport.propTypes = {\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\n\r\nexport default GetCollectionReport;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateFilterInput, GenericExpansionPanel, GenericGrid } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass LegalFollowUpThirdPartyTransfer extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tDateFilter: {\r\n\t\t\t\tBeginDate: DateHelper.GetDateLocal(),\r\n\t\t\t\tEndDate: DateHelper.GetDateLocal()\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tlist: [],\r\n\t\t\tfPaymentHistory: [],\r\n\t\t\tfCommentHistory: [],\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tisLoading: false,\r\n\t\t};\r\n\r\n\t\tthis.ColumnsData = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"CustomerName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Application Number\",\r\n\t\t\t\taccessor: \"ApplicationNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Loan\",\r\n\t\t\t\taccessor: \"TotalLoan\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money,\r\n\t\t\t\twidth: 200\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Write Offs\",\r\n\t\t\t\taccessor: \"WriteOffs\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money,\r\n\t\t\t\twidth: 200\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Principal\",\r\n\t\t\t\taccessor: \"Principal\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money,\r\n\t\t\t\twidth: 200\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Interest\",\r\n\t\t\t\taccessor: \"Interest\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money,\r\n\t\t\t\twidth: 200\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Fee\",\r\n\t\t\t\taccessor: \"Fee\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money,\r\n\t\t\t\twidth: 200\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"No. of Delayed\",\r\n\t\t\t\taccessor: \"NumberOfDelayDays\",\r\n\t\t\t\twidth: 200\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.ColumnsDataPaymentHistory = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Last Payment Date\",\r\n\t\t\t\taccessor: \"LastPaymentDate\",\r\n\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Waiting Amount\",\r\n\t\t\t\taccessor: \"TotalWaitingAmount\",\r\n\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Minimum Payment\",\r\n\t\t\t\taccessor: \"MinimumPayment\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Last Collected Amount\",\r\n\t\t\t\taccessor: \"LastCollectedAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Last Collected Date\",\r\n\t\t\t\taccessor: \"LastCollectedDate\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.ColumnsDataCommentHistory = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Call Status\",\r\n\t\t\t\taccessor: \"CallStatus.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Interviewee\",\r\n\t\t\t\taccessor: \"Interviewee.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Interview Result\",\r\n\t\t\t\taccessor: \"InterviewResult.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Requested Call Date\",\r\n\t\t\t\taccessor: \"RequestedCallDate\",\r\n\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Person Name\",\r\n\t\t\t\taccessor: \"PersonName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Promise Date\",\r\n\t\t\t\taccessor: \"PromiseDate\",\r\n\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Collector Note\",\r\n\t\t\t\taccessor: \"CollectorNote\"\r\n\t\t\t}\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Legal Follow Up Third Party Transfer\");\r\n\t\tthis.props.setAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n\t}\r\n\r\n\tHandleChange = (name, value, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: this.initialModel, rowIndex: -1, fPaymentHistory: [], fCommentHistory: [] });\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/losapi/v1.0/CollectionPool/LegalFollowUpThirdPartyTransferReport\",\r\n\t\t\tthis.state.model,\r\n\t\t\tthis.SuccessListCallback,\r\n\t\t\tthis.ErrorListCallback\r\n\t\t);\r\n\t}\r\n\r\n\tSuccessListCallback = (responseData) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (responseData.Item !== null) {\r\n\t\t\tthis.setState({ list: responseData.Item.TransferList, paymentHistory: responseData.Item.PaymentHistoryList, commentHistory: responseData.Item.CommentHistoryList });\r\n\t\t}\r\n\t}\r\n\r\n\tErrorListCallback = (error) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tRowSelected = index => {\r\n\t\tvar { paymentHistory, commentHistory } = this.state;\r\n\t\tvar model = this.state.list[index];\r\n\t\tvar fPaymentHistory = paymentHistory.filter(x => x.ApplicationId === model.ApplicationId);\r\n\t\tvar fCommentHistory = commentHistory.filter(x => x.ApplicationId === model.ApplicationId);\r\n\t\tthis.setState({ fPaymentHistory, fCommentHistory, rowIndex: index });\r\n\t};\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, isLoading, model, list, fPaymentHistory, fCommentHistory, rowIndex } = this.state;\r\n\t\treturn (\r\n\t\t\t<>\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nLegalFollowUpThirdPartyTransfer.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(LegalFollowUpThirdPartyTransfer, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ReactTable from \"react-table\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateFilterInput, GenericExpansionPanel } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nclass LoanAgingAndDelinquentPayment extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tDateFilter: {\r\n\t\t\t\tBeginDate: DateHelper.GetDateLocal(),\r\n\t\t\t\tEndDate: DateHelper.GetDateLocal()\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tlist: [],\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tisLoading: false,\r\n\t\t};\r\n\r\n\t\tthis.ColumnsData = [];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Loan Aging & Delinquent Payment Report\");\r\n\t\tthis.props.setAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n\r\n\t\tthis.GetColumns();\r\n\t}\r\n\r\n\tHandleChange = (name, value, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: this.initialModel, selected: null });\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/losapi/v1.0/CollectionPool/LoanAgingAndDelinquentPaymentReport\",\r\n\t\t\tthis.state.model,\r\n\t\t\tthis.SuccessListCallback,\r\n\t\t\tthis.ErrorListCallback\r\n\t\t);\r\n\t}\r\n\r\n\tSuccessListCallback = (responseData) => {\r\n\t\tlet { list } = this.state;\r\n\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (responseData.Item !== null) {\r\n\t\t\tlist = responseData.Item.map(item => {\r\n\t\t\t\tlet obj = {\r\n\t\t\t\t\tCustomerName: item.CustomerName,\r\n\t\t\t\t\tClientCustomerNumber: item.ClientCustomerNumber\r\n\t\t\t\t};\r\n\r\n\t\t\t\tfor (var i = 0; i < item.DelayDayAmounts.length; i++) {\r\n\t\t\t\t\tlet delayDayAmount = item.DelayDayAmounts[i];\r\n\t\t\t\t\tobj[delayDayAmount.Key] = delayDayAmount.Value;\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn obj;\r\n\t\t\t});\r\n\t\t\tthis.setState({ list });\r\n\t\t}\r\n\t}\r\n\r\n\tErrorListCallback = (error) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\treturn true;\r\n\t}\r\n\r\n\tSumValues = (...arr) => {\r\n\t\treturn arr.length > 0 ? arr[0].reduce((a, b) => a + b, 0) : 0;\r\n\t}\r\n\r\n\tGetColumns = () => {\r\n\t\tconst columnHeaders = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"CustomerName\",\r\n\t\t\t\twidth: 175\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Number\",\r\n\t\t\t\taccessor: \"ClientCustomerNumber\",\r\n\t\t\t\twidth: 175\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.GET(\r\n\t\t\t\"/losapi/v1.0/CollectionPool/GetAllDelayDayRange\",\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (responseData.Item != null && responseData.Item.length > 0) {\r\n\t\t\t\t\tresponseData.Item.map(x => {\r\n\t\t\t\t\t\tcolumnHeaders.push(\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tHeader: x.FlexValue4,\r\n\t\t\t\t\t\t\t\tcolumns: [\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\tHeader: \"Unpaid Principal\",\r\n\t\t\t\t\t\t\t\t\t\taccessor: `${x.FlexDesc}_UnpaidPrincipal`,\r\n\t\t\t\t\t\t\t\t\t\tCell: row => Formatter.FormatMoney(row.value ?? 0),\r\n\t\t\t\t\t\t\t\t\t\twidth: 140\r\n\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\tHeader: \"Unpaid Interest\",\r\n\t\t\t\t\t\t\t\t\t\taccessor: `${x.FlexDesc}_UnpaidInterest`,\r\n\t\t\t\t\t\t\t\t\t\tCell: row => Formatter.FormatMoney(row.value ?? 0),\r\n\t\t\t\t\t\t\t\t\t\twidth: 125\r\n\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\tHeader: \"Unpaid Fee\",\r\n\t\t\t\t\t\t\t\t\t\taccessor: `${x.FlexDesc}_UnpaidFee`,\r\n\t\t\t\t\t\t\t\t\t\tCell: row => Formatter.FormatMoney(row.value ?? 0),\r\n\t\t\t\t\t\t\t\t\t\twidth: 100\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t]\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\tthis.ColumnsData = columnHeaders;\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes, Disabled } = this.props;\r\n\t\tconst { alert, isLoading, model, list } = this.state;\r\n\t\treturn (\r\n\t\t\t<>\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nLoanAgingAndDelinquentPayment.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(LoanAgingAndDelinquentPayment, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport {\r\n GenericAlert,\r\n GenericExpansionPanel,\r\n GenericGrid,\r\n GenericSelectInput,\r\n GenericDateInput,\r\n} from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent\";\r\n\r\nclass LoanAgingAndDelinquentPayment2 extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n\r\n this.initialModel = {\r\n UniqueClientId: this.uniqueClientId,\r\n ReportDate: DateHelper.GetDate(),\r\n CustomerNumber: \"\",\r\n };\r\n\r\n this.state = {\r\n list: [],\r\n vCustomerModel: {},\r\n CustomerModel: this.initialModel,\r\n SelectedCustomerItem: \"\",\r\n model: this.initialModel,\r\n vModel: {},\r\n isLoading: false,\r\n };\r\n\r\n this.emptyObject = {};\r\n\r\n this.sortName = { Member: \"Name\" };\r\n\r\n this.sortedNumber = [{ id: \"CustomerNumber\", desc: false }];\r\n\r\n\t this.uniqueClientId = ClientHelper.GetClientRowId();\r\n\t this.reportDate = DateHelper.GetDate();\r\n this.ColumnsData = [\r\n {\r\n Header: \"Client Name\",\r\n accessor: \"ClientName\",\r\n },\r\n {\r\n Header: \"Customer Name\",\r\n accessor: \"CustomerName\",\r\n },\r\n {\r\n Header: \"Customer Number\",\r\n accessor: \"CustomerNumber\",\r\n },\r\n {\r\n Header: \"Wallet Account Number\",\r\n accessor: \"WalletAccountNumber\",\r\n },\r\n {\r\n Header: \"Report Date\",\r\n accessor: \"ReportDate\",\r\n type: GridColumnType.Date,\r\n ColumnType: GridColumnType.Date,\r\n },\r\n {\r\n Header: \"Application Number\",\r\n accessor: \"ApplicationNumber\",\r\n },\r\n\t\t{\r\n\t\t\tHeader: \"Last Card Status\",\r\n\t\t\taccessor: \"LastCardStatusId\",\r\n\t\t },\r\n {\r\n Header: \"Statement Begin Date\",\r\n accessor: \"StatementBeginDate\",\r\n type: GridColumnType.Date,\r\n ColumnType: GridColumnType.Date,\r\n },\r\n {\r\n Header: \"Statement End Date\",\r\n accessor: \"StatementEndDate\",\r\n type: GridColumnType.Date,\r\n ColumnType: GridColumnType.Date,\r\n },\r\n {\r\n Header: \"Security Account Balance\",\r\n accessor: \"SecurityAccountBalance\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Card Limit\",\r\n accessor: \"CardLimit\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Current Available Limit\",\r\n accessor: \"CurrentAvailableLimit\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Total Debt Inquiry\",\r\n accessor: \"TotalDebtInquiry\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Last Closing Balance\",\r\n accessor: \"LastClosingBalance\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n\r\n {\r\n Header: \"0-30 days\",\r\n accessor: \"FirstThirtyDays\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"30-60 days\",\r\n accessor: \"SecondThirtyDays\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"60-90 days\",\r\n accessor: \"ThirthThirtyDays\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"90-120 days\",\r\n accessor: \"FourthThirtyDays\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"120+ days\",\r\n accessor: \"ThirtyDaysRestOf\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Over Payment\",\r\n accessor: \"OverPayment\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n ];\r\n }\r\n\r\n componentDidMount() {\r\n this.props.setAppLeftTitle(\"Loan Aging & Delinquent Payment Report\");\r\n this.props.setAppCenterTitle(\"Collection Transactions\");\r\n }\r\n\r\n HandleChange = (name, newValue, data) => {\r\n const model = { ...this.state.model };\r\n model[name] = newValue;\r\n this.setState({ model });\r\n };\r\n\r\n CustomerModelChange = (name, value, data) => {\r\n const model = { ...this.state.CustomerModel };\r\n\t const vmodel = {...this.state.model}\r\n const model2 = this.state.SelectedCustomerItem;\r\n\r\n var IsTrxDisabled = false;\r\n\r\n if (\r\n name === \"DestinationAccountId\" &&\r\n data !== null &&\r\n data !== undefined\r\n ) {\r\n this.setState({ SelectedCustomerItem: data.AccountName });\r\n this.IsCustomerAccountSelected = false;\r\n }\r\n\r\n if (!IsTrxDisabled) {\r\n model[name] = value;\r\n }\r\n\r\n if (name === \"Customer\") {\r\n if (value) {\r\n model.ClientCustomerId = value.Id;\r\n model.CustomerNumber = value.CustomerNumber;\r\n\r\n\r\n\t\t model[name] = value.CustomerNumber;\r\n\t\t this.setState({ model });\r\n } else {\r\n delete model.ClientCustomerId;\r\n delete model.CustomerNumber;\r\n delete model.CardId;\r\n delete model.CardTokenNumber;\r\n }\r\n }\r\n this.setState({ CustomerModel: {UniqueClientId: this.uniqueClientId, ReportDate: vmodel.ReportDate, CustomerNumber: model.CustomerNumber }, model: { UniqueClientId: this.uniqueClientId, ReportDate: vmodel.ReportDate, CustomerNumber: model.CustomerNumber}});\r\n };\r\n\r\n FillCustomerForCustomer = (customer) => {\r\n this.CustomerModelChange(\"Customer\", customer);\r\n };\r\n\r\n HandleClear = () => {\r\n\tthis.setState({ model: { UniqueClientId: this.uniqueClientId,}, CustomerModel: {UniqueClientId: this.uniqueClientId, CustomerNumber: \"\"},vModel: {}, selected: null });\r\n };\r\n\r\n HandleSearch = () => {\r\n const isValidated = this.Validate();\r\n if (isValidated) {\r\n this.setState({ isLoading: true });\r\n Proxy.POST(\r\n \"/losapi/v1.0/CollectionPool/LoanAgingAndDelinquentPaymentReport2\",\r\n this.state.model,\r\n this.SuccessListCallback,\r\n this.ErrorListCallback\r\n );\r\n }\r\n };\r\n\r\n SuccessListCallback = (responseData) => {\r\n this.setState({ isLoading: false });\r\n if (!responseData.IsSucceeded) {\r\n this.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n return;\r\n }\r\n if (responseData.Item !== null) {\r\n this.setState({ list: responseData.Item });\r\n }\r\n };\r\n\r\n ErrorListCallback = (error) => {\r\n this.setState({ isLoading: false });\r\n this.ShowMessage(\"error\", \"Error\", error);\r\n };\r\n\r\n Validate = () => {\r\n const { model, vModel } = this.state;\r\n var messages = [];\r\n\r\n vModel.ReportDate = model.ReportDate == null;\r\n if (vModel.ReportDate) messages.push(\"Report date must be selected!\");\r\n\r\n if (messages.length > 0) {\r\n this.ShowMessageNode(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n messages.map((x, i) =>
{x}
)\r\n );\r\n return false;\r\n }\r\n\r\n this.setState({ vModel });\r\n return true;\r\n };\r\n\r\n ShowMessage = (type, title, message) => {\r\n this.setState({\r\n alert: (\r\n this.setState({ alert: \"\" })}\r\n />\r\n ),\r\n });\r\n };\r\n\r\n ShowMessageNode = (type, title, message) => {\r\n this.setState({\r\n alert: (\r\n this.setState({ alert: \"\" })}\r\n />\r\n ),\r\n });\r\n };\r\n\r\n render() {\r\n const { Disabled } = this.props;\r\n const { alert, isLoading, model, list, vCustomerModel, CustomerModel } =\r\n this.state;\r\n var IsClient = ClientHelper.IsClient();\r\n return (\r\n <>\r\n \r\n\r\n {alert}\r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\tTextValueMember=\"Name\"\r\n\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId}\r\n\t\t\t\t\t\t\t\t\tValueChanged={this.HandleChange}\r\n\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\tDefaultIndex={IsClient ? 0 : -1}\r\n\t\t\t\t\t\t\t\t/>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n }\r\n}\r\n\r\nLoanAgingAndDelinquentPayment2.propTypes = {\r\n classes: PropTypes.object,\r\n};\r\n\r\nexport default withArtifex(LoanAgingAndDelinquentPayment2, {});\r\n","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport Formatter from \"core/Formatter\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport { TaskPool } from \"core/TaskPool\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport {\r\n\tGenericAlert,\r\n\tGenericCheckInput,\r\n\tGenericDialog,\r\n\tGenericDialogActions,\r\n\tGenericExpansionPanel,\r\n\tGenericLabel,\r\n\tGenericNumberInput,\r\n\tGenericSelectInput,\r\n\tGenericTextInput\r\n} from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { IdentificationMethod, LOSApplicationStatus, MenuCodes } from \"views/Constants/Constant\";\r\nimport ApplicantDefinition from \"views/LOS/ApplicantDefinition/ApplicantDefinition.jsx\";\r\nimport LoanApplicantInformation from \"views/LOS/CreateApplication/LoanApplicantInformation.jsx\";\r\nimport LoanApplicationBorrowerReview from \"views/LOS/CreateApplication/LoanApplicationBorrowerReview.jsx\";\r\nimport LoanApplicationCreditScore from \"views/LOS/CreateApplication/LoanApplicationCreditScore.jsx\";\r\nimport LoanApplicationNetworth from \"views/LOS/CreateApplication/LoanApplicationNetworth.jsx\";\r\nimport LoanApplicationScoringInfo from \"views/LOS/CreateApplication/LoanApplicationScoringInfo.jsx\";\r\nimport LoanApplicationSecurityInformation from \"views/LOS/CreateApplication/LoanApplicationSecurityInformation.jsx\";\r\nconst LosQuestionnaireQuestionType = {\r\n\tSelect: 0,\r\n\tText: 1,\r\n\tNumber: 2\r\n};\r\nconst ConstLoanType = {\r\n\tSecureCard: 0,\r\n\tLoan: 1,\r\n\tLOC: 2\r\n};\r\nfunction GetAppliedForRequestedLengthOfTerm() {\r\n\tvar termDataList = [];\r\n\ttermDataList.push({ Value: 1, Text: \"1 Month\" });\r\n\tfor (var i = 2; i < 61; i++) {\r\n\t\ttermDataList.push({\r\n\t\t\tValue: i,\r\n\t\t\tText: i + \" Months\"\r\n\t\t});\r\n\t}\r\n\treturn termDataList;\r\n}\r\nconst initialState = {\r\n\tpanelActivationStatus: {\r\n\t\tpanelFilterActive: true,\r\n\t\tpanelAppliedForActive: false,\r\n\t\tpanelApplicantInformationActive: false,\r\n\t\tpanelAdditionalInformationActive: false,\r\n\t\tpanelAdditionalInformationOptionalActive: false,\r\n\t\tpanelSecurityInformationActive: false,\r\n\t\tpanelScoreActive: false,\r\n\t\tpanelNetworthActive: false,\r\n\t\tpanelBorrowerReviewActive: false,\r\n\t\tpanelQuestionnaireActive: false\r\n\t},\r\n\tmodel: {\r\n\t\tId: 0,\r\n\t\tOtherSecurityInfoEnable: false,\r\n\t\tClientPartnerId: null,\r\n\t\tisGenerateNew: null,\r\n\t\tLoanTypeId: null,\r\n\t\tLoanPurposeId: null,\r\n\t\tLoanPurposeDescription: null\r\n\t},\r\n\tvModel: {},\r\n\tapplicantModel: {},\r\n\tfileModel: {},\r\n\tclientPartnerModel: {\r\n\t\tId: null\r\n\t},\r\n\tparamApplicationProfile: {},\r\n\tparamApplicationAddressList: [],\r\n\tisPeriodDisable: false,\r\n\tisLoading: false,\r\n\tReadOnly: false,\r\n\tisCreateApplicantDialogOpen: false,\r\n\tapplicantDefinitionMenuId: 0,\r\n\tIsActiveLoanPurposeDescription: false,\r\n\tIsAppliedForCardReadOnly: true,\r\n\tEnableApplicantUpdate: true,\r\n\tRequestedLengthOfTermSource: GetAppliedForRequestedLengthOfTerm(),\r\n\tfeeProfileList: []\r\n};\r\nclass CreateApplication extends Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.GetApplicationAddressModels = this\r\n\t\t\t.GetApplicationAddressModels\r\n\t\t\t.bind(this);\r\n\t\tthis.HandleChangeFilterPanel = this\r\n\t\t\t.HandleChangeFilterPanel\r\n\t\t\t.bind(this);\r\n\t\tthis.InserUpdatePanelActivationStatus = this\r\n\t\t\t.InserUpdatePanelActivationStatus\r\n\t\t\t.bind(this);\r\n\t\tthis.PanelFilterActiveNextClicked = this\r\n\t\t\t.PanelFilterActiveNextClicked\r\n\t\t\t.bind(this);\r\n\t\tthis.PanelAppliedForActiveNextClicked = this\r\n\t\t\t.PanelAppliedForActiveNextClicked\r\n\t\t\t.bind(this);\r\n\t\tthis.PanelApplicantInformationActiveNextClicked = this\r\n\t\t\t.PanelApplicantInformationActiveNextClicked\r\n\t\t\t.bind(this);\r\n\t\tthis.panelAdditionalInformationActiveNextClicked = this\r\n\t\t\t.panelAdditionalInformationActiveNextClicked\r\n\t\t\t.bind(this);\r\n\t\tthis.panelAdditionalInformationOptionalActiveNextClicked = this\r\n\t\t\t.panelAdditionalInformationOptionalActiveNextClicked\r\n\t\t\t.bind(this);\r\n\t\tthis.panelSecurityInformationActiveNextClicked = this\r\n\t\t\t.panelSecurityInformationActiveNextClicked\r\n\t\t\t.bind(this);\r\n\t\tthis.panelScoreActiveNextClicked = this\r\n\t\t\t.panelScoreActiveNextClicked\r\n\t\t\t.bind(this);\r\n\t\tthis.panelNetworthActiveNextClicked = this\r\n\t\t\t.panelNetworthActiveNextClicked\r\n\t\t\t.bind(this);\r\n\t\tthis.panelBorrowerReviewActiveNextClicked = this\r\n\t\t\t.panelBorrowerReviewActiveNextClicked\r\n\t\t\t.bind(this);\r\n\t\tthis.panelQuestionnaireActiveNextClicked = this\r\n\t\t\t.panelQuestionnaireActiveNextClicked\r\n\t\t\t.bind(this);\r\n\t\tthis.loadTaskPool = new TaskPool(this.handleLoadTaskPoolAppend, this.handleLoadTaskPoolCompleted);\r\n\t\tthis.SavePanelAfterInsert = this\r\n\t\t\t.SavePanelAfterInsert\r\n\t\t\t.bind(this);\r\n\t\tthis.GetPanelActivationStatus = this\r\n\t\t\t.GetPanelActivationStatus\r\n\t\t\t.bind(this);\r\n\t\tthis.AfterApplicantSearchCallBack = this\r\n\t\t\t.AfterApplicantSearchCallBack\r\n\t\t\t.bind(this);\r\n\t\tthis.PrepareQuestionnaireGridList = this\r\n\t\t\t.PrepareQuestionnaireGridList\r\n\t\t\t.bind(this);\r\n\t\tthis.HandleQuestionnaireValueChange = this\r\n\t\t\t.HandleQuestionnaireValueChange\r\n\t\t\t.bind(this);\r\n\t\tthis.state = initialState;\r\n\r\n\t\tthis.maxLength20 = {\r\n\t\t\tmaxLength: 20\r\n\t\t};\r\n\t\tthis.marginLeft2 = {\r\n\t\t\tmarginLeft: 2\r\n\t\t};\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.renderItemApplication = {};\r\n\r\n\t\tthis.LoanTypeParameterCode = {\r\n\t\t\tParameterCode: \"LOSLoanType\"\r\n\t\t};\r\n\t\tthis.LoanPurposeParameterCode = {\r\n\t\t\tParameterCode: \"LOSLoanPurpose\"\r\n\t\t};\r\n\r\n\t\tthis.parameterLOSPaymentFrequency = {\r\n\t\t\tParameterCode: \"LOSPaymentSchedule\"\r\n\t\t};\r\n\t\tthis.IdentityVerifyingPersonParameterCode = {\r\n\t\t\tParameterCode: \"IdentityVerifyingPerson\"\r\n\t\t};\r\n\t\t\r\n\t\tthis.parameterIdentificationMethod = {\r\n\t\t\tParameterCode: \"IdentificationMethod\",\r\n\t\t\tParameterValue2: \"Active\"\r\n\t\t}; \r\n\r\n\t\tthis.sortedParameterDesc = {\r\n\t\t\tMember: \"ParameterDesc\"\r\n\t\t};\r\n\t\tthis.sortedApplicantFullName = {\r\n\t\t\tMember: \"FullName\"\r\n\t\t};\r\n\r\n\t\tthis.retiredOrUnemployedOccupationIds = [];\r\n\t\tthis.identificationMethodIds = [];\r\n\t\tthis.specificIdentityTypesIds = [];\r\n\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle, MenuCode } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(MenuCode != MenuCodes.Lms_LoanDetail\r\n\t\t\t\t? \"LOAN ORIGINATOR SYSTEM\"\r\n\t\t\t\t: \"LOAN MANAGEMENT SYSTEM\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(MenuCode != MenuCodes.Lms_LoanDetail\r\n\t\t\t\t? \"Complete Application\"\r\n\t\t\t\t: \"Application Details\");\r\n\t\t}\r\n\r\n\t\tthis.GetRetiredOrUnemployedOccupationIds();\r\n\t\tthis.GetSpecificIdentityTypesIds();\r\n\t\tthis.GetIdentificationMethodIds();\r\n\r\n\t\tvar applicationData = RouteHelper.ReadAndClear(\"ApplicationData\");\r\n\t\tif (applicationData && applicationData.ApplicationId && applicationData.ApplicationId > 0) {\r\n\r\n\t\t\tthis.HandleGetApplication(applicationData.ApplicationId);\r\n\t\t\tconst modelUpdate = this.state.model;\r\n\t\t\tif (applicationData.ApplicantId && applicationData.ApplicantId > 0) {\r\n\t\t\t\tmodelUpdate.ApplicantId = applicationData.ApplicantId;\r\n\t\t\t\tthis.GetApplicationList(applicationData.ApplicantId);\r\n\t\t\t\tthis.GetCreditHistory(applicationData.ApplicantId);\r\n\t\t\t\tthis.HandleGetApplicant(applicationData.ApplicantId);\r\n\t\t\t}\r\n\t\t\tthis.setState({ model: modelUpdate, EnableApplicantUpdate: applicationData.EnableApplicantUpdate });\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tvar applicantIdAndAddNewApplication = RouteHelper.ReadAndClear(\"ApplicantIdAndAddNewApplication\");\r\n\t\tif (applicantIdAndAddNewApplication) {\r\n\t\t\tvar { model } = this.state;\r\n\t\t\tmodel.ApplicantId = applicantIdAndAddNewApplication.ApplicantId;\r\n\t\t\tmodel.isGenerateNew = applicantIdAndAddNewApplication.isGenerateNew;\r\n\r\n\t\t\tthis.HandleChange(\"isGenerateNew\", applicantIdAndAddNewApplication.isGenerateNew);\r\n\t\t\tthis.HandleChange(\"ApplicantId\", applicantIdAndAddNewApplication.ApplicantId);\t\t\t\r\n\t\t}\r\n\t}\r\n\r\n\tGetSpecificIdentityTypesIds() {\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Parameter/Search\",\r\n\t\t\t{\r\n\t\t\t\tParameterCode: \"IdentityType2\",\r\n\t\t\t\tParameterValue: \"ID010\"\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tconsole.log(\"Parameters were not found.\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tlet list = responseData.Item;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\tlist.forEach(element => {\r\n\t\t\t\t\tthis.specificIdentityTypesIds.push(element.Id);\r\n\t\t\t\t});\t\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tGetIdentificationMethodIds() {\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Parameter/Search\",\r\n\t\t\tthis.parameterIdentificationMethod,\t\t\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tconsole.log(\"Parameters were not found.\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tlet list = responseData.Item;\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\tfor(var i=0; i {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tconsole.log(\"Parameters were not found.\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tlet list = responseData.Item;\r\n\t\t\t\tlist = list.filter(x=>x.ParameterDesc.includes(\"Retired\")\r\n\t\t\t\t\t\t\t\t\t\t\t\t||x.ParameterDesc.includes(\"Unemploy\"));\r\n\t\t\t\t\r\n\t\t\t\tlist.forEach(element => {\r\n\t\t\t\t\tthis.retiredOrUnemployedOccupationIds.push(element.Id);\r\n\t\t\t\t});\t\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tGetApplicationAddressModels() {\r\n\t\tthis\r\n\t\t\t.loadTaskPool\r\n\t\t\t.AppendTask(Proxy.POST(\"/losapi/v1.0/ApplicationApplicantAddress/GetByApplicationId\", {\r\n\t\t\t\tApplicationId: this.state.model.Id\r\n\t\t\t}, responseData => {\r\n\t\t\t\tconsole.log(\"GetApplicationAddressModels ->\", responseData.IsSucceeded);\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tparamApplicationAddressList: responseData.Item || []\r\n\t\t\t\t\t});\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ paramApplicationAddressList: [] });\r\n\t\t\t\t}\r\n\t\t\t}, error => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}));\r\n\t}\r\n\thandleLoadTaskPoolCompleted = () => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\thandleLoadTaskPoolAppend = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t}\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = {\r\n\t\t\t...this.state.model\r\n\t\t};\r\n\t\tconst clientpartner = {\r\n\t\t\t...this.state.clientPartnerModel\r\n\t\t};\r\n\t\tmodel[name] = newValue;\r\n\r\n\t\tif (name == \"Id\" && newValue != null && newValue > 0) {\r\n\t\t\tthis.HandleGetApplication(newValue);\r\n\t\t}\r\n\t\tif (name == \"ApplicantId\") {\r\n\t\t\tthis.HandleClickClearOk();\r\n\t\t}\r\n\r\n\t\tif (name == \"SecurityInfoTypeId\") {\r\n\t\t\tif (data != undefined && data.ParameterValue == \"3\")\r\n\t\t\t\tmodel.OtherSecurityInfoEnable = true;\r\n\t\t\telse\r\n\t\t\t\tmodel.OtherSecurityInfoEnable = false;\r\n\t\t}\r\n\t\tif (name == \"ApplicantId\") {\r\n\t\t\tif (newValue != null && newValue > 0) {\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tmodel\r\n\t\t\t\t}, () => {\r\n\t\t\t\t\tthis.HandleGetApplicant(newValue);\r\n\t\t\t\t\tthis.GetCreditHistory(newValue);\r\n\t\t\t\t});\r\n\t\t\t\treturn;\r\n\t\t\t} else {\r\n\t\t\t\tmodel[\"Id\"] = null;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (name == \"ClientPartnerId\" && data == null) {\r\n\t\t\tclientpartner.Id = null;\r\n\t\t\tthis.setState({ clientPartnerModel: clientpartner });\r\n\t\t}\r\n\t\tif (name == \"ClientPartnerId\" && data != null) {\r\n\t\t\tmodel.ClientPartnerId = data.Id;\r\n\t\t\tthis.setState({ clientPartnerModel: data });\r\n\t\t}\r\n\t\tif (name == \"isCreateNewApplicant\") {\r\n\t\t\tthis.ShowConfirmMessage(\"warning\", \"Warning\", \"This will erase the information you entered on the screen. Are you sure you want\" +\r\n\t\t\t\t\" to quit this application?\",\r\n\t\t\t\t() => this.HandleCreateNewApplicant());\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (name == \"isGenerateNew\") {\r\n\t\t\tif (newValue == true) {\r\n\t\t\t\tthis.ShowConfirmMessage(\"warning\", \"Warning\", \"This will erase the information you entered on the screen. Are you sure you want\" +\r\n\t\t\t\t\t\" to quit this application?\",\r\n\t\t\t\t\t() => this.HandleCreateNew());\r\n\t\t\t\treturn;\r\n\t\t\t} else {\r\n\t\t\t\tmodel.isGenerateNew = false;\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tmodel\r\n\t\t\t\t}, () => {\r\n\t\t\t\t\tthis.PrepareQuestionnaireGridList();\r\n\t\t\t\t});\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tif (name == \"LoanPurposeId\") {\r\n\t\t\tthis.state.IsActiveLoanPurposeDescription = (data != null && data.ParameterDesc === \"Other\");\r\n\t\t\tif (model.Id > 0) {\r\n\t\t\t\t// this.ShowConfirmMessage(\"warning\", \"Clear Questionnaire\", \"This will erase\r\n\t\t\t\t// the information you entered on the questionnaire section. Are you sure you\r\n\t\t\t\t// want to erase the information?\", \t() =>\r\n\t\t\t\t// this.HandleRefreshApplicationQuestionnaire()); return; remove defined\r\n\t\t\t\t// application questionnaire value get new purpose questionnaire list\r\n\t\t\t} else {\r\n\t\t\t\tthis\r\n\t\t\t\t\t.loadTaskPool\r\n\t\t\t\t\t.AppendTask(Proxy.POST(\"/losapi/v1.0/Questionnaire/SearchApplicationQuestionnaire\", {\r\n\t\t\t\t\t\tApplication: {\r\n\t\t\t\t\t\t\tLoanTypeId: model.LoanTypeId,\r\n\t\t\t\t\t\t\tLoanPurposeId: model.LoanPurposeId\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}, responseData => {\r\n\t\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tvar ApplicationQuestionnaireList = responseData.Item || [];\r\n\t\t\t\t\t\tthis.setState(ApplicationQuestionnaireList);\r\n\t\t\t\t\t}, error => {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}));\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (!this.state.IsActiveLoanPurposeDescription && (model.LoanPurposeDescription == null || model.LoanPurposeDescription === \"\")) {\r\n\t\t\tmodel[\"LoanPurposeDescription\"] = \"\";\r\n\t\t}\r\n\t\tif (name == \"LoanTypeId\") {\r\n\t\t\tthis.state.IsActiveLoanPurposeDescription = (data != null && data.ParameterDesc === \"Other\");\r\n\t\t}\r\n\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleCreateNew() {\r\n\t\tthis.HideAlert();\r\n\t\tvar newState = initialState;\r\n\t\tnewState.model.isGenerateNew = true;\r\n\r\n\t\tthis.setState(newState, () => {\r\n\t\t\tthis.GetApplicationQuestionnaire();\r\n\t\t});\r\n\t}\r\n\tHandleCreateNewApplicant() {\r\n\t\tthis.HideAlert();\r\n\t\tlet newState = Object.assign({}, initialState);\r\n\t\tvar userJson = localStorage.getItem(\"user\");\r\n\t\tvar user = userJson\r\n\t\t\t? JSON.parse(userJson)\r\n\t\t\t: null;\r\n\t\tvar menuId = 0;\r\n\t\tthis\r\n\t\t\t.loadTaskPool\r\n\t\t\t.AppendTask(Proxy.POST(\"/coreapi/v1.0/MenuRight/GetMenuRightList\", {\r\n\t\t\t\tRoleId: user != null\r\n\t\t\t\t\t? user.RoleId\r\n\t\t\t\t\t: 0\r\n\t\t\t}, responseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t// this.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item) {\r\n\t\t\t\t\tif (responseData.Item.filter(i => i.Menu.Code == \"LOSAPL\")[0] != undefined)\r\n\t\t\t\t\t\tmenuId = responseData.Item.filter(i => i.Menu.Code == \"LOSAPL\")[0].MenuId;\r\n\r\n\t\t\t\t\tnewState.isCreateApplicantDialogOpen = true;\r\n\t\t\t\t\tnewState.applicantDefinitionMenuId = menuId;\r\n\t\t\t\t\tthis.setState(newState);\r\n\t\t\t\t}\r\n\t\t\t}, error => {\r\n\t\t\t\t// this.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}));\r\n\t}\r\n\tHandleGetApplicant = (id) => {\r\n\t\tthis\r\n\t\t\t.loadTaskPool\r\n\t\t\t.AppendTask(Proxy.POST(\"/losapi/v1.0/Applicant/Search\", {\r\n\t\t\t\tId: id\r\n\t\t\t}, responseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item && responseData.Item.length > 0) {\r\n\t\t\t\t\tvar { applicantModel, model } = this.state;\r\n\t\t\t\t\tvar appliedForModel = {};\r\n\r\n\t\t\t\t\tObject.assign(applicantModel, responseData.Item[0]);\r\n\t\t\t\t\tObject.assign(appliedForModel, responseData.Item[0].ApplicantAppliedFor);\r\n\r\n\t\t\t\t\tapplicantModel.BirthDate = model.BirthDate === null\r\n\t\t\t\t\t\t? null\r\n\t\t\t\t\t\t: Formatter.FormatDateUtc(applicantModel.BirthDate);\r\n\r\n\t\t\t\t\tvar ApplicationQuestionnaireList = responseData.Item[0].ApplicationQuestionnaireList || [];\r\n\t\t\t\t\tmodel.LoanTypeId = appliedForModel.LoanTypeId;\r\n\t\t\t\t\tmodel.LoanType = appliedForModel.LoanType;\r\n\t\t\t\t\tmodel.RequestedPaymentPeriod = appliedForModel.RequestedPaymentPeriod;\r\n\t\t\t\t\tmodel.RequestedPaymentFrequencyId = appliedForModel.RequestedPaymentFrequencyId;\r\n\t\t\t\t\tmodel.RequestedAmount = appliedForModel.RequestedAmount;\r\n\t\t\t\t\tmodel.LoanPurposeId = appliedForModel.LoanPurposeId;\r\n\t\t\t\t\tmodel.LoanPurpose = appliedForModel.LoanPurpose;\r\n\t\t\t\t\tmodel.LoanPurposeDescription = appliedForModel.LoanPurposeDescription;\r\n\t\t\t\t\tmodel.SecurityAmount = appliedForModel.SecurityAmount;\r\n\t\t\t\t\tthis.state.IsActiveLoanPurposeDescription = false;\r\n\t\t\t\t\tif (appliedForModel.LoanPurpose != null && appliedForModel.LoanPurpose.ParameterDesc === \"Other\") {\r\n\t\t\t\t\t\tthis.state.IsActiveLoanPurposeDescription = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (model.LoanType != null && model.LoanType.ParameterValue != ConstLoanType.Loan) {\r\n\t\t\t\t\t\tmodel.RequestedPaymentPeriod = 1;\r\n\t\t\t\t\t\tthis.state.isPeriodDisable = true;\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tapplicantModel,\r\n\t\t\t\t\t\tmodel,\r\n\t\t\t\t\t\tApplicationQuestionnaireList\r\n\t\t\t\t\t}, () => this.AfterApplicantSearchCallBack(responseData.Item[0].Id));\r\n\r\n\t\t\t\t}\r\n\t\t\t}, error => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}));\r\n\t}\r\n\tAfterApplicantSearchCallBack(applicantId) {\r\n\t\tthis.GetApplicationList(applicantId);\r\n\t\tthis.PrepareQuestionnaireGridList();\r\n\t}\r\n\tGetCreditHistory = (applicantId) => {\r\n\t\tconst { showMessage } = this.props;\r\n\r\n\t\tthis\r\n\t\t\t.loadTaskPool\r\n\t\t\t.AppendTask(Proxy.POST(\"/lmsapi/v1.0/LoanCreditHistory/GetByApplicantId\", {\r\n\t\t\t\tApplicantId: applicantId\r\n\t\t\t}, (responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvar { applicantModel } = this.state;\r\n\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tif (responseData.Item.CreditHistory) {\r\n\t\t\t\t\t\tObject.assign(applicantModel, responseData.Item.CreditHistory);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item.CreditHistoryDetails) {\r\n\t\t\t\t\t\tapplicantModel.CreditHistoryDetails = responseData.Item.CreditHistoryDetails;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ applicantModel });\r\n\t\t\t}, (error) => {\r\n\t\t\t\tshowMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}));\r\n\t}\r\n\tGetApplicationList(applicantId) {\r\n\t\tthis\r\n\t\t\t.loadTaskPool\r\n\t\t\t.AppendTask(Proxy.POST(\"/losapi/v1.0/Application/Search\", {\r\n\t\t\t\tApplicantId: applicantId\r\n\t\t\t}, responseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tmodelList: responseData.Item || []\r\n\t\t\t\t});\r\n\t\t\t}, error => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}));\r\n\t}\r\n\tHandleGetApplication = (id) => {\r\n\t\tlet { model, clientPartnerModel } = this.state;\r\n\t\tthis\r\n\t\t\t.loadTaskPool\r\n\t\t\t.AppendTask(Proxy.POST(\"/losapi/v1.0/Application/SearchByIdForCompleteApplication\", {\r\n\t\t\t\tId: id\r\n\t\t\t}, responseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tmodel = responseData.Item.Application;\r\n\t\t\t\t\tif (model.SecurityInfoType != null && model.SecurityInfoType.ParameterValue == \"3\")\r\n\t\t\t\t\t\tmodel.OtherSecurityInfoEnable = true;\r\n\t\t\t\t\tif (model.ClientPartner != null) {\r\n\t\t\t\t\t\tclientPartnerModel = model.ClientPartner;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (model.LoanType != null && model.LoanType.ParameterValue != ConstLoanType.Loan) {\r\n\t\t\t\t\t\tmodel.RequestedPaymentPeriod = 1;\r\n\t\t\t\t\t\tthis.state.isPeriodDisable = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.state.IsActiveLoanPurposeDescription = false;\r\n\t\t\t\t\tif (model.LoanPurpose != null && model.LoanPurpose.ParameterDesc === \"Other\") {\r\n\t\t\t\t\t\tthis.state.IsActiveLoanPurposeDescription = true;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (responseData.Item.Application.ApplicationBorrowerReview == null) {\r\n\t\t\t\t\t\tresponseData.Item.Application.ApplicationBorrowerReview = {};\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tmodel.ReviewPeriodId = responseData.Item.Application.ApplicationBorrowerReview.ReviewPeriodId;\r\n\t\t\t\t\tmodel.ReviewTypeId = responseData.Item.Application.ApplicationBorrowerReview.ReviewTypeId;\r\n\t\t\t\t\tmodel.ReviewAlertTimeId = responseData.Item.Application.ApplicationBorrowerReview.ReviewAlertTimeId;\r\n\t\t\t\t\tmodel.ReviewAlertNotificationId = responseData.Item.Application.ApplicationBorrowerReview.ReviewAlertNotificationId;\r\n\t\t\t\t\tmodel.ReviewResultNotificationId = responseData.Item.Application.ApplicationBorrowerReview.ReviewResultNotificationId;\r\n\t\t\t\t\tmodel.PreviousReviewDate = responseData.Item.Application.ApplicationBorrowerReview.PreviousReviewDate;\r\n\r\n\t\t\t\t\tvar ApplicationQuestionnaireList = responseData.Item.ApplicationQuestionnaireList || [];\r\n\t\t\t\t\tvar appFeeProfileList = responseData.Item.ApplicationLoanFeeDefinitionList || [];\r\n\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tmodel,\r\n\t\t\t\t\t\tclientPartnerModel,\r\n\t\t\t\t\t\tparamApplicationAddressList: responseData.Item.ApplicationAddressList,\r\n\t\t\t\t\t\tApplicationQuestionnaireList,\r\n\t\t\t\t\t\tfeeProfileList: appFeeProfileList\r\n\t\t\t\t\t}, () => {\r\n\t\t\t\t\t\tthis.PrepareQuestionnaireGridList();\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\tthis.GetPanelActivationStatus(model.Id);\r\n\t\t\t\t}\r\n\t\t\t}, this.ErrorCallback));\r\n\t}\r\n\tGetPanelActivationStatus(id) {\r\n\r\n\t\tthis\r\n\t\t\t.loadTaskPool\r\n\t\t\t.AppendTask(Proxy.POST(\"/losapi/v1.0/LOSPanelActivationStatus/GetByParameter\", {\r\n\t\t\t\tDataId: id,\r\n\t\t\t\tScreenCode: MenuCodes.LOS_CreateApplication\r\n\t\t\t}, (responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null)\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tpanelActivationStatus: JSON.parse(responseData.Item.PanelInfo)\r\n\t\t\t\t\t});\r\n\t\t\t}\r\n\t\t\t\t, (error) => {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t\t}));\r\n\t}\r\n\tHandleClickClearOk = () => {\r\n\t\tthis.HideAlert();\r\n\t\tthis.setState({\r\n\t\t\tpanelActivationStatus: initialState.panelActivationStatus,\r\n\t\t\tmodel: {\r\n\t\t\t\tOtherSecurityInfoEnable: false\r\n\t\t\t},\r\n\t\t\tapplicantModel: {},\r\n\t\t\tfileModel: {},\r\n\t\t\tclientPartnerModel: {},\r\n\t\t\tparamApplicationProfile: {},\r\n\t\t\tparamApplicationAddressList: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tReadOnly: false,\r\n\t\t\tisCreateApplicantDialogOpen: false,\r\n\t\t\tapplicantDefinitionMenuId: 0,\r\n\t\t\tfeeProfileList: []\r\n\t\t});\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.ShowConfirmMessage(\"warning\", \"Warning\", \"This will erase the information you entered on the screen. Are you sure you want\" +\r\n\t\t\t\" to quit this application?\",\r\n\t\t\t() => this.HandleClickClearOk());\r\n\t}\r\n\tHandleSearch = () => { }\r\n\tErrorCallback = (error) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"Error\", \"An error occurred during the api visit\" + error);\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\tshowBasicAlert = (title, message, type) => {\r\n\t\tthis.setState({\r\n\t\t\tisLoading: false, alert: this.HideAlert()} />\r\n\t\t});\r\n\t}\r\n\tApplicantDefinitionDiologOpenOrClose = () => {\r\n\t\tif (this.state.isCreateApplicantDialogOpen == false) {\r\n\t\t\tthis.setState({ isCreateApplicantDialogOpen: true });\r\n\t\t} else {\r\n\t\t\tthis.setState({ isCreateApplicantDialogOpen: false });\r\n\t\t}\r\n\t}\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: null })}\r\n\t\t\t\tOnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\tHideAlert = () => {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\tOperationCheck = () => {\r\n\r\n\t\tvar ErrorList = [];\r\n\t\tconst { vModel } = this.state;\r\n\t\tconst data = this.state.model;\r\n\t\tif (data.ApplicantId == null || data.ApplicantId == \"\") {\r\n\t\t\tErrorList.push(\"Applicant must be defined.\");\r\n\t\t\tvModel.ApplicantId = true;\r\n\t\t} else {\r\n\t\t\tvModel.ApplicantId = false;\r\n\t\t}\r\n\t\tif (data.LoanTypeId == null || data.LoanTypeId == \"\") {\r\n\t\t\tErrorList.push(\"Loan type must be defined.\");\r\n\t\t\tvModel.LoanTypeId = true;\r\n\t\t} else {\r\n\t\t\tvModel.LoanTypeId = false;\r\n\t\t}\r\n\t\tif (data.LoanPurposeId == null || data.LoanPurposeId == \"\") {\r\n\t\t\tErrorList.push(\"Loan purpose must be defined.\");\r\n\t\t\tvModel.LoanPurposeId = true;\r\n\t\t} else {\r\n\t\t\tvModel.LoanPurposeId = false;\r\n\t\t}\r\n\t\tif (data.RequestedPaymentPeriod == null || data.RequestedPaymentPeriod == \"\") {\r\n\t\t\tErrorList.push(\"Period must be defined.\");\r\n\t\t\tvModel.RequestedPaymentPeriod = true;\r\n\t\t} else {\r\n\t\t\tvModel.RequestedPaymentPeriod = false;\r\n\t\t}\r\n\t\tif (data.RequestedAmount == null || data.RequestedAmount == \"\") {\r\n\t\t\tErrorList.push(\"Requested amount must be defined.\");\r\n\t\t\tvModel.RequestedAmount = true;\r\n\t\t} else {\r\n\t\t\tvModel.RequestedAmount = false;\r\n\t\t}\r\n\t\tif (this.state.applicantModel == null || this.state.applicantModel.IdVerification == null || this.state.applicantModel.IdVerification == \"\" || this.state.applicantModel.IdVerification != \"Valid\") {\r\n\t\t\tErrorList.push(\"Id must be valid.\");\r\n\t\t\tvModel.IdVerification = true;\r\n\t\t} else {\r\n\t\t\tvModel.IdVerification = false;\r\n\t\t}\r\n\t\tthis.setState({ vModel });\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please Fill Required Fields\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tthis.UpdateModel(LOSApplicationStatus.Open);\r\n\t}\r\n\r\n\tShowMessageAndRefresh = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlertAndRefresh()} />\r\n\t\t});\r\n\t}\r\n\thideAlertAndRefresh = () => {\r\n\t\tthis.setState({ alert: null, isLoading: false });\r\n\t\twindow\r\n\t\t\t.location\r\n\t\t\t.reload();\r\n\t}\r\n\r\n\tUpdateModel = (status, callback) => {\r\n\t\tconst model = this.state.model;\r\n\t\tlet IsAppliedForCardReadOnly = this.state.IsAppliedForCardReadOnly;\r\n\r\n\t\tif (model.Status == null || model.Status.ParameterValue == LOSApplicationStatus.Saved) {\r\n\t\t\tmodel.Status = {\r\n\t\t\t\tParameterValue: status\r\n\t\t\t};\r\n\t\t}\r\n\r\n\t\tvar Application = model;\r\n\t\tApplication.ApplicationBorrowerReview = {\r\n\t\t\tReviewPeriodId: model.ReviewPeriodId,\r\n\t\t\tReviewTypeId: model.ReviewTypeId,\r\n\t\t\tReviewAlertTimeId: model.ReviewAlertTimeId,\r\n\t\t\tReviewAlertNotificationId: model.ReviewAlertNotificationId,\r\n\t\t\tReviewResultNotificationId: model.ReviewResultNotificationId\r\n\t\t};\r\n\r\n\t\tApplication.Id = Application.Id || 0;\r\n\r\n\t\tthis\r\n\t\t\t.loadTaskPool\r\n\t\t\t.AppendTask(Proxy.POST(\"/losapi/v1.0/Application/InsertUpdate\", {\r\n\t\t\t\tApplication,\r\n\t\t\t\tApplicationQuestionnaireList: this.state.ApplicationQuestionnaireList\r\n\t\t\t}, responseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ model: responseData.Item.Application });\r\n\r\n\t\t\t\tif (model.Id > 0) {\r\n\t\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Application Updated\");\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Application Saved\");\r\n\t\t\t\t}\r\n\t\t\t\tmodel.Id = responseData.Item.Id;\r\n\t\t\t\tif (callback)\r\n\t\t\t\t\tcallback(model.Id);\r\n\r\n\t\t\t\tthis.HandleGetApplication(responseData.Item\r\n\t\t\t\t\t?.Application\r\n\t\t\t\t\t?.Id);\r\n\t\t\t}, error => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}));\r\n\t\tif (!IsAppliedForCardReadOnly)\r\n\t\t\tthis.setState({ IsAppliedForCardReadOnly: true });\r\n\t}\r\n\r\n\tRenderItemApplication = (d) => {\r\n\t\tthis.renderItemApplication = `${d.ApplicationNumber} - ${d.LoanType.ParameterDesc}`;\r\n\t\treturn this.renderItemApplication;\r\n\t}\r\n\tHandleChangeFilterPanel(name, expanded) {\r\n\t\tvar currentPanelActivation = Object.assign({}, initialState.panelActivationStatus);\r\n\t\tcurrentPanelActivation.panelFilterActive = false;\r\n\t\tcurrentPanelActivation[name] = expanded\r\n\t\t\t? true\r\n\t\t\t: false;\r\n\r\n\t\tthis.setState({ panelActivationStatus: currentPanelActivation });\r\n\r\n\t\tthis.InserUpdatePanelActivationStatus(currentPanelActivation);\r\n\t}\r\n\tInserUpdatePanelActivationStatus(PanelInfo, id) {\r\n\t\tif ((this.state.model == null || this.state.model.Id == null || this.state.model.Id == 0) && id == undefined)\r\n\t\t\treturn;\r\n\t\tthis\r\n\t\t\t.loadTaskPool\r\n\t\t\t.AppendTask(Proxy.POST(\"/losapi/v1.0/LOSPanelActivationStatus/InsertUpdate\", {\r\n\t\t\t\tDataId: id == undefined\r\n\t\t\t\t\t? this.state.model.Id\r\n\t\t\t\t\t: id,\r\n\t\t\t\tScreenCode: MenuCodes.LOS_CreateApplication,\r\n\t\t\t\tPanelInfo: JSON.stringify(PanelInfo)\r\n\t\t\t}, (responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}, (error) => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}));\r\n\t}\r\n\tPanelFilterActiveNextClicked() {\r\n\t\tvar ErrorList = [];\r\n\t\tconst data = this.state.model;\r\n\r\n\t\tconst { vModel } = this.state;\r\n\t\tif (data.ApplicantId == null || data.ApplicantId == \"\") {\r\n\t\t\tErrorList.push(\"Applicant must be defined.\");\r\n\t\t\tvModel.ApplicantId = true;\r\n\t\t} else {\r\n\t\t\tvModel.ApplicantId = false;\r\n\t\t}\r\n\t\tif (this.state.applicantModel == null || this.state.applicantModel.IdVerification == null || this.state.applicantModel.IdVerification == \"\" || this.state.applicantModel.IdVerification != \"Valid\") {\r\n\t\t\tErrorList.push(\"Id must be valid.\");\r\n\t\t\tvModel.IdVerification = true;\r\n\t\t} else {\r\n\t\t\tvModel.IdVerification = false;\r\n\t\t}\r\n\t\tthis.setState({ vModel });\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please Fill Required Fields\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.UpdateModel(LOSApplicationStatus.Saved, this.SavePanelAfterInsert);\r\n\r\n\t}\r\n\tSavePanelAfterInsert(id) {\r\n\t\tvar currentPanelActivation = Object.assign({}, initialState.panelActivationStatus);\r\n\t\tcurrentPanelActivation.panelFilterActive = false;\r\n\t\tcurrentPanelActivation.panelAppliedForActive = true;\r\n\t\tthis.setState({ panelActivationStatus: currentPanelActivation });\r\n\t\tthis.InserUpdatePanelActivationStatus(currentPanelActivation, id);\r\n\t}\r\n\tHandleAppliedForUpdateAction = () => {\r\n\t\tif (this.state == null)\r\n\t\t\treturn;\r\n\t\tconst data = this.state;\r\n\t\tif (data != null && data.IsAppliedForCardReadOnly != null) {\r\n\t\t\tdata.IsAppliedForCardReadOnly\r\n\t\t\t\t? this.setState({ IsAppliedForCardReadOnly: false })\r\n\t\t\t\t: this.OperationCheck();\r\n\t\t}\r\n\t}\r\n\tPanelAppliedForActiveNextClicked() {\r\n\t\tvar ErrorList = [];\r\n\t\tconst data = this.state.model;\r\n\t\tif (data.LoanTypeId == null || data.LoanTypeId == \"\") {\r\n\t\t\tErrorList.push(\"Loan type must be defined.\");\r\n\t\t}\r\n\t\tif (data.LoanPurposeId == null || data.LoanPurposeId == \"\") {\r\n\t\t\tErrorList.push(\"Loan purpose must be defined.\");\r\n\t\t}\r\n\t\tif (data.RequestedPaymentPeriod == null || data.RequestedPaymentPeriod == \"\") {\r\n\t\t\tErrorList.push(\"Period must be defined.\");\r\n\t\t}\r\n\t\tif (data.RequestedAmount == null || data.RequestedAmount == \"\") {\r\n\t\t\tErrorList.push(\"Requested amount must be defined.\");\r\n\t\t}\r\n\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please Fill Required Fields\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.UpdateModel(LOSApplicationStatus.Saved);\r\n\t\tvar currentPanelActivation = Object.assign({}, initialState.panelActivationStatus);\r\n\t\tcurrentPanelActivation.panelFilterActive = false;\r\n\t\tcurrentPanelActivation.panelApplicantInformationActive = true;\r\n\t\tthis.setState({ panelActivationStatus: currentPanelActivation });\r\n\t\tthis.InserUpdatePanelActivationStatus(currentPanelActivation);\r\n\r\n\t}\r\n\tPanelApplicantInformationActiveNextClicked() {\r\n\t\tconst model = this.state.model;\r\n\t\tthis.UpdateModel(LOSApplicationStatus.Saved);\r\n\r\n\t\tvar currentPanelActivation = Object.assign({}, initialState.panelActivationStatus);\r\n\t\tcurrentPanelActivation.panelFilterActive = false;\r\n\t\tif (model.LoanType != null && model.LoanType.ParameterValue != ConstLoanType.SecureCard) {\r\n\t\t\tcurrentPanelActivation.panelAdditionalInformationActive = true;\r\n\t\t} else {\r\n\t\t\tcurrentPanelActivation.panelAdditionalInformationOptionalActive = true;\r\n\t\t}\r\n\r\n\t\tthis.setState({ panelActivationStatus: currentPanelActivation });\r\n\t\tthis.InserUpdatePanelActivationStatus(currentPanelActivation);\r\n\r\n\t}\r\n\tpanelAdditionalInformationActiveNextClicked() {\r\n\r\n\t\tthis.UpdateModel(LOSApplicationStatus.Saved);\r\n\t\tvar currentPanelActivation = Object.assign({}, initialState.panelActivationStatus);\r\n\t\tcurrentPanelActivation.panelFilterActive = false;\r\n\t\tcurrentPanelActivation.panelAdditionalInformationOptionalActive = true;\r\n\r\n\t\tthis.setState({ panelActivationStatus: currentPanelActivation });\r\n\t\tthis.InserUpdatePanelActivationStatus(currentPanelActivation);\r\n\r\n\t}\r\n\tpanelAdditionalInformationOptionalActiveNextClicked() {\r\n\t\tconst model = this.state.model;\r\n\t\tthis.UpdateModel(LOSApplicationStatus.Saved);\r\n\r\n\t\tvar currentPanelActivation = Object.assign({}, initialState.panelActivationStatus);\r\n\t\tcurrentPanelActivation.panelFilterActive = false;\r\n\t\tif (model.LoanType != null && model.LoanType.ParameterValue != ConstLoanType.SecureCard) {\r\n\t\t\tcurrentPanelActivation.panelSecurityInformationActive = true;\r\n\t\t} else {\r\n\t\t\tcurrentPanelActivation.panelBorrowerReviewActive = true;\r\n\t\t}\r\n\r\n\t\tthis.setState({ panelActivationStatus: currentPanelActivation });\r\n\t\tthis.InserUpdatePanelActivationStatus(currentPanelActivation);\r\n\r\n\t}\r\n\tpanelSecurityInformationActiveNextClicked() {\r\n\t\tthis.UpdateModel(LOSApplicationStatus.Saved);\r\n\r\n\t\tvar currentPanelActivation = Object.assign({}, initialState.panelActivationStatus);\r\n\t\tcurrentPanelActivation.panelFilterActive = false;\r\n\t\tcurrentPanelActivation.panelScoreActive = true;\r\n\r\n\t\tthis.setState({ panelActivationStatus: currentPanelActivation });\r\n\t\tthis.InserUpdatePanelActivationStatus(currentPanelActivation);\r\n\r\n\t}\r\n\tpanelScoreActiveNextClicked() {\r\n\t\tthis.UpdateModel(LOSApplicationStatus.Saved);\r\n\r\n\t\tvar currentPanelActivation = Object.assign({}, initialState.panelActivationStatus);\r\n\t\tcurrentPanelActivation.panelFilterActive = false;\r\n\t\tcurrentPanelActivation.panelNetworthActive = true;\r\n\r\n\t\tthis.setState({ panelActivationStatus: currentPanelActivation });\r\n\t\tthis.InserUpdatePanelActivationStatus(currentPanelActivation);\r\n\r\n\t}\r\n\tpanelNetworthActiveNextClicked() {\r\n\t\tthis.UpdateModel(LOSApplicationStatus.Saved);\r\n\r\n\t\tvar currentPanelActivation = Object.assign({}, initialState.panelActivationStatus);\r\n\t\tcurrentPanelActivation.panelFilterActive = false;\r\n\t\tcurrentPanelActivation.panelBorrowerReviewActive = true;\r\n\r\n\t\tthis.setState({ panelActivationStatus: currentPanelActivation });\r\n\t\tthis.InserUpdatePanelActivationStatus(currentPanelActivation);\r\n\r\n\t}\r\n\tpanelQuestionnaireActiveNextClicked() {\r\n\t\tthis.UpdateModel(LOSApplicationStatus.Saved);\r\n\t\tvar currentPanelActivation = Object.assign({}, initialState.panelActivationStatus);\r\n\t\tcurrentPanelActivation.panelFilterActive = false;\r\n\t\tcurrentPanelActivation.panelBorrowerReviewActive = true;\r\n\t\tthis.setState({ panelActivationStatus: currentPanelActivation });\r\n\t\tthis.InserUpdatePanelActivationStatus(currentPanelActivation);\r\n\r\n\t}\r\n\tpanelBorrowerReviewActiveNextClicked() {\r\n\t\tthis.UpdateModel(LOSApplicationStatus.Open);\r\n\t\tvar currentPanelActivation = Object.assign({}, initialState.panelActivationStatus);\r\n\t\tcurrentPanelActivation.panelFilterActive = false;\r\n\t\tthis.setState({ panelActivationStatus: currentPanelActivation });\r\n\t\tthis.InserUpdatePanelActivationStatus(currentPanelActivation);\r\n\r\n\t}\r\n\r\n\tHandleQuestionnaireValueChange(name, value) {\r\n\r\n\t\tconst { ApplicationQuestionnaireList } = this.state;\r\n\t\tvar changedItem = ApplicationQuestionnaireList.filter(i => i.QuestionnaireId == name);\r\n\t\tif (changedItem != undefined) {\r\n\t\t\tchangedItem = changedItem[0];\r\n\t\t\tchangedItem.GivenValue = value;\r\n\t\t\tthis.setState({\r\n\t\t\t\tApplicationQuestionnaireList\r\n\t\t\t}, () => {\r\n\t\t\t\tthis.PrepareQuestionnaireGridList();\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\tPrepareQuestionnaireGridList() {\r\n\t\tconst { ApplicationQuestionnaireList } = this.state;\r\n\t\tvar tastPool = this.loadTaskPool;\r\n\t\tvar handleChange = this.HandleQuestionnaireValueChange;\r\n\t\tvar Disabled = !this.state.model.isGenerateNew && (this.state.model.Id == 0);\r\n\t\tvar QuestionnaireGridItemList = [];\r\n\t\tif (ApplicationQuestionnaireList != undefined) {\r\n\t\t\tApplicationQuestionnaireList\r\n\t\t\t\t.forEach(function (item) {\r\n\t\t\t\t\tif (item.Questionnaire.QuestionType.ParameterValue == LosQuestionnaireQuestionType.Select) { //select\r\n\t\t\t\t\t\tvar select = \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t;\r\n\t\t\t\t\t\tQuestionnaireGridItemList.push(select);\r\n\t\t\t\t\t} else if (item.Questionnaire.QuestionType.ParameterValue == LosQuestionnaireQuestionType.Text) {\r\n\t\t\t\t\t\tvar textInput = \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t;\r\n\t\t\t\t\t\tQuestionnaireGridItemList.push(textInput);\r\n\t\t\t\t\t} else if (item.Questionnaire.QuestionType.ParameterValue == LosQuestionnaireQuestionType.Number) {\r\n\t\t\t\t\t\tvar numberInput = \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t;\r\n\t\t\t\t\t\tQuestionnaireGridItemList.push(numberInput);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t}\r\n\r\n\t\tthis.setState({ QuestionnaireGridItemList });\r\n\t}\r\n\tGetApplicationQuestionnaire() {\r\n\t\tthis\r\n\t\t\t.loadTaskPool\r\n\t\t\t.AppendTask(Proxy.POST(\"/losapi/v1.0/Questionnaire/SearchApplicationQuestionnaire\", {\r\n\t\t\t\tApplication: {\r\n\t\t\t\t\tId: this.state.model.Id,\r\n\t\t\t\t\tLoanTypeId: this.state.model.LoanTypeId,\r\n\t\t\t\t\tLoanPurposeId: this.state.model.LoanPurposeId\r\n\t\t\t\t}\r\n\t\t\t}, responseData => {\r\n\t\t\t\tconsole.log(\"GetApplicationQuestionnaire ->\", responseData.IsSucceeded);\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tvar list = responseData.Item || [];\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tApplicationQuestionnaireList: list\r\n\t\t\t\t}, () => {\r\n\t\t\t\t\tthis.PrepareQuestionnaireGridList();\r\n\t\t\t\t});\r\n\t\t\t}, error => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}));\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst {\r\n\t\t\tmodel,\r\n\t\t\tmodelList,\r\n\t\t\tapplicantModel,\r\n\t\t\tisCreateApplicantDialogOpen,\r\n\t\t\tapplicantDefinitionMenuId,\r\n\t\t\tclientPartnerModel,\r\n\t\t\talert,\r\n\t\t\tisLoading,\r\n\t\t\tisPeriodDisable,\r\n\t\t\tIsActiveLoanPurposeDescription,\r\n\t\t\tIsAppliedForCardReadOnly,\r\n\t\t\tvModel,\r\n\t\t\tEnableApplicantUpdate,\r\n\t\t\tRequestedLengthOfTermSource,\r\n\t\t\tfeeProfileList\r\n\t\t} = this.state;\r\n\t\tconst { ExecuteApiPost, MenuCode } = this.props;\r\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\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t {applicantModel.IdentityVerificationTypeValue == IdentificationMethod.CanadaPostVerification && \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{applicantModel.IdentityVerificationTypeValue == IdentificationMethod.InPersonIDVerification && \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tNext\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t{((model.LoanType != null && model.LoanType.ParameterValue == ConstLoanType.Loan) || !(isPeriodDisable != undefined && isPeriodDisable)) && \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t{((model.LoanType != null && model.LoanType.ParameterValue == ConstLoanType.SecureCard) || !(isPeriodDisable != undefined && isPeriodDisable)) && \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t{IsActiveLoanPurposeDescription && \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{IsAppliedForCardReadOnly\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? \"Edit\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: \"Update\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tNext\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{(model.LoanType != null && model.LoanType.ParameterValue != ConstLoanType.SecureCard) && \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t{(model.LoanType != null && model.LoanType.ParameterValue == ConstLoanType.Loan) && \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tNext\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t{(model.LoanType != null && model.LoanType.ParameterValue != ConstLoanType.SecureCard) && \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tNext\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t{(model.LoanType != null && model.LoanType.ParameterValue != ConstLoanType.SecureCard) && \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tNext\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t{this.state.QuestionnaireGridItemList && this.state.QuestionnaireGridItemList.length != 0 && \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t{this.state.QuestionnaireGridItemList}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tNext\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tNext\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n\r\n}\r\n\r\nCreateApplication.propTypes = {\r\n\ttabList: PropTypes.array,\r\n\tclasses: PropTypes.object.isRequired,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tApplicationSaved: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tMenuCode: PropTypes.string,\r\n\tExecuteApiPost: PropTypes.func\r\n};\r\n\r\nexport\r\n\tdefault withArtifex(CreateApplication, {});","import Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport { DeleteIcon, DownloadIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport { GenericAlert, GenericGrid, GenericLabel, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nclass LoanApplicationDocument extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.UploadClick = this.UploadClick.bind(this);\r\n\t\tthis.FileSelect = this.FileSelect.bind(this);\r\n\t\tthis.UpdateModel = this.UpdateModel.bind(this);\r\n\t\tthis.UpdateFile = this.UpdateFile.bind(this);\r\n\r\n\t\tthis.fileInputRef = React.createRef();\r\n\r\n\t\tthis.state = {\r\n\t\t\tdocumentModel: { File: { FileName: \"\" } },\r\n\t\t\tdocumentList: [],\r\n\t\t\tisLoading: false,\r\n\t\t\talert: null\r\n\t\t};\r\n\t\tthis.ParameterDocumentType = { ParameterCode: \"LOSDocumentType\" };\r\n\t\tthis.ParameterDocumentVerifiedStatusType = { ParameterCode: \"LOSVerifiedStatus\" };\r\n\t\tthis.VerifyingPersonParameterCode = { ParameterCode: \"IdentityVerifyingPerson\" };\r\n\r\n\t\tthis.ColumnsData = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t this.setState({ documentModel: { ...row.original } })} />\r\n\t\t\t\t\t\t this.showQuestionMessage(\"Delete this record !\", row.original)} />\r\n\t\t\t\t\t\t{this.props.ApplicationModel.Id > 0 &&\r\n\t\t\t\t\t\t\t this.DownloadFile(row.original)} />\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\twidth: 100\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Document Type\",\r\n\t\t\t\taccessor: \"DocumentType.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Verification Status\",\r\n\t\t\t\taccessor: \"VerificationStatus.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Verified Person\",\r\n\t\t\t\taccessor: \"VerifiedPerson.ParameterDesc\"\r\n\t\t\t}\r\n\t\t];\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\tif (this.props.setAppLeftTitle)\r\n\t\t\tthis.props.setAppLeftTitle(\"Documents\");\r\n\r\n\r\n\t\tvar model = { Id: 0 };\r\n\t\tthis.setState({ documentModel: model, ApplicationDocumentList: this.props.ApplicationDocumentList });\r\n\r\n\t}\r\n\tUploadClick() {\r\n\t\tthis.fileInputRef.current.click();\r\n\t}\r\n\r\n\tFileSelect(e) {\r\n\t\te.preventDefault();\r\n\r\n\t\tvar file = e.target.files[0];\r\n\t\tif (!file) return;\r\n\t\tvar documentModel = this.state.documentModel;\r\n\t\tif (documentModel.File == undefined)\r\n\t\t\tdocumentModel.File = { FileName: file.name };\r\n\t\telse\r\n\t\t\tdocumentModel.File.FileName = file.name;\r\n\t\tthis.setState({ fileModel: file, documentModel });\r\n\t}\r\n\r\n\tOperationCheck = () => {\r\n\r\n\t\tvar ErrorList = [];\r\n\t\tconst data = this.state.documentModel;\r\n\r\n\t\tif (data == null) {\r\n\t\t\tErrorList.push(\"Document model not defined.\");\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please Fill Required Fields\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (data.DocumentTypeId == null || data.DocumentTypeId == \"\") {\r\n\t\t\tErrorList.push(\"Document type must be defined.\");\r\n\t\t}\r\n\t\tif (data.VerificationStatusId == null || data.VerificationStatusId == \"\") {\r\n\t\t\tErrorList.push(\"Document verified status must be defined.\");\r\n\t\t}\r\n\t\tif (data.VerifiedPersonId == null || data.VerifiedPersonId == \"\") {\r\n\t\t\tErrorList.push(\"Document verified person must be defined.\");\r\n\t\t}\r\n\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please Fill Required Fields\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.UpdateModel();\r\n\t}\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\tUpdateModel = () => {\r\n\t\tvar { ApplicationModel } = this.props;\r\n\t\tvar temp = this.state.documentModel;\r\n\r\n\t\tif (ApplicationModel.Id == undefined || ApplicationModel.Id == 0) {\r\n\t\t\tvar formData = new FormData();\r\n\t\t\tformData.append(\"file\", this.state.fileModel, String(this.state.fileModel.name));\r\n\t\t\tvar response = this.props.AddDocumentToTempList(temp, formData);\r\n\t\t\tif (response == false)\r\n\t\t\t\treturn;\r\n\r\n\t\t\tthis.ShowMessage(\"success\", \"Success\", this.state.documentModel.Id > 0 ? \"Application Document Updated\" : \"Application Document Saved\");\r\n\t\t\tthis.ClearData();\r\n\t\t\tthis.props.GetApplicationDocumentModels();\r\n\t\t\treturn;\r\n\r\n\r\n\t\t}\r\n\t\ttemp.ApplicationId = ApplicationModel.Id;\r\n\t\tthis.props.TaskPoolFunc.AppendTask(\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/losapi/v1.0/ApplicationDocument/InsertUpdate\",\r\n\t\t\t\ttemp,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.UpdateFile(responseData.Item.Id);\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t));\r\n\t}\r\n\tUpdateFile = (documentId) => {\r\n\t\tvar formData = new FormData();\r\n\t\tformData.append(\"file\", this.state.fileModel, String(this.state.fileModel.name));\r\n\t\tformData.append(\"documentId\", String(documentId));\r\n\t\tthis.props.TaskPoolFunc.AppendTask(\r\n\t\t\tProxy.FileUpload(\r\n\t\t\t\t\"/losapi/v1.0/ApplicationDocument/UploadFile\",\r\n\t\t\t\tformData,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.ShowMessage(\"success\", \"Success\", this.state.documentModel.Id > 0 ? \"Application Document Updated\" : \"Application Document Saved\");\r\n\t\t\t\t\tthis.ClearData();\r\n\t\t\t\t\tthis.props.GetApplicationDocumentModels();\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t));\r\n\t}\r\n\tDeleteModel = (model) => {\r\n\t\tif (model == null || model.Id == null || model.Id == 0) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Warning\", \"Document must be selected for delete operation.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (model.Id < 0) {\r\n\t\t\tthis.props.DeleteTempDocument(model.Id);\r\n\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Application Document Deleted\");\r\n\t\t\tthis.ClearData();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.props.TaskPoolFunc.AppendTask(\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/losapi/v1.0/ApplicationDocument/Delete\",\r\n\t\t\t\t{ Id: model.Id },\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Application Document Deleted\");\r\n\t\t\t\t\tthis.ClearData();\r\n\t\t\t\t\tthis.props.GetApplicationDocumentModels();\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t));\r\n\t}\r\n\tSelectedRowChange = (e, index) => {\r\n\t\tvar { ApplicationModel } = this.props;\r\n\t\tif (ApplicationModel.Id == undefined || ApplicationModel.Id == 0) {\r\n\t\t\tconst model = this.props.TempApplicationDocumentList[index];\r\n\t\t\tthis.setState({ documentModel: model.documentModel || {} });\r\n\t\t} else {\r\n\t\t\tconst model = this.props.ApplicationDocumentList[index];\r\n\t\t\tthis.setState({ documentModel: model || {} });\r\n\t\t}\r\n\r\n\t}\r\n\tClearData = () => {\r\n\t\tvar model = { Id: 0 };\r\n\t\tthis.setState({ documentModel: model });\r\n\t}\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.documentModel || {};\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\tif (name == \"DocumentTypeId\") {\r\n\t\t\t\tmodel.DocumentType = data;\r\n\t\t\t}\r\n\t\t\tif (name == \"VerificationStatusId\") {\r\n\t\t\t\tmodel.VerificationStatus = data;\r\n\t\t\t}\r\n\t\t\tif (name == \"VerifiedPersonId\") {\r\n\t\t\t\tmodel.VerifiedPerson = data;\r\n\t\t\t}\r\n\t\t\treturn { documentModel: model };\r\n\t\t});\r\n\t}\r\n\r\n\tshowQuestionMessage = (message, model) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} OnConfirm={() => this.DeleteModel(model)} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\t// type:-success->warning->info->error\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\tDownloadFile = (index) => {\r\n\t\tthis.props.TaskPoolFunc.AppendTask(\r\n\t\t\tProxy.FileDownloadWithGenericResponse(\r\n\t\t\t\t\"/coreapi/v1.0/File/DownloadFileFromBinary\",\r\n\t\t\t\tindex.File.FileName,\r\n\t\t\t\tindex.File.FileExtension.ParameterDesc,\r\n\t\t\t\t{\r\n\t\t\t\t\t\"FileId\": index.FileId\r\n\t\t\t\t},\r\n\t\t\t\t() => {\r\n\t\t\t\t},\r\n\t\t\t\t(error) => {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t\t\t\t}\r\n\t\t\t));\r\n\t}\r\n\trender() {\r\n\t\tconst { Disabled: DisabledProp, ApplicationDocumentList } = this.props;\r\n\t\tconst { documentModel } = this.state;\r\n\t\tconst Disabled = DisabledProp || this.state.CustomDisabled;\r\n\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t{this.state.alert}\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tthis.SelectedRowChange(0, index);\r\n\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nLoanApplicationDocument.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tdocumentModel: PropTypes.object,\r\n\tApplicationModel: PropTypes.object,\r\n\tparamApplicationProfile: PropTypes.object,\r\n\tApplicationDocumentList: PropTypes.array,\r\n\tGetApplicationDocumentModels: PropTypes.func,\r\n\tparamBankApplicationStoreList: PropTypes.array,\r\n\thandleChangeParentTab: PropTypes.func,\r\n\thandleChangeChildTab: PropTypes.func,\r\n\tSetFile: PropTypes.func,\r\n\tTaskPoolFunc: PropTypes.func,\r\n\tTempApplicationDocumentList: PropTypes.array,\r\n\tAddDocumentToTempList: PropTypes.func,\r\n\tDeleteTempDocument: PropTypes.func,\r\n};\r\n\r\nexport default withArtifex(LoanApplicationDocument, {});","import GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { withArtifex } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport { GenericAlert, GenericNumberInput, GenericSelectInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nclass LoanApplicationOtherFinancial extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tisLoading: false,\r\n\t\t\talert: null\r\n\t\t};\r\n\t\tthis.LOSDepositInParameterCode = { ParameterCode: \"LOSDepositIn\" };\r\n\t\tthis.YesNoParameterCode = { ParameterCode: \"LOSYesNo\" };\r\n\t\tthis.LOSHousholdInParameterCode = { ParameterCode: \"LOSHousholdIn\" };\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tif (this.props.setAppLeftTitle)\r\n\t\t\tthis.props.setAppLeftTitle(\"Documents\");\r\n\t}\r\n\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\r\n\tClearData = () => {\r\n\t\tvar model = { Id: 0 };\r\n\t\tthis.setState({ otherFinancialModel: model });\r\n\t}\r\n\r\n\tDeleteModel = (model) => {\r\n\r\n\t}\r\n\r\n\tshowQuestionMessage = (message, model) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} OnConfirm={() => this.DeleteModel(model)} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.otherFinancialModel || {};\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\treturn { otherFinancialModel: model };\r\n\t\t});\r\n\t}\r\n\trender() {\r\n\t\tconst { Disabled, ApplicationModel } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t{this.state.alert}\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nLoanApplicationOtherFinancial.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tApplicationModel: PropTypes.object,\r\n\tHandleChange: PropTypes.func,\r\n\tApplicationOtherFinancialModel: PropTypes.object\r\n};\r\nexport default withArtifex(LoanApplicationOtherFinancial, {});","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport { DeleteIcon, EditIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericCheckInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericNumberInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport LoanCalculator from \"views/Components/LoanCalculator\";\r\nimport { CashLimitUsageType, LOSLoanType, PersonalizedExpDateList } from \"views/Constants/Constant.js\";\r\n\r\n\r\nconst initialState = {\r\n\tmodel: {\r\n\t\tLoanType: null,\r\n\t\tLoanTypeStr: null,\r\n\t\tLoanPurposeId: null,\r\n\t\tCashAdvanceLimitUsageType: null,\r\n\t\tCashAdvanceLimitUsageTypeStr: null,\r\n\t\tFeeLoanSetupProfileList: [],\r\n\t\tFeeLoanSetupProfileKeyValueList: [],\r\n\t\tFeeLoanSetupProfileValueList: [],\r\n\t\tFeeMonthlyRateProfileList: [],\r\n\t\tFeeMonthlyRateProfileKeyValueList: [],\r\n\t\tFeeMonthlyRateProfileValueList: []\r\n\t},\r\n\tmodelList: [],\r\n\tvModel: {},\r\n\tisLoading: false,\r\n\tReadOnly: false,\r\n\tisFeeCalculateDilogOpen: false,\r\n};\r\nclass FeeDefinition extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = initialState;\r\n\r\n\t\tthis.LoanTypeParameterCode = { ParameterCode: \"LOSLoanType\" };\r\n\t\tthis.LoanPurposeParameterCode = { ParameterCode: \"LOSLoanPurpose\" };\r\n\t\tthis.YesNoParameterCode = { ParameterCode: \"LOSYesNo\" };\r\n\t\tthis.CashLimitUsageType = { ParameterCode: \"CashLimitUsageType\" };\r\n\t\tthis.ColumnsData = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t this.setState({ addressModel: { ...row.original } })} />\r\n\t\t\t\t\t\t this.ShowQuestionMessage(\"Delete this record !\", row.original)} />\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\twidth: 100\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Profile Name\",\r\n\t\t\t\taccessor: \"Name\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Loan Type\",\r\n\t\t\t\taccessor: \"LoanType.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"LoanPurpose\",\r\n\t\t\t\taccessor: \"LoanPurpose.ParameterDesc\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Rate & Fee Definition\");\r\n\t\tthis.props.setAppCenterTitle(\"LOAN ORIGINATOR SYSTEM\");\r\n\t\tthis.getFeeDefinitionList();\r\n\t}\r\n\r\n\tOperationCheck = () => {\r\n\r\n\t\tvar ErrorList = [];\r\n\t\tconst data = this.state.model;\r\n\t\tconst { vModel } = this.state;\r\n\r\n\t\tif (data == null) {\r\n\t\t\tErrorList.push(\"Model not defined.\");\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please Fill Required Fields\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (data.LoanTypeId == null || data.LoanTypeId == \"\") {\r\n\t\t\tvModel.LoanTypeId = true;\r\n\t\t\tErrorList.push(\"Loan must be defined.\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvModel.LoanTypeId = false;\r\n\t\t}\r\n\t\tif (data.LoanPurposeId == null || data.LoanPurposeId == \"\") {\r\n\t\t\tvModel.LoanPurposeId = true;\r\n\t\t\tErrorList.push(\"Loan Purpose must be defined.\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvModel.LoanPurposeId = false;\r\n\t\t}\r\n\t\tif (!data.Name) {\r\n\t\t\tvModel.Name = true;\r\n\t\t\tErrorList.push(\"Profile name must be defined.\");\r\n\t\t} else {\r\n\t\t\tvModel.Name = false;\r\n\t\t}\r\n\t\tif (data.DormantCardDuration && Number(data.DormantCardDuration) == 0) {\r\n\t\t\tErrorList.push(\"Dormant Card Day Count cannot be entered zero\");\r\n\t\t}\r\n\t\tif (data.InactivityFeeApplyPeriod && Number(data.InactivityFeeApplyPeriod) == 0) {\r\n\t\t\tErrorList.push(\"Inactivity Fee Apply Days cannot be entered zero\");\r\n\t\t}\r\n\t\tif ((data.LoanTypeStr == LOSLoanType.LOC || data.LoanTypeStr == LOSLoanType.SecureCard) &&\r\n\t\t\t(data.PersonalizedExpDate == null || data.PersonalizedExpDate == \"\")) {\r\n\t\t\tvModel.PersonalizedExpDate = true;\r\n\t\t\tErrorList.push(\"Card expiration date must be defined.\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvModel.PersonalizedExpDate = false;\r\n\t\t}\r\n\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please Fill Required Fields\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tthis.setState({ vModel });\r\n\t\tthis.UpdateModel();\r\n\t}\r\n\tUpdateModel = () => {\r\n\t\tconst model = this.state.model;\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/losapi/v1.0/LoanFeeDefinition/InsertUpdate\",\r\n\t\t\tmodel,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (model.Id > 0) {\r\n\t\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Fee Definition Updated\", this.HandleClickClearOk);\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.ShowMessageAndRefresh(\"success\", \"Success\", \"Fee Definition Saved\");\r\n\t\t\t\t}\r\n\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tDeleteModel = (model) => {\r\n\t\tthis.setState({ alert: null, isLoading: true });\r\n\t\tProxy.GET(\r\n\t\t\t\"/losapi/v1.0/LoanFeeDefinition/Delete/Id?Id=\" + model.Id,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.ShowMessageAndRefresh(\"success\", \"Success\", \"Deleted Successfully\");\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tgetFeeDefinitionList() {\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/losapi/v1.0/LoanFeeDefinition/GetAll\",\r\n\t\t\t{},\r\n\t\t\tresponseData => {\r\n\t\t\t\tconsole.log(\"getFeeDefinitionList ->\", responseData.IsSucceeded);\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\r\n\t\t\t\t\tvar modelList = responseData.Item || [];\r\n\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tmodelList\r\n\t\t\t\t\t});\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmodelList = [];\r\n\t\t\t\t\tthis.setState({ modelList });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tgetFeeProfileDetail(loanFeeDefinitionId) {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst model = this.state.model;\r\n\r\n\t\tmodel.FeeLoanSetupProfileValueList = [];\r\n\t\tmodel.FeeMonthlyRateProfileValueList = [];\r\n\t\tProxy.POST(\r\n\t\t\t\"/losapi/v1.0/FeeProfile/FeeProfileDetailById\",\r\n\t\t\t{\r\n\t\t\t\tId: loanFeeDefinitionId\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tconsole.log(\"getFeeProfileDetail ->\", responseData.IsSucceeded);\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\r\n\t\t\t\t\tmodel.FeeLoanSetupProfileList = responseData.Item.FeeLoanSetupProfile || [];\r\n\t\t\t\t\tmodel.FeeMonthlyRateProfileList = responseData.Item.FeeMonthlyRateProfile || [];\r\n\t\t\t\t\tmodel.FeeLoanSetupProfileKeyValueList = responseData.Item.FeeLoanSetupProfileKeyValueList || [];\r\n\t\t\t\t\tmodel.FeeMonthlyRateProfileKeyValueList = responseData.Item.FeeMonthlyRateProfileKeyValueList || [];\r\n\t\t\t\t\tif (model.FeeLoanSetupProfileKeyValueList.length > 0) {\r\n\t\t\t\t\t\tmodel.FeeLoanSetupProfileKeyValueList.forEach(function (element) {\r\n\t\t\t\t\t\t\tmodel.FeeLoanSetupProfileValueList[element.Key] = element.Value;\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (model.FeeMonthlyRateProfileKeyValueList.length > 0) {\r\n\t\t\t\t\t\tmodel.FeeMonthlyRateProfileKeyValueList.forEach(function (element) {\r\n\t\t\t\t\t\t\tmodel.FeeMonthlyRateProfileValueList[element.Key] = element.Value;\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tmodel\r\n\t\t\t\t\t});\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmodel.FeeLoanSetupProfileList = [];\r\n\t\t\t\t\tmodel.FeeMonthlyRateProfileList = [];\r\n\t\t\t\t\tmodel.FeeLoanSetupProfileKeyValueList = [];\r\n\t\t\t\t\tmodel.FeeMonthlyRateProfileKeyValueList = [];\r\n\t\t\t\t\tmodel.FeeLoanSetupProfileValueList = [];\r\n\t\t\t\t\tmodel.FeeMonthlyRateProfileValueList = [];\r\n\t\t\t\t\tthis.setState({ model });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tShowQuestionMessage = (message, model) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.HideAlert()} OnConfirm={() => this.DeleteModel(model)} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tHandleSetupFeeChange = (name, newValue) => {\r\n\t\tvar valueList = this.state.model.FeeLoanSetupProfileValueList || [];\r\n\t\tvar model = this.state.model;\r\n\t\tvalueList[name] = newValue;\r\n\t\tif (model.FeeLoanSetupProfileKeyValueList == null)\r\n\t\t\tmodel.FeeLoanSetupProfileKeyValueList = [];\r\n\r\n\t\tvar newKeyValueList = model.FeeLoanSetupProfileKeyValueList.filter(function (item) {\r\n\t\t\treturn item.Key !== name;\r\n\t\t});\r\n\t\tnewKeyValueList.push({ Key: name, Value: newValue });\r\n\t\tmodel.FeeLoanSetupProfileKeyValueList = newKeyValueList;\r\n\r\n\t\tmodel.FeeLoanSetupProfileValueList = valueList;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\tHandleMonthlyFeeChange = (name, newValue) => {\r\n\t\tvar valueList = this.state.model.FeeMonthlyRateProfileValueList || [];\r\n\t\tvar model = this.state.model;\r\n\t\tvalueList[name] = newValue;\r\n\t\tif (model.FeeMonthlyRateProfileKeyValueList == null)\r\n\t\t\tmodel.FeeMonthlyRateProfileKeyValueList = [];\r\n\r\n\t\tvar newKeyValueList = model.FeeMonthlyRateProfileKeyValueList.filter(function (item) {\r\n\t\t\treturn item.Key !== name;\r\n\t\t});\r\n\t\tnewKeyValueList.push({ Key: name, Value: newValue });\r\n\t\tmodel.FeeMonthlyRateProfileKeyValueList = newKeyValueList;\r\n\r\n\t\tmodel.FeeMonthlyRateProfileValueList = valueList;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tmodel[name] = newValue;\r\n\r\n\t\tif (name == \"LoanTypeId\") {\r\n\t\t\tmodel.LoanType = data || {};\r\n\t\t\tmodel.LoanTypeStr = data && data.ParameterValue;\r\n\t\t\tmodel.LoanPurposeId = null;\r\n\t\t}\r\n\r\n\t\tif (name == \"CashAdvanceLimitUsageTypeId\") {\r\n\t\t\tmodel.CashAdvanceLimitUsageType = data || {};\r\n\t\t\tmodel.CashAdvanceLimitUsageTypeStr = data && data.ParameterValue;\r\n\t\t}\r\n\r\n\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClickClearOk = () => {\r\n\t\tthis.HideAlert();\r\n\t\tlet PurposeOfLoanParamList = this.state.PurposeOfLoanParamList;\r\n\r\n\t\tthis.setState(initialState, () => {\r\n\t\t\tthis.getFeeDefinitionList();\r\n\t\t});\r\n\t\tif (PurposeOfLoanParamList != null && PurposeOfLoanParamList.length > 0) {\r\n\t\t\tthis.setState({ PurposeOfLoanParamList });\r\n\t\t}\r\n\r\n\t}\r\n\tFeeCalculatorDialogOpenOrClose = () => {\r\n\t\tif (this.state.isFeeCalculateDilogOpen == false) {\r\n\t\t\tthis.setState({ isFeeCalculateDilogOpen: true });\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.setState({ isFeeCalculateDilogOpen: false });\r\n\t\t}\r\n\t}\r\n\tHandleClear = () => {\r\n\t\tthis.ShowConfirmMessage(\"warning\", \"Warning\", \"This will erase the information you entered on the screen. Are you sure you want to quit this application?\", () => this.HandleClickClearOk());\r\n\t}\r\n\tErrorCallback = (error) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"Error\", \"An error occurred during the api visit\" + error);\r\n\t}\r\n\r\n\tShowMessage = (type, title, message, callback) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" }, callback)} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: null })} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\r\n\tHideAlert = () => {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\tShowMessageAndRefresh = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlertAndRefresh()} />\r\n\t\t});\r\n\t}\r\n\thideAlertAndRefresh = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t\twindow.location.reload();\r\n\r\n\t}\r\n\tSelectedRowChange = (e, index) => {\r\n\t\tconst model = this.state.modelList[index];\r\n\t\tmodel.LoanTypeStr = model.LoanType == null ? \"\" : model.LoanType.ParameterValue || \"\";\r\n\t\tmodel.CashAdvanceLimitUsageTypeStr = model.CashAdvanceLimitUsageType == null ? \"\" : model.CashAdvanceLimitUsageType.ParameterValue || \"\";\r\n\t\tthis.setState({ model }, () => {\r\n\t\t\tthis.getFeeProfileDetail(model.Id);\r\n\t\t}\r\n\t\t);\r\n\t}\r\n\trender() {\r\n\t\tconst { model, alert, isLoading, modelList, isFeeCalculateDilogOpen } = this.state;\r\n\t\tconst vModel = this.state.vModel;\r\n\t\tvar ForInsert = !model.Id || model.Id <= 0;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{alert}\r\n\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\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t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{/* \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t */}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tmodel != null && (model.LoanTypeStr == LOSLoanType.LOC || model.LoanTypeStr == LOSLoanType.SecureCard) && (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{model != null && (model.LoanTypeStr == LOSLoanType.LOC || model.LoanTypeStr == LOSLoanType.SecureCard) && (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{model != null && (model.LoanTypeStr != LOSLoanType.SecureCard) && (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\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t\t\t\t\t\t\t\t\t\t\t{model != null && (model.LoanTypeStr == LOSLoanType.Loan) && (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{model != null && (model.LoanTypeStr == LOSLoanType.LOC || model.LoanTypeStr == LOSLoanType.SecureCard) && (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{model != null && (model.LoanTypeStr == LOSLoanType.LOC || model.LoanTypeStr == LOSLoanType.SecureCard) && (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{model != null && (model.LoanTypeStr == LOSLoanType.LOC || model.LoanTypeStr == LOSLoanType.SecureCard) && (\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{model != null && (model.CashAdvanceLimitUsageTypeStr == CashLimitUsageType.Ratio) && (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{model != null && (model.CashAdvanceLimitUsageTypeStr == CashLimitUsageType.Fixed) && (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{model.FeeLoanSetupProfileList != undefined && model.FeeLoanSetupProfileList.map((setupFee, i, array) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t})}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{/* {\r\n\t\t\t\t\t\t\t\t\t\t\tthis.state.model != null && this.state.model.Id > 0 ?\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t\t} */}\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{model.FeeMonthlyRateProfileList != undefined && model.FeeMonthlyRateProfileList.map((monthlyFee, i, array) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t})}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tthis.SelectedRowChange(0, index);\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\tIsSorted={false}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nFeeDefinition.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(FeeDefinition, {});","import { DialogContent, DialogTitle, Slide } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { DeleteIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericDateInput, GenericDialog, GenericDialogActions, GenericEmailInput, GenericExpansionPanel, GenericGrid, GenericLabel, GenericSelectInput, GenericRadioInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport { GridColumnType, IdentificationMethod } from \"views/Constants/Constant\";\r\nimport Select from \"react-select\";\r\nimport { Proxy } from \"core\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent.jsx\";\r\n\r\nfunction Transition(props) {\r\n\treturn ;\r\n}\r\n\r\nclass IdVerificationTracking extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date\",\r\n\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Applicant Name\",\r\n\t\t\t\taccessor: \"ApplicantName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Email Address\",\r\n\t\t\t\taccessor: \"EmailAddress\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Verification Type\",\r\n\t\t\t\taccessor: \"IdentityVerificationTypeParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Verification Status\",\r\n\t\t\t\taccessor: \"VerificationStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Verification Date\",\r\n\t\t\t\taccessor: \"VerificationDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Person Verified\",\r\n\t\t\t\taccessor: \"PersonVerified\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.columnsEmail = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t this.EmailAddressRemoveFromList(row.original.Id, row.original.EmailAddress)} />\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\twidth: 50\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Email Address\",\r\n\t\t\t\taccessor: \"EmailAddress\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.idVerTraTable = React.createRef();\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\tlistEmailAddress: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tisEmailAddressListDialogOpen: false\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"LOAN ORIGINATOR SYSTEM\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"ID Verification Tracking\");\r\n\t\t}\r\n\r\n\t\tthis.GetIdentityVerificationType();\r\n\t}\r\n\r\n\tValueChanged = (name, value, data) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\tif (name == \"EmailAddress\") {\r\n\t\t\t\tmodel[\"IsEmailAddressValid\"] = data.IsValid;\r\n\t\t\t}\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tValueChangedForReportType = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\r\n\tGetIdentityVerificationType = async () => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/Parameter/Search\", { ParameterCode: \"IdentificationMethod\" });\r\n\t\tvar listVerificationType = [];\r\n\r\n\t\tif (result != null) {\r\n\t\t\tresult\r\n\t\t\t\t.filter(x => x.ParameterValue == IdentificationMethod.CanadaPostVerification\r\n\t\t\t\t\t|| x.ParameterValue == IdentificationMethod.InPersonIDVerification\r\n\t\t\t\t\t|| x.ParameterValue == IdentificationMethod.Other)\r\n\t\t\t\t.map(x => {\r\n\t\t\t\t\tlistVerificationType.push(x);\r\n\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t});\r\n\t\t}\r\n\r\n\t\tthis.setState({ listVerificationType });\r\n\t}\r\n\r\n\tEmailAddressListDialogOpen = async () => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/Parameter/Search\", { ParameterCode: \"IdVerificationTrackingEmailAddress\" });\r\n\t\tvar listEmailAddress = [];\r\n\r\n\t\tif (result != null) {\r\n\t\t\tresult.map(x => {\r\n\t\t\t\tlistEmailAddress = listEmailAddress.concat({\r\n\t\t\t\t\tId: x.Id,\r\n\t\t\t\t\tEmailAddress: x.ParameterValue\r\n\t\t\t\t});\r\n\r\n\t\t\t\treturn null;\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tthis.setState({ listEmailAddress, isEmailAddressListDialogOpen: true });\r\n\t}\r\n\r\n\tEmailAddressListDialogClose = () => {\r\n\t\tthis.setState({ isEmailAddressListDialogOpen: false });\r\n\t}\r\n\r\n\tEmailAddressAddToListAndInsert = async () => {\r\n\t\tvar { model, listEmailAddress } = this.state;\r\n\t\tconst { showMessage } = this.props;\r\n\t\tvar emailAddressObject = { \"EmailAddress\": model.EmailAddress };\r\n\r\n\t\tif (listEmailAddress.find(x => x.EmailAddress == model.EmailAddress)) {\r\n\t\t\tshowMessage(\"warning\", \"Warning\", \"This email address already added.\");\r\n\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/losapi/v1.0/IdVerificationTracking/InsertEmailAddress\", { EmailAddress: model.EmailAddress });\r\n\r\n\t\tif (result == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tlistEmailAddress = listEmailAddress.concat(emailAddressObject);\r\n\r\n\t\tmodel.EmailAddress = null;\r\n\t\tmodel.IsEmailAddressValid = null;\r\n\r\n\t\tthis.setState({ model, listEmailAddress });\r\n\t}\r\n\r\n\tEmailAddressRemoveFromList = async (emailAddressId, emailAddress) => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/losapi/v1.0/IdVerificationTracking/DeleteEmailAddress\", { EmailAddressId: emailAddressId });\r\n\r\n\t\tconsole.log(\"Ema: \" + emailAddressId);\r\n\r\n\t\tif (result == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar { listEmailAddress } = this.state;\r\n\t\tvar newlistEmailAddress = [];\r\n\r\n\t\tlistEmailAddress\r\n\t\t\t.filter(x => x.EmailAddress != emailAddress)\r\n\t\t\t.map(x => {\r\n\t\t\t\tnewlistEmailAddress = newlistEmailAddress.concat(x);\r\n\r\n\t\t\t\treturn null;\r\n\t\t\t});\r\n\r\n\t\tthis.setState({ listEmailAddress: newlistEmailAddress });\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/losapi/v1.0/IdVerificationTracking/Search\", model);\r\n\r\n\t\tthis.setState({ list: result || [] });\r\n\t}\r\n\r\n\tExportClick = () => {\r\n\t\tvar idVerTraColumns = [];\r\n\t\tthis.idVerTraTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.show == undefined || c.show) {\r\n\t\t\t\tidVerTraColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: idVerTraColumns, ExportSelectedColumns: idVerTraColumns });\r\n\t}\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\r\n\t\tconst temp = { ...this.state.model };\r\n\t\t\r\n\r\n\t\tvar jsonColList = [];\r\n\r\n\t\tvar idVerTraColumns = {};\r\n\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\tidVerTraColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t});\r\n\t\tjsonColList.push(idVerTraColumns);\r\n\r\n\t\tvar mytitle = \"ID Verification Tracking\";\r\n\r\n\t\ttemp.jsonFile = {\r\n\t\t\tcolmns: jsonColList,\r\n\t\t\tformat: this.state.ExportReportType,\r\n\t\t\ttitle: mytitle\r\n\t\t};\r\n\r\n\t\tvar request = {\r\n\t\t\tVerificationTypeId: temp.VerificationTypeId,\r\n\t\t\tFromDate: temp.FromDate,\r\n\t\t\tToDate: temp.ToDate,\r\n\t\t\tjsonFile:temp.jsonFile\r\n\t\t};\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\"/losapi/v1.0/IdVerificationTracking/ExportDownload\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t},\r\n\t\t\tthis.props.showMessage\r\n\t\t);\r\n\t}\r\n\r\n\tshowLoading = () => { this.setState({ isLoading: true }); }\r\n\thideLoading = () => { this.setState({ isLoading: false }); }\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: { AmPmId: 1 }, list: [], selected: null });\r\n\t}\r\n\r\n\tValidateUpdateReportTime = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errors = [];\r\n\r\n\t\tif (model.ReportTimeHour == null) {\r\n\t\t\terrors.push(\"Hour cannot be null.\");\r\n\t\t}\r\n\r\n\t\tif (model.ReportTimeMinute == null) {\r\n\t\t\terrors.push(\"Minute cannot be null.\");\r\n\t\t}\r\n\r\n\t\tif (model.ReportTimeHour > 12) {\r\n\t\t\terrors.push(\"Hour cannot be greater than 12.\");\r\n\t\t}\r\n\r\n\t\tif (model.ReportTimeMinute > 59) {\r\n\t\t\terrors.push(\"Hour cannot be greater than 59.\");\r\n\t\t}\r\n\r\n\t\tmodel[\"IsReportTimeHour\"] = model.ReportTimeHour == null;\r\n\t\tmodel[\"IsReportTimeMinute\"] = model.ReportTimeMinute == null;\r\n\r\n\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, list,isLoading, listVerificationType, listEmailAddress, isEmailAddressListDialogOpen } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tAdd\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\tEmail Address List\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nIdVerificationTracking.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default IdVerificationTracking;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport AlertHelper from \"core/AlertHelper\";\r\nimport ClientHelper from \"core/ClientHelper.js\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { DeleteIcon, EditIcon } from \"core/Icons\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport { TaskPool } from \"core/TaskPool\";\r\nimport moment from \"moment\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent\";\r\nimport {\r\n\tGenericAlert,\r\n\tGenericDateInput,\r\n\tGenericEmailInput,\r\n\tGenericExpansionPanel,\r\n\tGenericGrid,\r\n\tGenericNumberInput,\r\n\tGenericSelectInput,\r\n\tGenericTextInput,\r\n\tGenericTitle\r\n} from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { IdentificationMethod, IdentityType, LOSApplicantStatus, MenuCodes, ProgramCodes } from \"views/Constants/Constant\";\r\nimport LoanApplicationCreditValidation from \"views/LOS/CreateApplication/LoanApplicationCreditValidation\";\r\n\r\nconst ConstLoanType = {\r\n\tSecureCard: 0,\r\n\tLoan: 1,\r\n\tLOC: 2\r\n};\r\nconst ApplicantApiUrl = \"/losapi/v1.0/Applicant/\";\r\nfunction GetAppliedForRequestedLengthOfTerm() {\r\n\tvar termDataList = [];\r\n\ttermDataList.push({ Value: 1, Text: \"1 Month\" });\r\n\tfor (var i = 2; i < 61; i++) {\r\n\t\ttermDataList.push({\r\n\t\t\tValue: i,\r\n\t\t\tText: i + \" Months\"\r\n\t\t});\r\n\t}\r\n\treturn termDataList;\r\n}\r\nconst initialState = {\r\n\tpanelActivationStatus: {\r\n\t\tpanelApplicantInformationActive: true,\r\n\t\tpanelAppliedForActive: false,\r\n\t\tpanelVerificationActive: false,\r\n\t\tpanelCreditValidationStatusActive: false,\r\n\t\tpanelApplicantListActive: false\r\n\t},\r\n\tmodel: {\r\n\t\tInPersonIDVerificationEnable: false,\r\n\t\tCanadaPostVerificationEnable: false,\r\n\t\tOtherVerificationTypeEnable: false,\r\n\t\tExternalAccount: {\r\n\t\t\tFinancialInstitutionId: 0,\r\n\t\t\tFinancialInstitutionBranchId: 0,\r\n\t\t\tAccountNumber: null\r\n\t\t},\r\n\t\tCustomerId: 0,\r\n\t\tCustomerNumber: \"\"\r\n\t},\r\n\tappliedForData: {},\r\n\tmodelList: [],\r\n\tcreditHistoryModel: {},\r\n\tisLoading: false,\r\n\tReadOnly: false,\r\n\tIsActiveLoanPurposeDescription: false,\r\n\tIsPersonVerified: false,\r\n\tCanadaPostBarcode: null,\r\n\tIdVerificationTypeList: [],\r\n\tvModel: {},\r\n\tRequestedLengthOfTermSource: GetAppliedForRequestedLengthOfTerm(),\r\n\r\n\tAddressType: null,\r\n\r\n\tidentificationMethodIds: []\r\n};\r\n\r\nclass ApplicantDefinition extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = Object.assign({}, initialState);\r\n\t\tthis.LanguageParameterCode = {\r\n\t\t\tParameterCode: \"Language\"\r\n\t\t};\r\n\t\tthis.loadTaskPool = new TaskPool(this.handleLoadTaskPoolAppend, this.handleLoadTaskPoolCompleted);\r\n\t\tthis.HandleChangeFilterPanel = this\r\n\t\t\t.HandleChangeFilterPanel\r\n\t\t\t.bind(this);\r\n\t\tthis.AppliedForNextCliecked = this\r\n\t\t\t.AppliedForNextCliecked\r\n\t\t\t.bind(this);\r\n\t\tthis.ApplicantInformationNextCliecked = this\r\n\t\t\t.ApplicantInformationNextCliecked\r\n\t\t\t.bind(this);\r\n\t\tthis.CreditValidationStatusNextCliecked = this\r\n\t\t\t.CreditValidationStatusNextCliecked\r\n\t\t\t.bind(this);\r\n\t\tthis.VerificationActiveNextCliecked = this\r\n\t\t\t.VerificationActiveNextCliecked\r\n\t\t\t.bind(this);\r\n\t\tthis.SavePanelAfterInsert = this\r\n\t\t\t.SavePanelAfterInsert\r\n\t\t\t.bind(this);\r\n\t\tthis.ParameterMaxLength30 = {\r\n\t\t\tmaxLength: 30\r\n\t\t};\r\n\t\tthis.ParameterMaxLength64 = {\r\n\t\t\tmaxLength: 64\r\n\t\t};\r\n\t\tthis.parameterIdentificationMethod = {\r\n\t\t\tParameterCode: \"IdentificationMethod\",\r\n\t\t\tParameterValue2: \"Active\"\r\n\t\t};\r\n\t\tthis.IdentityVerifyingPersonParameterCode = {\r\n\t\t\tParameterCode: \"IdentityVerifyingPerson\"\r\n\t\t};\r\n\t\tthis.parameterIdentityType = {\r\n\t\t\tParameterCode: \"IdentityType\"\r\n\t\t};\r\n\t\tthis.CountryParameterCode = {\r\n\t\t\tParameterCode: \"Country\"\r\n\t\t};\r\n\t\tthis.OccupationParameterCode = {\r\n\t\t\tParameterCode: \"LOSOccupation\"\r\n\t\t};\r\n\r\n\t\tthis.ParameterOccupation = {\r\n\t\t\tParameterCode: \"Occupation\"\r\n\t\t};\r\n\r\n\t\tthis.ParameterApplicantStatus = {\r\n\t\t\tParameterCode: \"LOSApplicantStatus\"\r\n\t\t};\r\n\r\n\t\tthis.ParameterDefaultApplicantStatus = {\r\n\t\t\tParameterCode: \"LOSApplicantStatus\",\r\n\t\t\tParameterValue2: \"Default\"\r\n\t\t};\r\n\r\n\t\tthis.ParameterIntendedUse = {\r\n\t\t\tParameterCode: \"IntendedUse\"\r\n\t\t};\r\n\r\n\t\tthis.ParameterDefaultIdentificationMethod = {\r\n\t\t\tParameterCode: \"IdentificationMethod\",\r\n\t\t\tParameterValue3: \"Default\"\r\n\t\t};\r\n\r\n\t\tthis.ParameterIdentityType = {\r\n\t\t\tParameterCode: \"IdentityType2\",\r\n\t\t\tParameterValue2: \"PrimaryId\"\r\n\t\t};\r\n\r\n\t\tthis.ParameterIdentitySecondary = {\r\n\t\t\tParameterCode: \"IdentityType2\"\r\n\t\t};\r\n\r\n\t\tthis.ParameterPrimarySourceForDualProcessId = {\r\n\t\t\tParameterCode: \"DocumentForDualProcessIdentification\",\r\n\t\t\tParameterValue2: \"PrimaryDocument\"\r\n\t\t};\r\n\r\n\t\tthis.ParameterSecondarySourceForDualProcessId = {\r\n\t\t\tParameterCode: \"DocumentForDualProcessIdentification\",\r\n\t\t};\r\n\r\n\t\tthis.emptyObject = {};\r\n\t\tthis.YesNoParameterCode = {\r\n\t\t\tParameterCode: \"LOSYesNo\"\r\n\t\t};\r\n\t\tthis.LoanTypeParameterCode = {\r\n\t\t\tParameterCode: \"LOSLoanType\"\r\n\t\t};\r\n\t\tthis.LoanPurposeParameterCode = {\r\n\t\t\tParameterCode: \"LOSLoanPurpose\"\r\n\t\t};\r\n\r\n\t\tthis.GetIdentityVerificationType = this\r\n\t\t\t.GetIdentityVerificationType\r\n\t\t\t.bind(this);\r\n\r\n\t\tthis.sortedParameterDesc = {\r\n\t\t\tMember: \"ParameterDesc\"\r\n\t\t};\r\n\r\n\t\tthis.ParameterProvincialGovermentPhotoId = {\r\n\t\t\tParameterCode: \"ProvincialGovermentPhotoId\"\r\n\t\t};\r\n\r\n\t\tthis.ParameterCreditAgency = {\r\n\t\t\tParameterCode: \"CreditAgency\"\r\n\t\t};\r\n\r\n\t\tthis.maxLength100 = {\r\n\t\t\tmaxLength: 100\r\n\t\t};\r\n\t\tthis.maxLength20 = {\r\n\t\t\tmaxLength: 20\r\n\t\t};\r\n\t\tthis.marginLeft2 = {\r\n\t\t\tmarginLeft: 2\r\n\t\t};\r\n\r\n\t\tthis.maxLength30 = { maxLength: 30 };\r\n\r\n\t\tthis.columnsRowStyleColor = {};\r\n\r\n\t\tthis.ColumnsData = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\t\t\t\taddressModel: {\r\n\t\t\t\t\t\t\t\t\t\t...row.original\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\tthis.GetCreditHistory(row.original.Id);\r\n\t\t\t\t\t\t\t}} />\r\n\t\t\t\t\t\t this.ShowQuestionMessage(\"Delete this record !\", row.original.Id)} />\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tsortable: true,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\twidth: 100\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"Date\",\r\n\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{Formatter.FormatDate(row.value)}
\r\n\t\t\t\t)\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"FullName\",\r\n\t\t\t\taccessor: \"FullName\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value}
\r\n\t\t\t\t)\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"Unique ID\",\r\n\t\t\t\taccessor: \"ApplicantUniqueId\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value}
\r\n\t\t\t\t)\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"ID Verification Status\",\r\n\t\t\t\taccessor: \"IdVerification\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value}
\r\n\t\t\t\t)\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"Internal Blacklist Status\",\r\n\t\t\t\taccessor: \"InternalBlacklist\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value}
\r\n\t\t\t\t)\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"Watch List Verification Status\",\r\n\t\t\t\taccessor: \"WatchListVerification\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value}
\r\n\t\t\t\t)\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"Trans Union Id Verification Status\",\r\n\t\t\t\taccessor: \"TransUnionIdVerification\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value}
\r\n\t\t\t\t)\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"Credit History Verification Status\",\r\n\t\t\t\taccessor: \"CreditHistoryVerification\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value}
\r\n\t\t\t\t)\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"E-Mail\",\r\n\t\t\t\taccessor: \"Email\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value}
\r\n\t\t\t\t)\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"Phone Number\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.original.MobilePhoneCountryCode == null\r\n\t\t\t\t\t\t? \"\"\r\n\t\t\t\t\t\t: \"+\" + row.original.MobilePhoneCountryCode.Code + \" \" + row.original.MobilePhoneNumber}
\r\n\t\t\t\t)\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"Status\",\r\n\t\t\t\taccessor: \"Status.ParameterDesc\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value}
\r\n\t\t\t\t)\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"Loan Type\",\r\n\t\t\t\taccessor: \"ApplicantAppliedFor.LoanType.ParameterDesc\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value}
\r\n\t\t\t\t)\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"Sale Channel\",\r\n\t\t\t\taccessor: \"ApplicantAppliedFor.SaleChannel.ParameterDesc\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value}
\r\n\t\t\t\t)\r\n\t\t\t}\r\n\t\t];\r\n\t\tif (this.state.model.ExternalAccount != null) {\r\n\t\t\tthis.state.model.ExternalAccount.FinancialInstitutionId = 0;\r\n\t\t\tthis.state.model.ExternalAccount.FinancialInstitutionBranchId = 0;\r\n\t\t\tthis.state.model.ExternalAccount.AccountNumber = null;\r\n\t\t}\r\n\r\n\t\tthis.retiredOrUnemployedOccupationIds = [];\r\n\t\t// this.identificationMethodIds = [];\r\n\t\tthis.specificIdentityTypesIds = []; \r\n\r\n\t\tthis.sortedOrderIndex = { Member: \"OrderIndex\" };\r\n\t\tthis.renderItemPhoneCode = {};\r\n\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tvar previousUrl = localStorage.getItem(\"previousUrl\");\r\n\t\r\n\t\tif (this.props.setAppLeftTitle)\r\n\t\t\tthis.props.setAppLeftTitle(this.props.MenuCode != MenuCodes.Lms_BorrowerDetail && previousUrl != \"/PortfolioPerformance\"\r\n\t\t\t\t? \"Create Application\"\r\n\t\t\t\t: \"Borrower Detail\");\r\n\t\tif (this.props.setAppCenterTitle) {\r\n\t\t\tthis\r\n\t\t\t\t.props\r\n\t\t\t\t.setAppCenterTitle(this.props.MenuCode != MenuCodes.Lms_BorrowerDetail && previousUrl != \"/PortfolioPerformance\"\r\n\t\t\t\t\t? \"LOAN ORIGINATOR SYSTEM\"\r\n\t\t\t\t\t: \"LOAN MANAGEMENT SYSTEM\");\r\n\t\t}\r\n\t\t\t\t\r\n\t\tif (this.props.ApplicantModel != null) {\r\n\t\t\tthis.ApplicantSearchForLoanApproval(this.props.ApplicantModel.Id);\r\n\t\t}\r\n\r\n\t\t// this.GetIdentificationMethodIds();\r\n\r\n\t\tthis.LoadCanadaPost();\r\n\t\tthis.GetIdentityVerificationType();\r\n\t\t\t\t\r\n\t\tvar Id = RouteHelper.ReadAndClear(\"losApplicantDefinition_Id\");\r\n\r\n\t\tif (Id)\r\n\t\t\tthis.ApplicantSearchForLoanApproval(Id);\r\n\t\telse {\r\n\t\t\tconst { ApplicantId } = this.props;\r\n\t\t\t\r\n\t\t\tif (ApplicantId) {\r\n\t\t\t\tthis.ApplicantSearchForLoanApproval(ApplicantId);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// when the application is being created\r\n\t\t\t\t// set default status and Identification Method\r\n\t\t\t\tthis.GetDefaultApplicantStatus();\r\n\t\t\t\tthis.GetDefaultIdentificationMethod();\r\n\t\t\t}\t\t\t\r\n\t\t}\t\r\n\t}\r\n\r\n\tcomponentWillMount() {\r\n\t\tthis.GetIdentificationMethodIds();\r\n\t}\r\n\r\n\tRenderItemPhoneCode = (d) => {\r\n\t\tthis.renderItemPhoneCode = \"+\" + d.Code + \" (\" + d.Name + \")\";\r\n\t\treturn this.renderItemPhoneCode;\r\n\t}\r\n\r\n\tIsNullOrEmpty(value) {\r\n\t\treturn (value == null || value === \"\" || value === '' \r\n\t\t\t\t\t\t\t\t\t || value === '\"\"' || value === '\"\"');\r\n\t}\r\n\r\n\tGetDefaultIdentificationMethod() {\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Parameter/Search\",\r\n\t\t\tthis.ParameterDefaultIdentificationMethod,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tconsole.log(\"Parameters were not found.\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\t\t\t\t\t\t\t\r\n\t\t\t\tvar currentModel = this.state.model;\r\n\t\t\t\tcurrentModel[\"IdentificationMethodId\"] = responseData.Item[0].Id;\r\n\t\t\t\tcurrentModel[\"IdentityVerifiedBy\"] = ClientHelper.GetUser().Email;\r\n\t\t\t\tcurrentModel[\"IdentityVerificationDate\"] = DateHelper.GetDateLocal();\r\n\t\t\t\tcurrentModel[\"SecondaryIdentityVerifiedBy\"] = ClientHelper.GetUser().Email;\r\n\t\t\t\tcurrentModel[\"SecondaryIdentityVerificationDate\"] = DateHelper.GetDateLocal();\t\t\t\t\r\n\t\t\t\tthis.setState({model: currentModel});\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tGetDefaultApplicantStatus() {\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Parameter/Search\",\r\n\t\t\tthis.ParameterDefaultApplicantStatus,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tconsole.log(\"Parameters were not found.\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\t\t\t\t\t\t\t\r\n\t\t\t\tvar currentModel = this.state.model;\r\n\t\t\t\tcurrentModel[\"StatusId\"] = responseData.Item[0].Id;\r\n\t\t\t\tthis.setState({model: currentModel});\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tGetSpecificIdentityTypesIds() {\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Parameter/Search\",\r\n\t\t\t{\r\n\t\t\t\tParameterCode: \"IdentityType2\",\r\n\t\t\t\tParameterValue: \"ID010\"\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tconsole.log(\"Parameters were not found.\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tlet list = responseData.Item;\t\t\t\t\t\t\t\t\r\n\t\t\t\tlist.forEach(element => {\r\n\t\t\t\t\tthis.specificIdentityTypesIds.push(element.Id);\r\n\t\t\t\t});\t\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tGetIdentificationMethodIds() {\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Parameter/Search\",\t\r\n\t\t\tthis.parameterIdentificationMethod,\t\t\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tconsole.log(\"Parameters were not found.\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tlet list = responseData.Item;\t\r\n\t\t\t\tlet methods = [];\t\t\t\t\t\t\t\r\n\t\t\t\tfor(var i=0; i {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tconsole.log(\"Parameters were not found.\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tlet list = responseData.Item;\r\n\t\t\t\tlist = list.filter(x=>x.ParameterValue == \"Retired\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t|| x.ParameterValue == \"UnemployedSocialAssistance\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t|| x.ParameterValue == \"UnemploymentAssistance\");\r\n\t\t\t\t\r\n\t\t\t\tlist.forEach(element => {\r\n\t\t\t\t\tthis.retiredOrUnemployedOccupationIds.push(element.Id);\t\t\t\t\r\n\t\t\t\t});\t\t\t\t\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tGetColumnsRowStyleColor(status) {\r\n\t\tthis.columnsRowStyleColor = {\r\n\t\t\tcolor: status != null && status.ParameterValue == LOSApplicantStatus.Saved\r\n\t\t\t\t? \"#FB3005\"\r\n\t\t\t\t: \"\"\r\n\t\t};\r\n\r\n\t\treturn this.columnsRowStyleColor;\r\n\t}\r\n\r\n\tasync GetIdentityVerificationType() {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/Parameter/Search\", this.parameterIdentificationMethod, null, null, null, null, null);\r\n\t\tvar IdVerificationTypeList = [];\r\n\r\n\t\tif (result != null) {\r\n\t\t\tresult\r\n\t\t\t\t.filter(x => x.ParameterValue === IdentificationMethod.CanadaPostVerification || x.ParameterValue === IdentificationMethod.InPersonIDVerification || x.ParameterValue === IdentificationMethod.Other)\r\n\t\t\t\t.map(x => {\r\n\t\t\t\t\tIdVerificationTypeList.push(x);\r\n\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t});\r\n\t\t}\r\n\t\tthis.setState({ IdVerificationTypeList });\r\n\t}\r\n\r\n\tApplicantSearchForLoanApproval = (Id) => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/losapi/v1.0/Applicant/Search\", {\r\n\t\t\tId: Id\r\n\t\t}, responseData => {\r\n\t\t\tthis.setState({ isLoading: false });\r\n\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tvar model = responseData.Item[0];\r\n\t\t\tmodel.BirthDate = model.BirthDate === null\r\n\t\t\t\t? null\r\n\t\t\t\t: Formatter.FormatDateUtc(model.BirthDate);\r\n\t\t\tmodel.IsEmailValid = true;\r\n\t\t\tmodel.IdentityTypeParameterValue2 = model.IdentityType\r\n\t\t\t\t?.ParameterValue2;\r\n\t\t\tvar appliedForData = model.ApplicantAppliedFor || {};\r\n\r\n\t\t\tif (model.IdentityVerificationType != null && model.IdentityVerificationType.ParameterValue == IdentificationMethod.CanadaPostVerification) {\r\n\t\t\t\tmodel.CanadaPostVerificationEnable = true;\r\n\t\t\t}\r\n\r\n\t\t\tthis.setState({ model, appliedForData });\r\n\t\t}, error => {\r\n\t\t\tthis.setState({ isLoading: false });\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t});\r\n\t}\r\n\r\n\tGetCreditHistory = (Id, isInquiryClicked) => {\r\n\t\tvar creditHistoryModel = {};\r\n\r\n\t\tthis\r\n\t\t\t.loadTaskPool\r\n\t\t\t.AppendTask(Proxy.POST(\"/lmsapi/v1.0/LoanCreditHistory/GetByApplicantId\", {\r\n\t\t\t\tApplicantId: Id\r\n\t\t\t}, (responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\tthis.setState({ creditHistoryModel });\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tif (responseData.Item.CreditHistory) {\r\n\t\t\t\t\t\tObject.assign(creditHistoryModel, responseData.Item.CreditHistory);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item.CreditHistoryDetails) {\r\n\t\t\t\t\t\tcreditHistoryModel.CreditHistoryDetails = responseData.Item.CreditHistoryDetails;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (creditHistoryModel == null || creditHistoryModel.CreditHistoryDetails == null) {\r\n\t\t\t\t\tif (isInquiryClicked) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Credit data not found for the applicant.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ creditHistoryModel });\r\n\t\t\t}, (error) => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}));\r\n\t}\r\n\r\n\thandleLoadTaskPoolCompleted = () => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\thandleLoadTaskPoolAppend = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t}\r\n\tLoadCanadaPost() {\r\n\r\n\t\tvar parent = this;\r\n\t\tthis\r\n\t\t\t.loadTaskPool\r\n\t\t\t.AppendTask(Proxy.POST(\"/coreapi/v1.0/Parameter/Search\", {\r\n\t\t\t\tParameterCode: \"CanadaPostApiKey\",\r\n\t\t\t\tParameterValue: \"CP\"\r\n\t\t\t}, responseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tconsole.log(\"Canada Post Api key not fetched !\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item == null) {\r\n\t\t\t\t\tconsole.log(\"Canada Post Api key not fetched !\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item[0] == null) {\r\n\t\t\t\t\tconsole.log(\"Canada Post Api key not fetched !\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tvar apikey = responseData.Item[0].ParameterDesc;\r\n\t\t\t\tconsole.log(\"KEY CP \", apikey);\r\n\r\n\t\t\t\t// @ts-ignore\r\n\t\t\t\tvar url = window.CanadaPostAddressCompleteUrl;\r\n\t\t\t\tvar path = url + apikey;\r\n\r\n\t\t\t\tvar pca;\r\n\r\n\t\t\t\tvar CanadaPostSubmit = this.SubmitCanadaPostAddressModel;\r\n\t\t\t\tconst script = document.createElement(\"script\");\r\n\t\t\t\tscript.src = path;\r\n\t\t\t\tscript.async = false;\r\n\t\t\t\tdocument\r\n\t\t\t\t\t.head\r\n\t\t\t\t\t.appendChild(script);\r\n\t\t\t\tscript.onload = function () {\r\n\t\t\t\t\t// @ts-ignore\r\n\t\t\t\t\tpca = window.pca;\r\n\t\t\t\t\tif (pca != null) {\r\n\t\t\t\t\t\tvar fields = [\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\telement: \"street-address\",\r\n\t\t\t\t\t\t\t\tfield: \"Line1\",\r\n\t\t\t\t\t\t\t\tmode: pca.fieldMode.SEARCH\r\n\t\t\t\t\t\t\t}, {\r\n\t\t\t\t\t\t\t\telement: \"street-address2\",\r\n\t\t\t\t\t\t\t\tfield: \"Line2\",\r\n\t\t\t\t\t\t\t\tmode: pca.fieldMode.POPULATE\r\n\t\t\t\t\t\t\t}, {\r\n\t\t\t\t\t\t\t\telement: \"postcode\",\r\n\t\t\t\t\t\t\t\tfield: \"PostalCode\",\r\n\t\t\t\t\t\t\t\tmode: pca.fieldMode.SEARCH\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t],\r\n\t\t\t\t\t\t\toptions = {\r\n\t\t\t\t\t\t\t\tkey: apikey\r\n\t\t\t\t\t\t\t},\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\tcontrol = new pca.Address(fields, options);\r\n\r\n\t\t\t\t\t\t\tvar employer = \r\n\t\t\t\t\t\t\t\t[\r\n\t\t\t\t\t\t\t\t\t{ element: \"employer-address\", field: \"Line1\", mode: pca.fieldMode.SEARCH },\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{ element: \"employer-postcode\", field: \"PostalCode\", mode: pca.fieldMode.SEARCH },\r\n\t\t\t\t\t\t\t\t],\r\n\t\t\t\t\t\t\temployerControl = new pca.Address(employer, options);\r\n\r\n\t\t\t\t\t\tcontrol.listen(\"populate\", function (address) {\r\n\t\t\t\t\t\t\tCanadaPostSubmit(address);\r\n\t\t\t\t\t\t\tparent.setState(state => {\r\n\t\t\t\t\t\t\t\tstate.model.Address1 = address.Line1;\r\n\t\t\t\t\t\t\t\tstate.model.Address2 = address.Line2;\r\n\t\t\t\t\t\t\t\tstate.model.ZipCode = address.PostalCode;\r\n\t\t\t\t\t\t\t\tstate.AddressType = \"Customer\";\r\n\t\t\t\t\t\t\t\treturn state;\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\temployerControl.listen(\"populate\", function (address) {\r\n\t\t\t\t\t\t\tCanadaPostSubmit(address);\r\n\t\t\t\t\t\t\tparent.setState(state => {\r\n\t\t\t\t\t\t\t\tstate.model.EmployerAddress = address.Line1;\r\n\t\t\t\t\t\t\t\tstate.model.EmployerZipCode = address.PostalCode;\r\n\t\t\t\t\t\t\t\tstate.AddressType = \"Employer\";\r\n\t\t\t\t\t\t\t\treturn state;\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t}, e => {\r\n\t\t\t\tconsole.log(\"Canada Post Api key not fetched !\");\r\n\t\t\t}));\r\n\t}\r\n\tSubmitCanadaPostAddressModel = (model) => {\r\n\t\tthis\r\n\t\t\t.loadTaskPool\r\n\t\t\t.AppendTask(Proxy.POST(\"/coreapi/v1.0/Country/CanadaPost\", model, responseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tvar address = {\r\n\t\t\t\t\t...this.state.model\r\n\t\t\t\t};\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tif (this.state.AddressType == \"Customer\"){\r\n\t\t\t\t\t\taddress.CountryId = responseData.Item.CountryId;\r\n\t\t\t\t\t\taddress.ProvinceId = responseData.Item.ProvinceId;\r\n\t\t\t\t\t\taddress.CityId = responseData.Item.CityId;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\taddress.EmployerCountryId = responseData.Item.CountryId;\r\n\t\t\t\t\t\taddress.EmployerProvinceId = responseData.Item.ProvinceId;\r\n\t\t\t\t\t\taddress.EmployerCityId = responseData.Item.CityId;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\taddress.CountryId = 0;\r\n\t\t\t\t\taddress.ProvinceId = 0;\r\n\t\t\t\t\taddress.CityId = 0;\r\n\r\n\t\t\t\t\taddress.EmployerCountryId = 0;\r\n\t\t\t\t\taddress.EmployerProvinceId = 0;\r\n\t\t\t\t\taddress.EmployerCityId = 0;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ model: address });\r\n\t\t\t}, error => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}));\r\n\t}\r\n\thandleChangeCP = (address) => {\r\n\t\tconst model = this.state.model;\r\n\t\tmodel.City = address.City;\r\n\t\tmodel.Province = address.ProvinceName;\r\n\t\tmodel.Country = address.CountryName;\r\n\t\tmodel.Address1 = address.Line1;\r\n\t\tmodel.Address2 = address.Line2;\r\n\t\tmodel.ZipCode = address.PostalCode;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\tOperationCheck = (isCompleteApplicationClicked) => {\r\n\r\n\t\tvar ErrorList = [];\r\n\t\tconst data = this.state.model;\r\n\t\tconst dataAppliedFor = this.state.appliedForData;\r\n\t\tlet { vModel } = this.state;\r\n\r\n\t\tif (data == null) {\r\n\t\t\tErrorList.push(\"Model not defined.\");\r\n\t\t}\r\n\t\tif (dataAppliedFor == null) {\r\n\t\t\tErrorList.push(\"Applied For not defined.\");\r\n\t\t}\r\n\t\tif (dataAppliedFor != null && data != null && (dataAppliedFor.LoanTypeId == null || dataAppliedFor.LoanTypeId == \"\")) {\r\n\t\t\tErrorList.push(\"Loan type must be defined.\");\r\n\t\t\tvModel.LoanTypeId = true;\r\n\t\t} else {\r\n\t\t\tvModel.LoanTypeId = false;\r\n\t\t}\r\n\t\tif (dataAppliedFor != null && (dataAppliedFor.LoanPurposeId == null || dataAppliedFor.LoanPurposeId == \"\")) {\r\n\t\t\tErrorList.push(\"Loan purpose must be defined.\");\r\n\t\t\tvModel.LoanPurposeId = true;\r\n\t\t} else {\r\n\t\t\tvModel.LoanPurposeId = false;\r\n\t\t}\r\n\t\tif (dataAppliedFor != null && (dataAppliedFor.RequestedAmount == null || dataAppliedFor.RequestedAmount == \"\")) {\r\n\t\t\tErrorList.push(\"Requested amount must be defined.\");\r\n\t\t\tvModel.RequestedAmount = true;\r\n\t\t} else {\r\n\t\t\tvModel.RequestedAmount = false;\r\n\t\t}\r\n\r\n\t\tif (data.StatusId == null || data.StatusId.toString().trim() == \"\") {\r\n\t\t\tErrorList.push(\"Customer Status must be defined.\");\r\n\t\t\tvModel.Status = true;\r\n\t\t} else {\r\n\t\t\tvModel.Status = false;\r\n\t\t}\r\n\r\n\t\tif (data.IntendedUseId == null || data.IntendedUseId.toString().trim() == \"\") {\r\n\t\t\tErrorList.push(\"Intended Use must be defined.\");\r\n\t\t\tvModel.IntendedUse = true;\r\n\t\t} else {\r\n\t\t\tvModel.IntendedUse = false;\r\n\t\t}\r\n\r\n\t\tif (data != null && (data.FirstName == null || data.FirstName == \"\")) {\r\n\t\t\tErrorList.push(\"First name must be defined.\");\r\n\t\t\tvModel.FirstName = true;\r\n\t\t} else {\r\n\t\t\tvModel.FirstName = false;\r\n\t\t}\r\n\t\tif (data != null && (data.LastName == null || data.LastName == \"\")) {\r\n\t\t\tErrorList.push(\"Last name must be defined.\");\r\n\t\t\tvModel.LastName = true;\r\n\t\t} else {\r\n\t\t\tvModel.LastName = false;\r\n\t\t}\r\n\t\tif (data != null && (data.BirthDate == null || data.BirthDate == \"\")) {\r\n\t\t\tErrorList.push(\"Birth date must be defined.\");\r\n\t\t\tvModel.BirthDate = true;\r\n\t\t} else {\r\n\t\t\tvModel.BirthDate = false;\r\n\t\t}\r\n\t\tif (data != null && (data.Email == null || data.Email == \"\")) {\r\n\t\t\tErrorList.push(\"Email must be defined.\");\r\n\t\t\tvModel.Email = true;\r\n\t\t} else {\r\n\t\t\tvModel.Email = false;\r\n\t\t}\r\n\t\t\r\n\t\tif (data.GenderId == null || data.GenderId.toString().trim() == \"\") {\r\n\t\t\tErrorList.push(\"Gender must be defined.\");\r\n\t\t\tvModel.GenderId = true;\r\n\t\t} else {\r\n\t\t\tvModel.GenderId = false;\r\n\t\t}\r\n\r\n\t\tif (data.OccupationId == null || data.OccupationId.toString().trim() == \"\") {\r\n\t\t\tErrorList.push(\"Occupation must be defined.\");\r\n\t\t\tvModel.Occupation = true;\r\n\t\t} else {\r\n\t\t\tvModel.Occupation = false;\r\n\t\t}\r\n\r\n\t\tif ((data.PriorOccupationId == null || data.PriorOccupationId.toString().trim() == \"\")\r\n\t\t\t\t\t&& this.retiredOrUnemployedOccupationIds.includes(data.OccupationId)) {\r\n\t\t\tErrorList.push(\"Prior Occupation must be defined.\");\r\n\t\t\tvModel.PriorOccupation = true;\r\n\t\t} else {\r\n\t\t\tvModel.PriorOccupation = false;\r\n\t\t}\r\n\r\n\t\tif (data != null && (data.MobilePhoneNumber != null || data.MobilePhoneCountryCodeId != null)) {\r\n\t\t\tif (data.MobilePhoneNumber != null && data.MobilePhoneNumber.toString().length != 10) {\r\n\t\t\t\tErrorList.push(\"Mobile phone number must be 10 Digits.\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (data != null && (data.Address1 == null || data.Address1 == \"\")) {\r\n\t\t\tErrorList.push(\"Address1 must be defined.\");\r\n\t\t\tvModel.Address1 = true;\r\n\t\t} else {\r\n\t\t\tvModel.Address1 = false;\r\n\t\t}\r\n\t\tif (data != null && (data.ZipCode == null || data.ZipCode == \"\")) {\r\n\t\t\tErrorList.push(\"Zip code must be defined.\");\r\n\t\t\tvModel.ZipCode = true;\r\n\t\t} else {\r\n\t\t\tvModel.ZipCode = false;\r\n\t\t}\r\n\t\tif (data != null && (data.CityId == null || data.CityId == \"\")) {\r\n\t\t\tErrorList.push(\"City must be defined.\");\r\n\t\t\tvModel.CityId = true;\r\n\t\t} else {\r\n\t\t\tvModel.CityId = false;\r\n\t\t}\r\n\t\tif (data != null && (data.ProvinceId == null || data.ProvinceId == \"\")) {\r\n\t\t\tErrorList.push(\"Province must be defined.\");\r\n\t\t\tvModel.ProvinceId = true;\r\n\t\t} else {\r\n\t\t\tvModel.ProvinceId = false;\r\n\t\t}\r\n\t\tif (data != null && (data.CountryId == null || data.CountryId == \"\")) {\r\n\t\t\tErrorList.push(\"Country must be defined.\");\r\n\t\t\tvModel.CountryId = true;\r\n\t\t} else {\r\n\t\t\tvModel.CountryId = false;\r\n\t\t}\r\n\r\n\t\tif (data.IdentificationMethodId == null || data.IdentificationMethodId.toString().trim() == \"\") {\r\n\t\t\tErrorList.push(\"Identification Method must be defined.\");\r\n\t\t\tvModel.IdentificationMethodId = true;\r\n\t\t} else {\r\n\t\t\tvModel.IdentificationMethodId = false;\r\n\t\t}\r\n\r\n\t\tif ((data.IdentityTypeId == null || data.IdentityTypeId.toString().trim() == \"\")\r\n\t\t\t\t&& data.IdentificationMethodId == this.state.identificationMethodIds.find(x=>x.Value==\"I\").Id) {\r\n\t\t\tErrorList.push(\"Identity type must be defined.\");\r\n\t\t\tvModel.IdentityTypeId = true;\r\n\t\t} else {\r\n\t\t\tvModel.IdentityTypeId = false;\r\n\t\t}\r\n\r\n\t\tif ((data.PrimaryProvincialIdentityTypeId == null || data.PrimaryProvincialIdentityTypeId.toString().trim() == \"\")\r\n\t\t\t\t&& this.specificIdentityTypesIds.includes(data.IdentityTypeId)\r\n\t\t\t\t&& data.IdentificationMethodId == this.state.identificationMethodIds.find(x=>x.Value==\"I\").Id) {\r\n\t\t\tErrorList.push(\"Provincial Id Type must be defined\");\r\n\t\t\tvModel.ProvincialIdentityTypeId = true;\r\n\t\t} else {\r\n\t\t\tvModel.ProvincialIdentityTypeId = false;\r\n\t\t}\r\n\r\n\t\tif ((data.IdentityNumber == null || data.IdentityNumber.trim() == \"\")\r\n\t\t\t\t&& data.IdentificationMethodId == this.state.identificationMethodIds.find(x=>x.Value==\"I\").Id) {\r\n\t\t\tErrorList.push(\"Identity number must be defined.\");\r\n\t\t\tvModel.IdentityNumber = true;\r\n\t\t} else {\r\n\t\t\tvModel.IdentityNumber = false;\r\n\t\t}\r\n\r\n\t\tif ((data.IdentityExpireDate == null || data.IdentityExpireDate == \"\")\r\n\t\t\t\t&& data.IdentificationMethodId == this.state.identificationMethodIds.find(x=>x.Value==\"I\").Id) {\r\n\t\t\tErrorList.push(\"Identity expire date must be defined.\");\r\n\t\t\tvModel.IdentityExpireDate = true;\r\n\t\t} else {\r\n\t\t\tvModel.IdentityExpireDate = false;\r\n\t\t}\r\n\r\n\t\tif ((data.IdentityPlaceOfIssue == null || data.IdentityPlaceOfIssue == \"\")\r\n\t\t\t\t&& data.IdentificationMethodId == this.state.identificationMethodIds.find(x=>x.Value==\"I\").Id) {\r\n\t\t\tErrorList.push(\"Identity place of issue must be defined.\");\r\n\t\t\tvModel.IdentityPlaceOfIssue = true;\r\n\t\t} else {\r\n\t\t\tvModel.IdentityPlaceOfIssue = false;\r\n\t\t}\r\n\r\n\t\tif ((data.IdentityVerifiedBy == null || data.IdentityVerifiedBy.trim() == \"\")\r\n\t\t\t\t&& data.IdentificationMethodId == this.state.identificationMethodIds.find(x=>x.Value==\"I\").Id) {\r\n\t\t\tErrorList.push(\"Verification person must be defined.\");\r\n\t\t\tvModel.IdentityVerifiedBy = true;\r\n\t\t} else {\r\n\t\t\tvModel.IdentityVerifiedBy = false;\r\n\t\t}\r\n\r\n\t\tif ((data.IdentityVerificationDate == null || data.IdentityVerificationDate == \"\")\r\n\t\t\t\t&& data.IdentificationMethodId == this.state.identificationMethodIds.find(x=>x.Value==\"I\").Id) {\r\n\t\t\tErrorList.push(\"Identity verification date must be defined.\");\r\n\t\t\tvModel.IdentityVerificationDate = true;\r\n\t\t} else {\r\n\t\t\tvModel.IdentityVerificationDate = false;\r\n\t\t}\r\n\r\n\t\tif ((data.CreditAgencyId == null || data.CreditAgencyId.toString().trim() == \"\")\r\n\t\t\t\t&& (data.IdentificationMethodId == this.state.identificationMethodIds.find(x=>x.Value==\"P\").Id )) {\r\n\t\t\t\tErrorList.push(\"Credit Agency must be defined.\");\r\n\t\t\t\tvModel.CreditAgencyId = true;\r\n\t\t} else {\r\n\t\t\t\tvModel.CreditAgencyId = false;\r\n\t\t}\r\n\r\n\t\tif ((data.CreditFileNumber == null || data.CreditFileNumber.trim() == \"\")\r\n\t\t\t\t&& (data.IdentificationMethodId == this.state.identificationMethodIds.find(x=>x.Value==\"P\").Id )) {\r\n\t\t\t\tErrorList.push(\"Credit File Number must be defined.\");\r\n\t\t\t\tvModel.CreditFileNumber = true;\r\n\t\t} else {\r\n\t\t\t\tvModel.CreditFileNumber = false;\r\n\t\t}\r\n\r\n\t\tif ((data.CreditFileCompletionDate == null || data.CreditFileCompletionDate == \"\")\r\n\t\t\t\t&& (data.IdentificationMethodId == this.state.identificationMethodIds.find(x=>x.Value==\"P\").Id )) {\r\n\t\t\t\tErrorList.push(\"Credit File Completion Date must be defined.\");\r\n\t\t\t\tvModel.CreditFileCompletionDate = true;\r\n\t\t} else {\r\n\t\t\t\tvModel.CreditFileCompletionDate = false;\r\n\t\t}\r\n\r\n\t\tif ((data.PrimaryDocumentId == null || data.PrimaryDocumentId.toString().trim() == \"\")\r\n\t\t\t\t&& (data.IdentificationMethodId == this.state.identificationMethodIds.find(x=>x.Value==\"D\").Id )) {\r\n\t\t\t\tErrorList.push(\"Primary Document must be defined.\");\r\n\t\t\t\tvModel.PrimaryDocumentId = true;\r\n\t\t} else {\r\n\t\t\t\tvModel.PrimaryDocumentId = false;\r\n\t\t}\r\n\r\n\t\tif ((data.PrimaryDocumentVerificationDate == null || data.PrimaryDocumentVerificationDate == \"\")\r\n\t\t\t\t&& (data.IdentificationMethodId == this.state.identificationMethodIds.find(x=>x.Value==\"D\").Id )) {\r\n\t\t\t\tErrorList.push(\"Verification Date must be defined.\");\r\n\t\t\t\tvModel.PrimaryDocumentVerificationDate = true;\r\n\t\t} else {\r\n\t\t\t\tvModel.PrimaryDocumentVerificationDate = false;\r\n\t\t}\r\n\r\n\t\tif ((data.PrimaryDocumentNumber == null || data.PrimaryDocumentNumber.trim() == \"\")\r\n\t\t\t\t&& (data.IdentificationMethodId == this.state.identificationMethodIds.find(x=>x.Value==\"D\").Id )) {\r\n\t\t\t\tErrorList.push(\"Document Number must be defined.\");\r\n\t\t\t\tvModel.PrimaryDocumentNumber = true;\r\n\t\t} else {\r\n\t\t\t\tvModel.PrimaryDocumentNumber = false;\r\n\t\t}\r\n\r\n\t\tif ((data.PrimaryDocumentReviewedBy == null || data.PrimaryDocumentReviewedBy.trim() == \"\")\r\n\t\t\t\t&& (data.IdentificationMethodId == this.state.identificationMethodIds.find(x=>x.Value==\"D\").Id )) {\r\n\t\t\t\tErrorList.push(\"Reviwed By must be defined.\");\r\n\t\t\t\tvModel.PrimaryDocumentReviewedBy = true;\r\n\t\t} else {\r\n\t\t\t\tvModel.PrimaryDocumentReviewedBy = false;\r\n\t\t}\r\n\r\n\t\tif (data && !data.IsEmailValid) {\r\n\t\t\tErrorList.push(\"The email address is not valid.\");\r\n\t\t\tvModel.Email = true;\r\n\t\t} else {\r\n\t\t\tvModel.Email = false;\r\n\t\t}\r\n\r\n\t\tthis.setState({ vModel });\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please Fill Required Fields\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\t// this.UpdateModel(LOSApplicantStatus.Completed, null, isCompleteApplicationClicked);\r\n\r\n\t\t// keep status Incomplete\r\n\t\tthis.UpdateModel(LOSApplicantStatus.Saved, null, isCompleteApplicationClicked);\r\n\t}\r\n\tUpdateModel = (status, callback, isCompleteApplicationClicked) => {\r\n\t\tlet data = this.state.model;\r\n\t\tdata.ApplicantAppliedFor = this.state.appliedForData;\r\n\t\tif (data.ExternalAccount != null) {\r\n\r\n\t\t\tdata.FinancialInstitutionId = data.ExternalAccount.FinancialInstitutionId;\r\n\t\t\tdata.FinancialInstitutionBranchId = data.ExternalAccount.FinancialInstitutionBranchId;\r\n\t\t\tdata.ExternalAccountNumber = data.ExternalAccount.AccountNumber;\r\n\t\t}\r\n\r\n\t\tif (data.Status == null || data.Status.ParameterValue == LOSApplicantStatus.Saved) {\r\n\t\t\tdata.Status = {\r\n\t\t\t\tParameterValue: status\r\n\t\t\t};\r\n\t\t}\r\n\t\tthis\r\n\t\t\t.loadTaskPool\r\n\t\t\t.AppendTask(Proxy.POST(\"/losapi/v1.0/Applicant/InsertUpdate\", data, responseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (data.Id > 0) {\r\n\t\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Applicant Updated\");\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tdata.Id = responseData.Item.Id;\r\n\t\t\t\t\tdata.TransUnionIdVerification = responseData.Item.TransUnionIdVerification;\r\n\t\t\t\t\tdata.TransUnionIdVerificationStatus = responseData.Item.TransUnionIdVerificationStatus;\r\n\t\t\t\t\tdata.InternalBlacklist = responseData.Item.InternalBlacklist;\r\n\t\t\t\t\tdata.InternalBlacklistStatus = responseData.Item.InternalBlacklistStatus;\r\n\t\t\t\t\tdata.WatchListVerification = responseData.Item.WatchListVerification;\r\n\t\t\t\t\tdata.WatchListVerificationStatus = responseData.Item.WatchListVerificationStatus;\r\n\t\t\t\t\tdata.IdVerification = responseData.Item.IdVerification;\r\n\t\t\t\t\tdata.IdVerificationStatus = responseData.Item.IdVerificationStatus;\r\n\t\t\t\t\tthis.GetCreditHistory(data.Id);\r\n\t\t\t\t\tif (this.props.IsPopUp == true) {\r\n\t\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\t\tmodel: data\r\n\t\t\t\t\t\t}, () => this.ShowMessageNodeDisable(\"success\", \"Success\", \"Applicant Saved\"));\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\t\tmodel: data\r\n\t\t\t\t\t\t}, () => this.ShowMessage(\"success\", \"Success\", \"Applicant Saved\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (callback)\r\n\t\t\t\t\tcallback(data.Id);\r\n\r\n\t\t\t\tif (isCompleteApplicationClicked) {\r\n\t\t\t\t\tRouteHelper.Push(this.props.history, \"/CreateApplication\", \"ApplicantIdAndAddNewApplication\", {\r\n\t\t\t\t\t\tApplicantId: data.Id,\r\n\t\t\t\t\t\tisGenerateNew: true\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t}, error => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}));\r\n\t}\r\n\tDeleteModel = (id) => {\r\n\t\tif (id == null || id == 0) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Warning\", \"Applicant must be selected for delete operation.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis\r\n\t\t\t.loadTaskPool\r\n\t\t\t.AppendTask(Proxy.POST(\"/losapi/v1.0/Applicant/Delete\", {\r\n\t\t\t\tId: id\r\n\t\t\t}, responseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Applicant Deleted\");\r\n\t\t\t\tthis.HandleClickClearOk();\r\n\t\t\t}, error => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}));\r\n\t}\r\n\tHandleSearch = () => {\r\n\t\tvar model = this.state.model;\r\n\t\tmodel.Status = {\r\n\t\t\tParameterValue: LOSApplicantStatus.Saved\r\n\t\t};\r\n\t\tthis\r\n\t\t\t.loadTaskPool\r\n\t\t\t.AppendTask(Proxy.POST(\"/losapi/v1.0/Applicant/Search\", model, responseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tvar modelList = responseData.Item || [];\r\n\t\t\t\tthis.setState({ modelList });\r\n\t\t\t}, error => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}));\r\n\t\tthis.CreditValidationStatusNextCliecked();\r\n\t}\r\n\r\n\tShowQuestionMessage = (message, id) => {\r\n\t\tthis.setState({\r\n\t\t\talert: AlertHelper.CreateQuestionAlert(\"Delete\", message, \"warning\", e => {\r\n\t\t\t\tthis.DeleteModel(id);\r\n\t\t\t\tthis.HideAlert();\r\n\t\t\t}, () => {\r\n\t\t\t\tthis.HideAlert();\r\n\t\t\t})\r\n\t\t});\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = {\r\n\t\t\t...this.state.model\r\n\t\t};\r\n\r\n\t\tif (name == \"IdentityVerifiedPersonId\" && ((model.IdentityVerifiedPersonId == null || model.IdentityVerifiedPersonId == 0) || (model.IdentityVerifiedPerson == null))) {\r\n\t\t\tmodel[\"IdentityVerifiedPersonId\"] = ClientHelper\r\n\t\t\t\t.GetUser()\r\n\t\t\t\t.Id;\r\n\t\t\tmodel[\"IdentityVerifiedPerson\"] = ClientHelper.GetUser();\r\n\t\t}\r\n\r\n\t\tif (name == \"IdentityVerificationTypeId\" && data != null) {\r\n\t\t\tmodel.CanadaPostVerificationEnable = true;\r\n\t\t\tmodel.InPersonIDVerificationEnable = false;\r\n\t\t\tif (data.ParameterValue != IdentificationMethod.CanadaPostVerification) {\r\n\t\t\t\tmodel.InPersonIDVerificationEnable = true;\r\n\t\t\t\tmodel.CanadaPostVerificationEnable = false;\r\n\t\t\t}\r\n\t\t\tmodel.OtherVerificationTypeEnable = data.ParameterValue == IdentificationMethod.Other;\r\n\t\t}\r\n\r\n\t\tif (name == \"IdentityTypeId\") {\r\n\t\t\tmodel.IdentityTypeIdStr = data && data.ParameterValue;\r\n\t\t\tmodel.IdentityNumber = null;\r\n\t\t\tmodel.IdentityTypeParameterValue2 = data && data.ParameterValue2;\r\n\t\t\tmodel.ProofOfResidenceId = null;\r\n\t\t}\r\n\r\n\t\tif (name === \"Customer\") {\r\n\t\t\tthis.HandleCustomerSelect(newValue);\r\n\t\t}\r\n\r\n\t\tif (name === \"WalletAccountId\" && data != null) {\r\n\t\t\tmodel[\"CardFinancialId\"] = data.CardFinancialId;\r\n\t\t}\r\n\t\tif (name == \"Email\") {\r\n\t\t\tmodel[\"IsEmailValid\"] = data && data.IsValid;\r\n\t\t}\r\n\r\n\t\tif (name == \"IdentificationMethodId\") {\t\t\t\t\t\t\r\n\t\t\tlet dualMethodId = this.state.identificationMethodIds.find(x=>x.Value==\"D\").Id;\r\n\t\t\tlet inPersonMethodId = this.state.identificationMethodIds.find(x=>x.Value==\"I\").Id;\r\n\t\t\tlet creditFileMethodId = this.state.identificationMethodIds.find(x=>x.Value==\"P\").Id;\t \r\n\r\n\t\t\tswitch(newValue) {\r\n\t\t\t\tcase dualMethodId:\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// delete InPerson method\r\n\t\t\t\t\t\tdelete model.IdentityTypeId;\r\n\t\t\t\t\t\tdelete model.PrimaryProvincialIdentityTypeId;\r\n\t\t\t\t\t\tdelete model.IdentityPlaceOfIssue;\r\n\t\t\t\t\t\tdelete model.IdentityNumber;\r\n\t\t\t\t\t\tdelete model.IdentityExpireDate;\r\n\t\t\t\t\t\tdelete model.IdentityVerifiedBy;\r\n\t\t\t\t\t\tdelete model.IdentityVerificationDate;\r\n\r\n\t\t\t\t\t\tdelete model.SecondaryIdentityTypeId;\r\n\t\t\t\t\t\tdelete model.SecondaryProvincialIdentityTypeId;\r\n\t\t\t\t\t\tdelete model.SecondaryIdentityPlaceOfIssue;\r\n\t\t\t\t\t\tdelete model.SecondaryIdentityNumber;\r\n\t\t\t\t\t\tdelete model.SecondaryIdentityExpireDate;\r\n\t\t\t\t\t\tdelete model.SecondaryVerifiedBy;\r\n\t\t\t\t\t\tdelete model.SecondaryVerificationDate;\r\n\r\n\t\t\t\t\t\t// delete Credit File method\r\n\t\t\t\t\t\tdelete model.CreditAgencyId;\r\n\t\t\t\t\t\tdelete model.CreditFileNumber;\r\n\t\t\t\t\t\tdelete model.CreditFileCompletionDate;\r\n\r\n\t\t\t\t\t\tmodel.PrimaryDocumentReviewedBy = ClientHelper.GetUser().Email;\r\n\t\t\t\t\t\tmodel.PrimaryDocumentVerificationDate = DateHelper.GetDateLocal();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tmodel.SecondaryDocumentReviewedBy = ClientHelper.GetUser().Email;\r\n\t\t\t\t\t\tmodel.SecondaryDocumentVerificationDate = DateHelper.GetDateLocal();\r\n\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\tcase inPersonMethodId:\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// delete Dual method\r\n\t\t\t\t\t\tdelete model.PrimaryDocumentId;\r\n\t\t\t\t\t\tdelete model.PrimaryDocumentVerificationDate;\r\n\t\t\t\t\t\tdelete model.PrimaryDocumentNumber;\r\n\t\t\t\t\t\tdelete model.PrimaryDocumentReviewedBy;\r\n\r\n\t\t\t\t\t\tdelete model.SecondaryDocumentId;\r\n\t\t\t\t\t\tdelete model.SecondaryDocumentVerificationDate;\r\n\t\t\t\t\t\tdelete model.SecondaryDocumentNumber;\r\n\t\t\t\t\t\tdelete model.SecondaryDocumentReviewedBy;\r\n\r\n\t\t\t\t\t\t// delete Credit File method\r\n\t\t\t\t\t\tdelete model.CreditAgencyId;\r\n\t\t\t\t\t\tdelete model.CreditFileNumber;\r\n\t\t\t\t\t\tdelete model.CreditFileCompletionDate;\r\n\r\n\t\t\t\t\t\tmodel.IdentityVerifiedBy = ClientHelper.GetUser().Email;\r\n\t\t\t\t\t\tmodel.IdentityVerificationDate = DateHelper.GetDateLocal();\r\n\r\n\t\t\t\t\t\tmodel.SecondaryIdentityVerifiedBy = ClientHelper.GetUser().Email;\r\n\t\t\t\t\t\tmodel.SecondaryIdentityVerificationDate = DateHelper.GetDateLocal();\r\n\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\tcase creditFileMethodId:\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// delete InPerson method\r\n\t\t\t\t\t\tdelete model.IdentityTypeId;\r\n\t\t\t\t\t\tdelete model.PrimaryProvincialIdentityTypeId;\r\n\t\t\t\t\t\tdelete model.IdentityPlaceOfIssue;\r\n\t\t\t\t\t\tdelete model.IdentityNumber;\r\n\t\t\t\t\t\tdelete model.IdentityExpireDate;\r\n\t\t\t\t\t\tdelete model.IdentityVerifiedBy;\r\n\t\t\t\t\t\tdelete model.IdentityVerificationDate;\r\n\r\n\t\t\t\t\t\tdelete model.SecondaryIdentityTypeId;\r\n\t\t\t\t\t\tdelete model.SecondaryProvincialIdentityTypeId;\r\n\t\t\t\t\t\tdelete model.SecondaryIdentityPlaceOfIssue;\r\n\t\t\t\t\t\tdelete model.SecondaryIdentityNumber;\r\n\t\t\t\t\t\tdelete model.SecondaryIdentityExpireDate;\r\n\t\t\t\t\t\tdelete model.SecondaryVerifiedBy;\r\n\t\t\t\t\t\tdelete model.SecondaryVerificationDate;\r\n\r\n\t\t\t\t\t\t// delete Dual method\r\n\t\t\t\t\t\tdelete model.PrimaryDocumentId;\r\n\t\t\t\t\t\tdelete model.PrimaryDocumentVerificationDate;\r\n\t\t\t\t\t\tdelete model.PrimaryDocumentNumber;\r\n\t\t\t\t\t\tdelete model.PrimaryDocumentReviewedBy;\r\n\r\n\t\t\t\t\t\tdelete model.SecondaryDocumentId;\r\n\t\t\t\t\t\tdelete model.SecondaryDocumentVerificationDate;\r\n\t\t\t\t\t\tdelete model.SecondaryDocumentNumber;\r\n\t\t\t\t\t\tdelete model.SecondaryDocumentReviewedBy;\r\n\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\tcase null:\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// delete InPerson method\r\n\t\t\t\t\t\tdelete model.IdentityTypeId;\r\n\t\t\t\t\t\tdelete model.PrimaryProvincialIdentityTypeId;\r\n\t\t\t\t\t\tdelete model.IdentityPlaceOfIssue;\r\n\t\t\t\t\t\tdelete model.IdentityNumber;\r\n\t\t\t\t\t\tdelete model.IdentityExpireDate;\r\n\t\t\t\t\t\tdelete model.IdentityVerifiedBy;\r\n\t\t\t\t\t\tdelete model.IdentityVerificationDate;\r\n\r\n\t\t\t\t\t\tdelete model.SecondaryIdentityTypeId;\r\n\t\t\t\t\t\tdelete model.SecondaryProvincialIdentityTypeId;\r\n\t\t\t\t\t\tdelete model.SecondaryIdentityPlaceOfIssue;\r\n\t\t\t\t\t\tdelete model.SecondaryIdentityNumber;\r\n\t\t\t\t\t\tdelete model.SecondaryIdentityExpireDate;\r\n\t\t\t\t\t\tdelete model.SecondaryIdentityVerifiedBy;\r\n\t\t\t\t\t\tdelete model.SecondaryIdentityVerificationDate;\r\n\r\n\t\t\t\t\t\t// delete Dual method\r\n\t\t\t\t\t\tdelete model.PrimaryDocumentId;\r\n\t\t\t\t\t\tdelete model.PrimaryDocumentVerificationDate;\r\n\t\t\t\t\t\tdelete model.PrimaryDocumentNumber;\r\n\t\t\t\t\t\tdelete model.PrimaryDocumentReviewedBy;\r\n\r\n\t\t\t\t\t\tdelete model.SecondaryDocumentId;\r\n\t\t\t\t\t\tdelete model.SecondaryDocumentVerificationDate;\r\n\t\t\t\t\t\tdelete model.SecondaryDocumentNumber;\r\n\t\t\t\t\t\tdelete model.SecondaryDocumentReviewedBy;\r\n\r\n\t\t\t\t\t\t// delete Credit File method\r\n\t\t\t\t\t\tdelete model.CreditAgencyId;\r\n\t\t\t\t\t\tdelete model.CreditFileNumber;\r\n\t\t\t\t\t\tdelete model.CreditFileCompletionDate;\r\n\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\r\n\t\t/*if ((name == \"IdentityVerifiedBy\") && (this.IsNullOrEmpty(model.IdentityVerifiedBy))) {\r\n\t\t\tmodel[\"IdentityVerifiedBy\"] = ClientHelper.GetUser();\r\n\t\t}\t*/\t\r\n\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\tHandleAppliedForInfoChanged = (name, newValue, data) => {\r\n\t\tconst appliedForData = {\r\n\t\t\t...this.state.appliedForData\r\n\t\t};\r\n\r\n\t\tif (name == \"LoanPurposeId\") {\r\n\t\t\tthis.state.IsActiveLoanPurposeDescription = (data != null && data.ParameterDesc === \"Other\");\r\n\t\t}\r\n\t\tif (!this.state.IsActiveLoanPurposeDescription) {\r\n\t\t\tappliedForData[\"LoanPurposeDescription\"] = \"\";\r\n\t\t}\r\n\t\tif (name == \"LoanTypeId\") {\r\n\t\t\tappliedForData.LoanType = data;\r\n\t\t}\r\n\t\tappliedForData[name] = newValue;\r\n\t\tthis.setState({ appliedForData });\r\n\r\n\t}\r\n\tGetFullName = () => {\r\n\t\tconst model = {\r\n\t\t\t...this.state.model\r\n\t\t};\r\n\t\tlet fullName = \"\";\r\n\t\tif (model.FirstName == null || model.FirstName == undefined) {\r\n\t\t\treturn fullName;\r\n\t\t}\r\n\t\tfullName = model.FirstName;\r\n\t\tif (model.MiddleName != null && model.MiddleName !== \"\") {\r\n\t\t\tfullName += \" \" + model.MiddleName;\r\n\t\t}\r\n\t\tif (model.LastName != null && model.LastName !== \"\") {\r\n\t\t\tfullName += \" \" + model.LastName;\r\n\t\t}\r\n\t\treturn fullName;\r\n\t}\r\n\r\n\tHandleCustomerSelect = (customer) => {\r\n\t\tconst model = {\r\n\t\t\t...this.state.model\r\n\t\t};\r\n\r\n\t\tif (customer == null) {\r\n\t\t\tmodel.CustomerId = 0;\r\n\t\t\tmodel.CustomerNumber = \"\";\r\n\t\t\tmodel.AccountNumber = null;\r\n\t\t\tmodel.Email = null;\r\n\t\t\tthis.setState({ model });\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis\r\n\t\t\t.loadTaskPool\r\n\t\t\t.AppendTask(Proxy.POST(\"/losapi/v1.0/Applicant/GetAccountByCustomerId\", {\r\n\t\t\t\tCustomerId: customer.Id\r\n\t\t\t}, responseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tmodel.AccountNumber = responseData.Item != null\r\n\t\t\t\t\t? responseData.Item.AccountNumber\r\n\t\t\t\t\t: null;\r\n\t\t\t\tmodel.CustomerId = customer.Id;\r\n\t\t\t\tmodel.CustomerNumber = customer.CustomerNumber;\r\n\t\t\t\tmodel.Email = customer.Email;\r\n\t\t\t\tif (responseData.Item != null && responseData.Item.ClientCustomer != null && responseData.Item.ClientCustomer.CustomerName !== \"\") {\r\n\r\n\t\t\t\t\tmodel.FirstName = responseData.Item.ClientCustomer.Name;\r\n\t\t\t\t\tmodel.MiddleName = responseData.Item.ClientCustomer.MiddleName;\r\n\t\t\t\t\tmodel.LastName = responseData.Item.ClientCustomer.SurName;\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ model });\r\n\t\t\t}, error => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}));\r\n\t}\r\n\tHandleClickClearOk = () => {\r\n\t\tthis.HideAlert();\r\n\t\tlet model = {\r\n\t\t\tInPersonIDVerificationEnable: false,\r\n\t\t\tExternalAccount: {\r\n\t\t\t\tFinancialInstitutionId: 0,\r\n\t\t\t\tFinancialInstitutionBranchId: 0,\r\n\t\t\t\tAccountNumber: null\r\n\t\t\t}\r\n\t\t};\r\n\t\tvar tempIdVerificationTypeList = Object.assign({}, this.state.IdVerificationTypeList);\r\n\t\tthis.state = Object.assign({}, initialState);\r\n\t\tthis.state.IdVerificationTypeList = Object.assign({}, tempIdVerificationTypeList);\r\n\t\tthis.setState({ model: model, appliedForData: {}, modelList: [] });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.ShowConfirmMessage(\"warning\", \"Warning\", \"This will erase the information you entered on the screen. Are you sure you want\" +\r\n\t\t\t\" to quit this definition?\",\r\n\t\t\t() => this.HandleClickClearOk());\r\n\t}\r\n\tErrorCallback = (error) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"Error\", \"An error occurred during the api visit\" + error);\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\tshowBasicAlert = (title, message, type) => {\r\n\t\tthis.setState({\r\n\t\t\tisLoading: false, alert: this.HideAlert()} />\r\n\t\t});\r\n\t}\r\n\tShowMessageNodeDisable = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: {\r\n\t\t\t\t\tthis\r\n\t\t\t\t\t\t.props\r\n\t\t\t\t\t\t.ApplicantDefinitionDiologOpenOrClose();\r\n\t\t\t\t\tthis.setState({ alert: \"\" });\r\n\t\t\t\t}} />\r\n\t\t});\r\n\t}\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: null })}\r\n\t\t\t\tOnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\r\n\tHideAlert = () => {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\tShowMessageAndRefresh = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlertAndRefresh()} />\r\n\t\t});\r\n\t}\r\n\thideAlertAndRefresh = () => {\r\n\t\tthis.setState({ alert: null, isLoading: false });\r\n\t\twindow\r\n\t\t\t.location\r\n\t\t\t.reload();\r\n\r\n\t}\r\n\tSelectedRowChange = (e, index) => {\r\n\t\tconst model = this.state.modelList[index];\r\n\t\tif (model.IdentityVerificationType != null && model.IdentityVerificationType.ParameterValue != IdentificationMethod.CanadaPostVerification) {\r\n\t\t\tmodel.InPersonIDVerificationEnable = true;\r\n\t\t\tmodel.OtherVerificationTypeEnable = model.IdentityVerificationType.ParameterValue == IdentificationMethod.Other;\r\n\t\t} else {\r\n\t\t\tmodel.InPersonIDVerificationEnable = false;\r\n\t\t}\r\n\r\n\t\tif (model.IdentityVerificationType != null && model.IdentityVerificationType.ParameterValue == IdentificationMethod.CanadaPostVerification) {\r\n\t\t\tmodel.CanadaPostVerificationEnable = true;\r\n\t\t}\r\n\r\n\t\tmodel.ExternalAccount = {\r\n\t\t\tFinancialInstitutionId: model.FinancialInstitutionId,\r\n\t\t\tFinancialInstitutionBranchId: model.FinancialInstitutionBranchId,\r\n\t\t\tAccountNumber: model.ExternalAccountNumber\r\n\t\t};\r\n\t\tlet appliedForModel = {};\r\n\t\tthis.state.IsActiveLoanPurposeDescription = false;\r\n\t\tif (model.ApplicantAppliedFor != null) {\r\n\t\t\tappliedForModel = model.ApplicantAppliedFor;\r\n\t\t\tif (appliedForModel.LoanPurpose != null && appliedForModel.LoanPurpose.ParameterDesc === \"Other\") {\r\n\t\t\t\tthis.state.IsActiveLoanPurposeDescription = true;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (model.IdentityType != null) {\r\n\t\t\tmodel.IdentityTypeParameterValue2 = model.IdentityType.ParameterValue2;\r\n\t\t}\r\n\r\n\t\tmodel.IsEmailValid = true;\r\n\r\n\t\tmodel.BirthDate = model.BirthDate === null\r\n\t\t\t? null\r\n\t\t\t: Formatter.FormatDateUtc(model.BirthDate);\r\n\r\n\t\tthis.setState({ model: model, appliedForData: appliedForModel });\r\n\t\tthis.GetCreditHistory(model.Id);\r\n\t\tthis.GetPanelActivationStatus(model.Id);\r\n\t}\r\n\tGetPanelActivationStatus(applicantId) {\r\n\r\n\t\tthis\r\n\t\t\t.loadTaskPool\r\n\t\t\t.AppendTask(Proxy.POST(\"/losapi/v1.0/LOSPanelActivationStatus/GetByParameter\", {\r\n\t\t\t\tDataId: applicantId,\r\n\t\t\t\tScreenCode: MenuCodes.LOS_ApplicantDefinition\r\n\t\t\t}, (responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null)\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tpanelActivationStatus: JSON.parse(responseData.Item.PanelInfo)\r\n\t\t\t\t\t});\r\n\t\t\t}\r\n\t\t\t\t, (error) => {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t\t}));\r\n\t}\r\n\tAppliedForNextCliecked() {\r\n\t\tvar ErrorList = [];\r\n\t\tlet { vModel } = this.state;\r\n\t\tconst data = this.state.model;\r\n\t\tif (data != null && data.Id != null && data.Id > 0) {\r\n\t\t\tconst dataAppliedFor = this.state.appliedForData;\r\n\t\t\tif (dataAppliedFor.LoanTypeId == null || data.LoanTypeId == \"\") {\r\n\t\t\t\tErrorList.push(\"Loan type must be defined.\");\r\n\t\t\t\tvModel.LoanTypeId = true;\r\n\t\t\t} else {\r\n\t\t\t\tvModel.LoanTypeId = false;\r\n\t\t\t}\r\n\t\t\tif (dataAppliedFor.LoanPurposeId == null || data.LoanPurposeId == \"\") {\r\n\t\t\t\tErrorList.push(\"Loan Purpose must be defined.\");\r\n\t\t\t\tvModel.LoanPurposeId = true;\r\n\t\t\t} else {\r\n\t\t\t\tvModel.LoanPurposeId = false;\r\n\t\t\t}\r\n\t\t\tif (dataAppliedFor.RequestedPaymentFrequencyId == null || data.RequestedPaymentFrequencyId == \"\") {\r\n\t\t\t\tErrorList.push(\"Requested payment frequency must be defined.\");\r\n\t\t\t\tvModel.RequestedPaymentFrequencyId = true;\r\n\t\t\t} else {\r\n\t\t\t\tvModel.RequestedPaymentFrequencyId = false;\r\n\t\t\t}\r\n\t\t\tif (dataAppliedFor.RequestedAmount == null || data.RequestedAmount == \"\") {\r\n\t\t\t\tErrorList.push(\"Requested amount must be defined.\");\r\n\t\t\t\tvModel.RequestedAmount = true;\r\n\t\t\t} else {\r\n\t\t\t\tvModel.RequestedAmount = false;\r\n\t\t\t}\r\n\t\t\tif ((dataAppliedFor.LoanType != null && dataAppliedFor.LoanType.ParameterValue == ConstLoanType.SecureCard) && (dataAppliedFor.SecurityAmount == null || data.SecurityAmount == \"\")) {\r\n\t\t\t\tErrorList.push(\"Security amount must be defined.\");\r\n\t\t\t\tvModel.SecurityAmount = true;\r\n\t\t\t} else {\r\n\t\t\t\tvModel.SecurityAmount = false;\r\n\t\t\t}\r\n\r\n\t\t\tthis.setState({ vModel });\r\n\t\t\tif (ErrorList.length > 0) {\r\n\t\t\t\tthis.ShowMessageNode(\"warning\", \"Please Fill Required Fields\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tthis.UpdateModel(LOSApplicantStatus.Saved);\r\n\t\t\tvar currentPanelActivation = {\r\n\t\t\t\tpanelAppliedForActive: false,\r\n\t\t\t\tpanelApplicantInformationActive: false,\r\n\t\t\t\tpanelVerificationActive: false,\r\n\t\t\t\tpanelCreditValidationStatusActive: true,\r\n\t\t\t\tpanelApplicantListActive: false\r\n\t\t\t};\r\n\t\t\tthis.setState({ panelActivationStatus: currentPanelActivation });\r\n\t\t\tthis.InserUpdatePanelActivationStatus(currentPanelActivation);\r\n\r\n\t\t}\r\n\t}\r\n\tSavePanelAfterInsert(id) {\r\n\t\tvar currentPanelActivation = {\r\n\t\t\tpanelApplicantInformationActive: false,\r\n\t\t\tpanelAppliedForActive: false,\r\n\t\t\tpanelVerificationActive: true,\r\n\t\t\tpanelCreditValidationStatusActive: false,\r\n\t\t\tpanelApplicantListActive: false\r\n\t\t};\r\n\t\tthis.setState({ panelActivationStatus: currentPanelActivation });\r\n\t\tthis.InserUpdatePanelActivationStatus(currentPanelActivation, id);\r\n\t}\r\n\tApplicantInformationNextCliecked() {\r\n\t\tvar ErrorList = [];\r\n\t\tlet { vModel } = this.state;\r\n\t\tconst data = this.state.model;\r\n\t\r\n\t\t/* if (data.StatusId == null || data.StatusId.toString().trim() == \"\") {\r\n\t\t\tErrorList.push(\"Customer Status must be defined.\");\r\n\t\t\tvModel.Status = true;\r\n\t\t} else {\r\n\t\t\tvModel.Status = false;\r\n\t\t} */\r\n\r\n\t\tif (data.IntendedUseId == null || data.IntendedUseId.toString().trim() == \"\") {\r\n\t\t\tErrorList.push(\"Intended Use must be defined.\");\r\n\t\t\tvModel.IntendedUse = true;\r\n\t\t} else {\r\n\t\t\tvModel.IntendedUse = false;\r\n\t\t}\r\n\r\n\t\tif (data.FirstName == null || data.FirstName == \"\") {\r\n\t\t\tErrorList.push(\"First name must be defined.\");\r\n\t\t\tvModel.FirstName = true;\r\n\t\t} else {\r\n\t\t\tvModel.FirstName = false;\r\n\t\t}\r\n\t\tif (data.LastName == null || data.LastName == \"\") {\r\n\t\t\tErrorList.push(\"Last name must be defined.\");\r\n\t\t\tvModel.LastName = true;\r\n\t\t} else {\r\n\t\t\tvModel.LastName = false;\r\n\t\t}\r\n\t\tif (data.BirthDate == null || data.BirthDate == \"\") {\r\n\t\t\tErrorList.push(\"Birth date must be defined.\");\r\n\t\t\tvModel.BirthDate = true;\r\n\t\t} else {\r\n\t\t\tvModel.BirthDate = false;\r\n\t\t}\r\n\r\n\t\tif (data.GenderId == null || data.GenderId.toString().trim() == \"\") {\r\n\t\t\tErrorList.push(\"Gender must be defined.\");\r\n\t\t\tvModel.GenderId = true;\r\n\t\t} else {\r\n\t\t\tvModel.GenderId = false;\r\n\t\t}\r\n\r\n\t\tif (data.OccupationId == null || data.OccupationId.toString().trim() == \"\") {\r\n\t\t\tErrorList.push(\"Occupation must be defined.\");\r\n\t\t\tvModel.Occupation = true;\r\n\t\t} else {\r\n\t\t\tvModel.Occupation = false;\r\n\t\t}\r\n\r\n\t\tif ((data.PriorOccupationId == null || data.PriorOccupationId.toString().trim() == \"\")\r\n\t\t\t\t\t&& this.retiredOrUnemployedOccupationIds.includes(data.OccupationId)) {\r\n\t\t\tErrorList.push(\"Prior Occupation must be defined.\");\r\n\t\t\tvModel.PriorOccupation = true;\r\n\t\t} else {\r\n\t\t\tvModel.PriorOccupation = false;\r\n\t\t}\r\n\r\n\t\tif (data.Email == null || data.Email == \"\") {\r\n\t\t\tErrorList.push(\"Email must be defined.\");\r\n\t\t\tvModel.Email = true;\r\n\t\t} else {\r\n\t\t\tvModel.Email = false;\r\n\t\t}\r\n\r\n\t\tif (data.MobilePhoneNumber != null || data.MobilePhoneCountryCodeId != null) {\r\n\t\t\tif (data.MobilePhoneNumber != null && data.MobilePhoneNumber.toString().length != 10) {\r\n\t\t\t\tErrorList.push(\"Mobile phone number must be 10 Digits.\");\r\n\t\t\t\tvModel.MobilePhoneNumber = true;\r\n\t\t\t} else {\r\n\t\t\t\tvModel.MobilePhoneNumber = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (data.Address1 == null || data.Address1 == \"\") {\r\n\t\t\tErrorList.push(\"Address1 must be defined.\");\r\n\t\t\tvModel.Address1 = true;\r\n\t\t} else {\r\n\t\t\tvModel.Address1 = false;\r\n\t\t}\r\n\t\tif (data.ZipCode == null || data.ZipCode == \"\") {\r\n\t\t\tErrorList.push(\"Zip code must be defined.\");\r\n\t\t\tvModel.ZipCode = true;\r\n\t\t} else {\r\n\t\t\tvModel.ZipCode = false;\r\n\t\t}\r\n\t\tif (data.CityId == null || data.CityId == \"\") {\r\n\t\t\tErrorList.push(\"City must be defined.\");\r\n\t\t\tvModel.CityId = true;\r\n\t\t} else {\r\n\t\t\tvModel.CityId = false;\r\n\t\t}\r\n\t\tif (data.ProvinceId == null || data.ProvinceId == \"\") {\r\n\t\t\tErrorList.push(\"Province must be defined.\");\r\n\t\t\tvModel.ProvinceId = true;\r\n\t\t} else {\r\n\t\t\tvModel.ProvinceId = false;\r\n\t\t}\r\n\t\tif (data.CountryId == null || data.CountryId == \"\") {\r\n\t\t\tErrorList.push(\"Country must be defined.\");\r\n\t\t\tvModel.CountryId = true;\r\n\t\t} else {\r\n\t\t\tvModel.CountryId = false;\r\n\t\t}\r\n\r\n\t\tif (data.IdentificationMethodId == null || data.IdentificationMethodId.toString().trim() == \"\") {\r\n\t\t\tErrorList.push(\"Identification Method must be defined.\");\r\n\t\t\tvModel.IdentificationMethodId = true;\r\n\t\t} else {\r\n\t\t\tvModel.IdentificationMethodId = false;\r\n\t\t}\r\n\r\n\t\tif ((data.IdentityTypeId == null || data.IdentityTypeId.toString().trim() == \"\")\r\n\t\t\t\t&& data.IdentificationMethodId == this.state.identificationMethodIds.find(x=>x.Value==\"I\").Id) {\r\n\t\t\tErrorList.push(\"Identity type must be defined.\");\r\n\t\t\tvModel.IdentityTypeId = true;\r\n\t\t} else {\r\n\t\t\tvModel.IdentityTypeId = false;\r\n\t\t}\r\n\r\n\t\tif ((data.PrimaryProvincialIdentityTypeId == null || data.PrimaryProvincialIdentityTypeId.toString().trim() == \"\")\r\n\t\t\t\t&& this.specificIdentityTypesIds.includes(data.IdentityTypeId)\r\n\t\t\t\t&& data.IdentificationMethodId == this.state.identificationMethodIds.find(x=>x.Value==\"I\").Id) {\r\n\t\t\tErrorList.push(\"Provincial Id Type must be defined\");\r\n\t\t\tvModel.ProvincialIdentityTypeId = true;\r\n\t\t} else {\r\n\t\t\tvModel.ProvincialIdentityTypeId = false;\r\n\t\t}\r\n\r\n\t\tif ((data.IdentityNumber == null || data.IdentityNumber.trim() == \"\")\r\n\t\t\t\t&& data.IdentificationMethodId == this.state.identificationMethodIds.find(x=>x.Value==\"I\").Id) {\r\n\t\t\tErrorList.push(\"Identity number must be defined.\");\r\n\t\t\tvModel.IdentityNumber = true;\r\n\t\t} else {\r\n\t\t\tvModel.IdentityNumber = false;\r\n\t\t}\r\n\r\n\t\tif ((data.IdentityExpireDate == null || data.IdentityExpireDate == \"\")\r\n\t\t\t\t&& data.IdentificationMethodId == this.state.identificationMethodIds.find(x=>x.Value==\"I\").Id) {\r\n\t\t\tErrorList.push(\"Identity expire date must be defined.\");\r\n\t\t\tvModel.IdentityExpireDate = true;\r\n\t\t} else {\r\n\t\t\tvModel.IdentityExpireDate = false;\r\n\t\t}\r\n\r\n\t\tif ((data.IdentityPlaceOfIssue == null || data.IdentityPlaceOfIssue == \"\")\r\n\t\t\t\t&& data.IdentificationMethodId == this.state.identificationMethodIds.find(x=>x.Value==\"I\").Id) {\r\n\t\t\tErrorList.push(\"Identity place of issue must be defined.\");\r\n\t\t\tvModel.IdentityPlaceOfIssue = true;\r\n\t\t} else {\r\n\t\t\tvModel.IdentityPlaceOfIssue = false;\r\n\t\t}\r\n\r\n\t\tif ((data.IdentityVerifiedBy == null || data.IdentityVerifiedBy.trim() == \"\")\r\n\t\t\t\t&& data.IdentificationMethodId == this.state.identificationMethodIds.find(x=>x.Value==\"I\").Id) {\r\n\t\t\tErrorList.push(\"Verification person must be defined.\");\r\n\t\t\tvModel.IdentityVerifiedBy = true;\r\n\t\t} else {\r\n\t\t\tvModel.IdentityVerifiedBy = false;\r\n\t\t}\r\n\r\n\t\tif ((data.IdentityVerificationDate == null || data.IdentityVerificationDate == \"\")\r\n\t\t\t\t&& data.IdentificationMethodId == this.state.identificationMethodIds.find(x=>x.Value==\"I\").Id) {\r\n\t\t\tErrorList.push(\"Identity verification date must be defined.\");\r\n\t\t\tvModel.IdentityVerificationDate = true;\r\n\t\t} else {\r\n\t\t\tvModel.IdentityVerificationDate = false;\r\n\t\t}\r\n\t\t\r\n\t\tif ((data.CreditAgencyId == null || data.CreditAgencyId.toString().trim() == \"\")\r\n\t\t\t\t&& (data.IdentificationMethodId == this.state.identificationMethodIds.find(x=>x.Value==\"P\").Id )) {\r\n\t\t\t\tErrorList.push(\"Credit Agency must be defined.\");\r\n\t\t\t\tvModel.CreditAgencyId = true;\r\n\t\t} else {\r\n\t\t\t\tvModel.CreditAgencyId = false;\r\n\t\t}\r\n\r\n\t\tif ((data.CreditFileNumber == null || data.CreditFileNumber.trim() == \"\")\r\n\t\t\t\t&& (data.IdentificationMethodId == this.state.identificationMethodIds.find(x=>x.Value==\"P\").Id )) {\r\n\t\t\t\tErrorList.push(\"Credit File Number must be defined.\");\r\n\t\t\t\tvModel.CreditFileNumber = true;\r\n\t\t} else {\r\n\t\t\t\tvModel.CreditFileNumber = false;\r\n\t\t}\r\n\r\n\t\tif ((data.CreditFileCompletionDate == null || data.CreditFileCompletionDate == \"\")\r\n\t\t\t\t&& (data.IdentificationMethodId == this.state.identificationMethodIds.find(x=>x.Value==\"P\").Id )) {\r\n\t\t\t\tErrorList.push(\"Credit File Completion Date must be defined.\");\r\n\t\t\t\tvModel.CreditFileCompletionDate = true;\r\n\t\t} else {\r\n\t\t\t\tvModel.CreditFileCompletionDate = false;\r\n\t\t}\r\n\r\n\t\tif ((data.PrimaryDocumentId == null || data.PrimaryDocumentId.toString().trim() == \"\")\r\n\t\t\t\t&& (data.IdentificationMethodId == this.state.identificationMethodIds.find(x=>x.Value==\"D\").Id )) {\r\n\t\t\t\tErrorList.push(\"Primary Document must be defined.\");\r\n\t\t\t\tvModel.PrimaryDocumentId = true;\r\n\t\t} else {\r\n\t\t\t\tvModel.PrimaryDocumentId = false;\r\n\t\t}\r\n\r\n\t\tif ((data.PrimaryDocumentVerificationDate == null || data.PrimaryDocumentVerificationDate == \"\")\r\n\t\t\t\t&& (data.IdentificationMethodId == this.state.identificationMethodIds.find(x=>x.Value==\"D\").Id )) {\r\n\t\t\t\tErrorList.push(\"Verification Date must be defined.\");\r\n\t\t\t\tvModel.PrimaryDocumentVerificationDate = true;\r\n\t\t} else {\r\n\t\t\t\tvModel.PrimaryDocumentVerificationDate = false;\r\n\t\t}\r\n\r\n\t\tif ((data.PrimaryDocumentNumber == null || data.PrimaryDocumentNumber.trim() == \"\")\r\n\t\t\t\t&& (data.IdentificationMethodId == this.state.identificationMethodIds.find(x=>x.Value==\"D\").Id )) {\r\n\t\t\t\tErrorList.push(\"Document Number must be defined.\");\r\n\t\t\t\tvModel.PrimaryDocumentNumber = true;\r\n\t\t} else {\r\n\t\t\t\tvModel.PrimaryDocumentNumber = false;\r\n\t\t}\r\n\r\n\t\tif ((data.PrimaryDocumentReviewedBy == null || data.PrimaryDocumentReviewedBy.trim() == \"\")\r\n\t\t\t\t&& (data.IdentificationMethodId == this.state.identificationMethodIds.find(x=>x.Value==\"D\").Id )) {\r\n\t\t\t\tErrorList.push(\"Reviwed By must be defined.\");\r\n\t\t\t\tvModel.PrimaryDocumentReviewedBy = true;\r\n\t\t} else {\r\n\t\t\t\tvModel.PrimaryDocumentReviewedBy = false;\r\n\t\t}\r\n\r\n\t\t/*vModel.IdentityCountryId = false;\r\n\t\tif (data.IdentityCountryId == null || data.IdentityCountryId == \"\") {\r\n\t\t\tErrorList.push(\"Identity country must be defined.\");\r\n\t\t\tvModel.IdentityCountryId = true;\r\n\t\t} */\r\n\r\n\t\t/*if (data.IdentityTypeId == null) {\r\n\t\t\tErrorList.push(\"Identity type must be valid.\");\r\n\t\t\tvModel.IdentityTypeId = true;\r\n\t\t} else {\r\n\t\t\tvModel.IdentityTypeId = false;\r\n\t\t} */\r\n\r\n\t\t/*vModel.IdentityProvinceId = false;\r\n\t\tif (data.IdentityProvinceId == null || data.IdentityProvinceId == \"\") {\r\n\t\t\tErrorList.push(\"Identity province must be defined.\");\r\n\t\t\tvModel.IdentityProvinceId = true;\r\n\t\t} */\r\n\r\n\t\tif (data && !data.IsEmailValid) {\r\n\t\t\tErrorList.push(\"The email address is not valid.\");\r\n\t\t\tvModel.Email = true;\r\n\t\t} else {\r\n\t\t\tvModel.Email = false;\r\n\t\t}\r\n\r\n\t\tthis.setState({ vModel });\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please Fill Required Fields\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tthis.UpdateModel(LOSApplicantStatus.Saved, this.SavePanelAfterInsert);\r\n\r\n\t}\r\n\tVerificationActiveNextCliecked() {\r\n\t\tvar currentPanelActivation = {\r\n\t\t\tpanelAppliedForActive: true,\r\n\t\t\tpanelApplicantInformationActive: false,\r\n\t\t\tpanelVerificationActive: false,\r\n\t\t\tpanelCreditValidationStatusActive: false,\r\n\t\t\tpanelApplicantListActive: false\r\n\t\t};\r\n\t\tthis.setState({ panelActivationStatus: currentPanelActivation });\r\n\t\tthis.InserUpdatePanelActivationStatus(currentPanelActivation);\r\n\t\tthis.UpdateModel(LOSApplicantStatus.Saved);\r\n\r\n\t}\r\n\tCreditValidationStatusNextCliecked(isCompleteApplicationClicked) {\r\n\t\tvar currentPanelActivation = {\r\n\t\t\tpanelAppliedForActive: false,\r\n\t\t\tpanelApplicantInformationActive: false,\r\n\t\t\tpanelVerificationActive: false,\r\n\t\t\tpanelCreditValidationStatusActive: false,\r\n\t\t\tpanelApplicantListActive: true\r\n\t\t};\r\n\t\tthis.setState({ panelActivationStatus: currentPanelActivation });\r\n\t\tthis.InserUpdatePanelActivationStatus(currentPanelActivation, null, isCompleteApplicationClicked);\r\n\r\n\t}\r\n\tHandleChangeFilterPanel(name, expanded) {\r\n\t\tvar currentPanelActivation = Object.assign({}, initialState.panelActivationStatus);\r\n\t\tcurrentPanelActivation.panelApplicantInformationActive = false;\r\n\t\tcurrentPanelActivation[name] = expanded\r\n\t\t\t? true\r\n\t\t\t: false;\r\n\r\n\t\tthis.setState({ panelActivationStatus: currentPanelActivation });\r\n\r\n\t\tthis.InserUpdatePanelActivationStatus(currentPanelActivation);\r\n\t}\r\n\tInserUpdatePanelActivationStatus(PanelInfo, id, isInquiryClicked) {\r\n\t\tif ((this.state.model == null || this.state.model.Id == null || this.state.model.Id == 0) && id == undefined)\r\n\t\t\treturn;\r\n\t\tthis\r\n\t\t\t.loadTaskPool\r\n\t\t\t.AppendTask(Proxy.POST(\"/losapi/v1.0/LOSPanelActivationStatus/InsertUpdate\", {\r\n\t\t\t\tDataId: id == undefined\r\n\t\t\t\t\t? this.state.model.Id\r\n\t\t\t\t\t: id,\r\n\t\t\t\tScreenCode: MenuCodes.LOS_ApplicantDefinition,\r\n\t\t\t\tPanelInfo: JSON.stringify(PanelInfo)\r\n\t\t\t}, (responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t}\r\n\t\t\t\tthis.HandleOperationCheckAfterPanelStatus(isInquiryClicked);\r\n\r\n\t\t\t}, (error) => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}));\r\n\r\n\t}\r\n\tHandleOperationCheckAfterPanelStatus(isInquiryClicked) {\r\n\t\tvar model = this.state.model;\r\n\t\tvar creditHistoryModel = this.state.creditHistoryModel;\r\n\t\tif (model != null && model.Id > 0 && (creditHistoryModel == null || creditHistoryModel.ApplicantId == null || creditHistoryModel.ApplicantId == 0)) {\r\n\t\t\tif (isInquiryClicked) {\r\n\t\t\t\tthis.OperationCheck(isInquiryClicked);\r\n\t\t\t}\r\n\t\t} else if (model != null && model.Id > 0 && creditHistoryModel != null && isInquiryClicked) {\r\n\t\t\tthis.OperationCheck(true);\r\n\r\n\t\t}\r\n\t}\r\n\tGetUserName() {\r\n\t\tvar userJson = localStorage.getItem(\"user\");\r\n\t\tvar user = userJson\r\n\t\t\t? JSON.parse(userJson)\r\n\t\t\t: null;\r\n\r\n\t\tif (!user || !user.SessionId)\r\n\t\t\treturn null;\r\n\t\treturn user.UserName;\r\n\t}\r\n\tHandleCanadaPostCode = (type) => {\r\n\t\tconst model = this.state.model;\r\n\t\tconst { MenuCode } = this.props;\r\n\r\n\t\tif (type === \"E\" && model.CanadaPostVerificationId != null && model.CanadaPostVerificationId != \"\") {\r\n\t\t\tconst { ExecuteApiPost } = this.props;\r\n\t\t\tExecuteApiPost(\"/amlkycapi/v1.0/CanadaPostVerification/SendEmail\", {\r\n\t\t\t\tId: model.CanadaPostVerificationId,\r\n\t\t\t\tMenuCode: MenuCode,\r\n\t\t\t\tEmailAddress: model.Email\r\n\t\t\t}, {\r\n\t\t\t\tId: model.CanadaPostVerificationId,\r\n\t\t\t\tEmailAddress: model.Email\r\n\t\t\t}, null, null, null, null)\r\n\t\t\t\t? this.ShowMessage(\"success\", \"Success\", \"Email Sent\")\r\n\t\t\t\t: this.ShowMessage(\"error\", \"Error\", \"Email Not Sent\");\r\n\r\n\t\t} else if (type === \"D\" && model.CanadaPostVerificationId != null && model.CanadaPostVerificationId != \"\") {\r\n\t\t\tconst { ExecuteApiFileDownloadWithGenericResponse } = this.props;\r\n\t\t\tExecuteApiFileDownloadWithGenericResponse(\"/amlkycapi/v1.0/CanadaPostVerification/Print\", {\r\n\t\t\t\tId: model.CanadaPostVerificationId,\r\n\t\t\t\tMenuCode: MenuCode\r\n\t\t\t}, \"Canada_Post_Verification_Barcode\", \"pdf\");\r\n\r\n\t\t}\r\n\r\n\t}\r\n\tSendEmailForInPersonIdVerificationStatus = () => {\r\n\t\tconst model = this.state.model;\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tProxy.POST(`${ApplicantApiUrl}SendEmailInPersonIdVerificationStatus`, model, responseData => {\r\n\t\t\tthis.setState({ isLoading: false });\r\n\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif (responseData.Item != null) {\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Email Sent\");\r\n\t\t\t\tmodel.IdVerificationStatus = true;\r\n\t\t\t\tthis.setState({ model });\r\n\t\t\t}\r\n\t\t}, error => {\r\n\t\t\tthis.setState({ isLoading: false });\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t});\r\n\t}\r\n\tSetTrProps(state, rowInfo) {\r\n\t\t// const RowSelected = this.SelectedRowChange();\r\n\r\n\t\tif (rowInfo && rowInfo.row) {\r\n\t\t\treturn {\r\n\t\t\t\tonClick: () => {\r\n\t\t\t\t\t// if (RowSelected)\r\n\t\t\t\t\tthis.SelectedRowChange(0, rowInfo.index);\r\n\t\t\t\t},\r\n\t\t\t\tstyle: {\r\n\t\t\t\t\tbackground: rowInfo.original && rowInfo.original.Status && rowInfo.original.Status.ParameterValue !== \"1\"\r\n\t\t\t\t\t\t? \"#d50000\"\r\n\t\t\t\t\t\t: \"\",\r\n\t\t\t\t\tcursor: \"pointer\"\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t} else {\r\n\t\t\treturn {};\r\n\t\t}\r\n\t}\r\n\tasync SaveCanadaPostRequest() {\r\n\t\tlet model = this.state.model;\r\n\t\tlet { vModel } = this.state;\r\n\r\n\t\tif (model.IdentityTypeParameterValue2 == IdentityType.OnePoR && !model.ProofOfResidenceId) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Proof of residence must be defined.\");\r\n\t\t\tvModel.ProofOfResidenceId = true;\r\n\t\t\tthis.setState({ vModel });\r\n\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvModel.ProofOfResidenceId = false;\r\n\t\tthis.setState({ vModel });\r\n\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(`${ApplicantApiUrl}SaveCanadaPostAddressVerificationRequest`, {\r\n\t\t\tId: model.Id,\r\n\t\t\tProofOfResidenceId: model.ProofOfResidenceId\r\n\t\t}, null, null, null, null, null);\r\n\t\tif (result == null || result == \"\") {\r\n\t\t\tmodel.AddressVerificationStatus = false;\r\n\t\t\tmodel.AddressVerification = \"Invalid\";\r\n\t\t} else {\r\n\t\t\tmodel.CanadaPostVerificationId = result;\r\n\t\t\tmodel.AddressVerificationStatus = null;\r\n\t\t\tmodel.AddressVerification = \"Pending\";\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst {\r\n\t\t\tmodel,\r\n\t\t\tvModel,\r\n\t\t\tappliedForData,\r\n\t\t\talert,\r\n\t\t\tisLoading,\r\n\t\t\tmodelList,\r\n\t\t\tIsActiveLoanPurposeDescription,\r\n\t\t\tIdVerificationTypeList,\r\n\t\t\tRequestedLengthOfTermSource\r\n\r\n\t\t} = this.state;\r\n\t\tconst { MenuCode, IsPopUp, ApprovalDisabled, ApplicantId } = this.props;\r\n\t\tvar ForInsert = !model.Id || model.Id <= 0;\r\n\t\tvar UniqueClientId = ClientHelper.GetClientRowId();\r\n\t\tvar IsVerificationTypeActive = (model.InternalBlacklistStatus != null && model.InternalBlacklistStatus == true) && (model.WatchListVerificationStatus != null && model.WatchListVerificationStatus == true) && (model.TransUnionIdVerificationStatus == null || model.TransUnionIdVerificationStatus == false);\r\n\t\tvar IsNextPassive = model.IdVerificationStatus == null || model.IdVerificationStatus == false;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t {ApprovalDisabled == true || ApplicantId != null\r\n\t\t\t\t\t? \"\"\r\n\t\t\t\t\t: \r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\t{alert}\r\n\t\t\t\t\t\r\n\r\n\t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.identificationMethodIds.length > 0) && \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(this.state.identificationMethodIds.find(x=>x.Value==\"I\").Id == model.IdentificationMethodId) \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPrimary Identification\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tx.Value==\"I\").Id}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.IdentityTypeId}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSorted={this.sortedParameterDesc} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{this.specificIdentityTypesIds.includes(model.IdentityTypeId) &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tx.Value==\"I\").Id\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& this.specificIdentityTypesIds.includes(model.IdentityTypeId)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.PrimaryProvincialIdentityTypeId} />\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tx.Value==\"I\").Id}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.IdentityPlaceOfIssue} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tx.Value==\"I\").Id}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.IdentityNumber}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tinputProps={this.maxLength20} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tx.Value==\"I\").Id}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.IdentityExpireDate}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tIncludeTime={false} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tx.Value==\"I\").Id)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.IdentityVer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\t\t\t\t\t\tCredit File Information\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tx.Value==\"P\").Id}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.CreditAgencyId}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.CreditAgencyId}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={ApprovalDisabled}/>\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tx.Value==\"P\").Id}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.CreditFileNumber}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={ApprovalDisabled}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.CreditFileNumber}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tinputProps={this.maxLength20} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tx.Value==\"P\").Id}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={ApprovalDisabled}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.CreditFileCompletionDate} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\t (this.state.identificationMethodIds.length > 0) &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(this.state.identificationMethodIds.find(x=>x.Value==\"D\").Id == model.IdentificationMethodId) &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPrimary Document\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tx.Value==\"D\").Id)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSorted={this.sortedParameterDesc}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.PrimaryDocumentId}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.PrimaryDocumentId}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={ApprovalDisabled}/>\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tx.Value==\"D\").Id)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={ApprovalDisabled}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.PrimaryDocumentVerificationDate} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tx.Value==\"D\").Id)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.PrimaryDocumentNumber}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={ApprovalDisabled}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.PrimaryDocumentNumber}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tinputProps={this.maxLength20} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tx.Value==\"D\").Id)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.PrimaryDocumentReviewedBy}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tinputProps={this.maxLength20} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\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\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t{IsVerificationTypeActive && \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{model.CanadaPostVerificationEnable && \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{((model.AddressVerification == null || model.AddressVerification == \"Invalid\") && \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{model.IdentityTypeParameterValue2 == IdentityType.OnePoR && \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.SaveCanadaPostRequest();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}>Verification Request\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{model.InPersonIDVerificationEnable && \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{model.OtherVerificationTypeEnable\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? \r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{!(model.IdVerificationStatus) && \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.SendEmailForInPersonIdVerificationStatus()}>Send Email\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{model.IdVerificationStatus && \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t< GridItem xs={8}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{model.IdVerification != \"Valid\" && < Button size=\"sm\" color=\"black\" fullWidth\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tonClick={\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t() => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmodel.IdVerificationStatus = true;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmodel.IdVerification = \"Valid\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmodel.IdentityVerifiedPersonId = ClientHelper\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.GetUser()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.Id;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmodel.User = ClientHelper.GetUser();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmodel.InPersonIdVerificationStatus = \"Verified\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmodel.VerificationDate = DateHelper.GetDateTime();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.setState({ model, IsPersonVerified: true });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.UpdateModel(LOSApplicantStatus.Saved);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} > Verify }\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{model.CanadaPostVerificationEnable && \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{(model.AddressVerification != null && model.AddressVerification != \"Invalid\") && \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 0)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tonClick={() => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.HandleCanadaPostCode(\"E\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}>Email\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 0)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tonClick={() => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.HandleCanadaPostCode(\"D\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}>PDF\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\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t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t{(appliedForData.LoanType != null && appliedForData.LoanType.ParameterValue == ConstLoanType.SecureCard) &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t{IsActiveLoanPurposeDescription && \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tNext\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.CreditValidationStatusNextCliecked(true)}>Complete Application\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{!IsPopUp && \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\tthis.SelectedRowChange(0, index);\r\n\t\t\t\t\t\t\t\t\t\t}} />\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nApplicantDefinition.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tIsPopUp: PropTypes.bool,\r\n\tApplicantModel: PropTypes.object,\r\n\tApprovalDisabled: PropTypes.bool,\r\n\tApplicantDefinitionDiologOpenOrClose: PropTypes.func,\r\n\tHandleChange: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func\r\n};\r\n\r\nexport default withArtifex(ApplicantDefinition, {});","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { TaskPool } from \"core/TaskPool\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericAlert, GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericNumberInput, GenericSelectInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { LOSLoanType } from \"views/Constants/Constant\";\r\nimport { LastPaymentDateAfter } from \"views/Constants/Constant.js\";\r\n\r\nclass BorrowerPaymentPlan extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columns = [\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Installment Date\",\r\n\t\t\t\taccessor: \"InstallmentDateFormatted\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Beginning Balance\",\r\n\t\t\t\taccessor: \"BeginningBalanceFormatted\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Installment Amount\",\r\n\t\t\t\taccessor: \"InstallmentAmountFormatted\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Principal Amount\",\r\n\t\t\t\taccessor: \"PrincipalAmountFormatted\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Interest Balance\",\r\n\t\t\t\taccessor: \"InterestBalanceFormatted\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Fee Balance\",\r\n\t\t\t\taccessor: \"FeeBalanceFormatted\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Ending Balance\",\r\n\t\t\t\taccessor: \"EndingBalanceFormatted\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Payment Status\",\r\n\t\t\t\taccessor: \"PaymentStatus.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Overdue Interest\",\r\n\t\t\t\taccessor: \"LatePaymentAmountFormatted\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Overdue Interest Status\",\r\n\t\t\t\taccessor: \"LatePaymentStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Remaining Overdue Interest Status\",\r\n\t\t\t\taccessor: \"RemainLatePaymentAmountFormatted\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Overdue Interest Day\",\r\n\t\t\t\taccessor: \"LatePaymentDay\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Overdue Fixed Fee \",\r\n\t\t\t\taccessor: \"PenaltyAmountFormatted\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Late Fee Status\",\r\n\t\t\t\taccessor: \"PenaltyStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Remaining Late Fee\",\r\n\t\t\t\taccessor: \"RemainPenaltyAmountFormatted\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Installment Date\",\r\n\t\t\t\taccessor: \"InstallmentDate\",\r\n\t\t\t\tshow: false\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.emptyObject = {};\r\n\t\tthis.parameterApplicantId = {};\r\n\r\n\t\tthis.sortedInstallmentDate = [{ id: \"InstallmentDate\", desc: false }];\r\n\r\n\t\tthis.renderItemApplication = {};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tApplicantId: -2\r\n\t\t\t},\r\n\t\t\tNewApplication: {},\r\n\t\t\tvModel: {},\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tisPaymentDialogOpen: false,\r\n\t\t\tisAdjustmentDialogOpen: false,\r\n\t\t\tisAdjustmentAdjustDialogOpen: false\r\n\t\t};\r\n\t\tthis.loadTaskPool = new TaskPool(this.handleLoadTaskPoolAppend, this.handleLoadTaskPoolCompleted);\r\n\t\tthis.renderItemLOCTransaction = {};\r\n\t\tthis.NewApplicationValueChanged = this.NewApplicationValueChanged.bind(this);\r\n\t\tthis.onBlurevent = this.onBlurevent.bind(this);\r\n\t\tthis.DialogAdjustmentAdjustReCalculate = this.DialogAdjustmentAdjustReCalculate.bind(this);\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Personal Loan Payment Status\");\r\n\t\tthis.props.setAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n\t}\r\n\thandleLoadTaskPoolAppend = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t}\r\n\thandleLoadTaskPoolCompleted = () => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tShowMessage = (type, title, message, callback) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t});\r\n\t}\r\n\tValueChanged = (name, value, data) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\tif (name === \"ApplicationId\") {\r\n\t\t\t\tmodel.Application = data;\r\n\t\t\t}\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\tNewApplicationValueChanged = (name, value, data) => {\r\n\t\tif (name == \"ApprovedPaymentPeriod\") {\r\n\t\t\tthis.PaymentPeriodChange(value);\r\n\t\t}\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.NewApplication;\r\n\t\t\tmodel[name] = value;\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\tDialogPaymentCloseCase = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tconst { model } = this.state;\r\n\t\tconst { showMessage } = this.props;\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/lmsapi/v1.0/LoanEarlyPayment/MakeEarlyPayment\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ alert: null, isPaymentDialogOpen: false }, () => { this.Search(); });\r\n\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tDialogMakeCollection = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tconst { model } = this.state;\r\n\t\tconst { showMessage } = this.props;\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/lmsapi/v1.0/LMSTest/MakeInstallmentCollection\",\r\n\t\t\t{\r\n\t\t\t\tApplication: {\r\n\t\t\t\t\tId: model.ApplicationId\r\n\t\t\t\t},\r\n\t\t\t\tProcessDate: model.ProcessDate\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ alert: null, isMakeCollectionDialogOpen: false }, () => { this.Search(); });\r\n\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\t// DialogPaymentMoveLegalUp = () => {\r\n\t// \tthis.setState({ isLoading: true });\r\n\r\n\t// \tconst { model } = this.state;\r\n\t// \tconst { showMessage } = this.props;\r\n\r\n\t// \tProxy.POST(\r\n\t// \t\t\"/lmsapi/v1.0/LoanEarlyPayment/MoveLegalFollowUp\",\r\n\t// \t\tmodel,\r\n\t// \t\t(responseData) => {\r\n\r\n\t// \t\t\tthis.setState({ isLoading: false });\r\n\t// \t\t\tif (!responseData.IsSucceeded) {\r\n\t// \t\t\t\tthis.setState({ isLoading: false });\r\n\t// \t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t// \t\t\t\treturn;\r\n\t// \t\t\t}\r\n\t// \t\t\tthis.setState({ alert: null, isPaymentDialogOpen: false }, () => { this.Search() });\r\n\r\n\t// \t\t},\r\n\t// \t\t(error) => {\r\n\t// \t\t\tthis.setState({ isLoading: false });\r\n\t// \t\t\tshowMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t// \t\t}\r\n\t// \t);\r\n\t// }\r\n\r\n\tDialogPaymentClose = () => {\r\n\t\tthis.setState({ isPaymentDialogOpen: false });\r\n\t}\r\n\tDialogCollectionClose = () => {\r\n\t\tthis.setState({ isMakeCollectionDialogOpen: false });\r\n\t}\r\n\tDialogAdjustmentAdjust = () => {\r\n\t\tthis.setState({ isAdjustmentAdjustDialogOpen: true });\r\n\t}\r\n\r\n\tDialogAdjustmentCancel = () => {\r\n\r\n\t\tthis.setState({ isAdjustmentDialogOpen: false });\r\n\t}\r\n\r\n\tDialogAdjustmentAdjustReCalculate = () => {\r\n\t\tthis\r\n\t\t\t.loadTaskPool\r\n\t\t\t.AppendTask(Proxy.POST(\"/lmsapi/v1.0/LoanAdjustment/MakeAdjustment\",\r\n\t\t\t\t{\r\n\t\t\t\t\tAdjustedApplicationId: this.state.AdjustmentApplicationDetail.Application.Id,\r\n\t\t\t\t\tFeeTypeId: this.state.NewApplication.FeeTypeId,\r\n\t\t\t\t\tAddFeeAmount: this.state.NewApplication.AddFeeAmount,\r\n\t\t\t\t\tNewApplication: this.state.NewApplication,\r\n\r\n\t\t\t\t}\r\n\t\t\t\t, responseData => {\r\n\t\t\t\t\tconsole.log(\"Adjustment ->\", responseData.IsSucceeded);\r\n\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\talert: null,\r\n\t\t\t\t\t\tisAdjustmentDialogOpen: false,\r\n\t\t\t\t\t\tisAdjustmentAdjustDialogOpen: false\r\n\t\t\t\t\t}, () => {\r\n\t\t\t\t\t\tthis.Clear();\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t}, error => {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}));\r\n\t}\r\n\r\n\tDialogAdjustmentAdjustCancel = () => {\r\n\t\tthis.setState({ isAdjustmentAdjustDialogOpen: false });\r\n\t}\r\n\r\n\tGetParameterApplicantId = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tif (model != null && model.ApplicantId) {\r\n\t\t\treturn { ApplicantId: model.ApplicantId };\r\n\t\t}\r\n\t\treturn { ApplicantId: 0 };\r\n\t}\r\n\r\n\tSearch = () => {\r\n\t\tif (!this.ValidateSearch()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tconst { model } = this.state;\r\n\t\tconst { showMessage } = this.props;\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/lmsapi/v1.0/LoanLedgerCard/GetLoanLedgerCard\",\r\n\t\t\tmodel.Application && model.Application.LoanType && model.Application.LoanType.ParameterValue === LOSLoanType.LOC ?\r\n\t\t\t\t{\r\n\t\t\t\t\t\"LOCTransactionId\": model.LOCTransactionId,\r\n\t\t\t\t\t\"ApplicationId\": model.ApplicationId\r\n\t\t\t\t} :\r\n\t\t\t\t{\r\n\t\t\t\t\t\"ApplicationId\": model.ApplicationId\r\n\t\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvar list = responseData.Item.LedgerCardList || [];\r\n\t\t\t\tthis.setState({ list, isLoading: false });\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, list: [], selected: null });\r\n\t}\r\n\r\n\tPayment = () => {\r\n\t\tif (!this.ValidateSearch()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tconst { model } = this.state;\r\n\t\tconst { showMessage } = this.props;\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/lmsapi/v1.0/LoanLedgerCard/GetPaymentCloseCaseByApplicationId\",\r\n\t\t\t{\r\n\t\t\t\t\"ApplicationId\": model.ApplicationId,\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tvar response = responseData.Item;\r\n\r\n\t\t\t\t\tmodel.LoanTypeId = response.LoanTypeId;\r\n\t\t\t\t\tmodel.TotalPayment = response.TotalPayment;\r\n\t\t\t\t\tmodel.TotalPaymentPeriod = response.TotalPaymentPeriod;\r\n\t\t\t\t\tmodel.RemainingLatePaymentAmount = response.RemainingLatePaymentAmount;\r\n\t\t\t\t\tmodel.RemainingPenaltyAmount = response.RemainingPenaltyAmount;\r\n\t\t\t\t\tmodel.RemainingWaitingInstallmentAmount = response.RemainingWaitingInstallmentAmount;\r\n\t\t\t\t\tmodel.RemainingPayment = response.RemainingPayment;\r\n\t\t\t\t\tmodel.RemainingPeriod = response.RemainingPeriod;\r\n\t\t\t\t\tmodel.EarlyPaymentAmount = response.EarlyPaymentAmount;\r\n\t\t\t\t\tmodel.EarlyPaymentDiscount = response.EarlyPaymentDiscount;\r\n\t\t\t\t\tmodel.TotalEarlyPayment = response.TotalEarlyPayment;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ model, isPaymentDialogOpen: true, isLoading: false });\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tAdjustment = () => {\r\n\t\tthis\r\n\t\t\t.loadTaskPool\r\n\t\t\t.AppendTask(Proxy.POST(\"/lmsapi/v1.0/LoanAdjustment/GetAdjustmentApplicationDetail\", this.state.model.ApplicationId, responseData => {\r\n\t\t\t\tconsole.log(\"Adjustment ->\", responseData.IsSucceeded);\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tAdjustmentApplicationDetail: responseData.Item || {},\r\n\t\t\t\t\tisAdjustmentDialogOpen: true\r\n\t\t\t\t});\r\n\t\t\t}, error => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}));\r\n\r\n\t}\r\n\tMakeColletion = () => {\r\n\t\tvar model = this.state.model;\r\n\t\tconst { showMessage } = this.props;\r\n\r\n\t\tif (model == null || model.ApplicationId == null) {\r\n\t\t\tshowMessage(\"error\", \"Warning\", \"Select application first.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isMakeCollectionDialogOpen: true });\r\n\t}\r\n\r\n\tValidateSearch() {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tconst { showMessageNode } = this.props;\r\n\t\tvar messages = [];\r\n\r\n\t\tif (!model.ApplicantId || model.ApplicantId == -2) {\r\n\t\t\tvModel.ApplicantId = true;\r\n\t\t\tmessages.push(\"Applicant cannot be null.\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvModel.ApplicantId = false;\r\n\t\t}\r\n\t\tif (!model.ApplicationId) {\r\n\t\t\tvModel.ApplicationId = true;\r\n\t\t\tmessages.push(\"Application number cannot be null.\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvModel.ApplicationId = false;\r\n\t\t}\r\n\r\n\t\tif (model.Application && model.Application.LoanType && model.Application.LoanType.ParameterValue === LOSLoanType.LOC && !model.LOCTransactionId) {\r\n\r\n\t\t\tmessages.push(\"LOC transaction cannot be null.\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvModel.Application = false;\r\n\t\t}\r\n\t\tif (messages.length > 0) {\r\n\t\t\tif (messages.length > 9) {\r\n\t\t\t\tvar moreWarn = messages.length - 8;\r\n\t\t\t\tmessages = messages.slice(0, 8);\r\n\t\t\t\tmessages.push(\"And \" + moreWarn + \" more warnings\");\r\n\t\t\t}\r\n\t\t\tshowMessageNode(\"error\", \"Please Fill Required Fields\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tthis.setState({ vModel });\r\n\t\treturn true;\r\n\t}\r\n\r\n\tRenderItemLOCTransaction = (d) => {\r\n\t\tthis.renderItemLOCTransaction = `${d.TransactionType.ParameterDesc} - ${d.TransactionAmount}`;\r\n\t\treturn this.renderItemLOCTransaction;\r\n\t}\r\n\r\n\tRenderItemApplication = (d) => {\r\n\t\tthis.renderItemApplication = `${d.ApplicationNumber} - ${d.LoanType.ParameterDesc}`;\r\n\t\treturn this.renderItemApplication;\r\n\t}\r\n\tPaymentPeriodChange = (value) => {\r\n\t\tlet { NewApplication, AdjustmentApplicationDetail } = this.state;\r\n\t\tNewApplication.ApprovedPaymentPeriod = value;\r\n\t\tvar request = AdjustmentApplicationDetail.Application;\r\n\t\trequest.ApprovedPaymentPeriod = value;\r\n\t\tthis.loadTaskPool.AppendTask(\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/losapi/v1.0/LoanApproval/PaymentPeriodChange\",\r\n\t\t\t\trequest,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tconsole.log(\"LoanApproval/PaymentPeriodChange ->> \" + responseData.IsSucceeded);\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item != null) {\r\n\r\n\t\t\t\t\t\tNewApplication.InterestRate = responseData.Item.InterestRate;\r\n\r\n\t\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\t\tNewApplication\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\tthis.ErrorCallback\r\n\t\t\t));\r\n\t}\r\n\r\n\tErrorCallback = (error) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"Error\", \"An error occurred during the api visit\" + error);\r\n\t}\r\n\tonBlurevent(e) {\r\n\t\tthis.NewApplicationValueChanged(\"ApprovedPaymentPeriod\", e.target.defaultValue);\r\n\t}\r\n\trender() {\r\n\t\tconst { model, list, NewApplication, isLoading, isPaymentDialogOpen, isAdjustmentDialogOpen, isAdjustmentAdjustDialogOpen, isMakeCollectionDialogOpen, vModel, AdjustmentApplicationDetail } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{AdjustmentApplicationDetail == undefined || AdjustmentApplicationDetail.ApplicationApprovedFeeList == null ? \"\" : AdjustmentApplicationDetail.ApplicationApprovedFeeList.map((setupFee, key) => {\r\n\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t})}\r\n\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t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\t\t\t\t\t{model.Application && model.Application.LoanType && model.Application.LoanType.ParameterValue === LOSLoanType.LOC &&\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nBorrowerPaymentPlan.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default BorrowerPaymentPlan;","import { DialogContent, DialogTitle, Slide } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericSelectInput } from \"views/Components/Generic\";\r\nimport LedgerCardCompanyIconDetail from \"views/LOS/LedgerCard/LedgerCardCompanyIconDetail\";\r\n\r\nfunction Transition(props) {\r\n\treturn ;\r\n}\r\n\r\nclass LedgerCardCompanyIcon extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Logo Count\",\r\n\t\t\t\taccessor: \"IconCount\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.uniqueClientId = ClientHelper.IsClient() ? ClientHelper.GetClientId() : undefined;\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: this.uniqueClientId\r\n\t\t};\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tUniqueClientId: this.uniqueClientId\r\n\t\t\t},\r\n\t\t\tisAddLogoDialogOpen: false\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"LOAN ORIGINATOR SYSTEM\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Upload Logo\");\r\n\t\t}\r\n\t}\r\n\r\n\tValueChanged = (name, value, data) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\tif (name == \"UniqueClientId\") {\r\n\t\t\t\tmodel[\"ClientName\"] = data.Name;\r\n\t\t\t}\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tconst { list } = this.state;\r\n\r\n\t\tthis.setState({ model: list[index], selected: index });\r\n\t}\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tAddLogoDialogOpen = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isAddLogoDialogOpen: true });\r\n\t}\r\n\r\n\tAddLogoDialogClose = () => {\r\n\t\tthis.setState({ isAddLogoDialogOpen: false });\r\n\r\n\t\tthis.Search();\r\n\t}\r\n\r\n\tIsFileChangedToFalse = () => {\r\n\t\tthis.setState({ isFileChanged: false });\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/lmsapi/v1.0/LoanLedgerCardIcon/Search\", model);\r\n\r\n\t\tthis.setState({ list: result || [] });\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tif (this.uniqueClientId != null) {\r\n\t\t\tthis.setState({ list: [], selected: null });\r\n\t\t} else {\r\n\t\t\tthis.setState({ model: {}, list: [], selected: null });\r\n\t\t}\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tvar { model } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errors = [];\r\n\r\n\t\tif (!model.UniqueClientId) {\r\n\t\t\terrors.push(\"Client cannot be null.\");\r\n\t\t}\r\n\r\n\t\tmodel[\"IsUniqueClientId\"] = !model.UniqueClientId;\r\n\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, list, selected, isAddLogoDialogOpen } = this.state;\r\n\t\tconst { Disabled, ExecuteApiPost, ExecuteApiFileUpload, showConfirmMessageInDelete, showValidationErrors } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t showConfirmMessageInDelete(() => ExecuteApiPost(\"/lsmapi/v1.0/LoanLedgerCardIcon/Delete\", { Id: model.Id }, null, null, null, [this.Clear, this.Search], true))\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Clear\",\r\n\t\t\t\t\t\t\tDisabled: Disabled,\r\n\t\t\t\t\t\t\tOnClick: this.Clear\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tDETAIL OF LOGOS\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nLedgerCardCompanyIcon.propTypes = {\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tExecuteApiFileUpload: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default LedgerCardCompanyIcon;","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport withStyles from \"@material-ui/core/styles/withStyles\";\r\nimport { List } from \"@material-ui/icons\";\r\nimport { chartColors } from \"assets/jss/material-dashboard-pro-react.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport CardIcon from \"components/Card/CardIcon.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport ArrayHelper from \"core/ArrayHelper\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { ApproveIcon, ProfileIcon, SubmitOrSendIcon } from \"core/Icons\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericNumberInput, GenericSelectInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, RoleLevel, UserStatus } from \"views/Constants/Constant\";\r\nimport LoanApplicationsChart from \"./LoanApplicationsChart\";\r\nimport LoanApprovalStatusChart from \"./LoanApprovalStatusChart\";\r\n\r\nclass LoanApplications extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tvar defaultFirstDate = new Date();\r\n\t\tdefaultFirstDate.setDate(defaultFirstDate.getDate() + -33);\r\n\t\tvar defaultEndDate = new Date();\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tFromDate: defaultFirstDate,\r\n\t\t\tToDate: defaultEndDate\r\n\t\t};\r\n\t\tthis.state = {\r\n\t\t\tisAssignDialogOpen: false,\r\n\t\t\tprofileGreenColor: {},\r\n\t\t\tprofileRedColor: {},\r\n\t\t\tprofileYellowColor: {},\r\n\t\t\tprofileBlackColor: {},\r\n\t\t\ttestDataLoan: {\r\n\t\t\t\tTotalRequestAmount: null,\r\n\t\t\t\tRequestAmountCount: null\r\n\t\t\t},\r\n\t\t\tselected: null,\r\n\t\t\tApplicationsList: [],\r\n\t\t\tApplicantList: [],\r\n\t\t\tprogramList: [],\r\n\t\t\tmerchantList: [],\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tisLoading: false,\r\n\t\t\tactiveIndex: 0,\r\n\t\t\ttrxChartData: {\r\n\t\t\t\tlabels: [\"Loan\"],\r\n\t\t\t\tdatasets: [{\r\n\t\t\t\t\tdata: [100],\r\n\t\t\t\t\tbackgroundColor: chartColors.red,\r\n\t\t\t\t\thoverBackgroundColor: chartColors.red\r\n\t\t\t\t}],\r\n\t\t\t\ttext: \"\",\r\n\t\t\t},\r\n\t\t\tcreditDebitChartData: {\r\n\t\t\t\tlabels: [\"Line Of Credit\"],\r\n\t\t\t\tdatasets: [{\r\n\t\t\t\t\tdata: [100],\r\n\t\t\t\t\tbackgroundColor: \"rgb(255, 159, 64)\",\r\n\t\t\t\t\thoverBackgroundColor: \"rgb(255, 159, 64)\"\r\n\t\t\t\t}],\r\n\t\t\t\ttext: \"\"\r\n\t\t\t},\r\n\t\t\tloanChartData: {\r\n\t\t\t\tlabels: [\"Line Of Credit\"],\r\n\t\t\t\tdatasets: [{\r\n\t\t\t\t\tdata: [100],\r\n\t\t\t\t\tbackgroundColor: \"rgb(255, 159, 64)\",\r\n\t\t\t\t\thoverBackgroundColor: \"rgb(255, 159, 64)\"\r\n\t\t\t\t}],\r\n\t\t\t\ttext: \"\"\r\n\t\t\t},\r\n\t\t\tfeeChartData: {\r\n\t\t\t\tlabels: [\"Secured Card\"],\r\n\t\t\t\tdatasets: [{\r\n\t\t\t\t\tdata: [100],\r\n\t\t\t\t\tbackgroundColor: \"rgb(54, 162, 235)\",\r\n\t\t\t\t\thoverBackgroundColor: \"rgb(54, 162, 235)\"\r\n\t\t\t\t}],\r\n\t\t\t\ttext: \"\"\r\n\t\t\t},\r\n\t\t\tonHoldChartData: {\r\n\t\t\t\tlabels: [\"Application In Progress\"],\r\n\t\t\t\tdatasets: [{\r\n\t\t\t\t\tdata: [100],\r\n\t\t\t\t\tbackgroundColor: \"rgb(54, 162, 235)\",\r\n\t\t\t\t\thoverBackgroundColor: \"rgb(54, 162, 235)\"\r\n\t\t\t\t}],\r\n\t\t\t\ttext: \"\"\r\n\t\t\t},\r\n\t\t\tapprovedChartData: {\r\n\t\t\t\tlabels: [\"Application Approved\"],\r\n\t\t\t\tdatasets: [{\r\n\t\t\t\t\tdata: [80],\r\n\t\t\t\t\tbackgroundColor: \"rgb(54, 162, 235)\",\r\n\t\t\t\t\thoverBackgroundColor: \"rgb(54, 162, 235)\"\r\n\t\t\t\t}],\r\n\t\t\t\ttext: \"\"\r\n\t\t\t},\r\n\t\t\trejectedChartData: {\r\n\t\t\t\tlabels: [\"Application Declined\"],\r\n\t\t\t\tdatasets: [{\r\n\t\t\t\t\tdata: [90],\r\n\t\t\t\t\tbackgroundColor: \"rgb(54, 162, 235)\",\r\n\t\t\t\t\thoverBackgroundColor: \"rgb(54, 162, 235)\"\r\n\t\t\t\t}],\r\n\t\t\t\ttext: \" \"\r\n\t\t\t},\r\n\t\t\tisBackOffice: ClientHelper.IsBackOffice()\r\n\t\t};\r\n\t\tthis.ColumnsData = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Assign User\",\r\n\t\t\t\taccessor: \"AssignUserFullName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date\",\r\n\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Partner\",\r\n\t\t\t\taccessor: \"ClientPartner.LegalNameOfBusiness\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Loan Type\",\r\n\t\t\t\taccessor: \"LoanType.ParameterDesc\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Applicant Name\",\r\n\t\t\t\taccessor: \"Applicant.FullName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Amount\",\r\n\t\t\t\taccessor: \"RequestedAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Frequency\",\r\n\t\t\t\taccessor: \"RequestedPaymentFrequency.ParameterDesc\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Count\",\r\n\t\t\t\taccessor: \"RequestedPaymentPeriod\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{(row.original.LoanType.ParameterDesc === \"Loan\") && row.original.RequestedPaymentPeriod}\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Purpose Of Loan\",\r\n\t\t\t\taccessor: \"LoanPurpose.ParameterDesc\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Internal Score\",\r\n\t\t\t\taccessor: \"ApprovedInternalScore\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"External Score\",\r\n\t\t\t\taccessor: \"ExternalScore\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{row.original.TransUnionCreditScore && row.original.TransUnionCreditScore != 0 ? row.original.TransUnionCreditScore : \"N/A\"}\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Principal\",\r\n\t\t\t\taccessor: \"ApprovedAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Interest\",\r\n\t\t\t\taccessor: \"InterestRate\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Fees\",\r\n\t\t\t\taccessor: \"TotalSetupAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Activation Status\",\r\n\t\t\t\taccessor: \"Status.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Approval Status\",\r\n\t\t\t\taccessor: \"ApprovalStatus.ParameterDesc\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reason\",\r\n\t\t\t\taccessor: \"ApprovalSubStatus.ParameterDesc\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Comment\",\r\n\t\t\t\taccessor: \"ApprovalSubStatusComment\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sale Channel\",\r\n\t\t\t\taccessor: \"SaleChannel.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Updated By\",\r\n\t\t\t\taccessor: \"UpdateUser\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Update Date Time\",\r\n\t\t\t\taccessor: \"UpdateDateTime\",\r\n\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t},\r\n\t\t];\r\n\t\tif (!this.state.isBackOffice) {\r\n\t\t\tthis.ColumnsData.unshift(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tthis.ProfileOnClick(row.original.Id, row.original.AssignUserId, row.original.ApplicantId);\r\n\t\t\t\t\t\t\t\t}} />\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tthis.ApprovalOnClick(row.original.Id, row.original.AssignUserId);\r\n\t\t\t\t\t\t\t\t}} />\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tthis.DialogAssignOpen(row.original.Id, row.original.AssignUserId);\r\n\t\t\t\t\t\t\t\t}} />\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t),\r\n\t\t\t\t\tsortable: false,\r\n\t\t\t\t\tfilterable: false,\r\n\t\t\t\t\t// @ts-ignore\r\n\t\t\t\t\twidth: 100\r\n\t\t\t\t},\r\n\t\t\t);\r\n\t\t}\r\n\r\n\r\n\t\tthis.LoanTypeParameterCode = { ParameterCode: \"LOSLoanType\" };\r\n\t\tthis.ApprovalParameterCode = { ParameterCode: \"LOSApprovalStatus\" };\r\n\t\tthis.LoanTermParameterCode = { ParameterCode: \"LOSLoanTerm\" };\r\n\t\tthis.ClientPartnerParameterCode = { ParameterCode: \"ClientPartner\" };\r\n\t\tthis.SalesChannelParameterCode = { ParameterCode: \"LOSSalesChannel\" };\r\n\t\tthis.LoanTypeParameters = { ParameterCode: \"LoanType\" };\r\n\r\n\t\tthis.chartColors = {\r\n\t\t\tred: \"rgb(255, 99, 132)\",\r\n\t\t\torange: \"rgb(255, 159, 64)\",\r\n\t\t\tyellow: \"rgb(255, 205, 86)\",\r\n\t\t\tgreen: \"rgb(75, 192, 192)\",\r\n\t\t\tblue: \"rgb(54, 162, 235)\",\r\n\t\t\tpurple: \"rgb(153, 102, 255)\",\r\n\t\t\tgrey: \"rgb(201, 203, 207)\"\r\n\t\t};\r\n\r\n\t\tthis.HandleChange = this.HandleChange.bind(this);\r\n\t\tthis.HandleClear = this.HandleClear.bind(this);\r\n\t\tthis.SuccessListCallback = this.SuccessListCallback.bind(this);\r\n\t\tthis.ErrorListCallback = this.ErrorListCallback.bind(this);\r\n\t\tthis.GetAllClient = this.GetAllClient.bind(this);\r\n\t\tthis.AssignApplicantToUser = this.AssignApplicantToUser.bind(this);\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Loan Applications\");\r\n\t\tthis.props.setAppCenterTitle(\"LOAN ORIGINATOR SYSTEM\");\r\n\r\n\t\tthis.GetAllClient();\r\n\r\n\t}\r\n\r\n\tasync GetAllClient() {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar user = ClientHelper.GetUser();\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/User/Search\", { UniqueClientId: user.UniqueClientId, UserStatusList: [ UserStatus.Ok ] });\r\n\t\tvar assignUserList = [], isClientStandartUser = null;\r\n\r\n\t\tif (result != null) {\r\n\t\t\tif (user.Role.RoleLevel.ParameterValue == RoleLevel.ClientStandardUser) {\r\n\t\t\t\tassignUserList = result\r\n\t\t\t\t\t.filter(x => x.Id == user.Id)\r\n\t\t\t\t\t.map(x => {\r\n\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\tId: x.Id,\r\n\t\t\t\t\t\t\tFullName: x.FullName\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\tisClientStandartUser = true;\r\n\t\t\t} else if (user.Role.RoleLevel.ParameterValue == RoleLevel.ClientAdmin) {\r\n\t\t\t\tassignUserList = result\r\n\t\t\t\t\t.map(x => {\r\n\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\tId: x.Id,\r\n\t\t\t\t\t\t\tFullName: x.FullName\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t});\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tArrayHelper.SortArray(assignUserList, \"FullName\");\r\n\r\n\t\tthis.setState({ assignUserList, isClientStandartUser });\r\n\r\n\t}\r\n\r\n\tAssigneeControl(assignUserId) {\r\n\t\tvar user = ClientHelper.GetUser();\r\n\r\n\t\tif (\r\n\t\t\tuser.Role.RoleLevel.ParameterValue == RoleLevel.ClientStandardUser\r\n\t\t\t&& assignUserId != null\r\n\t\t\t&& assignUserId != user.Id) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Warning\", \"You can only perform operations about tasks that are assigned to your user account.\");\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tProfileOnClick = (applicationId, assignUserId, applicantId) => {\r\n\t\t//if (this.AssigneeControl(assignUserId)) {\r\n\t\tRouteHelper.Push(this.props.history, \"/CreateApplication\", \"ApplicationData\", { ApplicationId: applicationId, ApplicantId: applicantId, EnableApplicantUpdate: false });\r\n\t\t//}\r\n\t}\r\n\r\n\tApprovalOnClick = (applicationId, assignUserId) => {\r\n\t\tif (this.AssigneeControl(assignUserId)) {\r\n\t\t\tRouteHelper.Push(this.props.history, \"/loanApproval\", \"loanApproval_Id\", applicationId);\r\n\t\t}\r\n\t}\r\n\r\n\tSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/losapi/v1.0/Application/Dashboard\",\r\n\t\t\t{\r\n\t\t\t\tApplicationModel: this.state.model,\r\n\t\t\t\tFromDate: this.state.model.FromDate,\r\n\t\t\t\tToDate: this.state.model.ToDate\r\n\t\t\t}\r\n\t\t\t,\r\n\t\t\tresponseData => {\r\n\t\t\t\tconsole.log(\"GetApplicant ->\", responseData.IsSucceeded);\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.SuccessListCallback(responseData);\r\n\t\t\t\t\tthis.setState({ ApplicationsList: responseData.Item.Applications || [], profileGreenColor: responseData.Item.ProfileGreenColor || [], profileYellowColor: responseData.Item.ProfileYellowColor || [], profileRedColor: responseData.Item.ProfileRedColor || [], isLoading: false });\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ ApplicantList: [], isLoading: false });\r\n\t\t\t\t}\r\n\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\r\n\r\n\tHandleChange(name, value) {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tif (name == \"UniqueClientId\" && value == null) {\r\n\t\t\tmodel[name] = 0;\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear() {\r\n\t\tthis.setState({ model: this.initialModel, selected: null });\r\n\t}\r\n\r\n\tformatNumber = (num) => {\r\n\t\treturn \" $ \" + num.toString().replace(/(\\d)(?=(\\d{3})+(?!\\d))/g, \"$1,\");\r\n\t}\r\n\r\n\tSuccessListCallback(responseData) {\r\n\t\tvar arrayData = [];\r\n\t\tvar arrayData2 = [];\r\n\t\tvar arrayData3 = [];\r\n\t\tvar arrayData4 = [];\r\n\t\tvar arrayData5 = [];\r\n\t\tvar arrayData6 = [];\r\n\t\tvar arrayLabel = [];\r\n\t\tvar arrayLabel2 = [];\r\n\t\tvar arrayLabel3 = [];\r\n\t\tvar arrayLabel4 = [];\r\n\t\tvar arrayLabel5 = [];\r\n\t\tvar arrayLabel6 = [];\r\n\t\tvar arrayColor = [];\r\n\t\tvar arrayColor2 = [];\r\n\t\tvar arrayColor3 = [];\r\n\t\tvar arrayColor4 = [];\r\n\t\tvar arrayColor5 = [];\r\n\t\tvar arrayColor6 = [];\r\n\t\tif (responseData.Item !== null) {\r\n\t\t\tvar colorNames = Object.keys(chartColors);\r\n\t\t\tvar i = 0;\r\n\r\n\t\t\tvar colorName = colorNames[i % colorNames.length];\r\n\t\t\tvar newColor = chartColors[colorName];\r\n\t\t\tarrayColor.push(newColor);\r\n\t\t\tarrayData.push(responseData.Item.LoanChartData != null ? responseData.Item.LoanChartData.TotalRequestAmount : 0);\r\n\t\t\tarrayData.push(responseData.Item.LoanChartData != null ? responseData.Item.LoanChartData.RequestAmountCount : 0);\r\n\r\n\t\t\tarrayLabel.push(\"Tran Amount\");\r\n\t\t\tarrayLabel.push(\"Total Amount\");\r\n\t\t\tif (responseData.Item.LoanChartData != null) {\r\n\t\t\t\tvar loanString = responseData.Item.LoanChartData.RequestAmountCount + \" \" + this.formatNumber(responseData.Item.LoanChartData.TotalRequestAmount);\r\n\t\t\t}\r\n\r\n\t\t\tvar trxChartObj = {\r\n\t\t\t\tlabels: arrayLabel,\r\n\t\t\t\tdatasets: [{\r\n\t\t\t\t\tdata: arrayData,\r\n\t\t\t\t\thoverBackgroundColor: arrayColor,\r\n\t\t\t\t\tbackgroundColor: arrayColor\r\n\t\t\t\t}],\r\n\t\t\t\ttext: responseData.Item.LoanChartData != null ? loanString : \"0\"\r\n\t\t\t};\r\n\t\t\t/********************************************************/\r\n\t\t\tcolorNames = Object.keys(chartColors);\r\n\t\t\tcolorName = colorNames[i % colorNames.length];\r\n\t\t\tnewColor = chartColors[colorName];\r\n\t\t\tarrayColor2.push(newColor);\r\n\t\t\tarrayData2.push(responseData.Item.LocChartData != null ? responseData.Item.LocChartData.TotalRequestAmount : 0);\r\n\t\t\tarrayData2.push(responseData.Item.LocChartData != null ? responseData.Item.LocChartData.RequestAmountCount : 0);\r\n\r\n\t\t\tarrayLabel2.push(\"Tran Amount\");\r\n\t\t\tarrayLabel2.push(\"Total Amount\");\r\n\r\n\t\t\tif (responseData.Item.LocChartData != null) {\r\n\t\t\t\tvar lineOfCreditString = responseData.Item.LocChartData.RequestAmountCount + \" \" + this.formatNumber(responseData.Item.LocChartData.TotalRequestAmount);\r\n\t\t\t}\r\n\r\n\t\t\tvar creditDebitChartDataObj = {\r\n\t\t\t\tlabels: arrayLabel2,\r\n\t\t\t\tdatasets: [{\r\n\t\t\t\t\tdata: arrayData2,\r\n\t\t\t\t\thoverBackgroundColor: arrayColor2,\r\n\t\t\t\t\tbackgroundColor: arrayColor2\r\n\t\t\t\t}],\r\n\t\t\t\ttext: responseData.Item.LocChartData != null ? lineOfCreditString : \"0\"\r\n\t\t\t};\r\n\t\t\t/********************************************************/\r\n\t\t\tcolorNames = Object.keys(chartColors);\r\n\t\t\tcolorName = colorNames[i % colorNames.length];\r\n\t\t\tnewColor = chartColors[colorName];\r\n\t\t\tarrayColor3.push(newColor);\r\n\r\n\t\t\tarrayData3.push(responseData.Item.SecuredCardChartData != null ? responseData.Item.SecuredCardChartData.TotalRequestAmount : 0);\r\n\t\t\tarrayData3.push(responseData.Item.SecuredCardChartData != null ? responseData.Item.SecuredCardChartData.RequestAmountCount : 0);\r\n\r\n\t\t\tarrayLabel3.push(\"Tran Amount\");\r\n\t\t\tarrayLabel3.push(\"Total Amount\");\r\n\r\n\t\t\tif (responseData.Item.SecuredCardChartData != null) {\r\n\t\t\t\tvar securedCardString = responseData.Item.SecuredCardChartData.RequestAmountCount + \" \" + this.formatNumber(responseData.Item.SecuredCardChartData.TotalRequestAmount);\r\n\t\t\t}\r\n\t\t\tvar feeChartDataObj = {\r\n\t\t\t\tlabels: arrayLabel3,\r\n\t\t\t\tdatasets: [{\r\n\t\t\t\t\tdata: arrayData3,\r\n\t\t\t\t\thoverBackgroundColor: arrayColor3,\r\n\t\t\t\t\tbackgroundColor: arrayColor3\r\n\t\t\t\t}],\r\n\t\t\t\ttext: responseData.Item.SecuredCardChartData != null ? securedCardString : \"0\"\r\n\t\t\t};\r\n\t\t\t/********************************************************/\r\n\t\t\tcolorNames = Object.keys(chartColors);\r\n\t\t\tcolorName = colorNames[i % colorNames.length];\r\n\t\t\tnewColor = chartColors[colorName];\r\n\t\t\tarrayColor4.push(newColor);\r\n\t\t\tarrayData4.push(responseData.Item.OnHoldChartData != null ? responseData.Item.OnHoldChartData.TotalRequestAmount : 0);\r\n\t\t\tarrayData4.push(responseData.Item.OnHoldChartData != null ? responseData.Item.OnHoldChartData.RequestAmountCount : 0);\r\n\r\n\t\t\tarrayLabel4.push(\"Tran Amount\");\r\n\t\t\tarrayLabel4.push(\"Total Amount\");\r\n\r\n\t\t\tif (responseData.Item.OnHoldChartData != null) {\r\n\t\t\t\tvar onHoldString = responseData.Item.OnHoldChartData.RequestAmountCount + \" \" + this.formatNumber(responseData.Item.OnHoldChartData.TotalRequestAmount);\r\n\t\t\t}\r\n\r\n\t\t\tvar onHoldChartDataObj = {\r\n\t\t\t\tlabels: arrayLabel4,\r\n\t\t\t\tdatasets: [{\r\n\t\t\t\t\tdata: arrayData4,\r\n\t\t\t\t\thoverBackgroundColor: arrayColor4,\r\n\t\t\t\t\tbackgroundColor: arrayColor4\r\n\t\t\t\t}],\r\n\t\t\t\ttext: responseData.Item.OnHoldChartData != null ? onHoldString : \"0\"\r\n\t\t\t};\r\n\r\n\t\t\tcolorNames = Object.keys(chartColors);\r\n\t\t\tcolorName = colorNames[i % colorNames.length];\r\n\t\t\tnewColor = chartColors[colorName];\r\n\t\t\tarrayColor5.push(newColor);\r\n\t\t\tarrayData5.push(responseData.Item.ApprovedChartData != null ? responseData.Item.ApprovedChartData.TotalRequestAmount : 0);\r\n\t\t\tarrayData5.push(responseData.Item.ApprovedChartData != null ? responseData.Item.ApprovedChartData.RequestAmountCount : 0);\r\n\r\n\t\t\tarrayLabel5.push(\"Tran Amount\");\r\n\t\t\tarrayLabel5.push(\"Total Amount\");\r\n\r\n\t\t\tif (responseData.Item.ApprovedChartData != null) {\r\n\t\t\t\tvar approvedString = responseData.Item.ApprovedChartData.RequestAmountCount + \" \" + this.formatNumber(responseData.Item.ApprovedChartData.TotalRequestAmount);\r\n\t\t\t}\r\n\r\n\t\t\tvar approvedChartDataObj = {\r\n\t\t\t\tlabels: arrayLabel5,\r\n\t\t\t\tdatasets: [{\r\n\t\t\t\t\tdata: arrayData5,\r\n\t\t\t\t\thoverBackgroundColor: arrayColor5,\r\n\t\t\t\t\tbackgroundColor: arrayColor5\r\n\t\t\t\t}],\r\n\t\t\t\ttext: responseData.Item.ApprovedChartData != null ? approvedString : \"0\"\r\n\t\t\t};\r\n\r\n\t\t\tcolorNames = Object.keys(chartColors);\r\n\t\t\tcolorName = colorNames[i % colorNames.length];\r\n\t\t\tnewColor = chartColors[colorName];\r\n\t\t\tarrayColor6.push(newColor);\r\n\t\t\tarrayData6.push(responseData.Item.RejectedChartData != null ? responseData.Item.RejectedChartData.TotalRequestAmount : 0);\r\n\t\t\tarrayData6.push(responseData.Item.RejectedChartData != null ? responseData.Item.RejectedChartData.RequestAmountCount : 0);\r\n\r\n\t\t\tarrayLabel6.push(\"Tran Amount\");\r\n\t\t\tarrayLabel6.push(\"Total Amount\");\r\n\t\t\tif (responseData.Item.RejectedChartData != null) {\r\n\t\t\t\tvar rejectedString = responseData.Item.RejectedChartData.RequestAmountCount + \" \" + this.formatNumber(responseData.Item.RejectedChartData.TotalRequestAmount);\r\n\t\t\t}\r\n\r\n\t\t\tvar rejectedChartDataObj = {\r\n\t\t\t\tlabels: arrayLabel6,\r\n\t\t\t\tdatasets: [{\r\n\t\t\t\t\tdata: arrayData6,\r\n\t\t\t\t\thoverBackgroundColor: arrayColor6,\r\n\t\t\t\t\tbackgroundColor: arrayColor6\r\n\t\t\t\t}],\r\n\t\t\t\ttext: responseData.Item.RejectedChartData != null ? rejectedString : \"0\"\r\n\t\t\t};\r\n\t\t\t//***************/\r\n\t\t\tconst { model } = this.state;\r\n\t\t\tmodel.BeginDate = responseData.Item.BeginDate;\r\n\t\t\tmodel.EndDate = responseData.Item.EndDate;\r\n\t\t\tthis.setState({\r\n\t\t\t\tmodel,\r\n\t\t\t\ttrxChartData: responseData.Item.LoanChartData != null && responseData.Item.LoanChartData.RequestAmountCount > 0 ? trxChartObj : { ...this.state.trxChartData, ...{ text: \"0\" } },\r\n\t\t\t\tcreditDebitChartData: responseData.Item.LocChartData != null && responseData.Item.LocChartData.RequestAmountCount > 0 ? creditDebitChartDataObj : { ...this.state.creditDebitChartData, ...{ text: \"0\" } },\r\n\t\t\t\tfeeChartData: responseData.Item.SecuredCardChartData != null && responseData.Item.SecuredCardChartData.RequestAmountCount > 0 ? feeChartDataObj : { ...this.state.feeChartData, ...{ text: \"0\" } },\r\n\t\t\t\tonHoldChartData: responseData.Item.OnHoldChartData != null && responseData.Item.OnHoldChartData.RequestAmountCount > 0 ? onHoldChartDataObj : { ...this.state.onHoldChartData, ...{ text: \"0\" } },\r\n\t\t\t\tapprovedChartData: responseData.Item.ApprovedChartData != null && responseData.Item.ApprovedChartData.RequestAmountCount > 0 ? approvedChartDataObj : { ...this.state.approvedChartData, ...{ text: \"0\" } },\r\n\t\t\t\trejectedChartData: responseData.Item.RejectedChartData != null && responseData.Item.RejectedChartData.RequestAmountCount > 0 ? rejectedChartDataObj : { ...this.state.rejectedChartData, ...{ text: \"0\" } }\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\r\n\r\n\tErrorListCallback(error) {\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\tShowMessage(type, title, message) {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\tSelectedColumnChange = (index, rowInfo, columnInfo) => {\r\n\t\tif (columnInfo.id == \"Actions\") {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst model = this.state.ApplicationsList[index];\r\n\t\tif (model != null && model.Id != null && model.Id > 0 &&\r\n\t\t\tmodel.ApprovalStatus != null && !(model.ApprovalStatus.ParameterValue == \"1\" || model.ApprovalStatus.ParameterValue == \"2\")) {\r\n\t\t\tthis.ApprovalOnClick(model.Id, model.AssignUserId);\r\n\t\t}\r\n\t}\r\n\r\n\tDialogAssignOpen = (applicationId, assignUserId) => {\r\n\t\tconst { isClientStandartUser } = this.state;\r\n\t\tconst { showMessage } = this.props;\r\n\t\tvar user = ClientHelper.GetUser();\r\n\r\n\t\tif (isClientStandartUser && user.Id != assignUserId) {\r\n\t\t\tshowMessage(\"warning\", \"Warning\", \"This is already assigned to other user. You cannot change this.\");\r\n\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar { model, assignUserList } = this.state;\r\n\t\tmodel.ApplicationId = applicationId;\r\n\r\n\t\tvar assignUserIndex = assignUserId != null\r\n\t\t\t? assignUserList.map(function (e) { return e.Id; }).indexOf(assignUserId)\r\n\t\t\t: null;\r\n\r\n\t\tthis.setState({ model, assignUserIndex, isAssignDialogOpen: true });\r\n\t}\r\n\r\n\tDialogAssignClose = () => {\r\n\t\tvar { model } = this.state;\r\n\t\tmodel.AssignUserId = null;\r\n\r\n\t\tthis.setState({ model, isAssignDialogOpen: false });\r\n\t}\r\n\r\n\tasync AssignApplicantToUser() {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/losapi/v1.0/Application/UpdateAssignUser\", { ApplicationId: model.ApplicationId, AssignUserId: model.AssignUserId }, null, null, null, null, true);\r\n\r\n\t\tif (result != null) {\r\n\t\t\tthis.setState({ isAssignDialogOpen: false });\r\n\t\t\tthis.Search();\r\n\t\t}\r\n\t}\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\treturn `${d.UniqueClientId} - ${d.Name}`;\r\n\t}\r\n\r\n\trender() {\r\n\r\n\t\tconst { classes, Disabled } = this.props;\r\n\t\tconst { alert, isLoading, model,\r\n\t\t\tselected, isAssignDialogOpen, assignUserList, assignUserIndex, isBackOffice, isClientStandartUser } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{isBackOffice && (\r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\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nconst styles = ({\r\n\tLabelText: {\r\n\t\tcolor: \"Black\",\r\n\t\t// fontSize: 12,\r\n\t},\r\n\tComboStyle: {\r\n\t\tmarginLeft: -50\r\n\t}\r\n});\r\n\r\nLoanApplications.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func\r\n};\r\n\r\nexport default withStyles(styles)(LoanApplications);","import { DialogContent, DialogTitle, Tooltip, Zoom } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { DocumentIcon, ProfileIcon } from \"core/Icons\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport { TaskPool } from \"core/TaskPool\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericNumberInput, GenericSelectInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport LoanCalculator from \"views/Components/LoanCalculator\";\r\nimport TabsComponent from \"views/Components/TabsComponentPagination\";\r\nimport { ActionCodes, GridColumnType, LOSApprovalStatus, LOSLoanType, MenuCodes, EmbossType } from \"views/Constants/Constant\";\r\nimport ApplicantDefinition from \"views/LOS/ApplicantDefinition/ApplicantDefinition.jsx\";\r\nimport LedgerCard from \"views/LOS/LedgerCard/LedgerCard.jsx\";\r\nimport LoanDetails from \"views/LOS/LoanApproval/LoanApprovalDetails/LoanDetails.jsx\";\r\nimport LocDetails from \"views/LOS/LoanApproval/LoanApprovalDetails/LocDetails.jsx\";\r\nimport SecureCardDetails from \"views/LOS/LoanApproval/LoanApprovalDetails/SecureCardDetails.jsx\";\r\nimport LoanApprovalFundingMethod from \"views/LOS/LoanApproval/LoanApprovalFundingMethod.jsx\";\r\nimport LoanApprovalInformation from \"views/LOS/LoanApproval/LoanApprovalInformation.jsx\";\r\nimport LoanApprovalOnHold from \"views/LOS/LoanApproval/LoanApprovalOnHold.jsx\";\r\nimport LoanApprovalRejected from \"views/LOS/LoanApproval/LoanApprovalRejected\";\r\nimport PaymentAdminAccountCreate from \"views/LOS/LoanApproval/PaymentAdminAccountCreate.jsx\";\r\nimport PaymentAdminApplicationNoteHistory from \"views/LOS/LoanApproval/PaymentAdminApplicationNoteHistory.jsx\";\r\nimport PaymentAdminCardAction from \"views/LOS/LoanApproval/PaymentAdminCardAction.jsx\";\r\nimport PaymentAdminDocument from \"views/LOS/LoanApproval/PaymentAdminDocument.jsx\";\r\n\r\n\r\nconst ConstVerification = {\r\n\tisIdVerification: null,\r\n\tisAddressVerification: null,\r\n\tisCreditHistoryVerification: null,\r\n\tisBlackListVerification: null,\r\n\tisDocumentVerification: null,\r\n\tisInPersonVerification: null,\r\n\tisSecurityAccountHaveBalance: null,\r\n\tisWatchListVerification: null\r\n};\r\nconst ConstAccountModel = {\r\n\tFinancialInstitutionId: 0,\r\n\tFinancialInstitutionBranchId: 0,\r\n\tAccountNumber: 0\r\n};\r\nconst LoanTypeTitle = {\r\n\tSecureCard: \"Secure Card\",\r\n\tLoan: \"Loan\",\r\n\tLoc: \"Line of Credit\"\r\n};\r\nconst initialState = {\r\n\tpanelActivationStatus: {\r\n\t\tpanelFilterActive: true,\r\n\t\tpanelInformationActive: false,\r\n\t\tpanelLoanDetailActive: false,\r\n\t\tpanelApprovalDocumentActive: false,\r\n\t\tpanelAccountDetailActive: false,\r\n\t\tpanelCardActionActive: false,\r\n\t\tpanelApplicationNoteActive: false,\r\n\t\tpanelStatementActive: false,\r\n\t\tpanelCurrentTermTransactionActive: false\r\n\t}\r\n};\r\nclass LoanApproval extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.loadTaskPool = new TaskPool(this.handleLoadTaskPoolAppend, this.handleLoadTaskPoolCompleted);\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.GetApplicationDocumentModels = this.GetApplicationDocumentModels.bind(this);\r\n\t\tthis.CreateCustomer = this.CreateCustomer.bind(this);\r\n\t\tthis.CreateSecurityAccount = this.CreateSecurityAccount.bind(this);\r\n\t\tthis.CreateWalletAccount = this.CreateWalletAccount.bind(this);\r\n\t\tthis.CreateCard = this.CreateCard.bind(this);\r\n\t\tthis.GetLoanApprovalParameterList = this.GetLoanApprovalParameterList.bind(this);\r\n\t\tthis.ApplicantDialogOpenOrClose = this.ApplicantDialogOpenOrClose.bind(this);\r\n\t\tthis.HandleChangeFilterPanel = this.HandleChangeFilterPanel.bind(this);\r\n\t\tthis.GenerateStatementPdfFile = this.GenerateStatementPdfFile.bind(this);\r\n\t\tthis.ActivateCard = this.ActivateCard.bind(this);\r\n\t\tthis.SetFile = this\r\n\t\t\t.SetFile\r\n\t\t\t.bind(this);\r\n\t\tthis.renderItemApplication = {};\r\n\r\n\t\tthis.ColumnsData = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tthis.SelectedRow(row.original);\r\n\t\t\t\t\t\t\t}} />\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\twidth: 60\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"TransactionType\",\r\n\t\t\t\taccessor: \"TransactionTypeId\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Insert Date Time\",\r\n\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"TransactionAmount\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reference Number\",\r\n\t\t\t\taccessor: \"ReferenceNumber\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t},\r\n\t\t];\r\n\r\n\t\tthis.ColumnsDataLOCTrx = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tthis.setState({ isLedgerCardDialogOpen: true });\r\n\t\t\t\t\t\t\t}} />\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\twidth: 60\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Type\",\r\n\t\t\t\taccessor: \"TransactionType.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"TransactionAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reference Number\",\r\n\t\t\t\taccessor: \"ReferenceNumber\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date\",\r\n\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tfilterMethod: (filter, row) => {\r\n\t\t\t\t\treturn Formatter.FormatDateTime(row[filter.id]).toLowerCase().startsWith(filter.value.toLowerCase());\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t];\r\n\t\tthis.columnsCurrentTermTransactionList = [\r\n\t\t\t{\r\n\r\n\t\t\t\tHeader: \"Transaction Type\",\r\n\t\t\t\taccessor: \"TransactionType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\taccessor: \"FormattedTransactionDate\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Description\",\r\n\t\t\t\taccessor: \"Description\"\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Amount\",\r\n\t\t\t\taccessor: \"FormattedAmount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Fee and Interest Amount\",\r\n\t\t\t\taccessor: \"FormattedFeeAmount\"\r\n\t\t\t}\r\n\t\t];\r\n\t\tthis.ParameterCodeList = [\"LOSOccupation\", \"LOSDocumentType\", \"LOSPayOption\"\r\n\t\t\t, \"LOSYesNo\", \"LOSLoanPurpose\", \"LOSPaymentSchedule\", \"LOSRateOption\"\r\n\t\t\t, \"LOSPaymentMethod\", \"LOSLoanTranferType\", \"LMSPaymentDay\"\r\n\t\t\t, \"LOSSalary\", \"LOSAddrTime\", \"LOSOccupation\", \"EntityType\"\r\n\t\t\t, \"PaymentFrequency\", \"PaymentMethod\", \"PaymentOption\", \"LOSEmplTime\"\r\n\t\t\t, \"LOSDepositIn\", \"LOSApprovalSubStatus\", \"LOSVerifiedStatus\", \"IdentityVerifyingPerson\", \"LOSMaritalStatus\"];\r\n\r\n\t\tthis.sortedClient = { Member: \"Name\" };\r\n\r\n\t\tthis.ParameterList = [];\r\n\t\tthis.ApplicantList = [];\r\n\t\tthis.FeeProfileList = [];\r\n\t\tthis.FeeProfileListFiltered = [];\r\n\t\tthis.CountryList = [];\r\n\t\tthis.state = {\r\n\t\t\tpanelActivationStatus: Object.assign({}, initialState.panelActivationStatus),\r\n\t\t\tmodel: {\r\n\t\t\t\tId: 0,\r\n\t\t\t\tApplicantId: 0,\r\n\t\t\t\tApplicant: {},\r\n\t\t\t\tCardEmbossName: \"\",\r\n\t\t\t\tIsMass: true\r\n\t\t\t},\r\n\t\t\tvModel: {},\r\n\t\t\tScore: {\r\n\t\t\t\tscore: null,\r\n\t\t\t\tcolor: \"#FF5733\"\r\n\t\t\t},\r\n\t\t\tSystemResult: \"\",\r\n\t\t\tisRejectedDialogOpen: false,\r\n\t\t\tisOnHoldDialogOpen: false,\r\n\t\t\tisLedgerCardDialogOpen: false,\r\n\t\t\tisLoanCalculatorDialogOpen: false,\r\n\t\t\tLoanApprovalDocumentsList: [],\r\n\t\t\tLoanApprovalFeeList: [],\r\n\t\t\tisBrowse: false,\r\n\t\t\tgrandtotal: 0,\r\n\t\t\tcheckerDisabled: {\r\n\t\t\t\tsecureCardDisabled: false,\r\n\t\t\t\tloanDisabled: false,\r\n\t\t\t\tlocDisabled: false,\r\n\t\t\t},\r\n\t\t\tisApproved: false,\r\n\t\t\tVerification: {\r\n\t\t\t\tisIdVerification: null,\r\n\t\t\t\tisAddressVerification: null,\r\n\t\t\t\tisCreditHistoryVerification: null,\r\n\t\t\t\tisBlackListVerification: null,\r\n\t\t\t\tisDocumentVerification: null,\r\n\t\t\t\tisInPersonVerification: null,\r\n\t\t\t\tisSecurityAccountHaveBalance: null,\r\n\t\t\t\tisWatchListVerification: null\r\n\t\t\t},\r\n\t\t\tisApplicantDialogOpen: false,\r\n\t\t\tagreementList: [],\r\n\t\t\tmodelRow: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tisUserAdmin: false,\r\n\t\t\tisLoanApprovalScreen: false,\r\n\t\t\tReadOnly: true,\r\n\t\t\tAccountModel: { FinancialInstitutionId: 0, FinancialInstitutionBranchId: 0, AccountNumber: 0 },\r\n\t\t\tParentTabIndex: 0,\r\n\t\t\tLOCTransactions: [],\r\n\t\t\tisMainSubmitDisabled: true,\r\n\t\t\tisApprovedPeriodDisabled: false,\r\n\t\t\toperationType: null,\r\n\t\t\tparamApplicationDocumentList: [],\r\n\t\t\tisDebtInquiryDialogOpen: false,\r\n\t\t\tisAdjustLimitDialogOpen: false\r\n\t\t};\r\n\t\tthis.Applicant = {};\r\n\t\tthis.maxLength20 = { maxLength: 20 };\r\n\t\tthis.marginLeft2 = { marginLeft: 2 };\r\n\t\tthis.statemetColumns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t { this.GenerateStatementPdfFile(row.original); }} />\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Application Number\",\r\n\t\t\t\taccessor: \"Statement.Application.ApplicationNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Number\",\r\n\t\t\t\taccessor: \"CardNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Statement Period Begin Date\",\r\n\t\t\t\taccessor: \"FormattedBeginDate\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Statement Date\",\r\n\t\t\t\taccessor: \"FormattedEndDate\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Statement Due Date\",\r\n\t\t\t\taccessor: \"FormattedDueDate\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Opening Balance\",\r\n\t\t\t\taccessor: \"OpeningBalance\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Closing Balance\",\r\n\t\t\t\taccessor: \"ClosingBalance\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Minumum Payment Amount\",\r\n\t\t\t\taccessor: \"MinimumPayment\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Payments\",\r\n\t\t\t\taccessor: \"PaymentAmount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Refunds and Credits\",\r\n\t\t\t\taccessor: \"RefundsAndCredits\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Debit Adjustments\",\r\n\t\t\t\taccessor: \"DebitAdjustments\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Purchases\",\r\n\t\t\t\taccessor: \"PurchaseAmount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Cash Advance\",\r\n\t\t\t\taccessor: \"FormattedTotalCashAdvanceAmount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Fees Charged\",\r\n\t\t\t\taccessor: \"FeesCharged\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Interest Charged\",\r\n\t\t\t\taccessor: \"InterestCharged\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t}\r\n\t\t];\r\n\t\tthis.LedgerCardColumns = [\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Installment Date\",\r\n\t\t\t\taccessor: \"InstallmentDateFormatted\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Beginning Balance\",\r\n\t\t\t\taccessor: \"BeginningBalanceFormatted\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Installment Amount\",\r\n\t\t\t\taccessor: \"InstallmentAmountFormatted\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Principal Amount\",\r\n\t\t\t\taccessor: \"PrincipalAmountFormatted\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Interest Balance\",\r\n\t\t\t\taccessor: \"InterestBalanceFormatted\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Fee Balance\",\r\n\t\t\t\taccessor: \"FeeBalanceFormatted\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Ending Balance\",\r\n\t\t\t\taccessor: \"EndingBalanceFormatted\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Payment Status\",\r\n\t\t\t\taccessor: \"PaymentStatus.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Overdue Interest\",\r\n\t\t\t\taccessor: \"LatePaymentAmountFormatted\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Overdue Interest Status\",\r\n\t\t\t\taccessor: \"LatePaymentStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Remaining Overdue Interest Status\",\r\n\t\t\t\taccessor: \"RemainLatePaymentAmountFormatted\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Overdue Interest Day\",\r\n\t\t\t\taccessor: \"LatePaymentDay\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Overdue Fixed Fee \",\r\n\t\t\t\taccessor: \"PenaltyAmountFormatted\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Late Fee Status\",\r\n\t\t\t\taccessor: \"PenaltyStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Remaining Late Fee\",\r\n\t\t\t\taccessor: \"RemainPenaltyAmountFormatted\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Installment Date\",\r\n\t\t\t\taccessor: \"InstallmentDate\",\r\n\t\t\t\tshow: false\r\n\t\t\t}\r\n\t\t];\r\n\t\tthis.sortedInstallmentDate = [{ id: \"InstallmentDate\", desc: false }];\r\n\t\tthis.FixedId = 0;\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle, MenuCode } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(`${MenuCode == MenuCodes.Lms_PaymentAdmin ? \"LOAN MANAGEMENT SYSTEM\" : \"LOAN ORIGINATOR SYSTEM\"}`);\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(`${MenuCode == MenuCodes.Lms_PaymentAdmin ? \"Payment Admin\" : \"Loan Approval\"}`);\r\n\t\t}\r\n\r\n\t\tthis.GetUserRole();\r\n\r\n\t\tvar applicantId = RouteHelper.ReadAndClear(\"LmsPaymentAdminApplicantId\");\r\n\t\tvar { model } = this.state;\r\n\t\tmodel.ApplicantId = applicantId;\r\n\t\tif (applicantId)\r\n\t\t\tthis.setState({ model });\r\n\t\tvar Id = RouteHelper.ReadAndClear(\"loanApproval_Id\");\r\n\t\tif (Id)\r\n\t\t\tthis.HandleGetApplication(Id);\r\n\r\n\t\tthis.GetLoanApprovalParameterList(MenuCode == MenuCodes.PaymentAdminLenderProgram || MenuCode == MenuCodes.PaymentAdminCallCenter ? -1 : null);\r\n\t\tthis.GetFixedId();\r\n\t}\r\n\tcomponentWillMount() {\r\n\t\tthis.setState({ panelActivationStatus: Object.assign({}, initialState.panelActivationStatus) });\r\n\t}\r\n\tGenerateStatementPdfFile = (selectedModel) => {\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tlet data = selectedModel;\r\n\t\tconst { showMessage } = this.props;\r\n\t\tProxy.FileDownloadWithGenericResponse(\r\n\t\t\t\"/lmsapi/v1.0/Statement/GenerateStatementPdfFile\",\r\n\t\t\tselectedModel.Statement.Application.ApplicationNumber + \"-Statement-\" + Math.floor(Math.random() * Math.floor(999999)),\r\n\t\t\t\"pdf\",\r\n\t\t\tdata,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"An error occurred while downloading file \" + error);\r\n\t\t\t});\r\n\t}\r\n\tGetLoanApprovalParameterList(uniqueClientId) {\r\n\t\tthis.loadTaskPool.AppendTask(\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/losapi/v1.0/LoanApproval/GetLoanApprovalUiParameter\",\r\n\t\t\t\t{\r\n\t\t\t\t\t\"ParameterList\": this.ParameterCodeList,\r\n\t\t\t\t\t\"MenuCode\": this.props.MenuCode,\r\n\t\t\t\t\t\"UniqueClientId\": uniqueClientId\r\n\t\t\t\t},\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.ParameterList = responseData.Item.ParameterList;\r\n\t\t\t\t\tthis.ApplicantList = responseData.Item.ApplicantList;\r\n\t\t\t\t\tthis.CountryList = responseData.Item.CountryList;\r\n\t\t\t\t\tthis.FeeProfileList = responseData.Item.FeeProfileList || [];\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t));\r\n\t}\r\n\r\n\tGetFixedId = () => {\r\n\t\tthis.loadTaskPool.AppendTask(\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/coreapi/v1.0/Parameter/Search\",\r\n\t\t\t\t{\r\n\t\t\t\t\t\"ParameterCode\": \"LOSPaymentMethod\",\r\n\t\t\t\t\t\"ParameterValue\": \"F\"\r\n\t\t\t\t},\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tthis.FixedId = responseData?.Item[0]?.Id;\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t));\r\n\t}\r\n\r\n\tLoanApprovalApprove = (workflowId, after) => {\r\n\t\tif (this.state.model.ApprovalStatusId == 1 && !this.ValidateClientSubmit())\r\n\t\t\treturn;\r\n\t\tvar model = { ...this.state.model };\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/losapi/v1.0/LoanApproval/Approve\",\r\n\t\t\t{\r\n\t\t\t\tApplication: model,\r\n\t\t\t\tApplicationFeeList: this.state.LoanApprovalFeeList,\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.ErrorCode != \"0\") {\r\n\t\t\t\t\tthis.hideAlert();\r\n\t\t\t\t\tif (after) after();\r\n\t\t\t\t\twindow.location.reload();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.ShowMessageConfirm(\"success\", \"Success\", \"Operation Successfully Completed\", () => {\r\n\t\t\t\t\t\tthis.hideAlert();\r\n\t\t\t\t\t\tif (after) after();\r\n\t\t\t\t\t\twindow.location.reload();\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t},\r\n\t\t\tworkflowId\r\n\t\t);\r\n\t}\r\n\r\n\tLoanApprovalReject = (workflowId, after) => {\r\n\t\tif (this.state.model.ApprovalStatusId == 1 && !this.ValidateClientSubmit())\r\n\t\t\treturn;\r\n\t\tvar model = { ...this.state.model };\r\n\t\tProxy.POST(\r\n\t\t\t\"/losapi/v1.0/LoanApproval/Reject\",\r\n\t\t\t{\r\n\t\t\t\tApplication: model,\r\n\t\t\t\tApplicationFeeList: this.state.LoanApprovalFeeList,\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.ErrorCode != \"0\") {\r\n\t\t\t\t\tthis.hideAlert();\r\n\t\t\t\t\tif (after) after();\r\n\t\t\t\t\twindow.location.reload();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.ShowMessageConfirm(\"success\", \"Success\", \"Operation Successfully Completed\", () => {\r\n\t\t\t\t\t\tthis.hideAlert();\r\n\t\t\t\t\t\tif (after) after();\r\n\t\t\t\t\t\twindow.location.reload();\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t},\r\n\t\t\tworkflowId\r\n\t\t);\r\n\t}\r\n\r\n\tLoanApprovalOnHold = (workflowId, after) => {\r\n\t\tif (this.state.model.ApprovalStatusId == 1 && !this.ValidateClientSubmit())\r\n\t\t\treturn;\r\n\t\tvar model = { ...this.state.model };\r\n\t\tProxy.POST(\r\n\t\t\t\"/losapi/v1.0/LoanApproval/Onhold\",\r\n\t\t\t{\r\n\t\t\t\tApplication: model,\r\n\t\t\t\tApplicationFeeList: this.state.LoanApprovalFeeList,\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.ShowMessageConfirm(\"success\", \"Success\", \"Operation Successfully Completed\", () => {\r\n\t\t\t\t\tthis.hideAlert();\r\n\t\t\t\t\tif (after) after();\r\n\t\t\t\t\twindow.location.reload();\r\n\t\t\t\t});\r\n\r\n\t\t\t},\r\n\t\t\terror => {\r\n\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t},\r\n\t\t\tworkflowId\r\n\t\t);\r\n\t}\r\n\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\r\n\tSelectedRow(row) {\r\n\t\tthis.setState({ modelrow: row });\r\n\t\tthis.LedgerCardDialogOpenOrClose();\r\n\t}\r\n\r\n\tShowMessageConfirm = (type, title, message, confirm) => {\r\n\t\t// type:-success->warning->info->error\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t});\r\n\t}\r\n\r\n\thandleLoadTaskPoolCompleted = () => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\thandleLoadTaskPoolAppend = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t}\r\n\r\n\thandleOperationType = (value) => {\r\n\t\tthis.setState({ operationType: value });\r\n\t}\r\n\r\n\tUpdateModel = () => {\r\n\t\tconst model = this.state.model;\r\n\t\tthis.loadTaskPool.AppendTask(\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/losapi/v1.0/LoanApproval/InsertUpdate\",\r\n\t\t\t\t{\r\n\t\t\t\t\tApplication: model,\r\n\t\t\t\t\tApplicationFeeList: this.state.LoanApprovalFeeList,\r\n\t\t\t\t},\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\t\tthis.setState({ model: responseData.Item.Application, isLedgerCardDialogOpen: false });\r\n\t\t\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Applications Updated\");\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t));\r\n\t}\r\n\r\n\tGetUserRole() {\r\n\t\tvar userJson = localStorage.getItem(\"user\");\r\n\t\tvar user = userJson ? JSON.parse(userJson) : null;\r\n\r\n\t\tif (!user || !user.SessionId)\r\n\t\t\treturn null;\r\n\t\tif (this.props.MenuCode == MenuCodes.Lms_PaymentAdmin) {\r\n\t\t\tthis.setState({ isUserAdmin: true });\r\n\t\t}\r\n\t\telse if (this.props.MenuCode == MenuCodes.LOS_LoanApproval) {\r\n\t\t\tthis.setState({ isLoanApprovalScreen: true });\r\n\t\t}\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\r\n\t\tif (name == \"ApplicantId\") {\r\n\t\t\tmodel[\"Id\"] = null;\r\n\t\t\tif (newValue > 0) {\r\n\t\t\t\tvar panelActivationStatus = this.state.panelActivationStatus;\r\n\t\t\t\tpanelActivationStatus.panelInformationActive = true;\r\n\t\t\t\tthis.HandleClickClearOk();\r\n\t\t\t\tthis.setState({ panelActivationStatus });\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (name == \"Id\" && newValue > 0) {\r\n\t\t\tthis.HandleClickClearOk();\r\n\t\t\tthis.HandleGetApplication(newValue);\r\n\t\t}\r\n\r\n\t\tif (name == \"ApprovedPaymentPeriod\" && newValue != \"\") {\r\n\t\t\tthis.PaymentPeriodChange(newValue);\r\n\t\t}\r\n\t\tif (name == \"LoanFeeDefinitionId\" && newValue != \"\") {\r\n\t\t\tthis.FeeProfileChange(newValue);\r\n\t\t}\r\n\t\tif (name == \"SecurityQuestionId\") {\r\n\t\t\tmodel[\"SecurityQuestionText\"] = data?.Id;\r\n\t\t}\r\n\t\tif (name == \"UniqueClientIdForBackoffice\") {\r\n\t\t\tthis.GetLoanApprovalParameterList(newValue);\r\n\t\t}\r\n\t\tif (name === \"EmbossType\" && newValue != EmbossType.InstantId) {\r\n\t\t\tmodel.IsMass = true;\r\n\t\t\tmodel.InstantEmbossBranchId = undefined;\r\n\t\t}\r\n\t\tif (name === \"EmbossType\" && newValue == EmbossType.InstantId) {\r\n\t\t\tmodel.IsMass = false;\r\n\t\t}\r\n\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tPaymentPeriodChange = (value) => {\r\n\t\tlet { model } = this.state;\r\n\t\tmodel.ApprovedPaymentPeriod = value;\r\n\t\tthis.loadTaskPool.AppendTask(\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/losapi/v1.0/LoanApproval/PaymentPeriodChange\",\r\n\t\t\t\tmodel,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tconsole.log(\"LoanApproval/PaymentPeriodChange ->> \" + responseData.IsSucceeded);\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item != null) {\r\n\r\n\t\t\t\t\t\tmodel.InterestRate = responseData.Item.InterestRate;\r\n\r\n\t\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\t\tmodel\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\tthis.ErrorCallback\r\n\t\t\t));\r\n\t}\r\n\r\n\tFeeProfileChange = (value) => {\r\n\t\tlet { model } = this.state;\r\n\t\tmodel.LoanFeeDefinitionId = value;\r\n\t\tthis.loadTaskPool.AppendTask(\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/losapi/v1.0/LoanApproval/FeeProfileChange\",\r\n\t\t\t\tmodel,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tconsole.log(\"LoanApproval/FeeProfileChange ->> \" + responseData.IsSucceeded);\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\t\tmodel.TotalSetupAmount = responseData.Item.reduce((a, b) => +a + +b.GivenValue, 0);\r\n\t\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\t\tLoanApprovalFeeList: responseData.Item,\r\n\t\t\t\t\t\t\tmodel\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\tthis.ErrorCallback\r\n\t\t\t));\r\n\t}\r\n\r\n\tHandleGetApplication = (id) => {\r\n\t\tlet { model, Score, SystemResult, LoanApprovalFeeList, Verification, isApproved, ParentTabIndex } = this.state;\r\n\t\tthis.setState({ LoanApprovalFeeList: [] });\r\n\r\n\t\tthis.loadTaskPool.AppendTask(\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/losapi/v1.0/Application/GetById\",\r\n\t\t\t\t{ Id: id },\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tconsole.log(\"Application/GetById ->> \" + responseData.IsSucceeded);\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\t\tvar uniqueClientIdForBackoffice = model.UniqueClientIdForBackoffice;\r\n\r\n\t\t\t\t\t\tmodel = responseData.Item.Application;\r\n\t\t\t\t\t\tmodel.UniqueClientIdForBackoffice = uniqueClientIdForBackoffice;\r\n\t\t\t\t\t\tmodel.ApplicationCardId = responseData.Item.ApplicationCardId;\r\n\t\t\t\t\t\tmodel.ApplicationCardStatusDesc = responseData.Item.ApplicationCardStatusDesc;\r\n\t\t\t\t\t\tmodel.CurrentCardLimit = responseData.Item.CurrentCardLimit;\r\n\t\t\t\t\t\tmodel.WalletBalance = responseData.Item.WalletBalance;\r\n\t\t\t\t\t\tmodel.SecurityBalance = responseData.Item.SecurityBalance;\r\n\t\t\t\t\t\tmodel.ApplicationCardParameterValue = responseData.Item.ApplicationCardParameterValue;\r\n\t\t\t\t\t\tmodel.CardEmbossName = responseData.Item.Application.Applicant.CardEmbossName;\r\n\t\t\t\t\t\tmodel.MovedSecurityAmount = responseData.Item.MovedSecurityAmount;\r\n\t\t\t\t\t\tScore.score = model.InternalScore;\r\n\t\t\t\t\t\tSystemResult = model.LoanApprovalParameter != null ? model.LoanApprovalParameter.FlexDesc : \"!No data found\";\r\n\r\n\t\t\t\t\t\tif (model != null && model.ApprovalStatus != null && model.ApprovalStatus.ParameterValue != LOSApprovalStatus.Saved) {\r\n\t\t\t\t\t\t\tLoanApprovalFeeList = responseData.Item.ApprovalFeeList;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tLoanApprovalFeeList = responseData.Item.ApplicationFeeList;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (model.ApprovalStatus != null && model.ApprovalStatus.ParameterValue == LOSApprovalStatus.Approved) {\r\n\t\t\t\t\t\t\tisApproved = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tVerification.isAddressVerification = responseData.Item.AddressVerificationResult;\r\n\t\t\t\t\t\tVerification.isIdVerification = responseData.Item.IdVerificationResult;\r\n\t\t\t\t\t\tVerification.isTransUnionIdVerification = responseData.Item.TransUnionIdVerification;\r\n\t\t\t\t\t\tVerification.isBlackListVerification = responseData.Item.InternalBlacklistResult;\r\n\t\t\t\t\t\tVerification.isDocumentVerification = responseData.Item.Application.DocumentStatus;\r\n\t\t\t\t\t\tVerification.isCreditHistoryVerification = responseData.Item.CreditHistoryVerificationResult;\r\n\t\t\t\t\t\tVerification.isInPersonVerification = responseData.Item.InPersonVerificationResult;\r\n\t\t\t\t\t\tVerification.isSecurityAccountHaveBalance = responseData.Item.Application.Applicant && responseData.Item.Application.Applicant.SecurityAccount\r\n\t\t\t\t\t\t\t&& responseData.Item.Application.Applicant.SecurityAccount.Balance >= responseData.Item.Application.ApprovedSecurityAmount ? true : false;\r\n\t\t\t\t\t\tVerification.isWatchListVerification = true;\r\n\t\t\t\t\t\tmodel.ApprovedInternalScore = responseData.Item.Application.InternalScore;\r\n\t\t\t\t\t\tmodel.ApprovedDocumentStatus = responseData.Item.Application.DocumentStatus;\r\n\t\t\t\t\t\tmodel.ApprovedInternalBlacklistStatus = responseData.Item.InternalBlacklistResult;\r\n\t\t\t\t\t\tmodel.ApprovedIdVerificationStatus = responseData.Item.AddressVerificationResult;\r\n\t\t\t\t\t\tmodel.ApprovedAddressVerificationStatus = responseData.Item.AddressVerificationResult;\r\n\t\t\t\t\t\tmodel.ApprovedInPersonVerificationStatus = responseData.Item.InPersonVerificationResult;\r\n\t\t\t\t\t\tmodel.TransUnionIdVerification = responseData.Item.TransUnionIdVerification;\r\n\t\t\t\t\t\tvar isApprovedPeriodDisabled = false;\r\n\t\t\t\t\t\tif (model.LoanType.ParameterValue == LOSLoanType.Loan) {\r\n\t\t\t\t\t\t\tParentTabIndex = 2;\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if (model.LoanType.ParameterValue == LOSLoanType.LOC) {\r\n\t\t\t\t\t\t\tParentTabIndex = 1;\r\n\t\t\t\t\t\t\tisApprovedPeriodDisabled = true;\r\n\t\t\t\t\t\t\tmodel.ApprovedPaymentPeriod = 1;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if (model.LoanType.ParameterValue == LOSLoanType.SecureCard) {\r\n\t\t\t\t\t\t\tParentTabIndex = 0;\r\n\t\t\t\t\t\t\tisApprovedPeriodDisabled = true;\r\n\t\t\t\t\t\t\tmodel.ApprovedPaymentPeriod = 1;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif (!model.ApprovedPaymentMethodId) {\r\n\t\t\t\t\t\t\tmodel.ApprovedPaymentMethodId = this.FixedId;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif (!model.LastPaymentDateAfter) {\r\n\t\t\t\t\t\t\tmodel.LastPaymentDateAfter = 21;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tthis.FeeProfileListFiltered = this.FeeProfileList\r\n\t\t\t\t\t\t\t.filter(x => x.LoanTypeParameterValue == model.LoanType?.ParameterValue\r\n\t\t\t\t\t\t\t\t&& x.LoanPurposeId == model.LoanPurposeId);\r\n\r\n\t\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\t\tisApprovedPeriodDisabled: isApprovedPeriodDisabled,\r\n\t\t\t\t\t\t\tmodel: model,\r\n\t\t\t\t\t\t\tScore, isApproved,\r\n\t\t\t\t\t\t\tparamApplicationAddressList: responseData.Item.ApplicationAddressList,\r\n\t\t\t\t\t\t\tLoanApprovalDocumentsList: responseData.Item.ApplicationDocumentList,\r\n\t\t\t\t\t\t\tparamApplicationDocumentList: responseData.Item.ApplicationDocumentList,\r\n\t\t\t\t\t\t\tLoanApprovalFeeList, Verification, SystemResult,\r\n\t\t\t\t\t\t\tParentTabIndex,\r\n\t\t\t\t\t\t\tLOCTransactions: responseData.Item.LOCTransactions,\r\n\t\t\t\t\t\t\tStatementList: responseData.Item.StatementListResponse != null\r\n\t\t\t\t\t\t\t\t&& responseData.Item.StatementListResponse.StatementList != null\r\n\t\t\t\t\t\t\t\t? responseData.Item.StatementListResponse.StatementList : [],\r\n\t\t\t\t\t\t\tLedgerCardList: responseData.Item.LoanLedgerCardResponse != null &&\r\n\t\t\t\t\t\t\t\tresponseData.Item.LoanLedgerCardResponse.LedgerCardList != null\r\n\t\t\t\t\t\t\t\t? responseData.Item.LoanLedgerCardResponse.LedgerCardList : [],\r\n\t\t\t\t\t\t\tCurrentTermTransactionList: responseData.Item.CurrentTermTransactions || []\r\n\t\t\t\t\t\t}, () => this.GetUser(model.Applicant));\r\n\t\t\t\t\t\t//this.VerificationList(\"DocumentStatus\", model.DocumentStatus);\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\tthis.ErrorCallback\r\n\t\t\t));\r\n\t}\r\n\r\n\tGetUser = (applicant) => {\r\n\t\tconst { model } = this.state;\r\n\t\tthis.loadTaskPool.AppendTask(\r\n\t\t\tProxy.GET(\r\n\t\t\t\t\"/coreapi/v1.0/User/GetUserByEmail?Email=\" + applicant.Email,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tmodel.ApplicantHasUser = responseData.User != null;\r\n\t\t\t\t\tthis.setState({ model });\r\n\t\t\t\t},\r\n\t\t\t\tthis.ErrorCallback\r\n\t\t\t)\r\n\t\t);\r\n\t}\r\n\r\n\tVerificationList = (field, check) => {\r\n\t\tconst temp = this.state.Verification;\r\n\t\tif (field == \"DocumentStatus\") {\r\n\t\t\ttemp.isDocumentVerification = check;\r\n\t\t}\r\n\t\tif (field == \"AddressStatus\") {\r\n\t\t\ttemp.isAddressVerification = check;\r\n\t\t}\r\n\t\tif (field == \"CreditHistoryVerification\") {\r\n\t\t\ttemp.isCreditHistoryVerification = check;\r\n\t\t}\r\n\t\tif (field == \"BlackListVerification\") {\r\n\t\t\ttemp.isBlackListVerification = check;\r\n\t\t}\r\n\t\tthis.setState({ Verification: temp });\r\n\t}\r\n\r\n\r\n\tHandleClickClearOk = () => {\r\n\t\tconst modelFromState = this.state.model;\r\n\t\tthis.HideAlert();\r\n\t\tthis.setState(\r\n\t\t\t{\r\n\t\t\t\tmodel: { Id: 0, ApplicantId: 0, Applicant: {}, UniqueClientIdForBackoffice: modelFromState.UniqueClientIdForBackoffice },\r\n\t\t\t\tLoanApprovalFeeList: [],\r\n\t\t\t\tSystemResult: \"\",\r\n\t\t\t\tLoanApprovalDocumentsList: [],\r\n\t\t\t\tVerification: ConstVerification,\r\n\t\t\t\tisUserAdmin: this.props.MenuCode == MenuCodes.Lms_PaymentAdmin,\r\n\t\t\t\tisLoanApprovalScreen: this.props.MenuCode == MenuCodes.LOS_LoanApproval,\r\n\t\t\t\tAccountModel: ConstAccountModel,\r\n\t\t\t\tisMainSubmitDisabled: true\r\n\t\t\t});\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.ShowConfirmMessage(\"warning\", \"Warning\", \"This will erase the information you entered on the screen. Are you sure you want to quit this loan approval?\", () => this.HandleClickClearOk());\r\n\t}\r\n\r\n\tErrorCallback = (error) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"Error\", \"An error occurred during the api visit\" + error);\r\n\t}\r\n\r\n\tShowMessageAndRefresh = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlertAndRefresh()} />\r\n\t\t});\r\n\t}\r\n\thideAlertAndRefresh = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t\twindow.location.reload();\r\n\r\n\t}\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: null })} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\r\n\tHideAlert = () => {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\tRefreshToolBar = () => {\r\n\t\tthis.setState({ LimitToken: !this.state.LimitToken });\r\n\t}\r\n\r\n\tRejectedDialogOpenOrClose = () => {\r\n\t\tif (this.state.isRejectedDialogOpen == false) {\r\n\t\t\tthis.setState({ isRejectedDialogOpen: true });\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.setState({ isRejectedDialogOpen: false });\r\n\t\t}\r\n\t}\r\n\tGetSubMenuParameter = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tthis.Applicant.ApplicantId = model.ApplicantId;\r\n\r\n\t\treturn this.Applicant;\r\n\t}\r\n\tOnHoldDialogOpenOrClose = () => {\r\n\t\tif (this.state.isOnHoldDialogOpen == false) {\r\n\t\t\tthis.setState({ isOnHoldDialogOpen: true });\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.setState({ isOnHoldDialogOpen: false });\r\n\t\t}\r\n\t}\r\n\tLoanCalculatorDialogOpenOrClose = () => {\r\n\t\tif (this.state.isLoanCalculatorDialogOpen == false) {\r\n\t\t\tthis.setState({ isLoanCalculatorDialogOpen: true });\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.setState({ isLoanCalculatorDialogOpen: false });\r\n\t\t}\r\n\t}\r\n\tLedgerCardDialogOpenOrClose = () => {\r\n\t\tif (this.state.isLedgerCardDialogOpen == false) {\r\n\t\t\tthis.setState({ isLedgerCardDialogOpen: true });\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.setState({ isLedgerCardDialogOpen: false });\r\n\t\t}\r\n\t}\r\n\tApplicantDialogOpenOrClose = () => {\r\n\t\tif (this.state.model.ApplicantId != null && this.state.isApplicantDialogOpen == false) {\r\n\t\t\tthis.setState({ isApplicantDialogOpen: true });\r\n\t\t}\r\n\t\telse if (this.state.isApplicantDialogOpen == true) {\r\n\t\t\tthis.setState({ isApplicantDialogOpen: false });\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.setState({ isApplicantDialogOpen: false });\r\n\t\t}\r\n\t}\r\n\r\n\tTransferLoanOp = (refNum) => {\r\n\t\tif (refNum)\r\n\t\t\tthis.GetLOCTransaction();\r\n\t}\r\n\r\n\tGetLOCTransaction = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tthis.loadTaskPool.AppendTask(\r\n\t\t\tProxy.GET(\r\n\t\t\t\t\"/lmsapi/v1.0/LOCTransaction/GetByApplicationId/Id?Id=\" + model.Id,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\t\tthis.setState({ LOCTransactions: responseData.Item });\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.setState({ LOCTransactions: [] });\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\tthis.ErrorCallback\r\n\t\t\t));\r\n\t}\r\n\r\n\tDeleteModel = (model) => {\r\n\t}\r\n\r\n\tSearch = () => {\r\n\t}\r\n\r\n\tSubmitApprovalStatusDialog = () => {\r\n\t\tif (this.state.model.Id > 0 &&\r\n\t\t\tthis.state.model.ApprovalSubStatusId != null &&\r\n\t\t\tthis.state.model.ApprovalSubStatusId > 0 &&\r\n\t\t\tthis.state.model.ApprovalStatusId != null &&\r\n\t\t\tthis.state.model.ApprovalStatusId > 0) {\r\n\t\t\tthis.setState({ isMainSubmitDisabled: false });\r\n\t\t}\r\n\t}\r\n\r\n\thandleChangeParentTab = (event, active, tab) => {\r\n\t\tif (!tab) {\r\n\t\t\tthis.setState({ ParentTabIndex: active });\r\n\t\t}\r\n\t\treturn;\r\n\t}\r\n\r\n\tValidateClientSubmit = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tlet { vModel } = this.state;\r\n\t\tvar ErrorList = [];\r\n\t\tif (model == null) {\r\n\t\t\tErrorList.push(\"Model not defined.\");\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please Fill Required Fields\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (model.ApplicantId == null || model.ApplicantId == 0) {\r\n\t\t\tErrorList.push(\"Applicant must be defined.\");\r\n\t\t\tvModel.ApplicantId = true;\r\n\t\t} else {\r\n\t\t\tvModel.ApplicantId = false;\r\n\t\t}\r\n\t\tif (model.LoanTypeId == null || model.LoanTypeId == \"\") {\r\n\t\t\tErrorList.push(\"Loan type must be defined.\");\r\n\t\t\tvModel.LoanTypeId = true;\r\n\t\t} else {\r\n\t\t\tvModel.LoanTypeId = false;\r\n\t\t}\r\n\t\tif (this.state.operationType === \"Reject\") {\r\n\t\t\tthis.setState({ vModel });\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tif (model.LoanFeeDefinitionId == null || model.LoanFeeDefinitionId == \"\") {\r\n\t\t\tErrorList.push(\"Fee profile must be defined.\");\r\n\t\t\tvModel.LoanFeeDefinitionId = true;\r\n\t\t} else {\r\n\t\t\tvModel.LoanFeeDefinitionId = false;\r\n\t\t}\r\n\t\tif (this.state.ParentTabIndex == 2 && !model.LoanPurposeId) {\r\n\t\t\tErrorList.push(\"Loan purpose must be defined.\");\r\n\t\t\tvModel.LoanPurposeId = true;\r\n\t\t} else {\r\n\t\t\tvModel.LoanPurposeId = false;\r\n\t\t}\r\n\t\tif (model.ApprovedAmount == null || model.ApprovedAmount == \"\") {\r\n\t\t\tErrorList.push(\"Approved amount must be defined.\");\r\n\t\t\tvModel.ApprovedAmount = true;\r\n\t\t} else {\r\n\t\t\tvModel.ApprovedAmount = false;\r\n\t\t}\r\n\t\t// if ((this.state.ParentTabIndex == 0) && model.ApprovedSecurityAmount != 0 && (model.ApprovedSecurityAmount == null || model.ApprovedSecurityAmount == \"\")) {\r\n\t\t// \tErrorList.push(\"Approved security amount must be defined.\");\r\n\t\t// \tvModel.ApprovedSecurityAmount = true;\r\n\t\t// } else {\r\n\t\t// \tvModel.ApprovedSecurityAmount = false;\r\n\t\t// }\r\n\t\tif (!model.ApprovedPaymentFrequencyId) {\r\n\t\t\tErrorList.push(\"Approved payment frequency must be defined.\");\r\n\t\t\tvModel.ApprovedPaymentFrequencyId = true;\r\n\t\t} else {\r\n\t\t\tvModel.ApprovedPaymentFrequencyId = false;\r\n\t\t}\r\n\t\tif (this.state.ParentTabIndex < 2 && !model.ApprovedPaymentMethodId) {\r\n\t\t\tErrorList.push(\"Approved payment method must be defined.\");\r\n\t\t\tvModel.ApprovedPaymentMethodId = true;\r\n\t\t} else {\r\n\t\t\tvModel.ApprovedPaymentMethodId = false;\r\n\t\t}\r\n\t\tif (model.ApprovedPaymentPeriod == null || model.ApprovedPaymentPeriod == \"\") {\r\n\t\t\tErrorList.push(\"Approved payment period must be defined.\");\r\n\t\t\tvModel.ApprovedPaymentPeriod = true;\r\n\t\t} else {\r\n\t\t\tvModel.ApprovedPaymentPeriod = false;\r\n\t\t}\r\n\t\tif (this.state.ParentTabIndex > 0 && !model.PaymentOptionFeeId) {\r\n\t\t\tErrorList.push(\"Fee payment type must be defined.\");\r\n\t\t\tvModel.PaymentOptionFeeId = true;\r\n\t\t} else {\r\n\t\t\tvModel.PaymentOptionFeeId = false;\r\n\t\t}\r\n\t\tif (this.state.ParentTabIndex == 2 && (model.FirstPaymentDate == null || model.FirstPaymentDate == \"\")) {\r\n\t\t\tErrorList.push(\"First payment date must be defined.\");\r\n\t\t\tvModel.FirstPaymentDate = true;\r\n\t\t} else {\r\n\t\t\tvModel.FirstPaymentDate = false;\r\n\t\t}\r\n\t\tif (this.state.ParentTabIndex == 2 && (model.LoanTransferTypeId == null || model.LoanTransferTypeId == \"\")) {\r\n\t\t\tErrorList.push(\"Loan transfer type must be defined.\");\r\n\t\t\tvModel.LoanTransferTypeId = true;\r\n\t\t} else {\r\n\t\t\tvModel.LoanTransferTypeId = false;\r\n\t\t}\r\n\t\tif ((this.state.ParentTabIndex == 0) && model.SecurityAmount != 0 && (model.SecurityAmount == null || model.SecurityAmount == \"\")) {\r\n\t\t\tErrorList.push(\"Security amount must be defined.\");\r\n\t\t\tvModel.SecurityAmount = true;\r\n\t\t} else {\r\n\t\t\tvModel.SecurityAmount = false;\r\n\t\t}\r\n\t\tif (this.state.ParentTabIndex != 2 && (model.StatementDayId == null || model.StatementDayId == \"\")) {\r\n\t\t\tErrorList.push(\"Statement date must be defined.\");\r\n\t\t\tvModel.StatementDayId = true;\r\n\t\t} else {\r\n\t\t\tvModel.StatementDayId = false;\r\n\t\t}\r\n\t\tif (this.state.ParentTabIndex != 2 && (model.LastPaymentDateAfter == null || model.LastPaymentDateAfter == \"\")) {\r\n\t\t\tErrorList.push(\"Last payment date after must be defined.\");\r\n\t\t\tvModel.LastPaymentDateAfter = true;\r\n\t\t} else {\r\n\t\t\tvModel.LastPaymentDateAfter = false;\r\n\t\t}\r\n\t\tif (this.state.ParentTabIndex == 2 && (model.TotalSetupAmount == null || model.TotalSetupAmount == \"\")) {\r\n\t\t\tErrorList.push(\"Total setup amount must be defined.\");\r\n\t\t\tvModel.TotalSetupAmount = true;\r\n\t\t} else {\r\n\t\t\tvModel.TotalSetupAmount = false;\r\n\t\t}\r\n\t\tif (this.state.ParentTabIndex == 2 && (model.InterestRate == null || model.InterestRate == \"\")) {\r\n\t\t\tErrorList.push(\"Annual interest rate must be defined.\");\r\n\t\t\tvModel.InterestRate = true;\r\n\t\t} else {\r\n\t\t\tvModel.InterestRate = false;\r\n\t\t}\r\n\t\tthis.setState({ vModel });\r\n\t\tif (model.ApprovalStatus != null && model.ApprovalStatus.ParameterValue == LOSApprovalStatus.Approved) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"It's already approved.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (!this.state.Verification.isDocumentVerification) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Document not verified.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (model.IsAgreementSigned != true) {\r\n\t\t\tErrorList.push(\"Agreement must be signed.\");\r\n\t\t}\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please Fill Required Fields\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\tApplicationStatusDialogOpenOrClose(type) {\r\n\t\t// if ( this.state.model.Id != null && this.state.model.Id > 0) {\r\n\t\tswitch (type) {\r\n\t\t\tcase \"Approve\": {\r\n\t\t\t\tif (!this.ValidateClientSubmit())\r\n\t\t\t\t\treturn;\r\n\t\t\t\tthis.setState({ ApprovalStatusId: 1, isMainSubmitDisabled: false });\r\n\t\t\t\tthis.LoanApprovalApprove();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcase \"Reject\": {\r\n\t\t\t\tthis.setState({ isRejectedDialogOpen: !this.state.isRejectedDialogOpen });\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcase \"On Hold\": {\r\n\t\t\t\tthis.setState({ isOnHoldDialogOpen: !this.state.isOnHoldDialogOpen });\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tdefault: break;\r\n\t\t}\r\n\t\t//}\r\n\r\n\t\tthis.handleOperationType(type);\r\n\t}\r\n\r\n\tRenderItemApplication = (d) => {\r\n\t\tthis.renderItemApplication = `${d.ApplicationNumber} - ${d.LoanType.ParameterDesc}`;\r\n\t\treturn this.renderItemApplication;\r\n\t}\r\n\r\n\tSetFile(file, documentModel) {\r\n\t\tthis.setState({\r\n\t\t\tfileModel: {\r\n\t\t\t\tfile,\r\n\t\t\t\tdocumentModel\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tGetApplicationDocumentModels() {\r\n\t\tthis\r\n\t\t\t.loadTaskPool\r\n\t\t\t.AppendTask(Proxy.POST(\"/losapi/v1.0/ApplicationDocument/GetByApplicationId\", {\r\n\t\t\t\tApplicationId: this.state.model.Id\r\n\t\t\t}, responseData => {\r\n\t\t\t\tconsole.log(\"PaymentAdminDocument ->\", responseData.IsSucceeded);\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tparamApplicationDocumentList: responseData.Item || []\r\n\t\t\t\t\t});\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ paramApplicationDocumentList: [] });\r\n\t\t\t\t}\r\n\t\t\t}, error => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}));\r\n\t}\r\n\tCreateCustomer() {\r\n\t\tvar model = this.state.model;\r\n\t\tthis\r\n\t\t\t.loadTaskPool\r\n\t\t\t.AppendTask(Proxy.POST(\"/lmsapi/v1.0/PaymentAdmin/CreateCustomer\", {\r\n\t\t\t\tId: model.ApplicantId\r\n\t\t\t}, responseData => {\r\n\t\t\t\tconsole.log(\"CreateCustomer ->\", responseData.IsSucceeded);\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tmodel.Applicant.WalletAccount = responseData.Item.WalletAccount;\r\n\t\t\t\t\tmodel.Applicant.WalletAccountId = responseData.Item.WalletAccountId;\r\n\t\t\t\t\tmodel.Applicant.Customer = responseData.Item.Customer;\r\n\t\t\t\t\tmodel.Applicant.CustomerId = responseData.Item.CustomerId;\r\n\t\t\t\t\tthis.setState({ model }, () => this.GetUser(model.Applicant));\r\n\t\t\t\t}\r\n\t\t\t}, error => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}));\r\n\t}\r\n\tCreateSecurityAccount() {\r\n\t\tvar model = this.state.model;\r\n\t\tthis\r\n\t\t\t.loadTaskPool\r\n\t\t\t.AppendTask(Proxy.POST(\"/lmsapi/v1.0/PaymentAdmin/CreateSecurityAccount\", {\r\n\t\t\t\tApplicantId: model.ApplicantId,\r\n\t\t\t\tApplicationId: model.Id\r\n\t\t\t}, responseData => {\r\n\t\t\t\tconsole.log(\"CreateSecurityAccount ->\", responseData.IsSucceeded);\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tmodel.Applicant.SecurityAccount = responseData.Item.SecurityAccount;\r\n\t\t\t\t\tmodel.Applicant.SecurityAccountId = responseData.Item.SecurityAccountId;\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tmodel\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t}, error => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}));\r\n\t\tthis.setState({\r\n\t\t\tmodel\r\n\t\t});\r\n\t}\r\n\tCreateWalletAccount() {\r\n\t\tvar model = this.state.model;\r\n\t\tthis\r\n\t\t\t.loadTaskPool\r\n\t\t\t.AppendTask(Proxy.POST(\"/lmsapi/v1.0/PaymentAdmin/CreateWalletAccount\", {\r\n\t\t\t\tApplicantId: model.ApplicantId,\r\n\t\t\t\tApplicationId: model.Id\r\n\t\t\t}, responseData => {\r\n\t\t\t\tconsole.log(\"CreateWalletAccount ->\", responseData.IsSucceeded);\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tmodel.Applicant.WalletAccount = responseData.Item.WalletAccount;\r\n\t\t\t\t\tmodel.Applicant.WalletAccountId = responseData.Item.WalletAccountId;\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tmodel\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t}, error => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}));\r\n\t\tthis.setState({\r\n\t\t\tmodel\r\n\t\t});\r\n\t}\r\n\tCreateCard() {\r\n\t\tvar model = this.state.model;\r\n\t\tif (model.Applicant.WalletAccountId == null) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Wallet account must be defined!\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (model.Applicant.SecurityAccount.Balance < model.ApprovedSecurityAmount) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"The security balance must be greater than the approved security amount for the secure card.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (model.EmbossType == undefined) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Emboss Type must be select\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (model.EmbossType == EmbossType.InstantId && model.InstantEmbossBranchId == undefined) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Card Perso Office must be select\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis\r\n\t\t\t.loadTaskPool\r\n\t\t\t.AppendTask(Proxy.POST(\"/lmsapi/v1.0/PaymentAdmin/CreateCard\", {\r\n\t\t\t\tApplicationId: model.Id,\r\n\t\t\t\tCardEmbossName: model.CardEmbossName,\r\n\t\t\t\tEmbossType: model.EmbossType,\r\n\t\t\t\tInstantEmbossBranchId: model.InstantEmbossBranchId,\r\n\t\t\t\tEmboss4thLine: model.Emboss4thLine\r\n\t\t\t}, responseData => {\r\n\t\t\t\tconsole.log(\"CreateCard ->\", responseData.IsSucceeded);\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tmodel.Applicant.CardNumber = responseData.Item.CardNumber;\r\n\t\t\t\t\tmodel.Applicant.CardFinancialId = responseData.Item.CardFinancialId;\r\n\t\t\t\t\tmodel.Applicant.CardLimit = responseData.Item.CardLimit;\r\n\t\t\t\t\tmodel.Applicant.AvailableLimit = responseData.Item.AvailableLimit;\r\n\t\t\t\t\tmodel.Applicant.CATMCardId = responseData.Item.CATMCardId;\r\n\t\t\t\t\tmodel.Applicant.IsCardActive = responseData.Item.IsCardActive;\r\n\t\t\t\t\tmodel.CardEmbossName = responseData.Item.CardEmbosName;\r\n\t\t\t\t\tmodel.ApplicationCardStatusDesc = responseData.Item.ApplicationCardStatusDesc;\r\n\t\t\t\t\tmodel.InstantEmbossBranchId = responseData.Item.InstantEmbossBranchId;\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tmodel\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t}, error => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}));\r\n\t}\r\n\tActivateCard() {\r\n\t\tvar model = this.state.model;\r\n\t\t// if (model.Applicant.CATMCardId == null || model.Applicant.CardFinancialId == null) {\r\n\t\t// \tthis.ShowMessage(\"warning\", \"Warning\", \"Card must be created.\");\r\n\t\t// \treturn;\r\n\t\t// }\r\n\t\tthis\r\n\t\t\t.loadTaskPool\r\n\t\t\t.AppendTask(Proxy.POST(\"/lmsapi/v1.0/PaymentAdmin/ActivateCard\", model.Id, responseData => {\r\n\t\t\t\tconsole.log(\"ActivateCard ->\", responseData.IsSucceeded);\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Card Activated\");\r\n\t\t\t\tmodel.Applicant.IsCardActive = true;\r\n\t\t\t\tmodel.ApplicationCardStatusDesc = responseData.Item?.ApplicationCardStatusDesc;\r\n\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tmodel\r\n\t\t\t\t});\r\n\r\n\t\t\t}, error => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}));\r\n\t}\r\n\r\n\tDebtInquiryDialogOpen = async () => {\r\n\t\tvar { model } = this.state;\r\n\t\tvar { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/lmsapi/v1.0/PaymentAdmin/DebtInquiryGet\", { ApplicationId: model.Id });\r\n\r\n\t\tif (result != null) {\r\n\t\t\tmodel.DebtInquiry = result[0].DebtInquiry;\r\n\t\t\tmodel.BucketBalance = result[0].BucketBalance;\r\n\t\t\tconsole.log(result);\r\n\t\t\tthis.setState({ model, isDebtInquiryDialogOpen: true });\r\n\t\t}\r\n\t}\r\n\tDebtInquiryDialogClose = () => {\r\n\t\tthis.setState({ isDebtInquiryDialogOpen: false });\r\n\t}\r\n\r\n\tAdjustLimitDialogOpen = async () => {\r\n\t\tvar { model } = this.state;\r\n\t\tvar { vModel } = this.state;\r\n\r\n\t\tmodel.NewCardLimit = null;\r\n\t\tmodel.AdditionalSecurityAmount = 0;\r\n\t\tvModel.NewCardLimit = false;\r\n\t\tvModel.AdditionalSecurityAmount = false;\r\n\r\n\t\tthis.setState({ model, vModel, isAdjustLimitDialogOpen: true });\r\n\t}\r\n\r\n\tAdjustLimitDialogClose = () => {\r\n\t\tthis.setState({ isAdjustLimitDialogOpen: false });\r\n\t}\r\n\r\n\tAdjustLimitConfirm = async () => {\r\n\t\tvar { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\r\n\t\tif (!this.ValidateAdjustLimit()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar request = {\r\n\t\t\tLimitAdjustmentHistoryEntity: {\r\n\t\t\t\tApplicationCardId: model.ApplicationCardId,\r\n\t\t\t\tPreviousCardLimit: model.WalletBalance,\r\n\t\t\t\tNewCardLimit: model.NewCardLimit,\r\n\t\t\t\tPreviousSecurityAmount: model.SecurityBalance,\r\n\t\t\t\tNewSecurityAmount: model.AdditionalSecurityAmount\r\n\t\t\t},\r\n\t\t\tInsertWorkflowRequest: {\r\n\t\t\t\tMenuCode: MenuCodes.Lms_LimitAdjustmentForWorkflow,\r\n\t\t\t\tActionCode: ActionCodes.Submit,\r\n\t\t\t\tJsonData: JSON.stringify(model)\r\n\t\t\t}\r\n\t\t};\r\n\t\tvar result = await ExecuteApiPost(\"/lmsapi/v1.0/LimitAdjustmentHistory/Insert\", request);\r\n\r\n\t\tif (result != null) {\r\n\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Adjust limit successfully sent for approval.\");\r\n\t\t}\r\n\r\n\t\tthis.AdjustLimitDialogClose();\r\n\t}\r\n\r\n\tValidateAdjustLimit = () => {\r\n\t\tvar { model } = this.state;\r\n\t\tlet { vModel } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errors = [];\r\n\r\n\t\tif (!model.NewCardLimit) {\r\n\t\t\terrors.push(\"New card limit cannot be empty.\");\r\n\t\t}\r\n\r\n\t\tif (model.AdditionalSecurityAmount != 0 && !model.AdditionalSecurityAmount) {\r\n\t\t\terrors.push(\"Additional security amount cannot be empty.\");\r\n\t\t}\r\n\r\n\t\tif(model.NewCardLimit > model.CurrentCardLimit){\r\n\t\t\tif(model.NewCardLimit > (model.SecurityBalance + model.MovedSecurityAmount) + model.AdditionalSecurityAmount ){\r\n\t\t\t\tconst addBalance = \tmodel.NewCardLimit - ((model.SecurityBalance + model.MovedSecurityAmount) + model.AdditionalSecurityAmount);\r\n\t\t\t\terrors.push(\"You should add \" + addBalance + \"$ to your additional security amount.\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tvModel.NewCardLimit = !model.NewCardLimit;\r\n\t\tvModel.AdditionalSecurityAmount = model.AdditionalSecurityAmount != 0 && !model.AdditionalSecurityAmount;\r\n\r\n\t\tthis.setState(vModel);\r\n\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tHandleChangeFilterPanel(name, expanded) {\r\n\t\tvar currentPanelActivation = Object.assign({}, initialState.panelActivationStatus);\r\n\t\tcurrentPanelActivation.panelFilterActive = true;\r\n\t\tcurrentPanelActivation[name] = expanded ? true : false;\r\n\r\n\t\tthis.setState({\r\n\t\t\tpanelActivationStatus: currentPanelActivation\r\n\t\t});\r\n\t}\r\n\r\n\tGetRenderItemClient = (x) => {\r\n\t\tvar render = `${x.Name} - ${x.UniqueClientId}`;\r\n\r\n\t\treturn render;\r\n\t}\r\n\r\n\tUpdateLoanDetails = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar request = {\r\n\t\t\tApplicationId: model.Id,\r\n\t\t\tLoanFeeDefinitionId: model.LoanFeeDefinitionId\r\n\t\t};\r\n\r\n\t\tExecuteApiPost(\"/lmsapi/v1.0/PaymentAdmin/UpdateLoanDetails\", request, null, null, null, null, true);\r\n\t}\r\n\r\n\tUpdateLocDetails = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar request = {\r\n\t\t\tApplicationId: model.Id,\r\n\t\t\tLoanFeeDefinitionId: model.LoanFeeDefinitionId\r\n\t\t};\r\n\r\n\t\tExecuteApiPost(\"/lmsapi/v1.0/PaymentAdmin/UpdateLocDetails\", request, null, null, null, null, true);\r\n\t}\r\n\r\n\tUpdateSecureCardDetails = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar request = {\r\n\t\t\tApplicationId: model.Id,\r\n\t\t\tLoanFeeDefinitionId: model.LoanFeeDefinitionId\r\n\t\t};\r\n\r\n\t\tExecuteApiPost(\"/lmsapi/v1.0/PaymentAdmin/UpdateSecureCardDetails\", request, null, null, null, null, true);\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes, MenuCode, Disabled } = this.props;\r\n\t\tconst { model, vModel, alert, isLoading, isLedgerCardDialogOpen, isLoanCalculatorDialogOpen, isRejectedDialogOpen, isOnHoldDialogOpen, isApplicantDialogOpen,\r\n\t\t\tisApproved, StatementList, LedgerCardList, CurrentTermTransactionList, isDebtInquiryDialogO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\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t{\r\n\t\t\t\t\tthis.state.isUserAdmin && \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t{\r\n\t\t\t\t\t(!(model.Applicant.CATMCardId == null && model.Applicant.CardFinancialId == null && model.Applicant.CardNumber) && this.state.isUserAdmin) && model.LoanType?.ParameterValue != LOSLoanType.Loan && \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t { }}\r\n\t\t\t\t\t\t\t\t\t\tDisabled={ForInsert}\r\n\t\t\t\t\t\t\t\t\t\thistory={this.props.history}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t{\r\n\t\t\t\t\tthis.state.isUserAdmin && model.LoanType\r\n\t\t\t\t\t&& model.LoanType.ParameterValue != LOSLoanType.Loan\r\n\t\t\t\t\t&& \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t{\r\n\t\t\t\t\tthis.state.isUserAdmin && model.LoanType\r\n\t\t\t\t\t&& model.LoanType.ParameterValue != LOSLoanType.Loan\r\n\t\t\t\t\t&& \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t{\r\n\t\t\t\t\tthis.state.isUserAdmin && model.LoanType\r\n\t\t\t\t\t&& model.LoanType.ParameterValue == LOSLoanType.Loan\r\n\t\t\t\t\t&& \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t{\r\n\t\t\t\t\t(this.state.isUserAdmin || this.state.isLoanApprovalScreen) && \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nLoanApproval.propTypes = {\r\n\ttabList: PropTypes.array,\r\n\tclasses: PropTypes.object.isRequired,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(LoanApproval, {});","import GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport { DownloadIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport { GenericAlert, GenericGrid } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nclass LoanApprovalDocuments extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tisLoading: false,\r\n\t\t\tmodel: {}\r\n\t\t};\r\n\t\tthis.emptyObject = {};\r\n\t\tthis.ColumnsData = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Action\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t this.DownloadModel(row.original)} />\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\twidth: 100\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Document Name\",\r\n\t\t\t\taccessor: \"DocumentType.ParameterDesc\"\r\n\t\t\t},\r\n\t\t];\r\n\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\r\n\t}\r\n\tDownloadModel = (index) => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst { showMessage } = this.props;\r\n\t\tProxy.FileDownloadWithGenericResponse(\r\n\t\t\t\"/coreapi/v1.0/File/DownloadFileFromBinary\",\r\n\t\t\tindex.File.FileName,\r\n\t\t\tindex.File.FileExtension.ParameterDesc,\r\n\t\t\t{\r\n\t\t\t\t\"FileId\": index.FileId\r\n\t\t\t},\r\n\t\t\t() => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\t// type:-success->warning->info->error\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t{this.state.alert}\r\n\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n\r\n}\r\n\r\nLoanApprovalDocuments.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tmodel: PropTypes.object,\r\n\ttempModel: PropTypes.object,\r\n\taddressModel: PropTypes.object,\r\n\tHandleChange: PropTypes.func,\r\n\tClientPartnerSaved: PropTypes.func,\r\n\tLoanApprovalDocumentsList: PropTypes.array,\r\n\tTitle: PropTypes.string,\r\n\tDisabled: PropTypes.bool,\r\n};\r\n\r\nexport default withArtifex(LoanApprovalDocuments, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ReactTable from \"react-table\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\n\r\n\r\nconst initialState = {\r\n\tmodel: {\r\n\t\tFileTypeId: null,\r\n\t\tDescription: null,\r\n\t\tVersionNumber: null,\r\n\t},\r\n\tisBrowse: false,\r\n\tagreementList: [],\r\n\tisLoading: false,\r\n\tReadOnly: false\r\n};\r\nclass PartnerCommissionSummaryReport extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.SetFile = this.SetFile.bind(this);\r\n\t\tthis.UploadClick = this.UploadClick.bind(this);\r\n\t\tthis.FileSelect = this.FileSelect.bind(this);\r\n\t\tthis.fileInputRef = React.createRef();\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.FileTypeParameterCode = { ParameterCode: \"LOSFileType\" };\r\n\t\tthis.state = initialState;\r\n\t\tthis.maxLength20 = { maxLength: 20 };\r\n\t\tthis.marginLeft2 = { marginLeft: 2 };\r\n\t\tthis.ColumnsData = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date\",\r\n\t\t\t\taccessor: \"Date\",\r\n\t\t\t\t// Cell: row => (\r\n\t\t\t\t// \t
\r\n\t\t\t\t// \t\t\r\n\t\t\t\t// \t\t\r\n\r\n\t\t\t\t// \t\t\r\n\t\t\t\t// \t
\r\n\t\t\t\t// ),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Loan Type\",\r\n\t\t\t\taccessor: \"Loan Type\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Borrower Name\",\r\n\t\t\t\taccessor: \"Borrower Name\",\r\n\t\t\t\t// Cell: row => {\r\n\t\t\t\t// \treturn
{typeof row.value === \"number\" ? row.value : typeof row.value === \"boolean\" ? row.value === true ? \"Yes\" : \"No\" : moment(row.value, moment.ISO_8601, true).isValid() ? Formatter.FormatDateTime(row.value) : row.value}
;\r\n\t\t\t\t// },\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Loan Amount\",\r\n\t\t\t\taccessor: \"Total Loan Amount\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Period\",\r\n\t\t\t\taccessor: \"Period\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Fees\",\r\n\t\t\t\taccessor: \"Fees\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Partner Commission\",\r\n\t\t\t\taccessor: \"Partner Commission\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Loan Status\",\r\n\t\t\t\taccessor: \"Loan Status\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t}\r\n\r\n\t\t];\r\n\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Partner Commission Summary Report\");\r\n\t\tthis.props.setAppCenterTitle(\"LOAN ORIGINATOR SYSTEM\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\r\n\t}\r\n\r\n\tUploadClick() {\r\n\t\tthis.fileInputRef.current.click();\r\n\t}\r\n\tshowQuestionMessage = (message, model) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} OnConfirm={() => this.DeleteModel(model)} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\r\n\tFileSelect(e) {\r\n\t\te.preventDefault();\r\n\t\tvar file = e.target.files[0];\r\n\t\tfile.FileName = file.name;\r\n\t\tif (!file) return;\r\n\t\tthis.setState({ fileModel: file, isBrowse: true });\r\n\t}\r\n\r\n\tSetFile(file, documentModel) {\r\n\t\tthis.setState({\r\n\t\t\tfileModel: { file, documentModel }\r\n\t\t});\r\n\t}\r\n\r\n\tHandleClickClearOk = () => {\r\n\t\tthis.HideAlert();\r\n\t\tthis.setState({ model: {} });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.ShowConfirmMessage(\"warning\", \"Warning\", \"This will erase the information you entered on the screen. Are you sure you want to quit this agreement template ?\", () => this.HandleClickClearOk());\r\n\t}\r\n\r\n\tErrorCallback = (error) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"Error\", \"An error occurred during the api visit\" + error);\r\n\t}\r\n\tShowMessageAndRefresh = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlertAndRefresh()} />\r\n\t\t});\r\n\t}\r\n\thideAlertAndRefresh = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t\twindow.location.reload();\r\n\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: null })} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\r\n\tHideAlert = () => {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\tRefreshToolBar = () => {\r\n\t\tthis.setState({ LimitToken: !this.state.LimitToken });\r\n\t}\r\n\r\n\r\n\tDownloadModel = (index) => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst { showMessage } = this.props;\r\n\t\tProxy.FileDownloadWithGenericResponse(\r\n\t\t\t\"/coreapi/v1.0/File/DownloadFileFromBinary\",\r\n\t\t\tindex.File.FileName,\r\n\t\t\tindex.File.FileExtension.ParameterDesc,\r\n\t\t\t{\r\n\t\t\t\t\"FileId\": index.FileId\r\n\t\t\t},\r\n\t\t\t() => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tDeleteModel = (model) => {\r\n\t\tif (model == null || model.Id == null || model.Id == 0) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Template must be selected for delete operation.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/losapi/v1.0/AgreementTemplate/Delete\",\r\n\t\t\t{ Id: model.Id },\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.ShowMessageAndRefresh(\"success\", \"Success\", \"Template Deleted\");\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/losapi/v1.0/AgreementTemplate/Search\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.setState({ agreementList: responseData.Item || [], isLoading: false });\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ agreementList: [], isLoading: false });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tSubmit = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/losapi/v1.0/AgreementTemplate/InsertUpdate\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.setState({ model: responseData.Item });\r\n\t\t\t\t\tif (this.state.isBrowse == true) {\r\n\r\n\t\t\t\t\t\tthis.setState({ isBrowse: false });\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tthis.ShowMessageAndRefresh(\"success\", \"Success\", \"Operation Successfully Completed\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\r\n\r\n\trender() {\r\n\r\n\r\n\t\tconst { ForInsert, Disabled } = this.props;\r\n\r\n\t\tconst { model, alert, isLoading, ReadOnly } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t{alert}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{/* \t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t */}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t

Partner Commissions

\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t 0}\r\n\t\t\t\t\t\t\t\t\t\tminRows={2}\r\n\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\nPartnerCommissionSummaryReport.propTypes = {\r\n\ttabList: PropTypes.array,\r\n\tclasses: PropTypes.object.isRequired,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tApplicantSaved: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(PartnerCommissionSummaryReport, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericCheckInput, GenericExpansionPanel, GenericLabel, GenericNumberInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport TabsComponent from \"views/Components/TabsComponentPagination\";\r\nimport InternalScorecardLoan from \"views/LOS/Scorecard/InternalScorecardLoan\";\r\nimport InternalScorecardTab from \"views/LOS/Scorecard/InternalScorecardTab.jsx\";\r\nimport InternalScorecardVerification from \"views/LOS/Scorecard/InternalScorecardVerification\";\r\n\r\n\r\nconst initialState = {\r\n\tmodel: {\r\n\t\tscorecardProfileList: [],\r\n\t\tpersonalTabQuestionList: [],\r\n\t\tincomeTabQuestionList: [],\r\n\t\tnetworthTabQuestionList: [],\r\n\t\tloanTabQuestionList: [],\r\n\t\totherTabQuestionList: [],\r\n\t\tanswerValueList: [],\r\n\t\totherScorecardAnswerValueList: [],\r\n\t\tQuestionAnswerKeyValueList: [],\r\n\t\tOtherScorecardKeyValueList: [],\r\n\t\tScorecardProfileDocumentList: [],\r\n\t\tScorecardVendorList: [],\r\n\t\tScorecardVendorLevelList: [],\r\n\t\tLoanOtherCrediscorerows: []\r\n\t},\r\n\tvModel: {},\r\n\tisLoading: false,\r\n\tReadOnly: false\r\n\r\n};\r\nclass InternalScorecard extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = initialState;\r\n\t\tthis.LoanTypeParameterCode = { ParameterCode: \"LOSLoanType\" };\r\n\t\tthis.LoanPurposeParameterCode = { ParameterCode: \"LOSLoanPurpose\" };\r\n\r\n\t\tthis.handleSubmit = this.handleSubmit.bind(this);\r\n\t\tthis.getLoanScorecardProfileDetail = this.getLoanScorecardProfileDetail.bind(this);\r\n\t\tthis.HandleClickClearOk = this.HandleClickClearOk.bind(this);\r\n\t\tthis.HandleClear = this.HandleClear.bind(this);\r\n\t\tthis.ShowConfirmMessage = this.ShowConfirmMessage.bind(this);\r\n\t\tthis.ShowMessageAndRefresh = this.ShowMessageAndRefresh.bind(this);\r\n\t\tthis.hideAlertAndRefresh = this.hideAlertAndRefresh.bind(this);\r\n\t\tthis.getLoanScorecardDocumentModels = this.getLoanScorecardDocumentModels.bind(this);\r\n\t\tthis.handleDocumentAdd = this.handleDocumentAdd.bind(this);\r\n\t\tthis.getCreditScoreVendorLevelList = this.getCreditScoreVendorLevelList.bind(this);\r\n\t\tthis.getCreditScoreVendorList = this.getCreditScoreVendorList.bind(this);\r\n\t\tthis.MakeGridArray = this.MakeGridArray.bind(this);\r\n\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Scoring Parameters\");\r\n\t\tthis.props.setAppCenterTitle(\"LOAN ORIGINATOR SYSTEM\");\r\n\r\n\t}\r\n\r\n\tShowMessageAndRefresh = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlertAndRefresh()} />\r\n\t\t});\r\n\t}\r\n\thideAlertAndRefresh = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t\twindow.location.reload();\r\n\r\n\t}\r\n\tHandleClear = () => {\r\n\t\tthis.ShowConfirmMessage(\"warning\", \"Warning\", \"This will erase the information you entered on the screen. Are you sure you want to quit this definition?\", () => this.HandleClickClearOk());\r\n\t}\r\n\tHandleClickClearOk = (error) => {\r\n\t\tthis.setState({ model: initialState, alert: \"\" });\r\n\t}\r\n\tErrorCallback = (error) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"Error\", \"An error occurred during the api visit\" + error);\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\", loading: false })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: null })} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\r\n\tHideAlert = () => {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\tRefreshToolBar = () => {\r\n\t\tthis.setState({ LimitToken: !this.state.LimitToken });\r\n\t}\r\n\thandleSubmit() {\r\n\r\n\t\tvar ErrorList = [];\r\n\t\tconst data = this.state.model;\r\n\r\n\t\tconst { vModel } = this.state;\r\n\t\tif (data == null) {\r\n\t\t\tErrorList.push(\"Scorecard not defined.\");\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please Fill Required Fields\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (data.LoanTypeId == null || data.LoanTypeId == \"\") {\r\n\t\t\tErrorList.push(\"Loan type must be defined.\");\r\n\t\t\tvModel.LoanTypeId = true;\r\n\t\t} else {\r\n\t\t\tvModel.LoanTypeId = false;\r\n\t\t}\r\n\t\tif (data.Name == null || data.Name == \"\") {\r\n\t\t\tErrorList.push(\"Name must be defined.\");\r\n\t\t\tvModel.Name = true;\r\n\t\t} else {\r\n\t\t\tvModel.Name = false;\r\n\t\t}\r\n\t\tif (data.LoanPurposeId == null || data.LoanPurposeId == \"\") {\r\n\t\t\tErrorList.push(\"Loan purpose must be defined.\");\r\n\t\t\tvModel.LoanPurposeId = true;\r\n\t\t} else {\r\n\t\t\tvModel.LoanPurposeId = false;\r\n\t\t}\r\n\t\tif (data.ScorecardProfileTemplateId == null || data.ScorecardProfileTemplateId == \"\") {\r\n\t\t\tErrorList.push(\"Scorecard template must be defined.\");\r\n\t\t\tvModel.ScorecardProfileTemplateId = true;\r\n\t\t} else {\r\n\t\t\tvModel.ScorecardProfileTemplateId = false;\r\n\t\t}\r\n\t\tif (data.PersonalTabMaxPoint != 0 && (data.PersonalTabMaxPoint == null || data.PersonalTabMaxPoint == \"\")) {\r\n\t\t\tErrorList.push(\"Personal tab maximum point must be defined.\");\r\n\t\t\tvModel.PersonalTabMaxPoint = true;\r\n\t\t} else {\r\n\t\t\tvModel.PersonalTabMaxPoint = false;\r\n\t\t}\r\n\t\tif (data.IncomeTabMaxPoint != 0 && (data.IncomeTabMaxPoint == null || data.IncomeTabMaxPoint == \"\")) {\r\n\t\t\tErrorList.push(\"Income tab maximum point must be defined.\");\r\n\t\t\tvModel.IncomeTabMaxPoint = true;\r\n\t\t} else {\r\n\t\t\tvModel.IncomeTabMaxPoint = false;\r\n\t\t}\r\n\t\tif (data.NetworthTabMaxPoint != 0 && (data.NetworthTabMaxPoint == null || data.NetworthTabMaxPoint == \"\")) {\r\n\t\t\tErrorList.push(\"Net worth tab maximum point must be defined.\");\r\n\t\t\tvModel.NetworthTabMaxPoint = true;\r\n\t\t} else {\r\n\t\t\tvModel.NetworthTabMaxPoint = false;\r\n\t\t}\r\n\t\tif (data.OtherTabMaxPoint != 0 && (data.OtherTabMaxPoint == null || data.OtherTabMaxPoint == \"\")) {\r\n\t\t\tErrorList.push(\"Other tab maximum point must be defined.\");\r\n\t\t\tvModel.OtherTabMaxPoint = true;\r\n\t\t} else {\r\n\t\t\tvModel.OtherTabMaxPoint = false;\r\n\t\t}\r\n\t\tif (data.LoanTabMaxPoint != 0 && (data.LoanTabMaxPoint == null || data.LoanTabMaxPoint == \"\")) {\r\n\t\t\tErrorList.push(\"Loan tab maximum point must be defined.\");\r\n\t\t\tvModel.LoanTabMaxPoint = true;\r\n\t\t} else {\r\n\t\t\tvModel.LoanTabMaxPoint = false;\r\n\t\t}\r\n\r\n\t\tif (!vModel.PersonalTabMaxPoint) {\r\n\t\t\tvar personalScore = this.getTotalScoreFromTab(this.state.model.personalTabQuestionList);\r\n\t\t\tif (this.state.model.PersonalTabMaxPoint < personalScore) {\r\n\t\t\t\tErrorList.push(\"Total score is bigger from section maximum point at personal tab, total score: \" + personalScore);\r\n\t\t\t\tvModel.PersonalTabMaxPoint = true;\r\n\t\t\t} else {\r\n\t\t\t\tvModel.PersonalTabMaxPoint = false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (!vModel.IncomeTabMaxPoint) {\r\n\t\t\tvar incomeScore = this.getTotalScoreFromTab(this.state.model.incomeTabQuestionList);\r\n\t\t\tif (this.state.model.IncomeTabMaxPoint < incomeScore) {\r\n\t\t\t\tErrorList.push(\"Total score is bigger from section maximum point at income tab, total score: \" + incomeScore);\r\n\t\t\t\tvModel.IncomeTabMaxPoint = true;\r\n\t\t\t} else {\r\n\t\t\t\tvModel.IncomeTabMaxPoint = false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (!vModel.NetworthTabMaxPoint) {\r\n\t\t\tvar networthScore = this.getTotalScoreFromTab(this.state.model.networthTabQuestionList);\r\n\t\t\tif (this.state.model.NetworthTabMaxPoint < networthScore) {\r\n\t\t\t\tErrorList.push(\"Total score is bigger from section maximum point at networth tab, total score: \" + networthScore);\r\n\t\t\t\tvModel.NetworthTabMaxPoint = true;\r\n\t\t\t} else {\r\n\t\t\t\tvModel.NetworthTabMaxPoint = false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (!vModel.OtherTabMaxPoint) {\r\n\t\t\tvar otherScore = this.getTotalScoreFromTab(this.state.model.otherTabQuestionList);\r\n\t\t\tconsole.log(otherScore);\r\n\t\t\tif (this.state.model.OtherTabMaxPoint < otherScore) {\r\n\t\t\t\tErrorList.push(\"Total score is bigger from section maximum point at other tab, total score: \" + otherScore);\r\n\t\t\t\tvModel.OtherTabMaxPoint = true;\r\n\t\t\t} else {\r\n\t\t\t\tvModel.OtherTabMaxPoint = false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (!vModel.LoanTabMaxPoint) {\r\n\t\t\tvar loanScore = this.getTotalScoreFromTab(this.state.model.loanTabQuestionList);\r\n\t\t\tvar otherVendorMaxScore = this.getTotalScoreFromOtherVendor();\r\n\t\t\tif (this.state.model.LoanTabMaxPoint < loanScore + otherVendorMaxScore) {\r\n\t\t\t\tErrorList.push(\"Total score is bigger from section maximum point at loan tab, total score: \" + (loanScore + otherVendorMaxScore));\r\n\t\t\t\tvModel.LoanTabMaxPoint = true;\r\n\t\t\t} else {\r\n\t\t\t\tvModel.LoanTabMaxPoint = false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.setState({ vModel });\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please Fill Required Fields\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tconst model = this.state.model;\r\n\t\tvar id = model.Id;\r\n\t\tProxy.POST(\r\n\t\t\t\"/losapi/v1.0/LoanScorecardProfile/InsertUpdate\",\r\n\t\t\tmodel,\r\n\t\t\tresponseData => {\r\n\t\t\t\tconsole.log(\"InsertUpdateLoanScorecardProfile ->\", responseData.IsSucceeded);\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tmodel.Id = responseData.Item.Id;\r\n\t\t\t\t\tthis.setState({ model });\r\n\r\n\t\t\t\t\tif (id > 0) {\r\n\t\t\t\t\t\tthis.ShowMessageAndRefresh(\"success\", \"Success\", \"The Item Updated\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tthis.ShowMessageAndRefresh(\"success\", \"Success\", \"The Item Created\");\r\n\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tconst modelUpdate = this.state.model;\r\n\t\t\t\t\tmodelUpdate.scorecardProfileList = [];\r\n\t\t\t\t\tthis.setState({ model: modelUpdate, isLoading: false });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tgetTotalScoreFromTab(questionList) {\r\n\t\tconst answerKeyValueList = this.state.model.answerValueList;\r\n\t\tvar totalScore = 0;\r\n\t\tif (answerKeyValueList == undefined)\r\n\t\t\treturn 0;\r\n\t\tfor (var i = 0; i < questionList.length; ++i) {\r\n\t\t\tvar questionItem = questionList[i];\r\n\t\t\tvar maxPoint = -200;\r\n\t\t\tfor (var j = 0; j < questionItem.AnswerList.length; ++j) {\r\n\t\t\t\tvar answerItem = questionItem.AnswerList[j];\r\n\t\t\t\tvar value = isNaN(Number(answerKeyValueList[questionItem.QuestionId + \"-\" + answerItem.Id])) == false ? Number(answerKeyValueList[questionItem.QuestionId + \"-\" + answerItem.Id]) : 0;\r\n\t\t\t\tif (value > maxPoint)\r\n\t\t\t\t\tmaxPoint = value;\r\n\t\t\t}\r\n\t\t\ttotalScore = totalScore + maxPoint;\r\n\t\t}\r\n\t\treturn totalScore;\r\n\r\n\t}\r\n\tgetTotalScoreFromOtherVendor() {\r\n\t\tconst answerKeyValueList = this.state.model.otherScorecardAnswerValueList;\r\n\t\tconst questionList = this.state.model.LoanOtherCrediscorerows;\r\n\t\tif (answerKeyValueList == undefined || questionList == undefined)\r\n\t\t\treturn 0;\r\n\t\tvar max1 = 0, max2 = 0, max3 = 0;\r\n\t\tfor (var i = 0; i < questionList.length; ++i) {\r\n\t\t\tvar questionItem = questionList[i];\r\n\t\t\tfor (var j = 0; j < questionItem.length; ++j) {\r\n\t\t\t\tvar answerItem = questionItem[j];\r\n\t\t\t\tvar value = isNaN(Number(answerKeyValueList[answerItem.Id])) == false ? Number(answerKeyValueList[answerItem.Id]) : 0;\r\n\t\t\t\tif (value > max1) {\r\n\t\t\t\t\tmax3 = max2;\r\n\t\t\t\t\tmax2 = max1;\r\n\t\t\t\t\tmax1 = value;\r\n\t\t\t\t}\r\n\t\t\t\telse if (value > max2) {\r\n\t\t\t\t\tmax3 = max2;\r\n\t\t\t\t\tmax2 = value;\r\n\t\t\t\t}\r\n\t\t\t\telse if (value > max3)\r\n\t\t\t\t\tmax3 = value;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn max1 + max2 + max3;\r\n\r\n\t}\r\n\thandleGenerateNew() {\r\n\t\tvar initialModel = initialState;\r\n\t\tinitialModel[\"isGenerateNew\"] = true;\r\n\t\tthis.setState({ model: initialModel, alert: null });\r\n\t\treturn;\r\n\r\n\t}\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tif (name == \"isGenerateNew\" && newValue == true) {\r\n\t\t\tthis.ShowConfirmMessage(\"warning\", \"Warning\", \"This will erase the information you entered on the screen. Are you sure you want to quit this profile?\", () => this.handleGenerateNew());\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (name == \"ScorecardProfileTemplateId\") {\r\n\t\t\tthis.getScorecardProfileDetail(newValue);\r\n\t\t}\r\n\t\tif (name == \"LoanScoreCardProfileId\") {\r\n\t\t\tthis.getLoanScorecardProfileDetail(newValue);\r\n\t\t}\r\n\r\n\t\tthis.setState({ model });\r\n\t}\r\n\thandleChangeParentTab = (event, active, tab) => {\r\n\t\tif (!tab) {\r\n\t\t\tthis.setState({ ParentTabIndex: active });\r\n\t\t}\r\n\r\n\t}\r\n\r\n\thandleAnswerChange = (name, newValue) => {\r\n\t\tvar valueList = this.state.model.answerValueList || [];\r\n\t\tvar model = this.state.model;\r\n\t\tvalueList[name] = newValue;\r\n\t\tif (model.QuestionAnswerKeyValueList == null)\r\n\t\t\tmodel.QuestionAnswerKeyValueList = [];\r\n\r\n\t\tvar newKeyValueList = model.QuestionAnswerKeyValueList.filter(function (item) {\r\n\t\t\treturn item.Key !== name;\r\n\t\t});\r\n\t\tnewKeyValueList.push({ Key: name, Value: newValue });\r\n\t\tmodel.QuestionAnswerKeyValueList = newKeyValueList;\r\n\r\n\t\tmodel.answerValueList = valueList;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\thandleOtherScorecardAnswerChange = (name, newValue) => {\r\n\t\tvar valueList = this.state.model.otherScorecardAnswerValueList || [];\r\n\t\tvar model = this.state.model;\r\n\t\tvalueList[name] = newValue;\r\n\t\tif (model.OtherScorecardKeyValueList == null)\r\n\t\t\tmodel.OtherScorecardKeyValueList = [];\r\n\r\n\t\tvar newKeyValueList = model.OtherScorecardKeyValueList.filter(function (item) {\r\n\t\t\treturn item.Key !== name;\r\n\t\t});\r\n\t\tnewKeyValueList.push({ Key: name, Value: newValue });\r\n\t\tmodel.OtherScorecardKeyValueList = newKeyValueList;\r\n\r\n\t\tmodel.otherScorecardAnswerValueList = valueList;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\tgetLoanScorecardProfileDetail(loanscorecardid) {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/losapi/v1.0/LoanScorecardProfile/GetById\",\r\n\t\t\t{ Id: loanscorecardid },\r\n\t\t\tresponseData => {\r\n\t\t\t\tconsole.log(\"getLoanScorecardProfileDetail ->\", responseData.IsSucceeded);\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tconst personalTabList = responseData.Item.QuestionAnswerList.filter(word => word.ScorecardTab.ParameterValue == \"personal\");\r\n\t\t\t\t\tconst incomeTabList = responseData.Item.QuestionAnswerList.filter(word => word.ScorecardTab.ParameterValue == \"income\");\r\n\t\t\t\t\tconst networthTabList = responseData.Item.QuestionAnswerList.filter(word => word.ScorecardTab.ParameterValue == \"networth\");\r\n\t\t\t\t\tconst loanTabList = responseData.Item.QuestionAnswerList.filter(word => word.ScorecardTab.ParameterValue == \"loan\");\r\n\t\t\t\t\tconst otherTabList = responseData.Item.QuestionAnswerList.filter(word => word.ScorecardTab.ParameterValue == \"other\");\r\n\t\t\t\t\tvar answerValueList = [];\r\n\t\t\t\t\tvar otherScorecardAnswerValueList = [];\r\n\t\t\t\t\tresponseData.Item.QuestionAnswerKeyValueList.forEach(function (element) {\r\n\t\t\t\t\t\tanswerValueList[element.Key] = element.Value;\r\n\t\t\t\t\t});\r\n\t\t\t\t\tresponseData.Item.OtherScorecardKeyValueList.forEach(function (element) {\r\n\t\t\t\t\t\totherScorecardAnswerValueList[element.Key] = element.Value;\r\n\t\t\t\t\t});\r\n\t\t\t\t\tvar model = responseData.Item;\r\n\t\t\t\t\tmodel.answerValueList = answerValueList;\r\n\t\t\t\t\tmodel.otherScorecardAnswerValueList = otherScorecardAnswerValueList;\r\n\t\t\t\t\tmodel.scorecardProfileList = responseData.Item.QuestionAnswerList || [];\r\n\t\t\t\t\tmodel.personalTabQuestionList = personalTabList || [];\r\n\t\t\t\t\tmodel.incomeTabQuestionList = incomeTabList || [];\r\n\t\t\t\t\tmodel.networthTabQuestionList = networthTabList || [];\r\n\t\t\t\t\tmodel.loanTabQuestionList = loanTabList || [];\r\n\t\t\t\t\tmodel.otherTabQuestionList = otherTabList || [];\r\n\t\t\t\t\tthis.getCreditScoreVendorList();\r\n\t\t\t\t\tthis.setState({ model });\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tvar modelUpdate = this.state.model;\r\n\t\t\t\t\tmodelUpdate.scorecardProfileList = [];\r\n\t\t\t\t\tmodelUpdate.personalTabQuestionList = [];\r\n\t\t\t\t\tmodelUpdate.incomeTabQuestionList = [];\r\n\t\t\t\t\tmodelUpdate.networthTabQuestionList = [];\r\n\t\t\t\t\tmodelUpdate.loanTabQuestionList = [];\r\n\t\t\t\t\tmodelUpdate.otherTabQuestionList = [];\r\n\r\n\t\t\t\t\tthis.setState({ model: modelUpdate });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tgetScorecardProfileDetail(profileId) {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst model = this.state.model;\r\n\t\tProxy.POST(\r\n\t\t\t\"/losapi/v1.0/ScorecardProfile/GetById\",\r\n\t\t\t{ ProfileId: profileId },\r\n\t\t\tresponseData => {\r\n\t\t\t\tconsole.log(\"getScorecardProfileDetail ->\", responseData.IsSucceeded);\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tconst personalTabList = responseData.Item.filter(word => word.ScorecardTab.ParameterValue == \"personal\");\r\n\t\t\t\t\tconst incomeTabList = responseData.Item.filter(word => word.ScorecardTab.ParameterValue == \"income\");\r\n\t\t\t\t\tconst networthTabList = responseData.Item.filter(word => word.ScorecardTab.ParameterValue == \"networth\");\r\n\t\t\t\t\tconst loanTabList = responseData.Item.filter(word => word.ScorecardTab.ParameterValue == \"loan\");\r\n\t\t\t\t\tconst otherTabList = responseData.Item.filter(word => word.ScorecardTab.ParameterValue == \"other\");\r\n\r\n\t\t\t\t\tmodel.scorecardProfileList = responseData.Item || [];\r\n\t\t\t\t\tmodel.personalTabQuestionList = personalTabList || [];\r\n\t\t\t\t\tmodel.incomeTabQuestionList = incomeTabList || [];\r\n\t\t\t\t\tmodel.networthTabQuestionList = networthTabList || [];\r\n\t\t\t\t\tmodel.loanTabQuestionList = loanTabList || [];\r\n\t\t\t\t\tmodel.otherTabQuestionList = otherTabList || [];\r\n\t\t\t\t\tmodel.ScorecardProfileTemplateId = profileId;\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tmodel\r\n\t\t\t\t\t});\r\n\t\t\t\t\tthis.getCreditScoreVendorList();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmodel.scorecardProfileList = [];\r\n\t\t\t\t\tmodel.personalTabQuestionList = [];\r\n\t\t\t\t\tmodel.incomeTabQuestionList = [];\r\n\t\t\t\t\tmodel.networthTabQuestionList = [];\r\n\t\t\t\t\tmodel.loanTabQuestionList = [];\r\n\t\t\t\t\tmodel.otherTabQuestionList = [];\r\n\r\n\t\t\t\t\tthis.setState({ model });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tgetCreditScoreVendorLevelList(ScorecardVendorList) {\r\n\t\tconst model = this.state.model;\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Parameter/Search\",\r\n\t\t\t{ ParameterCode: \"LOSScoreLevel\" },\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tmodel.ScorecardVendorLevelList = responseData.Item || [];\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tmodel\r\n\t\t\t\t\t});\r\n\t\t\t\t\tthis.MakeGridArray(ScorecardVendorList, model.ScorecardVendorLevelList);\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmodel.ScorecardVendorLevelList = [];\r\n\t\t\t\t\tthis.setState({ model });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tgetCreditScoreVendorList() {\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tconst model = this.state.model;\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Parameter/Search\",\r\n\t\t\t{ ParameterCode: \"LOSScoreVendor\" },\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tmodel.ScorecardVendorList = responseData.Item || [];\r\n\t\t\t\t\tthis.getCreditScoreVendorLevelList(model.ScorecardVendorList);\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tmodel\r\n\t\t\t\t\t});\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmodel.ScorecardVendorList = [];\r\n\t\t\t\t\tthis.setState({ model });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tgetLoanScorecardDocumentModels() {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst model = this.state.model;\r\n\t\tProxy.POST(\r\n\t\t\t\"/losapi/v1.0/LoanScorecardProfileDocument/GetById\",\r\n\t\t\t{ LoanScorecardProfileId: model.Id },\r\n\t\t\tresponseData => {\r\n\t\t\t\tconsole.log(\"getLoanScorecardDocumentModels ->\", responseData.IsSucceeded);\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tmodel.ScorecardProfileDocumentList = responseData.Item || [];\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tmodel\r\n\t\t\t\t\t});\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmodel.ScorecardProfileDocumentList = [];\r\n\t\t\t\t\tthis.setState({ model });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tMakeGridArray(ScorecardVendorList, ScorecardVendorLevelList) {\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tvar columns = [];\r\n\t\tvar rows = [];\r\n\t\tcolumns.push({ Id: 0, Text: \"Score Level\", Bold: true });\r\n\r\n\t\tScorecardVendorList != undefined && ScorecardVendorList.map((vendor, i) => {\r\n\t\t\tcolumns.push({ Id: 0, Text: vendor.ParameterDesc, Bold: true });\r\n\r\n\t\t\treturn null;\r\n\t\t});\r\n\t\trows.push(columns);\r\n\t\tScorecardVendorLevelList != undefined && ScorecardVendorLevelList.map((level, i) => {\r\n\t\t\tcolumns = [];\r\n\t\t\tcolumns.push({ Id: 0, Text: level.ParameterDesc, Bold: false });\r\n\t\t\tScorecardVendorList != undefined && ScorecardVendorList.map((vendor, j) => {\r\n\t\t\t\tcolumns.push({ Id: level.Id + \"-\" + vendor.Id, Text: \"\", Bold: false });\r\n\r\n\t\t\t\treturn null;\r\n\t\t\t});\r\n\t\t\trows.push(columns);\r\n\r\n\t\t\treturn null;\r\n\t\t});\r\n\t\tconst model = this.state.model;\r\n\t\tmodel.LoanOtherCrediscorerows = rows;\r\n\t\tthis.setState({ isLoading: false, model });\r\n\t}\r\n\thandleDocumentAdd(documentModel) {\r\n\t\tconst model = this.state.model;\r\n\t\tmodel.ScorecardProfileDocumentList.push(documentModel);\r\n\t\tthis.setState({ model });\r\n\t}\r\n\trender() {\r\n\t\tconst { model, isLoading, alert, vModel } = this.state;\r\n\t\tvar ForInsert = !model.Id || model.Id <= 0;\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t{alert}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\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\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\ttabButton: \"Verification\",\r\n\t\t\t\t\t\t\t\t\t\t\t\ttabContent: (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nInternalScorecard.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func\r\n};\r\n\r\nexport default withArtifex(InternalScorecard, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericDateInput, GenericSelectInput } from \"views/Components/Generic\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { ProgramCodes, } from \"views/Constants/Constant.js\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent\";\r\n\r\nclass DailyInterestPoolMonitoring extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.maxLength19 = { maxLength: 19 };\r\n\r\n\t\tthis.emptyObject = {};\r\n\t\tthis.sortedName = { Member: \"Name\" };\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient()\r\n\t\t\t\t? ClientHelper.GetClientRowId()\r\n\t\t\t\t: undefined\r\n\t\t};\r\n\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Days\",\r\n\t\t\t\taccessor: \"DayNumber\"\r\n\t\t\t },\r\n\t\t\t {\r\n\t\t\t\tHeader: \"Date\",\r\n\t\t\t\taccessor: \"FormattedProcessDate\"\r\n\t\t\t },\r\n\t\t\t {\r\n\t\t\t\tHeader: \"Purchase Debt Subject to Interest\",\r\n\t\t\t\taccessor: \"FormattedSaleDebt\"\r\n\t\t\t },\r\n\t\t\t {\r\n\t\t\t\tHeader: \"Purchase Interest\",\r\n\t\t\t\taccessor: \"SaleInterestAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t },\r\n\t\t\t {\r\n\t\t\t\tHeader: \"Purchase Interest Rate\",\r\n\t\t\t\taccessor: \"SaleInterestRate\"\r\n\t\t\t },\r\n\t\t\t {\r\n\t\t\t\tHeader: \"Cash Advance Debt Subject to Interest\",\r\n\t\t\t\taccessor: \"FormattedCashAdvanceDebt\"\r\n\t\t\t },\r\n\t\t\t {\r\n\t\t\t\tHeader: \"Cash Advance Interest\",\r\n\t\t\t\taccessor: \"CashAdvanceInterestAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t },\r\n\t\t\t {\r\n\t\t\t\tHeader: \"Cash Advance Interest Rate\",\r\n\t\t\t\taccessor: \"CashAdvanceInterestRate\"\r\n\t\t\t }\r\n\t\t];\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tisLoading: false,\r\n\t\t\tcheckedAccounts: [],\r\n\t\t\tClientTypeParameter: {},\r\n\t\t\tpanelTransactionIsActive: false,\r\n\t\t\tlist: []\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Daily Interest Pool Monitoring\");\r\n\t\t}\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\t\tif (!this.Validate()) return;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tconst model = { ...this.state.model };\r\n\t\tvar result = await ExecuteApiPost(\r\n\t\t\t\"/lmsapi/v1.0/Statement/GetStatementDailySalesAndInterestData\",\r\n\t\t\tmodel,\r\n\t\t\tnull,\r\n\t\t\tnull,\r\n\t\t\tnull\r\n\t\t);\r\n\r\n\r\n\t\tif (result != null) {\r\n\t\t\tthis.setState({ list: result || [] });\r\n\t\t}\r\n\t};\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, list: [], selected: null, checkedAccounts: [] });\r\n\t};\r\n\r\n\tValidate = () => {\r\n\t\tvar { model } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errors = [];\r\n\t\tif (model.UniqueClientId == undefined || model.UniqueClientId == null || model.UniqueClientId <= 0) {\r\n\t\t\terrors.push(\"Client must be select!\");\r\n\t\t}\r\n\t\tif (model.ApplicantId == undefined || model.ApplicantId == null || model.ApplicantId <= 0) {\r\n\t\t\terrors.push(\"Applicant must be select!\");\r\n\t\t}\r\n\t\tif (model.StatementId == undefined || model.StatementId == null || model.StatementId <= 0) {\r\n\t\t\terrors.push(\"Statement must be select!\");\r\n\t\t}\r\n\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t};\r\n\r\n\tGetRenderItemUniqueClient = (x) => {\r\n\t\tthis.renderItemUniqueClient = `${x.Name} - ${x.UniqueClientId}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t};\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst model = {\r\n\t\t\t...this.state.model,\r\n\t\t};\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t};\r\n\tHandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tfilterModel: {},\r\n\t\t\tselected: null,\r\n\t\t\tlist: [],\r\n\t\t});\r\n\t};\r\n\trender() {\r\n\t\tconst { model, ReadOnly, list, panelTransactionIsActive, isBackOffice } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n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estPoolMonitoring.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any,\r\n};\r\n\r\nexport default DailyInterestPoolMonitoring;\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericDateInput, GenericSelectInput } from \"views/Components/Generic\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { ProgramCodes, } from \"views/Constants/Constant.js\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent\";\r\n\r\nclass DailyInterestTransactions extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.maxLength19 = { maxLength: 19 };\r\n\r\n\t\tthis.emptyObject = {};\r\n\t\tthis.sortedName = { Member: \"Name\" };\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient()\r\n\t\t\t\t? ClientHelper.GetClientRowId()\r\n\t\t\t\t: undefined,\r\n\t\t\tCustomer: null,\r\n\t\t\tFromDate: null,\r\n\t\t\tToDate: null,\r\n\t\t\tPaymentStatusId: null,\r\n\t\t\tCardTokenNumber: null,\r\n\t\t\tCustomerNumber: null\r\n\t\t};\r\n\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Statement Id\",\r\n\t\t\t\taccessor: \"StatementId\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Type\",\r\n\t\t\t\taccessor: \"TransactionType\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Payment Status\",\r\n\t\t\t\taccessor: \"PaymentStatus\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Statement Date\",\r\n\t\t\t\taccessor: \"StatementDate\",\r\n\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Number\",\r\n\t\t\t\taccessor: \"CustomerNumber\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"CustomerName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Token\",\r\n\t\t\t\taccessor: \"CardTokenNumber\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"Amount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Waiting Amount\",\r\n\t\t\t\taccessor: \"WaitingAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Collected Amount\",\r\n\t\t\t\taccessor: \"CollectedAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Collected Amount\",\r\n\t\t\t\taccessor: \"TotalCollectedAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Process Date\",\r\n\t\t\t\taccessor: \"ProcessDate\",\r\n\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Insert User\",\r\n\t\t\t\taccessor: \"InsertUser\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Update Date\",\r\n\t\t\t\taccessor: \"UpdateDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t},\r\n\r\n\r\n\r\n\t\t];\r\n\r\n\t\tthis.LMSPaymentStatus = {\r\n\t\t\tParameterCode: \"LMSPaymentStatus\",\r\n\t\t};\r\n\r\n\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tisLoading: false,\r\n\t\t\tcheckedAccounts: [],\r\n\t\t\tClientTypeParameter: {},\r\n\t\t\tpanelTransactionIsActive: false,\r\n\t\t\tlist: [],\r\n\t\t\tisBackOffice: ClientHelper.IsBackOffice()\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Interest Payment Status\");\r\n\t\t}\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\t\tif (!this.Validate()) return;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tconst model = { ...this.state.model };\r\n\t\tconst request = {\r\n\t\t\tFromDate: model.FromDate,\r\n\t\t\tToDate: model.ToDate,\r\n\t\t\tCustomerNumber: model.Customer != null ? model.Customer.CustomerNumber : null,\r\n\t\t\tUniqueClientId: model.UniqueClientId,\r\n\t\t\tPaymentStatusId: model.PaymentStatusId,\r\n\t\t\tCardTokenNumber: model.CardTokenNumber,\r\n\r\n\t\t};\r\n\t\tvar result = await ExecuteApiPost(\r\n\t\t\t\"/lmsapi/v1.0/Statement/SecuredCardDailyTransactionInterestCollenctionList\",\r\n\t\t\trequest,\r\n\t\t\tnull,\r\n\t\t\tnull,\r\n\t\t\tnull\r\n\t\t);\r\n\r\n\r\n\t\tif (result != null) {\r\n\t\t\tthis.setState({ list: result || [] });\r\n\t\t}\r\n\t};\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, list: [], selected: null, checkedAccounts: [] });\r\n\t};\r\n\r\n\tValidate = () => {\r\n\t\tvar { model } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errors = [];\r\n\t\tif (model.FromDate == undefined || model.FromDate == null) {\r\n\t\t\terrors.push(\"From date must be select!\");\r\n\t\t}\r\n\t\tif (model.ToDate == undefined || model.ToDate == null) {\r\n\t\t\terrors.push(\"To date must be select!\");\r\n\t\t}\r\n\t\tif (model.UniqueClientId == undefined || model.UniqueClientId == null || model.UniqueClientId <= 0) {\r\n\t\t\terrors.push(\"Client must be select!\");\r\n\t\t}\r\n\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t};\r\n\r\n\tGetRenderItemUniqueClient = (x) => {\r\n\t\tthis.renderItemUniqueClient = `${x.Name} - ${x.UniqueClientId}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t};\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst model = {\r\n\t\t\t...this.state.model,\r\n\t\t};\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t};\r\n\thandleChangeForCustomer = (name, newValue) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tconst initialModel = { ...this.initialModel };\r\n\t\tif (name === \"Customer\") {\r\n\t\t\tif (newValue != null) {\r\n\t\t\t\tmodel.Customer = newValue;\r\n\t\t\t\tif (newValue.Accounts != null && newValue.Accounts.length > 0) {\r\n\t\t\t\t\tmodel.CustomerNumber = newValue.Accounts[0].CustomerNumber;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmodel.CustomerNumber = null;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tmodel.Customer = initialModel.Customer;\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\t};\r\n\tHandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tfilterModel: {},\r\n\t\t\tselected: null,\r\n\t\t\tlist: [],\r\n\t\t});\r\n\t};\r\n\trender() {\r\n\t\tconst { model, ReadOnly, list, panelTransactionIsActive, isBackOffice } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={IsClient}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDefaultIndex={IsClient ? 0 : -1}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t { this.handleChangeForCustomer(\"Customer\", customer); }}\r\n\t\t\t\t\t\t\t\t\t\t\t\tPrograms={[ProgramCodes.Prepaid]} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nDailyInterestTransactions.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any,\r\n};\r\n\r\nexport default DailyInterestTransactions;\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericDateInput, GenericSelectInput} from \"views/Components/Generic\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { ProgramCodes, MenuCodes,} from \"views/Constants/Constant.js\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent\";\r\n\r\nclass PaymentInterestTransactions extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n let IsSwitchReport = this.props.MenuCode == MenuCodes.Menu_SwitchReport;\r\n this.emptyObject = {};\r\n this.sortedName = { Member: \"Name\" };\r\n\r\n this.emptyObject = {};\r\n this.sortedName = { Member: \"Name\" };\r\n this.initialModel = {\r\n Id: 0,\r\n UniqueClientId: ClientHelper.IsClient()\r\n ? ClientHelper.GetClientRowId()\r\n : undefined,\r\n Customer: null,\r\n DefaultAccount: null,\r\n PaymentStatusId: null,\r\n ToDate: null,\r\n FromDate: null,\r\n CardTokenNumber: null,\r\n CustomerNumber: null,\r\n };\r\n\r\n this.columns = [\r\n\t\t{\r\n\t\t\tHeader: \"Settlement Date\",\r\n\t\t\taccessor: \"SettlementDate\",\r\n\t\t\ttype: GridColumnType.DateTime,\r\n\t\t },\r\n {\r\n Header: \"Account Name\",\r\n accessor: \"AccountName\",\r\n },\r\n {\r\n Header: \"Customer Name\",\r\n accessor: \"CustomerName\",\r\n },\r\n {\r\n Header: \"Customer Number\",\r\n accessor: \"CustomerNumber\",\r\n },\r\n {\r\n Header: \"Is Processed\",\r\n accessor: \"IsProcessed\",\r\n type: GridColumnType.YesNo,\r\n },\r\n\r\n {\r\n Header: \"Settlement Status\",\r\n accessor: \"SettlementStatus\",\r\n },\r\n\r\n {\r\n Header: \"Card Masked Number\",\r\n accessor: \"CardTokenNumber\",\r\n // show: !IsSwitchReport,\r\n },\r\n\r\n {\r\n Header: \"Transactions Amount\",\r\n accessor: \"TransactionsAmount\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n ];\r\n\r\n this.LMSPaymentStatus = {\r\n ParameterCode: \"LMSPaymentStatus\",\r\n };\r\n this.LMSDailyTransactionType = {\r\n ParameterCode: \"LMSDailyTransactionType\",\r\n };\r\n\r\n this.state = {\r\n // model: {},\r\n model: this.initialModel,\r\n isLoading: false,\r\n checkedAccounts: [],\r\n ClientTypeParameter: {},\r\n panelTransactionIsActive: false,\r\n list: [],\r\n isBackOffice: ClientHelper.IsBackOffice(),\r\n };\r\n }\r\n\r\n componentDidMount() {\r\n const { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n if (setAppCenterTitle) {\r\n setAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n }\r\n if (setAppLeftTitle) {\r\n setAppLeftTitle(\"Payment Transactions\");\r\n }\r\n }\r\n\r\n ValueChanged = (name, value) => {\r\n const model = { ...this.state.model };\r\n model[name] = value;\r\n\r\n this.setState({ model });\r\n };\r\n\r\n Search = async () => {\r\n if (!this.Validate()) return;\r\n const { ExecuteApiPost } = this.props;\r\n const model = { ...this.state.model };\r\n const request = {\r\n FromDate: model.FromDate,\r\n ToDate: model.ToDate,\r\n CustomerNumber: model.Customer == null ? null : model.Customer.CustomerNumber,\r\n UniqueClientId: model.UniqueClientId,\r\n };\r\n var result = await ExecuteApiPost(\r\n \"/lmsapi/v1.0/Statement/PaymentTransactionDataList\",\r\n request,\r\n null,\r\n null,\r\n null\r\n );\r\n\r\n if (result != null) {\r\n this.setState({ list: result || [] });\r\n }\r\n };\r\n\r\n Clear = () => {\r\n this.setState({ model: {}, list: [], selected: null, checkedAccounts: [] });\r\n };\r\n\r\n Validate = () => {\r\n var { model } = this.state;\r\n const { showValidationErrors } = this.props;\r\n var errors = [];\r\n\t if (errors.length > 0) {\r\n showValidationErrors(errors);\r\n\r\n return false;\r\n }\r\n\r\n return true;\r\n };\r\n\r\n GetRenderItemUniqueClient = (x) => {\r\n this.renderItemUniqueClient = `${x.Name} - ${x.UniqueClientId}`;\r\n return this.renderItemUniqueClient;\r\n };\r\n\r\n\r\nhandleChange = (name, newValue, data) => {\r\n\tconst model = {\r\n\t ...this.state.model,\r\n\t};\r\n\tmodel[name] = newValue;\r\n\tthis.setState({ model });\r\n };\r\n handleChangeForCustomer= (name, newValue) => {\r\n\tconst model = { ...this.state.model };\r\n const initialModel = { ...this.initialModel };\r\n if (name === \"Customer\") {\r\n if (newValue != null) {\r\n model.Customer = newValue;\r\n if (newValue.Accounts != null && newValue.Accounts.length > 0) {\r\n model.CustomerNumber = newValue.Accounts[0].CustomerNumber;\r\n } else {\r\n model.CustomerNumber = null;\r\n }\r\n } else {\r\n model.Customer = initialModel.Customer;\r\n }\r\n }\r\n\tthis.setState({ model });\r\n};\r\n HandleClear = () => {\r\n this.setState({\r\n model: this.initialModel,\r\n filterModel: {},\r\n selected: null,\r\n list: [],\r\n });\r\n };\r\n\r\n FillCustomer = (customer) => {\r\n this.handleChange(\"Customer\", customer);\r\n };\r\n render() {\r\n const {\r\n model,\r\n model2,\r\n list,\r\n panelTransactionIsActive,\r\n isBackOffice,\r\n } = this.state;\r\n const { Disabled } = this.props;\r\n\t var IsClient = ClientHelper.IsClient();\r\n\r\n return (\r\n
\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\tValueChanged={this.ValueChanged}\r\n\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\tDisabled={IsClient}\r\n\t\t\t\t\t\t\t\tDefaultIndex={IsClient ? 0 : -1}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t { this.handleChange(\"Customer\", customer); }}\r\n Programs={[ProgramCodes.Prepaid]}\r\n\t\t\t\t\t\t\t Disabled={model.UniqueClientId == undefined} />\r\n \r\n\t\t\t\t\t\t \r\n \r\n \r\n \r\n \r\n \r\n\t\t\t\t\t\t \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\nPaymentInterestTransactions.propTypes = {\r\n setAppLeftTitle: PropTypes.func,\r\n setAppCenterTitle: PropTypes.func,\r\n ExecuteApiPost: PropTypes.func,\r\n Disabled: PropTypes.bool,\r\n menuId: PropTypes.any,\r\n ApprovalData: PropTypes.any,\r\n After: PropTypes.any,\r\n};\r\n\r\nexport default PaymentInterestTransactions;\r\n","import React from \"react\";\r\nimport PropTypes from \"prop-types\";\r\n\r\n// @material-ui/core components\r\nimport withStyles from \"@material-ui/core/styles/withStyles\";\r\n\r\nimport typographyStyle from \"assets/jss/material-dashboard-pro-react/components/typographyStyle.jsx\";\r\n\r\nfunction Black({ ...props }) {\r\n const { classes, children } = props;\r\n return (\r\n
\r\n {children}\r\n
\r\n );\r\n}\r\n\r\nBlack.propTypes = {\r\n classes: PropTypes.object.isRequired\r\n};\r\n\r\nexport default withStyles(typographyStyle)(Black);\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport {\r\n GenericExpansionPanel,\r\n GenericGrid,\r\n GenericDateInput,\r\n GenericSelectInput,\r\n GenericAlert,\r\n} from \"views/Components/Generic\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { ProgramCodes } from \"views/Constants/Constant.js\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\n\r\nclass SecureCardCollection extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n this.emptyObject = {};\r\n this.sortedName = { Member: \"Name\" };\r\n\r\n this.emptyObject = {};\r\n this.sortedName = { Member: \"Name\" };\r\n this.initialModel = {\r\n Id: 0,\r\n UniqueClientId: ClientHelper.IsClient()\r\n ? ClientHelper.GetClientRowId()\r\n : undefined,\r\n Customer: null,\r\n DefaultAccount: null,\r\n ToDate: null,\r\n FromDate: null,\r\n CardTokenNumber: null,\r\n CustomerNumber: null,\r\n CustomerId: 0,\r\n searchIsNotSpecific: true,\r\n PaymentStatusId: null,\r\n };\r\n\r\n this.columns = [\r\n {\r\n Header: \"Process Date\",\r\n accessor: \"ProcessDate\",\r\n type: GridColumnType.DateTimeUtc,\r\n },\r\n {\r\n Header: \"Customer Name\",\r\n accessor: \"CustomerName\",\r\n },\r\n {\r\n Header: \"Customer Number\",\r\n accessor: \"CustomerNumber\",\r\n },\r\n {\r\n Header: \"Is Active\",\r\n accessor: \"IsActive\",\r\n type: GridColumnType.YesNo,\r\n },\r\n {\r\n Header: \"Transaction Amount\",\r\n accessor: \"TransactionAmount\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Collected Amount\",\r\n accessor: \"CollectedAmount\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Total Collected Amount\",\r\n accessor: \"TotalCollectedAmount\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Payment Status\",\r\n accessor: \"PaymentStatus\",\r\n },\r\n {\r\n Header: \"Scheduled Process Date\",\r\n accessor: \"ScheduledProcessDate\",\r\n type: GridColumnType.DateTime,\r\n },\r\n {\r\n Header: \"Reference Number\",\r\n accessor: \"ReferenceNumber\",\r\n },\r\n {\r\n Header: \"Insert Date Time\",\r\n accessor: \"InsertDateTime\",\r\n type: GridColumnType.DateTime,\r\n },\r\n {\r\n Header: \"Insert User\",\r\n accessor: \"InsertUser\",\r\n },\r\n {\r\n Header: \"Update Date Time\",\r\n accessor: \"UpdateDateTime\",\r\n type: GridColumnType.DateTime,\r\n },\r\n {\r\n Header: \"Update User\",\r\n accessor: \"UpdateUser\",\r\n },\r\n {\r\n Header: \"Minimum Payment\",\r\n accessor: \"MinimumPayment\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n ];\r\n\r\n this.LMSPaymentStatus = {\r\n ParameterCode: \"LMSPaymentStatus\",\r\n };\r\n this.LMSDailyTransactionType = {\r\n ParameterCode: \"LMSDailyTransactionType\",\r\n };\r\n\r\n this.state = {\r\n model: this.initialModel,\r\n isLoading: false,\r\n checkedAccounts: [],\r\n ClientTypeParameter: {},\r\n panelTransactionIsActive: false,\r\n list: [],\r\n isBackOffice: ClientHelper.IsBackOffice(),\r\n };\r\n }\r\n\r\n componentDidMount() {\r\n const { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n if (setAppCenterTitle) {\r\n setAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n }\r\n if (setAppLeftTitle) {\r\n setAppLeftTitle(\"Card Transaction Payment Status\");\r\n }\r\n }\r\n\r\n ValueChanged = (name, value) => {\r\n const model = { ...this.state.model };\r\n model[name] = value;\r\n\r\n this.setState({ model });\r\n };\r\n\r\n Search = async () => {\r\n if (!this.Validate()) return;\r\n const { ExecuteApiPost } = this.props;\r\n const model = { ...this.state.model };\r\n const request = {\r\n FromDate: model.FromDate,\r\n ToDate: model.ToDate,\r\n CustomerNumber:\r\n model.Customer == null ? null : model.Customer.CustomerNumber,\r\n UniqueClientId: model.UniqueClientId,\r\n PaymentStatusId: model.PaymentStatusId,\r\n };\r\n var result = await ExecuteApiPost(\r\n \"/lmsapi/v1.0/Statement/SecureCardCollection\",\r\n request,\r\n null,\r\n null,\r\n null\r\n );\r\n\r\n if (result != null) {\r\n this.setState({ list: result || [] });\r\n }\r\n };\r\n\r\n Clear = () => {\r\n this.setState({ model: {}, list: [], selected: null, checkedAccounts: [] });\r\n };\r\n ShowMessage = (type, title, message) => {\r\n this.setState({\r\n alert: (\r\n this.setState({ alert: \"\" })}\r\n />\r\n ),\r\n });\r\n };\r\n Validate = () => {\r\n var { model } = this.state;\r\n const { showValidationErrors } = this.props;\r\n var searchIsNotSpecific = model.searchIsNotSpecific;\r\n this.setState({ model });\r\n if (!model.PaymentStatusId && !model.CustomerNumber) {\r\n if (searchIsNotSpecific) {\r\n if (!model.FromDate) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"From Date cannot be empty\"\r\n );\r\n return false;\r\n }\r\n if (!model.ToDate) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"To Date cannot be empty\"\r\n );\r\n return false;\r\n }\r\n var diffMonths = model.ToDate.diff(model.FromDate, \"days\");\r\n if (diffMonths > 30) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"Difference between From Date and To Date cannot be longer than 30 days\"\r\n );\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\n };\r\n\r\n GetRenderItemUniqueClient = (x) => {\r\n this.renderItemUniqueClient = `${x.Name} - ${x.UniqueClientId}`;\r\n return this.renderItemUniqueClient;\r\n };\r\n\r\n handleChange = (name, newValue, data) => {\r\n const model = {\r\n ...this.state.model,\r\n };\r\n model[name] = newValue;\r\n this.setState({ model });\r\n };\r\n\r\n handleChangeForCustomer = (name, newValue) => {\r\n const model = { ...this.state.model };\r\n const initialModel = { ...this.initialModel };\r\n if (name === \"Customer\") {\r\n if (newValue != null) {\r\n model.Customer = newValue;\r\n if (newValue.Accounts != null && newValue.Accounts.length > 0) {\r\n model.CustomerNumber = newValue.Accounts[0].CustomerNumber;\r\n } else {\r\n model.CustomerNumber = null;\r\n }\r\n } else {\r\n model.Customer = initialModel.Customer;\r\n }\r\n }\r\n this.setState({ model });\r\n };\r\n\r\n HandleClear = () => {\r\n this.setState({\r\n model: this.initialModel,\r\n filterModel: {},\r\n selected: null,\r\n list: [],\r\n });\r\n };\r\n\r\n FillCustomer = (customer) => {\r\n this.handleChangeForCustomer(\"Customer\", customer);\r\n };\r\n\r\n render() {\r\n const { model, list, isBackOffice } = this.state;\r\n const { Disabled } = this.props;\r\n\r\n return (\r\n
\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n `${d.UniqueClientId} - ${d.Name}`}\r\n Value={model.UniqueClientId || \"\"}\r\n ValueChanged={this.handleChange}\r\n All\r\n CanClear\r\n Disabled={!isBackOffice}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\nSecureCardCollection.propTypes = {\r\n setAppLeftTitle: PropTypes.func,\r\n setAppCenterTitle: PropTypes.func,\r\n ExecuteApiPost: PropTypes.func,\r\n Disabled: PropTypes.bool,\r\n menuId: PropTypes.any,\r\n ApprovalData: PropTypes.any,\r\n After: PropTypes.any,\r\n};\r\n\r\nexport default SecureCardCollection;\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport {\r\n GenericExpansionPanel,\r\n GenericGrid,\r\n GenericDateInput,\r\n GenericSelectInput,\r\n GenericAlert,\r\n} from \"views/Components/Generic\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { ProgramCodes } from \"views/Constants/Constant.js\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\n\r\nclass SecureCardFeeCollection extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n this.emptyObject = {};\r\n this.sortedName = { Member: \"Name\" };\r\n this.initialModel = {\r\n Id: 0,\r\n UniqueClientId: ClientHelper.IsClient()\r\n ? ClientHelper.GetClientRowId()\r\n : undefined,\r\n Customer: null,\r\n DefaultAccount: null,\r\n ToDate: null,\r\n FromDate: null,\r\n CardTokenNumber: null,\r\n CustomerNumber: null,\r\n CustomerId: 0,\r\n searchIsNotSpecific: true,\r\n PaymentStatusId: null,\r\n };\r\n\r\n this.columns = [\r\n {\r\n Header: \"Process Date\",\r\n accessor: \"ProcessDate\",\r\n type: GridColumnType.DateTimeUtc,\r\n },\r\n {\r\n Header: \"Customer Name\",\r\n accessor: \"CustomerName\",\r\n },\r\n {\r\n Header: \"Customer Number\",\r\n accessor: \"CustomerNumber\",\r\n },\r\n {\r\n Header: \"Is Active\",\r\n accessor: \"IsActive\",\r\n type: GridColumnType.YesNo,\r\n },\r\n {\r\n Header: \"Amount\",\r\n accessor: \"Amount\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n\t\t{\r\n\t\t\tHeader: \"WaitingAmount\",\r\n\t\t\taccessor: \"WaitingAmount\",\r\n\t\t\ttype: GridColumnType.Money,\r\n\t\t\tColumnType: GridColumnType.Money,\r\n\t\t },\r\n {\r\n Header: \"Collected Amount\",\r\n accessor: \"CollectedAmount\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Total Collected Amount\",\r\n accessor: \"TotalCollectedAmount\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Payment Status\",\r\n accessor: \"PaymentStatus\",\r\n },\r\n {\r\n Header: \"Scheduled Process Date\",\r\n accessor: \"ScheduledProcessDate\",\r\n type: GridColumnType.DateTime,\r\n },\r\n {\r\n Header: \"Reference Number\",\r\n accessor: \"ReferenceNumber\",\r\n },\r\n {\r\n Header: \"Insert Date Time\",\r\n accessor: \"InsertDateTime\",\r\n type: GridColumnType.DateTime,\r\n },\r\n {\r\n Header: \"Insert User\",\r\n accessor: \"InsertUser\",\r\n },\r\n {\r\n Header: \"Update Date Time\",\r\n accessor: \"UpdateDateTime\",\r\n type: GridColumnType.DateTime,\r\n },\r\n {\r\n Header: \"Update User\",\r\n accessor: \"UpdateUser\",\r\n }\r\n ];\r\n\r\n this.LMSPaymentStatus = {\r\n ParameterCode: \"LMSPaymentStatus\",\r\n };\r\n\r\n this.state = {\r\n model: this.initialModel,\r\n isLoading: false,\r\n checkedAccounts: [],\r\n ClientTypeParameter: {},\r\n panelTransactionIsActive: false,\r\n list: [],\r\n isBackOffice: ClientHelper.IsBackOffice(),\r\n };\r\n }\r\n\r\n componentDidMount() {\r\n const { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n if (setAppCenterTitle) {\r\n setAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n }\r\n if (setAppLeftTitle) {\r\n setAppLeftTitle(\"Card Fee Payment Status\");\r\n }\r\n }\r\n\r\n ValueChanged = (name, value) => {\r\n const model = { ...this.state.model };\r\n model[name] = value;\r\n\r\n this.setState({ model });\r\n };\r\n\r\n Search = async () => {\r\n if (!this.Validate()) return;\r\n const { ExecuteApiPost } = this.props;\r\n const model = { ...this.state.model };\r\n const request = {\r\n FromDate: model.FromDate,\r\n ToDate: model.ToDate,\r\n CustomerNumber:\r\n model.Customer == null ? null : model.Customer.CustomerNumber,\r\n UniqueClientId: model.UniqueClientId,\r\n PaymentStatusId: model.PaymentStatusId,\r\n };\r\n var result = await ExecuteApiPost(\r\n \"/lmsapi/v1.0/Statement/SecureCardFeeCollection\",\r\n request,\r\n null,\r\n null,\r\n null\r\n );\r\n\r\n if (result != null) {\r\n this.setState({ list: result || [] });\r\n }\r\n };\r\n\r\n Clear = () => {\r\n this.setState({ model: {}, list: [], selected: null, checkedAccounts: [] });\r\n };\r\n ShowMessage = (type, title, message) => {\r\n this.setState({\r\n alert: (\r\n this.setState({ alert: \"\" })}\r\n />\r\n ),\r\n });\r\n };\r\n Validate = () => {\r\n var { model } = this.state;\r\n const { showValidationErrors } = this.props;\r\n var searchIsNotSpecific = model.searchIsNotSpecific;\r\n this.setState({ model });\r\n if (!model.PaymentStatusId && !model.CustomerNumber) {\r\n if (searchIsNotSpecific) {\r\n if (!model.FromDate) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"From Date cannot be empty\"\r\n );\r\n return false;\r\n }\r\n if (!model.ToDate) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"To Date cannot be empty\"\r\n );\r\n return false;\r\n }\r\n var diffMonths = model.ToDate.diff(model.FromDate, \"days\");\r\n if (diffMonths > 30) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"Difference between From Date and To Date cannot be longer than 30 days\"\r\n );\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\n };\r\n\r\n GetRenderItemUniqueClient = (x) => {\r\n this.renderItemUniqueClient = `${x.Name} - ${x.UniqueClientId}`;\r\n return this.renderItemUniqueClient;\r\n };\r\n\r\n handleChange = (name, newValue, data) => {\r\n const model = {\r\n ...this.state.model,\r\n };\r\n model[name] = newValue;\r\n this.setState({ model });\r\n };\r\n\r\n handleChangeForCustomer = (name, newValue) => {\r\n const model = { ...this.state.model };\r\n const initialModel = { ...this.initialModel };\r\n if (name === \"Customer\") {\r\n if (newValue != null) {\r\n model.Customer = newValue;\r\n if (newValue.Accounts != null && newValue.Accounts.length > 0) {\r\n model.CustomerNumber = newValue.Accounts[0].CustomerNumber;\r\n } else {\r\n model.CustomerNumber = null;\r\n }\r\n } else {\r\n model.Customer = initialModel.Customer;\r\n }\r\n }\r\n this.setState({ model });\r\n };\r\n\r\n HandleClear = () => {\r\n this.setState({\r\n model: this.initialModel,\r\n filterModel: {},\r\n selected: null,\r\n list: [],\r\n });\r\n };\r\n\r\n FillCustomer = (customer) => {\r\n this.handleChangeForCustomer(\"Customer\", customer);\r\n };\r\n\r\n render() {\r\n const { model, list, isBackOffice } = this.state;\r\n const { Disabled } = this.props;\r\n\r\n return (\r\n
\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n `${d.UniqueClientId} - ${d.Name}`}\r\n Value={model.UniqueClientId || \"\"}\r\n ValueChanged={this.handleChange}\r\n All\r\n CanClear\r\n Disabled={!isBackOffice}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\nSecureCardFeeCollection.propTypes = {\r\n setAppLeftTitle: PropTypes.func,\r\n setAppCenterTitle: PropTypes.func,\r\n ExecuteApiPost: PropTypes.func,\r\n Disabled: PropTypes.bool,\r\n menuId: PropTypes.any,\r\n ApprovalData: PropTypes.any,\r\n After: PropTypes.any,\r\n};\r\n\r\nexport default SecureCardFeeCollection;\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport {\r\n GenericExpansionPanel,\r\n GenericGrid,\r\n GenericDateInput,\r\n GenericSelectInput,\r\n GenericAlert,\r\n} from \"views/Components/Generic\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { ProgramCodes } from \"views/Constants/Constant.js\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\n\r\nclass SecureCardInterestCollection extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n this.emptyObject = {};\r\n this.sortedName = { Member: \"Name\" };\r\n\r\n this.emptyObject = {};\r\n this.sortedName = { Member: \"Name\" };\r\n this.initialModel = {\r\n Id: 0,\r\n UniqueClientId: ClientHelper.IsClient()\r\n ? ClientHelper.GetClientRowId()\r\n : undefined,\r\n Customer: null,\r\n DefaultAccount: null,\r\n ToDate: null,\r\n FromDate: null,\r\n CardTokenNumber: null,\r\n CustomerNumber: null,\r\n CustomerId: 0,\r\n searchIsNotSpecific: true,\r\n PaymentStatusId: null,\r\n };\r\n\r\n this.columns = [\r\n {\r\n Header: \"Process Date\",\r\n accessor: \"ProcessDate\",\r\n type: GridColumnType.DateTimeUtc,\r\n },\r\n {\r\n Header: \"Customer Name\",\r\n accessor: \"CustomerName\",\r\n },\r\n {\r\n Header: \"Customer Number\",\r\n accessor: \"CustomerNumber\",\r\n },\r\n {\r\n Header: \"Is Active\",\r\n accessor: \"IsActive\",\r\n type: GridColumnType.YesNo,\r\n },\r\n\t\t{\r\n\t\t\tHeader: \"Amount\",\r\n\t\t\taccessor: \"Amount\",\r\n\t\t\ttype: GridColumnType.Money,\r\n\t\t\tColumnType: GridColumnType.Money,\r\n\t\t },\r\n\t\t {\r\n\t\t\tHeader: \"Waiting Amount\",\r\n\t\t\taccessor: \"waitingAmount\",\r\n\t\t\ttype: GridColumnType.Money,\r\n\t\t\tColumnType: GridColumnType.Money,\r\n\t\t },\r\n {\r\n Header: \"Collected Amount\",\r\n accessor: \"CollectedAmount\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Total Collected Amount\",\r\n accessor: \"TotalCollectedAmount\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Payment Status\",\r\n accessor: \"PaymentStatus\",\r\n },\r\n {\r\n Header: \"Scheduled Process Date\",\r\n accessor: \"ScheduledProcessDate\",\r\n type: GridColumnType.DateTime,\r\n },\r\n {\r\n Header: \"Reference Number\",\r\n accessor: \"ReferenceNumber\",\r\n },\r\n {\r\n Header: \"Insert Date Time\",\r\n accessor: \"InsertDateTime\",\r\n type: GridColumnType.DateTime,\r\n },\r\n {\r\n Header: \"Insert User\",\r\n accessor: \"InsertUser\",\r\n },\r\n {\r\n Header: \"Update Date Time\",\r\n accessor: \"UpdateDateTime\",\r\n type: GridColumnType.DateTime,\r\n },\r\n {\r\n Header: \"Update User\",\r\n accessor: \"UpdateUser\",\r\n }\r\n ];\r\n\r\n this.LMSPaymentStatus = {\r\n ParameterCode: \"LMSPaymentStatus\",\r\n };\r\n this.LMSDailyTransactionType = {\r\n ParameterCode: \"LMSDailyTransactionType\",\r\n };\r\n\r\n this.state = {\r\n model: this.initialModel,\r\n isLoading: false,\r\n checkedAccounts: [],\r\n ClientTypeParameter: {},\r\n panelTransactionIsActive: false,\r\n list: [],\r\n isBackOffice: ClientHelper.IsBackOffice(),\r\n };\r\n }\r\n\r\n componentDidMount() {\r\n const { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n if (setAppCenterTitle) {\r\n setAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n }\r\n if (setAppLeftTitle) {\r\n setAppLeftTitle(\"Daily Interest Payment Status\");\r\n }\r\n }\r\n\r\n ValueChanged = (name, value) => {\r\n const model = { ...this.state.model };\r\n model[name] = value;\r\n\r\n this.setState({ model });\r\n };\r\n\r\n Search = async () => {\r\n if (!this.Validate()) return;\r\n const { ExecuteApiPost } = this.props;\r\n const model = { ...this.state.model };\r\n const request = {\r\n FromDate: model.FromDate,\r\n ToDate: model.ToDate,\r\n CustomerNumber:\r\n model.Customer == null ? null : model.Customer.CustomerNumber,\r\n UniqueClientId: model.UniqueClientId,\r\n PaymentStatusId: model.PaymentStatusId,\r\n };\r\n var result = await ExecuteApiPost(\r\n \"/lmsapi/v1.0/Statement/SecureCardDailyTransactionInterestCollection\",\r\n request,\r\n null,\r\n null,\r\n null\r\n );\r\n\r\n if (result != null) {\r\n this.setState({ list: result || [] });\r\n }\r\n };\r\n\r\n Clear = () => {\r\n this.setState({ model: {}, list: [], selected: null, checkedAccounts: [] });\r\n };\r\n ShowMessage = (type, title, message) => {\r\n this.setState({\r\n alert: (\r\n this.setState({ alert: \"\" })}\r\n />\r\n ),\r\n });\r\n };\r\n Validate = () => {\r\n var { model } = this.state;\r\n const { showValidationErrors } = this.props;\r\n var searchIsNotSpecific = model.searchIsNotSpecific;\r\n this.setState({ model });\r\n if (!model.PaymentStatusId && !model.CustomerNumber) {\r\n if (searchIsNotSpecific) {\r\n if (!model.FromDate) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"From Date cannot be empty\"\r\n );\r\n return false;\r\n }\r\n if (!model.ToDate) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"To Date cannot be empty\"\r\n );\r\n return false;\r\n }\r\n var diffMonths = model.ToDate.diff(model.FromDate, \"days\");\r\n if (diffMonths > 30) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"Difference between From Date and To Date cannot be longer than 30 days\"\r\n );\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\n };\r\n\r\n GetRenderItemUniqueClient = (x) => {\r\n this.renderItemUniqueClient = `${x.Name} - ${x.UniqueClientId}`;\r\n return this.renderItemUniqueClient;\r\n };\r\n\r\n handleChange = (name, newValue, data) => {\r\n const model = {\r\n ...this.state.model,\r\n };\r\n model[name] = newValue;\r\n this.setState({ model });\r\n };\r\n\r\n handleChangeForCustomer = (name, newValue) => {\r\n const model = { ...this.state.model };\r\n const initialModel = { ...this.initialModel };\r\n if (name === \"Customer\") {\r\n if (newValue != null) {\r\n model.Customer = newValue;\r\n if (newValue.Accounts != null && newValue.Accounts.length > 0) {\r\n model.CustomerNumber = newValue.Accounts[0].CustomerNumber;\r\n } else {\r\n model.CustomerNumber = null;\r\n }\r\n } else {\r\n model.Customer = initialModel.Customer;\r\n }\r\n }\r\n this.setState({ model });\r\n };\r\n\r\n HandleClear = () => {\r\n this.setState({\r\n model: this.initialModel,\r\n filterModel: {},\r\n selected: null,\r\n list: [],\r\n });\r\n };\r\n\r\n FillCustomer = (customer) => {\r\n this.handleChangeForCustomer(\"Customer\", customer);\r\n };\r\n\r\n render() {\r\n const { model, list, isBackOffice } = this.state;\r\n const { Disabled } = this.props;\r\n\r\n return (\r\n
\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n `${d.UniqueClientId} - ${d.Name}`}\r\n Value={model.UniqueClientId || \"\"}\r\n ValueChanged={this.handleChange}\r\n All\r\n CanClear\r\n Disabled={!isBackOffice}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\nSecureCardInterestCollection.propTypes = {\r\n setAppLeftTitle: PropTypes.func,\r\n setAppCenterTitle: PropTypes.func,\r\n ExecuteApiPost: PropTypes.func,\r\n Disabled: PropTypes.bool,\r\n menuId: PropTypes.any,\r\n ApprovalData: PropTypes.any,\r\n After: PropTypes.any,\r\n};\r\n\r\nexport default SecureCardInterestCollection;\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport {\r\n GenericExpansionPanel,\r\n GenericGrid,\r\n GenericDateInput,\r\n GenericSelectInput,\r\n GenericAlert,\r\n} from \"views/Components/Generic\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { ProgramCodes } from \"views/Constants/Constant.js\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\n\r\nclass SecureCardTermFeeCollection extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n this.emptyObject = {};\r\n this.sortedName = { Member: \"Name\" };\r\n this.initialModel = {\r\n Id: 0,\r\n UniqueClientId: ClientHelper.IsClient()\r\n ? ClientHelper.GetClientRowId()\r\n : undefined,\r\n Customer: null,\r\n DefaultAccount: null,\r\n ToDate: null,\r\n FromDate: null,\r\n CardTokenNumber: null,\r\n CustomerNumber: null,\r\n CustomerId: 0,\r\n searchIsNotSpecific: true,\r\n PaymentStatusId: null,\r\n };\r\n\r\n this.columns = [\r\n {\r\n Header: \"Process Date\",\r\n accessor: \"ProcessDate\",\r\n type: GridColumnType.DateTimeUtc,\r\n },\r\n {\r\n Header: \"Customer Name\",\r\n accessor: \"CustomerName\",\r\n },\r\n {\r\n Header: \"Customer Number\",\r\n accessor: \"CustomerNumber\",\r\n },\r\n {\r\n Header: \"Is Active\",\r\n accessor: \"IsActive\",\r\n type: GridColumnType.YesNo,\r\n },\r\n {\r\n Header: \"Amount\",\r\n accessor: \"TermFeeAmount\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n\t\t{\r\n\t\t\tHeader: \"Waiting Amount\",\r\n\t\t\taccessor: \"WaitingTermFeeAmount\",\r\n\t\t\ttype: GridColumnType.Money,\r\n\t\t\tColumnType: GridColumnType.Money,\r\n\t\t },\r\n {\r\n Header: \"Collected Amount\",\r\n accessor: \"CollectedAmount\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Total Collected Amount\",\r\n accessor: \"TotalCollectedAmount\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Payment Status\",\r\n accessor: \"PaymentStatus\",\r\n },\r\n {\r\n Header: \"Scheduled Process Date\",\r\n accessor: \"ScheduledProcessDate\",\r\n type: GridColumnType.DateTime,\r\n },\r\n {\r\n Header: \"Reference Number\",\r\n accessor: \"ReferenceNumber\",\r\n },\r\n {\r\n Header: \"Insert Date Time\",\r\n accessor: \"InsertDateTime\",\r\n type: GridColumnType.DateTime,\r\n },\r\n {\r\n Header: \"Insert User\",\r\n accessor: \"InsertUser\",\r\n },\r\n {\r\n Header: \"Update Date Time\",\r\n accessor: \"UpdateDateTime\",\r\n type: GridColumnType.DateTime,\r\n },\r\n {\r\n Header: \"Update User\",\r\n accessor: \"UpdateUser\",\r\n }\r\n ];\r\n\r\n this.LMSPaymentStatus = {\r\n ParameterCode: \"LMSPaymentStatus\",\r\n };\r\n\r\n this.state = {\r\n model: this.initialModel,\r\n isLoading: false,\r\n checkedAccounts: [],\r\n ClientTypeParameter: {},\r\n panelTransactionIsActive: false,\r\n list: [],\r\n isBackOffice: ClientHelper.IsBackOffice(),\r\n };\r\n }\r\n\r\n componentDidMount() {\r\n const { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n if (setAppCenterTitle) {\r\n setAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n }\r\n if (setAppLeftTitle) {\r\n setAppLeftTitle(\"Fine Fee Payment Status\");\r\n }\r\n }\r\n\r\n ValueChanged = (name, value) => {\r\n const model = { ...this.state.model };\r\n model[name] = value;\r\n\r\n this.setState({ model });\r\n };\r\n\r\n Search = async () => {\r\n if (!this.Validate()) return;\r\n const { ExecuteApiPost } = this.props;\r\n const model = { ...this.state.model };\r\n const request = {\r\n FromDate: model.FromDate,\r\n ToDate: model.ToDate,\r\n CustomerNumber:\r\n model.Customer == null ? null : model.Customer.CustomerNumber,\r\n UniqueClientId: model.UniqueClientId,\r\n PaymentStatusId: model.PaymentStatusId,\r\n };\r\n var result = await ExecuteApiPost(\r\n \"/lmsapi/v1.0/Statement/SecureCardTermFeeCollection\",\r\n request,\r\n null,\r\n null,\r\n null\r\n );\r\n\r\n if (result != null) {\r\n this.setState({ list: result || [] });\r\n }\r\n };\r\n\r\n Clear = () => {\r\n this.setState({ model: {}, list: [], selected: null, checkedAccounts: [] });\r\n };\r\n ShowMessage = (type, title, message) => {\r\n this.setState({\r\n alert: (\r\n this.setState({ alert: \"\" })}\r\n />\r\n ),\r\n });\r\n };\r\n Validate = () => {\r\n var { model } = this.state;\r\n const { showValidationErrors } = this.props;\r\n var searchIsNotSpecific = model.searchIsNotSpecific;\r\n this.setState({ model });\r\n if (!model.PaymentStatusId && !model.CustomerNumber) {\r\n if (searchIsNotSpecific) {\r\n if (!model.FromDate) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"From Date cannot be empty\"\r\n );\r\n return false;\r\n }\r\n if (!model.ToDate) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"To Date cannot be empty\"\r\n );\r\n return false;\r\n }\r\n var diffMonths = model.ToDate.diff(model.FromDate, \"days\");\r\n if (diffMonths > 30) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n \"Difference between From Date and To Date cannot be longer than 30 days\"\r\n );\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\n };\r\n\r\n GetRenderItemUniqueClient = (x) => {\r\n this.renderItemUniqueClient = `${x.Name} - ${x.UniqueClientId}`;\r\n return this.renderItemUniqueClient;\r\n };\r\n\r\n handleChange = (name, newValue, data) => {\r\n const model = {\r\n ...this.state.model,\r\n };\r\n model[name] = newValue;\r\n this.setState({ model });\r\n };\r\n\r\n handleChangeForCustomer = (name, newValue) => {\r\n const model = { ...this.state.model };\r\n const initialModel = { ...this.initialModel };\r\n if (name === \"Customer\") {\r\n if (newValue != null) {\r\n model.Customer = newValue;\r\n if (newValue.Accounts != null && newValue.Accounts.length > 0) {\r\n model.CustomerNumber = newValue.Accounts[0].CustomerNumber;\r\n } else {\r\n model.CustomerNumber = null;\r\n }\r\n } else {\r\n model.Customer = initialModel.Customer;\r\n }\r\n }\r\n this.setState({ model });\r\n };\r\n\r\n HandleClear = () => {\r\n this.setState({\r\n model: this.initialModel,\r\n filterModel: {},\r\n selected: null,\r\n list: [],\r\n });\r\n };\r\n\r\n FillCustomer = (customer) => {\r\n this.handleChangeForCustomer(\"Customer\", customer);\r\n };\r\n\r\n render() {\r\n const { model, list, isBackOffice } = this.state;\r\n const { Disabled } = this.props;\r\n\r\n return (\r\n
\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n `${d.UniqueClientId} - ${d.Name}`}\r\n Value={model.UniqueClientId || \"\"}\r\n ValueChanged={this.handleChange}\r\n All\r\n CanClear\r\n Disabled={!isBackOffice}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\nSecureCardTermFeeCollection.propTypes = {\r\n setAppLeftTitle: PropTypes.func,\r\n setAppCenterTitle: PropTypes.func,\r\n ExecuteApiPost: PropTypes.func,\r\n Disabled: PropTypes.bool,\r\n menuId: PropTypes.any,\r\n ApprovalData: PropTypes.any,\r\n After: PropTypes.any,\r\n};\r\n\r\nexport default SecureCardTermFeeCollection;\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { DocumentIcon } from \"core/Icons\";\r\nimport { TaskPool } from \"core/TaskPool\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericDateInput, GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\n\r\nclass StatementListNew extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.loadTaskPool = new TaskPool(this.handleLoadTaskPoolAppend, this.handleLoadTaskPoolCompleted);\r\n\r\n\t\t\r\n\t\tthis.columnsStatement = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tprops.ExecuteApiFileDownloadWithGenericResponse(\"/lmsapi/v1.0/Statement/GenerateStatementPdfFileNew\", row.original,\r\n\t\t\t\t\t\t\t\t\t`${row.original.Statement.Application.ApplicationNumber}-Statement${Math.floor(Math.random() * Math.floor(999999))}`, \"pdf\")} />\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Application Number\",\r\n\t\t\t\taccessor: \"Statement.Application.ApplicationNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Number\",\r\n\t\t\t\taccessor: \"CardNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Statement Period Begin Date\",\r\n\t\t\t\taccessor: \"FormattedBeginDate\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Statement Date\",\r\n\t\t\t\taccessor: \"FormattedEndDate\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Statement Due Date\",\r\n\t\t\t\taccessor: \"FormattedDueDate\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Opening Balance\",\r\n\t\t\t\taccessor: \"OpeningBalance\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Closing Balance\",\r\n\t\t\t\taccessor: \"ClosingBalance\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Minumum Payment Amount\",\r\n\t\t\t\taccessor: \"MinimumPayment\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Payments\",\r\n\t\t\t\taccessor: \"PaymentAmount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Refunds and Credits\",\r\n\t\t\t\taccessor: \"RefundsAndCredits\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Debit Adjustments\",\r\n\t\t\t\taccessor: \"DebitAdjustments\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Purchases\",\r\n\t\t\t\taccessor: \"PurchaseAmount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Cash Advance\",\r\n\t\t\t\taccessor: \"FormattedTotalCashAdvanceAmount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Fees Charged\",\r\n\t\t\t\taccessor: \"FeesCharged\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Interest Charged\",\r\n\t\t\t\taccessor: \"InterestCharged\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t}\r\n\t\t];\r\n\t\tthis.columnsStatementTransaction = [\r\n\t\t\t{\r\n\r\n\t\t\t\tHeader: \"Transaction Type\",\r\n\t\t\t\taccessor: \"TransactionType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\taccessor: \"FormattedTransactionDate\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Description\",\r\n\t\t\t\taccessor: \"Description\"\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Amount\",\r\n\t\t\t\taccessor: \"FormattedAmount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Fee and Interest Amount\",\r\n\t\t\t\taccessor: \"FormattedFeeAmount\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.emptyObject = {};\r\n\t\tthis.parameterApplicantId = {};\r\n\r\n\t\tthis.renderItemLOCTransaction = {};\r\n\r\n\t\tthis.sortedApplicantFullName = { Member: \"Id\", Desc: true };\r\n\t\tthis.sortedTranDate = [{ id: \"FormattedTransactionDate\", desc: true }];\r\n\r\n\r\n\t\tthis.state = {\r\n\t\t\tvModel: {},\r\n\t\t\tmodel: {\r\n\t\t\t\tApplicantId: props.ApplicantId || -2,\r\n\t\t\t\tApplicationId: props.ApplicationId || 0\r\n\t\t\t},\r\n\t\t\tlist: [],\r\n\t\t\tisPaymentDialogOpen: false,\r\n\t\t\tisAdjustmentDialogOpen: false,\r\n\t\t\tisAdjustmentAdjustDialogOpen: false,\r\n\t\t\tpanelCurrentTermIsActive: false,\r\n\t\t\tpanelTransactionIsActive: false\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Statement List_New\");\r\n\t\t}\r\n\r\n\t\tif (this.props.ApplicantId > 0) {\r\n\t\t\tthis.Search();\r\n\t\t}\r\n\t}\r\n\thandleLoadTaskPoolCompleted = () => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\thandleLoadTaskPoolAppend = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tvar list = state.list;\r\n\t\t\tvar transactionList = state.transactionList;\r\n\t\t\tvar currentTermTransactionList = state.currentTermTransactionList;\r\n\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\tif (name == \"ApplicantId\") {\r\n\t\t\t\tlist = [];\r\n\t\t\t\ttransactionList = [];\r\n\t\t\t\tcurrentTermTransactionList = [];\r\n\t\t\t\tmodel.ApplicationId = null;\r\n\t\t\t}\r\n\r\n\t\t\treturn { model, list, transactionList, currentTermTransactionList };\r\n\t\t});\r\n\t}\r\n\r\n\tGetParameterApplicantId = () => {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tthis.parameterApplicantId.ApplicantId = model.ApplicantId;\r\n\r\n\t\treturn this.parameterApplicantId;\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/lmsapi/v1.0/Statement/StatementSearchNew\", model, null, null, this.ValidateSearch);\r\n\r\n\t\tif (result != null) {\r\n\t\t\tvar list = result.StatementList || [];\r\n\t\t\tvar currentTermTransactionList = result.CurrentTermTransaction || [];\r\n\t\t\tvar StatementDate = result.StatementDate;\r\n\t\t\tvar StatementBeginDate = result.StatementBeginDate;\r\n\t\t\tvar LastPaymentDate = result.LastPaymentDate;\r\n\t\t\tvar FormattedCardLimit = result.FormattedCardLimit;\r\n\t\t\tvar WalletAccountBalance = result.WalletAccountBalance;\r\n\t\t\tvar CardNumber = result.CardNumber;\r\n\t\t\tvar CardFinancialId = result.CardFinancialId;\r\n\t\t\tvar CATMCardId = result.CATMCardId;\r\n\r\n\t\t\tthis.setState({\r\n\t\t\t\tlist, transactionList: [],\r\n\t\t\t\tcurrentTermTransactionList, CardNumber, FormattedCardLimit, CardFinancialId, CATMCardId, WalletAccountBalance,\r\n\t\t\t\tStatementDate,\r\n\t\t\t\tStatementBeginDate,\r\n\t\t\t\tLastPaymentDate,\r\n\t\t\t\tpanelCurrentTermIsActive: true\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, list: [], transactionList: [], currentTermTransactionList: [], selected: null, panelCurrentTermIsActive: false, panelTransactionIsActive: false });\r\n\t}\r\n\r\n\tValidateSearch = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar messages = [];\r\n\r\n\t\tif (!model.ApplicantId || model.ApplicantId == -2) {\r\n\t\t\tvModel.ApplicantId = true;\r\n\t\t\tmessages.push(\"Applicant cannot be empty.\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvModel.ApplicantId = false;\r\n\t\t}\r\n\r\n\t\tif (!model.ApplicationId) {\r\n\t\t\tvModel.ApplicationId = true;\r\n\t\t\tmessages.push(\"Application cannot be empty.\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvModel.ApplicationId = false;\r\n\t\t}\r\n\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tshowValidationErrors(messages);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.setState({ vModel });\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tGetStatementTransaction = async (statementId) => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/lmsapi/v1.0/Statement/GetStatementTransactionNew\", { Id: statementId });\r\n\r\n\t\tthis.setState({ transactionList: result || [], panelTransactionIsActive: true });\r\n\t}\r\n\r\n\tSelectedRowChange = (index) => {\r\n\t\tconst { list } = this.state;\r\n\t\tconst model = list[index];\r\n\r\n\t\tif (model && model.Statement) {\r\n\t\t\tthis.GetStatementTransaction(model.Statement.Id);\r\n\t\t}\r\n\t}\r\n\r\n\tMakeCardTransaction = () => {\r\n\t\tconst { model, CardFinancialId, CATMCardId } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar request = {\r\n\t\t\tCardFinancialId: CardFinancialId || 0,\r\n\t\t\tCATMCardId: CATMCardId || 0,\r\n\t\t\tAmount: model.Amount,\r\n\t\t\tTransactionDate: model.TransactionDate,\r\n\t\t\tTransactionCode: model.TransactionCode\r\n\t\t};\r\n\r\n\t\tExecuteApiPost(\"/lmsapi/v1.0/lmstest/MakeCardTransactionNew\", request, null, null, null, [this.Search]);\r\n\t}\r\n\r\n\tMakeDailyStatementProcess = () => {\r\n\t\tconst { model, CardFinancialId, CATMCardId } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar request = {\r\n\t\t\tCardFinancialId: CardFinancialId,\r\n\t\t\tCATMCardId: CATMCardId,\r\n\t\t\tApplicationId: model.ApplicationId,\r\n\t\t\tProcessLocalDate: model.TransactionDate\r\n\t\t};\r\n\r\n\t\tExecuteApiPost(\"/lmsapi/v1.0/lmstest/SecureCardDailyStatementNewProcess\", request, null, null, null, [this.Search]);\r\n\t}\r\n\r\n\tMakeDailySettlementProcess = () => {\r\n\t\tconst { model, CardFinancialId, CATMCardId } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar request = {\r\n\t\t\tCardFinancialId: CardFinancialId,\r\n\t\t\tCATMCardId: CATMCardId,\r\n\t\t\tApplicationId: model.ApplicationId,\r\n\t\t\tProcessLocalDate: model.TransactionDate\r\n\t\t};\r\n\r\n\t\tExecuteApiPost(\"/lmsapi/v1.0/lmstest/SecureCardDailySettlementNewProcess\", request, null, null, null, [this.Search]);\r\n\t}\r\n\tRenderItemApplication = (d) => {\r\n\t\tthis.renderItemApplication = `${d.ApplicationNumber} - ${d.LoanType.ParameterDesc}`;\r\n\t\treturn this.renderItemApplication;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, vModel, list, transactionList, currentTermTransactionList, panelCurrentTermIsActive, panelTransactionIsActive } = this.state;\r\n\t\tconst { Disabled, IsPopUp } = this.props;\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{!IsPopUp &&\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.ValueChanged}\r\n\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={IsClient}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDefaultIndex={IsClient ? 0 : -1}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t 0 ? this.loadTaskPool : null}\r\n\t\t\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"Id\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tLabelMd={5}\r\n\t\t\t\t\t\t\t\t\t\t\t\tRenderItem={this.RenderItemApplication}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={model.ApplicationId}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.ValueChanged}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={Disabled}\r\n\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.ApplicationId}\r\n\t\t\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t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n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t 0 || this.state.CATMCardId > 0)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsize=\"sm\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcolor=\"black\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tonClick={this.MakeCardTransaction}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tCreate Credit Transaction\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t{/* \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t 0 || this.state.CATMCardId > 0)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsize=\"sm\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcolor=\"black\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tonClick={this.MakeDailySettlementProcess}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tMake Settlement\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t */}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t 0 || this.state.CATMCardId > 0)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsize=\"sm\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcolor=\"black\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tonClick={this.MakeDailyStatementProcess}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tCreate Statement\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nStatementListNew.propTypes = {\r\n\tExecuteApiPost: PropTypes.func,\r\n\tExecuteApiFileDownload: PropTypes.func,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any,\r\n\tIsPopUp: PropTypes.bool\r\n};\r\n\r\nexport default StatementListNew;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericDateInput, GenericExpansionPanel, GenericGrid } from \"views/Components/Generic\";\r\n\r\nclass StatementManualProcess extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Error Message\",\r\n\t\t\t\taccessor: \"ErrorMessage\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {}\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Statement Manual Process\");\r\n\t\t}\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tSubmit = async () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/lmsapi/v1.0/Statement/StatementManualProcess\", model, null, null, this.ValidateSubmit);\r\n\r\n\t\tthis.setState({ list: result || [] });\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, list: [] });\r\n\t}\r\n\r\n\tValidateSubmit = () => {\r\n\t\tvar { model } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errors = [];\r\n\r\n\t\tif (!model.StartDate) {\r\n\t\t\terrors.push(\"Start date cannot be null.\");\r\n\t\t}\r\n\t\tif (!model.EndDate) {\r\n\t\t\terrors.push(\"End date cannot be null\");\r\n\t\t}\r\n\r\n\t\tmodel[\"IsStartDate\"] = !model.StartDate;\r\n\t\tmodel[\"IsEndDate\"] = !model.EndDate;\r\n\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, list } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nStatementManualProcess.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default StatementManualProcess;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericExpansionPanel, GenericGrid, GenericTextInput } from \"views/Components/Generic\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass StatementMessageDisclosure extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Start Date\",\r\n\t\t\t\taccessor: \"StartDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"End Date\",\r\n\t\t\t\taccessor: \"EndDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Disclosure\",\r\n\t\t\t\taccessor: \"Disclosure\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Messaging\",\r\n\t\t\t\taccessor: \"Message\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.maxLength1000 = { maxLength: 1000 };\r\n\r\n\t\tthis.validateProperties = [{ \"ExpiryDate\": \"Expiry date\" }, { \"Disclosure\": \"Disclosure\" }, { \"Message\": \"Message\" }];\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {}\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Statement Message\");\r\n\t\t}\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tconst list = { ...this.state.list };\r\n\t\tvar temp = list[index];\r\n\r\n\t\ttemp.ExpiryDate = temp.EndDate == null\r\n\t\t\t? null\r\n\t\t\t: Formatter.FormatDateUtc(temp.EndDate);\r\n\r\n\t\tthis.setState({ model: temp, selected: index });\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\t\tvar { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/lmsapi/v1.0/Statement/SearchMessageDisclosure\", model);\r\n\r\n\t\tmodel.IsCode = false;\r\n\t\tmodel.IsDescription = false;\r\n\t\tmodel.IsOrder = false;\r\n\r\n\t\tthis.setState({ model, list: result || [] });\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, list: [], selected: null });\r\n\t}\r\n\r\n\tClearDisclosure = () => {\r\n\t\tvar { model } = this.state;\r\n\t\tmodel.Disclosure = null;\r\n\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tClearMessage = () => {\r\n\t\tvar { model } = this.state;\r\n\t\tmodel.Message = null;\r\n\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, list, selected } = this.state;\r\n\t\tconst { Disabled, ExecuteApiPost, showConfirmMessageInDelete } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t ExecuteApiPost(\"/lmsapi/v1.0/Statement/SaveMessageDisclosure\", model, model, this.validateProperties, null, [this.Clear, this.Search], true)\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Update\",\r\n\t\t\t\t\t\t\tDisabled: Disabled || selected == null,\r\n\t\t\t\t\t\t\tOnClick: () => ExecuteApiPost(\"/lmsapi/v1.0/Statement/SaveMessageDisclosure\", model, model, this.validateProperties, null, [this.Clear, this.Search], true)\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Delete\",\r\n\t\t\t\t\t\t\tDisabled: Disabled || selected == null,\r\n\t\t\t\t\t\t\tOnClick: () => showConfirmMessageInDelete(() => ExecuteApiPost(\"/lmsapi/v1.0/Statement/DeleteMessageDisclosure\", { Id: model.Id }, null, null, null, [this.Clear, this.Search], true))\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Clear\",\r\n\t\t\t\t\t\t\tDisabled: Disabled,\r\n\t\t\t\t\t\t\tOnClick: this.Clear\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nStatementMessageDisclosure.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default StatementMessageDisclosure;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { DocumentIcon } from \"core/Icons\";\r\nimport { TaskPool } from \"core/TaskPool\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport {\r\n GenericDateInput,\r\n GenericExpansionPanel,\r\n GenericGrid,\r\n GenericNumberInput,\r\n GenericSelectInput,\r\n GenericTextInput,\r\n} from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\n\r\nclass StatementV3List extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n this.loadTaskPool = new TaskPool(\r\n this.handleLoadTaskPoolAppend,\r\n this.handleLoadTaskPoolCompleted\r\n );\r\n\r\n this.columnsStatement = [\r\n {\r\n Header: \"Actions\",\r\n accessor: \"Actions\",\r\n Cell: (row) => (\r\n
\r\n \r\n props.ExecuteApiFileDownloadWithGenericResponse(\r\n \"/lmsapi/v1.0/Statement/GenerateStatementV3PdfFile\",\r\n row.original,\r\n `${\r\n row.original.Statement.Application.ApplicationNumber\r\n }-Statement${Math.floor(Math.random() * Math.floor(999999))}`,\r\n \"pdf\"\r\n )\r\n }\r\n />\r\n
\r\n ),\r\n sortable: false,\r\n filterable: false,\r\n },\r\n {\r\n Header: \"Application Number\",\r\n accessor: \"Statement.Application.ApplicationNumber\",\r\n },\r\n {\r\n Header: \"Card Number\",\r\n accessor: \"CardNumber\",\r\n },\r\n {\r\n Header: \"Statement Period Begin Date\",\r\n accessor: \"FormattedBeginDate\",\r\n },\r\n {\r\n Header: \"Statement Date\",\r\n accessor: \"FormattedEndDate\",\r\n },\r\n {\r\n Header: \"Statement Due Date\",\r\n accessor: \"FormattedDueDate\",\r\n },\r\n {\r\n Header: \"Opening Balance\",\r\n accessor: \"OpeningBalance\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Closing Balance\",\r\n accessor: \"ClosingBalance\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Minumum Payment Amount\",\r\n accessor: \"MinimumPayment\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Payments\",\r\n accessor: \"PaymentAmount\",\r\n },\r\n {\r\n Header: \"Refunds and Credits\",\r\n accessor: \"RefundsAndCredits\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Debit Adjustments\",\r\n accessor: \"DebitAdjustments\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Purchases\",\r\n accessor: \"PurchaseAmount\",\r\n },\r\n {\r\n Header: \"Cash Advance\",\r\n accessor: \"FormattedTotalCashAdvanceAmount\",\r\n },\r\n {\r\n Header: \"Fees Charged\",\r\n accessor: \"FeesCharged\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Interest Charged\",\r\n accessor: \"InterestCharged\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Waiting Payment\",\r\n accessor: \"WaitingPayment\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Pending Total\",\r\n accessor: \"PendingTotal\",\r\n type: GridColumnType.Money,\r\n ColumnType: GridColumnType.Money,\r\n },\r\n ];\r\n this.columnsStatementTransaction = [\r\n {\r\n Header: \"Transaction Type\",\r\n accessor: \"TransactionType\",\r\n },\r\n {\r\n Header: \"Transaction Date\",\r\n accessor: \"FormattedTransactionDate\",\r\n },\r\n {\r\n Header: \"Description\",\r\n accessor: \"Description\",\r\n },\r\n\r\n {\r\n Header: \"Transaction Amount\",\r\n accessor: \"FormattedAmount\",\r\n },\r\n {\r\n Header: \"Transaction Fee and Interest Amount\",\r\n accessor: \"FormattedFeeAmount\",\r\n },\r\n ];\r\n\r\n this.emptyObject = {};\r\n this.parameterApplicantId = {};\r\n\r\n this.renderItemLOCTransaction = {};\r\n\r\n this.sortedApplicantFullName = { Member: \"Id\", Desc: true };\r\n this.sortedTranDate = [{ id: \"FormattedTransactionDate\", desc: true }];\r\n\r\n this.state = {\r\n vModel: {},\r\n model: {\r\n ApplicantId: props.ApplicantId || -2,\r\n ApplicationId: props.ApplicationId || 0,\r\n },\r\n list: [],\r\n isPaymentDialogOpen: false,\r\n isAdjustmentDialogOpen: false,\r\n isAdjustmentAdjustDialogOpen: false,\r\n panelCurrentTermIsActive: false,\r\n panelTransactionIsActive: false,\r\n };\r\n }\r\n\r\n componentDidMount() {\r\n const { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n if (setAppCenterTitle) {\r\n setAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n }\r\n if (setAppLeftTitle) {\r\n setAppLeftTitle(\"Statement V3 List\");\r\n }\r\n\r\n if (this.props.ApplicantId > 0) {\r\n this.Search();\r\n }\r\n }\r\n handleLoadTaskPoolCompleted = () => {\r\n this.setState({ isLoading: false });\r\n };\r\n\r\n handleLoadTaskPoolAppend = () => {\r\n this.setState({ isLoading: true });\r\n };\r\n\r\n ValueChanged = (name, value) => {\r\n this.setState((state) => {\r\n var model = state.model;\r\n var list = state.list;\r\n var transactionList = state.transactionList;\r\n var currentTermTransactionList = state.currentTermTransactionList;\r\n\r\n model[name] = value;\r\n\r\n if (name == \"ApplicantId\") {\r\n list = [];\r\n transactionList = [];\r\n currentTermTransactionList = [];\r\n model.ApplicationId = null;\r\n }\r\n\r\n return { model, list, transactionList, currentTermTransactionList };\r\n });\r\n };\r\n\r\n GetParameterApplicantId = () => {\r\n const { model } = this.state;\r\n\r\n this.parameterApplicantId.ApplicantId = model.ApplicantId;\r\n\r\n return this.parameterApplicantId;\r\n };\r\n\r\n Search = async () => {\r\n const { model } = this.state;\r\n const { ExecuteApiPost } = this.props;\r\n var result = await ExecuteApiPost(\r\n \"/lmsapi/v1.0/Statement/StatementV3Search\",\r\n model,\r\n null,\r\n null,\r\n this.ValidateSearch\r\n );\r\n\r\n if (result != null) {\r\n var list = result.StatementList || [];\r\n var currentTermTransactionList = result.CurrentTermTransaction || [];\r\n var StatementDate = result.StatementDate;\r\n var StatementBeginDate = result.StatementBeginDate;\r\n var LastPaymentDate = result.LastPaymentDate;\r\n var FormattedCardLimit = result.FormattedCardLimit;\r\n var WalletAccountBalance = result.WalletAccountBalance;\r\n var CardNumber = result.CardNumber;\r\n var CardFinancialId = result.CardFinancialId;\r\n var CATMCardId = result.CATMCardId;\r\n\r\n this.setState({\r\n list,\r\n transactionList: [],\r\n currentTermTransactionList,\r\n CardNumber,\r\n FormattedCardLimit,\r\n CardFinancialId,\r\n CATMCardId,\r\n WalletAccountBalance,\r\n StatementDate,\r\n StatementBeginDate,\r\n LastPaymentDate,\r\n panelCurrentTermIsActive: true,\r\n });\r\n }\r\n };\r\n\r\n Clear = () => {\r\n this.setState({\r\n model: {},\r\n list: [],\r\n transactionList: [],\r\n currentTermTransactionList: [],\r\n selected: null,\r\n panelCurrentTermIsActive: false,\r\n panelTransactionIsActive: false,\r\n });\r\n };\r\n\r\n ValidateSearch = () => {\r\n const { model, vModel } = this.state;\r\n const { showValidationErrors } = this.props;\r\n var messages = [];\r\n\r\n if (!model.ApplicantId || model.ApplicantId == -2) {\r\n vModel.ApplicantId = true;\r\n messages.push(\"Applicant cannot be empty.\");\r\n } else {\r\n vModel.ApplicantId = false;\r\n }\r\n\r\n if (!model.ApplicationId) {\r\n vModel.ApplicationId = true;\r\n messages.push(\"Application cannot be empty.\");\r\n } else {\r\n vModel.ApplicationId = false;\r\n }\r\n\r\n if (messages.length > 0) {\r\n showValidationErrors(messages);\r\n\r\n return false;\r\n }\r\n\r\n this.setState({ vModel });\r\n\r\n return true;\r\n };\r\n\r\n GetStatementTransaction = async (statementId) => {\r\n const { ExecuteApiPost } = this.props;\r\n var result = await ExecuteApiPost(\r\n \"/lmsapi/v1.0/Statement/GetStatementV3Transaction\",\r\n { Id: statementId }\r\n );\r\n\r\n this.setState({\r\n transactionList: result || [],\r\n panelTransactionIsActive: true,\r\n });\r\n };\r\n\r\n SelectedRowChange = (index) => {\r\n const { list } = this.state;\r\n const model = list[index];\r\n\r\n if (model && model.Statement) {\r\n this.GetStatementTransaction(model.Statement.Id);\r\n }\r\n };\r\n\r\n MakeCardTransaction = () => {\r\n const { model, CardFinancialId, CATMCardId } = this.state;\r\n const { ExecuteApiPost } = this.props;\r\n var request = {\r\n CardFinancialId: CardFinancialId || 0,\r\n CATMCardId: CATMCardId || 0,\r\n Amount: model.Amount,\r\n TransactionDate: model.TransactionDate,\r\n TransactionCode: model.TransactionCode,\r\n };\r\n\r\n ExecuteApiPost(\r\n \"/lmsapi/v1.0/lmstest/MakeCardTransactionV3\",\r\n request,\r\n null,\r\n null,\r\n null,\r\n [this.Search]\r\n );\r\n };\r\n\r\n MakeDailyStatementProcess = () => {\r\n const { model, CardFinancialId, CATMCardId } = this.state;\r\n const { ExecuteApiPost } = this.props;\r\n var request = {\r\n CardFinancialId: CardFinancialId,\r\n CATMCardId: CATMCardId,\r\n ApplicationId: model.ApplicationId,\r\n ProcessLocalDate: model.TransactionDate,\r\n };\r\n\r\n ExecuteApiPost(\r\n \"/lmsapi/v1.0/lmstest/SecureCardDailyStatementV3Process\",\r\n request,\r\n null,\r\n null,\r\n null,\r\n [this.Search]\r\n );\r\n };\r\n\r\n MakeDailySettlementProcess = () => {\r\n const { model, CardFinancialId, CATMCardId } = this.state;\r\n const { ExecuteApiPost } = this.props;\r\n var request = {\r\n CardFinancialId: CardFinancialId,\r\n CATMCardId: CATMCardId,\r\n ApplicationId: model.ApplicationId,\r\n ProcessLocalDate: model.TransactionDate,\r\n };\r\n\r\n ExecuteApiPost(\r\n \"/lmsapi/v1.0/lmstest/SecureCardDailySettlementV3Process\",\r\n request,\r\n null,\r\n null,\r\n null,\r\n [this.Search]\r\n );\r\n };\r\n RenderItemApplication = (d) => {\r\n this.renderItemApplication = `${d.ApplicationNumber} - ${d.LoanType.ParameterDesc}`;\r\n return this.renderItemApplication;\r\n };\r\n\r\n render() {\r\n const {\r\n model,\r\n vModel,\r\n list,\r\n transactionList,\r\n currentTermTransactionList,\r\n panelCurrentTermIsActive,\r\n panelTransactionIsActive,\r\n } = this.state;\r\n const { Disabled, IsPopUp } = this.props;\r\n var IsClient = ClientHelper.IsClient();\r\n\r\n return (\r\n
\r\n {!IsPopUp && (\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n `${d.UniqueClientId} - ${d.Name}`}\r\n Value={model.UniqueClientId || \"\"}\r\n ValueChanged={this.ValueChanged}\r\n CanClear\r\n All\r\n Required\r\n Disabled={IsClient}\r\n DefaultIndex={IsClient ? 0 : -1}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n 0\r\n ? this.loadTaskPool\r\n : null\r\n }\r\n KeyValueMember=\"Id\"\r\n LabelMd={5}\r\n RenderItem={this.RenderItemApplication}\r\n Value={model.ApplicationId}\r\n ValueChanged={this.ValueChanged}\r\n Disabled={Disabled}\r\n IsInvalid={vModel.ApplicationId}\r\n Required\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n {window.Environment != \"Production\" && (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {/* \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t */}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n 0 ||\r\n this.state.CATMCardId > 0\r\n )\r\n }\r\n size=\"sm\"\r\n color=\"black\"\r\n onClick={this.MakeCardTransaction}\r\n >\r\n Create Credit Transaction\r\n \r\n \r\n {/* \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t 0 || this.state.CATMCardId > 0)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsize=\"sm\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcolor=\"black\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tonClick={this.MakeDailySettlementProcess}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tMake Settlement\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t */}\r\n \r\n 0 ||\r\n this.state.CATMCardId > 0\r\n )\r\n }\r\n size=\"sm\"\r\n color=\"black\"\r\n onClick={this.MakeDailyStatementProcess}\r\n >\r\n Create Statement\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n )}\r\n \r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\nStatementV3List.propTypes = {\r\n ExecuteApiPost: PropTypes.func,\r\n ExecuteApiFileDownload: PropTypes.func,\r\n setAppLeftTitle: PropTypes.func,\r\n setAppCenterTitle: PropTypes.func,\r\n Disabled: PropTypes.bool,\r\n menuId: PropTypes.any,\r\n ApprovalData: PropTypes.any,\r\n After: PropTypes.any,\r\n IsPopUp: PropTypes.bool,\r\n};\r\n\r\nexport default StatementV3List;\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericDateInput, GenericSelectInput} from \"views/Components/Generic\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { ProgramCodes, MenuCodes, } from \"views/Constants/Constant.js\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent\";\r\n\r\nclass UnpaidFeeAndInterest extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tlet IsSwitchReport = this.props.MenuCode == MenuCodes.Menu_SwitchReport;\r\n\t\tthis.emptyObject = {};\r\n\t\tthis.sortedName = { Member: \"Name\" };\r\n\r\n\t\tthis.emptyObject = {};\r\n\t\tthis.sortedName = { Member: \"Name\" };\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient()\r\n\t\t\t\t? ClientHelper.GetClientRowId()\r\n\t\t\t\t: undefined,\r\n\t\t\tCustomer: null,\r\n\t\t\tDefaultAccount: null,\r\n\t\t\tPaymentStatusId: null,\r\n\t\t\tToDate: null,\r\n\t\t\tFromDate: null,\r\n\t\t\tCardTokenNumber: null,\r\n\t\t\tCustomerNumber: null,\r\n\t\t};\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Proceed\",\r\n\t\t\t\taccessor: \"IsProceed\",\r\n\t\t\t\ttype: GridColumnType.YesNo\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"Amount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Number\",\r\n\t\t\t\taccessor: \"CustomerNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"CustomerName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Masked Card Number\",\r\n\t\t\t\taccessor: \"MaskedCardNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Code\",\r\n\t\t\t\taccessor: \"TransactionCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Fee Parameter Code\",\r\n\t\t\t\taccessor: \"FeeParameterCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Try Count\",\r\n\t\t\t\taccessor: \"TryCount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Last Try DateTime\",\r\n\t\t\t\taccessor: \"LastTryDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Insert DateTime\",\r\n\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Insert User\",\r\n\t\t\t\taccessor: \"InsertUser\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Update DateTime\",\r\n\t\t\t\taccessor: \"UpdateDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Update User\",\r\n\t\t\t\taccessor: \"UpdateUser\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.state = {\r\n\t\t\t// model: {},\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tisLoading: false,\r\n\t\t\tcheckedAccounts: [],\r\n\t\t\tClientTypeParameter: {},\r\n\t\t\tpanelTransactionIsActive: false,\r\n\t\t\tlist: [],\r\n\t\t\tisBackOffice: ClientHelper.IsBackOffice(),\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"UnApplied Fee and Interest\");\r\n\t\t}\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\tSearch = async () => {\r\n\t\tif (!this.Validate()) return;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tconst model = { ...this.state.model };\r\n\t\tconst request = {\r\n\t\t\tFromDate: model.FromDate,\r\n\t\t\tToDate: model.ToDate,\r\n\t\t\tCustomerNumber: model.Customer == null ? null : model.Customer.CustomerNumber,\r\n\t\t\tUniqueClientId: model.UniqueClientId,\r\n\t\t};\r\n\t\tvar result = await ExecuteApiPost(\r\n\t\t\t\"/lmsapi/v1.0/Statement/UnpaidFeeAndInterestSearch\",\r\n\t\t\trequest,\r\n\t\t\tnull,\r\n\t\t\tnull,\r\n\t\t\tnull\r\n\t\t);\r\n\r\n\t\tif (result != null) {\r\n\t\t\tthis.setState({ list: result || [] });\r\n\t\t}\r\n\t};\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, list: [], selected: null, checkedAccounts: [] });\r\n\t};\r\n\r\n\tValidate = () => {\r\n\t\tvar { model } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errors = [];\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t};\r\n\r\n\tGetRenderItemUniqueClient = (x) => {\r\n\t\tthis.renderItemUniqueClient = `${x.Name} - ${x.UniqueClientId}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t};\r\n\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst model = {\r\n\t\t\t...this.state.model,\r\n\t\t};\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t};\r\n\thandleChangeForCustomer = (name, newValue) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tconst initialModel = { ...this.initialModel };\r\n\t\tif (name === \"Customer\") {\r\n\t\t\tif (newValue != null) {\r\n\t\t\t\tmodel.Customer = newValue;\r\n\t\t\t\tif (newValue.Accounts != null && newValue.Accounts.length > 0) {\r\n\t\t\t\t\tmodel.CustomerNumber = newValue.Accounts[0].CustomerNumber;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmodel.CustomerNumber = null;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tmodel.Customer = initialModel.Customer;\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\t};\r\n\tHandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tfilterModel: {},\r\n\t\t\tselected: null,\r\n\t\t\tlist: [],\r\n\t\t});\r\n\t};\r\n\r\n\tFillCustomer = (customer) => {\r\n\t\tthis.handleChange(\"Customer\", customer);\r\n\t};\r\n\trender() {\r\n\t\tconst {\r\n\t\t\tmodel,\r\n\t\t\tmodel2,\r\n\t\t\tlist,\r\n\t\t\tpanelTransactionIsActive,\r\n\t\t\tisBackOffice,\r\n\t\t} = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.ValueChanged}\r\n\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={IsClient}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDefaultIndex={IsClient ? 0 : -1}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t { this.handleChange(\"Customer\", customer); }}\r\n\t\t\t\t\t\t\t\t\t\t\t\tPrograms={[ProgramCodes.Prepaid]}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={model.UniqueClientId == undefined} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nUnpaidFeeAndInterest.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any,\r\n};\r\n\r\nexport default UnpaidFeeAndInterest;\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericDateInput, GenericExpansionPanel, GenericGrid, GenericSelectInput } from \"views/Components/Generic\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass TransUnionSummaryReport extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Applicant Name\",\r\n\t\t\t\taccessor: \"Applicant.FullName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Previous Inquiry Dates\",\r\n\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Bankruptcies\",\r\n\t\t\t\taccessor: \"Bankruptcies\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Banking Closed For Cause\",\r\n\t\t\t\taccessor: \"BankingClosedForCause\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Collection Inquiries\",\r\n\t\t\t\taccessor: \"CollectionInquiries\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Trade Last Opened\",\r\n\t\t\t\taccessor: \"TradeLastOpened\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Id Mismatch Alert\",\r\n\t\t\t\taccessor: \"IdMismatchAlert.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Factors\",\r\n\t\t\t\taccessor: \"Factors\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"LegalItems\",\r\n\t\t\t\taccessor: \"LegalItems\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Registered Items\",\r\n\t\t\t\taccessor: \"RegisteredItems\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Inquiries Within Six Months\",\r\n\t\t\t\taccessor: \"InquiriesWithinSixMonths\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Current Negative Trade\",\r\n\t\t\t\taccessor: \"CurrentNegativeTrade\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"High Risk Fraud Alert\",\r\n\t\t\t\taccessor: \"HighRiskFraudAlert.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Collections\",\r\n\t\t\t\taccessor: \"Collections\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Inquiries\",\r\n\t\t\t\taccessor: \"Inquiries\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Trade First Opened\",\r\n\t\t\t\taccessor: \"TradeFirstOpened\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Paid Trade\",\r\n\t\t\t\taccessor: \"PaidTrade\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Credit Vision Risk Score\",\r\n\t\t\t\taccessor: \"CreditVisionRiskScore\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.validateProperties = [{ \"ApplicantId\": \"Applicant\" }];\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {}\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"LOAN ORIGINATOR SYSTEM\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"TransUnion Credit History\");\r\n\t\t}\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\t\tvar { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/lmsapi/v1.0/LoanCreditHistory/Search\", model, model, this.validateProperties);\r\n\r\n\t\tthis.setState({ list: result || [] });\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, list: [] });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, list } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nTransUnionSummaryReport.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default TransUnionSummaryReport;","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericTextInput, GenericSelectInput, GenericDateInput, GenericNumberInput, GenericCheckInput, GenericPage } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { ProgramCodes, CardTransferTypes, GridColumnType, EFTTransactionTypes } from \"views/Constants/Constant\";\r\nimport StringHelper from \"core/StringHelper.js\";\r\nimport ParameterComponent from 'views/Components/ParameterComponent';\r\nclass MastercardCreateCardTransfer extends GenericPage {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.getappCenterTitle = \"Empty\";\r\n\t\tthis.getappLeftTitle = \"Empty\";\r\n\t\tthis.defaultClientModel = {\r\n\t\t\tIsCorporate: false,\r\n\t\t\tLegalName: \"\",\r\n\t\t\tName: \"\",\r\n\t\t\tMiddleName: \"\",\r\n\t\t\tLastName: \"\",\r\n\t\t\tAddressLine1: \"\",\r\n\t\t\tAddressLine2: \"\",\r\n\t\t\tZipCode: \"\",\r\n\t\t\tCityName: \"\",\r\n\t\t\tProvinceName: \"\",\r\n\t\t\tCountryName: \"\"\r\n\t\t};\r\n\r\n\t\tthis.defaultReceiverModel = {\r\n\t\t\tIsCorporate: true,\r\n\t\t\tRecipientCompanyName: \"\",\r\n\t\t\tName: \"\",\r\n\t\t\tMiddleName: \"\",\r\n\t\t\tSurName: \"\",\r\n\t\t\tAddressLine1: \"\",\r\n\t\t\tAddressLine2: \"\",\r\n\t\t\tZipCode: \"\",\r\n\t\t\tCityName: \"\",\r\n\t\t\tProvinceName: \"\",\r\n\t\t\tCountryName: \"\",\r\n\t\t\tCountryCode: \"\",\r\n\t\t\tEmail: \"\",\r\n\t\t\tBirthDate: null\r\n\t\t};\r\n\r\n\t\tthis.marginLeft2 = { marginLeft: 2 };\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"ClientCustomerName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Source Account\",\r\n\t\t\t\taccessor: \"SourceAccount\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Destination Account\",\r\n\t\t\t\taccessor: \"DestinationAccount\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Currency\",\r\n\t\t\t\taccessor: \"Currency\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t// {\r\n\t\t\t// \tHeader: \"Transfer Reason\",\r\n\t\t\t// \taccessor: \"TransferReason\",\r\n\t\t\t// },\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"TransactionAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t// {\r\n\t\t\t// \tHeader: \"Status\",\r\n\t\t\t// \taccessor: \"Status\",\r\n\t\t\t// },\r\n\t\t\t// {\r\n\t\t\t// \tHeader: \"Error Code\",\r\n\t\t\t// \taccessor: \"ErrorCode\",\r\n\t\t\t// }\r\n\t\t\t{\r\n\t\t\t\tHeader: \"State\",\r\n\t\t\t\taccessor: \"TransactionState\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.uniqueClientId = ClientHelper.GetClientRowId();\r\n\t\tthis.EmptyObj = {};\r\n\r\n\t\tthis.MaxLen = { maxLength: 30 };\r\n\t\tthis.MaxLen35 = { maxLength: 35 };\r\n\t\tthis.ParameterCountrySortOrderIndex = { Member: \"OrderIndex\" };\r\n\t\tthis.SortedCountry = { Member: \"OrderIndex\" };\r\n\t\tthis.SortedCityProvince = { Member: \"ParameterDesc\" };\r\n\r\n\t\tthis.defaultModel = {\r\n\t\t\t// Detail\r\n\t\t\tDateRequest: DateHelper.GetDateTime(),\r\n\t\t\tValueEffective: DateHelper.GetDateTime(),\r\n\t\t\tTotalAmount: 0,\r\n\t\t\tAmount: 0,\r\n\t\t\tCurrencyId: null,\r\n\t\t\tPurposeOfWire: \"\",\r\n\t\t\tAccountId: null,\r\n\t\t\tHasSubSender: false,\r\n\t\t\tFileId: null,\r\n\t\t\tSendEmailAddress: \"\",\r\n\t\t\tIsSendEmailAddressValid: false,\r\n\t\t\tAmountPrefix: \"$\"\r\n\t\t};\r\n\r\n\t\tthis.defaultStateModel = {\r\n\t\t\tIsClearDialogOpen: false,\r\n\t\t\tSaveConfirmDialog: false,\r\n\t\t\tIsSubmitTemplate: false,\r\n\t\t\tFileResultDialog: false,\r\n\t\t\tAlert: null,\r\n\t\t\tIsMsbClient: false,\r\n\r\n\t\t};\r\n\r\n\t\tthis.defaultFileModel = {\r\n\t\t\tFile: null,\r\n\t\t\tFileName: \"\"\r\n\t\t};\r\n\r\n\r\n\t\tthis.state = {\r\n\t\t\tisFileDialogOpen: false,\r\n\t\t\tvModel: {},\r\n\t\t\tModel: {},\r\n\t\t\ttrxResponse: {},\r\n\t\t\tcardList: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tClientInfo: { ...this.defaultClientModel },\r\n\t\t\tReceiverInfo: { ...this.defaultReceiverModel },\r\n\r\n\t\t\tStateModel: { ...this.defaultStateModel },\r\n\t\t\tUrl: null,\r\n\t\t\tCurrencyCode: null,\r\n\t\t\tCountryCode: null,\r\n\t\t\tisB2P: false,\r\n\t\t\tOriginalAmount: null,\r\n\t\t\tBidRate: 0\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\r\n\t\tif (setAppLeftTitle)\r\n\t\t\tsetAppLeftTitle(\"Create Cross Border Transfer\");\r\n\t\tif (setAppCenterTitle)\r\n\t\t\tsetAppCenterTitle(\"CARD TRANSFER\");\r\n\r\n\r\n\t\tthis.LoadTemplateList(() => {\r\n\t\t\tthis.LoadClientInfo(this.LoadCustomerContract);\r\n\t\t});\r\n\t\tthis.FetchCanadaPost();\r\n\r\n\t\tthis.setState({ loadingCompleted: true });\r\n\t}\r\n\r\n\tRenderCountry(d) {\r\n\t\treturn d.ISO2 + \" - \" + d.Name;\r\n\t}\r\n\r\n\tFetchCanadaPost() {\r\n\t\tvar parent = this;\r\n\r\n\t\tthis.ExecutePostRequest(\"/coreapi/v1.0/Parameter/Search\",\r\n\t\t\t{\r\n\t\t\t\tParameterCode: \"CanadaPostApiKey\",\r\n\t\t\t\tParameterValue: \"CP\"\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (responseData.Item == null) {\r\n\t\t\t\t\tconsole.log(\"Canada Post Api key not fetched !\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item[0] == null) {\r\n\t\t\t\t\tconsole.log(\"Canada Post Api key not fetched !\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvar apikey = responseData.Item[0].ParameterDesc;\r\n\t\t\t\tconsole.log(\"KEY CP \", apikey);\r\n\t\t\t\tvar FillBankAddressFields = this.FillBankAddressFields;\r\n\t\t\t\tvar FillBeneficiaryAddressFields = this.FillBeneficiaryAddressFields;\r\n\t\t\t\t// @ts-ignore\r\n\t\t\t\tvar url = window.CanadaPostAddressCompleteUrl;\r\n\t\t\t\tvar path = url + apikey;\r\n\t\t\t\tvar CanadaPostRequest = this.SubmitCanadaPostRequest;\r\n\r\n\t\t\t\tvar pca;\r\n\t\t\t\tconst script = document.createElement(\"script\");\r\n\t\t\t\tscript.src = path;\r\n\t\t\t\tscript.async = false;\r\n\t\t\t\tdocument.head.appendChild(script);\r\n\t\t\t\tscript.onload = function () {\r\n\t\t\t\t\t// @ts-ignore\r\n\t\t\t\t\tpca = window.pca;\r\n\t\t\t\t\tif (pca != null) {\r\n\t\t\t\t\t\tvar fields = [\r\n\t\t\t\t\t\t\t{ element: \"bank-street-address\", field: \"Line1\", mode: pca.fieldMode.SEARCH },\r\n\t\t\t\t\t\t\t{ element: \"bank-street-address2\", field: \"Line2\", mode: pca.fieldMode.POPULATE },\r\n\t\t\t\t\t\t\t{ element: \"bank-postcode\", field: \"PostalCode\", mode: pca.fieldMode.SEARCH }\r\n\t\t\t\t\t\t];\r\n\t\t\t\t\t\tvar options = {\r\n\t\t\t\t\t\t\tkey: apikey\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t\tvar control = new pca.Address(fields, options);\r\n\r\n\t\t\t\t\t\tcontrol.listen(\"populate\", function (address) {\r\n\t\t\t\t\t\t\tFillBankAddressFields(address);\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\tvar fields2 = [\r\n\t\t\t\t\t\t\t{ element: \"beneficiary-street-address\", field: \"Line1\", mode: pca.fieldMode.SEARCH },\r\n\t\t\t\t\t\t\t{ element: \"beneficiary-street-address2\", field: \"Line2\", mode: pca.fieldMode.POPULATE },\r\n\t\t\t\t\t\t\t{ element: \"beneficiary-postcode\", field: \"PostalCode\", mode: pca.fieldMode.SEARCH }\r\n\t\t\t\t\t\t];\r\n\t\t\t\t\t\tCanadaPostRequest();\r\n\r\n\t\t\t\t\t\tvar control2 = new pca.Address(fields2, options);\r\n\r\n\t\t\t\t\t\tcontrol2.listen(\"populate\", function (address) {\r\n\t\t\t\t\t\t\tFillBeneficiaryAddressFields(address);\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t});\r\n\t}\r\n\r\n\tSubmitCanadaPostRequest = async () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tvar requestdata = {\r\n\r\n\t\t\tUniqueClientId: null,\r\n\t\t\tMenuCode: this.props.MenuCode,\r\n\t\t\tAppCenterTitle: this.getappCenterTitle,\r\n\t\t\tAppLeftTitle: this.getappLeftTitle\r\n\t\t};\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Reporting/CanadaPostRequestReportInsert\",\r\n\t\t\trequestdata,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (responseData.Item != null) {\r\n\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t);\r\n\t\t// var result = await this.props.ExecuteApiPost(\"/bankapi/v1.0/Reporting/CanadaPostRequestReportInsert\", requestdata);\r\n\t}\r\n\r\n\tFillBankAddressFields(model, continueWith = null) {\r\n\t\tthis.ExecutePostRequest(\"/bankapi/v1.0/WireCountry/CanadaPost\",\r\n\t\t\tmodel,\r\n\t\t\tresponseData => {\r\n\t\t\t\tconst { Template } = this.state;\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tTemplate.BankCountryId = responseData.Item.CountryId;\r\n\t\t\t\t\tTemplate.BankProvinceId = responseData.Item.ProvinceId;\r\n\t\t\t\t\tTemplate.BankCityId = responseData.Item.CityId;\r\n\t\t\t\t\tTemplate.IsDomestic = model.CountryIso2 == \"CA\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\tTemplate.BankCountryId = 0;\r\n\t\t\t\t\tTemplate.BankProvinceId = 0;\r\n\t\t\t\t\tTemplate.BankCityId = 0;\r\n\t\t\t\t}\r\n\t\t\t\tTemplate.BankAddressLine1 = model.Line1;\r\n\t\t\t\tTemplate.BankAddressLine2 = model.Line2;\r\n\t\t\t\tTemplate.BankZipCode = model.PostalCode;\r\n\t\t\t\tthis.setState({ Template }, continueWith);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tFillBeneficiaryAddressFields(model, continueWith = null) {\r\n\t\tthis.ExecutePostRequest(\"/bankapi/v1.0/WireCountry/CanadaPost\",\r\n\t\t\tmodel,\r\n\t\t\tresponseData => {\r\n\t\t\t\tconst { Template } = this.state;\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tTemplate.CountryId = responseData.Item.CountryId;\r\n\t\t\t\t\tTemplate.ProvinceId = responseData.Item.ProvinceId;\r\n\t\t\t\t\tTemplate.CityId = responseData.Item.CityId;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tTemplate.CountryId = 0;\r\n\t\t\t\t\tTemplate.ProvinceId = 0;\r\n\t\t\t\t\tTemplate.CityId = 0;\r\n\t\t\t\t}\r\n\t\t\t\tTemplate.AddressLine1 = model.Line1;\r\n\t\t\t\tTemplate.AddressLine2 = model.Line2;\r\n\t\t\t\tTemplate.ZipCode = model.PostalCode;\r\n\t\t\t\tthis.setState({ Template }, continueWith);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tLoadTemplateList(continueWith = null) {\r\n\t\tthis.ExecutePostRequest(\"/bankapi/v1.0/WireBeneficiaryTemplate/Search\", {},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ TemplateList: responseData.Item || [] }, continueWith);\r\n\t\t\t});\r\n\t}\r\n\r\n\tLoadClientInfo(continueWith = null) {\r\n\t\tthis.ExecutePostRequest(\"/bankapi/v1.0/WireTransferSender/GetSenderInfo\", {},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ ClientInfo: responseData.Item }, continueWith);\r\n\t\t\t});\r\n\t}\r\n\r\n\tLoadReceiverInfo(clientId) {\r\n\t\tthis.ExecutePostRequest(\"/bankapi/v1.0/MastercardXBorder/GetClientById\", clientId,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ ReceiverInfo: responseData.Item });\r\n\t\t\t});\r\n\t}\r\n\r\n\tLoadCustomerContract(continueWith = null) {\r\n\t\tthis.ExecuteGetRequest(\"/bankapi/v1.0/CustomerContract/GetByCustomerId/Id?Id=\",\r\n\t\t\t(responseData) => {\r\n\t\t\t\tconst { StateModel } = this.state;\r\n\t\t\t\tvar isSmbClient = false;\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tresponseData.Item.forEach(element => {\r\n\t\t\t\t\t\tif (element.Program != null && element.Program.ProgramCode == ProgramCodes.Bank_Programs_Bank_Account) {\r\n\t\t\t\t\t\t\tisSmbClient = element.IsMsbClient == true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\tStateModel.IsMsbClient = isSmbClient;\r\n\t\t\t\tthis.setState({ StateModel }, continueWith);\r\n\t\t\t});\r\n\t}\r\n\r\n\tValueChanged = (name, newValue, data) => {\r\n\t\tconst { Model, ReceiverInfo } = this.state;\r\n\t\tModel[name] = newValue;\r\n\r\n\t\tif (name == \"TransactionType\" && data?.ParameterValue == EFTTransactionTypes.Debit) {\r\n\t\t\tthis.setState({ Url: \"/bankapi/v1.0/MastercardXBorder/CreatePaymentReverse\" });\r\n\t\t}\r\n\t\tif (name == \"TransactionType\" && data?.ParameterValue == EFTTransactionTypes.Credit) {\r\n\t\t\tthis.setState({ Url: \"/bankapi/v1.0/MastercardXBorder/CreatePaymentForward\" });\r\n\t\t}\r\n\t\tif (name == \"PaymentTransferTypeId\" && data?.ParameterValue == \"B2P\") {\r\n\t\t\tthis.setState({ isB2P: true });\r\n\t\t}\r\n\t\tif (name == \"PaymentTransferTypeId\" && data?.ParameterValue == \"B2B\") {\r\n\t\t\tthis.setState({ isB2P: false });\r\n\t\t}\r\n\t\tif (name == \"CustomerNumber\") {\r\n\t\t\tthis.LoadReceiverInfo(data.Id);\r\n\t\t}\r\n\t\tif (name == \"CurrencyId\") {\r\n\t\t\tthis.setState({ CountryCode: data.Description.substring(0, 3), BidRate: data.RateTierBidRate });\r\n\t\t}\r\n\r\n\t\tif (name == \"Amount\") {\r\n\t\t\tvar originalAmount = newValue * this.state.BidRate;\r\n\t\t\tModel[\"OriginalAmount\"] = originalAmount;\r\n\t\t}\r\n\r\n\t\tthis.setState({ Model });\r\n\t}\r\n\r\n\thandleSearch = async () => {\r\n\t\tthis.setState(state => ({ trxGridToken: !state.trxGridToken }));\r\n\t}\r\n\r\n\tHandleSubmit = async () => {\r\n\t\tconst Model = { ...this.state.Model };\r\n\t\tconst url = { ...this.state.Url };\r\n\r\n\t\tthis.setState({ IsLoading: true });\r\n\r\n\t\tProxy.POST(this.state.Url,\r\n\t\t\tModel,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowGenericMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData != null) {\r\n\t\t\t\t\tthis.handleSearch();\r\n\t\t\t\t\tthis.setState({ IsLoading: false, isFileDialogOpen: false });\r\n\t\t\t\t\tthis.Clear();\r\n\t\t\t\t}\r\n\t\t\t\tthis.ShowGenericMessage(\"success\", \"Success\", \"Operation was successfuly !!!\");\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.ShowGenericMessage(\"error\", \"Error\", error);\r\n\t\t\t});\r\n\t}\r\n\r\n\tGetRenderItemAccount = (x) => {\r\n\t\tthis.renderItemAccount = `${x.AccountNumber} - ${x.AccountName}`;\r\n\t\treturn this.renderItemAccount;\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { Model, vModel, ReceiverInfo, CurrencyCode, CountryCode, ClientInfo, isB2P } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errors = [];\r\n\r\n\t\tif (Model.CurrencyId == null || Model.CurrencyId == \"\") {\r\n\t\t\tvModel.CurrencyId = true;\r\n\t\t\terrors.push(\"Currency must be defined !\");\r\n\t\t} else { vModel.CurrencyId = false; }\r\n\r\n\t\tif (Model.Amount == null || Model.Amount == \"\") {\r\n\t\t\tvModel.Amount = true;\r\n\t\t\terrors.push(\"Amount must be defined !\");\r\n\t\t} else { vModel.Amount = false; }\r\n\r\n\t\tif (Model.TransactionType == null || Model.TransactionType == \"\") {\r\n\t\t\tvModel.TransactionType = true;\r\n\t\t\terrors.push(\"Transaction Type must be defined !\");\r\n\t\t} else { vModel.TransactionType = false; }\r\n\r\n\t\tif (Model.PaymentTransferTypeId == null || Model.PaymentTransferTypeId == \"\") {\r\n\t\t\tvModel.PaymentTransferTypeId = true;\r\n\t\t\terrors.push(\"Payment Transfer Type must be defined !\");\r\n\t\t} else { vModel.PaymentTransferTypeId = false; }\r\n\r\n\t\tif (Model.AccountId == null || Model.AccountId == \"\") {\r\n\t\t\tvModel.AccountId = true;\r\n\t\t\terrors.push(\"From Account must be defined !\");\r\n\t\t} else { vModel.AccountId = false; }\r\n\r\n\t\tif (Model.CustomerNumber == null || Model.CustomerNumber == \"\") {\r\n\t\t\tvModel.CustomerNumber = true;\r\n\t\t\terrors.push(\"Customer must be defined !\");\r\n\t\t} else { vModel.CustomerNumber = false; }\r\n\r\n\t\tif ((Model.ReceivingBankName == null || Model.ReceivingBankName == \"\") && ((CountryCode == \"KOR\") || (CountryCode == \"USA\"))) {\r\n\t\t\tvModel.ReceivingBankName = true;\r\n\t\t\terrors.push(\"Receiving Bank Name must be defined !\");\r\n\t\t} else { vModel.ReceivingBankName = false; }\r\n\r\n\t\tif ((Model.BankCode == null || Model.BankCode == \"\") && (CountryCode == \"LKA\")) {\r\n\t\t\tvModel.BankCode = true;\r\n\t\t\terrors.push(\"Bank Code must be defined !\");\r\n\t\t} else { vModel.BankCode = false; }\r\n\r\n\t\tif (ClientInfo.AddressLine1 == null || ClientInfo.AddressLine1 == \"\") {\r\n\t\t\tvModel.AddressLine1 = true;\r\n\t\t\terrors.push(\"Sender Address Line 1 must be defined !\");\r\n\t\t} else { vModel.AddressLine1 = false; }\r\n\r\n\t\tif ((ClientInfo.CityName == null || ClientInfo.CityName == \"\") && (CountryCode == \"PHL\")) {\r\n\t\t\tvModel.CityName = true;\r\n\t\t\terrors.push(\"Sender City must be defined !\");\r\n\t\t} else { vModel.CityName = false; }\r\n\r\n\t\tif ((ClientInfo.ProvinceName == null || ClientInfo.ProvinceName == \"\") && (CountryCode == \"PHL\")) {\r\n\t\t\tvModel.ProvinceName = true;\r\n\t\t\terrors.push(\"Sender Province must be defined !\");\r\n\t\t} else { vModel.ProvinceName = false; }\r\n\r\n\t\tif (ClientInfo.CountryName == null || ClientInfo.CountryName == \"\") {\r\n\t\t\tvModel.CountryName = true;\r\n\t\t\terrors.push(\"Sender Country must be defined !\");\r\n\t\t} else { vModel.CountryName = false; }\r\n\r\n\t\tif ((ReceiverInfo.RecipientCompanyName == null || ReceiverInfo.RecipientCompanyName == \"\") && !isB2P) {\r\n\t\t\tvModel.RecipientCompanyName = true;\r\n\t\t\terrors.push(\"Recipient Company Name must be defined !\");\r\n\t\t} else { vModel.RecipientCompanyName = false; }\r\n\r\n\t\tif ((ReceiverInfo.Name == null || ReceiverInfo.Name == \"\") && isB2P) {\r\n\t\t\tvModel.Name = true;\r\n\t\t\terrors.push(\"Recipient Name must be defined !\");\r\n\t\t} else { vModel.Name = false; }\r\n\r\n\t\tif ((ReceiverInfo.SurName == null || ReceiverInfo.SurName == \"\") && isB2P) {\r\n\t\t\tvModel.SurName = true;\r\n\t\t\terrors.push(\"Recipient LastName must be defined !\");\r\n\t\t} else { vModel.SurName = false; }\r\n\r\n\t\tif (ReceiverInfo.AddressLine1 == null || ReceiverInfo.AddressLine1 == \"\") {\r\n\t\t\tvModel.ReceiverAddressLine1 = true;\r\n\t\t\terrors.push(\"Recipient Address Line 1 must be defined !\");\r\n\t\t} else { vModel.ReceiverAddressLine1 = false; }\r\n\r\n\t\tif ((ReceiverInfo.CityName == null || ReceiverInfo.CityName == \"\") && (CountryCode == \"USA\")) {\r\n\t\t\tvModel.ReceiverCityName = true;\r\n\t\t\terrors.push(\"Recipient City must be defined !\");\r\n\t\t} else { vModel.ReceiverCityName = false; }\r\n\r\n\t\tif ((ReceiverInfo.ZipCode == null || ReceiverInfo.ZipCode == \"\") && (CountryCode == \"USA\")) {\r\n\t\t\tvModel.ReceiverZipCode = true;\r\n\t\t\terrors.push(\"Recipient Zip Code must be defined !\");\r\n\t\t} else { vModel.ReceiverZipCode = false; }\r\n\r\n\t\tif ((ReceiverInfo.ProvinceName == null || ReceiverInfo.ProvinceName == \"\") && (CountryCode == \"USA\")) {\r\n\t\t\tvModel.ReceiverProvinceName = true;\r\n\t\t\terrors.push(\"Recipient Province must be defined !\");\r\n\t\t} else { vModel.ReceiverProvinceName = false; }\r\n\r\n\t\tif (ReceiverInfo.CountryName == null || ReceiverInfo.CountryName == \"\") {\r\n\t\t\tvModel.ReceiverCountryName = true;\r\n\t\t\terrors.push(\"Recipient Country must be defined !\");\r\n\t\t} else { vModel.ReceiverCountryName = false; }\r\n\r\n\t\tif ((Model.SourceOfIncome == null || Model.SourceOfIncome == \"\") && (CountryCode == \"KOR\")) {\r\n\t\t\tvModel.SourceOfIncome = true;\r\n\t\t\terrors.push(\"Source of Income must be defined !\");\r\n\t\t} else { vModel.SourceOfIncome = false; }\r\n\r\n\t\tif ((Model.PurposeOfTransaction == null || Model.PurposeOfTransaction == \"\") && ((CountryCode == \"IND\") || (CountryCode == \"KOR\"))) {\r\n\t\t\tvModel.PurposeOfTransaction = true;\r\n\t\t\terrors.push(\"Purpose of Transaction must be defined !\");\r\n\t\t} else { vModel.PurposeOfTransaction = false; }\r\n\r\n\t\tif ((Model.PayerPayeeRelationship == null || Model.PayerPayeeRelationship == \"\") && (CountryCode == \"KOR\")) {\r\n\t\t\tvModel.PayerPayeeRelationship = true;\r\n\t\t\terrors.push(\"Payer Payee Relationship must be defined !\");\r\n\t\t} else { vModel.PayerPayeeRelationship = false; }\r\n\r\n\t\tif ((Model.RecipientBankAccountType == null || Model.RecipientBankAccountType == \"\") && (CountryCode == \"USA\")) {\r\n\t\t\tvModel.RecipientBankAccountType = true;\r\n\t\t\terrors.push(\"Recipient Bank Account Type must be defined !\");\r\n\t\t} else { vModel.RecipientBankAccountType = false; }\r\n\r\n\t\tif ((Model.AccountNumber == null || Model.AccountNumber == \"\") && (CountryCode == \"LKA\" || CountryCode == \"IND\" || CountryCode == \"KOR\" ||\r\n\t\t\tCountryCode == \"USA\" || CountryCode == \"PHL\")) {\r\n\t\t\tvModel.AccountNumber = true;\r\n\t\t\terrors.push(\"Account Number must be defined !\");\r\n\t\t} else { vModel.AccountNumber = false; }\r\n\r\n\t\tif ((Model.BankSwiftCode == null || Model.BankSwiftCode == \"\") && (CountryCode == \"LKA\" || CountryCode == \"IND\" || CountryCode == \"KOR\" ||\r\n\t\t\tCountryCode == \"USA\" || CountryCode == \"PHL\")) {\r\n\t\t\tvModel.BankSwiftCode = true;\r\n\t\t\terrors.push(\"Bank Swift Code must be defined !\");\r\n\t\t} else { vModel.BankSwiftCode = false; }\r\n\r\n\t\tif ((Model.BankInstitution == \"\" || Model.BankInstitution == null) && ((CountryCode == \"AUT\" || CountryCode == \"BEL\" || CountryCode == \"CYP\" || CountryCode == \"EST\" || CountryCode == \"FIN\" || CountryCode == \"FRA\" ||\r\n\t\t\tCountryCode == \"DEU\" || CountryCode == \"GRC\" || CountryCode == \"IRL\" || CountryCode == \"ITA\" || CountryCode == \"LVA\" || CountryCode == \"LTU\" || CountryCode == \"LUX\" ||\r\n\t\t\tCountryCode == \"MLT\" || CountryCode == \"NLD\" || CountryCode == \"PRT\" || CountryCode == \"SVK\" || CountryCode == \"SVN\" || CountryCode == \"ESP\" || CountryCode == \"MCO\" ||\r\n\t\t\tCountryCode == \"SMR\" ||\r\n\t\t\tCountryCode == \"CZE\" || CountryCode == \"POL\" || CountryCode == \"GBR\"))) {\r\n\t\t\tvModel.BankInstitution = true;\r\n\t\t\terrors.push(\"IBAN must be defined !\");\r\n\t\t} else { vModel.BankInstitution = false; }\r\n\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tthis.setState({ isFileDialogOpen: true });\r\n\t\treturn true;\r\n\t}\r\n\r\n\tCloseFile = () => {\r\n\t\tthis.setState({ isFileDialogOpen: false });\r\n\t}\r\n\r\n\tRenderCurrencySelect = (d) => {\r\n\t\treturn d.Code + \" - \" + d.Description + \"-\" + d.RateTierBidRate;\r\n\t}\r\n\r\n\tRenderTransactionTypeSelect = (d) => {\r\n\t\treturn d.ParameterDesc == \"Debit\" ? \"Payment Reverse\" : \"Payment Forward\";\r\n\t}\r\n\r\n\tClear = async () => {\r\n\t\tconst { Model, vModel, ReceiverInfo } = this.state;\r\n\t\tthis.setState({ Model: {}, vModel: {}, isFileDialogOpen: false, ReceiverInfo: {} });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { isLoading, Alert, IsLoading, vModel, CountryCode } = this.state;\r\n\t\tconst { Model, ClientInfo, ReceiverInfo, isFileDialogOpen } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{Alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t\t\tSender Information\r\n\t\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\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t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nMastercardCreateCardTransfer.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool,\r\n\tValueChanged: PropTypes.func,\r\n\tModel: PropTypes.object,\r\n\tExecuteApiFileDownloadWithGenericResponse: PropTypes.func\r\n};\r\n\r\nexport default withArtifex(MastercardCreateCardTransfer, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport React, { Component } from 'react';\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ButtonToolbar from 'views/Components/ButtonToolbar';\r\nimport { GenericDateInput, GenericExpansionPanel, GenericNumberInput, GenericTextInput, GenericGrid, GenericSelectInput, GenericDialog, GenericDialogActions, GenericLabel } from \"views/Components/Generic\";\r\nimport LoadingComponent from 'views/Components/LoadingComponent';\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport { RowDetailIcon, DeleteIcon } from \"core/Icons\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport AlertHelper from \"core/AlertHelper\";\r\n\r\nclass MastercardTransactionSearch extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props)\r\n\t\tthis.isBackOffice = ClientHelper.IsBackOffice();\r\n\t\tthis.sortParamDesc = { Member: \"ParameterDesc\" };\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tFromDate: DateHelper.GetDate(),\r\n\t\t\t\tToDate: DateHelper.GetDate()\r\n\t\t\t},\r\n\t\t\tgetDataList: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tisRetrievePaymentDialogOpen: false,\r\n\t\t\tresponseForRetrievePayment: {},\r\n\t\t\tresponseForCancelPayment: {}\r\n\t\t};\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: d => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t this.openRetrievePaymentDialog(d.original)} />\r\n\t\t\t\t\t\t this.ShowQuestionMessage(\"Cancel this payment !\", d.original) } />\r\n\t\t\t\t\t
\r\n\t\t\t\t\t//this.openCancelPaymentDialog(d.original.PaymentId)\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\twidth: 70\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"UniqueClientName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Status\",\r\n\t\t\t\taccessor: \"TransactionState\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Name\",\r\n\t\t\t\taccessor: \"ClientCustomerName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Middle Name\",\r\n\t\t\t\taccessor: \"MiddleName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Last Name\",\r\n\t\t\t\taccessor: \"SurName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Type\",\r\n\t\t\t\taccessor: \"TransactionType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"CAD Amount\",\r\n\t\t\t\taccessor: \"CadAmount\",\r\n\t\t\t\ttype: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Currency\",\r\n\t\t\t\taccessor: \"Currency\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Rate\",\r\n\t\t\t\taccessor: \"BuyingRateOfExchangeAmount\",\r\n\t\t\t\ttype: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Original Amount\",\r\n\t\t\t\taccessor: \"TransactionAmount\"\t\t\t\t\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sender Account\",\r\n\t\t\t\taccessor: \"SourceAccount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Destination Account\",\r\n\t\t\t\taccessor: \"DestinationAccount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Customer Number\",\r\n\t\t\t\taccessor: \"CustomerNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Description\",\r\n\t\t\t\taccessor: \"Description\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"TransactionReferenceNumber\",\r\n\t\t\t\taccessor: \"TransactionReferenceNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reference Number\",\r\n\t\t\t\taccessor: \"ReferenceNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Created At\",\r\n\t\t\t\taccessor: \"MastercardCreatedAt\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Status Timestamp\",\r\n\t\t\t\taccessor: \"StatusTimestamp\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Unique Client Id\",\r\n\t\t\t\taccessor: \"ClientUniqueClientId\",\r\n\t\t\t\tshow: this.isBackOffice\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Unique Client Name\",\r\n\t\t\t\taccessor: \"UniqueClientName\",\r\n\t\t\t\tshow: this.isBackOffice\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Email\",\r\n\t\t\t\taccessor: \"Email\"\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Source\",\r\n\t\t\t\taccessor: \"TransactionSource\"\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Number\",\r\n\t\t\t\taccessor: \"AccountNumber\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Name\",\r\n\t\t\t\taccessor: \"AccountName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"AccountOwnerName\",\r\n\t\t\t\taccessor: \"AccountOwnerName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Direction\",\r\n\t\t\t\taccessor: \"Direction\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Trace Id\",\r\n\t\t\t\taccessor: \"TraceId\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Reference Number\",\r\n\t\t\t\taccessor: \"ClientReferenceNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Fee Amount\",\r\n\t\t\t\taccessor: \"FeeAmount\",\r\n\t\t\t\ttype: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Bank Code\",\r\n\t\t\t\taccessor: \"BankCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Cross Border Reference Number\",\r\n\t\t\t\taccessor: \"ClientReferenceNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"PaymentId\",\r\n\t\t\t\taccessor: \"PaymentId\"\r\n\t\t\t}\r\n\t\t];\r\n\t\tthis.trxTable = React.createRef();\r\n\t\t\r\n\t\tthis.emptyObject = {};\r\n\t\tthis.sortedCustomerName = { Member: \"Name\" };\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Transaction Search\");\r\n\t\t}\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"CARD TRANSFER\");\r\n\t\t}\r\n\t\tthis.setState({ loadingCompleted: true });\r\n\t}\r\n\r\n\thandleSearch = async () => {\r\n\t\tthis.setState(state => ({ trxGridToken: !state.trxGridToken }));\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar model = { ...this.state.model };\r\n\t\tvar responseData = await ExecuteApiPost(\"/bankapi/v1.0/MastercardXBorder/MastercardTransactionSearch\", model, null, null, null, null, null);\r\n\t\tif (responseData != null) {\r\n\t\t\tthis.setState({\r\n\t\t\t\tgetDataList: responseData.length < 1 ? [] : responseData, isLoading: false\r\n\t\t\t});\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.setState({ isLoading: false });\r\n\t\t}\r\n\t}\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\thandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {\r\n\t\t\t\tFromDate: DateHelper.GetDate(), ToDate: DateHelper.GetDate(),\r\n\t\t\t},\r\n\t\t\tisRetrievePaymentDialogOpen: false\r\n\t\t});\r\n\t}\r\n\r\n\tHideAlert = () => {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\tShowQuestionMessage = (message, model) => {\r\n\t\tthis.setState({\r\n\t\t\talert: AlertHelper.CreateQuestionAlert(\"Delete\", message, \"warning\", e => {\r\n\t\t\t\tthis.cancelPayment(model);\r\n\t\t\t\tthis.HideAlert();\r\n\t\t\t}, () => {\r\n\t\t\t\tthis.HideAlert();\r\n\t\t\t})\r\n\t\t});\r\n\t}\r\n\r\n\topenRetrievePaymentDialog = (model) => {\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/MastercardXBorder/RetrievePayment\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ responseForRetrievePayment: responseData.Item.RetrievePayment, isRetrievePaymentDialogOpen: true});\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t };\r\n\r\n\t cancelPayment = (model) => {\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/MastercardXBorder/CancelPayment\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Success\", \"Operation was successfuly!\");\r\n\t\t\t\tthis.setState({ responseForCancelPayment: responseData.Item });\r\n\t\t\t\tthis.handleSearch();\r\n\t\t\t\t\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t };\r\n\trender() {\r\n\t\tconst { Disabled, classes } = this.props;\r\n\t\tconst { model, isLoading, getDataList, isRetrievePaymentDialogOpen, responseForRetrievePayment, responseForCancelPayment} = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t{ClientHelper.IsBackOffice() &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t< GenericSelectInput\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tName=\"UniqueClientId\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tLabelText=\"Client\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tUrl=\"/bankapi/v1.0/BankCustomer/Search\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tMethod=\"POST\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tParameter={this.emptyObject}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\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\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t { return model; }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tPageSize={10}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tShowPagination={true}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tLoadAtStartup={this.state.loadingCompleted}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tData={getDataList}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tColumns={this.Columns}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\t\t\t
\r\n\t\t)\r\n\t}\r\n}\r\n\r\nexport default withArtifex(MastercardTransactionSearch, {});","import GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport { GenericAlert } from \"views/Components/Generic\";\r\nimport TabsComponent from \"views/Components/TabsComponent\";\r\nimport { Proxy } from \"core\";\r\n\r\n//Steps\r\nimport PersonalAccount from \"./PersonalAccount\";\r\nimport CorporateAccount from \"./CorporateAccount\";\r\n\r\nimport ToolBar from \"views/Components/DynamicToolbar\";\r\n\r\n\r\nclass Profile extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tcustomerAccountProfile: {},\r\n\t\t\tpersonalModel: {},\r\n\t\t\tcorporateModel: {},\r\n\t\t\tIsCustomer: 0\r\n\t\t};\r\n\t\tthis.handleCustomerBankAccount = this.handleCustomerBankAccount.bind(this);\r\n\t\tthis.GetCustomerBankAccounts = this.GetCustomerBankAccounts.bind(this);\r\n\r\n\t\tthis.GetProfileInfo = this.GetProfileInfo.bind(this);\r\n\t\tthis.handleCustomerProfileInfo = this.handleCustomerProfileInfo.bind(this);\r\n\r\n\t\tthis.ShowMessage = this.ShowMessage.bind(this);\r\n\t\tthis.hideAlert = this.hideAlert.bind(this);\r\n\t\tthis.errorDefinitionCallback = this.errorDefinitionCallback.bind(this);\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.GetCustomerBankAccounts();\r\n\t\tthis.GetProfileInfo();\r\n\t}\r\n\tGetCustomerBankAccounts() {\r\n\t\t//GetCustomerBankAccountsOp class\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Account/CustomerAccountProfile\",\r\n\t\t\t{},\r\n\t\t\tthis.handleCustomerBankAccount,\r\n\t\t\tthis.errorDefinitionCallback\r\n\t\t);\r\n\t}\r\n\tGetProfileInfo() {\r\n\t\t//GetCustomerBankAccountsOp class\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/BankCustomer/GetProfileInfo\",\r\n\t\t\t{},\r\n\t\t\tthis.handleCustomerProfileInfo,\r\n\t\t\tthis.errorDefinitionCallback\r\n\t\t);\r\n\t}\r\n\thandleCustomerBankAccount(responseData) {\r\n\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error !\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t} else {\r\n\t\t\tthis.setState({\r\n\t\t\t\tcustomerAccountProfile: responseData.Item || {}\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\thandleCustomerProfileInfo(responseData) {\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error !\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t} else {\r\n\t\t\tif (responseData.Item != null) {\r\n\t\t\t\tif (responseData.Item.IsCustomer) {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tpersonalModel: responseData.Item.Customer || {},\r\n\t\t\t\t\t\tIsCustomer: 1\r\n\t\t\t\t\t});\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tcorporateModel: responseData.Item.Corporate || {},\r\n\t\t\t\t\t\tIsCustomer: 2\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}\r\n\terrorDefinitionCallback(error) {\r\n\t\tthis.ShowMessage(\"error\", \"Error !\", \"An error occurred while requesting data\" + error);\r\n\t}\r\n\tShowMessage(type, title, message) {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\thideAlert() {\r\n\t\tthis.setState({\r\n\t\t\talert: null\r\n\t\t});\r\n\t}\r\n\trender() {\r\n\t\tconst { customerAccountProfile, personalModel, corporateModel } = this.state;\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\tHidden: this.state.IsCustomer == 2 ? true : false\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\ttabButton: \"Corporate Account\",\r\n\t\t\t\t\t\t\t\ttabContent: (\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\tHidden: this.state.IsCustomer == 1 ? true : false\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t]}\r\n\t\t\t\t\t/>\r\n\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nProfile.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func\r\n};\r\n\r\nexport default Profile;","import defaultImage from \"assets/img/logo-white.svg\";\r\nimport createReportStyle from \"assets/jss/material-dashboard-pro-react/views/createReportStyle.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport DualListBox from \"react-dual-listbox\";\r\nimport { GenericAlert, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nconst styles = ({\r\n\tcardBodyColor: {\r\n\t\tbackgroundColor: \"darkblue\"\r\n\t},\r\n\tpicture: {\r\n\t\twidth: \"100px\",\r\n\t\theight: \"100px\",\r\n\t\toverflow: \"hidden\",\r\n\t\ttransition: \"all 0.2s\",\r\n\t},\r\n\tpictureSrc: {\r\n\t\twidth: \"100%\",\r\n\t\theight: \"100%\",\r\n\t\tobjectFit: \"contain\"\r\n\t}\r\n});\r\n\r\nclass AnnouncementDefinition extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = { Id: 0, CriteriaList: [], ProgramTypeId: -1 };\r\n\r\n\t\tthis.defaultFileModel = {\r\n\t\t\tFileName: \"\",\r\n\t\t\tFile: null\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tbankCustomerListOption: [],\r\n\t\t\tbankCustomerListSelected: [],\r\n\t\t\tuserListOption: [],\r\n\t\t\tuserListSelected: [],\r\n\t\t\tfileModel: this.defaultFileModel,\r\n\t\t\tuserList: [],\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tisLoading: false,\r\n\t\t\timagePreviewUrl: defaultImage\r\n\t\t};\r\n\t\t// preserve the initial state in a new object\r\n\t\tthis.baseState = this.state;\r\n\r\n\t\tthis.fileInputRef = React.createRef();\r\n\r\n\t\tthis.parameterClient = {};\r\n\r\n\t\tthis.maxLength250 = { maxLength: 250 };\r\n\r\n\t\tthis.sortedDescription = { Member: \"Description\" };\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Announcement Definition\");\r\n\t\tthis.props.setAppCenterTitle(\"Notifications\");\r\n\t\tthis.HandleGetMerchantList();\r\n\t}\r\n\r\n\tHandleChange = (name, value) => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tif (name === \"ProgramTypeId\" && value == null)\r\n\t\t\tvalue = -1;\r\n\r\n\t\tmodel[name] = value;\r\n\r\n\t\tthis.setState({ model }, () => {\r\n\t\t\tif (name === \"ProgramTypeId\") this.HandleGetMerchantList();\r\n\t\t});\r\n\t}\r\n\r\n\tColumnListBoxOnChange = (selected) => {\r\n\t\tconst { userList } = this.state;\r\n\t\tthis.setState({\r\n\t\t\tbankCustomerListSelected: selected,\r\n\t\t\tuserListOption: userList.filter(u => u.UniqueClientId == selected.find(s => s == u.UniqueClientId.toString()))\r\n\t\t});\r\n\t}\r\n\r\n\tColumnListBoxOnChange2 = (selected) => {\r\n\t\tthis.setState({\r\n\t\t\tuserListSelected: selected\r\n\t\t});\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState(function (state) {\r\n\t\t\tstate = this.baseState;\r\n\t\t\treturn state;\r\n\t\t});\r\n\t\tthis.HandleGetMerchantList();\r\n\t}\r\n\r\n\tHandleSelectModel = (model, index) => {\r\n\t\tthis.setState({ model, selected: index });\r\n\t}\r\n\r\n\tUploadClick = () => {\r\n\t\tthis.fileInputRef.current.click();\r\n\t}\r\n\r\n\tFileSelect = (e) => {\r\n\t\te.preventDefault();\r\n\t\tlet reader = new FileReader();\r\n\t\tvar file = e.target.files[0];\r\n\r\n\t\tif (!file) return;\r\n\r\n\t\treader.onloadend = () => {\r\n\t\t\tthis.setState({\r\n\t\t\t\tfileModel: {\r\n\t\t\t\t\tFileName: file.name,\r\n\t\t\t\t\tFile: file\r\n\t\t\t\t},\r\n\t\t\t\timagePreviewUrl: reader.result\r\n\t\t\t});\r\n\t\t};\r\n\t\treader.readAsDataURL(file);\r\n\t}\r\n\r\n\tHandleGetMerchantList = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/CustomerAnnouncement/GetAllBankCustomer\",\r\n\t\t\t{\r\n\t\t\t\tProgramId: model.ProgramTypeId\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ bankCustomerListOption: responseData.Item.BankCustomerList, userList: responseData.Item.UserList });\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ bankCustomerListOption: [], userListOption: [] });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleSubmit = () => {\r\n\t\tconst { fileModel, model, bankCustomerListOption, bankCustomerListSelected, userListSelected, userList } = this.state;\r\n\r\n\t\tvar BankCustomerList = bankCustomerListOption.filter(u => bankCustomerListSelected.find(s => s == u.UniqueClientId));\r\n\t\tvar UserList = userList.filter(u => userListSelected.find(s => s == u.Id));\r\n\r\n\t\tmodel.CriteriaList = {\r\n\t\t\tBankCustomerList,\r\n\t\t\tUserList\r\n\t\t};\r\n\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tmodel.IsValidForAllCustomer = bankCustomerListOption.length === bankCustomerListSelected.length;\r\n\t\tmodel.IsValidForAllUser = userList.length === userListSelected.length;\r\n\t\tthis.setState({ model, isLoading: true });\r\n\r\n\t\tvar formData = new FormData();\r\n\t\tformData.append(\"file\", fileModel.File, fileModel.FileName);\r\n\t\tformData.append(\"Item\", JSON.stringify(this.state.model));\r\n\r\n\t\tProxy.FileUpload(\"/bankapi/v1.0/CustomerAnnouncement/InsertOrUpdate\",\r\n\t\t\tformData,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item) {\r\n\t\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Message is send successfully!\");\r\n\t\t\t\t\tthis.HandleClear();\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while uploading image\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model, fileModel } = this.state;\r\n\r\n\t\tif (!fileModel.File) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"File not selected\", \"Please Upload the Image.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!model.Message) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Message not selected\", \"Select Message to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!model.ProgramTypeId) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Program not selected\", \"Select Program to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (model.CriteriaList.UserList.length == 0) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"User not selected\", \"Select at least one user to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tShowMessage = (type = \"info\", title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes } = this.props;\r\n\t\tconst { alert, isLoading, model, fileModel, bankCustomerListOption, bankCustomerListSelected, userListOption, userListSelected } = this.state;\r\n\t\treturn (\r\n\t\t\t<>\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\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\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t{model.Message && model.Message.split(/\\r\\n|\\r|\\n/g).map((prop, key) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t

{prop}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"value\": i.UniqueClientId.toString(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"label\": i.FullName\r\n\t\t\t\t\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\tselected={bankCustomerListSelected}\r\n\t\t\t\t\t\t\t\t\t\t\tonChange={(selected) => this.ColumnListBoxOnChange(selected)}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"value\": i.Id.toString(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"label\": i.FullName\r\n\t\t\t\t\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\tselected={userListSelected}\r\n\t\t\t\t\t\t\t\t\t\t\tonChange={(selected) => this.ColumnListBoxOnChange2(selected)}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nAnnouncementDefinition.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(AnnouncementDefinition, { ...styles, ...createReportStyle });","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport NotificationDefinitionAddOrUpdate from \"./NotificationDefinitionAddOrUpdate\";\r\nimport NotificationDefinitionDataTable from \"./NotificationDefinitionDataTable\";\r\n\r\nclass NotificationDefinition extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = { Id: 0 };\r\n\r\n\t\tthis.state = {\r\n\t\t\tlist: [],\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tcountModel: {},\r\n\t\t\tselected: null,\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Notification Definition\");\r\n\t\tthis.props.setAppCenterTitle(\"Notifications\");\r\n\t\tthis.HandleGetList();\r\n\t}\r\n\r\n\tHandleChange = (name, value, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tif (name == \"NotificationTemplateId\")\r\n\t\t\tmodel.NotificationTemplate = data;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleBooleanChange = (name, value) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = JSON.parse(value);\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleToggle = (value) => {\r\n\t\tconst { checked } = this.state;\r\n\t\tconst currentIndex = checked.indexOf(value);\r\n\t\tconst newChecked = [...checked];\r\n\r\n\t\tif (currentIndex === -1) {\r\n\t\t\tnewChecked.push(value);\r\n\t\t} else {\r\n\t\t\tnewChecked.splice(currentIndex, 1);\r\n\t\t}\r\n\r\n\t\tthis.setState({ checked: newChecked });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: this.initialModel, selected: null });\r\n\t}\r\n\r\n\tHandleSelectModel = (model, index) => {\r\n\t\tthis.setState({ model, selected: index });\r\n\t}\r\n\r\n\tHandleGetList = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/EventNotification/Search\",\r\n\t\t\t{\r\n\t\t\t\tItem: this.state.model\r\n\t\t\t},\r\n\t\t\tthis.SuccessListCallback,\r\n\t\t\tthis.ErrorListCallback\r\n\t\t);\r\n\t}\r\n\r\n\tSuccessListCallback = (responseData) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (responseData.Item !== null) {\r\n\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t} else {\r\n\t\t\tthis.setState({ list: [] });\r\n\t\t}\r\n\t}\r\n\r\n\tErrorListCallback = (error) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t}\r\n\r\n\tHandleSubmit = () => {\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/EventNotification/InsertOrUpdate\",\r\n\t\t\t{\r\n\t\t\t\tItem: this.state.model\r\n\t\t\t},\r\n\t\t\tthis.SuccessSubmitCallback,\r\n\t\t\tthis.ErrorSubmitCallback\r\n\t\t);\r\n\t}\r\n\r\n\tSuccessSubmitCallback = (responseData) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.ShowMessage(\"success\", \"Operation is successfully!\");\r\n\t\tthis.HandleGetList();\r\n\t}\r\n\r\n\tErrorSubmitCallback = (error) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t}\r\n\r\n\tHandleDelete = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.GET(\r\n\t\t\t\"/bankapi/v1.0/EventNotification/Delete/Id?Id=\" + this.state.model.Id,\r\n\t\t\tthis.SuccessDeleteCallback,\r\n\t\t\tthis.ErrorDeleteCallback\r\n\t\t);\r\n\t}\r\n\r\n\tSuccessDeleteCallback = (responseData) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.ShowMessage(\"success\", \"Deleted successfully!\");\r\n\t}\r\n\r\n\tErrorDeleteCallback = (error) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"An error occurred while deleting data\", error.message);\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tif (!model.ProgramTypeId) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Program Type not selected\", \"Select Program Type to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!model.NotificationTemplateTypeId) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Notification Template Type not selected\", \"Select Notification Template Type to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, isLoading, model } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t 0, ModelFunction: () => model, FillDataFromModel: model => this.setState({ model }), ValidationFunction: this.Validate },\r\n\t\t\t\t\t{ Code: \"Update\", OnClick: this.HandleSubmit, Disabled: Disabled || model.Id === 0, ModelFunction: () => model, FillDataFromModel: model => this.setState({ model }), ValidationFunction: this.Validate },\r\n\t\t\t\t\t{ Code: \"Delete\", OnClick: this.HandleDelete, Disabled: Disabled || model.Id == 0 }\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nNotificationDefinition.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default NotificationDefinition;\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericCheckInput, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass EmailSignature extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.isClient = ClientHelper.IsClient();\r\n\t\tthis.isActive = false;\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tUniqueClientId: this.isClient ? ClientHelper.GetClientRowId() : 0,\r\n\t\t\tIsBackoffice: !this.isClient\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tlist: [],\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tvModel: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tselected: -1\r\n\t\t};\r\n\t\t// preserve the initial state in a new object\r\n\t\tthis.baseState = this.state;\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: this.isClient ? ClientHelper.GetClientId() : 0\r\n\t\t};\r\n\r\n\t\tthis.ColumnsData = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Bank Message\",\r\n\t\t\t\taccessor: \"IsBackoffice\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\tFormatter.FormatYesNo(row.value)\r\n\t\t\t\t),\r\n\t\t\t\twidth: 250,\r\n\t\t\t\tfilterMethod: (filter, row, column) => {\r\n\t\t\t\t\treturn Formatter.FormatYesNo(row[filter.id]).toLowerCase().startsWith(filter.value.toLowerCase());\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"ClientName\",\r\n\t\t\t\tshow: !this.isClient\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Signature\",\r\n\t\t\t\taccessor: \"SignatureName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date\",\r\n\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tfilterMethod: (filter, row, column) => {\r\n\t\t\t\t\treturn Formatter.FormatDateTime(row[filter.id]).toLowerCase().startsWith(filter.value.toLowerCase());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"E-Mail Signature\");\r\n\t\tthis.props.setAppCenterTitle(\"NOTIFICATIONS\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tif (name === \"IsBackoffice\" || newValue === true)\r\n\t\t\tmodel.UniqueClientId = 0;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState(function (state) {\r\n\t\t\tstate = this.baseState;\r\n\t\t\treturn state;\r\n\t\t});\r\n\t\tthis.isActive = false;\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/EmailSignature/Search\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tthis.ErrorListCallback\r\n\t\t);\r\n\t}\r\n\r\n\tHandleSubmit = () => {\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/EmailSignature/InsertOrUpdate\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Operation is successfully!\");\r\n\t\t\t\tthis.HandleClear();\r\n\t\t\t\tthis.HandleSearch();\r\n\t\t\t},\r\n\t\t\tthis.ErrorListCallback\r\n\t\t);\r\n\t}\r\n\r\n\tErrorListCallback = (error) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tlet { model, vModel } = this.state;\r\n\r\n\t\tvar messages = [];\r\n\r\n\t\tif (!model.IsBackoffice && model.UniqueClientId == 0) {\r\n\t\t\tmessages.push(\"Client must be selected!\");\r\n\t\t\tvModel.UniqueClientId = true;\r\n\t\t} else {\r\n\t\t\tvModel.UniqueClientId = false;\r\n\t\t}\r\n\r\n\t\tif (model.Content == \"\" || model.Content == null) {\r\n\t\t\tmessages.push(\"Content must be filled!\");\r\n\t\t\tthis.isActive = true;\r\n\t\t\tvModel.Content = true;\r\n\t\t} else {\r\n\t\t\tvModel.Content = false;\r\n\t\t}\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.setState({ vModel });\r\n\t\treturn true;\r\n\t}\r\n\r\n\tGetContent = () => {\r\n\t\tconst { model } = this.state;\r\n\t\treturn { __html: model.Content };\r\n\t}\r\n\r\n\tSelectedRowChange = (index) => {\r\n\t\tconst model = this.state.list[index];\r\n\t\tmodel.IsBackoffice = model.UniqueClientId == 0;\r\n\t\tthis.isActive = true;\r\n\t\tthis.setState({ model, selected: index });\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, isLoading, model, vModel, list, selected } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t<>\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\r\n\t\t\t\t 0, ModelFunction: () => model, FillDataFromModel: model => this.setState({ model }), ValidationFunction: this.Validate },\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{!this.isClient &&\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nEmailSignature.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(EmailSignature, {});","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper.js\";\r\nimport Formatter from \"core/Formatter\";\r\nimport HtmlEditorHelper from \"core/HtmlEditorHelper\";\r\nimport { EditorState } from \"draft-js\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport \"react-autocomplete-input/dist/bundle.css\";\r\nimport { Editor } from \"react-draft-wysiwyg\";\r\nimport \"react-draft-wysiwyg/dist/react-draft-wysiwyg.css\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericCheckInput, GenericDialog, GenericDialogActions, GenericGrid, GenericLabel, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { NotificationSendType } from \"views/Constants/Constant\";\r\nconst emptyObject = {};\r\nclass TemplateDefinition extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.isClient = ClientHelper.IsClient();\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: this.isClient ? ClientHelper.GetClientRowId() : undefined\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tlist: [],\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tcountModel: {},\r\n\t\t\trowIndex: -1,\r\n\t\t\tisLoading: false,\r\n\t\t\tpropertyList: [],\r\n\t\t\talert: null,\r\n\t\t\tFile: {},\r\n\t\t\teditorState: EditorState.createEmpty(),\r\n\t\t\tIsVisibleMailEditor: true,\r\n\t\t\tIsEmailSignatureOpen: false,\r\n\t\t\tIsPreviewOpen: false\r\n\t\t};\r\n\r\n\t\tthis.fileInputRef = React.createRef();\r\n\r\n\t\tthis.parameterClient = {};\r\n\r\n\t\tthis.parameterTemplate = {\r\n\t\t\toperation: \"GetByParameter\",\r\n\t\t\tscreenId: 52\r\n\t\t};\r\n\r\n\t\tthis.parameterSendType = {\r\n\t\t\tParameterCode: \"NotificationSendType\"\r\n\t\t};\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: this.isClient ? ClientHelper.GetClientId() : undefined,\r\n\t\t};\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Template Type\",\r\n\t\t\t\taccessor: \"NotificationTemplateType.Description\",\r\n\t\t\t\twidth: 250\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Send Type\",\r\n\t\t\t\taccessor: \"NotificationSendType.ParameterDesc\",\r\n\t\t\t\twidth: 100\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Bank Message\",\r\n\t\t\t\taccessor: \"IsDefaultTemplate\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\tFormatter.FormatYesNo(row.value)\r\n\t\t\t\t),\r\n\t\t\t\twidth: 120,\r\n\t\t\t\tfilterMethod: (filter, row, column) => {\r\n\t\t\t\t\treturn Formatter.FormatYesNo(row[filter.id]).toLowerCase().startsWith(filter.value.toLowerCase());\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"UniqueClient.ClientName\",\r\n\t\t\t\twidth: 150,\r\n\t\t\t\tshow: !this.isClient\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Subject\",\r\n\t\t\t\taccessor: \"Subject\",\r\n\t\t\t\twidth: 250\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Template\",\r\n\t\t\t\taccessor: \"Template\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t Header: \"OrganizationUniqueId\",\r\n\t\t\t accessor: \"OrganizationUniqueId\",\r\n\t\t\t show: window.OrganizationUniqueId != 5000?false:true\r\n\t\t\t}\r\n\t\t];\r\n\t};\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Template Definition\");\r\n\t\tthis.props.setAppCenterTitle(\"Notifications\");\r\n\r\n\t\tthis.setState({ editorState: HtmlEditorHelper.EmptyEditorContent() });\r\n\t\t\r\n\t\tthis.GetAllDataModelProperty();\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tif (!model.OrganizationUniqueId) {\r\n\t\t\tthis.ShowMessage(\r\n\t\t\t \"warning\",\r\n\t\t\t \"OrganizationUniqueId\",\r\n\t\t\t \"OrganizationUniqueId must be filled.\"\r\n\t\t\t);\r\n\t\t\treturn false;\r\n\t\t }\r\n\t\tif (name == \"NotificationSendTypeId\") {\r\n\t\t\tmodel.NotificationSendType = data;\r\n\t\t\tthis.setState({ IsVisibleMailEditor: NotificationSendType.Email === data.ParameterValue ? true : false });\r\n\t\t}\r\n\t\tif (name === \"IsDefaultTemplate\" && newValue) {\r\n\t\t\tmodel.UniqueClient = null;\r\n\t\t\tmodel.UniqueClientId = null;\r\n\t\t}\r\n\t\tif (name === \"EmailSignatureId\") {\r\n\t\t\tmodel.SignatureContent = data ? data.Content : null;\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleToggleSignature = () => {\r\n\t\tthis.setState(state => {\r\n\t\t\tstate.IsEmailSignatureOpen = !state.IsEmailSignatureOpen;\r\n\t\t\treturn state;\r\n\t\t});\r\n\t}\r\n\r\n\tHandleTogglePreview = () => {\r\n\t\tthis.setState(state => {\r\n\t\t\tstate.IsPreviewOpen = !state.IsPreviewOpen;\r\n\t\t\treturn state;\r\n\t\t});\r\n\t}\r\n\r\n\tonEditorStateChange = (editorState) => {\r\n\t\t// console.log(editorState)\r\n\t\tthis.setState({\r\n\t\t\teditorState,\r\n\t\t});\r\n\t};\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: this.initialModel, rowIndex: -1, editorState: HtmlEditorHelper.EmptyEditorContent(), File: {} });\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/NotificationTemplate/Search\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ list: [] });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t});\r\n\t}\r\n\r\n\tHandleSubmit = () => {\r\n\t\tconst { model, editorState } = this.state;\r\n\t\tconst temp = { ...this.state.model };\r\n\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tif (model.NotificationSendType.ParameterValue === NotificationSendType.Email) {\r\n\t\t\ttemp.Template = HtmlEditorHelper.EditorContentToHtml(editorState);\r\n\t\t} else {\r\n\t\t\ttemp.Template = HtmlEditorHelper.EditorContentToText(editorState);\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/NotificationTemplate/InsertOrUpdate\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Operation is successfully!\");\r\n\t\t\t\tthis.HandleClear();\r\n\t\t\t\tthis.HandleSearch();\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleDelete = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.GET(\r\n\t\t\t\"/coreapi/v1.0/NotificationTemplate/Delete/Id?Id=\" + this.state.model.Id,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Deleted successfully!\");\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tGetAllDataModelProperty = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.GET(\r\n\t\t\t\"/coreapi/v1.0/NotificationTemplate/GetDataModelProperties\",\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tvar temp = responseData.Item.map(x => {\r\n\t\t\t\t\t\treturn { text: x.PropertyDescription, value: x.PropertyName };\r\n\t\t\t\t\t});\r\n\t\t\t\t\tthis.setState({ propertyList: temp });\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model, editorState } = this.state;\r\n\r\n\t\tif (!model.NotificationTemplateTypeId) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Template Type not selected\", \"Select Template Type to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!model.NotificationSendTypeId) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Notification Send Type not selected\", \"Select Notification Send Type to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (model.NotificationSendType.ParameterValue === NotificationSendType.Email) {\r\n\t\t\tvar mailContent = HtmlEditorHelper.EditorContentToHtml(editorState);\r\n\t\t\tif (mailContent == null || mailContent == \"\") {\r\n\t\t\t\tthis.ShowMessage(\"warning\", \"Template is empty\", \"Enter the E-Mail content to continue.\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tvar smsContent = HtmlEditorHelper.EditorContentToText(editorState);\r\n\t\t\tif (smsContent == null || smsContent == \"\") {\r\n\t\t\t\tthis.ShowMessage(\"warning\", \"Template is empty\", \"Enter the SMS content to continue.\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tFileSelect = (e) => {\r\n\t\te.preventDefault();\r\n\r\n\t\tvar file = e.target.files[0];\r\n\t\tif (!file) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({ File: file });\r\n\r\n\t\tvar EsTemp = this.onEditorStateChange;\r\n\t\tvar model = this.state.editorState;\r\n\t\tvar ToHtml = HtmlEditorHelper.EditorContentToHtml;\r\n\t\tvar ToEditor = HtmlEditorHelper.HtmlToEditorContent;\r\n\t\tvar reader = new FileReader();\r\n\t\treader.readAsDataURL(file);\r\n\t\treader.onload = function () {\r\n\t\t\tvar base64 = reader.result;\r\n\t\t\tvar html = ToHtml(model);\r\n\t\t\tvar img = \"\\\"undefined\\\"\";\r\n\r\n\t\t\thtml += img;\r\n\t\t\thtml += \"

\";\r\n\r\n\t\t\tconst editorState = ToEditor(html);\r\n\t\t\tEsTemp(editorState);\r\n\t\t};\r\n\t\treader.onerror = function (error) {\r\n\t\t\tconsole.log(\"Error: \", error);\r\n\t\t};\r\n\t}\r\n\r\n\tGetSignatureContent = () => {\r\n\t\tconst { model } = this.state;\r\n\t\treturn { __html: model.SignatureContent };\r\n\t}\r\n\r\n\tPreview = () => {\r\n\t\tconst { model, editorState } = this.state;\r\n\t\tvar mailContent = HtmlEditorHelper.EditorContentToHtml(editorState);\r\n\t\tif (model.UseSignature && model.SignatureContent)\r\n\t\t\tmailContent += model.SignatureContent;\r\n\t\treturn { __html: mailContent };\r\n\t}\r\n\r\n\tGetClientParameter = () => {\r\n\t\tthis.parameterClient.UniqueClientId = this.state.model.UniqueClientId;\r\n\t\treturn this.parameterClient;\r\n\t}\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tSelectedRowChange = (index) => {\r\n\t\tconst model = this.state.list[index];\r\n\t\tif (model && model.Template != null && model.Template != \"\") {\r\n\t\t\tvar content = HtmlEditorHelper.HtmlToEditorContent(model.Template);\r\n\t\t\tif (model.NotificationSendType.ParameterValue === NotificationSendType.Email) {\r\n\t\t\t\tthis.setState({ editorState: content, IsVisibleMailEditor: true });\r\n\t\t\t} else {\r\n\t\t\t\tthis.setState({ editorState: content, IsVisibleMailEditor: false });\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tthis.setState({ editorState: HtmlEditorHelper.EmptyEditorContent() });\r\n\t\t}\r\n\r\n\t\tif(model.EmailSignature != null ){\r\n\t\t\tmodel.UseSignature = model.EmailSignature && model.EmailSignature.IsRecordValid;\r\n\t\t\tmodel.SignatureContent = model.EmailSignature ? model.EmailSignature.Content : \"\";\r\n\t\t}\r\n\t\tif(model.EmailSignature == null){\r\n\t\t\tmodel.UseSignature =false;\r\n\t\t\tmodel.SignatureContent = \"\";\r\n\t\t}\r\n\r\n\t\tthis.setState({ model, rowIndex: index });\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\tRenderOrganizationUniqueIdSelect = (d) => {\r\n\t\tif (window.OrganizationUniqueId != 5000) {\r\n\t\t const { model } = this.state;\r\n\t\t model[\"OrganizationUniqueId\"] = d.OrganizationUniqueId;\r\n\t\t this.setState({ model: model });\r\n\t\t}\r\n\t\treturn d.OrganizationUniqueId + \"-\" + d.OrganizationName;\r\n\t };\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, isLoading, model, editorState, list, propertyList, IsVisibleMailEditor, IsEmailSignatureOpen, IsPreviewOpen } = this.state;\r\n\t\t\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t 0)} />\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t< ButtonToolbar ButtonList={\r\n\t\t\t\t\t[\r\n\t\t\t\t\t\t{ Code: \"Search\", OnClick: this.HandleSearch, Disabled: Disabled },\r\n\t\t\t\t\t\t{ Code: \"Clear\", OnClick: this.HandleClear, Disabled: Disabled || model == this.initialModel },\r\n\t\t\t\t\t\t{ Code: \"Submit\", OnClick: this.HandleSubmit, Disabled: Disabled || model.Id > 0, ModelFunction: () => model, FillDataFromModel: model => this.setState({ model }), ValidationFunction: this.Validate },\r\n\t\t\t\t\t\t{ Code: \"Update\", OnClick: this.HandleSubmit, Disabled: Disabled || model.Id === 0, ModelFunction: () => model, FillDataFromModel: model => this.setState({ model }), ValidationFunction: this.Validate },\r\n\t\t\t\t\t\t{ Code: \"Delete\", OnClick: this.HandleDelete, Disabled: Disabled || model.Id === 0 }\r\n\t\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n 0 ? true : Disabled}\r\n />\r\n \r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{!this.isClient &&\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\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t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nconst styles = {\r\n\teditor: {\r\n\t\tborder: \"1px solid gray\",\r\n\t\tminHeight: \"16em\"\r\n\t}\r\n};\r\n\r\nTemplateDefinition.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default TemplateDefinition;\r\n","import { DialogContent, DialogTitle, IconButton } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericIcon, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { CrudType, ProgramCodes } from \"views/Constants/Constant\";\r\nimport Formatter from \"core/Formatter\";\r\nimport DateHelper from \"core/DateHelper\";\r\n\r\n\r\nclass CreateAccountWithBulkUpload extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.fileInputRef = React.createRef();\r\n\r\n\t\tthis.initialModel = {\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tlist: [],\r\n\t\t\tIsResponseDialog: false,\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tisLoading: false,\r\n\t\t\tselected: null,\r\n\t\t\tbankAccounts: [],\r\n\t\t\tresponseList: [],\r\n\t\t\tisFileResultDialogOpen: false,\r\n\t\t\tisFileDialogOpen: false,\r\n\t\t\tFileResultList: []\r\n\t\t};\r\n\r\n\r\n\t\tthis.ColumnsData = [\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Number\",\r\n\t\t\t\taccessor: \"AccountNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"IBAN\",\r\n\t\t\t\taccessor: \"IBAN\"\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Balance\",\r\n\t\t\t\taccessor: \"Balance\"\r\n\t\t\t}\r\n\t\t\t,\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Pending Balance\",\r\n\t\t\t\taccessor: \"PendingBalance\"\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Name\",\r\n\t\t\t\taccessor: \"AccountName\"\r\n\t\t\t},\r\n\t\t];\r\n\r\n\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Create Bulk Account\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t\t//this.HandleGetList();\r\n\t\t// this.GetCustomerBankAccounts();\r\n\t}\r\n\r\n\tHandleChange = (name, value, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleSelectModel = (model, index) => {\r\n\t\tthis.setState({ model, selected: index });\r\n\t\t//\tthis.HandleGetList();\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tconst { model } = { ...this.state };\r\n\t\tdelete model.File;\r\n\t\tdelete model.Id;\r\n\t\tdelete model.FileName;\r\n\t\tdelete model.Binary;\r\n\t\tdelete model.TempFileId;\r\n\t\tdelete model.FileSelect;\r\n\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleSubmitDialog = () => {\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tthis.setState({ isFileDialogOpen: true });\r\n\t}\r\n\r\n\tHandleSubmit = () => {\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst { model } = { ...this.state };\r\n\t\tvar formData = new FormData();\r\n\t\tformData.append(\"file\", model.File, model.FileName);\r\n\t\tformData.append(\"fileId\", model.TempFileId || 0);\r\n\t\tformData.append(\"isBinaryOrBase64\", model.Binary);\r\n\t\tformData.append(\"isInsertOrUpdate\", model.Id == null ? CrudType.Insert : CrudType.Update);\r\n\r\n\t\tProxy.FileUpload(\"/bankapi/v1.0/Account/CreatePrepaidAccount\",\r\n\t\t\tformData,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded && responseData.Item < 1) {\r\n\t\t\t\t\tthis.setState({ isLoading: false, isFileDialogOpen: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\r\n\t\t\t\t\tProxy.POST(\"/bankapi/v1.0/Account/GetFileInformation\",\r\n\t\t\t\t\t\t{ Id: responseData.Item.FileId },\r\n\t\t\t\t\t\tfileResponseData => {\r\n\t\t\t\t\t\t\tif (!fileResponseData.IsSucceeded) {\r\n\t\t\t\t\t\t\t\tthis.setState({ isLoading: false, isFileDialogOpen: false });\r\n\r\n\t\t\t\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while load file information\", fileResponseData.ErrorDescription);\r\n\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tthis.setState({ FileResultList: fileResponseData.Item, isFileResultDialogOpen: true, isLoading: false, isFileDialogOpen: false });\r\n\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\terrorMessage => {\r\n\t\t\t\t\t\t\tthis.setState({ isLoading: false, isFileDialogOpen: false });\r\n\t\t\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while load file information\", errorMessage);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t);\r\n\t\t\t\t\t//\tthis.setState({ model: this.initialModel, responseList: responseData.Item, isFileChanged: true, IsResponseDialog: true, isLoading: false, });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tFileSelect = (e) => {\r\n\r\n\t\tthis.setState({ isLoading: true })\r\n\t\te.preventDefault();\r\n\r\n\t\tvar file = e.target.files[0];\r\n\t\tif (!file) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar { model } = this.state;\r\n\t\tmodel.TempFileId = model.File !== undefined\r\n\t\t\t? model.File.Id\r\n\t\t\t: 0;\r\n\t\tmodel.File = file;\r\n\t\tmodel.FileName = file.name;\r\n\t\tmodel.FileSelect = true;\r\n\r\n\t\tthis.setState({ model, isLoading: false });\r\n\r\n\r\n\t}\r\n\r\n\r\n\tValidate = () => {\r\n\t\tconst model = this.state.model;\r\n\r\n\t\tif (!model.File) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Invalid\", \"Please select file !\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: \"\" })} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\r\n\tUpload = () => {\r\n\t\tthis.fileInputRef.current.click();\r\n\t}\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, isLoading, IsResponseDialog, isFileResultDialogOpen, FileResultList, isFileDialogOpen } = this.state;\r\n\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\r\n\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t this.setState({ isFileResultDialogOpen: false })}>\r\n\t\t\t\t\t\t\t\t\tclose\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t row.value ? \"Yes\" : \"No\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Comment\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"Comment\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Account Owner Name\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"AccountOwnerName\"\r\n\t\t\t\t\t\t\t\t}, {\r\n\t\t\t\t\t\t\t\t\tHeader: \"Account Name\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"AccountName\"\r\n\t\t\t\t\t\t\t\t}, {\r\n\t\t\t\t\t\t\t\t\tHeader: \"Customer Number\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"CustomerNumber\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\tData={FileResultList}\r\n\t\t\t\t\t\t\tSorted={[{ id: \"LineId\", desc: false }]}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{/* \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t*/}\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCreateAccountWithBulkUpload.propTypes = {\r\n\tclasses: PropTypes.object.isRequired\r\n};\r\nexport default withArtifex(CreateAccountWithBulkUpload, {});","import { DialogContent, DialogTitle, IconButton } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericIcon, GenericLabel, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { CrudType, ProgramCodes } from \"views/Constants/Constant\";\r\n\r\nclass CreateClientCustomerWithFileUpload extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.fileInputRef = React.createRef();\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: null,\r\n\t\t\tBinary: null,\r\n\t\t\tTempFileId: null,\r\n\t\t\tFileName: null,\r\n\t\t\tFile: null,\r\n\t\t\tFileSelect: false\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tlist: [],\r\n\t\t\tIsResponseDialog: false,\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tisLoading: false,\r\n\t\t\tselected: null,\r\n\t\t\tbankAccounts: [],\r\n\t\t\tresponseList: [],\r\n\t\t\tisFileDialogOpen: false,\r\n\t\t\tisFileResultDialogOpen: false,\r\n\t\t\tFileResultList: []\r\n\t\t};\r\n\r\n\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Create Bulk Customer\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t\t// this.GetCustomerBankAccounts();\r\n\t}\r\n\r\n\tHandleChange = (name, value, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleSelectModel = (model, index) => {\r\n\t\tthis.setState({ model, selected: index });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tconst { model } = { ...this.state };\r\n\t\tdelete model.File;\r\n\t\tdelete model.Id;\r\n\t\tdelete model.FileName;\r\n\t\tdelete model.Binary;\r\n\t\tdelete model.TempFileId;\r\n\t\tdelete model.FileSelect;\r\n\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleSubmitDialog = () => {\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\t\tthis.setState({ isFileDialogOpen: true });\r\n\t}\r\n\tHandleSubmit = () => {\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst { model } = { ...this.state };\r\n\t\tvar formData = new FormData();\r\n\t\tformData.append(\"file\", model.File, model.FileName);\r\n\t\tformData.append(\"fileId\", model.TempFileId || 0);\r\n\t\tformData.append(\"isBinaryOrBase64\", model.Binary);\r\n\t\tformData.append(\"isInsertOrUpdate\", model.Id == null ? CrudType.Insert : CrudType.Update);\r\n\r\n\t\tProxy.FileUpload(\"/bankapi/v1.0/ClientCustomer/BulkUploadInserrt\",\r\n\t\t\tformData,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded && responseData.Item < 1) {\r\n\t\t\t\t\tthis.setState({ isLoading: false , isFileDialogOpen: false});\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\r\n\t\t\t\t\tProxy.POST(\"/bankapi/v1.0/ClientCustomer/GetFileInformation\",\r\n\t\t\t\t\t\t{ Id: responseData.Item.FileId },\r\n\t\t\t\t\t\tfileResponseData => {\r\n\t\t\t\t\t\t\tif (!fileResponseData.IsSucceeded) {\r\n\t\t\t\t\t\t\t\tthis.setState({ isLoading: false, isFileDialogOpen: false });\r\n\r\n\t\t\t\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while load file information\", fileResponseData.ErrorDescription);\r\n\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tthis.setState({ FileResultList: fileResponseData.Item, isFileResultDialogOpen: true, isLoading: false, isFileDialogOpen: false });\r\n\t\t\t\t\t\t\tthis.HandleClear();\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\terrorMessage => {\r\n\t\t\t\t\t\t\tthis.setState({ isLoading: false, isFileDialogOpen: false });\r\n\t\t\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while load file information\", errorMessage);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tFileSelect = (e) => {\r\n\r\n\t\tthis.setState({ isLoading: true })\r\n\t\te.preventDefault();\r\n\r\n\t\tvar file = e.target.files[0];\r\n\t\tif (!file) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar { model } = this.state;\r\n\t\tmodel.File = file;\r\n\t\tmodel.FileName = file.name;\r\n\t\tmodel.FileSelect = true;\r\n\t\tmodel.TempFileId = model.File !== undefined\r\n\t\t\t? model.File.Id\r\n\t\t\t: 0;\r\n\r\n\r\n\t\tthis.setState({ model, isLoading: false });\r\n\t}\r\n\r\n\r\n\tValidate = () => {\r\n\t\tconst model = this.state.model;\r\n\r\n\t\tif (!model.File) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Invalid\", \"Please select file !\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tGetCustomerBankAccounts = () => {\r\n\t\t//GetCustomerBankAccountsOp class\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Account/CustomerAccountProfile\",\r\n\t\t\t{\r\n\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tbankAccounts: responseData.Item.List || []\r\n\t\t\t\t\t});\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tbankAccounts: []\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error !\", \"An error occurred while requesting data \" + error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: \"\" })} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\r\n\tUpload = () => {\r\n\t\tthis.fileInputRef.current.click();\r\n\t}\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, isLoading, isFileResultDialogOpen, FileResultList, isFileDialogOpen } = this.state;\r\n\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\r\n\t\t\t\t\r\n\r\n\r\n\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t this.setState({ isFileResultDialogOpen: false })}>\r\n\t\t\t\t\t\t\t\t\tclose\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t row.value ? \"Yes\" : \"No\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Comment\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"Comment\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"CustomerNumber\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"CustomerNumber\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"CustomerTypeCode\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"CustomerTypeCode\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Email\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"Email\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"PhoneCountryCode\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"PhoneCountryCode\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"PhoneNumber\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"PhoneNumber\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"FirstName\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"FirstName\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"LastName\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"LastName\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"BirthDate\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"BirthDate\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"IdentificationMethod\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"IdentificationMethod\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"IdentificationType\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"IdentificationType\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"IdentificationNo\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"IdentificationNo\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"IdentityExpirementDate\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"IdentityExpirementDate\",\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"LegalName\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"LegalName\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"BusinessIdNumber\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"BusinessIdNumber\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"BusinessName\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"BusinessName\",\r\n\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"CompanyName\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"CompanyName\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"RegistrationName\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"RegistrationName\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"RetailName\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"RetailName\"\r\n\t\t\t\t\t\t\t\t},\r\n\r\n\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\tShowPagination={true}\r\n\t\t\t\t\t\t\tSelectedIndex={this.state.rowIndex}\r\n\t\t\t\t\t\t\tProgramCode={ProgramCodes.Prepaid} />\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCreateClientCustomerWithFileUpload.propTypes = {\r\n\tclasses: PropTypes.object.isRequired\r\n};\r\nexport default withArtifex(CreateClientCustomerWithFileUpload, {});","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { CrudType, ProgramCodes, TransactionMoneyTransferType } from \"views/Constants/Constant\";\r\n\r\n\r\nclass MoneyTransaferWithFileUpload extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.fileInputRef = React.createRef();\r\n\r\n\t\tthis.initialModel = {\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tlist: [],\r\n\t\t\tIsResponseDialog: false,\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tisLoading: false,\r\n\t\t\tselected: null,\r\n\t\t\tbankAccounts: [],\r\n\t\t\tresponseList: [],\r\n\t\t\tisFileDialogOpen: false\r\n\t\t};\r\n\r\n\t\tthis.CardDisactive = true;\r\n\t\tthis.CustomerDisactive = true;\r\n\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Bulk Funds Transfer\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t\t//this.HandleGetList();\r\n\t\tthis.ProgramCode = ProgramCodes.Prepaid;\r\n\t\tthis.state.model.ProgramCode = ProgramCodes.Prepaid;\r\n\t\tthis.setState({ model: this.state.model });\r\n\t\t// this.GetCustomerBankAccounts();\r\n\r\n\t}\r\n\r\n\tHandleChange = (name, value, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\r\n\t\tif (name == \"TransferTypeId\") {\r\n\t\t\tvar findIndex = TransactionMoneyTransferType.findIndex(x => x.Id == value);\r\n\r\n\t\t\tif (TransactionMoneyTransferType[findIndex].Text === \"Card\") {\r\n\t\t\t\tthis.CustomerDisactive = true;\r\n\t\t\t\tthis.CardDisactive = false;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tthis.CardDisactive = true;\r\n\t\t\t\tthis.CustomerDisactive = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleSelectModel = (model, index) => {\r\n\t\tthis.setState({ model, selected: index });\r\n\t\tthis.HandleGetList();\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tconst { model } = { ...this.state };\r\n\t\tdelete model.File;\r\n\t\tdelete model.Id;\r\n\t\tdelete model.FileName;\r\n\t\tdelete model.Binary;\r\n\t\tdelete model.TempFileId;\r\n\t\tdelete model.FileSelect;\r\n\t\tdelete model.TransferTypeId;\r\n\r\n\r\n\t\tthis.CustomerDisactive = true;\r\n\t\tthis.CardDisactive = true;\r\n\r\n\t\tthis.setState({ model, IsResponseDialog: false });\r\n\t}\r\n\r\n\tHandleGetList = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tthis.state.model.ProgramCode = ProgramCodes.Prepaid;\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Transaction/GetAllTransactionCustomerByProgramCode\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ list: [] });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleSubmitDialog = () => {\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tthis.setState({ isFileDialogOpen: true });\r\n\t}\r\n\tHandleSubmit = () => {\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tif (!this.CardDisactive)\r\n\t\t\tthis.url = \"/bankapi/v1.0/Transaction/MoneySendCardTransactionWithBulkFileUpload\";\r\n\t\telse\r\n\t\t\tthis.url = \"/bankapi/v1.0/Transaction/MoneySendCustomerTransactionWithBulkFileUpload\"\r\n\r\n\t\tif (this.CardDisactive)\r\n\t\t\tthis.fileUrl = \"/bankapi/v1.0/Transaction/GetCustomerFileInformation\";\r\n\t\telse\r\n\t\t\tthis.fileUrl = \"/bankapi/v1.0/Transaction/GetCardFileInformation\";\r\n\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst { model } = { ...this.state };\r\n\t\tvar formData = new FormData();\r\n\t\tformData.append(\"file\", model.File, model.FileName);\r\n\t\tformData.append(\"fileId\", model.TempFileId || 0);\r\n\t\tformData.append(\"isBinaryOrBase64\", model.Binary);\r\n\t\tformData.append(\"isInsertOrUpdate\", model.Id == null ? CrudType.Insert : CrudType.Update);\r\n\r\n\t\tProxy.FileUpload(\r\n\t\t\tthis.url,\r\n\t\t\tformData,\r\n\t\t\t(responseData) => {\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded && responseData.Item < 1) {\r\n\t\t\t\t\tthis.setState({ isLoading: false, isFileDialogOpen: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\tthis.HandleClear();\r\n\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tProxy.POST(this.fileUrl,\r\n\t\t\t\t\t\t{ Id: responseData.Item.FileId },\r\n\t\t\t\t\t\tfileResponseData => {\r\n\t\t\t\t\t\t\tif (!fileResponseData.IsSucceeded) {\r\n\t\t\t\t\t\t\t\tthis.setState({ isLoading: false, isFileDialogOpen: false });\r\n\r\n\t\t\t\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while load file information\", fileResponseData.ErrorDescription);\r\n\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tthis.setState({ responseList: fileResponseData.Item, IsResponseDialog: true, isLoading: false, isFileDialogOpen: false });\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\terrorMessage => {\r\n\t\t\t\t\t\t\tthis.setState({ isLoading: false, isFileDialogOpen: false });\r\n\t\t\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while load file information\", errorMessage);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tFileSelect = (e) => {\r\n\r\n\t\tthis.setState({ isLoading: true })\r\n\t\te.preventDefault();\r\n\r\n\t\tvar file = e.target.files[0];\r\n\t\tif (!file) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar { model } = this.state;\r\n\r\n\t\tmodel.File = file;\r\n\t\tmodel.FileName = file.name;\r\n\t\tmodel.FileSelect = true;\r\n\t\tmodel.TempFileId = model.File !== undefined\r\n\t\t\t? model.File.Id\r\n\t\t\t: 0;\r\n\t\tthis.setState({ model, isLoading: false });\r\n\r\n\t}\r\n\r\n\r\n\tValidate = () => {\r\n\t\tconst model = this.state.model;\r\n\r\n\t\tif (!model.File) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Invalid\", \"Please select file !\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: \"\" })} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\r\n\tUpload = () => {\r\n\t\tthis.fileInputRef.current.click();\r\n\t}\r\n\trender() {\r\n\t\tconst { alert, model, isLoading, IsResponseDialog, isFileDialogOpen } = this.state;\r\n\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\r\n\t\t\t\t\r\n\r\n\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t row.value ? \"Yes\" : \"No\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Comment\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"Comment\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Transaction Type\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"TransactionType\",\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Source Account Number\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"SourceAccountNumber\",\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Destination Account Number\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"DestinationAccountNumber\",\r\n\t\t\t\t\t\t\t\t\tshow: this.CustomerDisactive\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Client Customer Number\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"CustomerNumber\",\r\n\t\t\t\t\t\t\t\t\tshow: this.CardDisactive\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Destination Account Number\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"DestinationWalletAccountNumber\",\r\n\t\t\t\t\t\t\t\t\tshow: this.CardDisactive\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"Amount\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Description\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"Description\"\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\tShowPagination={true}\r\n\t\t\t\t\t\t\tSelectedIndex={this.state.rowIndex}\r\n\t\t\t\t\t\t\tProgramCode={ProgramCodes.Prepaid} />\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nMoneyTransaferWithFileUpload.propTypes = {\r\n\tclasses: PropTypes.object.isRequired\r\n};\r\n\r\nexport default withArtifex(MoneyTransaferWithFileUpload, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport { EditIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent\";\r\nimport { GenericAlert, GenericCheckInput, GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ToolbarButton from \"views/Components/ToolbarButton\";\r\nimport { ProgramCodes } from \"views/Constants/Constant.js\";\r\nimport GridButton from \"views/Components/GridButton\";\r\n\r\nclass AssignAccount extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.emptyModel = {\r\n\t\t\tId: null,\r\n\t\t\tCountry: null,\r\n\t\t\tUniqueClientId: null,\r\n\t\t\tCustomer: null,\r\n\t\t\tSelectedAccount: null,\r\n\t\t\tSelectedCard: null,\r\n\t\t\tHasCardUsageLimit: false,\r\n\t\t\tCardUsagePeriodId: null,\r\n\t\t\tCardUsageLimit: null,\r\n\t\t\tAccountList: [],\r\n\t\t};\r\n\r\n\t\tthis.initialDialogModel = {\r\n\t\t\tIsDialogOpen: false,\r\n\t\t\tSelectedCard: null\r\n\t\t};\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t { this.handleSelect(row.original, row.index); }}\r\n\t\t\t\t\t\t\tIcon={EditIcon} \r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\tresizable: false,\r\n\t\t\t\twidth: 80\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Cardholder Name\",\r\n\t\t\t\taccessor: \"EmbossName1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Masked Card Number\",\r\n\t\t\t\taccessor: \"CardNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Balance\",\r\n\t\t\t\taccessor: \"CardBalance\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Limit\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{row.original.HasCardUsageLimit ? row.original.CardUsageLimit : \"\"}\r\n\t\t\t\t\t
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Limit Period\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{row.original.HasCardUsageLimit ? (row.original.CardUsagePeriod != null ? row.original.CardUsagePeriod.ParameterDesc : \"\") : \"\"}\r\n\t\t\t\t\t
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Number\",\r\n\t\t\t\taccessor: \"AccountNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Program\",\r\n\t\t\t\taccessor: \"AccountProgram\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.state = {\r\n\t\t\talert: null,\r\n\t\t\tlist: [],\r\n\t\t\tlastFilterModel: this.emptyModel,\r\n\t\t\tmodel: this.emptyModel,\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Change Card Default Account\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t}\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tconst dialogModel = { ...this.state.dialogModel };\r\n\t\tconst emptyModel = { ...this.emptyModel };\r\n\r\n\t\tif (name === \"Customer\") {\r\n\t\t\tif (newValue != null) {\r\n\t\t\t\tmodel.Customer = newValue;\r\n\t\t\t\tif (newValue.Accounts != null && newValue.Accounts.length > 0) {\r\n\t\t\t\t\tmodel.AccountList = newValue.Accounts;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmodel.AccountList = [];\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tmodel.Customer = emptyModel.Customer;\r\n\t\t\t\tmodel.AccountList = [];\r\n\t\t\t}\r\n\t\t} else if (name === \"UniqueClientId\") {\r\n\t\t\tif (ClientHelper.IsClient() && emptyModel.UniqueClientId == null && newValue != null) {\r\n\t\t\t\tthis.emptyModel.UniqueClientId = newValue;\r\n\t\t\t}\r\n\t\t\tmodel.UniqueClientId = newValue;\r\n\t\t} else if (name === \"Account\") {\r\n\t\t\tmodel.SelectedAccount = newValue;\r\n\t\t} else if (name === \"HasCardUsageLimit\") {\r\n\t\t\tmodel.HasCardUsageLimit = newValue;\r\n\t\t} else if (name === \"CardUsagePeriodId\") {\r\n\t\t\tmodel.CardUsagePeriodId = newValue;\r\n\t\t} else if (name === \"CardUsageLimit\") {\r\n\t\t\tmodel.CardUsageLimit = newValue;\r\n\t\t}\r\n\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\thandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: this.emptyModel,\r\n\t\t\talert: null,\r\n\t\t\tlist: []\r\n\t\t});\r\n\t};\r\n\r\n\tloadAccount = (action) => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst request = {\r\n\t\t\tUniqueClientId: model.UniqueClientId,\r\n\t\t\tClientCustomerId: model.Customer == null ? null : model.Customer.Id\r\n\t\t};\r\n\t\tProxy.ExecuteGeneral(\r\n\t\t\tthis, \"POST\",\r\n\t\t\t\"/bankapi/v1.0/ClientCustomer/SearchBankAccount\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tmodel.AccountList = responseData.Item;\r\n\t\t\t\tthis.setState({ model }, action);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\thandleSearch = () => {\r\n\t\tif (!this.validateSearch()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.loadAccount(() => {\r\n\t\t\tconst { model } = this.state;\r\n\t\t\tthis.search(model);\r\n\t\t})\r\n\t};\r\n\r\n\tsearch = (model) => {\r\n\t\tconst request = {\r\n\t\t\tUniqueClientId: model.UniqueClientId,\r\n\t\t\tClientCustomerId: model.Customer == null ? null : model.Customer.Id\r\n\t\t};\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.ExecuteGeneral(\r\n\t\t\tthis, \"POST\",\r\n\t\t\t\"/prepaidapi/v1.0/Card/GetCardSummaryList\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tvar list = []\r\n\t\t\t\tif (responseData.Item != null && responseData.Item[0] != null) {\r\n\t\t\t\t\tlist = responseData.Item;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ list: list, lastFilterModel: model, isLoading: false });\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\thandleSubmit = () => {\r\n\t\tif (!this.validateUpdate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst { model, lastFilterModel } = this.state;\r\n\t\tconst request = {\r\n\t\t\tUniqueClientId: model.UniqueClientId,\r\n\t\t\tCardId: model.SelectedCard == null ? null : model.SelectedCard.Id,\r\n\t\t\tBankAccountId: model.SelectedAccount,\r\n\t\t\tHasCardUsageLimit: model.HasCardUsageLimit,\r\n\t\t\tCardUsageLimitPeriodId: model.HasCardUsageLimit ? model.CardUsagePeriodId : null,\r\n\t\t\tCardUsageLimit: model.HasCardUsageLimit ? model.CardUsageLimit : null,\r\n\t\t};\r\n\r\n\t\tProxy.ExecuteGeneral(\r\n\t\t\tthis, \"POST\",\r\n\t\t\t\"/prepaidapi/v1.0/Prepaid/UpdateCardAccountAndUsageLimit\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tmodel.SelectedCard = null;\r\n\t\t\t\tmodel.SelectedAccount = null;\r\n\t\t\t\tmodel.CardUsageLimit = null;\r\n\t\t\t\tmodel.CardUsagePeriodId = null;\r\n\t\t\t\tmodel.HasCardUsageLimit = false;\r\n\t\t\t\tthis.setState({ model, isLoading: false }, () => { this.search(lastFilterModel); });\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\thandleSelect = (data, index) => {\r\n\t\tconst { model } = this.state;\r\n\t\tvar clonedData = Object.assign({}, data);\r\n\t\tmodel.SelectedCard = clonedData;\r\n\t\tmodel.SelectedAccount = clonedData.AccountId;\r\n\t\tmodel.HasCardUsageLimit = clonedData.HasCardUsageLimit;\r\n\t\tmodel.CardUsageLimit = clonedData.CardUsageLimit;\r\n\t\tmodel.CardUsagePeriodId = clonedData.CardUsagePeriodId;\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\tvalidateSearch = () => {\r\n\t\tvar errorList = [];\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tif (model.UniqueClientId == null || model.UniqueClientId == 0) {\r\n\t\t\terrorList.push(\"Client must be selected!\");\r\n\t\t}\r\n\r\n\t\tif (model.Customer == null || model.Customer.Id == null || model.Customer.Id == 0) {\r\n\t\t\terrorList.push(\"Customer must be selected!\");\r\n\t\t}\r\n\r\n\t\tif (errorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Required fields!\", errorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\tvalidateUpdate = () => {\r\n\t\tvar errorList = [];\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tif (model.UniqueClientId == null || model.UniqueClientId == 0) {\r\n\t\t\terrorList.push(\"Client must be selected!\");\r\n\t\t}\r\n\r\n\t\tif (model.Customer == null || model.Customer.Id == null || model.Customer.Id == 0) {\r\n\t\t\terrorList.push(\"Customer must be selected!\");\r\n\t\t}\r\n\r\n\t\tif (model.SelectedCard == null || model.SelectedCard.Id == null || model.SelectedCard.Id == 0) {\r\n\t\t\terrorList.push(\"Card must be selected!\");\r\n\t\t}\r\n\r\n\t\tif (model.SelectedAccount == null || model.SelectedAccount == 0) {\r\n\t\t\terrorList.push(\"New account must be selected!\");\r\n\t\t}\r\n\r\n\t\tif (errorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Required fields!\", errorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, alert, list, isLoading } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={ClientHelper.IsClient()}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDefaultIndex={ClientHelper.IsClient() ? 0 : 0} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t { this.handleChange(\"Customer\", customer, null); }}\r\n\t\t\t\t\t\t\t\t\t\t\t\tPrograms={[ProgramCodes.Prepaid]}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={model.UniqueClientId == null}\r\n\t\t\t\t\t\t\t\t\t\t\t\tShowCustomerProgram={true}\r\n\t\t\t\t\t\t\t\t\t\t\t\tLabelMd={5} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t `${d.AccountNumber} - ${d.AccountName}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={model.SelectedCard == null ? null : model.SelectedAccount}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={model.SelectedCard == null} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t\tOnConfirm={onConfirm}\r\n\t\t\t\t/>\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n}\r\n\r\nAssignAccount.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\thandleChange: PropTypes.func,\r\n\tmenuId: PropTypes.number,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default withArtifex(AssignAccount, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport { EditIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent\";\r\nimport { GenericAlert, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ToolbarButton from \"views/Components/ToolbarButton\";\r\nimport { ProgramCodes } from \"views/Constants/Constant.js\";\r\nimport GridButton from \"views/Components/GridButton\";\r\n\r\nclass AssignDDTAccount extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.emptyModel = {\r\n\t\t\tId: null,\r\n\t\t\tCountry: null,\r\n\t\t\tUniqueClientId: null,\r\n\t\t\tCustomer: null,\r\n\t\t\tSelectedAccountId: null,\r\n\t\t\tSelectedCardId: null,\r\n\t\t\tAccountList: [],\r\n\t\t};\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t { this.handleSelect(row.original, row.index); }}\r\n\t\t\t\t\t\t\tIcon={EditIcon} \r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\tresizable: false,\r\n\t\t\t\twidth: 80\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Cardholder Name\",\r\n\t\t\t\taccessor: \"EmbossName1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Masked Card Number\",\r\n\t\t\t\taccessor: \"CardNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Balance\",\r\n\t\t\t\taccessor: \"CardBalance\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Limit\",\r\n\t\t\t\taccessor: \"CardUsageLimit\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Number\",\r\n\t\t\t\taccessor: \"AccountNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Program\",\r\n\t\t\t\taccessor: \"AccountProgram\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.state = {\r\n\t\t\talert: null,\r\n\t\t\tvModel: {},\r\n\t\t\tlist: [],\r\n\t\t\tmodel: this.emptyModel,\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Assign Reportable Account To Customer\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t}\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tconst dialogModel = { ...this.state.dialogModel };\r\n\t\tconst emptyModel = { ...this.emptyModel };\r\n\r\n\t\tif (name === \"Customer\") {\r\n\t\t\tif (newValue != null) {\r\n\t\t\t\tmodel.Customer = newValue;\r\n\t\t\t\tif (newValue.Accounts != null && newValue.Accounts.length > 0) {\r\n\t\t\t\t\tmodel.AccountList = newValue.Accounts;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmodel.AccountList = [];\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tmodel.Customer = emptyModel.Customer;\r\n\t\t\t\tmodel.AccountList = [];\r\n\t\t\t}\r\n\t\t} else if (name === \"UniqueClientId\") {\r\n\t\t\tif (ClientHelper.IsClient() && emptyModel.UniqueClientId == null && newValue != null) {\r\n\t\t\t\tthis.emptyModel.UniqueClientId = newValue;\r\n\t\t\t}\r\n\t\t\tmodel.UniqueClientId = newValue;\r\n\t\t} else {\r\n\t\t\tmodel[name] = newValue;\r\n\t\t}\r\n\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\thandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: this.emptyModel,\r\n\t\t\talert: null,\r\n\t\t\tlist: []\r\n\t\t});\r\n\t};\r\n\r\n\thandleSearch = () => {\r\n\t\tif (!this.validateSearch()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tlet model = { ...this.state.model }\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst request = {\r\n\t\t\tUniqueClientId: model.UniqueClientId,\r\n\t\t\tClientCustomerId: model.Customer == null ? null : model.Customer.Id\r\n\t\t};\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Card/GetCardSummaryList\",\r\n\t\t\trequest,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\thandleSubmit = () => {\r\n\t\tif (!this.validateSubmit()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst { model } = this.state;\r\n\t\tconst request = {\r\n\t\t\tUniqueClientId: model.UniqueClientId,\r\n\t\t\tCardId: model.SelectedCardId == null ? null : model.SelectedCardId,\r\n\t\t\tBankAccountId: model.SelectedAccountId\r\n\t\t};\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Prepaid/UpdateCardAccount\",\r\n\t\t\trequest,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tmodel.SelectedCardId = null;\r\n\t\t\t\tmodel.SelectedAccountId = null;\r\n\t\t\t\tthis.setState({ model }, () => { this.handleSearch(); });\r\n\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Operation is successfully!\");\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\thandleSelect = (data, index) => {\r\n\t\tconst { model } = this.state;\r\n\t\tvar clonedData = Object.assign({}, data);\r\n\t\tmodel.SelectedCardId = clonedData.Id;\r\n\t\tmodel.SelectedAccountId = clonedData.AccountId;\r\n\t\tmodel.Update = true;\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\tvalidateSearch = () => {\r\n\t\tvar errorList = [];\r\n\t\tconst { model } = this.state;\r\n\t\tlet vModel = { ...this.state.vModel };\r\n\t\tvModel.UniqueClientId = model.UniqueClientId == null || model.UniqueClientId == 0;\r\n\t\tif (vModel.UniqueClientId) errorList.push(\"Client must be selected!\");\r\n\t\tvModel.Customer = model.Customer == null || model.Customer.Id == null || model.Customer.Id == 0;\r\n\t\tif (vModel.Customer) errorList.push(\"Customer must be selected!\");\r\n\t\tthis.setState({ vModel });\r\n\t\tif (errorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Required fields!\", errorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\tvalidateSubmit = () => {\r\n\t\tvar errorList = [];\r\n\t\tconst { model } = this.state;\r\n\t\tlet vModel = { ...this.state.vModel };\r\n\t\tvModel.UniqueClientId = model.UniqueClientId == null || model.UniqueClientId == 0;\r\n\t\tif (vModel.UniqueClientId) errorList.push(\"Client must be selected!\");\r\n\t\tvModel.Customer = model.Customer == null || model.Customer.Id == null || model.Customer.Id == 0;\r\n\t\tif (vModel.Customer) errorList.push(\"Customer must be selected!\");\r\n\t\tvModel.SelectedCardId = model.SelectedCardId == null || model.SelectedCardId == 0;\r\n\t\tif (vModel.SelectedCardId) errorList.push(\"Card must be selected!\");\r\n\t\tvModel.SelectedAccountId = model.SelectedAccountId == null || model.SelectedAccountId == 0;\r\n\t\tif (vModel.SelectedAccountId) errorList.push(\"New account must be selected!\");\r\n\t\tthis.setState({ vModel });\r\n\t\tif (errorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Required fields!\", errorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, vModel, alert, list, isLoading } = this.state;\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={ClientHelper.IsClient()}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tDefaultIndex={ClientHelper.IsClient() ? 0 : -1}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.UniqueClientId} />\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t { this.handleChange(\"Customer\", customer, null); }}\r\n\t\t\t\t\t\t\t\t\t\t\t\tPrograms={[ProgramCodes.Prepaid]}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={model.UniqueClientId == null}\r\n\t\t\t\t\t\t\t\t\t\t\t\tShowCustomerProgram={true}\r\n\t\t\t\t\t\t\t\t\t\t\t\tLabelMd={5}\r\n\t\t\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.Customer} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t `${d.EmbossName1} - ${d.CardNumber}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={model.SelectedCardId || 0}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.SelectedCardId}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={model.Update || model.Customer == null}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t `${d.AccountNumber} - ${d.AccountName}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.SelectedAccountId}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={model.Customer == null}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.Account}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t\tOnConfirm={onConfirm}\r\n\t\t\t\t/>\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n}\r\n\r\nAssignDDTAccount.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\thandleChange: PropTypes.func,\r\n\tmenuId: PropTypes.number,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default withArtifex(AssignDDTAccount, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { CardFindType, GridColumnType, ProgramCodes } from \"views/Constants/Constant.js\";\r\n\r\nclass AssignCard extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t\tIsNoNameCard: true,\r\n\t\t\tIsClientCustomerIdAssigned: true\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tvModel: {},\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false\r\n\t\t}\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.maxLength19 = { maxLength: 19 };\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : undefined\r\n\t\t};\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\r\n\t\tthis.parameterProduct = {};\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"UniqueClient.ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer\",\r\n\t\t\t\taccessor: \"ClientCustomer.CustomerName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Number\",\r\n\t\t\t\taccessor: \"CardNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Product Name\",\r\n\t\t\t\taccessor: \"Product.ProductName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Usage Limit\",\r\n\t\t\t\taccessor: \"CardUsageLimit\",\r\n\t\t\t\ttypes: GridColumnType.Money,\r\n\t\t\t\tColumnType:GridColumnType.Money\r\n\t\t\t}\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Assign Card\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (name === \"Customer\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.ClientCustomerId = newValue.Id;\r\n\t\t\t\tmodel.CustomerNumber = newValue.CustomerNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.ClientCustomerId;\r\n\t\t\t\tdelete model.CustomerNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (name === \"UniqueClientId\") {\r\n\t\t\tdelete model.ClientCustomerId;\r\n\t\t\tdelete model.CustomerNumber;\r\n\t\t}\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, isEdit: false, index: -1 });\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Card/GetCardSummaryList\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleSubmit = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Prepaid/AssignClientCustomerIdForNoNameCard\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ model: { ...this.initialModel }, index: -1 });\r\n\t\t\t\t\tthis.props.showMessage(\"success\", \"Succeeded\", \"Operation is successfully!\");\r\n\t\t\t\t\tthis.HandleSearch();\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tvar messages = [];\r\n\r\n\t\tvModel.UniqueClientId = model.UniqueClientId == null;\r\n\t\tif (vModel.UniqueClientId) messages.push(\"Client must be select\");\r\n\r\n\t\tvModel.ClientCustomerId = model.ClientCustomerId == null;\r\n\t\tif (vModel.ClientCustomerId) messages.push(\"Customer must be select\");\r\n\r\n\t\tvModel.CardFindType = model.CardFindType == null;\r\n\t\tif (vModel.CardFindType) messages.push(\"Card Find Type must be select\");\r\n\r\n\t\tvModel.CardId = model.CardFindType === 1 && model.CardId == null;\r\n\t\tif (vModel.CardId) messages.push(\"Card Id must be select\");\r\n\r\n\t\tvModel.ClearCardNumber = model.CardFindType === 2 && model.ClearCardNumber == null;\r\n\t\tif (vModel.ClearCardNumber) messages.push(\"Card Number must be select\");\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.props.showMessageNode(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.setState({ vModel });\r\n\t\treturn true;\r\n\t}\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tlet { model, list } = this.state;\r\n\t\tmodel = list[index];\r\n\t\tif (list[index].ClientCustomer) {\r\n\t\t\tmodel.ClientCustomerId = list[index].ClientCustomer.Id;\r\n\t\t\tmodel.CustomerNumber = list[index].ClientCustomer.CustomerNumber;\r\n\t\t}\r\n\t\tthis.setState({ isEdit: true, model, index });\r\n\t}\r\n\r\n\tFillCustomer = (customer) => {\r\n\t\tthis.HandleChange(\"Customer\", customer);\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes, Disabled } = this.props;\r\n\t\tconst { alert, model, vModel, list, isLoading, index } = this.state;\r\n\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\r\n\t\treturn (\r\n\t\t\t<>\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t 0, ModelFunction: () => model, FillDataFromModel: model => this.setState({ model }), ValidationFunction: this.Validate },\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{model.CardFindType === 1 &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{model.CardFindType === 2 &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nAssignCard.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(AssignCard, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport { EditIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent\";\r\nimport { GenericAlert, GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant.js\";\r\n\r\nclass AssignDDTAccount extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.emptyModel = {\r\n\t\t\tId: null,\r\n\t\t\tCountry: null,\r\n\t\t\tUniqueClientId: null,\r\n\t\t\tCustomer: null,\r\n\t\t\tSelectedAccount: null,\r\n\t\t\tSelectedFindType: null,\r\n\t\t\tSelectedFindValue: null,\r\n\t\t\tSelectedCard: null,\r\n\t\t\tAccountList: [],\r\n\t\t};\r\n\t\tthis.columns = [\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t { this.handleSelect(row.original, row.index); }} />\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\tresizable: false,\r\n\t\t\t\twidth: 80\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"AccountOwner\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Number\",\r\n\t\t\t\taccessor: \"ClientCustomer.CustomerNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transit Number\",\r\n\t\t\t\taccessor: \"TransitNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Number\",\r\n\t\t\t\taccessor: \"DDTNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Issued Date\",\r\n\t\t\t\taccessor: \"IssuedDate\",\r\n\t\t\t\ttype: GridColumnType.Date,\r\n\t\t\t\tColumnType: GridColumnType.Date\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Expire Date\",\r\n\t\t\t\taccessor: \"ExpireDate\",\r\n\t\t\t\ttype: GridColumnType.Date,\r\n\t\t\t\tColumnType: GridColumnType.Date\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Status\",\r\n\t\t\t\taccessor: \"Status\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Balance\",\r\n\t\t\t\taccessor: \"Balance\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Name\",\r\n\t\t\t\taccessor: \"Name\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"E-Mail\",\r\n\t\t\t\taccessor: \"Email\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.state = {\r\n\t\t\talert: null,\r\n\t\t\tlist: [],\r\n\t\t\tlastFilterModel: this.emptyModel,\r\n\t\t\tmodel: this.emptyModel,\r\n\t\t\tisLoading: false,\r\n\t\t\tvModel: {\r\n\t\t\t\tUniqueClientId:false,\r\n\t\t\t\tSelectedFindType:false,\r\n\t\t\t\tSelectedFindValue:false,\r\n\t\t\t\tCustomer:false\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tthis.DDTFindType = [\r\n\t\t\t{\r\n\t\t\t\tValue: 2,\r\n\t\t\t\tLabel: \"From Account Id\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tValue: 3,\r\n\t\t\t\tLabel: \"From Account Number\"\r\n\t\t\t}];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Assign Unreportable Account To Customer\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t}\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tconst emptyModel = { ...this.emptyModel };\r\n\r\n\t\tif (name === \"Customer\") {\r\n\t\t\tif (newValue != null) {\r\n\t\t\t\tmodel.Customer = newValue;\r\n\t\t\t\tif (newValue.Accounts != null && newValue.Accounts.length > 0) {\r\n\t\t\t\t\tmodel.AccountList = newValue.Accounts;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmodel.AccountList = [];\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tmodel.Customer = emptyModel.Customer;\r\n\t\t\t\tmodel.AccountList = [];\r\n\t\t\t}\r\n\t\t} else if (name === \"UniqueClientId\") {\r\n\t\t\tif (ClientHelper.IsClient() && emptyModel.UniqueClientId == null && newValue != null) {\r\n\t\t\t\tthis.emptyModel.UniqueClientId = newValue;\r\n\t\t\t}\r\n\t\t\tmodel.UniqueClientId = newValue;\r\n\t\t}\r\n\r\n\t\tmodel[name] = newValue;\r\n\r\n\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\thandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: this.emptyModel,\r\n\t\t\talert: null,\r\n\t\t\tlist: []\r\n\t\t});\r\n\t};\r\n\r\n\tloadAccount = (action) => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst request = {\r\n\t\t\tUniqueClientId: model.UniqueClientId,\r\n\t\t\tClientCustomerId: model.Customer == null ? null : model.Customer.Id,\r\n\t\t\tPrograms: [ProgramCodes.Bank_Programs_DDT, ProgramCodes.Bank_Programs_CDIC]\r\n\t\t};\r\n\t\tProxy.ExecuteGeneral(\r\n\t\t\tthis, \"POST\",\r\n\t\t\t\"/bankapi/v1.0/ClientCustomer/SearchBankAccount\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tmodel.AccountList = responseData.Item;\r\n\t\t\t\tthis.setState({ model }, action);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\thandleSearch = () => {\r\n\t\tif (!this.validateSearch()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.loadAccount(() => {\r\n\t\t\tconst { model } = this.state;\r\n\t\t\tthis.search(model);\r\n\t\t})\r\n\t};\r\n\r\n\tsearch = (model) => {\r\n\t\tconst request = {\r\n\t\t\tIsClientCustomerIdAssigned: true,\r\n\t\t\tClientCustomerId: model.Customer == null ? null : model.Customer.Id\r\n\t\t};\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/DDT/DdtSearch\", request,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item.DDTList });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\thandleSubmit = () => {\r\n\r\n\t\tif (!this.validateSubmit()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst { model } = this.state;\r\n\t\tconst request = {\r\n\t\t\tDdtFindType: model.SelectedFindType,\r\n\t\t\tClientCustomerId: model.Customer == null ? null : model.Customer.Id,\r\n\t\t\tCustomerNumber: model.SelectedFindType == 1 ? model.SelectedFindValue : null,\r\n\t\t\tAccountId: model.SelectedFindType == 2 ? model.SelectedFindValue : null,\r\n\t\t\tAccountNumber: model.SelectedFindType == 3 ? model.SelectedFindValue : null,\r\n\t\t};\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Prepaid/AssignClientCustomerIdForDdtAccount\",\r\n\t\t\trequest,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.handleSearch();\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Operation is successfully!\");\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\thandleSelect = (data, index) => {\r\n\t\tconst { model } = this.state;\r\n\t\tvar clonedData = Object.assign({}, data);\r\n\t\tmodel.SelectedCard = clonedData;\r\n\t\tmodel.SelectedAccount = clonedData.AccountId;\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\tvalidateSearch = () => {\r\n\t\tvar errorList = [];\r\n\t\tconst { model } = this.state;\r\n\t\tlet vModel = { ...this.state.vModel };\r\n\t\tvModel.UniqueClientId = model.UniqueClientId == null || model.UniqueClientId == 0;\r\n\t\tif (vModel.UniqueClientId) errorList.push(\"Client must be selected!\");\r\n\t\tvModel.Customer = model.Customer == null || model.Customer.Id == null || model.Customer.Id == 0;\r\n\t\tif (vModel.Customer) errorList.push(\"Customer must be selected!\");\r\n\t\tthis.setState({ vModel });\r\n\t\tif (errorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Required fields!\", errorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\tvalidateSubmit = () => {\r\n\t\tvar errorList = [];\r\n\t\tconst { model } = this.state;\r\n\t\tlet vModel = { ...this.state.vModel };\r\n\t\tvModel.UniqueClientId = model.UniqueClientId == null || model.UniqueClientId == 0;\r\n\r\n\t\tif(vModel.UniqueClientId) {\r\n\t\terrorList.push(\"Client must be selected!\");}\r\n\t\t\r\n\t\tvModel.Customer = model.Customer == null || model.Customer.Id == null || model.Customer.Id == 0;\r\n\t\tif(vModel.Customer){\r\n\t\t errorList.push(\"Customer must be selected!\");}\r\n\r\n\t\tvModel.SelectedFindType = model.SelectedFindType == null || model.SelectedFindType == 0;\r\n\t\tif(vModel.SelectedFindType) {\r\n\t\terrorList.push(\"Account Find Method must be selected!\");}\r\n\r\n\t\tif(!vModel.SelectedFindType) {\r\n\t\t\tvModel.SelectedFindValue = model.SelectedFindValue == null || model.SelectedFindValue == \"\";\r\n\t\t\tif (vModel.SelectedFindValue) {\r\n\t\t\terrorList.push(\"Account Find Value must be enter!\");}\r\n\t\t}\r\n\r\n\t\tthis.setState({ vModel });\r\n\t\tif (errorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Required fields!\", errorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, vModel, alert, list, isLoading } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={ClientHelper.IsClient()}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDefaultIndex={ClientHelper.IsClient() ? 0 : -1}\r\n\t\t\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.UniqueClientId} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t { this.handleChange(\"Customer\", customer, null); }}\r\n\t\t\t\t\t\t\t\t\t\t\t\tPrograms={[ProgramCodes.Prepaid]}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={model.UniqueClientId == null}\r\n\t\t\t\t\t\t\t\t\t\t\t\tShowCustomerProgram={true}\r\n\t\t\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.Customer} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t `${d.Label}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={model.SelectedFindType}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={!(model.Customer && model.Customer.Id)}\r\n\t\t\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.SelectedFindType} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{model.Customer && model.Customer.Id && model.SelectedFindType != null &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t\tOnConfirm={onConfirm}\r\n\t\t\t\t/>\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n}\r\n\r\nAssignDDTAccount.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\thandleChange: PropTypes.func,\r\n\tmenuId: PropTypes.number,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default withArtifex(AssignDDTAccount, {});\r\n","import { withStyles } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput, GenericDateInput,GenericCheckInput } from \"views/Components/Generic\";\r\nimport { Proxy } from \"core\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport externalContainerStyle from \"assets/jss/material-dashboard-pro-react/layouts/externalContainerStyle.jsx\";\r\nimport { ParameterEmptyObject } from \"views/Constants/Constant.Parameter\";\r\nimport { SortedName, SortedParameterValue, SortedPropertyName } from \"views/Constants/Constant.Sorted\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\nimport DateHelper from \"core/DateHelper\";\r\n\r\nclass CardEmbossRequest extends React.Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Id\",\r\n\t\t\t\taccessor: \"Id\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"CardId\",\r\n\t\t\t\taccessor: \"CardId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Token Number\",\r\n\t\t\t\taccessor: \"CardTokenNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Insert Date Time\",\r\n\t\t\t\taccessor: \"InsertDateTime\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Exported\",\r\n\t\t\t\taccessor: \"IsExported\",\r\n\t\t\t\ttype: GridColumnType.YesNo\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Export Date\",\r\n\t\t\t\taccessor: \"ExportDate\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"File Name\",\r\n\t\t\t\taccessor: \"FileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Emboss Name 1\",\r\n\t\t\t\taccessor: \"EmbossName1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Address Line 1\",\r\n\t\t\t\taccessor: \"AddressLine1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Address Line 2\",\r\n\t\t\t\taccessor: \"AddressLine2\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Province\",\r\n\t\t\t\taccessor: \"Province\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Country\",\r\n\t\t\t\taccessor: \"Country\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"City\",\r\n\t\t\t\taccessor: \"City\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Zip Code\",\r\n\t\t\t\taccessor: \"ZipCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Error Code\",\r\n\t\t\t\taccessor: \"ErrorCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Error Description\",\r\n\t\t\t\taccessor: \"ErrorDescription\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"ProductId\",\r\n\t\t\t\taccessor: \"ProductId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"PlasticTypeId\",\r\n\t\t\t\taccessor: \"PlasticTypeId\"\r\n\t\t\t}\r\n\t\t];\r\n\t\tthis.getappCenterTitle = \"Empty\";\r\n\t\tthis.getappLeftTitle = \"Empty\";\r\n\t\tthis.zIndex10 = { zIndex: 10 };\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\tdata: [],\r\n\t\t\trecordKeeping: [],\r\n\t\t\tisSendEmailDialogOpen: false,\r\n\t\t\tactiveClient: [],\r\n\t\t\tresponseDetail: {},\r\n\t\t\tisDetailDialogOpen: false\r\n\t\t};\r\n\t\tthis.cpverTable = React.createRef();\r\n\t}\r\n\r\n\tcomponentDidMount = () => {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"Card Emboss Request\");\r\n\t\t\tthis.getappCenterTitle = \"Card Emboss Request\";\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Card Emboss\");\r\n\t\t\tthis.getappLeftTitle = \"Card Emboss Request\";\r\n\t\t}\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, data: [], selected: null });\r\n\t}\r\n\r\n\tshowLoading = () => { this.setState({ isLoading: true }); }\r\n\thideLoading = () => { this.setState({ isLoading: false }); }\r\n\r\n\tshowDetail = async (result) => {\r\n\t\tthis.setState({ responseDetail: result || [], isDetailDialogOpen: true });\r\n\t\tconsole.log(result);\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/CardRequest/CardEmbossRequest\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ data: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\thandleChange = (name, newValue) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\tGetRenderItemClient = (x) => {\r\n\t\tvar render = `${x.Name} - ${x.UniqueClientId}`;\r\n\r\n\t\treturn render;\r\n\t}\r\n\r\n\tValueChanged = (name, value, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, selected, isLoading, data } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCardEmbossRequest.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tExecuteApiFileDownloadWithGenericResponse: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default withStyles(externalContainerStyle)(CardEmbossRequest);","import { withStyles } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericSelectInput } from \"views/Components/Generic\";\r\nimport { Proxy } from \"core\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport externalContainerStyle from \"assets/jss/material-dashboard-pro-react/layouts/externalContainerStyle.jsx\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\nimport { ParameterEmptyObject } from \"views/Constants/Constant.Parameter\";\r\nimport { SortedName } from \"views/Constants/Constant.Sorted\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent.jsx\";\r\n\r\nclass CardListReport extends React.Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Id\",\r\n\t\t\t\taccessor: \"CardId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Financial Id\",\r\n\t\t\t\taccessor: \"CardFinancialId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Token Number\",\r\n\t\t\t\taccessor: \"CardTokenNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Emboss Name\",\r\n\t\t\t\taccessor: \"EmbossName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Wallet Account Number\",\r\n\t\t\t\taccessor: \"WalletAccountNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Status\",\r\n\t\t\t\taccessor: \"CardStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Has Card Limit\",\r\n\t\t\t\taccessor: \"HasCardLimit\",\r\n\t\t\t\ttype: GridColumnType.YesNo,\r\n\t\t\t\tColumnType: GridColumnType.YesNo,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Usage Amount\",\r\n\t\t\t\taccessor: \"CardUsageAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Usage Amount\",\r\n\t\t\t\taccessor: \"CustomerUsageAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Expire Date\",\r\n\t\t\t\taccessor: \"ExpireDate\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tColumnType: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Limit Start Date\",\r\n\t\t\t\taccessor: \"LimitStartDate\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tColumnType: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Limit End Date\",\r\n\t\t\t\taccessor: \"LimitEndDate\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tColumnType: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Limit\",\r\n\t\t\t\taccessor: \"Limit\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Main Card\",\r\n\t\t\t\taccessor: \"IsMainCard\",\r\n\t\t\t\ttype: GridColumnType.YesNo,\r\n\t\t\t\tColumnType: GridColumnType.YesNo,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Last Card\",\r\n\t\t\t\taccessor: \"IsLastCard\",\r\n\t\t\t\ttype: GridColumnType.YesNo,\r\n\t\t\t\tColumnType: GridColumnType.YesNo,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Insert Date Time\",\r\n\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tColumnType: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t];\r\n\t\tthis.getappCenterTitle = \"Empty\";\r\n\t\tthis.getappLeftTitle = \"Empty\";\r\n\t\tthis.zIndex10 = { zIndex: 10 };\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\tdata: [],\r\n\t\t\trecordKeeping: [],\r\n\t\t\tisSendEmailDialogOpen: false,\r\n\t\t\tactiveClient: [],\r\n\t\t\tresponseDetail: {},\r\n\t\t\tisDetailDialogOpen: false\r\n\t\t};\r\n\t\tthis.cpverTable = React.createRef();\r\n\t}\r\n\r\n\tcomponentDidMount = () => {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"Card List Report\");\r\n\t\t\tthis.getappCenterTitle = \"Card List Report\";\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Card List Report\");\r\n\t\t\tthis.getappLeftTitle = \"Card List Report\";\r\n\t\t}\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, data: [], selected: null });\r\n\t}\r\n\r\n\r\n\tGetRenderItemClient = (x) => {\r\n\t\tvar render = `${x.Name} - ${x.UniqueClientId}`;\r\n\t\treturn render;\r\n\t}\r\n\r\n\tshowLoading = () => { this.setState({ isLoading: true }); }\r\n\thideLoading = () => { this.setState({ isLoading: false }); }\r\n\r\n\tshowDetail = async (result) => {\r\n\t\tthis.setState({ responseDetail: result || [], isDetailDialogOpen: true });\r\n\t\tconsole.log(result);\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (model.UniqueClientId == 0 || model.UniqueClientId == null) {\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Please Select Client!\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Card/CardListReport\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\tconsole.log(responseData.ErrorDescription)\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ data: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\thandleChange = (name, newValue) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (name === \"Customer\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.ClientCustomerId = newValue.Id;\r\n\t\t\t\tmodel.CustomerNumber = newValue.CustomerNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.ClientCustomerId;\r\n\t\t\t\tdelete model.CustomerNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tmodel[name] = newValue;\r\n\t\tconsole.log('ass', model)\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\tFillCustomer = (customer) => {\r\n\t\tthis.handleChange(\"Customer\", customer);\r\n\t};\r\n\r\n\r\n\trender() {\r\n\t\tconst { model, selected, isLoading, data } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCardListReport.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tExecuteApiFileDownloadWithGenericResponse: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default withStyles(externalContainerStyle)(CardListReport);","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent.jsx\";\r\nimport { GenericCheckInput, GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton.jsx\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { GridColumnType, MenuCodes, ProgramCodes, EmbossType} from \"views/Constants/Constant\";\r\nimport { DetailIcon } from '../../../core/Icons';\r\n\r\n\r\nclass CardRenewalRequestList extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.parameterEmbossType = { ParameterCode: \"EmbossType\" };\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t\tIsMainCard: true,\r\n\t\t\tProgramCode: \"\",\r\n\t\t\tCardIssuingReasonTypeId: 0,\r\n\t\t\tEmbossStatusId: 0,\r\n\t\t\tProductId: 0,\r\n\t\t\tStartDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tEndDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tIsMass: true\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tvModel: {},\r\n\t\t\treEmbossList: [],\r\n\t\t\treReasonEmbosList: [],\r\n\t\t\tisReEmbossDialogOpen: false,\r\n\t\t\tisReasonReEmbossDialogOpen: false\r\n\t\t}\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.maxLength26 = { maxLength: 26 };\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : undefined\r\n\t\t};\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\t\tthis.renderItemCard = {};\r\n\t\tthis.parameterProduct = {};\r\n\r\n\t\tthis.ReasonEmbossColumns =\r\n\t\t\t[\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Is Succeded\",\r\n\t\t\t\t\taccessor: \"IsSucceded\",\r\n\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t
{row.value == true ? \"Yes\" : \"No\"}
\r\n\t\t\t\t\t)\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Masked Card Number\",\r\n\t\t\t\t\taccessor: \"MaskedCardNumber\"\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Error Description\",\r\n\t\t\t\t\taccessor: \"ErrorDescription\"\r\n\t\t\t\t},\r\n\r\n\t\t\t];\r\n\r\n\t\tthis.DetailColumns =\r\n\t\t\t[\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Create Date\",\r\n\t\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\t\ttype: GridColumnType.DateTimeUtc\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Card Id\",\r\n\t\t\t\t\taccessor: \"CardId\"\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Client\",\r\n\t\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\t\taccessor: \"CustomerName\"\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Card Number\",\r\n\t\t\t\t\taccessor: \"CardNumber\"\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Product Name\",\r\n\t\t\t\t\taccessor: \"ProductName\"\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Emboss Name\",\r\n\t\t\t\t\taccessor: \"EmbossName1\"\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Emboss 4th Line\",\r\n\t\t\t\t\taccessor: \"EmbossName2\"\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Usage Limit\",\r\n\t\t\t\t\taccessor: \"CardUsageLimit\",\r\n\t\t\t\t\ttype: GridColumnType.Money\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Reason\",\r\n\t\t\t\t\taccessor: \"IssuingReasonType\",\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Emboss Status\",\r\n\t\t\t\t\taccessor: \"EmbossStatusName\",\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"File Name\",\r\n\t\t\t\t\taccessor: \"FileName\",\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"File Creation Date\",\r\n\t\t\t\t\taccessor: \"EmbossFileCreateDate\",\r\n\t\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Plastic Type\",\r\n\t\t\t\t\taccessor: \"PlasticTypeDesc\",\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Product Brand\",\r\n\t\t\t\t\taccessor: \"ProductBrand\",\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Bin Description\",\r\n\t\t\t\t\taccessor: \"BinDesc\",\r\n\t\t\t\t}\r\n\t\t\t\t,\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Is No Name Card\",\r\n\t\t\t\t\taccessor: \"IsNoNameCard\",\r\n\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t
{row.value == true ? \"Yes\" : \"No\"}
\r\n\t\t\t\t\t)\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Emboss Type\",\r\n\t\t\t\t\taccessor: \"EmbossTypeDesc\"\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Card Perso Office\",\r\n\t\t\t\t\taccessor: \"CardPersoOffice\"\r\n\t\t\t\t}\r\n\t\t\t];\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t { this.ShowQrCode(row.original.Id, row.index); }} />\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\tresizable: false,\r\n\t\t\t\twidth: 60\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Re-Emboss\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t c.Id == row.original.Id).length > 0}\r\n\t\t\t\t\t\tValueChanged={(e) => {\r\n\t\t\t\t\t\t\tthis.HandleCheck(e, row.original);\r\n\t\t\t\t\t\t}}\r\n\t\t\t\t\t\tDisabled={\r\n\t\t\t\t\t\t\t!row.original.IsExported || !row.original.IsAvailableCenterCode || !row.original.IsAvailableEmbossStatus || !row.original.HasAddress\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t/>\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\tresizable: false,\r\n\t\t\t\twidth: 90,\r\n\t\t\t\tshow: !ClientHelper.IsClient()\r\n\t\t\t},\r\n\t\t\t...this.DetailColumns\r\n\t\t];\r\n\t}\r\n\r\n\tHandleCheck = (e, x) => {\r\n\t\tthis.setState(state => ({\r\n\t\t\treEmbossList: state.reEmbossList.includes(x)\r\n\t\t\t\t? state.reEmbossList.filter(c => c !== x)\r\n\t\t\t\t: [...state.reEmbossList, x]\r\n\t\t}));\r\n\t}\r\n\r\n\tShowQrCode = (data, index) => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/CardRequest/ShowQrCodeData\",\r\n\t\t\t{ Id: data.Id },\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.state.model.QrCode = responseData.Item;\r\n\t\t\t\t\tthis.setState({ model: this.state.model, isDialogOpen: true });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t});\r\n\t}\r\n\r\n\r\n\r\n\tcomponentDidMount() {\r\n\t\tvar menuCode = this.props.MenuCode;\r\n\t\tif (menuCode == MenuCodes.Menu_LmsCardRenewalList) {\r\n\t\t\tthis.props.setAppLeftTitle(\"Card Emboss Monitoring\");\r\n\t\t\tthis.props.setAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n\t\t\tthis.ProgramCode = ProgramCodes.Lender;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.props.setAppLeftTitle(\"Card Emboss Monitoring\");\r\n\t\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t\t\tthis.ProgramCode = ProgramCodes.Prepaid;\r\n\t\t}\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (name === \"Customer\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.ClientCustomerId = newValue.Id;\r\n\t\t\t\tmodel.CustomerNumber = newValue.CustomerNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.ClientCustomerId;\r\n\t\t\t\tdelete model.CustomerNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (name === \"UniqueClientId\") {\r\n\t\t\tdelete model.ClientCustomerId;\r\n\t\t\tdelete model.CustomerNumber;\r\n\t\t}\r\n\t\tif (name === \"CardId\" && data) {\r\n\t\t\tmodel.EmbossName = data.CardEmbossName;\r\n\t\t}\r\n\t\tif (name === \"EmbossType\" && newValue!=EmbossType.InstantId) {\r\n\t\t\tmodel.IsMass=true;\r\n\t\t\tmodel.InstantEmbossBranchId = undefined;\r\n\t\t}\r\n\t\tif (name === \"EmbossType\" && newValue==EmbossType.InstantId) {\r\n\t\t\tmodel.IsMass=false;\r\n\t\t}\r\n\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, isEdit: false, index: -1, reEmbossList: [] });\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel.ProgramCode = this.ProgramCode;\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/CardRequest/GetAllCardRequest\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item, reEmbossList: [] });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\r\n\t\tvar errorList = [];\r\n\r\n\t\tif (!model.UniqueClientId) {\r\n\t\t\terrorList.push(\"Select the Client to continue.\");\r\n\t\t\tvModel.UniqueClientId = true;\r\n\t\t}\r\n\t\telse\r\n\t\t\tvModel.UniqueClientId = false;\r\n\r\n\r\n\r\n\t\tif (errorList.length > 0) {\r\n\t\t\tshowValidationErrors(errorList);\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\tRenderItemCard = (d) => {\r\n\t\tthis.renderItemCard = `${d.MaskedCardNumber} - ${d.CardEmbossName}`;\r\n\t\treturn this.renderItemCard;\r\n\t}\r\n\tRowSelected = (index) => {\r\n\t\tlet { model, list } = this.state;\r\n\t\tlet StartDate = model.StartDate;\r\n\t\tlet EndDate = model.EndDate;\r\n\r\n\t\tmodel = list[index];\r\n\r\n\t\tmodel.StartDate = StartDate;\r\n\t\tmodel.EndDate = EndDate;\r\n\t\tif (list[index].CardRequestId) {\r\n\t\t\tmodel.Id = list[index].Id;\r\n\t\t}\r\n\t\tthis.setState({ isEdit: true, model, index });\r\n\t}\r\n\r\n\tGetProductParameter = () => {\r\n\t\tthis.parameterProduct.UniqueClientId = this.state.model.UniqueClientId;\r\n\t\tthis.parameterProduct.IsNoNameProduct = this.state.model.IsNoNameCard;\r\n\t\treturn this.parameterProduct;\r\n\t}\r\n\r\n\tFillCustomer = (customer) => {\r\n\t\tthis.HandleChange(\"Customer\", customer);\r\n\t}\r\n\r\n\tCancelSelectCallback = () => {\r\n\t\tthis.setState({\r\n\t\t\tisDialogOpen: false,\r\n\t\t\tisDisputeDialogOpen: false,\r\n\t\t\tisReEmbossDialogOpen: false,\r\n\t\t\tisReasonReEmbossDialogOpen: false\r\n\t\t});\r\n\t};\r\n\tReEmbossConfirm = async () => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\r\n\t\tlet { model, reEmbossList } = this.state;\r\n\r\n\t\tvar result = await ExecuteApiPost(\"/prepaidapi/v1.0/CardRequest/ReSendCardRequest\", {\r\n\t\t\tCardRequestDataList: reEmbossList,\r\n\t\t\tUniqueClientId: model.UniqueClientId\r\n\t\t});\r\n\t\tif (result != null) {\r\n\t\t\tthis.setState({ reReasonEmbosList: result, isReasonReEmbossDialogOpen: true })\r\n\t\t}\r\n\t}\r\n\tHandleReEmboss = () => {\r\n\t\tthis.setState({ isReEmbossDialogOpen: true });\r\n\t}\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, vModel, list, isLoading, index } = this.state;\r\n\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t{!model.IsNoNameCard &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t{!model.IsNoNameCard &&\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t `${d.CardEmbossName} - ${d.MaskedCardNumber}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"CardId\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tTextValueMember=\"MaskedCardNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.CardId}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\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\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCardRenewalRequestList.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(CardRenewalRequestList, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent.jsx\";\r\nimport { GenericAlert, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTextInput, GenericTitle, GenericCheckInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { GridColumnType, ProgramCodes, EmbossType } from \"views/Constants/Constant\";\r\n\r\nclass CardRenewal extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.parameterEmbossType = { ParameterCode: \"EmbossType\" };\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t\tIsMainCard: true,\r\n\t\t\tIsNoNameCard: false,\r\n\t\t\tCardIssuingReasonTypeId: 0,\r\n\t\t\tEmbossStatusId: 0,\r\n\t\t\tProductId: 0,\r\n\t\t\tIsMass: true\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tvModel: {}\r\n\t\t};\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.maxLength21 = { maxLength: 21 };\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : undefined\r\n\t\t};\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\r\n\t\tthis.parameterProduct = {};\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is No Name Card\",\r\n\t\t\t\taccessor: \"IsNoNameCard\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value ? \"Yes\" : \"No\"}
\r\n\t\t\t\t),\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Id\",\r\n\t\t\t\taccessor: \"CardId\"\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"CustomerName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Number\",\r\n\t\t\t\taccessor: \"CardNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Product Name\",\r\n\t\t\t\taccessor: \"ProductName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Emboss Name\",\r\n\t\t\t\taccessor: \"EmbossName1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Usage Limit\",\r\n\t\t\t\taccessor: \"CardUsageLimit\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Issuing Reason Type\",\r\n\t\t\t\taccessor: \"IssuingReasonType\",\r\n\t\t\t},\r\n\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Personalized Card Renewal\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (name === \"Customer\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.ClientCustomerId = newValue.Id;\r\n\t\t\t\tmodel.CustomerNumber = newValue.CustomerNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.ClientCustomerId;\r\n\t\t\t\tdelete model.CustomerNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (name === \"UniqueClientId\") {\r\n\t\t\tdelete model.ClientCustomerId;\r\n\t\t\tdelete model.CustomerNumber;\r\n\t\t}\r\n\r\n\t\tif (name == \"CardIssuingReasonTypeId\")\r\n\t\t\tmodel.CardIssuingReasonType = newValue;\r\n\r\n\t\tif (name == \"CardId\" && data)\r\n\t\t\tmodel.EmbossName = data.CardEmbossName;\r\n\r\n\t\tif (name === \"EmbossType\" && newValue!=EmbossType.InstantId) {\r\n\t\t\tmodel.IsMass=true;\r\n\t\t\tmodel.InstantEmbossBranchId = undefined;\r\n\t\t}\r\n\t\tif (name === \"EmbossType\" && newValue==EmbossType.InstantId) {\r\n\t\t\tmodel.IsMass=false;\r\n\t\t}\r\n\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, isEdit: false, index: -1 });\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/CardRequest/GetAllCardRequest\",\r\n\t\t\t{\r\n\t\t\t\tCardIssuingReasonTypeId: model.CardIssuingReasonTypeId,\r\n\t\t\t\tIsMainCard: model.IsMainCard,\r\n\t\t\t\tUniqueClientId: model.UniqueClientId || 0,\r\n\t\t\t\tClientCustomerId: model.ClientCustomerId,\r\n\t\t\t\tProductId: model.ProductId,\r\n\t\t\t\tEmbossName1: model.EmbossName,\r\n\t\t\t\tIsNoNameCard: model.IsNoNameCard,\r\n\t\t\t\tMaskedCardNumber: model.MaskedCardNumber\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleUpdate = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tconst model = { ...this.state.model };\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Prepaid/UpdateCardRenew\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.props.showMessage(\"success\", \"Succeeded\", \"Operation is successfully!\");\r\n\t\t\t\t\tthis.HandleSearch();\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tHandleSubmit = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Prepaid/RenewCard\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ model: { ...this.initialModel }, index: -1 });\r\n\t\t\t\t\tthis.props.showMessage(\"success\", \"Succeeded\", \"Operation is successfully!\");\r\n\t\t\t\t\tthis.HandleSearch();\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })} />\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tvar errorList = [];\r\n\r\n\t\tif (!model.UniqueClientId) {\r\n\t\t\terrorList.push(\"Select the Client to continue.\");\r\n\t\t\tvModel.UniqueClientId = true;\r\n\t\t}\r\n\t\telse\r\n\t\t\tvModel.UniqueClientId = false;\r\n\r\n\r\n\t\tif (!model.CardId) {\r\n\t\t\terrorList.push(\"Select the Card Number to continue.\");\r\n\t\t\tvModel.CardId = true;\r\n\t\t}\r\n\t\telse\r\n\t\t\tvModel.CardId = false;\r\n\r\n\t\tif (!model.ClientCustomerId) {\r\n\t\t\terrorList.push(\"Select the Customer to continue.\");\r\n\t\t\tvModel.ClientCustomerId = true;\r\n\t\t}\r\n\t\telse\r\n\t\t\tvModel.ClientCustomerId = false;\r\n\r\n\t\tif (!model.ProductId) {\r\n\t\t\terrorList.push(\"Select the Product to continue.\");\r\n\t\t\tvModel.ProductId = true;\r\n\r\n\t\t}\r\n\t\telse\r\n\t\t\tvModel.ProductId = false;\r\n\r\n\t\tif (!model.EmbossName) {\r\n\t\t\terrorList.push(\"Enter the Emboss Name to continue.\");\r\n\t\t\tvModel.EmbossName = true;\r\n\r\n\t\t}\r\n\t\telse\r\n\t\t\tvModel.EmbossName = false;\r\n\r\n\t\tif (!model.CardIssuingReasonTypeId) {\r\n\t\t\terrorList.push(\"Enter the Issuing Reason Type to continue.\");\r\n\t\t\tvModel.CardIssuingReasonTypeId = true;\r\n\t\t}\r\n\t\telse\r\n\t\t\tvModel.CardIssuingReasonTypeId = false;\r\n\r\n\t\tvModel.EmbossType = model.EmbossType == null;\r\n\t\tif (vModel.EmbossType) errorList.push(\"Emboss Type must be select\");\r\n\r\n\t\tvModel.InstantEmbossBranchId = model.InstantEmbossBranchId == null && model.EmbossType == EmbossType.InstantId ;\r\n\t\tif (vModel.EmbossType) errorList.push(\"Card Perso Office must be select\");\r\n\r\n\r\n\t\tif (errorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Required fields!\", errorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tlet { list } = this.state;\r\n\t\tconst tempModel = list[index];\r\n\t\tif (list[index].Id) {\r\n\t\t\ttempModel.Id = list[index].Id;\r\n\t\t\ttempModel.EmbossName = list[index].EmbossName1;\r\n\t\t}\r\n\t\tthis.setState({ isEdit: true, model: tempModel, index });\r\n\t}\r\n\r\n\tGetProductParameter = () => {\r\n\t\tthis.parameterProduct.UniqueClientId = this.state.model.UniqueClientId;\r\n\t\tthis.parameterProduct.IsNoNameProduct = this.state.model.IsNoNameCard;\r\n\t\treturn this.parameterProduct;\r\n\t}\r\n\r\n\tFillCustomer = (customer) => {\r\n\t\tthis.HandleChange(\"Customer\", customer);\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, isLoading, index, vModel } = this.state;\r\n\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t 0 || model.IsNoNameCard }\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t 0 ? true : false}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.ProductId}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t{!model.IsNoNameCard &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t 0 ? true : false}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.ClientCustomerId}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t{!model.IsNoNameCard &&\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t `${d.CardEmbossName} - ${d.MaskedCardNumber}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"CardId\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tTextValueMember=\"MaskedCardNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.CardId}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={model.Id > 0 ? true : false}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.CardId}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t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enewal, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericCheckInput, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { ProgramCodes } from \"views/Constants/Constant\";\r\n\r\nclass CardStatus extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t\tIsMainCard: true\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false\r\n\t\t}\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.maxLength26 = { maxLength: 26 };\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : undefined\r\n\t\t};\r\n\r\n\t\tthis.renderItemStatus = {};\r\n\r\n\t\tthis.parameterProduct = {};\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"From Card Status\",\r\n\t\t\t\taccessor: \"FromCardStatusDescription\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"To Card Status\",\r\n\t\t\t\taccessor: \"ToCardStatusDescription\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Allowed\",\r\n\t\t\t\taccessor: \"Allow\"\r\n\t\t\t},\r\n\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Card Status Matrix\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tif (newValue == null) {\r\n\t\t\tmodel[name] = 0;\r\n\t\t}\r\n\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, isEdit: false, index: -1 });\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/CardStatus/Search\",\r\n\t\t\t{\r\n\t\t\t\tFromCardStatusId: model.FromCardStatusId,\r\n\t\t\t\tToCardStatusId: model.ToCardStatusId,\r\n\t\t\t\tIsAllowed: model.IsAllowed\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\r\n\tHandleSubmit = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/CardStatus/InsertOrUpdate\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ model: { ...this.initialModel }, index: -1 });\r\n\t\t\t\t\tthis.props.showMessage(\"success\", \"Succeeded\", \"Operation is successfully!\");\r\n\t\t\t\t\tthis.HandleSearch();\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleUpdate = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/CardStatus/InsertOrUpdate\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ model: { ...this.initialModel }, index: -1 });\r\n\t\t\t\t\tthis.props.showMessage(\"success\", \"Succeeded\", \"Operation is successfully!\");\r\n\t\t\t\t\tthis.HandleSearch();\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\r\n\r\n\tHandleDelete = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/CardStatus/Delete\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ model: { ...this.initialModel }, index: -1 });\r\n\t\t\t\t\tthis.props.showMessage(\"success\", \"Succeeded\", \"Operation is successfully!\");\r\n\t\t\t\t\tthis.HandleSearch();\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\r\n\r\n\r\n\r\n\tValidate = () => {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tif (!model.FromCardStatusId) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"From Card\", \"Select the From Card to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!model.ToCardStatusId) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Customer not selected\", \"Select the To Card to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\treturn true;\r\n\t}\r\n\r\n\tRenderItemStatus = (d) => {\r\n\t\tthis.renderItemStatus = `${d.Description} - ${d.ResponseCode}`;\r\n\t\treturn this.renderItemStatus;\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tlet { list } = this.state;\r\n\t\tconst tempModel = list[index];\r\n\t\tif (list[index].CardRequestId) {\r\n\t\t\ttempModel.Id = list[index].Id;\r\n\t\t}\r\n\t\tthis.setState({ isEdit: true, model: tempModel, index });\r\n\t}\r\n\r\n\tGetProductParameter = () => {\r\n\t\tthis.parameterProduct.UniqueClientId = this.state.model.UniqueClientId;\r\n\t\tthis.parameterProduct.IsNoNameProduct = false;\r\n\t\treturn this.parameterProduct;\r\n\t}\r\n\r\n\tFillCustomer = (customer) => {\r\n\t\tthis.HandleChange(\"Customer\", customer);\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, isLoading, index } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t 0 },\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t `${d.Description}`}\r\n\t\t\t\t\t\t\t\t\t\tValue={model.FromCardStatusId}\r\n\t\t\t\t\t\t\t\t\t\tValueChanged={this.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t `${d.Description}`}\r\n\t\t\t\t\t\t\t\t\t\tValue={model.ToCardStatusId}\r\n\t\t\t\t\t\t\t\t\t\tValueChanged={this.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t/>\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCardStatus.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(CardStatus, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericExpansionPanel, GenericTextInput} from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport Button from \"components/CustomButtons/Button\";\r\n\r\nclass ClearCardNumberSearch extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tCardTokenNumber: null,\r\n\t\t\tClearCardNumber: null\r\n\t\t};\r\n\r\n\t\tthis.ParameterMaxLength16 = { maxLength: 16 };\r\n\r\n\t\tthis.state = {\r\n\t\t\tlist: [],\r\n\t\t\tvModel: {},\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tfilterModel: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tLimitToken: false\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Clear Card Number Search\");\r\n\t\tthis.props.setAppCenterTitle(\"WALLET\");\r\n\t}\r\n\t\r\n\thandleChange = (name, newValue) => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tmodel[name] = newValue;\r\n\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tfilterModel: {}\r\n\t\t});\r\n\t};\r\n\t\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tGetClearCardNumber = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tif (model.CardTokenNumber == null || model.CardTokenNumber == \"\") {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Card Token Number must be defined!\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Wallet/GetClearCardNumber\",\r\n\t\t\tmodel.CardTokenNumber,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tmodel.ClearCardNumber = responseData.Item;\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tmodel,\r\n\t\t\t\t\t\tlist: responseData.Item\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, isLoading, vModel } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nClearCardNumberSearch.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(ClearCardNumberSearch, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport {\r\n\tGenericExpansionPanel,\r\n\tGenericGrid,\r\n\tGenericSelectInput,\r\n\tGenericTitle,\r\n\tGenericNumberInput,\r\n\tGenericCheckInput,\r\n\tGenericTextInput,\r\n\tGenericDateInput,\r\n\tGenericMultipleSelectInput,\r\n\tGenericRadioInput\r\n} from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport { GridColumnType } from \"views/Constants/Constant.js\";\r\nimport DateHelper from \"core/DateHelper\";\r\n\r\nclass CreateCorporateCard extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: 0,\r\n\t\t\tDefaultAccountId: 0,\r\n\t\t\tProductId: 0,\r\n\t\t\tEmbossName: \"\",\r\n\t\t\tNickName: \"\",\r\n\t\t\tHasMCCRestriction: false,\r\n\t\t\tMCCList: {},\r\n\t\t\tMcc: [],\r\n\t\t\tAvsZipCode: \"\",\r\n\t\t\tClientReference: \"\",\r\n\t\t\tHasCardUsageLimit: false,\r\n\t\t\tCardUsagePeriodId: 0,\r\n\t\t\tCardUsageLimit: 0.0,\r\n\t\t\tLimitUsageStartDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tLimitUsageEndDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tEmbossType: 0,\r\n\t\t\tInstantEmbossBranchId: 0,\r\n\t\t\tCreditLimit: 0.0,\r\n\t\t\tEmboss4thLine: \"\",\r\n\t\t\tIsDateFilterDisabled: true,\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tvModel: {},\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false,\r\n\t\t};\r\n\r\n\t\tthis.emptyObject = {};\r\n\t\tthis.renderItemProduct = {};\r\n\t\tthis.parameterProduct = {};\r\n\t\tthis.maxLength21 = { maxLength: 21 };\r\n\t\tthis.maxLength50 = { maxLength: 50 };\r\n\t\tthis.maxLength20 = { maxLength: 20 };\r\n\t\tthis.maxLength128 = { maxLength: 128 };\r\n\t\tthis.parameterPeriod = { ParameterCode: \"LoadingPeriod\" };\r\n\t\tthis.parameterEmbossType = { ParameterCode: \"EmbossType\" };\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Token Number\",\r\n\t\t\t\taccessor: \"CardTokenNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Funding Account\",\r\n\t\t\t\taccessor: \"FundingAccount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Product Name\",\r\n\t\t\t\taccessor: \"ProductName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Emboss Name\",\r\n\t\t\t\taccessor: \"EmbossName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Emboss 4th Line\",\r\n\t\t\t\taccessor: \"Emboss4thLine\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Emboss Type\",\r\n\t\t\t\taccessor: \"EmbossTypeDesc\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Insert Date Time\",\r\n\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tColumnType: GridColumnType.DateTime,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Insert User\",\r\n\t\t\t\taccessor: \"InsertUser\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Update DateTime\",\r\n\t\t\t\taccessor: \"UpdateDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tColumnType: GridColumnType.DateTime,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Update User\",\r\n\t\t\t\taccessor: \"UpdateUser\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Has MCC Restriction\",\r\n\t\t\t\taccessor: \"HasMCCRestriction\",\r\n\t\t\t\ttype: GridColumnType.YesNo,\r\n\t\t\t\tColumnType: GridColumnType.YesNo,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Has Card Usage Limit\",\r\n\t\t\t\taccessor: \"HasCardUsageLimit\",\r\n\t\t\t\ttype: GridColumnType.YesNo,\r\n\t\t\t\tColumnType: GridColumnType.YesNo,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Usage Limit\",\r\n\t\t\t\taccessor: \"CardUsageLimit\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Credit Limit\",\r\n\t\t\t\taccessor: \"CreditLimit\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Create Corporate Card\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t}\r\n\r\n\tGetProductParameter = () => {\r\n\t\tthis.parameterProduct.UniqueClientId = this.state.model.UniqueClientId;\r\n\t\tthis.parameterProduct.IsNoNameProduct = null;\r\n\t\treturn this.parameterProduct;\r\n\t}\r\n\r\n\tRenderItemProduct = (d) => {\r\n\t\tthis.renderItemProduct = d.Name;\r\n\t\tif (d.UniqueClient)\r\n\t\t\tthis.renderItemProduct += ` - (${d.UniqueClient.UniqueClientId} - ${d.UniqueClient.ClientName})`;\r\n\t\treturn this.renderItemProduct;\r\n\t}\r\n\r\n\tsetValueToState = (name, value) => {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tif (value == \"Custom\") {\r\n\t\t\tmodel.Emboss4thLine = \"\";\r\n\t\t}\r\n\t\tif (value == \"CompanyName\") {\r\n\t\t\tthis.FillCompanyName();\r\n\t\t}\r\n\t\tif (name == \"Emboss4thLineType\") {\r\n\t\t\tmodel.Emboss4thLineType = value;\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\r\n\t};\r\n\r\n\tFillCompanyName = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tif (!this.ValidateForCompanyName()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Prepaid/ClientForthLineSearch\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tif (responseData.Item[0] != null || responseData.Item[0] != undefined) {\r\n\t\t\t\t\t\tthis.companyNameResult = responseData.Item[0];\r\n\t\t\t\t\t\tmodel.Emboss4thLine = this.companyNameResult.EmbossForthLine;\r\n\t\t\t\t\t\tthis.setState({ model });\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Emboss4thLine cannot defined for this product\");\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tValidateForCompanyName = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tvar messages = [];\r\n\r\n\t\tvModel.ProductId = model.ProductId == null;\r\n\t\tif (vModel.ProductId) messages.push(\"Product must be select\");\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.props.showMessageNode(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.setState({ vModel });\r\n\t\treturn true;\r\n\t}\r\n\r\n\tHandleChange = (name, newValue) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tif (model.HasCardUsageLimit && model.CardUsagePeriodId == 3105) {\r\n\t\t\tmodel.IsDateFilterDisabled = false;\r\n\t\t} else {\r\n\t\t\tmodel.IsDateFilterDisabled = true;\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tvModel: {},\r\n\t\t\tisEdit: false,\r\n\t\t\tindex: -1,\r\n\t\t});\r\n\t};\r\n\r\n\tHandleSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Prepaid/GetCorporateCard\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\r\n\t\t\t\t\t\t\"error\",\r\n\t\t\t\t\t\t\"Error\",\r\n\t\t\t\t\t\tresponseData.ErrorDescription\r\n\t\t\t\t\t);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\tHandleInsert = () => {\r\n\t\tif (!this.IsValid()) return;\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (model.HasMCCRestriction && model.MCCList.length > 0) {\r\n\t\t\tfor (var key in model.MCCList) {\r\n\t\t\t\tmodel.Mcc.push(model.MCCList[key].value);\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Prepaid/CreateCorporateCard\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\r\n\t\t\t\t\t\t\"error\",\r\n\t\t\t\t\t\t\"Error\",\r\n\t\t\t\t\t\tresponseData.ErrorDescription\r\n\t\t\t\t\t);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.props.showMessage(\r\n\t\t\t\t\t\"success\",\r\n\t\t\t\t\t\"Succeeded\",\r\n\t\t\t\t\t\"Operation is successfully!\"\r\n\t\t\t\t);\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tmodel: { ...this.initialModel },\r\n\t\t\t\t\tisLoading: false,\r\n\t\t\t\t\tindex: -1,\r\n\t\t\t\t});\r\n\t\t\t\tthis.HandleClear();\r\n\t\t\t\tthis.HandleSearch();\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\tIsValid = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tvar errorList = [];\r\n\t\tconst { showValidationErrors } = this.props;\r\n\r\n\t\tvModel.DefaultAccountId =\r\n\t\t\tmodel.DefaultAccountId == null ||\r\n\t\t\tmodel.DefaultAccountId == undefined ||\r\n\t\t\tmodel.DefaultAccountId <= 0;\r\n\t\tif (vModel.DefaultAccountId) {\r\n\t\t\terrorList.push(\"Funding Account must be selected!\");\r\n\t\t}\r\n\r\n\t\tvModel.ProductId =\r\n\t\t\tmodel.ProductId == null ||\r\n\t\t\tmodel.ProductId == undefined ||\r\n\t\t\tmodel.ProductId <= 0;\r\n\t\tif (vModel.ProductId) {\r\n\t\t\terrorList.push(\"Product must be selected!\");\r\n\t\t}\r\n\r\n\t\tvModel.EmbossName =\r\n\t\t\tmodel.EmbossName == null ||\r\n\t\t\tmodel.EmbossName == undefined ||\r\n\t\t\tmodel.EmbossName == \"\";\r\n\t\tif (vModel.EmbossName) {\r\n\t\t\terrorList.push(\"Emboss Name cannot be null!\");\r\n\t\t}\r\n\r\n\t\tvModel.HasCardUsageLimitPeriod =\r\n\t\t\tmodel.HasCardUsageLimit && (model.CardUsagePeriodId == undefined || model.CardUsagePeriodId == null || model.CardUsagePeriodId <= 0)\r\n\t\tif (vModel.HasCardUsageLimitPeriod) {\r\n\t\t\terrorList.push(\"Card Usage Period must be selected!\");\r\n\t\t}\r\n\r\n\t\tvModel.HasCardUsageLimitAmount =\r\n\t\t\tmodel.HasCardUsageLimit && (model.CardUsageLimit == undefined || model.CardUsageLimit == null || model.CardUsageLimit <= 0)\r\n\t\tif (vModel.HasCardUsageLimitAmount) {\r\n\t\t\terrorList.push(\"Card Usage Limit cannot be null!\");\r\n\t\t}\r\n\r\n\t\tvModel.LimitStartEndDate =\r\n\t\t\tmodel.HasCardUsageLimit && model.CardUsagePeriodId == 3105 && model.LimitUsageStartDate.date() === model.LimitUsageEndDate.date()\r\n\t\tif (vModel.LimitStartEndDate) {\r\n\t\t\terrorList.push(\"Limit Usage Start Date and Limit Usage End Date cannot be the same day!\");\r\n\t\t}\r\n\r\n\t\tvModel.HasMCCRestriction =\r\n\t\t\tmodel.HasMCCRestriction && (model.MCCList == undefined || model.MCCList == null || model.MCCList.length <= 0)\r\n\t\tif (vModel.HasMCCRestriction) {\r\n\t\t\terrorList.push(\"MCC must be select!\");\r\n\t\t}\r\n\r\n\t\tvModel.MccCount =\r\n\t\t\tmodel.HasMCCRestriction && (model.MCCList.length > 5)\r\n\t\tif (vModel.MccCount) {\r\n\t\t\terrorList.push(\"No more than 5 MCCs can be selected!\");\r\n\t\t}\r\n\r\n\t\tif (errorList.length > 0) {\r\n\t\t\tshowValidationErrors(errorList);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t};\r\n\r\n\tRowSelected = (index) => {\r\n\t\tlet { list } = this.state;\r\n\t\tconst tempModel = list[index];\r\n\t\tif (list[index].CardRequestId) {\r\n\t\t\ttempModel.Id = list[index].Id;\r\n\t\t}\r\n\t\tthis.setState({ isEdit: true, model: tempModel, index });\r\n\t\tconsole.log(tempModel)\r\n\t};\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, isLoading, index, vModel } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t 0,\r\n\t\t\t\t\t\t\tOnClick: () => this.HandleInsert(),\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After}\r\n\t\t\t\t/>\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId}\r\n\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\tDisabled={Disabled}\r\n\t\t\t\t\t\t\t\t\t\t\tRequired />\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t `${d.AccountNumber} - ${d.AccountName}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.DefaultAccountId}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t `${d.Code} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\tHandleChange={this.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tMethod=\"GET\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={!model.HasMCCRestriction}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t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\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCreateCorporateCard.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool,\r\n};\r\n\r\nexport default withArtifex(CreateCorporateCard, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent.jsx\";\r\nimport { GenericCheckInput, GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle, GenericRadioInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, ProgramCodes, EmbossType } from \"views/Constants/Constant.js\";\r\nimport kycManualPhotoDefinitionStyle from \"assets/jss/material-dashboard-pro-react/views/kycManualPhotoDefinitionStyle.jsx\";\r\nimport GenericCardMedia from \"views/Components/Generic/GenericCardMedia.jsx\";\r\n\r\nconst galerydefault = require(\"assets/img/galerydefault-image.png\");\r\n\r\n\r\nclass CreateMainCard extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.parameterEmbossType = { ParameterCode: \"EmbossType\" };\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t\tIsMainCard: true,\r\n\t\t\tIsMass: true,\r\n\t\t\tStoredImage: \"\"\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tvModel: {},\r\n\t\t\tfileInfoModel: {},\r\n\t\t\tlist: [],\r\n\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.companyNameResult = {};\r\n\r\n\t\tthis.maxLength21 = { maxLength: 21 };\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : undefined\r\n\t\t};\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\r\n\t\tthis.renderItemAccount = {};\r\n\r\n\t\tthis.renderItemProduct = {};\r\n\r\n\t\tthis.parameterProduct = {};\r\n\r\n\t\tthis.parameterDefaultAccount = {};\r\n\r\n\t\tthis.parameterPeriod = { ParameterCode: \"LoadingPeriod\" };\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"UniqueClient.ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer\",\r\n\t\t\t\taccessor: \"ClientCustomer.CustomerName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Number\",\r\n\t\t\t\taccessor: \"CardNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Product Name\",\r\n\t\t\t\taccessor: \"Product.ProductName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Emboss Name\",\r\n\t\t\t\taccessor: \"EmbossName1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Emboss 4th Line\",\r\n\t\t\t\taccessor: \"EmbossName2\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Usage Limit\",\r\n\t\t\t\taccessor: \"CardUsageLimit\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t}\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Create Personalized Card\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t}\r\n\r\n\thandleChange = async (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\r\n\t\tvar responseData = await ExecuteApiPost(\"/prepaidapi/v1.0/Product/GetProductImage\", { Id: model.ProductId, UniqueClientId: model.UniqueClientId });\r\n\t\tvar fileInfoModel = { ...this.state.fileInfoModel }\r\n\r\n\t\tif (responseData == null || responseData == undefined) {\r\n\t\t\tfileInfoModel.StoredImage = galerydefault;\r\n\t\t\tthis.setState({ model });\r\n\t\t}\r\n\r\n\t\tif (responseData != null || responseData != undefined) {\r\n\t\tvar cardNumberValue = document.getElementById(\"cardNumber\");\r\n\t\tif(cardNumberValue){\r\n\t\t\tvar cardNumber = cardNumberValue.textContent = \"5032 9334 3764 9846\";\r\n\t\t\tcardNumber = cardNumberValue.style.position = \"absolute\";\r\n\t\t\tcardNumber = cardNumberValue.style.left = \"20px\";\r\n\t\t\tcardNumber = cardNumberValue.style.bottom = \"55px\";\r\n\t\t\tcardNumber = cardNumberValue.style.color = \"white\";\r\n\t\t\tcardNumber = cardNumberValue.style.fontSize = \"15px\";\r\n\t\t}\r\n\t\tvar cardNameValue = document.getElementById(\"cardName\");\r\n\t\tif(cardNameValue){\r\n\t\t\tvar cardName = cardNameValue.textContent = \"Alexander Theodore\";\r\n\t\t\tcardName = cardNameValue.style.position = \"absolute\";\r\n\t\t\tcardName = cardNameValue.style.left = \"20px\";\r\n\t\t\tcardName = cardNameValue.style.bottom = \"20px\";\r\n\t\t\tcardName = cardNameValue.style.color = \"white\";\r\n\t\t\tcardName = cardNameValue.style.fontSize = \"15px\";\r\n\t\t} \r\n\t\tvar cardDateValue = document.getElementById(\"cardDate\");\r\n\t\tif(cardDateValue){\r\n\t\t\tvar cardDate = cardDateValue.textContent = \"09/19\";\r\n\t\t\tcardDate = cardDateValue.style.position = \"absolute\";\r\n\t\t\tcardDate = cardDateValue.style.left = \"160px\";\r\n\t\t\tcardDate = cardDateValue.style.bottom = \"30px\";\r\n\t\t\tcardDate = cardDateValue.style.color = \"white\";\r\n\t\t\tcardDate = cardDateValue.style.fontSize = \"15px\";\r\n\t\t}\r\n\r\n if (responseData.CardChipTypeId == 11100) {\r\n\t\tvar documentryValue = document.getElementById(\"cardChipType\");\r\n\t\tif(documentryValue){\r\n\t\t\tvar documentry = documentryValue.style.width = \"50px\";\r\n\t\t\tdocumentry = documentryValue.style.height = \"40px\";\r\n\t\t\tdocumentry = documentryValue.style.left = \"20px\";\r\n\t\t\tdocumentry = documentryValue.style.bottom = \"80px\";\r\n\t\t\tdocumentry = documentryValue.style.position = \"absolute\";\r\n\t\t\tdocumentry = documentryValue.style.borderRadius = \"5px\";\r\n\t\t\tdocumentry = documentryValue.style.backgroundColor = \"white\";\r\n\t\t}\r\n }\r\n\t else {\r\n\t\tvar documentryValue = document.getElementById(\"cardChipType\");\r\n\t\tif(documentryValue){\r\n\t\t\tvar documentry = documentryValue.style.width = \"\";\r\n\t\t\tdocumentry = documentryValue.style.height = \"\";\r\n\t\t\tdocumentry = documentryValue.style.left = \"\";\r\n\t\t\tdocumentry = documentryValue.style.bottom = \"\";\r\n\t\t\tdocumentry = documentryValue.style.position = \"\";\r\n\t\t\tdocumentry = documentryValue.style.borderRadius = \"\";\r\n\t\t\tdocumentry = documentryValue.style.backgroundColor = \"\";\r\n\t\t}\r\n }\r\n\r\n if (responseData.CardBrandId == 3400) {\r\n\t\tvar documentry2Value = document.getElementById(\"cardBrandId\");\r\n\t\tif(documentry2Value){\r\n\t\t\tvar documentry2 = documentry2Value.style.width = \"80px\";\r\n\t\t\tdocumentry2 = documentry2Value.style.height = \"37px\";\r\n\t\t\tdocumentry2 = documentry2Value.style.left = \"235px\";\r\n\t\t\tdocumentry2 = documentry2Value.style.bottom = \"15px\";\r\n\t\t\tdocumentry2 = documentry2Value.style.position = \"absolute\";\r\n\t\t\tdocumentry2 = documentry2Value.style.borderRadius = \"10px\";\r\n\t\t\tdocumentry2 = documentry2Value.style.backgroundColor = \"white\";\r\n\t\t}\r\n }\r\n\t else if (responseData.CardBrandId == 3403) {\r\n\t\tvar documentry2Value = document.getElementById(\"cardBrandId\");\r\n\t\tif(documentry2Value){\r\n\t\t\tvar documentry2 = documentry2Value.style.width = \"48px\";\r\n\t\t\tdocumentry2 = documentry2Value.style.height = \"48px\";\r\n\t\t\tdocumentry2 = documentry2Value.style.left = \"265px\";\r\n\t\t\tdocumentry2 = documentry2Value.style.bottom = \"15px\";\r\n\t\t\tdocumentry2 = documentry2Value.style.position = \"absolute\";\r\n\t\t\tdocumentry2 = documentry2Value.style.borderRadius = \"10px\";\r\n\t\t\tdocumentry2 = documentry2Value.style.backgroundColor = \"white\";\r\n\t\t}\r\n }\r\n\t else if (responseData.CardBrandId == 3401) {\r\n\t\tvar documentry2Value = document.getElementById(\"cardBrandId\");\r\n\t\tif(documentry2Value){\r\n\t\t\tvar documentry2 = documentry2Value.style.width = \"80px\";\r\n\t\t\tdocumentry2 = documentry2Value.style.height = \"55px\";\r\n\t\t\tdocumentry2 = documentry2Value.style.left = \"235px\";\r\n\t\t\tdocumentry2 = documentry2Value.style.bottom = \"15px\";\r\n\t\t\tdocumentry2 = documentry2Value.style.position = \"absolute\";\r\n\t\t\tdocumentry2 = documentry2Value.style.borderRadius = \"30px\";\r\n\t\t\tdocumentry2 = documentry2Value.style.backgroundColor = \"white\";\r\n\t\t}\r\n }\r\n\t else {\r\n\t\tvar documentry2Value = document.getElementById(\"cardBrandId\");\r\n\t\tif(documentry2Value){\r\n\t\t\tvar documentry2 = documentry2Value.style.width = \"\";\r\n\t\t\tdocumentry2 = documentry2Value.style.height = \"\";\r\n\t\t\tdocumentry2 = documentry2Value.style.left = \"\";\r\n\t\t\tdocumentry2 = documentry2Value.style.bottom = \"\";\r\n\t\t\tdocumentry2 = documentry2Value.style.position = \"\";\r\n\t\t\tdocumentry2 = documentry2Value.style.borderRadius = \"\";\r\n\t\t\tdocumentry2 = documentry2Value.style.backgroundColor = \"\";\r\n\t\t}\r\n }\r\n\r\n if (responseData.CardContactlessColorTypeId == 11102) {\r\n\t\tvar documentry3Value = document.getElementById(\"cardContactlessColorType\");\r\n\t\tif(documentry3Value){\r\n\t\t\tvar documentry3 = documentry3Value.style.position = \"absolute\";\r\n\t\t\tdocumentry3 = documentry3Value.style.width = \"40px\";\r\n\t\t\tdocumentry3 = documentry3Value.style.height = \"40px\";\r\n\t\t\tdocumentry3 = documentry3Value.style.left = \"275px\";\r\n\t\t\tdocumentry3 = documentry3Value.style.bottom = \"100px\";\r\n\t\t\tdocumentry3 = documentry3Value.style.borderRadius = \"40px\";\r\n\t\t\tdocumentry3 = documentry3Value.style.backgroundColor = \"black\";\r\n\t\t}\r\n }\r\n\t else if (responseData.CardContactlessColorTypeId == 11104) {\r\n\t\tvar documentry3Value = document.getElementById(\"cardContactlessColorType\");\r\n\t\tif(documentry3Value){\r\n\t\t\tvar documentry3 = documentry3Value.style.position = \"absolute\";\r\n\t\t\tdocumentry3 = documentry3Value.style.width = \"40px\";\r\n\t\t\tdocumentry3 = documentry3Value.style.height = \"40px\";\r\n\t\t\tdocumentry3 = documentry3Value.style.left = \"275px\";\r\n\t\t\tdocumentry3 = documentry3Value.style.bottom = \"100px\";\r\n\t\t\tdocumentry3 = documentry3Value.style.borderRadius = \"40px\";\r\n\t\t\tdocumentry3 = documentry3Value.style.backgroundColor = \"white\";\r\n\t\t}\r\n }\r\n\t else {\r\n\t\tvar documentry3Value = document.getElementById(\"cardContactlessColorType\");\r\n\t\tif(documentry3Value){\r\n\t\t\tvar documentry3 = documentry3Value.style.position = \"\";\r\n\t\t\tdocumentry3 = documentry3Value.style.width = \"\";\r\n\t\t\tdocumentry3 = documentry3Value.style.height = \"\";\r\n\t\t\tdocumentry3 = documentry3Value.style.left = \"\";\r\n\t\t\tdocumentry3 = documentry3Value.style.bottom = \"\";\r\n\t\t\tdocumentry3 = documentry3Value.style.borderRadius = \"\";\r\n\t\t\tdocumentry3 = documentry3Value.style.backgroundColor = \"\";\r\n\t\t}\r\n }\r\n\r\n if(responseData.BackgroundColorId == 11105 || responseData.BackgroundColorId == 11109 || responseData.BackgroundColorId == 11107){\r\n let cardName = document.getElementById(\"cardName\").style.color = \"black\";\r\n let cardNumber = document.getElementById(\"cardNumber\").style.color = \"black\";\r\n let cardDate = document.getElementById(\"cardDate\").style.color = \"black\";\r\n }\r\n\t else if(responseData.BackgroundColorId == 11106 || responseData.BackgroundColorId == 11110 || responseData.BackgroundColorId == 11108){\r\n let cardName = document.getElementById(\"cardName\").style.color = \"white\";\r\n let cardNumber = document.getElementById(\"cardNumber\").style.color = \"white\";\r\n let cardDate = document.getElementById(\"cardDate\").style.color = \"white\";\r\n }\r\n\t\t\tthis.setState({ model, fileInfoModel: responseData });\r\n\t\t}\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (name === \"Customer\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.ClientCustomerId = newValue.Id;\r\n\t\t\t\tmodel.CustomerNumber = newValue.CustomerNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.ClientCustomerId;\r\n\t\t\t\tdelete model.CustomerNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (name === \"UniqueClientId\") {\r\n\t\t\tdelete model.ClientCustomerId;\r\n\t\t\tdelete model.CustomerNumber;\r\n\t\t}\r\n\t\tif (name === \"HasCardUsageLimit\" && !newValue) {\r\n\t\t\tdelete model.CardUsagePeriodId;\r\n\t\t\tdelete model.CardUsageLimit;\r\n\t\t}\r\n\t\tif (name === \"EmbossType\" && newValue != EmbossType.InstantId) {\r\n\t\t\tmodel.IsMass = true;\r\n\t\t\tmodel.InstantEmbossBranchId = undefined;\r\n\t\t}\r\n\t\tif (name === \"EmbossType\" && newValue == EmbossType.InstantId) {\r\n\t\t\tmodel.IsMass = false;\r\n\t\t}\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, fileInfoModel: {}, vModel: {}, isEdit: false, index: -1 });\r\n\r\n\t\tvar cardNumberValue = document.getElementById(\"cardNumber\");\r\n\t\tif(cardNumberValue){\r\n\t\t\tvar cardNumber = cardNumberValue.textContent = \"\";\r\n\t\t\tcardNumber = cardNumberValue.style.position = \"\";\r\n\t\t\tcardNumber = cardNumberValue.style.left = \"\";\r\n\t\t\tcardNumber = cardNumberValue.style.bottom = \"\";\r\n\t\t\tcardNumber = cardNumberValue.style.color = \"\";\r\n\t\t\tcardNumber = cardNumberValue.style.fontSize = \"\";\r\n\t\t}\r\n\t\tvar cardNameValue = document.getElementById(\"cardName\");\r\n\t\tif(cardNameValue){\r\n\t\t\tvar cardName = cardNameValue.textContent = \"\";\r\n\t\t\tcardName = cardNameValue.style.position = \"\";\r\n\t\t\tcardName = cardNameValue.style.left = \"\";\r\n\t\t\tcardName = cardNameValue.style.bottom = \"\";\r\n\t\t\tcardName = cardNameValue.style.color = \"\";\r\n\t\t\tcardName = cardNameValue.style.fontSize = \"\";\r\n\t\t}\t\r\n\t\tvar cardDateValue = document.getElementById(\"cardDate\");\r\n\t\tif(cardDateValue){\r\n\t\t\tvar cardDate = cardDateValue.textContent = \"\";\r\n\t\t\tcardDate = cardDateValue.style.position = \"\";\r\n\t\t\tcardDate = cardDateValue.style.left = \"\";\r\n\t\t\tcardDate = cardDateValue.style.bottom = \"\";\r\n\t\t\tcardDate = cardDateValue.style.color = \"\";\r\n\t\t\tcardDate = cardDateValue.style.fontSize = \"\";\r\n\t\t}\r\n\r\n\t\tvar cardChipTypeValue = document.getElementById(\"cardChipType\");\r\n\t\tif(cardChipTypeValue){\r\n\t\t\tvar documentry = cardChipTypeValue.style.width = \"\";\r\n\t\t\tdocumentry = cardChipTypeValue.style.height = \"\";\r\n\t\t\tdocumentry = cardChipTypeValue.style.left = \"\";\r\n\t\t\tdocumentry = cardChipTypeValue.style.bottom = \"\";\r\n\t\t\tdocumentry = cardChipTypeValue.style.position = \"\";\r\n\t\t\tdocumentry = cardChipTypeValue.style.borderRadius = \"\";\r\n\t\t\tdocumentry = cardChipTypeValue.style.backgroundColor = \"\";\r\n\t\t}\r\n\r\n\t\tvar cardBrandIdValue = document.getElementById(\"cardBrandId\");\r\n\t\tif(cardBrandIdValue){\r\n\t\t\tvar documentry2 = cardBrandIdValue.style.width = \"\";\r\n\t\t\tdocumentry2 = cardBrandIdValue.style.height = \"\";\r\n\t\t\tdocumentry2 = cardBrandIdValue.style.left = \"\";\r\n\t\t\tdocumentry2 = cardBrandIdValue.style.bottom = \"\";\r\n\t\t\tdocumentry2 = cardBrandIdValue.style.position = \"\";\r\n\t\t\tdocumentry2 = cardBrandIdValue.style.borderRadius = \"\";\r\n\t\t\tdocumentry2 = cardBrandIdValue.style.backgroundColor = \"\";\r\n\t\t}\r\n\r\n\t\tvar colorTypeValue = document.getElementById(\"cardContactlessColorType\");\r\n\t\tif(colorTypeValue){\r\n\t\t\tvar documentry3 = colorTypeValue.style.position = \"\";\r\n\t\t\tdocumentry3 = colorTypeValue.style.width = \"\";\r\n\t\t\tdocumentry3 = colorTypeValue.style.height = \"\";\r\n\t\t\tdocumentry3 = colorTypeValue.style.left = \"\";\r\n\t\t\tdocumentry3 = colorTypeValue.style.bottom = \"\";\r\n\t\t\tdocumentry3 = colorTypeValue.style.borderRadius = \"\";\r\n\t\t\tdocumentry3 = colorTypeValue.style.backgroundColor = \"\";\r\n\t\t}\r\n\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Card/GetCardSummaryList\",\r\n\t\t\t{\r\n\t\t\t\tIsMainCard: model.IsMainCard,\r\n\t\t\t\tUniqueClientId: model.UniqueClientId || 0,\r\n\t\t\t\tClientCustomerId: model.ClientCustomerId,\r\n\t\t\t\tProductId: model.ProductId,\r\n\t\t\t\tEmbossName: model.EmbossName,\r\n\t\t\t\tIsNoNameCard: false,\r\n\t\t\t\tProductType: \"P\"\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleSubmit = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Prepaid/CreateCard\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ model: { ...this.initialModel }, index: -1 });\r\n\t\t\t\t\tthis.props.showMessage(\"success\", \"Succeeded\", \"Operation is successfully!\");\r\n\t\t\t\t\tthis.HandleClear();\r\n\t\t\t\t\tthis.HandleSearch();\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tvar messages = [];\r\n\r\n\t\tvModel.UniqueClientId = model.UniqueClientId == null;\r\n\t\tif (vModel.UniqueClientId) messages.push(\"Client must be select\");\r\n\r\n\t\tvModel.ClientCustomerId = model.ClientCustomerId == null;\r\n\t\tif (vModel.ClientCustomerId) messages.push(\"Customer must be select\");\r\n\r\n\t\tvModel.ProductId = model.ProductId == null;\r\n\t\tif (vModel.ProductId) messages.push(\"Product must be select\");\r\n\r\n\t\tvModel.EmbossName = (model.EmbossName == null || model.EmbossName.trim() == \"\");\r\n\t\tif (vModel.EmbossName) messages.push(\"Emboss Name cannot be empty\");\r\n\r\n\t\tvModel.CardUsagePeriodId = model.HasCardUsageLimit && model.CardUsagePeriodId == null;\r\n\t\tif (vModel.CardUsagePeriodId) messages.push(\"Card Usage Period must be select\");\r\n\r\n\t\tvModel.CardUsageLimit = model.HasCardUsageLimit && (model.CardUsageLimit == null || model.CardUsageLimit == 0);\r\n\t\tif (vModel.CardUsageLimit) messages.push(\"Card Usage Limit cannot be empty\");\r\n\r\n\t\tvModel.DefaultAccountId = model.DefaultAccountId == null;\r\n\t\tif (vModel.DefaultAccountId) messages.push(\"Default Account must be select\");\r\n\r\n\t\tvModel.EmbossType = model.EmbossType == null;\r\n\t\tif (vModel.EmbossType) messages.push(\"Emboss Type must be select\");\r\n\r\n\t\tvModel.InstantEmbossBranchId = model.InstantEmbossBranchId == null && model.EmbossType == EmbossType.InstantId;\r\n\t\tif (vModel.EmbossType) messages.push(\"Card Perso Office must be select\");\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.props.showMessageNode(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.setState({ vModel });\r\n\t\treturn true;\r\n\t}\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tRenderItemAccount = (d) => {\r\n\t\tthis.renderItemAccount = `${d.AccountNumber} - ${d.AccountName}`;\r\n\t\treturn this.renderItemAccount;\r\n\t}\r\n\r\n\tRenderItemProduct = (d) => {\r\n\t\tthis.renderItemProduct = d.Name;\r\n\t\tif (d.UniqueClient)\r\n\t\t\tthis.renderItemProduct += ` - (${d.UniqueClient.UniqueClientId} - ${d.UniqueClient.ClientName})`;\r\n\t\treturn this.renderItemProduct;\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tlet { model, list } = this.state;\r\n\t\tmodel = list[index];\r\n\t\tif (list[index].ClientCustomer) {\r\n\t\t\tmodel.ClientCustomerId = list[index].ClientCustomer.Id;\r\n\t\t\tmodel.CustomerNumber = list[index].ClientCustomer.CustomerNumber;\r\n\t\t}\r\n\t\tmodel.EmbossName = model.EmbossName1;\r\n\t\tthis.setState({ isEdit: true, model, index });\r\n\t}\r\n\r\n\tGetProductParameter = () => {\r\n\t\tthis.parameterProduct.UniqueClientId = this.state.model.UniqueClientId;\r\n\t\tthis.parameterProduct.IsNoNameProduct = false;\r\n\t\treturn this.parameterProduct;\r\n\t}\r\n\r\n\tGetDefaultAccountParameter = () => {\r\n\t\tthis.parameterDefaultAccount.UniqueClientId = this.state.model.UniqueClientId;\r\n\t\tthis.parameterDefaultAccount.ClientCustomerId = this.state.model.ClientCustomerId;\r\n\t\treturn this.parameterDefaultAccount;\r\n\t}\r\n\r\n\tFillCustomer = (customer) => {\r\n\t\tthis.HandleChange(\"Customer\", customer);\r\n\t}\r\n\r\n\tValidateForCompanyName = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tvar messages = [];\r\n\r\n\t\tvModel.ClientCustomerId = model.ClientCustomerId == null;\r\n\t\tif (vModel.ClientCustomerId) messages.push(\"Customer must be select\");\r\n\r\n\t\tvModel.ProductId = model.ProductId == null;\r\n\t\tif (vModel.ProductId) messages.push(\"Product must be select\");\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.props.showMessageNode(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.setState({ vModel });\r\n\t\treturn true;\r\n\t}\r\n\r\n\tFillCompanyName = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tif (!this.ValidateForCompanyName()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Prepaid/ClientForthLineSearch\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tif (responseData.Item[0] != null || responseData.Item[0] != undefined) {\r\n\t\t\t\t\t\tthis.companyNameResult = responseData.Item[0];\r\n\t\t\t\t\t\tmodel.Emboss4thLine = this.companyNameResult.EmbossForthLine;\r\n\t\t\t\t\t\tthis.setState({ model });\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Emboss4thLine cannot defined for this customer and product\");\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tsetValueToState = (name, value) => {\r\n\t\tconst { model } = this.state;\r\n\t\tif (value == \"CustomerNumber\") {\r\n\t\t\tmodel.Emboss4thLine = model.CustomerNumber;\r\n\t\t}\r\n\t\tif (value == \"Custom\") {\r\n\t\t\tmodel.Emboss4thLine = \"\";\r\n\t\t}\r\n\t\tif (value == \"CompanyName\") {\r\n\t\t\tthis.FillCompanyName();\r\n\t\t}\r\n\t\tif (name == \"ExportReportType\") {\r\n\t\t\tmodel.ExportReportType = value;\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\r\n\t};\r\n\r\n\trender() {\r\n\t\tconst { classes, Disabled, ExecuteApiPost } = this.props;\r\n\t\tconst { alert, model, vModel, list, isLoading, index, fileInfoModel } = this.state;\r\n\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\r\n\t\treturn (\r\n\t\t\t<>\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t 0, ModelFunction: () => model, FillDataFromModel: model => this.setState({ model }), ValidationFunction: this.Validate },\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t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t\t
\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCreateMainCard.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(CreateMainCard, kycManualPhotoDefinitionStyle);","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent.jsx\";\r\nimport { GenericCheckInput, GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, ProgramCodes, EmbossType } from \"views/Constants/Constant.js\";\r\nimport kycManualPhotoDefinitionStyle from \"assets/jss/material-dashboard-pro-react/views/kycManualPhotoDefinitionStyle.jsx\";\r\nimport GenericCardMedia from \"views/Components/Generic/GenericCardMedia.jsx\";\r\n\r\nconst galerydefault = require(\"assets/img/galerydefault-image.png\");\r\n\r\n\r\nclass CreateSupplementaryCard extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.parameterEmbossType = { ParameterCode: \"EmbossType\" };\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t\tIsMainCard: false,\r\n\t\t\tIsMass: true\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tvModel: {},\r\n\t\t\tlist: [],\r\n\t\t\tfileInfoModel: {},\r\n\t\t\tindex: -1,\r\n\t\t\tisLoading: false\r\n\t\t}\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.maxLength21 = { maxLength: 21 };\r\n\t\tthis.maxLength10 = { maxLength: 10 };\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : undefined\r\n\t\t};\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\r\n\t\tthis.parameterProduct = {};\r\n\r\n\t\tthis.parameterMainCard = {};\r\n\r\n\t\tthis.parameterPeriod = { ParameterCode: \"LoadingPeriod\" };\r\n\r\n\t\tthis.SortedProductName = { Member: \"ProductName\" };\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"UniqueClient.ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer\",\r\n\t\t\t\taccessor: \"ClientCustomer.CustomerName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Number\",\r\n\t\t\t\taccessor: \"CardNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Product Name\",\r\n\t\t\t\taccessor: \"Product.ProductName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Emboss Name\",\r\n\t\t\t\taccessor: \"EmbossName1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Emboss 4th Line\",\r\n\t\t\t\taccessor: \"EmbossName2\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Usage Period\",\r\n\t\t\t\taccessor: \"CardUsagePeriod.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Usage Limit\",\r\n\t\t\t\taccessor: \"CardUsageLimit\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Zip Code\",\r\n\t\t\t\taccessor: \"AvsZipCode\",\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.SortedOrderIndex = { Member: \"OrderIndex\" };\r\n\t\tthis.renderItemPhoneCode = {};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Create Supplementary Card\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t}\r\n\r\n\tRenderItemPhoneCode = (d) => {\r\n\t\tthis.renderItemPhoneCode = \"+\" + d.Code + \" (\" + d.Name + \")\";\r\n\t\treturn this.renderItemPhoneCode;\r\n\t}\r\n\r\n\thandleChange = async (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\r\n\t\tvar responseData = await ExecuteApiPost(\"/prepaidapi/v1.0/Product/GetProductImage\", { Id: model.ProductId, UniqueClientId: model.UniqueClientId });\r\n\t\tvar fileInfoModel = { ...this.state.fileInfoModel }\r\n\r\n\t\tif (responseData == null || responseData == undefined) {\r\n\t\t\tfileInfoModel.StoredImage = galerydefault;\r\n\t\t\tthis.setState({ model });\r\n\t\t}\r\n\r\n\t\tif (responseData != null || responseData != undefined) {\r\n\t\t\tvar cardNumber = document.getElementById(\"cardNumber\").textContent = \"5032 9334 3764 9846\";\r\n\t\t\tcardNumber = document.getElementById(\"cardNumber\").style.position = \"absolute\";\r\n\t\t\tcardNumber = document.getElementById(\"cardNumber\").style.left = \"20px\";\r\n\t\t\tcardNumber = document.getElementById(\"cardNumber\").style.bottom = \"55px\";\r\n\t\t\tcardNumber = document.getElementById(\"cardNumber\").style.color = \"white\";\r\n\t\t\tcardNumber = document.getElementById(\"cardNumber\").style.fontSize = \"15px\";\r\n\r\n\t\t\tvar cardName = document.getElementById(\"cardName\").textContent = \"Alexander Theodore\";\r\n\t\t\tcardName = document.getElementById(\"cardName\").style.position = \"absolute\";\r\n\t\t\tcardName = document.getElementById(\"cardName\").style.left = \"20px\";\r\n\t\t\tcardName = document.getElementById(\"cardName\").style.bottom = \"20px\";\r\n\t\t\tcardName = document.getElementById(\"cardName\").style.color = \"white\";\r\n\t\t\tcardName = document.getElementById(\"cardName\").style.fontSize = \"15px\";\r\n\r\n\t\t\tvar cardDate = document.getElementById(\"cardDate\").textContent = \"09/19\";\r\n\t\t\tcardDate = document.getElementById(\"cardDate\").style.position = \"absolute\";\r\n\t\t\tcardDate = document.getElementById(\"cardDate\").style.left = \"160px\";\r\n\t\t\tcardDate = document.getElementById(\"cardDate\").style.bottom = \"30px\";\r\n\t\t\tcardDate = document.getElementById(\"cardDate\").style.color = \"white\";\r\n\t\t\tcardDate = document.getElementById(\"cardDate\").style.fontSize = \"15px\";\r\n\r\n\t\t\tif (responseData.CardChipTypeId == 922702) {\r\n\t\t\t\tvar documentry = document.getElementById(\"cardChipType\").style.width = \"50px\";\r\n\t\t\t\tdocumentry = document.getElementById(\"cardChipType\").style.height = \"40px\";\r\n\t\t\t\tdocumentry = document.getElementById(\"cardChipType\").style.left = \"20px\";\r\n\t\t\t\tdocumentry = document.getElementById(\"cardChipType\").style.bottom = \"80px\";\r\n\t\t\t\tdocumentry = document.getElementById(\"cardChipType\").style.position = \"absolute\";\r\n\t\t\t\tdocumentry = document.getElementById(\"cardChipType\").style.borderRadius = \"5px\";\r\n\t\t\t\tdocumentry = document.getElementById(\"cardChipType\").style.backgroundColor = \"white\";\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tvar documentry = document.getElementById(\"cardChipType\").style.width = \"\";\r\n\t\t\t\tdocumentry = document.getElementById(\"cardChipType\").style.height = \"\";\r\n\t\t\t\tdocumentry = document.getElementById(\"cardChipType\").style.left = \"\";\r\n\t\t\t\tdocumentry = document.getElementById(\"cardChipType\").style.bottom = \"\";\r\n\t\t\t\tdocumentry = document.getElementById(\"cardChipType\").style.position = \"\";\r\n\t\t\t\tdocumentry = document.getElementById(\"cardChipType\").style.borderRadius = \"\";\r\n\t\t\t\tdocumentry = document.getElementById(\"cardChipType\").style.backgroundColor = \"\";\r\n\t\t\t}\r\n\r\n\t\t\tif (responseData.CardBrandId == 3400) {\r\n\t\t\t\tvar documentry2 = document.getElementById(\"cardBrandId\").style.width = \"80px\";\r\n\t\t\t\tdocumentry2 = document.getElementById(\"cardBrandId\").style.height = \"37px\";\r\n\t\t\t\tdocumentry2 = document.getElementById(\"cardBrandId\").style.left = \"235px\";\r\n\t\t\t\tdocumentry2 = document.getElementById(\"cardBrandId\").style.bottom = \"15px\";\r\n\t\t\t\tdocumentry2 = document.getElementById(\"cardBrandId\").style.position = \"absolute\";\r\n\t\t\t\tdocumentry2 = document.getElementById(\"cardBrandId\").style.borderRadius = \"10px\";\r\n\t\t\t\tdocumentry2 = document.getElementById(\"cardBrandId\").style.backgroundColor = \"white\";\r\n\t\t\t}\r\n\t\t\telse if (responseData.CardBrandId == 3403) {\r\n\t\t\t\tvar documentry2 = document.getElementById(\"cardBrandId\").style.width = \"48px\";\r\n\t\t\t\tdocumentry2 = document.getElementById(\"cardBrandId\").style.height = \"48px\";\r\n\t\t\t\tdocumentry2 = document.getElementById(\"cardBrandId\").style.left = \"265px\";\r\n\t\t\t\tdocumentry2 = document.getElementById(\"cardBrandId\").style.bottom = \"15px\";\r\n\t\t\t\tdocumentry2 = document.getElementById(\"cardBrandId\").style.position = \"absolute\";\r\n\t\t\t\tdocumentry2 = document.getElementById(\"cardBrandId\").style.borderRadius = \"10px\";\r\n\t\t\t\tdocumentry2 = document.getElementById(\"cardBrandId\").style.backgroundColor = \"white\";\r\n\t\t\t}\r\n\t\t\telse if (responseData.CardBrandId == 3401) {\r\n\t\t\t\tvar documentry2 = document.getElementById(\"cardBrandId\").style.width = \"80px\";\r\n\t\t\t\tdocumentry2 = document.getElementById(\"cardBrandId\").style.height = \"55px\";\r\n\t\t\t\tdocumentry2 = document.getElementById(\"cardBrandId\").style.left = \"235px\";\r\n\t\t\t\tdocumentry2 = document.getElementById(\"cardBrandId\").style.bottom = \"15px\";\r\n\t\t\t\tdocumentry2 = document.getElementById(\"cardBrandId\").style.position = \"absolute\";\r\n\t\t\t\tdocumentry2 = document.getElementById(\"cardBrandId\").style.borderRadius = \"30px\";\r\n\t\t\t\tdocumentry2 = document.getElementById(\"cardBrandId\").style.backgroundColor = \"white\";\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tvar documentry2 = document.getElementById(\"cardBrandId\").style.width = \"\";\r\n\t\t\t\tdocumentry2 = document.getElementById(\"cardBrandId\").style.height = \"\";\r\n\t\t\t\tdocumentry2 = document.getElementById(\"cardBrandId\").style.left = \"\";\r\n\t\t\t\tdocumentry2 = document.getElementById(\"cardBrandId\").style.bottom = \"\";\r\n\t\t\t\tdocumentry2 = document.getElementById(\"cardBrandId\").style.position = \"\";\r\n\t\t\t\tdocumentry2 = document.getElementById(\"cardBrandId\").style.borderRadius = \"\";\r\n\t\t\t\tdocumentry2 = document.getElementById(\"cardBrandId\").style.backgroundColor = \"\";\r\n\t\t\t}\r\n\r\n\t\t\tif (responseData.CardContactlessColorTypeId == 922699) {\r\n\t\t\t\tvar documentry3 = document.getElementById(\"cardContactlessColorType\").style.position = \"absolute\";\r\n\t\t\t\tdocumentry3 = document.getElementById(\"cardContactlessColorType\").style.width = \"40px\";\r\n\t\t\t\tdocumentry3 = document.getElementById(\"cardContactlessColorType\").style.height = \"40px\";\r\n\t\t\t\tdocumentry3 = document.getElementById(\"cardContactlessColorType\").style.left = \"275px\";\r\n\t\t\t\tdocumentry3 = document.getElementById(\"cardContactlessColorType\").style.bottom = \"100px\";\r\n\t\t\t\tdocumentry3 = document.getElementById(\"cardContactlessColorType\").style.borderRadius = \"40px\";\r\n\t\t\t\tdocumentry3 = document.getElementById(\"cardContactlessColorType\").style.backgroundColor = \"black\";\r\n\t\t\t}\r\n\t\t\telse if (responseData.CardContactlessColorTypeId == 922700) {\r\n\t\t\t\tvar documentry3 = document.getElementById(\"cardContactlessColorType\").style.position = \"absolute\";\r\n\t\t\t\tdocumentry3 = document.getElementById(\"cardContactlessColorType\").style.width = \"40px\";\r\n\t\t\t\tdocumentry3 = document.getElementById(\"cardContactlessColorType\").style.height = \"40px\";\r\n\t\t\t\tdocumentry3 = document.getElementById(\"cardContactlessColorType\").style.left = \"275px\";\r\n\t\t\t\tdocumentry3 = document.getElementById(\"cardContactlessColorType\").style.bottom = \"100px\";\r\n\t\t\t\tdocumentry3 = document.getElementById(\"cardContactlessColorType\").style.borderRadius = \"40px\";\r\n\t\t\t\tdocumentry3 = document.getElementById(\"cardContactlessColorType\").style.backgroundColor = \"white\";\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tvar documentry3 = document.getElementById(\"cardContactlessColorType\").style.position = \"\";\r\n\t\t\t\tdocumentry3 = document.getElementById(\"cardContactlessColorType\").style.width = \"\";\r\n\t\t\t\tdocumentry3 = document.getElementById(\"cardContactlessColorType\").style.height = \"\";\r\n\t\t\t\tdocumentry3 = document.getElementById(\"cardContactlessColorType\").style.left = \"\";\r\n\t\t\t\tdocumentry3 = document.getElementById(\"cardContactlessColorType\").style.bottom = \"\";\r\n\t\t\t\tdocumentry3 = document.getElementById(\"cardContactlessColorType\").style.borderRadius = \"\";\r\n\t\t\t\tdocumentry3 = document.getElementById(\"cardContactlessColorType\").style.backgroundColor = \"\";\r\n\t\t\t}\r\n\t\t\tthis.setState({ model, fileInfoModel: responseData });\r\n\t\t}\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tif (name === \"Customer\") {\r\n\t\t\t\tif (newValue) {\r\n\t\t\t\t\tmodel.ClientCustomerId = newValue.Id;\r\n\t\t\t\t\tmodel.CustomerNumber = newValue.CustomerNumber;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tdelete model.ClientCustomerId;\r\n\t\t\t\t\tdelete model.CustomerNumber;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (name === \"UniqueClientId\") {\r\n\t\t\t\tdelete model.ClientCustomerId;\r\n\t\t\t\tdelete model.CustomerNumber;\r\n\t\t\t}\r\n\t\t\tif (name === \"EmbossType\" && newValue != EmbossType.InstantId) {\r\n\t\t\t\tmodel.IsMass = true;\r\n\t\t\t\tmodel.InstantEmbossBranchId = undefined;\r\n\t\t\t}\r\n\t\t\tif (name === \"EmbossType\" && newValue == EmbossType.InstantId) {\r\n\t\t\t\tmodel.IsMass = false;\r\n\t\t\t}\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, isEdit: false, index: -1 });\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Card/GetCardSummaryList\",\r\n\t\t\t{\r\n\t\t\t\tIsMainCard: model.IsMainCard,\r\n\t\t\t\tUniqueClientId: model.UniqueClientId || 0,\r\n\t\t\t\tClientCustomerId: model.ClientCustomerId,\r\n\t\t\t\tProductId: model.ProductId,\r\n\t\t\t\tEmbossName1: model.EmbossName,\r\n\t\t\t\tCardUsagePeriodId: model.CardUsagePeriodId,\r\n\t\t\t\tCardUsageLimit: model.CardUsageLimit,\r\n\t\t\t\tEmbossTypeId: model.EmbossType,\r\n\t\t\t\tAvsZipCode: model.AvsZipCode,\r\n\t\t\t\tCountryCodeId: model.CountryCodeId,\r\n\t\t\t\tPhoneNumber: model.PhoneNumber\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleSubmit = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Prepaid/CreateSupplementaryCard\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.HandleClear();\r\n\t\t\t\tthis.HandleSearch();\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Success\", \"Operation is successfully!\");\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tvar messages = [];\r\n\r\n\t\tvModel.UniqueClientId = model.UniqueClientId == null;\r\n\t\tif (vModel.UniqueClientId) messages.push(\"Client must be select\");\r\n\r\n\t\tvModel.ClientCustomerId = model.ClientCustomerId == null;\r\n\t\tif (vModel.ClientCustomerId) messages.push(\"Customer must be select\");\r\n\r\n\t\tvModel.MainCardId = model.MainCardId == null;\r\n\t\tif (vModel.MainCardId) messages.push(\"Main Card must be select\");\r\n\r\n\t\tvModel.ProductId = model.ProductId == null;\r\n\t\tif (vModel.ProductId) messages.push(\"Product must be select\");\r\n\r\n\t\tvModel.EmbossName = (model.EmbossName == null || model.EmbossName.trim() == \"\");\r\n\t\tif (vModel.EmbossName) messages.push(\"Emboss Name cannot be empty\");\r\n\r\n\t\tvModel.CardUsagePeriodId = model.HasCardUsageLimit && model.CardUsagePeriodId == null;\r\n\t\tif (vModel.CardUsagePeriodId) messages.push(\"Card Usage Period must be select\");\r\n\r\n\t\tvModel.CardUsageLimit = model.HasCardUsageLimit && (model.CardUsageLimit == null || model.CardUsageLimit == 0);\r\n\t\tif (vModel.CardUsageLimit) messages.push(\"Card Usage Limit cannot be empty\");\r\n\r\n\t\tvModel.EmbossType = model.EmbossType == null;\r\n\t\tif (vModel.EmbossType) messages.push(\"Emboss Type must be select\");\r\n\r\n\t\tvModel.InstantEmbossBranchId = model.InstantEmbossBranchId == null && model.EmbossType == EmbossType.InstantId;\r\n\t\tif (vModel.EmbossType) messages.push(\"Card Perso Office must be select\");\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.props.showMessageNode(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.setState({ vModel });\r\n\t\treturn true;\r\n\t}\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tlet { list } = this.state;\r\n\t\tlet model = list[index];\r\n\t\tif (model.ClientCustomer) {\r\n\t\t\tmodel.ClientCustomerId = model.ClientCustomer.Id;\r\n\t\t\tmodel.CustomerNumber = model.ClientCustomer.CustomerNumber;\r\n\t\t}\r\n\t\tmodel.EmbossName = model.EmbossName1;\r\n\t\tthis.setState({ isEdit: true, model, index });\r\n\t}\r\n\r\n\tGetProductParameter = () => {\r\n\t\tthis.parameterProduct.UniqueClientId = this.state.model.UniqueClientId;\r\n\t\tthis.parameterProduct.IsNoNameProduct = false;\r\n\t\treturn this.parameterProduct;\r\n\t}\r\n\r\n\tGetMainCardParameter = () => {\r\n\t\tthis.parameterMainCard.IsMainCard = true;\r\n\t\tthis.parameterMainCard.IsNoNameCard = false;\r\n\t\tthis.parameterMainCard.IsActive = true;\r\n\t\tthis.parameterMainCard.CardSearchCriteria = 2; // OnlyMainCards,\r\n\t\tthis.parameterMainCard.ClientCustomerId = this.state.model.ClientCustomerId;\r\n\t\treturn this.parameterMainCard;\r\n\t}\r\n\r\n\tFillCustomer = (customer) => {\r\n\t\tthis.HandleChange(\"Customer\", customer);\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes, Disabled, ExecuteApiPost } = this.props;\r\n\t\tconst { alert, model, vModel, list, isLoading, index, fileInfoModel } = this.state;\r\n\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\r\n\t\treturn (\r\n\t\t\t<>\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\r\n\t\t\t\t 0, ModelFunction: () => model, FillDataFromModel: model => this.setState({ model }), ValidationFunction: this.Validate },\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tmodel.IsMass ?\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\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\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCreateSupplementaryCard.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(CreateSupplementaryCard, kycManualPhotoDefinitionStyle);","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport {\r\n\tGenericSelectInput,\r\n\tGenericDateInput,\r\n\tGenericExpansionPanel,\r\n\tGenericRadioInput,\r\n\tGenericGrid,\r\n\tGenericDialog,\r\n\tGenericAlert,\r\n\tGenericDialogActions,\r\n\tGenericLabel,\r\n\tGenericTitle,\r\n\tGenericNumberInput\r\n} from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Select from \"react-select\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent.jsx\";\r\nimport CardComponent from \"views/Components/CardComponent.jsx\";\r\n\r\nclass CreditCardBucketCloseLog extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient()\r\n\t\t\t\t? ClientHelper.GetClientRowId()\r\n\t\t\t\t: undefined,\r\n\t\t\tProgramCode: \"\",\r\n\t\t\t// FromDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\t// ToDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tReferenceNumber: null,\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tvModel: {},\r\n\t\t};\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient()\r\n\t\t\t\t? ClientHelper.GetClientId()\r\n\t\t\t\t: undefined,\r\n\t\t};\r\n\r\n\t\tthis.parameterBucketType = { ParameterCode: \"BucketType\" };\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"Client\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"CustomerName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Number\",\r\n\t\t\t\taccessor: \"CustomerNumber\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"End of Date\",\r\n\t\t\t\taccessor: \"EodDate\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reference Number\",\r\n\t\t\t\taccessor: \"ReferenceNumber\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Description\",\r\n\t\t\t\taccessor: \"TxnDescription\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Code Id\",\r\n\t\t\t\taccessor: \"TrxCodeId\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Code\",\r\n\t\t\t\taccessor: \"TxnName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Statement Begin Date\",\r\n\t\t\t\taccessor: \"StatementBeginDate\",\r\n\t\t\t\ttype: GridColumnType.Date,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Statement End Date\",\r\n\t\t\t\taccessor: \"StatementEndDate\",\r\n\t\t\t\ttype: GridColumnType.Date,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Bucket Type\",\r\n\t\t\t\taccessor: \"BucketType.ParameterDesc\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Payment Amount\",\r\n\t\t\t\taccessor: \"TotalPaymentAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Capital Amount\",\r\n\t\t\t\taccessor: \"TotalCapitalAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Closed Amount\",\r\n\t\t\t\taccessor: \"ClosedAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t];\r\n\r\n\t\tthis.trxTable = React.createRef();\r\n\t}\r\n\r\n\tshowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t\t),\r\n\t\t});\r\n\t};\r\n\tsetValueToState = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t};\r\n\tshowLoading() {\r\n\t\tthis.setState({ isLoading: true });\r\n\t}\r\n\r\n\thideLoading() {\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach((c) => {\r\n\t\t\tif (\r\n\t\t\t\tc.accessor != \"Actions\" &&\r\n\t\t\t\tc.accessor != \"ED\" &&\r\n\t\t\t\t(c.show == undefined || c.show)\r\n\t\t\t) {\r\n\t\t\t\ttrxColumns.push({\r\n\t\t\t\t\tvalue: c.accessor,\r\n\t\t\t\t\ttitle: c.Header,\r\n\t\t\t\t\tcolumntype: c.ColumnType,\r\n\t\t\t\t\ttype: c.type,\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({\r\n\t\t\tisDownloadDialogOpen: true,\r\n\t\t\tGridKeyValueList: trxColumns,\r\n\t\t\tExportSelectedColumns: trxColumns,\r\n\t\t});\r\n\t};\r\n\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t});\r\n\t};\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.props.showMessage(\r\n\t\t\t\t\"warning\",\r\n\t\t\t\t\"Export Report Type not selected\",\r\n\t\t\t\t\"Select Export Report Type to continue\"\r\n\t\t\t);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// if (\r\n\t\t// \tthis.state.ExportReportType == \"PDF\" &&\r\n\t\t// \tthis.state.ExportSelectedColumns.length > 15\r\n\t\t// ) {\r\n\t\t// \tthis.props.showMessage(\r\n\t\t// \t\t\"warning\",\r\n\t\t// \t\t\"PDF document cannot exceed 15 columns\",\r\n\t\t// \t\t\"PDF document cannot exceed 15 columns\"\r\n\t\t// \t);\r\n\t\t// \treturn;\r\n\t\t// }\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tthis.props.showConfirmMessage(\r\n\t\t\t\"question\",\r\n\t\t\t\"Long Process Warning\",\r\n\t\t\t\"This process may take a while. Continue ?\",\r\n\t\t\t() => {\r\n\t\t\t\tthis.hideAlert();\r\n\t\t\t\tconst { model } = this.state;\r\n\t\t\t\tmodel.IsClientBalanceScreen = true;\r\n\r\n\t\t\t\t// Add jsonFile\r\n\t\t\t\tvar jsonColList = [];\r\n\r\n\t\t\t\tvar trxColumns = {};\r\n\t\t\t\tthis.state.ExportSelectedColumns.map((c) => {\r\n\t\t\t\t\ttrxColumns[c.value] = {\r\n\t\t\t\t\t\tvalue: c.value,\r\n\t\t\t\t\t\ttitle: c.title,\r\n\t\t\t\t\t\tcolumntype: c.columntype,\r\n\t\t\t\t\t\ttype: c.type,\r\n\t\t\t\t\t};\r\n\t\t\t\t});\r\n\t\t\t\tjsonColList.push(trxColumns);\r\n\r\n\t\t\t\tmodel[\"jsonFile\"] = {\r\n\t\t\t\t\tcolmns: jsonColList,\r\n\t\t\t\t\tformat: this.state.ExportReportType,\r\n\t\t\t\t\ttitle: \"Credit Card Bucket Close Log Report\",\r\n\t\t\t\t};\r\n\r\n\t\t\t\tthis.setState({ isLoading: true });\r\n\t\t\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\t\t\"/lmsapi/v1.0/FeeAndCodeBasedTransaction/DownloadCreditCardBucketCloseLog\",\r\n\t\t\t\t\tmodel,\r\n\t\t\t\t\t(responseData) => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\t\tthis.props.showMessage(\r\n\t\t\t\t\t\t\t\t\"error\",\r\n\t\t\t\t\t\t\t\t\"Error\",\r\n\t\t\t\t\t\t\t\tresponseData.ErrorDescription\r\n\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t(errorMessage) => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t\t\t},\r\n\t\t\t\t\tthis.props.showMessage\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\topenExportDialog = () => {\r\n\t\tthis.setState({\r\n\t\t\tisDownloadDialogOpen: true,\r\n\t\t});\r\n\t};\r\n\r\n\tcloseExportDialog = () => {\r\n\t\tthis.setState({\r\n\t\t\tisDownloadDialogOpen: false,\r\n\t\t});\r\n\t};\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Credit Card Bucket Close Log\");\r\n\t\tthis.props.setAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (name === \"UniqueClientId\") {\r\n\t\t\tdelete model.ClientCustomerId;\r\n\t\t\tdelete model.CustomerNumber;\r\n\t\t\tdelete model.CardId;\r\n\t\t\tdelete model.CardTokenNumber;\r\n\t\t}\r\n\t\tif (name === \"Customer\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.ClientCustomerId = newValue.Id;\r\n\t\t\t\tmodel.CustomerNumber = newValue.CustomerNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.ClientCustomerId;\r\n\t\t\t\tdelete model.CustomerNumber;\r\n\t\t\t\tdelete model.CardId;\r\n\t\t\t\tdelete model.CardTokenNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (name === \"Card\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.CardId = newValue.CardId;\r\n\t\t\t\tmodel.CardTokenNumber = newValue.CardTokenNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.CardId;\r\n\t\t\t\tdelete model.CardTokenNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\tValueChangedForExport = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t};\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tisEdit: false,\r\n\t\t\tindex: -1,\r\n\t\t});\r\n\t};\r\n\r\n\tHandleSearch = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel.ProgramCode = this.ProgramCode;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/lmsapi/v1.0/FeeAndCodeBasedTransaction/GetCreditCardBucketCloseLog\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\r\n\t\t\t\t\t\t\"error\",\r\n\t\t\t\t\t\t\"Error\",\r\n\t\t\t\t\t\tresponseData.ErrorDescription\r\n\t\t\t\t\t);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\r\n\t\tvar errorList = [];\r\n\r\n\t\tvModel.hasReferenceNumber = model.ReferenceNumber != undefined && model.ReferenceNumber != null && model.ReferenceNumber > 0;\r\n\t\t\r\n\t\tif (!vModel.hasReferenceNumber) {\r\n\t\t\tvModel.UniqueClientId = !model.UniqueClientId;\r\n\t\t\tif (vModel.UniqueClientId) errorList.push(\"Client cannot be empty.\");\r\n\r\n\t\t\tvModel.ClientCustomerId = !model.ClientCustomerId\r\n\t\t\tif (vModel.ClientCustomerId) errorList.push(\"Customer cannot be empty.\");\r\n\t\t}\r\n\r\n\t\tif (errorList.length > 0) {\r\n\t\t\tshowValidationErrors(errorList);\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t};\r\n\r\n\tGetModel = () => {\r\n\t\treturn this.state.model;\r\n\t};\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tFillCustomer = (customer) => {\r\n\t\tthis.HandleChange(\"Customer\", customer);\r\n\t}\r\n\r\n\t// FillCard = (card) => {\r\n\t// \tthis.HandleChange(\"Card\", card);\r\n\t// }\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, isLoading, vModel } = this.state;\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t this.ExportClick(),\r\n\t\t\t\t\t\t\tDisabled: Disabled,\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After}\r\n\t\t\t\t/>\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{/* \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t */}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tthis.setState({ ExportSelectedColumns: value })\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\t\tname=\"Columns\"\r\n\t\t\t\t\t\t\t\t\tgetOptionLabel={(d) => d.title}\r\n\t\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ isDownloadDialogOpen: false })}\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\tCancel\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCreditCardBucketCloseLog.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool,\r\n};\r\n\r\nexport default withArtifex(CreditCardBucketCloseLog, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport {\r\n\tGenericSelectInput,\r\n\tGenericDateInput,\r\n\tGenericExpansionPanel,\r\n\tGenericRadioInput,\r\n\tGenericGrid,\r\n\tGenericDialog,\r\n\tGenericAlert,\r\n\tGenericDialogActions,\r\n\tGenericLabel,\r\n\tGenericTitle,\r\n} from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Select from \"react-select\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent.jsx\";\r\nimport CardComponent from \"views/Components/CardComponent.jsx\";\r\n\r\nclass CreditCardBuckets extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient()\r\n\t\t\t\t? ClientHelper.GetClientRowId()\r\n\t\t\t\t: undefined,\r\n\t\t\tProgramCode: \"\",\r\n\t\t\t// FromDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\t// ToDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tvModel: {},\r\n\t\t};\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient()\r\n\t\t\t\t? ClientHelper.GetClientId()\r\n\t\t\t\t: undefined,\r\n\t\t};\r\n\r\n\t\tthis.parameterProduct = {};\r\n\t\tthis.parameterLMSPaymentStatus = { ParameterCode: \"LMSPaymentStatus\" };\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"Client\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"CustomerName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Number\",\r\n\t\t\t\taccessor: \"CustomerNumber\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Settlement Date\",\r\n\t\t\t\taccessor: \"SettlementDate\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"End of Date\",\r\n\t\t\t\taccessor: \"EodDate\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Payment Status\",\r\n\t\t\t\taccessor: \"TotalPaymentStatus.ParameterDesc\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Sale Amount\",\r\n\t\t\t\taccessor: \"TotalSaleAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Remaining Sale Amount\",\r\n\t\t\t\taccessor: \"RemSaleAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sale Payment Status\",\r\n\t\t\t\taccessor: \"SalePaymentStatus.ParameterDesc\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sale Interest Start Date Time\",\r\n\t\t\t\taccessor: \"SaleInterestStartDateTime\",\r\n\t\t\t\ttype: GridColumnType.Date,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Cash Amount\",\r\n\t\t\t\taccessor: \"TotalCashAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Remaining Cash Amount\",\r\n\t\t\t\taccessor: \"RemCashAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Cash Payment Status\",\r\n\t\t\t\taccessor: \"CashPaymentStatus.ParameterDesc\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Cash Interest Start Date Time\",\r\n\t\t\t\taccessor: \"CashInterestStartDateTime\",\r\n\t\t\t\ttype: GridColumnType.Date,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Fee Amount\",\r\n\t\t\t\taccessor: \"TotalFeeAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Remaining Fee Amount\",\r\n\t\t\t\taccessor: \"RemFeeAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Fee Payment Status\",\r\n\t\t\t\taccessor: \"FeePaymentStatus.ParameterDesc\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Penalty Amount\",\r\n\t\t\t\taccessor: \"TotalPenaltyAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Remaining Penalty Amount\",\r\n\t\t\t\taccessor: \"RemPenaltyAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Penalty Payment Status\",\r\n\t\t\t\taccessor: \"PenaltyPaymentStatus.ParameterDesc\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Interest Amount\",\r\n\t\t\t\taccessor: \"TotalInterestAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Remaining Interest Amount\",\r\n\t\t\t\taccessor: \"RemInterestAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Interest Payment Status\",\r\n\t\t\t\taccessor: \"InterestPaymentStatus.ParameterDesc\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Remaining Total Amount\",\r\n\t\t\t\taccessor: \"RemTotalAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t];\r\n\r\n\t\tthis.trxTable = React.createRef();\r\n\t}\r\n\r\n\tshowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t\t),\r\n\t\t});\r\n\t};\r\n\tsetValueToState = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t};\r\n\tshowLoading() {\r\n\t\tthis.setState({ isLoading: true });\r\n\t}\r\n\r\n\thideLoading() {\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach((c) => {\r\n\t\t\tif (\r\n\t\t\t\tc.accessor != \"Actions\" &&\r\n\t\t\t\tc.accessor != \"ED\" &&\r\n\t\t\t\t(c.show == undefined || c.show)\r\n\t\t\t) {\r\n\t\t\t\ttrxColumns.push({\r\n\t\t\t\t\tvalue: c.accessor,\r\n\t\t\t\t\ttitle: c.Header,\r\n\t\t\t\t\tcolumntype: c.ColumnType,\r\n\t\t\t\t\ttype: c.type,\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({\r\n\t\t\tisDownloadDialogOpen: true,\r\n\t\t\tGridKeyValueList: trxColumns,\r\n\t\t\tExportSelectedColumns: trxColumns,\r\n\t\t});\r\n\t};\r\n\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t});\r\n\t};\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.props.showMessage(\r\n\t\t\t\t\"warning\",\r\n\t\t\t\t\"Export Report Type not selected\",\r\n\t\t\t\t\"Select Export Report Type to continue\"\r\n\t\t\t);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// if (\r\n\t\t// \tthis.state.ExportReportType == \"PDF\" &&\r\n\t\t// \tthis.state.ExportSelectedColumns.length > 15\r\n\t\t// ) {\r\n\t\t// \tthis.props.showMessage(\r\n\t\t// \t\t\"warning\",\r\n\t\t// \t\t\"PDF document cannot exceed 15 columns\",\r\n\t\t// \t\t\"PDF document cannot exceed 15 columns\"\r\n\t\t// \t);\r\n\t\t// \treturn;\r\n\t\t// }\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tthis.props.showConfirmMessage(\r\n\t\t\t\"question\",\r\n\t\t\t\"Long Process Warning\",\r\n\t\t\t\"This process may take a while. Continue ?\",\r\n\t\t\t() => {\r\n\t\t\t\tthis.hideAlert();\r\n\t\t\t\tconst { model } = this.state;\r\n\t\t\t\tmodel.IsClientBalanceScreen = true;\r\n\r\n\t\t\t\t// Add jsonFile\r\n\t\t\t\tvar jsonColList = [];\r\n\r\n\t\t\t\tvar trxColumns = {};\r\n\t\t\t\tthis.state.ExportSelectedColumns.map((c) => {\r\n\t\t\t\t\ttrxColumns[c.value] = {\r\n\t\t\t\t\t\tvalue: c.value,\r\n\t\t\t\t\t\ttitle: c.title,\r\n\t\t\t\t\t\tcolumntype: c.columntype,\r\n\t\t\t\t\t\ttype: c.type,\r\n\t\t\t\t\t};\r\n\t\t\t\t});\r\n\t\t\t\tjsonColList.push(trxColumns);\r\n\r\n\t\t\t\tmodel[\"jsonFile\"] = {\r\n\t\t\t\t\tcolmns: jsonColList,\r\n\t\t\t\t\tformat: this.state.ExportReportType,\r\n\t\t\t\t\ttitle: \"Credit Card Buckets Report\",\r\n\t\t\t\t};\r\n\r\n\t\t\t\tthis.setState({ isLoading: true });\r\n\t\t\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\t\t\"/lmsapi/v1.0/FeeAndCodeBasedTransaction/DownloadCreditCardBuckets\",\r\n\t\t\t\t\tmodel,\r\n\t\t\t\t\t(responseData) => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\t\tthis.props.showMessage(\r\n\t\t\t\t\t\t\t\t\"error\",\r\n\t\t\t\t\t\t\t\t\"Error\",\r\n\t\t\t\t\t\t\t\tresponseData.ErrorDescription\r\n\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t(errorMessage) => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t\t\t},\r\n\t\t\t\t\tthis.props.showMessage\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\topenExportDialog = () => {\r\n\t\tthis.setState({\r\n\t\t\tisDownloadDialogOpen: true,\r\n\t\t});\r\n\t};\r\n\r\n\tcloseExportDialog = () => {\r\n\t\tthis.setState({\r\n\t\t\tisDownloadDialogOpen: false,\r\n\t\t});\r\n\t};\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Credit Card Buckets\");\r\n\t\tthis.props.setAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (name === \"UniqueClientId\") {\r\n\t\t\tdelete model.ClientCustomerId;\r\n\t\t\tdelete model.CustomerNumber;\r\n\t\t\tdelete model.CardId;\r\n\t\t\tdelete model.CardTokenNumber;\r\n\t\t}\r\n\t\tif (name === \"Customer\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.ClientCustomerId = newValue.Id;\r\n\t\t\t\tmodel.CustomerNumber = newValue.CustomerNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.ClientCustomerId;\r\n\t\t\t\tdelete model.CustomerNumber;\r\n\t\t\t\tdelete model.CardId;\r\n\t\t\t\tdelete model.CardTokenNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (name === \"Card\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.CardId = newValue.CardId;\r\n\t\t\t\tmodel.CardTokenNumber = newValue.CardTokenNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.CardId;\r\n\t\t\t\tdelete model.CardTokenNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\tValueChangedForExport = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t};\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tisEdit: false,\r\n\t\t\tindex: -1,\r\n\t\t});\r\n\t};\r\n\r\n\tHandleSearch = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel.ProgramCode = this.ProgramCode;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/lmsapi/v1.0/FeeAndCodeBasedTransaction/GetCreditCardBuckets\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\r\n\t\t\t\t\t\t\"error\",\r\n\t\t\t\t\t\t\"Error\",\r\n\t\t\t\t\t\tresponseData.ErrorDescription\r\n\t\t\t\t\t);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\r\n\t\tvar errorList = [];\r\n\r\n\t\tvModel.UniqueClientId = !model.UniqueClientId;\r\n\t\tif (vModel.UniqueClientId) errorList.push(\"Client cannot be empty.\");\r\n\r\n\t\tvModel.ClientCustomerId = !model.ClientCustomerId;\r\n\t\tif (vModel.ClientCustomerId) errorList.push(\"Customer cannot be empty.\");\r\n\r\n\t\tif (errorList.length > 0) {\r\n\t\t\tshowValidationErrors(errorList);\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t};\r\n\r\n\tGetModel = () => {\r\n\t\treturn this.state.model;\r\n\t};\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tFillCustomer = (customer) => {\r\n\t\tthis.HandleChange(\"Customer\", customer);\r\n\t}\r\n\r\n\t// FillCard = (card) => {\r\n\t// \tthis.HandleChange(\"Card\", card);\r\n\t// }\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, isLoading, vModel } = this.state;\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t this.ExportClick(),\r\n\t\t\t\t\t\t\tDisabled: Disabled,\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After}\r\n\t\t\t\t/>\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{/* \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t */}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tthis.setState({ ExportSelectedColumns: value })\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\t\tname=\"Columns\"\r\n\t\t\t\t\t\t\t\t\tgetOptionLabel={(d) => d.title}\r\n\t\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ isDownloadDialogOpen: false })}\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\tCancel\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCreditCardBuckets.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool,\r\n};\r\n\r\nexport default withArtifex(CreditCardBuckets, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport {\r\n\tGenericSelectInput,\r\n\tGenericDateInput,\r\n\tGenericExpansionPanel,\r\n\tGenericRadioInput,\r\n\tGenericGrid,\r\n\tGenericDialog,\r\n\tGenericAlert,\r\n\tGenericDialogActions,\r\n\tGenericLabel,\r\n\tGenericTitle,\r\n\tGenericCheckInput\r\n} from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Select from \"react-select\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent.jsx\";\r\nimport CardComponent from \"views/Components/CardComponent.jsx\";\r\n\r\nclass CreditCardFinancialInfo extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient()\r\n\t\t\t\t? ClientHelper.GetClientRowId()\r\n\t\t\t\t: undefined,\r\n\t\t\tProgramCode: \"\",\r\n\t\t\t// FromDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\t// ToDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tShowLastFinancialInfo: false\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tvModel: {},\r\n\t\t};\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient()\r\n\t\t\t\t? ClientHelper.GetClientId()\r\n\t\t\t\t: undefined,\r\n\t\t};\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"Client\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"CustomerName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Number\",\r\n\t\t\t\taccessor: \"CustomerNumber\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"End of Date\",\r\n\t\t\t\taccessor: \"EodDate\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Wallet Account\",\r\n\t\t\t\taccessor: \"AccountInfo\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Remaining Payment Amount\",\r\n\t\t\t\taccessor: \"RemPaymentAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sale Amount\",\r\n\t\t\t\taccessor: \"SaleAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Cash Amount\",\r\n\t\t\t\taccessor: \"CashAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Fee Amount\",\r\n\t\t\t\taccessor: \"FeeAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Penalty Amount\",\r\n\t\t\t\taccessor: \"PenaltyAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Interest Amount\",\r\n\t\t\t\taccessor: \"InterestAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Count\",\r\n\t\t\t\taccessor: \"TransactionCount\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Debt\",\r\n\t\t\t\taccessor: \"TotalDebt\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t];\r\n\r\n\t\tthis.trxTable = React.createRef();\r\n\t}\r\n\r\n\tshowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t\t),\r\n\t\t});\r\n\t};\r\n\tsetValueToState = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t};\r\n\tshowLoading() {\r\n\t\tthis.setState({ isLoading: true });\r\n\t}\r\n\r\n\thideLoading() {\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach((c) => {\r\n\t\t\tif (\r\n\t\t\t\tc.accessor != \"Actions\" &&\r\n\t\t\t\tc.accessor != \"ED\" &&\r\n\t\t\t\t(c.show == undefined || c.show)\r\n\t\t\t) {\r\n\t\t\t\ttrxColumns.push({\r\n\t\t\t\t\tvalue: c.accessor,\r\n\t\t\t\t\ttitle: c.Header,\r\n\t\t\t\t\tcolumntype: c.ColumnType,\r\n\t\t\t\t\ttype: c.type,\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({\r\n\t\t\tisDownloadDialogOpen: true,\r\n\t\t\tGridKeyValueList: trxColumns,\r\n\t\t\tExportSelectedColumns: trxColumns,\r\n\t\t});\r\n\t};\r\n\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t});\r\n\t};\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.props.showMessage(\r\n\t\t\t\t\"warning\",\r\n\t\t\t\t\"Export Report Type not selected\",\r\n\t\t\t\t\"Select Export Report Type to continue\"\r\n\t\t\t);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// if (\r\n\t\t// \tthis.state.ExportReportType == \"PDF\" &&\r\n\t\t// \tthis.state.ExportSelectedColumns.length > 15\r\n\t\t// ) {\r\n\t\t// \tthis.props.showMessage(\r\n\t\t// \t\t\"warning\",\r\n\t\t// \t\t\"PDF document cannot exceed 15 columns\",\r\n\t\t// \t\t\"PDF document cannot exceed 15 columns\"\r\n\t\t// \t);\r\n\t\t// \treturn;\r\n\t\t// }\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tthis.props.showConfirmMessage(\r\n\t\t\t\"question\",\r\n\t\t\t\"Long Process Warning\",\r\n\t\t\t\"This process may take a while. Continue ?\",\r\n\t\t\t() => {\r\n\t\t\t\tthis.hideAlert();\r\n\t\t\t\tconst { model } = this.state;\r\n\t\t\t\tmodel.IsClientBalanceScreen = true;\r\n\r\n\t\t\t\t// Add jsonFile\r\n\t\t\t\tvar jsonColList = [];\r\n\r\n\t\t\t\tvar trxColumns = {};\r\n\t\t\t\tthis.state.ExportSelectedColumns.map((c) => {\r\n\t\t\t\t\ttrxColumns[c.value] = {\r\n\t\t\t\t\t\tvalue: c.value,\r\n\t\t\t\t\t\ttitle: c.title,\r\n\t\t\t\t\t\tcolumntype: c.columntype,\r\n\t\t\t\t\t\ttype: c.type,\r\n\t\t\t\t\t};\r\n\t\t\t\t});\r\n\t\t\t\tjsonColList.push(trxColumns);\r\n\r\n\t\t\t\tmodel[\"jsonFile\"] = {\r\n\t\t\t\t\tcolmns: jsonColList,\r\n\t\t\t\t\tformat: this.state.ExportReportType,\r\n\t\t\t\t\ttitle: \"Credit Card Financial Info Report\",\r\n\t\t\t\t};\r\n\r\n\t\t\t\tthis.setState({ isLoading: true });\r\n\t\t\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\t\t\"/lmsapi/v1.0/FeeAndCodeBasedTransaction/DownloadCreditCardFinancialInfo\",\r\n\t\t\t\t\tmodel,\r\n\t\t\t\t\t(responseData) => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\t\tthis.props.showMessage(\r\n\t\t\t\t\t\t\t\t\"error\",\r\n\t\t\t\t\t\t\t\t\"Error\",\r\n\t\t\t\t\t\t\t\tresponseData.ErrorDescription\r\n\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t(errorMessage) => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t\t\t},\r\n\t\t\t\t\tthis.props.showMessage\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\topenExportDialog = () => {\r\n\t\tthis.setState({\r\n\t\t\tisDownloadDialogOpen: true,\r\n\t\t});\r\n\t};\r\n\r\n\tcloseExportDialog = () => {\r\n\t\tthis.setState({\r\n\t\t\tisDownloadDialogOpen: false,\r\n\t\t});\r\n\t};\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Credit Card Financial Info\");\r\n\t\tthis.props.setAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (name === \"UniqueClientId\") {\r\n\t\t\tdelete model.ClientCustomerId;\r\n\t\t\tdelete model.CustomerNumber;\r\n\t\t\tdelete model.CardId;\r\n\t\t\tdelete model.CardTokenNumber;\r\n\t\t}\r\n\t\tif (name === \"Customer\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.ClientCustomerId = newValue.Id;\r\n\t\t\t\tmodel.CustomerNumber = newValue.CustomerNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.ClientCustomerId;\r\n\t\t\t\tdelete model.CustomerNumber;\r\n\t\t\t\tdelete model.CardId;\r\n\t\t\t\tdelete model.CardTokenNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (name === \"Card\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.CardId = newValue.CardId;\r\n\t\t\t\tmodel.CardTokenNumber = newValue.CardTokenNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.CardId;\r\n\t\t\t\tdelete model.CardTokenNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\tValueChangedForExport = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t};\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tisEdit: false,\r\n\t\t\tindex: -1,\r\n\t\t});\r\n\t};\r\n\r\n\tHandleSearch = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel.ProgramCode = this.ProgramCode;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/lmsapi/v1.0/FeeAndCodeBasedTransaction/GetCreditCardFinancialInfo\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\r\n\t\t\t\t\t\t\"error\",\r\n\t\t\t\t\t\t\"Error\",\r\n\t\t\t\t\t\tresponseData.ErrorDescription\r\n\t\t\t\t\t);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\r\n\t\tvar errorList = [];\r\n\r\n\t\tvModel.UniqueClientId = !model.UniqueClientId;\r\n\t\tif (vModel.UniqueClientId) errorList.push(\"Client cannot be empty.\");\r\n\r\n\t\tvModel.ClientCustomerId = !model.ClientCustomerId && !model.ShowLastFinancialInfo;\r\n\t\tif (vModel.ClientCustomerId) errorList.push(\"Customer cannot be empty.\");\r\n\r\n\t\tif (errorList.length > 0) {\r\n\t\t\tshowValidationErrors(errorList);\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t};\r\n\r\n\tGetModel = () => {\r\n\t\treturn this.state.model;\r\n\t};\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tFillCustomer = (customer) => {\r\n\t\tthis.HandleChange(\"Customer\", customer);\r\n\t}\r\n\r\n\t// FillCard = (card) => {\r\n\t// \tthis.HandleChange(\"Card\", card);\r\n\t// }\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, isLoading, vModel } = this.state;\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t this.ExportClick(),\r\n\t\t\t\t\t\t\tDisabled: Disabled,\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After}\r\n\t\t\t\t/>\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{/* \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t */}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tthis.setState({ ExportSelectedColumns: value })\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\t\tname=\"Columns\"\r\n\t\t\t\t\t\t\t\t\tgetOptionLabel={(d) => d.title}\r\n\t\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ isDownloadDialogOpen: false })}\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\tCancel\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCreditCardFinancialInfo.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool,\r\n};\r\n\r\nexport default withArtifex(CreditCardFinancialInfo, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport {\r\n\tGenericSelectInput,\r\n\tGenericDateInput,\r\n\tGenericExpansionPanel,\r\n\tGenericRadioInput,\r\n\tGenericGrid,\r\n\tGenericDialog,\r\n\tGenericAlert,\r\n\tGenericDialogActions,\r\n\tGenericLabel,\r\n\tGenericTitle,\r\n} from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Select from \"react-select\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent.jsx\";\r\nimport CardComponent from \"views/Components/CardComponent.jsx\";\r\n\r\nclass CreditCardInterests extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient()\r\n\t\t\t\t? ClientHelper.GetClientRowId()\r\n\t\t\t\t: undefined,\r\n\t\t\tProgramCode: \"\",\r\n\t\t\t// FromDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\t// ToDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tvModel: {},\r\n\t\t};\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient()\r\n\t\t\t\t? ClientHelper.GetClientId()\r\n\t\t\t\t: undefined,\r\n\t\t};\r\n\r\n\t\tthis.parameterLMSPaymentStatus = { ParameterCode: \"LMSPaymentStatus\" };\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Interest Type\",\r\n\t\t\t\taccessor: \"InterestType\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"Client\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"CustomerName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Number\",\r\n\t\t\t\taccessor: \"CustomerNumber\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Settlement Date\",\r\n\t\t\t\taccessor: \"SettlementDate\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Statement Begin Date\",\r\n\t\t\t\taccessor: \"StatementBeginDate\",\r\n\t\t\t\ttype: GridColumnType.Date,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Statement End Date\",\r\n\t\t\t\taccessor: \"StatementEndDate\",\r\n\t\t\t\ttype: GridColumnType.Date,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Interest Amount\",\r\n\t\t\t\taccessor: \"TotalInterestAmount\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
{row.value ? `$${row.value}` : \"\"}
\r\n\t\t\t\t\t
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Remaining Interest Amount\",\r\n\t\t\t\taccessor: \"RemInterestAmount\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
{row.value ? `$${row.value}` : \"\"}
\r\n\t\t\t\t\t
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Payment Status\",\r\n\t\t\t\taccessor: \"PaymentStatus.ParameterDesc\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Capital Type\",\r\n\t\t\t\taccessor: \"CapitalType.ParameterDesc\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Interest Capital Amount\",\r\n\t\t\t\taccessor: \"InterestCapitalAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Interest Rate\",\r\n\t\t\t\taccessor: \"InterestRate\",\r\n\t\t\t\ttype: GridColumnType.Percent,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Scheduled Process Date\",\r\n\t\t\t\taccessor: \"ScheduledProcessDate\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Active\",\r\n\t\t\t\taccessor: \"IsActive\",\r\n\t\t\t\ttype: GridColumnType.YesNo,\r\n\t\t\t\tColumnType: GridColumnType.YesNo\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Processed\",\r\n\t\t\t\taccessor: \"IsProcessed\",\r\n\t\t\t\ttype: GridColumnType.YesNo,\r\n\t\t\t\tColumnType: GridColumnType.YesNo\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Process Date\",\r\n\t\t\t\taccessor: \"ProcessDate\",\r\n\t\t\t\ttype: GridColumnType.Date,\r\n\t\t\t},\r\n\t\t];\r\n\r\n\t\tthis.trxTable = React.createRef();\r\n\t}\r\n\r\n\tshowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t\t),\r\n\t\t});\r\n\t};\r\n\tsetValueToState = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t};\r\n\tshowLoading() {\r\n\t\tthis.setState({ isLoading: true });\r\n\t}\r\n\r\n\thideLoading() {\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach((c) => {\r\n\t\t\tif (\r\n\t\t\t\tc.accessor != \"Actions\" &&\r\n\t\t\t\tc.accessor != \"ED\" &&\r\n\t\t\t\t(c.show == undefined || c.show)\r\n\t\t\t) {\r\n\t\t\t\ttrxColumns.push({\r\n\t\t\t\t\tvalue: c.accessor,\r\n\t\t\t\t\ttitle: c.Header,\r\n\t\t\t\t\tcolumntype: c.ColumnType,\r\n\t\t\t\t\ttype: c.type,\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({\r\n\t\t\tisDownloadDialogOpen: true,\r\n\t\t\tGridKeyValueList: trxColumns,\r\n\t\t\tExportSelectedColumns: trxColumns,\r\n\t\t});\r\n\t};\r\n\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t});\r\n\t};\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.props.showMessage(\r\n\t\t\t\t\"warning\",\r\n\t\t\t\t\"Export Report Type not selected\",\r\n\t\t\t\t\"Select Export Report Type to continue\"\r\n\t\t\t);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// if (\r\n\t\t// \tthis.state.ExportReportType == \"PDF\" &&\r\n\t\t// \tthis.state.ExportSelectedColumns.length > 15\r\n\t\t// ) {\r\n\t\t// \tthis.props.showMessage(\r\n\t\t// \t\t\"warning\",\r\n\t\t// \t\t\"PDF document cannot exceed 15 columns\",\r\n\t\t// \t\t\"PDF document cannot exceed 15 columns\"\r\n\t\t// \t);\r\n\t\t// \treturn;\r\n\t\t// }\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tthis.props.showConfirmMessage(\r\n\t\t\t\"question\",\r\n\t\t\t\"Long Process Warning\",\r\n\t\t\t\"This process may take a while. Continue ?\",\r\n\t\t\t() => {\r\n\t\t\t\tthis.hideAlert();\r\n\t\t\t\tconst { model } = this.state;\r\n\t\t\t\tmodel.IsClientBalanceScreen = true;\r\n\r\n\t\t\t\t// Add jsonFile\r\n\t\t\t\tvar jsonColList = [];\r\n\r\n\t\t\t\tvar trxColumns = {};\r\n\t\t\t\tthis.state.ExportSelectedColumns.map((c) => {\r\n\t\t\t\t\ttrxColumns[c.value] = {\r\n\t\t\t\t\t\tvalue: c.value,\r\n\t\t\t\t\t\ttitle: c.title,\r\n\t\t\t\t\t\tcolumntype: c.columntype,\r\n\t\t\t\t\t\ttype: c.type,\r\n\t\t\t\t\t};\r\n\t\t\t\t});\r\n\t\t\t\tjsonColList.push(trxColumns);\r\n\r\n\t\t\t\tmodel[\"jsonFile\"] = {\r\n\t\t\t\t\tcolmns: jsonColList,\r\n\t\t\t\t\tformat: this.state.ExportReportType,\r\n\t\t\t\t\ttitle: \"Credit Card Interests Report\",\r\n\t\t\t\t};\r\n\r\n\t\t\t\tthis.setState({ isLoading: true });\r\n\t\t\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\t\t\"/lmsapi/v1.0/FeeAndCodeBasedTransaction/DownloadCreditCardInterests\",\r\n\t\t\t\t\tmodel,\r\n\t\t\t\t\t(responseData) => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\t\tthis.props.showMessage(\r\n\t\t\t\t\t\t\t\t\"error\",\r\n\t\t\t\t\t\t\t\t\"Error\",\r\n\t\t\t\t\t\t\t\tresponseData.ErrorDescription\r\n\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t(errorMessage) => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t\t\t},\r\n\t\t\t\t\tthis.props.showMessage\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\topenExportDialog = () => {\r\n\t\tthis.setState({\r\n\t\t\tisDownloadDialogOpen: true,\r\n\t\t});\r\n\t};\r\n\r\n\tcloseExportDialog = () => {\r\n\t\tthis.setState({\r\n\t\t\tisDownloadDialogOpen: false,\r\n\t\t});\r\n\t};\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Credit Card Interest\");\r\n\t\tthis.props.setAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (name === \"UniqueClientId\") {\r\n\t\t\tdelete model.ClientCustomerId;\r\n\t\t\tdelete model.CustomerNumber;\r\n\t\t\tdelete model.CardId;\r\n\t\t\tdelete model.CardTokenNumber;\r\n\t\t}\r\n\t\tif (name === \"Customer\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.ClientCustomerId = newValue.Id;\r\n\t\t\t\tmodel.CustomerNumber = newValue.CustomerNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.ClientCustomerId;\r\n\t\t\t\tdelete model.CustomerNumber;\r\n\t\t\t\tdelete model.CardId;\r\n\t\t\t\tdelete model.CardTokenNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (name === \"Card\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.CardId = newValue.CardId;\r\n\t\t\t\tmodel.CardTokenNumber = newValue.CardTokenNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.CardId;\r\n\t\t\t\tdelete model.CardTokenNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\tValueChangedForExport = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t};\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tisEdit: false,\r\n\t\t\tindex: -1,\r\n\t\t});\r\n\t};\r\n\r\n\tHandleSearch = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel.ProgramCode = this.ProgramCode;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/lmsapi/v1.0/FeeAndCodeBasedTransaction/GetCreditCardInterests\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\r\n\t\t\t\t\t\t\"error\",\r\n\t\t\t\t\t\t\"Error\",\r\n\t\t\t\t\t\tresponseData.ErrorDescription\r\n\t\t\t\t\t);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\r\n\t\tvar errorList = [];\r\n\r\n\t\tvModel.UniqueClientId = !model.UniqueClientId;\r\n\t\tif (vModel.UniqueClientId) errorList.push(\"Client cannot be empty.\");\r\n\r\n\t\tvModel.ClientCustomerId = !model.ClientCustomerId;\r\n\t\tif (vModel.ClientCustomerId) errorList.push(\"Customer cannot be empty.\");\r\n\r\n\t\t// vModel.FromDate = !model.FromDate;\r\n\t\t// if (vModel.FromDate) errorList.push(\"From Date cannot be empty!\");\r\n\r\n\t\t// vModel.ToDate = !model.ToDate;\r\n\t\t// if (vModel.ToDate) errorList.push(\"To Date cannot be empty!\");\r\n\r\n\t\tif (errorList.length > 0) {\r\n\t\t\tshowValidationErrors(errorList);\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t};\r\n\r\n\tGetModel = () => {\r\n\t\treturn this.state.model;\r\n\t};\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tFillCustomer = (customer) => {\r\n\t\tthis.HandleChange(\"Customer\", customer);\r\n\t}\r\n\r\n\t// FillCard = (card) => {\r\n\t// \tthis.HandleChange(\"Card\", card);\r\n\t// }\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, isLoading, vModel } = this.state;\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t this.ExportClick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\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\t\tname=\"Columns\"\r\n\t\t\t\t\t\t\t\t\tgetOptionLabel={(d) => d.title}\r\n\t\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ isDownloadDialogOpen: false })}\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\tCancel\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCreditCardInterests.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool,\r\n};\r\n\r\nexport default withArtifex(CreditCardInterests, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport {\r\n\tGenericSelectInput,\r\n\tGenericDateInput,\r\n\tGenericExpansionPanel,\r\n\tGenericRadioInput,\r\n\tGenericGrid,\r\n\tGenericDialog,\r\n\tGenericAlert,\r\n\tGenericDialogActions,\r\n\tGenericLabel,\r\n\tGenericTitle,\r\n\tGenericCheckInput\r\n} from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Select from \"react-select\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent.jsx\";\r\nimport CardComponent from \"views/Components/CardComponent.jsx\";\r\n\r\nclass CreditCardPayments extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient()\r\n\t\t\t\t? ClientHelper.GetClientRowId()\r\n\t\t\t\t: undefined,\r\n\t\t\tProgramCode: \"\",\r\n\t\t\t// FromDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\t// ToDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tShowRemPayment: false\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tvModel: {},\r\n\t\t};\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient()\r\n\t\t\t\t? ClientHelper.GetClientId()\r\n\t\t\t\t: undefined,\r\n\t\t};\r\n\r\n\t\tthis.parameterProduct = {};\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"Client\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"CustomerName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Number\",\r\n\t\t\t\taccessor: \"CustomerNumber\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Settlement Date\",\r\n\t\t\t\taccessor: \"SettlementDate\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"End of Date\",\r\n\t\t\t\taccessor: \"EodDate\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Payment Amount\",\r\n\t\t\t\taccessor: \"TotalPaymentAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Remaining Payment Amount\",\r\n\t\t\t\taccessor: \"RemPaymentAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t];\r\n\r\n\t\tthis.trxTable = React.createRef();\r\n\t}\r\n\r\n\tshowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t\t),\r\n\t\t});\r\n\t};\r\n\tsetValueToState = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t};\r\n\tshowLoading() {\r\n\t\tthis.setState({ isLoading: true });\r\n\t}\r\n\r\n\thideLoading() {\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach((c) => {\r\n\t\t\tif (\r\n\t\t\t\tc.accessor != \"Actions\" &&\r\n\t\t\t\tc.accessor != \"ED\" &&\r\n\t\t\t\t(c.show == undefined || c.show)\r\n\t\t\t) {\r\n\t\t\t\ttrxColumns.push({\r\n\t\t\t\t\tvalue: c.accessor,\r\n\t\t\t\t\ttitle: c.Header,\r\n\t\t\t\t\tcolumntype: c.ColumnType,\r\n\t\t\t\t\ttype: c.type,\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({\r\n\t\t\tisDownloadDialogOpen: true,\r\n\t\t\tGridKeyValueList: trxColumns,\r\n\t\t\tExportSelectedColumns: trxColumns,\r\n\t\t});\r\n\t};\r\n\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t});\r\n\t};\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.props.showMessage(\r\n\t\t\t\t\"warning\",\r\n\t\t\t\t\"Export Report Type not selected\",\r\n\t\t\t\t\"Select Export Report Type to continue\"\r\n\t\t\t);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// if (\r\n\t\t// \tthis.state.ExportReportType == \"PDF\" &&\r\n\t\t// \tthis.state.ExportSelectedColumns.length > 15\r\n\t\t// ) {\r\n\t\t// \tthis.props.showMessage(\r\n\t\t// \t\t\"warning\",\r\n\t\t// \t\t\"PDF document cannot exceed 15 columns\",\r\n\t\t// \t\t\"PDF document cannot exceed 15 columns\"\r\n\t\t// \t);\r\n\t\t// \treturn;\r\n\t\t// }\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tthis.props.showConfirmMessage(\r\n\t\t\t\"question\",\r\n\t\t\t\"Long Process Warning\",\r\n\t\t\t\"This process may take a while. Continue ?\",\r\n\t\t\t() => {\r\n\t\t\t\tthis.hideAlert();\r\n\t\t\t\tconst { model } = this.state;\r\n\t\t\t\tmodel.IsClientBalanceScreen = true;\r\n\r\n\t\t\t\t// Add jsonFile\r\n\t\t\t\tvar jsonColList = [];\r\n\r\n\t\t\t\tvar trxColumns = {};\r\n\t\t\t\tthis.state.ExportSelectedColumns.map((c) => {\r\n\t\t\t\t\ttrxColumns[c.value] = {\r\n\t\t\t\t\t\tvalue: c.value,\r\n\t\t\t\t\t\ttitle: c.title,\r\n\t\t\t\t\t\tcolumntype: c.columntype,\r\n\t\t\t\t\t\ttype: c.type,\r\n\t\t\t\t\t};\r\n\t\t\t\t});\r\n\t\t\t\tjsonColList.push(trxColumns);\r\n\r\n\t\t\t\tmodel[\"jsonFile\"] = {\r\n\t\t\t\t\tcolmns: jsonColList,\r\n\t\t\t\t\tformat: this.state.ExportReportType,\r\n\t\t\t\t\ttitle: \"Credit Card Payments Report\",\r\n\t\t\t\t};\r\n\r\n\t\t\t\tthis.setState({ isLoading: true });\r\n\t\t\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\t\t\"/lmsapi/v1.0/FeeAndCodeBasedTransaction/DownloadCreditCardPayments\",\r\n\t\t\t\t\tmodel,\r\n\t\t\t\t\t(responseData) => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\t\tthis.props.showMessage(\r\n\t\t\t\t\t\t\t\t\"error\",\r\n\t\t\t\t\t\t\t\t\"Error\",\r\n\t\t\t\t\t\t\t\tresponseData.ErrorDescription\r\n\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t(errorMessage) => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t\t\t},\r\n\t\t\t\t\tthis.props.showMessage\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\topenExportDialog = () => {\r\n\t\tthis.setState({\r\n\t\t\tisDownloadDialogOpen: true,\r\n\t\t});\r\n\t};\r\n\r\n\tcloseExportDialog = () => {\r\n\t\tthis.setState({\r\n\t\t\tisDownloadDialogOpen: false,\r\n\t\t});\r\n\t};\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Credit Card Payments\");\r\n\t\tthis.props.setAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (name === \"UniqueClientId\") {\r\n\t\t\tdelete model.ClientCustomerId;\r\n\t\t\tdelete model.CustomerNumber;\r\n\t\t\tdelete model.CardId;\r\n\t\t\tdelete model.CardTokenNumber;\r\n\t\t}\r\n\t\tif (name === \"Customer\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.ClientCustomerId = newValue.Id;\r\n\t\t\t\tmodel.CustomerNumber = newValue.CustomerNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.ClientCustomerId;\r\n\t\t\t\tdelete model.CustomerNumber;\r\n\t\t\t\tdelete model.CardId;\r\n\t\t\t\tdelete model.CardTokenNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (name === \"Card\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.CardId = newValue.CardId;\r\n\t\t\t\tmodel.CardTokenNumber = newValue.CardTokenNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.CardId;\r\n\t\t\t\tdelete model.CardTokenNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\tValueChangedForExport = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t};\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tisEdit: false,\r\n\t\t\tindex: -1,\r\n\t\t});\r\n\t};\r\n\r\n\tHandleSearch = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel.ProgramCode = this.ProgramCode;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/lmsapi/v1.0/FeeAndCodeBasedTransaction/GetCreditCardPayments\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\r\n\t\t\t\t\t\t\"error\",\r\n\t\t\t\t\t\t\"Error\",\r\n\t\t\t\t\t\tresponseData.ErrorDescription\r\n\t\t\t\t\t);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\r\n\t\tvar errorList = [];\r\n\r\n\t\tvModel.UniqueClientId = !model.UniqueClientId;\r\n\t\tif (vModel.UniqueClientId) errorList.push(\"Client cannot be empty.\");\r\n\r\n\t\tvModel.ClientCustomerId = !model.ClientCustomerId && !model.ShowRemPayment;\r\n\t\tif (vModel.ClientCustomerId) errorList.push(\"Customer cannot be empty.\");\r\n\r\n\t\tif (errorList.length > 0) {\r\n\t\t\tshowValidationErrors(errorList);\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t};\r\n\r\n\tGetModel = () => {\r\n\t\treturn this.state.model;\r\n\t};\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tFillCustomer = (customer) => {\r\n\t\tthis.HandleChange(\"Customer\", customer);\r\n\t}\r\n\r\n\t// FillCard = (card) => {\r\n\t// \tthis.HandleChange(\"Card\", card);\r\n\t// }\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, isLoading, vModel } = this.state;\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t this.ExportClick(),\r\n\t\t\t\t\t\t\tDisabled: Disabled,\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After}\r\n\t\t\t\t/>\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{/* \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t */}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tthis.setState({ ExportSelectedColumns: value })\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\t\tname=\"Columns\"\r\n\t\t\t\t\t\t\t\t\tgetOptionLabel={(d) => d.title}\r\n\t\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ isDownloadDialogOpen: false })}\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\tCancel\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCreditCardPayments.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool,\r\n};\r\n\r\nexport default withArtifex(CreditCardPayments, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport {\r\n\tGenericSelectInput,\r\n\tGenericDateInput,\r\n\tGenericExpansionPanel,\r\n\tGenericRadioInput,\r\n\tGenericGrid,\r\n\tGenericDialog,\r\n\tGenericAlert,\r\n\tGenericDialogActions,\r\n\tGenericLabel,\r\n\tGenericTitle,\r\n\tGenericNumberInput,\r\n\tGenericCheckInput\r\n} from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Select from \"react-select\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent.jsx\";\r\nimport CardComponent from \"views/Components/CardComponent.jsx\";\r\n\r\nclass CreditCardTransactions extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient()\r\n\t\t\t\t? ClientHelper.GetClientRowId()\r\n\t\t\t\t: undefined,\r\n\t\t\tProgramCode: \"\",\r\n\t\t\t// FromDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\t// ToDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tShowRemPayment: false,\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tvModel: {},\r\n\t\t};\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient()\r\n\t\t\t\t? ClientHelper.GetClientId()\r\n\t\t\t\t: undefined,\r\n\t\t};\r\n\r\n\t\tthis.parameterBucketType = { ParameterCode: \"BucketType\", ParameterValue6: \"1\" };\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"Client\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"CustomerName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Number\",\r\n\t\t\t\taccessor: \"CustomerNumber\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Settlement Date\",\r\n\t\t\t\taccessor: \"SettlementDate\",\r\n\t\t\t\ttype: GridColumnType.Date,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"End of Date\",\r\n\t\t\t\taccessor: \"EodDate\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Fee Record\",\r\n\t\t\t\taccessor: \"IsFeeRecord\",\r\n\t\t\t\ttype: GridColumnType.YesNo,\r\n\t\t\t\tColumnType: GridColumnType.YesNo\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Remaining Bucket Amount\",\r\n\t\t\t\taccessor: \"RemBucketAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reference Number\",\r\n\t\t\t\taccessor: \"ReferenceNumber\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Insert Date Time\",\r\n\t\t\t\taccessor: \"TransactionInsertDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Description\",\r\n\t\t\t\taccessor: \"TxnDescription\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Code Id\",\r\n\t\t\t\taccessor: \"TrxCodeId\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Code\",\r\n\t\t\t\taccessor: \"TrxCode\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Statement Begin Date\",\r\n\t\t\t\taccessor: \"StatementBeginDate\",\r\n\t\t\t\ttype: GridColumnType.Date,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Statement End Date\",\r\n\t\t\t\taccessor: \"StatementEndDate\",\r\n\t\t\t\ttype: GridColumnType.Date,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Bucket Type\",\r\n\t\t\t\taccessor: \"BucketType.ParameterDesc\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Bucket Amount\",\r\n\t\t\t\taccessor: \"BucketAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Processed\",\r\n\t\t\t\taccessor: \"IsProcessed\",\r\n\t\t\t\ttype: GridColumnType.YesNo,\r\n\t\t\t\tColumnType: GridColumnType.YesNo\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Processed Date Time\",\r\n\t\t\t\taccessor: \"ProcessedDateTime\",\r\n\t\t\t\ttype: GridColumnType.Date,\r\n\t\t\t},\r\n\t\t];\r\n\r\n\t\tthis.trxTable = React.createRef();\r\n\t}\r\n\r\n\tshowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t\t),\r\n\t\t});\r\n\t};\r\n\tsetValueToState = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t};\r\n\tshowLoading() {\r\n\t\tthis.setState({ isLoading: true });\r\n\t}\r\n\r\n\thideLoading() {\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach((c) => {\r\n\t\t\tif (\r\n\t\t\t\tc.accessor != \"Actions\" &&\r\n\t\t\t\tc.accessor != \"ED\" &&\r\n\t\t\t\t(c.show == undefined || c.show)\r\n\t\t\t) {\r\n\t\t\t\ttrxColumns.push({\r\n\t\t\t\t\tvalue: c.accessor,\r\n\t\t\t\t\ttitle: c.Header,\r\n\t\t\t\t\tcolumntype: c.ColumnType,\r\n\t\t\t\t\ttype: c.type,\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({\r\n\t\t\tisDownloadDialogOpen: true,\r\n\t\t\tGridKeyValueList: trxColumns,\r\n\t\t\tExportSelectedColumns: trxColumns,\r\n\t\t});\r\n\t};\r\n\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t});\r\n\t};\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.props.showMessage(\r\n\t\t\t\t\"warning\",\r\n\t\t\t\t\"Export Report Type not selected\",\r\n\t\t\t\t\"Select Export Report Type to continue\"\r\n\t\t\t);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// if (\r\n\t\t// \tthis.state.ExportReportType == \"PDF\" &&\r\n\t\t// \tthis.state.ExportSelectedColumns.length > 15\r\n\t\t// ) {\r\n\t\t// \tthis.props.showMessage(\r\n\t\t// \t\t\"warning\",\r\n\t\t// \t\t\"PDF document cannot exceed 15 columns\",\r\n\t\t// \t\t\"PDF document cannot exceed 15 columns\"\r\n\t\t// \t);\r\n\t\t// \treturn;\r\n\t\t// }\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tthis.props.showConfirmMessage(\r\n\t\t\t\"question\",\r\n\t\t\t\"Long Process Warning\",\r\n\t\t\t\"This process may take a while. Continue ?\",\r\n\t\t\t() => {\r\n\t\t\t\tthis.hideAlert();\r\n\t\t\t\tconst { model } = this.state;\r\n\t\t\t\tmodel.IsClientBalanceScreen = true;\r\n\r\n\t\t\t\t// Add jsonFile\r\n\t\t\t\tvar jsonColList = [];\r\n\r\n\t\t\t\tvar trxColumns = {};\r\n\t\t\t\tthis.state.ExportSelectedColumns.map((c) => {\r\n\t\t\t\t\ttrxColumns[c.value] = {\r\n\t\t\t\t\t\tvalue: c.value,\r\n\t\t\t\t\t\ttitle: c.title,\r\n\t\t\t\t\t\tcolumntype: c.columntype,\r\n\t\t\t\t\t\ttype: c.type,\r\n\t\t\t\t\t};\r\n\t\t\t\t});\r\n\t\t\t\tjsonColList.push(trxColumns);\r\n\r\n\t\t\t\tmodel[\"jsonFile\"] = {\r\n\t\t\t\t\tcolmns: jsonColList,\r\n\t\t\t\t\tformat: this.state.ExportReportType,\r\n\t\t\t\t\ttitle: \"Credit Card Transactions Report\",\r\n\t\t\t\t};\r\n\r\n\t\t\t\tthis.setState({ isLoading: true });\r\n\t\t\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\t\t\"/lmsapi/v1.0/FeeAndCodeBasedTransaction/DownloadCreditCardTransactions\",\r\n\t\t\t\t\tmodel,\r\n\t\t\t\t\t(responseData) => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\t\tthis.props.showMessage(\r\n\t\t\t\t\t\t\t\t\"error\",\r\n\t\t\t\t\t\t\t\t\"Error\",\r\n\t\t\t\t\t\t\t\tresponseData.ErrorDescription\r\n\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t(errorMessage) => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t\t\t},\r\n\t\t\t\t\tthis.props.showMessage\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\topenExportDialog = () => {\r\n\t\tthis.setState({\r\n\t\t\tisDownloadDialogOpen: true,\r\n\t\t});\r\n\t};\r\n\r\n\tcloseExportDialog = () => {\r\n\t\tthis.setState({\r\n\t\t\tisDownloadDialogOpen: false,\r\n\t\t});\r\n\t};\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Credit Card Transactions\");\r\n\t\tthis.props.setAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (name === \"UniqueClientId\") {\r\n\t\t\tdelete model.ClientCustomerId;\r\n\t\t\tdelete model.CustomerNumber;\r\n\t\t\tdelete model.CardId;\r\n\t\t\tdelete model.CardTokenNumber;\r\n\t\t}\r\n\t\tif (name === \"Customer\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.ClientCustomerId = newValue.Id;\r\n\t\t\t\tmodel.CustomerNumber = newValue.CustomerNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.ClientCustomerId;\r\n\t\t\t\tdelete model.CustomerNumber;\r\n\t\t\t\tdelete model.CardId;\r\n\t\t\t\tdelete model.CardTokenNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (name === \"Card\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.CardId = newValue.CardId;\r\n\t\t\t\tmodel.CardTokenNumber = newValue.CardTokenNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.CardId;\r\n\t\t\t\tdelete model.CardTokenNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\tValueChangedForExport = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t};\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tisEdit: false,\r\n\t\t\tindex: -1,\r\n\t\t});\r\n\t};\r\n\r\n\tHandleSearch = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel.ProgramCode = this.ProgramCode;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/lmsapi/v1.0/FeeAndCodeBasedTransaction/GetCreditCardTransactions\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\r\n\t\t\t\t\t\t\"error\",\r\n\t\t\t\t\t\t\"Error\",\r\n\t\t\t\t\t\tresponseData.ErrorDescription\r\n\t\t\t\t\t);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\r\n\t\tvar errorList = [];\r\n\r\n\t\tvModel.hasReferenceNumber = model.ReferenceNumber != undefined && model.ReferenceNumber != null && model.ReferenceNumber > 0;\r\n\t\t\r\n\t\tif (!vModel.hasReferenceNumber) {\r\n\t\t\tvModel.UniqueClientId = !model.UniqueClientId;\r\n\t\t\tif (vModel.UniqueClientId) errorList.push(\"Client cannot be empty.\");\r\n\r\n\t\t\tvModel.ClientCustomerId = !model.ClientCustomerId && !model.ShowRemPayment;\r\n\t\t\tif (vModel.ClientCustomerId) errorList.push(\"Customer cannot be empty.\");\r\n\t\t}\r\n\r\n\t\tif (errorList.length > 0) {\r\n\t\t\tshowValidationErrors(errorList);\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t};\r\n\r\n\tGetModel = () => {\r\n\t\treturn this.state.model;\r\n\t};\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tFillCustomer = (customer) => {\r\n\t\tthis.HandleChange(\"Customer\", customer);\r\n\t}\r\n\r\n\t// FillCard = (card) => {\r\n\t// \tthis.HandleChange(\"Card\", card);\r\n\t// }\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, isLoading, vModel } = this.state;\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t this.ExportClick(),\r\n\t\t\t\t\t\t\tDisabled: Disabled,\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After}\r\n\t\t\t\t/>\r\n\t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t\t}\r\n\t\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\t\tname=\"Columns\"\r\n\t\t\t\t\t\t\t\t\tgetOptionLabel={(d) => d.title}\r\n\t\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ isDownloadDialogOpen: false })}\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\tCancel\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCreditCardTransactions.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool,\r\n};\r\n\r\nexport default withArtifex(CreditCardTransactions, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericCheckInput, GenericDateInput, GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent\";\r\n\r\n\r\nclass CustomerCreditClimit extends Component {\r\n\tShowMessage(arg0, arg1, ErrorDescription) {\r\n\t\tthrow new Error(\"Method not implemented.\");\r\n\t}\r\n\tconstructor(props){\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tCardId: 0,\r\n\t\t\tCustomer: null,\r\n\t\t\tCustomerId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t\tCurrencyId: 0,\r\n\t\t\tIsActive: true\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\r\n\t\tthis.emptyObject = {};\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : undefined\r\n\t\t};\r\n\t\tthis.renderItemStatus = {};\r\n\t\tthis.parameterProduct = {};\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Status\",\r\n\t\t\t\taccessor: \"Status\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Customer Number\",\r\n\t\t\t\taccessor: \"ClientCustomerNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Currency\",\r\n\t\t\t\taccessor: \"Currency\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Pre Auth Limit\",\r\n\t\t\t\taccessor: \"DailyPreAuthLimit\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Pre Auth Limit Usage\",\r\n\t\t\t\taccessor: \"DailyPreAuthLimitUsage\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Pre Auth Warning Limit\",\r\n\t\t\t\taccessor: \"DailyPreAuthWarningLimit\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Pre Auth Limit Usage Date\",\r\n\t\t\t\taccessor: \"DailyPreAuthLimitUsageDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tColumnType: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Pre Auth Warning Limit Sent\",\r\n\t\t\t\taccessor: \"IsDailyPreAuthLimitWarningSent\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Pre Auth Warning Limit Sent Date\",\r\n\t\t\t\taccessor: \"DailyPreAuthLimitWarningSentDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tColumnType: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Completed Limit\",\r\n\t\t\t\taccessor: \"DailySettledAuthLimit\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Completed Limit Usage\",\r\n\t\t\t\taccessor: \"DailySettledAuthLimitUsage\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Completed Warning Limit\",\r\n\t\t\t\taccessor: \"DailySettledAuthWarningLimit\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Completed Limit Usage Date\",\r\n\t\t\t\taccessor: \"DailySettledAuthLimitUsageDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tColumnType: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Completed Warning Limit Sent\",\r\n\t\t\t\taccessor: \"IsDailySettledAuthLimitWarningSent\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Completed Warning Limit Sent Date\",\r\n\t\t\t\taccessor: \"DailySettledAuthLimitWarningSentDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tColumnType: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Completed Over Pre Auth Warning Limit Sent\",\r\n\t\t\t\taccessor: \"IsDailySettledOverPreAuthLimitWarningSent\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Completed Over Pre Auth Warning Limit Sent Date\",\r\n\t\t\t\taccessor: \"DailySettledOverPreAuthLimitWarningSentDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tColumnType: GridColumnType.DateTime\r\n\t\t\t}\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Customer Credit Limit\");\r\n\t\tthis.props.setAppCenterTitle(\"CARD MANAGEMENT SYSTEM\");\r\n\t}\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t};\r\n\r\n\tFillCustomer = (customer) => {\r\n\t\tthis.handleChangeForCustomer(\"Customer\", customer);\r\n\t};\r\n\r\n\thandleChangeForCustomer = (name, newValue) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tconst initialModel = { ...this.initialModel };\r\n\t\tif (name === \"Customer\") {\r\n\t\t if (newValue != null) {\r\n\t\t\t model.Customer = newValue;\r\n\t\t\t if (newValue.Accounts != null && newValue.Accounts.length > 0) {\r\n\t\t\t\tmodel.CustomerNumber = newValue.Accounts[0].CustomerNumber;\r\n\t\t\t\tmodel.CustomerId = newValue.Accounts[0].Id;\r\n\t\t\t } else {\r\n\t\t\t\tmodel.CustomerNumber = null;\r\n\t\t\t\tmodel.CustomerId = newValue.Id;\r\n\t\t\t }\r\n\t\t } else {\r\n\t\t\t model.Customer = initialModel.Customer;\r\n\t\t }\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\tHandleChange = (name, value, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\tHandleSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Prepaid/SearchCustomerLimitNotificationAlert\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ list: [] });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t});\r\n\t}\r\n\r\n\tHandleSubmit = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Prepaid/InsertOrUpdateCustomerLimitNotificationAlert\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ model: { ...this.initialModel }, index: -1 });\r\n\t\t\t\t\tthis.props.showMessage(\"success\", \"Succeeded\", \"Operation is successfully!\");\r\n\t\t\t\t\tthis.HandleSearch();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ list: [] });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t});\r\n\t}\r\n\r\n\tHandleDelete = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Prepaid/DeleteCustomerLimitNotificationAlert\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ model: { ...this.initialModel }, index: -1 });\r\n\t\t\t\t\tthis.props.showMessage(\"success\", \"Succeeded\", \"Operation is successfully!\");\r\n\t\t\t\t\tthis.HandleSearch();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ list: [] });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t});\r\n\t}\r\n\r\n\tHandleUpdate = () => {\r\n\t\tif (!this.UpdateValidate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Prepaid/InsertOrUpdateCustomerLimitNotificationAlert\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ model: { ...this.initialModel }, index: -1 });\r\n\t\t\t\t\tthis.props.showMessage(\"success\", \"Succeeded\", \"Operation is successfully!\");\r\n\t\t\t\t\tthis.HandleSearch();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ list: [] });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t});\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tvar messages = [];\r\n\r\n\t\tif (model.UniqueClientId == undefined || model.UniqueClientId == null || model.UniqueClientId == 0) messages.push(\"Client must be select\");\r\n\r\n\t\tif (model.CustomerId == 0) messages.push(\"Customer must be select\");\r\n\r\n\t\tif (model.CurrencyId == 0) messages.push(\"Currency must be select\");\r\n\r\n\t\tif (model.DailyPreAuthLimit == undefined || model.DailyPreAuthLimit == null || model.DailyPreAuthLimit == 0) messages.push(\"Pre Auth Limit cannot be empty\");\r\n\r\n\t\tif (model.DailyPreAuthWarningLimit == undefined || model.DailyPreAuthWarningLimit == null || model.DailyPreAuthWarningLimit == 0) messages.push(\"Pre Auth Warning Limit cannot be empty\");\r\n\r\n\t\tif (model.DailySettledAuthLimit == undefined || model.DailySettledAuthLimit == null || model.DailySettledAuthLimit == 0) messages.push(\"Completed Limit cannot be empty\");\r\n\r\n\t\tif (model.DailySettledAuthWarningLimit == undefined || model.DailySettledAuthWarningLimit == null || model.DailySettledAuthWarningLimit == 0) messages.push(\"Completed Warning Limit cannot be empty\");\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.props.showMessageNode(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.setState({ model });\r\n\t\treturn true;\r\n\t}\r\n\r\n\tUpdateValidate = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tvar messages = [];\r\n\r\n\t\tif (model.Id == undefined || model.Id == null || model.Id == 0) messages.push(\"Customer Credit Limit must be select\");\r\n\r\n\t\tif (model.UniqueClientId == undefined || model.UniqueClientId == null || model.UniqueClientId == 0) messages.push(\"Client must be select\");\r\n\r\n\t\tif (model.CustomerId == 0) messages.push(\"Customer must be select\");\r\n\r\n\t\tif (model.CurrencyId == 0) messages.push(\"Currency must be select\");\r\n\r\n\t\tif (model.DailyPreAuthLimit == undefined || model.DailyPreAuthLimit == null || model.DailyPreAuthLimit == 0) messages.push(\"Pre Auth Limit cannot be empty\");\r\n\r\n\t\tif (model.DailyPreAuthWarningLimit == undefined || model.DailyPreAuthWarningLimit == null || model.DailyPreAuthWarningLimit == 0) messages.push(\"Pre Auth Warning Limit cannot be empty\");\r\n\r\n\t\tif (model.DailySettledAuthLimit == undefined || model.DailySettledAuthLimit == null || model.DailySettledAuthLimit == 0) messages.push(\"Completed Limit cannot be empty\");\r\n\r\n\t\tif (model.DailySettledAuthWarningLimit == undefined || model.DailySettledAuthWarningLimit == null || model.DailySettledAuthWarningLimit == 0) messages.push(\"Completed Warning Limit cannot be empty\");\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.props.showMessageNode(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.setState({ model });\r\n\t\treturn true;\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tvar tempModel = { ...this.state.list[index] };\r\n\t\tthis.setState({ isEdit: true, model: tempModel, index });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, isEdit: false, index: -1 });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, isLoading, index } = this.state;\r\n\t\t\r\n\t\treturn (\r\n\t\t
\r\n\t\t\t\r\n\r\n\t\t\t{alert}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t
);\r\n\t}\r\n}\r\n\r\nCustomerCreditClimit.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(CustomerCreditClimit, {});","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent.jsx\";\r\nimport { GenericCheckInput, GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\n\r\n\r\nclass IncorrectEmbossCards extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t\tIsMainCard: true,\r\n\t\t\tProgramCode: \"\",\r\n\t\t\tCardIssuingReasonTypeId: 0,\r\n\t\t\tEmbossStatusId: 0,\r\n\t\t\tProductId: 0,\r\n\t\t\tStartDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tEndDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tvModel: {},\r\n\t\t\treEmbossList: [],\r\n\t\t\treReasonEmbosList: [],\r\n\t\t\tisReEmbossDialogOpen: false,\r\n\t\t\tisReasonReEmbossDialogOpen: false\r\n\t\t}\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.maxLength26 = { maxLength: 26 };\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : undefined\r\n\t\t};\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\t\tthis.renderItemCard = {};\r\n\t\tthis.parameterProduct = {};\r\n\r\n\t\tthis.ReasonEmbossColumns =\r\n\t\t\t[\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Is Succeded\",\r\n\t\t\t\t\taccessor: \"IsSucceded\",\r\n\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t
{row.value == true ? \"Yes\" : \"No\"}
\r\n\t\t\t\t\t)\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Masked Card Number\",\r\n\t\t\t\t\taccessor: \"MaskedCardNumber\"\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Error Description\",\r\n\t\t\t\t\taccessor: \"ErrorDescription\"\r\n\t\t\t\t},\r\n\r\n\t\t\t];\r\n\r\n\t\tthis.DetailColumns =\r\n\t\t\t[\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Create Date\",\r\n\t\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\t\ttype: GridColumnType.DateTimeUtc\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Card Id\",\r\n\t\t\t\t\taccessor: \"CardId\"\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Client\",\r\n\t\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\t\taccessor: \"CustomerName\"\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Product Name\",\r\n\t\t\t\t\taccessor: \"ProductName\"\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Emboss Name\",\r\n\t\t\t\t\taccessor: \"EmbossName1\"\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Usage Limit\",\r\n\t\t\t\t\taccessor: \"CardUsageLimit\",\r\n\t\t\t\t\ttype: GridColumnType.Money\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Issuing Reason Type\",\r\n\t\t\t\t\taccessor: \"IssuingReasonType\",\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Emboss Status\",\r\n\t\t\t\t\taccessor: \"EmbossStatusName\",\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Emboss File\",\r\n\t\t\t\t\taccessor: \"FileName\",\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Emboss File Create Date\",\r\n\t\t\t\t\taccessor: \"EmbossFileCreateDate\",\r\n\t\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Plastic Type\",\r\n\t\t\t\t\taccessor: \"PlasticTypeDesc\",\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Product Brand\",\r\n\t\t\t\t\taccessor: \"ProductBrand\",\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Bin Description\",\r\n\t\t\t\t\taccessor: \"BinDesc\",\r\n\t\t\t\t}\r\n\t\t\t\t,\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Is No Name Card\",\r\n\t\t\t\t\taccessor: \"IsNoNameCard\",\r\n\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t
{row.value == true ? \"Yes\" : \"No\"}
\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t];\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t...this.ReasonEmbossColumns,\r\n\t\t\t...this.DetailColumns\r\n\t\t];\r\n\t}\r\n\r\n\r\n\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Incorrect Emboss Cards\");\r\n\t\tthis.props.setAppCenterTitle(\"CARD MANAGEMENT SYSTEM\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (name === \"Customer\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.ClientCustomerId = newValue.Id;\r\n\t\t\t\tmodel.CustomerNumber = newValue.CustomerNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.ClientCustomerId;\r\n\t\t\t\tdelete model.CustomerNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (name === \"UniqueClientId\") {\r\n\t\t\tdelete model.ClientCustomerId;\r\n\t\t\tdelete model.CustomerNumber;\r\n\t\t}\r\n\t\tif (name === \"CardId\" && data) {\r\n\t\t\tmodel.EmbossName = data.CardEmbossName;\r\n\t\t}\r\n\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, isEdit: false, index: -1, reEmbossList: [] });\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tconst model = { ...this.state.model };\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/CardRequest/IncorrectEmbossCardSearch\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item, reEmbossList: [] });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\r\n\t\tvar errorList = [];\r\n\r\n\t\tif (!model.UniqueClientId) {\r\n\t\t\terrorList.push(\"Select the Client to continue.\");\r\n\t\t\tvModel.UniqueClientId = true;\r\n\t\t}\r\n\t\telse\r\n\t\t\tvModel.UniqueClientId = false;\r\n\r\n\t\tif (errorList.length > 0) {\r\n\t\t\tshowValidationErrors(errorList);\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\tRenderItemCard = (d) => {\r\n\t\tthis.renderItemCard = `${d.MaskedCardNumber} - ${d.CardEmbossName}`;\r\n\t\treturn this.renderItemCard;\r\n\t}\r\n\tRowSelected = (index) => {\r\n\t\tlet { model, list } = this.state;\r\n\t\tlet StartDate = model.StartDate;\r\n\t\tlet EndDate = model.EndDate;\r\n\r\n\t\tmodel = list[index];\r\n\r\n\t\tmodel.StartDate = StartDate;\r\n\t\tmodel.EndDate = EndDate;\r\n\t\tif (list[index].CardRequestId) {\r\n\t\t\tmodel.Id = list[index].Id;\r\n\t\t}\r\n\t\tthis.setState({ isEdit: true, model, index });\r\n\t}\r\n\r\n\tGetProductParameter = () => {\r\n\t\tthis.parameterProduct.UniqueClientId = this.state.model.UniqueClientId;\r\n\t\tthis.parameterProduct.IsNoNameProduct = this.state.model.IsNoNameCard;\r\n\t\treturn this.parameterProduct;\r\n\t}\r\n\r\n\tFillCustomer = (customer) => {\r\n\t\tthis.HandleChange(\"Customer\", customer);\r\n\t}\r\n\r\n\tCancelSelectCallback = () => {\r\n\t\tthis.setState({\r\n\t\t\tisDialogOpen: false,\r\n\t\t\tisDisputeDialogOpen: false,\r\n\t\t\tisReEmbossDialogOpen: false,\r\n\t\t\tisReasonReEmbossDialogOpen: false\r\n\t\t});\r\n\t};\r\n\r\n\r\n\tHandleSubmit = async () => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\r\n\t\tlet { model, list } = this.state;\r\n\r\n\t\tvar result = await ExecuteApiPost(\"/prepaidapi/v1.0/CardRequest/ReEmbossIncorrectEmbossCard\", {\r\n\t\t\tCardRequestDataList: list,\r\n\t\t\tUniqueClientId: model.UniqueClientId\r\n\t\t});\r\n\t\tif (result != null) {\r\n\t\t\tthis.setState({ reReasonEmbosList: result, isReasonReEmbossDialogOpen: true })\r\n\t\t}\r\n\t}\r\n\tHandleReEmboss = () => {\r\n\t\tthis.setState({ isReEmbossDialogOpen: true });\r\n\t}\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, vModel, list, isLoading, index } = this.state;\r\n\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t{!model.IsNoNameCard &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t{!model.IsNoNameCard &&\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t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\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nIncorrectEmbossCards.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(IncorrectEmbossCards, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport {\r\n GenericExpansionPanel,\r\n GenericGrid,\r\n GenericSelectInput,\r\n GenericTextInput,\r\n GenericTitle,\r\n GenericNumberInput,\r\n} from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass MccGroup extends Component {\r\n constructor(props) {\r\n super(props);\r\n\r\n this.initialModel = {\r\n Id: 0,\r\n GroupName: \"\",\r\n };\r\n\r\n this.state = {\r\n model: this.initialModel,\r\n vModel: {},\r\n list: [],\r\n isLoading: false,\r\n };\r\n this.emptyObject = {};\r\n\r\n this.maxLength50 = { maxLength: 50 };\r\n\r\n this.Columns = [\r\n {\r\n Header: \"MCC Code\",\r\n accessor: \"MccCode\",\r\n },\r\n {\r\n Header: \"MCC Name\",\r\n accessor: \"MccName\",\r\n },\r\n {\r\n Header: \"Group Name\",\r\n accessor: \"GroupName\",\r\n },\r\n {\r\n Header: \"Group Id\",\r\n accessor: \"Id\",\r\n },\r\n {\r\n Header: \"Insert User\",\r\n accessor: \"InsertUser\",\r\n },\r\n {\r\n Header: \"Insert Date Time\",\r\n accessor: \"InsertDateTime\",\r\n type: GridColumnType.DateTime,\r\n ColumnType: GridColumnType.DateTime,\r\n },\r\n {\r\n Header: \"Update User\",\r\n accessor: \"UpdateUser\",\r\n },\r\n {\r\n Header: \"Update Date Time\",\r\n accessor: \"UpdateDateTime\",\r\n type: GridColumnType.DateTime,\r\n ColumnType: GridColumnType.DateTime,\r\n },\r\n ];\r\n }\r\n\r\n componentDidMount() {\r\n this.props.setAppLeftTitle(\"MCC Group\");\r\n this.props.setAppCenterTitle(\"CARD MCC MANAGEMENT\");\r\n }\r\n\r\n handleChange = (name, newValue) => {\r\n const model = { ...this.state.model };\r\n model[name] = newValue;\r\n this.setState({ model });\r\n };\r\n\r\n handleClear = () => {\r\n this.setState({\r\n model: {\r\n ...this.initialModel,\r\n },\r\n vModel: {},\r\n isEdit: false,\r\n index: -1,\r\n });\r\n };\r\n\r\n handleSearch = () => {\r\n this.setState({\r\n isLoading: true,\r\n });\r\n\r\n Proxy.POST(\r\n \"/prepaidapi/v1.0/Card/GetMccGroup\",\r\n this.state.model,\r\n (responseData) => {\r\n this.setState({\r\n isLoading: false,\r\n });\r\n if (!responseData.IsSucceeded) {\r\n this.props.showMessage(\r\n \"error\",\r\n \"Error\",\r\n responseData.ErrorDescription\r\n );\r\n return;\r\n }\r\n if (responseData.Item !== null) {\r\n this.setState({\r\n list: responseData.Item,\r\n });\r\n }\r\n },\r\n (error) => {\r\n this.setState({\r\n isLoading: false,\r\n });\r\n this.props.showMessage(\"error\", \"Error\", error);\r\n }\r\n );\r\n };\r\n\r\n handleSubmit = () => {\r\n if (!this.validate(true)) {\r\n return;\r\n }\r\n\r\n this.setState({ isLoading: true });\r\n Proxy.POST(\r\n \"/prepaidapi/v1.0/Card/InsertMccGroup\",\r\n this.state.model,\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n if (!responseData.IsSucceeded) {\r\n this.props.showMessage(\r\n \"error\",\r\n \"Error\",\r\n responseData.ErrorDescription\r\n );\r\n return;\r\n }\r\n if (responseData.Item !== null) {\r\n this.setState({ model: { ...this.initialModel }, index: -1 });\r\n this.props.showMessage(\r\n \"success\",\r\n \"Succeeded\",\r\n \"Operation is successfully!\"\r\n );\r\n this.handleClear();\r\n }\r\n },\r\n (error) => {\r\n this.setState({ isLoading: false });\r\n this.props.showMessage(\"error\", \"Error\", error);\r\n }\r\n );\r\n };\r\n\r\n handleUpdate = () => {\r\n if (!this.validate(false)) {\r\n return;\r\n }\r\n\r\n this.setState({ isLoading: true });\r\n Proxy.POST(\r\n \"/prepaidapi/v1.0/Card/UpdateMccGroupId\",\r\n this.state.model,\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n if (!responseData.IsSucceeded) {\r\n this.props.showMessage(\r\n \"error\",\r\n \"Error\",\r\n responseData.ErrorDescription\r\n );\r\n return;\r\n }\r\n if (responseData.Item !== null) {\r\n this.setState({ model: { ...this.initialModel }, index: -1 });\r\n this.props.showMessage(\r\n \"success\",\r\n \"Succeeded\",\r\n \"Operation is successfully!\"\r\n );\r\n\t\t\t this.state.model.MccCode = responseData.Item.MccCode;\r\n this.handleSearch();\r\n this.handleClear();\r\n }\r\n },\r\n (error) => {\r\n this.setState({ isLoading: false });\r\n this.props.showMessage(\"error\", \"Error\", error);\r\n }\r\n );\r\n };\r\n\r\n validate = (isSubmit) => {\r\n const { model, vModel } = this.state;\r\n var errorList = [];\r\n const { showValidationErrors } = this.props;\r\n\r\n if (isSubmit) {\r\n vModel.NewGroupName =\r\n model.NewGroupName == null ||\r\n model.NewGroupName == \"\" ||\r\n model.NewGroupName == undefined;\r\n if (vModel.NewGroupName) {\r\n errorList.push(\"New Group Name cannot be empty.\");\r\n }\r\n } else {\r\n vModel.MccCode =\r\n model.MccCode == null ||\r\n model.MccCode == \"\" ||\r\n model.MccCode == undefined;\r\n if (vModel.MccCode) {\r\n errorList.push(\"Mcc Code cannot be empty.\");\r\n }\r\n\r\n vModel.Id = model.Id == null || model.Id == 0 || model.Id == undefined;\r\n if (vModel.Id) {\r\n errorList.push(\"Id cannot be empty.\");\r\n }\r\n }\r\n\r\n if (errorList.length > 0) {\r\n showValidationErrors(errorList);\r\n return false;\r\n }\r\n return true;\r\n };\r\n\r\n rowSelected = (index) => {\r\n let { list } = this.state;\r\n const tempModel = list[index];\r\n if (list[index].CardRequestId) {\r\n tempModel.Id = list[index].Id;\r\n }\r\n this.setState({\r\n isEdit: true,\r\n model: tempModel,\r\n index,\r\n });\r\n };\r\n\r\n render() {\r\n const { Disabled } = this.props;\r\n const { alert, model, list, isLoading, index, vModel } = this.state;\r\n\r\n return (\r\n
\r\n \r\n {alert}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\nMccGroup.propTypes = {\r\n classes: PropTypes.object.isRequired,\r\n Disabled: PropTypes.bool,\r\n};\r\n\r\nexport default withArtifex(MccGroup, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\n\r\nclass CardStatus extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tCardId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t\tIsMainCard: true\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false\r\n\t\t}\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.maxLength19 = { maxLength: 19 };\r\n\r\n\t\tthis.maxLength4 = { maxLength: 4 };\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : undefined\r\n\t\t};\r\n\r\n\t\tthis.renderItemStatus = {};\r\n\r\n\t\tthis.parameterProduct = {};\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Token Number\",\r\n\t\t\t\taccessor: \"CardTokenNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"MCC\",\r\n\t\t\t\taccessor: \"MCC\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Insert User\",\r\n\t\t\t\taccessor: \"InsertUser\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Insert Date Time\",\r\n\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tColumnType: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Update User\",\r\n\t\t\t\taccessor: \"UpdateUser\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Update Date Time\",\r\n\t\t\t\taccessor: \"UpdateDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tColumnType: GridColumnType.DateTime\r\n\t\t\t}\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"MCC Permission\");\r\n\t\tthis.props.setAppCenterTitle(\"MCC PERMISSION MANAGEMENT\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tif (newValue == null) {\r\n\t\t\tmodel[name] = 0;\r\n\t\t}\r\n\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, isEdit: false, index: -1 });\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Card/GetMCCPermission\",\r\n\t\t\t{\r\n\t\t\t\tMCC: model.MCC,\r\n\t\t\t\tCardTokenNumber: model.CardTokenNumber,\r\n\t\t\t\tStartDate: model.StartDate,\r\n\t\t\t\tEndDate: model.EndDate,\r\n\t\t\t\tId: model.Id,\r\n\t\t\t\tCardId : model.CardId\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleUpdate = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tconst model = { ...this.state.model };\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Card/UpdateMCCPermission\",\r\n\t\t\t{\r\n\t\t\t\tMCC: model.MCC,\r\n\t\t\t\tId: model.Id,\r\n\t\t\t\tCardId : model.CardId\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ model: { ...this.initialModel }, index: -1 });\r\n\t\t\t\t\tthis.props.showMessage(\"success\", \"Succeeded\", \"Operation is successfully!\");\r\n\t\t\t\t\tthis.HandleSearch();\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\t\t\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst temp = { ...this.state.model };\r\n\t\ttemp[name] = newValue;\r\n\t\tthis.setState({ model: temp });\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tif(model.MCC.length < 4){\r\n\t\t\tthis.props.showMessage(\"warning\", \"MCC Error\", \"Please Enter 4 Characters.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\treturn true;\r\n\t}\r\n\t\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\tif (name == \"FromDate\") {\r\n\t\t\t\tmodel[\"ToDate\"] = undefined;\r\n\t\t\t}\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tRenderItemStatus = (d) => {\r\n\t\tthis.renderItemStatus = `${d.Description} - ${d.ResponseCode}`;\r\n\t\treturn this.renderItemStatus;\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tlet { list } = this.state;\r\n\t\tconst tempModel = list[index];\r\n\t\tif (list[index].CardRequestId) {\r\n\t\t\ttempModel.Id = list[index].Id;\r\n\t\t}\r\n\t\tthis.setState({ isEdit: true, model: tempModel, index });\r\n\t}\r\n\r\n\tGetProductParameter = () => {\r\n\t\tthis.parameterProduct.UniqueClientId = this.state.model.UniqueClientId;\r\n\t\tthis.parameterProduct.IsNoNameProduct = false;\r\n\t\treturn this.parameterProduct;\r\n\t}\r\n\r\n\tFillCustomer = (customer) => {\r\n\t\tthis.HandleChange(\"Customer\", customer);\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, isLoading, index } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t0}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCardStatus.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(CardStatus, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport { TaskPool } from \"core/TaskPool\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\n\r\nclass PrePersonCardOrder extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\taddressModel: {},\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tvModel: {},\r\n\t\t\tlist: [],\r\n\t\t\tcardList: [],\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\r\n\t\tthis.loadTaskPool = new TaskPool(this.handleLoadTaskPoolAppend, this.handleLoadTaskPoolCompleted);\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.maxLength20 = { maxLength: 20 };\r\n\t\tthis.maxLength30 = { maxLength: 30 };\r\n\t\tthis.maxLength100 = { maxLength: 100 };\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : undefined\r\n\t\t};\r\n\t\tthis.getappCenterTitle = \"Empty\";\r\n\t\tthis.getappLeftTitle = \"Empty\";\r\n\t\tthis.renderItemUniqueClient = {};\r\n\r\n\t\tthis.parameterProduct = {};\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"UniqueClient.ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Product Name\",\r\n\t\t\t\taccessor: \"Product.ProductName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Number of Card\",\r\n\t\t\t\taccessor: \"NumberOfCard\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Address Line 1\",\r\n\t\t\t\taccessor: \"AddressLine1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Address Line 2\",\r\n\t\t\t\taccessor: \"AddressLine2\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"City\",\r\n\t\t\t\taccessor: \"City\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Province\",\r\n\t\t\t\taccessor: \"Province\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Zip Code\",\r\n\t\t\t\taccessor: \"ZipCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Country\",\r\n\t\t\t\taccessor: \"Country\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Contact Person\",\r\n\t\t\t\taccessor: \"ContactPerson\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Success Emboss Count\",\r\n\t\t\t\taccessor: \"SuccessEmbossCount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Error Emboss Count\",\r\n\t\t\t\taccessor: \"ErrorEmbossCount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Waiting Emboss Count\",\r\n\t\t\t\taccessor: \"WaitingEmbossCount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Exported\",\r\n\t\t\t\taccessor: \"IsExported\",\r\n\t\t\t\ttype: GridColumnType.YesNo\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Export Date Time\",\r\n\t\t\t\taccessor: \"ExportDateTime\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType:GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Export File Name\",\r\n\t\t\t\taccessor: \"ExportFileName\"\r\n\t\t\t},\r\n\t\t];\r\n\r\n\t\tthis.ColumnsCardList = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"UniqueClient.ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"ClientCustomer.CustomerName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Number\",\r\n\t\t\t\taccessor: \"CardNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Product Name\",\r\n\t\t\t\taccessor: \"Product.ProductName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Usage Limit\",\r\n\t\t\t\taccessor: \"CardUsageLimit\",\r\n\t\t\t\ttype: GridColumnType.Money\r\n\t\t\t}\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Pre Person Card Order\");\tthis.getappLeftTitle = \"Pre Person Card Order\";\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");this.getappCenterTitle = \"PREPAID CARD MANAGEMENT\";\r\n\t\tthis.FetchCanadaPost();\r\n\t}\r\n\r\n\thandleLoadTaskPoolCompleted = () => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\thandleLoadTaskPoolAppend = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t}\r\n\r\n\tFetchCanadaPost = () => {\r\n\t\tthis.loadTaskPool.AppendTask(\r\n\t\t\tProxy.POST(\"/coreapi/v1.0/Parameter/Search\",\r\n\t\t\t\t{\r\n\t\t\t\t\tParameterCode: \"CanadaPostApiKey\",\r\n\t\t\t\t\tParameterValue: \"CP\",\r\n\t\t\t\t\tParameterDesc: \"\"\r\n\t\t\t\t},\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tconsole.log(\"Canada Post Api key not fetched !\");\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item == null) {\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item[0] == null) {\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tvar apikey = responseData.Item[0].ParameterDesc;\r\n\t\t\t\t\tconsole.log(\"KEY CP \", apikey);\r\n\r\n\t\t\t\t\tvar url = window.CanadaPostAddressCompleteUrl;\r\n\t\t\t\t\tvar path = url + apikey;\r\n\r\n\t\t\t\t\tvar pca;\r\n\t\t\t\t\tvar addressComplete;\r\n\r\n\t\t\t\t\tvar temp = this.state.addressModel;\r\n\t\t\t\t\tvar CpTemp = this.AddressHandle;\r\n\t\t\t\t\tvar CanadaPostRequest=this.SubmitCanadaPostRequest;\r\n\r\n\t\t\t\t\tconst script = document.createElement(\"script\");\r\n\t\t\t\t\tscript.src = path;\r\n\t\t\t\t\tscript.async = false;\r\n\t\t\t\t\tdocument.head.appendChild(script);\r\n\r\n\t\t\t\t\tscript.onload = function () {\r\n\t\t\t\t\t\tpca = window.pca;\r\n\t\t\t\t\t\taddressComplete = window.addressComplete;\r\n\t\t\t\t\t\tif (pca != null) {\r\n\t\t\t\t\t\t\tvar fields =\r\n\t\t\t\t\t\t\t\t[\r\n\t\t\t\t\t\t\t\t\t{ element: \"street-address\", field: \"Line1\", mode: pca.fieldMode.SEARCH },\r\n\t\t\t\t\t\t\t\t\t{ element: \"street-address2\", field: \"Line2\", mode: pca.fieldMode.POPULATE },\r\n\t\t\t\t\t\t\t\t\t{ element: \"city\", field: \"City\", mode: pca.fieldMode.POPULATE },\r\n\t\t\t\t\t\t\t\t\t{ element: \"state\", field: \"ProvinceName\", mode: pca.fieldMode.SEARCH },\r\n\t\t\t\t\t\t\t\t\t{ element: \"postcode\", field: \"PostalCode\", mode: pca.fieldMode.SEARCH },\r\n\t\t\t\t\t\t\t\t\t{ element: \"country\", field: \"CountryName\", mode: pca.fieldMode.COUNTRY }\r\n\t\t\t\t\t\t\t\t],\r\n\t\t\t\t\t\t\t\toptions = {\r\n\t\t\t\t\t\t\t\t\tkey: apikey\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\tcontrol = new pca.Address(fields, options);\r\n\t\t\t\t\t\t\t\tCanadaPostRequest();\r\n\r\n\r\n\t\t\t\t\t\t\tcontrol.listen(\"populate\", function (address) {\r\n\t\t\t\t\t\t\t\tconsole.log(address);\r\n\t\t\t\t\t\t\t\ttemp.City = address.City;\r\n\t\t\t\t\t\t\t\ttemp.Province = address.ProvinceName;\r\n\t\t\t\t\t\t\t\ttemp.Country = address.CountryName;\r\n\t\t\t\t\t\t\t\ttemp.AddressLine1 = address.Line1;\r\n\t\t\t\t\t\t\t\ttemp.AddressLine2 = address.Line2;\r\n\t\t\t\t\t\t\t\ttemp.ZipCode = address.PostalCode;\r\n\t\t\t\t\t\t\t\tCpTemp(temp);\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t};\r\n\t\t\t\t},\r\n\t\t\t\te => {\r\n\t\t\t\t\tconsole.log(\"Canada Post Api key not fetched !\");\r\n\t\t\t\t}\r\n\t\t\t));\r\n\t}\r\n\tSubmitCanadaPostRequest = async () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tvar requestdata = { \r\n\r\n\t\t\tUniqueClientId: null,\r\n\t\t\tMenuCode:this.props.getMenuCode,\r\n\t\t\tAppCenterTitle:this.getappCenterTitle,\r\n\t\t\tAppLeftTitle:this.getappLeftTitle\r\n\t\t};\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Reporting/CanadaPostRequestReportInsert\",\r\n\t\t\trequestdata,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (responseData.Item != null ) {\r\n\t\t\t\t\t \r\n\t\t\t\t}\r\n\t\t\t},\r\n \t\t);\r\n\t\t// var result = await this.props.ExecuteApiPost(\"/bankapi/v1.0/Reporting/CanadaPostRequestReportInsert\", requestdata);\r\n\t}\r\n\tAddressHandle = (address) => {\r\n\t\tvar model = { ...this.state.model };\r\n\t\tmodel.AddressLine1 = address.AddressLine1;\r\n\t\tmodel.AddressLine2 = address.AddressLine2;\r\n\t\tmodel.City = address.City;\r\n\t\tmodel.Province = address.Province;\r\n\t\tmodel.Country = address.Country;\r\n\t\tmodel.ZipCode = address.ZipCode;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (name === \"Customer\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.ClientCustomerId = newValue.Id;\r\n\t\t\t\tmodel.CustomerNumber = newValue.CustomerNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.ClientCustomerId;\r\n\t\t\t\tdelete model.CustomerNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (name === \"UniqueClientId\") {\r\n\t\t\tdelete model.ClientCustomerId;\r\n\t\t\tdelete model.CustomerNumber;\r\n\t\t}\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model }, () => {\r\n\t\t\tif (name === \"UniqueClientId\") {\r\n\t\t\t\tthis.LoadClientAddress();\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tLoadClientAddress = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/BankCustomer/GetClientInfo\",\r\n\t\t\t{ UniqueClientId: model.UniqueClientId },\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.AddressHandle(responseData.Item);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, isEdit: false, index: -1, cardList: [] });\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Prepaid/SearchNoNameCard\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleSubmit = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Prepaid/CreateBulkNoNameCard\",\r\n\t\t\t{\r\n\t\t\t\tProductId: model.ProductId,\r\n\t\t\t\tNumberOfCard: model.NumberOfCard,\r\n\t\t\t\tCardSendAddress: {\r\n\t\t\t\t\tAddressLine1: model.AddressLine1,\r\n\t\t\t\t\tAddressLine2: model.AddressLine2,\r\n\t\t\t\t\tCity: model.City,\r\n\t\t\t\t\tProvince: model.Province,\r\n\t\t\t\t\tZipCode: model.ZipCode,\r\n\t\t\t\t\tCountry: model.Country\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ model: { ...this.initialModel }, index: -1 });\r\n\t\t\t\t\tthis.props.showMessage(\"success\", \"Succeeded\", \"Operation is successfully!\");\r\n\t\t\t\t\tthis.HandleSearch();\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleDelete = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.GET(\r\n\t\t\t\"/prepaidapi/v1.0/Card/Delete/Id?Id=\" + this.state.model.Id,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.HandleSearch();\r\n\t\t\t\tthis.setState({ model: { ...this.initialModel }, index: -1 });\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Succeeded\", \"Deleted successfully!\");\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tGetCardList = (Id) => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Card/GetCardSummaryList\",\r\n\t\t\t{\r\n\t\t\t\tCardOrderId: Id\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ cardList: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tvar messages = [];\r\n\r\n\t\tvModel.UniqueClientId = model.UniqueClientId == null;\r\n\t\tif (vModel.UniqueClientId) messages.push(\"Client must be select\");\r\n\r\n\t\tvModel.ProductId = model.ProductId == null;\r\n\t\tif (vModel.ProductId) messages.push(\"Product must be select\");\r\n\r\n\t\tvModel.NumberOfCard = model.NumberOfCard == null;\r\n\t\tif (vModel.NumberOfCard) messages.push(\"Number of Card must be select\");\r\n\r\n\t\tvModel.AddressLine1 = model.AddressLine1 == null;\r\n\t\tif (vModel.AddressLine1) messages.push(\"Address Line 1 must be select\");\r\n\r\n\t\tvModel.ZipCode = model.ZipCode == null;\r\n\t\tif (vModel.ZipCode) messages.push(\"Zip Code must be select\");\r\n\r\n\t\tvModel.City = model.City == null;\r\n\t\tif (vModel.City) messages.push(\"City must be select\");\r\n\r\n\t\tvModel.Province = model.Province == null;\r\n\t\tif (vModel.Province) messages.push(\"Province must be select\");\r\n\r\n\t\tvModel.Country = model.Country == null;\r\n\t\tif (vModel.Country) messages.push(\"Country must be select\");\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.props.showMessageNode(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.setState({ vModel });\r\n\t\treturn true;\r\n\t}\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tlet { model, list } = this.state;\r\n\t\tmodel = list[index];\r\n\t\tthis.GetCardList(model.Id);\r\n\t\tthis.setState({ isEdit: true, model, index });\r\n\t}\r\n\r\n\tGetProductParameter = () => {\r\n\t\tthis.parameterProduct.UniqueClientId = this.state.model.UniqueClientId;\r\n\t\tthis.parameterProduct.IsNoNameProduct = true;\r\n\t\treturn this.parameterProduct;\r\n\t}\r\n\r\n\tFillCustomer = (customer) => {\r\n\t\tthis.HandleChange(\"Customer\", customer);\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes, Disabled, ReadOnly } = this.props;\r\n\t\tconst { alert, model, vModel, list, cardList, isLoading, index } = this.state;\r\n\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\r\n\t\treturn (\r\n\t\t\t<>\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t 0, ModelFunction: () => model, FillDataFromModel: model => this.setState({ model }), ValidationFunction: this.Validate },\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={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\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nPrePersonCardOrder.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(PrePersonCardOrder, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport {\r\n\tGenericSelectInput,\r\n\tGenericDateInput,\r\n\tGenericExpansionPanel,\r\n\tGenericRadioInput,\r\n\tGenericGrid,\r\n\tGenericDialog,\r\n\tGenericAlert,\r\n\tGenericDialogActions,\r\n\tGenericLabel,\r\n\tGenericTitle,\r\n\tGenericNumberInput\r\n} from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Select from \"react-select\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent.jsx\";\r\nimport CardComponent from \"views/Components/CardComponent.jsx\";\r\n\r\nclass SimulationCreditCardBucketCloseLog extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient()\r\n\t\t\t\t? ClientHelper.GetClientRowId()\r\n\t\t\t\t: undefined,\r\n\t\t\tProgramCode: \"\",\r\n\t\t\t// FromDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\t// ToDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tReferenceNumber: null,\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tvModel: {},\r\n\t\t};\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient()\r\n\t\t\t\t? ClientHelper.GetClientId()\r\n\t\t\t\t: undefined,\r\n\t\t};\r\n\r\n\t\tthis.parameterBucketType = { ParameterCode: \"BucketType\" };\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"Client\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"CustomerName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Number\",\r\n\t\t\t\taccessor: \"CustomerNumber\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"End of Date\",\r\n\t\t\t\taccessor: \"EodDate\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reference Number\",\r\n\t\t\t\taccessor: \"ReferenceNumber\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Description\",\r\n\t\t\t\taccessor: \"TxnDescription\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Code Id\",\r\n\t\t\t\taccessor: \"TrxCodeId\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Code\",\r\n\t\t\t\taccessor: \"TxnName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Statement Begin Date\",\r\n\t\t\t\taccessor: \"StatementBeginDate\",\r\n\t\t\t\ttype: GridColumnType.Date,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Statement End Date\",\r\n\t\t\t\taccessor: \"StatementEndDate\",\r\n\t\t\t\ttype: GridColumnType.Date,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Bucket Type\",\r\n\t\t\t\taccessor: \"BucketType.ParameterDesc\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Payment Amount\",\r\n\t\t\t\taccessor: \"TotalPaymentAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Capital Amount\",\r\n\t\t\t\taccessor: \"TotalCapitalAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Closed Amount\",\r\n\t\t\t\taccessor: \"ClosedAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t];\r\n\r\n\t\tthis.trxTable = React.createRef();\r\n\t}\r\n\r\n\tshowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t\t),\r\n\t\t});\r\n\t};\r\n\tsetValueToState = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t};\r\n\tshowLoading() {\r\n\t\tthis.setState({ isLoading: true });\r\n\t}\r\n\r\n\thideLoading() {\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach((c) => {\r\n\t\t\tif (\r\n\t\t\t\tc.accessor != \"Actions\" &&\r\n\t\t\t\tc.accessor != \"ED\" &&\r\n\t\t\t\t(c.show == undefined || c.show)\r\n\t\t\t) {\r\n\t\t\t\ttrxColumns.push({\r\n\t\t\t\t\tvalue: c.accessor,\r\n\t\t\t\t\ttitle: c.Header,\r\n\t\t\t\t\tcolumntype: c.ColumnType,\r\n\t\t\t\t\ttype: c.type,\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({\r\n\t\t\tisDownloadDialogOpen: true,\r\n\t\t\tGridKeyValueList: trxColumns,\r\n\t\t\tExportSelectedColumns: trxColumns,\r\n\t\t});\r\n\t};\r\n\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t});\r\n\t};\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.props.showMessage(\r\n\t\t\t\t\"warning\",\r\n\t\t\t\t\"Export Report Type not selected\",\r\n\t\t\t\t\"Select Export Report Type to continue\"\r\n\t\t\t);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// if (\r\n\t\t// \tthis.state.ExportReportType == \"PDF\" &&\r\n\t\t// \tthis.state.ExportSelectedColumns.length > 15\r\n\t\t// ) {\r\n\t\t// \tthis.props.showMessage(\r\n\t\t// \t\t\"warning\",\r\n\t\t// \t\t\"PDF document cannot exceed 15 columns\",\r\n\t\t// \t\t\"PDF document cannot exceed 15 columns\"\r\n\t\t// \t);\r\n\t\t// \treturn;\r\n\t\t// }\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tthis.props.showConfirmMessage(\r\n\t\t\t\"question\",\r\n\t\t\t\"Long Process Warning\",\r\n\t\t\t\"This process may take a while. Continue ?\",\r\n\t\t\t() => {\r\n\t\t\t\tthis.hideAlert();\r\n\t\t\t\tconst { model } = this.state;\r\n\t\t\t\tmodel.IsClientBalanceScreen = true;\r\n\r\n\t\t\t\t// Add jsonFile\r\n\t\t\t\tvar jsonColList = [];\r\n\r\n\t\t\t\tvar trxColumns = {};\r\n\t\t\t\tthis.state.ExportSelectedColumns.map((c) => {\r\n\t\t\t\t\ttrxColumns[c.value] = {\r\n\t\t\t\t\t\tvalue: c.value,\r\n\t\t\t\t\t\ttitle: c.title,\r\n\t\t\t\t\t\tcolumntype: c.columntype,\r\n\t\t\t\t\t\ttype: c.type,\r\n\t\t\t\t\t};\r\n\t\t\t\t});\r\n\t\t\t\tjsonColList.push(trxColumns);\r\n\r\n\t\t\t\tmodel[\"jsonFile\"] = {\r\n\t\t\t\t\tcolmns: jsonColList,\r\n\t\t\t\t\tformat: this.state.ExportReportType,\r\n\t\t\t\t\ttitle: \"Simulation Credit Card Bucket Close Log Report\",\r\n\t\t\t\t};\r\n\r\n\t\t\t\tthis.setState({ isLoading: true });\r\n\t\t\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\t\t\"/lmsapi/v1.0/FeeAndCodeBasedTransaction/DownloadSimulationCreditCardBucketCloseLog\",\r\n\t\t\t\t\tmodel,\r\n\t\t\t\t\t(responseData) => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\t\tthis.props.showMessage(\r\n\t\t\t\t\t\t\t\t\"error\",\r\n\t\t\t\t\t\t\t\t\"Error\",\r\n\t\t\t\t\t\t\t\tresponseData.ErrorDescription\r\n\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t(errorMessage) => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t\t\t},\r\n\t\t\t\t\tthis.props.showMessage\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\topenExportDialog = () => {\r\n\t\tthis.setState({\r\n\t\t\tisDownloadDialogOpen: true,\r\n\t\t});\r\n\t};\r\n\r\n\tcloseExportDialog = () => {\r\n\t\tthis.setState({\r\n\t\t\tisDownloadDialogOpen: false,\r\n\t\t});\r\n\t};\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Simulation Credit Card Bucket Close Log\");\r\n\t\tthis.props.setAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (name === \"UniqueClientId\") {\r\n\t\t\tdelete model.ClientCustomerId;\r\n\t\t\tdelete model.CustomerNumber;\r\n\t\t\tdelete model.CardId;\r\n\t\t\tdelete model.CardTokenNumber;\r\n\t\t}\r\n\t\tif (name === \"Customer\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.ClientCustomerId = newValue.Id;\r\n\t\t\t\tmodel.CustomerNumber = newValue.CustomerNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.ClientCustomerId;\r\n\t\t\t\tdelete model.CustomerNumber;\r\n\t\t\t\tdelete model.CardId;\r\n\t\t\t\tdelete model.CardTokenNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (name === \"Card\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.CardId = newValue.CardId;\r\n\t\t\t\tmodel.CardTokenNumber = newValue.CardTokenNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.CardId;\r\n\t\t\t\tdelete model.CardTokenNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\tValueChangedForExport = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t};\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tisEdit: false,\r\n\t\t\tindex: -1,\r\n\t\t});\r\n\t};\r\n\r\n\tHandleSearch = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel.ProgramCode = this.ProgramCode;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/lmsapi/v1.0/FeeAndCodeBasedTransaction/GetSimulationCreditCardBucketCloseLog\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\r\n\t\t\t\t\t\t\"error\",\r\n\t\t\t\t\t\t\"Error\",\r\n\t\t\t\t\t\tresponseData.ErrorDescription\r\n\t\t\t\t\t);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\r\n\t\tvar errorList = [];\r\n\r\n\t\tvModel.hasReferenceNumber = model.ReferenceNumber != undefined && model.ReferenceNumber != null && model.ReferenceNumber > 0;\r\n\t\t\r\n\t\tif (!vModel.hasReferenceNumber) {\r\n\t\t\tvModel.UniqueClientId = !model.UniqueClientId;\r\n\t\t\tif (vModel.UniqueClientId) errorList.push(\"Client cannot be empty.\");\r\n\r\n\t\t\tvModel.ClientCustomerId = !model.ClientCustomerId\r\n\t\t\tif (vModel.ClientCustomerId) errorList.push(\"Customer cannot be empty.\");\r\n\t\t}\r\n\r\n\t\tif (errorList.length > 0) {\r\n\t\t\tshowValidationErrors(errorList);\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t};\r\n\r\n\tGetModel = () => {\r\n\t\treturn this.state.model;\r\n\t};\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tFillCustomer = (customer) => {\r\n\t\tthis.HandleChange(\"Customer\", customer);\r\n\t}\r\n\r\n\t// FillCard = (card) => {\r\n\t// \tthis.HandleChange(\"Card\", card);\r\n\t// }\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, isLoading, vModel } = this.state;\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t this.ExportClick(),\r\n\t\t\t\t\t\t\tDisabled: Disabled,\r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\t\t\t\t\t\t\t\t\t\tthis.setState({ ExportSelectedColumns: value })\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\t\tname=\"Columns\"\r\n\t\t\t\t\t\t\t\t\tgetOptionLabel={(d) => d.title}\r\n\t\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ isDownloadDialogOpen: false })}\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\tCancel\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nSimulationCreditCardBucketCloseLog.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool,\r\n};\r\n\r\nexport default withArtifex(SimulationCreditCardBucketCloseLog, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport {\r\n\tGenericSelectInput,\r\n\tGenericDateInput,\r\n\tGenericExpansionPanel,\r\n\tGenericRadioInput,\r\n\tGenericGrid,\r\n\tGenericDialog,\r\n\tGenericAlert,\r\n\tGenericDialogActions,\r\n\tGenericLabel,\r\n\tGenericTitle,\r\n} from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Select from \"react-select\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent.jsx\";\r\nimport CardComponent from \"views/Components/CardComponent.jsx\";\r\n\r\nclass SimulationCreditCardBuckets extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient()\r\n\t\t\t\t? ClientHelper.GetClientRowId()\r\n\t\t\t\t: undefined,\r\n\t\t\tProgramCode: \"\",\r\n\t\t\t// FromDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\t// ToDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tvModel: {},\r\n\t\t};\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient()\r\n\t\t\t\t? ClientHelper.GetClientId()\r\n\t\t\t\t: undefined,\r\n\t\t};\r\n\r\n\t\tthis.parameterProduct = {};\r\n\t\tthis.parameterLMSPaymentStatus = { ParameterCode: \"LMSPaymentStatus\" };\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"Client\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"CustomerName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Number\",\r\n\t\t\t\taccessor: \"CustomerNumber\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Settlement Date\",\r\n\t\t\t\taccessor: \"SettlementDate\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"End of Date\",\r\n\t\t\t\taccessor: \"EodDate\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Payment Status\",\r\n\t\t\t\taccessor: \"TotalPaymentStatus.ParameterDesc\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Sale Amount\",\r\n\t\t\t\taccessor: \"TotalSaleAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Remaining Sale Amount\",\r\n\t\t\t\taccessor: \"RemSaleAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sale Payment Status\",\r\n\t\t\t\taccessor: \"SalePaymentStatus.ParameterDesc\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sale Interest Start Date Time\",\r\n\t\t\t\taccessor: \"SaleInterestStartDateTime\",\r\n\t\t\t\ttype: GridColumnType.Date,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Cash Amount\",\r\n\t\t\t\taccessor: \"TotalCashAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Remaining Cash Amount\",\r\n\t\t\t\taccessor: \"RemCashAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Cash Payment Status\",\r\n\t\t\t\taccessor: \"CashPaymentStatus.ParameterDesc\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Cash Interest Start Date Time\",\r\n\t\t\t\taccessor: \"CashInterestStartDateTime\",\r\n\t\t\t\ttype: GridColumnType.Date,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Fee Amount\",\r\n\t\t\t\taccessor: \"TotalFeeAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Remaining Fee Amount\",\r\n\t\t\t\taccessor: \"RemFeeAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Fee Payment Status\",\r\n\t\t\t\taccessor: \"FeePaymentStatus.ParameterDesc\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Penalty Amount\",\r\n\t\t\t\taccessor: \"TotalPenaltyAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Remaining Penalty Amount\",\r\n\t\t\t\taccessor: \"RemPenaltyAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Penalty Payment Status\",\r\n\t\t\t\taccessor: \"PenaltyPaymentStatus.ParameterDesc\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Interest Amount\",\r\n\t\t\t\taccessor: \"TotalInterestAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Remaining Interest Amount\",\r\n\t\t\t\taccessor: \"RemInterestAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Interest Payment Status\",\r\n\t\t\t\taccessor: \"InterestPaymentStatus.ParameterDesc\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Remaining Total Amount\",\r\n\t\t\t\taccessor: \"RemTotalAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t];\r\n\r\n\t\tthis.trxTable = React.createRef();\r\n\t}\r\n\r\n\tshowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t\t),\r\n\t\t});\r\n\t};\r\n\tsetValueToState = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t};\r\n\tshowLoading() {\r\n\t\tthis.setState({ isLoading: true });\r\n\t}\r\n\r\n\thideLoading() {\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach((c) => {\r\n\t\t\tif (\r\n\t\t\t\tc.accessor != \"Actions\" &&\r\n\t\t\t\tc.accessor != \"ED\" &&\r\n\t\t\t\t(c.show == undefined || c.show)\r\n\t\t\t) {\r\n\t\t\t\ttrxColumns.push({\r\n\t\t\t\t\tvalue: c.accessor,\r\n\t\t\t\t\ttitle: c.Header,\r\n\t\t\t\t\tcolumntype: c.ColumnType,\r\n\t\t\t\t\ttype: c.type,\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({\r\n\t\t\tisDownloadDialogOpen: true,\r\n\t\t\tGridKeyValueList: trxColumns,\r\n\t\t\tExportSelectedColumns: trxColumns,\r\n\t\t});\r\n\t};\r\n\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t});\r\n\t};\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.props.showMessage(\r\n\t\t\t\t\"warning\",\r\n\t\t\t\t\"Export Report Type not selected\",\r\n\t\t\t\t\"Select Export Report Type to continue\"\r\n\t\t\t);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// if (\r\n\t\t// \tthis.state.ExportReportType == \"PDF\" &&\r\n\t\t// \tthis.state.ExportSelectedColumns.length > 15\r\n\t\t// ) {\r\n\t\t// \tthis.props.showMessage(\r\n\t\t// \t\t\"warning\",\r\n\t\t// \t\t\"PDF document cannot exceed 15 columns\",\r\n\t\t// \t\t\"PDF document cannot exceed 15 columns\"\r\n\t\t// \t);\r\n\t\t// \treturn;\r\n\t\t// }\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tthis.props.showConfirmMessage(\r\n\t\t\t\"question\",\r\n\t\t\t\"Long Process Warning\",\r\n\t\t\t\"This process may take a while. Continue ?\",\r\n\t\t\t() => {\r\n\t\t\t\tthis.hideAlert();\r\n\t\t\t\tconst { model } = this.state;\r\n\t\t\t\tmodel.IsClientBalanceScreen = true;\r\n\r\n\t\t\t\t// Add jsonFile\r\n\t\t\t\tvar jsonColList = [];\r\n\r\n\t\t\t\tvar trxColumns = {};\r\n\t\t\t\tthis.state.ExportSelectedColumns.map((c) => {\r\n\t\t\t\t\ttrxColumns[c.value] = {\r\n\t\t\t\t\t\tvalue: c.value,\r\n\t\t\t\t\t\ttitle: c.title,\r\n\t\t\t\t\t\tcolumntype: c.columntype,\r\n\t\t\t\t\t\ttype: c.type,\r\n\t\t\t\t\t};\r\n\t\t\t\t});\r\n\t\t\t\tjsonColList.push(trxColumns);\r\n\r\n\t\t\t\tmodel[\"jsonFile\"] = {\r\n\t\t\t\t\tcolmns: jsonColList,\r\n\t\t\t\t\tformat: this.state.ExportReportType,\r\n\t\t\t\t\ttitle: \"Simulation Credit Card Buckets Report Report\",\r\n\t\t\t\t};\r\n\r\n\t\t\t\tthis.setState({ isLoading: true });\r\n\t\t\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\t\t\"/lmsapi/v1.0/FeeAndCodeBasedTransaction/DownloadSimulationCreditCardBuckets\",\r\n\t\t\t\t\tmodel,\r\n\t\t\t\t\t(responseData) => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\t\tthis.props.showMessage(\r\n\t\t\t\t\t\t\t\t\"error\",\r\n\t\t\t\t\t\t\t\t\"Error\",\r\n\t\t\t\t\t\t\t\tresponseData.ErrorDescription\r\n\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t(errorMessage) => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t\t\t},\r\n\t\t\t\t\tthis.props.showMessage\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\topenExportDialog = () => {\r\n\t\tthis.setState({\r\n\t\t\tisDownloadDialogOpen: true,\r\n\t\t});\r\n\t};\r\n\r\n\tcloseExportDialog = () => {\r\n\t\tthis.setState({\r\n\t\t\tisDownloadDialogOpen: false,\r\n\t\t});\r\n\t};\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Simulation Credit Card Buckets\");\r\n\t\tthis.props.setAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (name === \"UniqueClientId\") {\r\n\t\t\tdelete model.ClientCustomerId;\r\n\t\t\tdelete model.CustomerNumber;\r\n\t\t\tdelete model.CardId;\r\n\t\t\tdelete model.CardTokenNumber;\r\n\t\t}\r\n\t\tif (name === \"Customer\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.ClientCustomerId = newValue.Id;\r\n\t\t\t\tmodel.CustomerNumber = newValue.CustomerNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.ClientCustomerId;\r\n\t\t\t\tdelete model.CustomerNumber;\r\n\t\t\t\tdelete model.CardId;\r\n\t\t\t\tdelete model.CardTokenNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (name === \"Card\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.CardId = newValue.CardId;\r\n\t\t\t\tmodel.CardTokenNumber = newValue.CardTokenNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.CardId;\r\n\t\t\t\tdelete model.CardTokenNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\tValueChangedForExport = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t};\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tisEdit: false,\r\n\t\t\tindex: -1,\r\n\t\t});\r\n\t};\r\n\r\n\tHandleSearch = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel.ProgramCode = this.ProgramCode;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/lmsapi/v1.0/FeeAndCodeBasedTransaction/GetSimulationCreditCardBuckets\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\r\n\t\t\t\t\t\t\"error\",\r\n\t\t\t\t\t\t\"Error\",\r\n\t\t\t\t\t\tresponseData.ErrorDescription\r\n\t\t\t\t\t);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\r\n\t\tvar errorList = [];\r\n\r\n\t\tvModel.UniqueClientId = !model.UniqueClientId;\r\n\t\tif (vModel.UniqueClientId) errorList.push(\"Client cannot be empty.\");\r\n\r\n\t\tvModel.ClientCustomerId = !model.ClientCustomerId;\r\n\t\tif (vModel.ClientCustomerId) errorList.push(\"Customer cannot be empty.\");\r\n\r\n\t\tif (errorList.length > 0) {\r\n\t\t\tshowValidationErrors(errorList);\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t};\r\n\r\n\tGetModel = () => {\r\n\t\treturn this.state.model;\r\n\t};\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tFillCustomer = (customer) => {\r\n\t\tthis.HandleChange(\"Customer\", customer);\r\n\t}\r\n\r\n\t// FillCard = (card) => {\r\n\t// \tthis.HandleChange(\"Card\", card);\r\n\t// }\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, isLoading, vModel } = this.state;\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\t\treturn (\r\n\t\t\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t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tthis.setState({ ExportSelectedColumns: value })\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\t\tname=\"Columns\"\r\n\t\t\t\t\t\t\t\t\tgetOptionLabel={(d) => d.title}\r\n\t\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ isDownloadDialogOpen: false })}\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\tCancel\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nSimulationCreditCardBuckets.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool,\r\n};\r\n\r\nexport default withArtifex(SimulationCreditCardBuckets, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport {\r\n\tGenericSelectInput,\r\n\tGenericDateInput,\r\n\tGenericExpansionPanel,\r\n\tGenericRadioInput,\r\n\tGenericGrid,\r\n\tGenericDialog,\r\n\tGenericAlert,\r\n\tGenericDialogActions,\r\n\tGenericLabel,\r\n\tGenericTitle,\r\n\tGenericCheckInput\r\n} from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Select from \"react-select\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent.jsx\";\r\nimport CardComponent from \"views/Components/CardComponent.jsx\";\r\n\r\nclass SimulationCreditCardFinancialInfo extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient()\r\n\t\t\t\t? ClientHelper.GetClientRowId()\r\n\t\t\t\t: undefined,\r\n\t\t\tProgramCode: \"\",\r\n\t\t\t// FromDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\t// ToDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tShowLastFinancialInfo: false\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tvModel: {},\r\n\t\t};\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient()\r\n\t\t\t\t? ClientHelper.GetClientId()\r\n\t\t\t\t: undefined,\r\n\t\t};\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"Client\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"CustomerName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Number\",\r\n\t\t\t\taccessor: \"CustomerNumber\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"End of Date\",\r\n\t\t\t\taccessor: \"EodDate\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Wallet Account\",\r\n\t\t\t\taccessor: \"AccountInfo\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Remaining Payment Amount\",\r\n\t\t\t\taccessor: \"RemPaymentAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sale Amount\",\r\n\t\t\t\taccessor: \"SaleAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Cash Amount\",\r\n\t\t\t\taccessor: \"CashAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Fee Amount\",\r\n\t\t\t\taccessor: \"FeeAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Penalty Amount\",\r\n\t\t\t\taccessor: \"PenaltyAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Interest Amount\",\r\n\t\t\t\taccessor: \"InterestAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Count\",\r\n\t\t\t\taccessor: \"TransactionCount\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Debt\",\r\n\t\t\t\taccessor: \"TotalDebt\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t];\r\n\r\n\t\tthis.trxTable = React.createRef();\r\n\t}\r\n\r\n\tshowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t\t),\r\n\t\t});\r\n\t};\r\n\tsetValueToState = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t};\r\n\tshowLoading() {\r\n\t\tthis.setState({ isLoading: true });\r\n\t}\r\n\r\n\thideLoading() {\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach((c) => {\r\n\t\t\tif (\r\n\t\t\t\tc.accessor != \"Actions\" &&\r\n\t\t\t\tc.accessor != \"ED\" &&\r\n\t\t\t\t(c.show == undefined || c.show)\r\n\t\t\t) {\r\n\t\t\t\ttrxColumns.push({\r\n\t\t\t\t\tvalue: c.accessor,\r\n\t\t\t\t\ttitle: c.Header,\r\n\t\t\t\t\tcolumntype: c.ColumnType,\r\n\t\t\t\t\ttype: c.type,\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({\r\n\t\t\tisDownloadDialogOpen: true,\r\n\t\t\tGridKeyValueList: trxColumns,\r\n\t\t\tExportSelectedColumns: trxColumns,\r\n\t\t});\r\n\t};\r\n\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t});\r\n\t};\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.props.showMessage(\r\n\t\t\t\t\"warning\",\r\n\t\t\t\t\"Export Report Type not selected\",\r\n\t\t\t\t\"Select Export Report Type to continue\"\r\n\t\t\t);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// if (\r\n\t\t// \tthis.state.ExportReportType == \"PDF\" &&\r\n\t\t// \tthis.state.ExportSelectedColumns.length > 15\r\n\t\t// ) {\r\n\t\t// \tthis.props.showMessage(\r\n\t\t// \t\t\"warning\",\r\n\t\t// \t\t\"PDF document cannot exceed 15 columns\",\r\n\t\t// \t\t\"PDF document cannot exceed 15 columns\"\r\n\t\t// \t);\r\n\t\t// \treturn;\r\n\t\t// }\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tthis.props.showConfirmMessage(\r\n\t\t\t\"question\",\r\n\t\t\t\"Long Process Warning\",\r\n\t\t\t\"This process may take a while. Continue ?\",\r\n\t\t\t() => {\r\n\t\t\t\tthis.hideAlert();\r\n\t\t\t\tconst { model } = this.state;\r\n\t\t\t\tmodel.IsClientBalanceScreen = true;\r\n\r\n\t\t\t\t// Add jsonFile\r\n\t\t\t\tvar jsonColList = [];\r\n\r\n\t\t\t\tvar trxColumns = {};\r\n\t\t\t\tthis.state.ExportSelectedColumns.map((c) => {\r\n\t\t\t\t\ttrxColumns[c.value] = {\r\n\t\t\t\t\t\tvalue: c.value,\r\n\t\t\t\t\t\ttitle: c.title,\r\n\t\t\t\t\t\tcolumntype: c.columntype,\r\n\t\t\t\t\t\ttype: c.type,\r\n\t\t\t\t\t};\r\n\t\t\t\t});\r\n\t\t\t\tjsonColList.push(trxColumns);\r\n\r\n\t\t\t\tmodel[\"jsonFile\"] = {\r\n\t\t\t\t\tcolmns: jsonColList,\r\n\t\t\t\t\tformat: this.state.ExportReportType,\r\n\t\t\t\t\ttitle: \"Simulation Credit Card Financial Info Report\",\r\n\t\t\t\t};\r\n\r\n\t\t\t\tthis.setState({ isLoading: true });\r\n\t\t\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\t\t\"/lmsapi/v1.0/FeeAndCodeBasedTransaction/DownloadSimulationCreditCardFinancialInfo\",\r\n\t\t\t\t\tmodel,\r\n\t\t\t\t\t(responseData) => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\t\tthis.props.showMessage(\r\n\t\t\t\t\t\t\t\t\"error\",\r\n\t\t\t\t\t\t\t\t\"Error\",\r\n\t\t\t\t\t\t\t\tresponseData.ErrorDescription\r\n\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t(errorMessage) => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t\t\t},\r\n\t\t\t\t\tthis.props.showMessage\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\topenExportDialog = () => {\r\n\t\tthis.setState({\r\n\t\t\tisDownloadDialogOpen: true,\r\n\t\t});\r\n\t};\r\n\r\n\tcloseExportDialog = () => {\r\n\t\tthis.setState({\r\n\t\t\tisDownloadDialogOpen: false,\r\n\t\t});\r\n\t};\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Simulation Credit Card Financial Info\");\r\n\t\tthis.props.setAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (name === \"UniqueClientId\") {\r\n\t\t\tdelete model.ClientCustomerId;\r\n\t\t\tdelete model.CustomerNumber;\r\n\t\t\tdelete model.CardId;\r\n\t\t\tdelete model.CardTokenNumber;\r\n\t\t}\r\n\t\tif (name === \"Customer\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.ClientCustomerId = newValue.Id;\r\n\t\t\t\tmodel.CustomerNumber = newValue.CustomerNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.ClientCustomerId;\r\n\t\t\t\tdelete model.CustomerNumber;\r\n\t\t\t\tdelete model.CardId;\r\n\t\t\t\tdelete model.CardTokenNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (name === \"Card\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.CardId = newValue.CardId;\r\n\t\t\t\tmodel.CardTokenNumber = newValue.CardTokenNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.CardId;\r\n\t\t\t\tdelete model.CardTokenNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\tValueChangedForExport = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t};\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tisEdit: false,\r\n\t\t\tindex: -1,\r\n\t\t});\r\n\t};\r\n\r\n\tHandleSearch = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel.ProgramCode = this.ProgramCode;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/lmsapi/v1.0/FeeAndCodeBasedTransaction/GetSimulationCreditCardFinancialInfo\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\r\n\t\t\t\t\t\t\"error\",\r\n\t\t\t\t\t\t\"Error\",\r\n\t\t\t\t\t\tresponseData.ErrorDescription\r\n\t\t\t\t\t);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\r\n\t\tvar errorList = [];\r\n\r\n\t\tvModel.UniqueClientId = !model.UniqueClientId;\r\n\t\tif (vModel.UniqueClientId) errorList.push(\"Client cannot be empty.\");\r\n\r\n\t\tvModel.ClientCustomerId = !model.ClientCustomerId && !model.ShowLastFinancialInfo;\r\n\t\tif (vModel.ClientCustomerId) errorList.push(\"Customer cannot be empty.\");\r\n\r\n\t\tif (errorList.length > 0) {\r\n\t\t\tshowValidationErrors(errorList);\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t};\r\n\r\n\tGetModel = () => {\r\n\t\treturn this.state.model;\r\n\t};\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tFillCustomer = (customer) => {\r\n\t\tthis.HandleChange(\"Customer\", customer);\r\n\t}\r\n\r\n\t// FillCard = (card) => {\r\n\t// \tthis.HandleChange(\"Card\", card);\r\n\t// }\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, isLoading, vModel } = this.state;\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t this.ExportClick(),\r\n\t\t\t\t\t\t\tDisabled: Disabled,\r\n\t\t\t\t\t\t},\r\n\t\t\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t\t\t\t\t\t\tname=\"Columns\"\r\n\t\t\t\t\t\t\t\t\tgetOptionLabel={(d) => d.title}\r\n\t\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ isDownloadDialogOpen: false })}\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\tCancel\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nSimulationCreditCardFinancialInfo.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool,\r\n};\r\n\r\nexport default withArtifex(SimulationCreditCardFinancialInfo, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport {\r\n\tGenericSelectInput,\r\n\tGenericDateInput,\r\n\tGenericExpansionPanel,\r\n\tGenericRadioInput,\r\n\tGenericGrid,\r\n\tGenericDialog,\r\n\tGenericAlert,\r\n\tGenericDialogActions,\r\n\tGenericLabel,\r\n\tGenericTitle,\r\n} from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Select from \"react-select\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent.jsx\";\r\nimport CardComponent from \"views/Components/CardComponent.jsx\";\r\n\r\nclass SimulationCreditCardInterests extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient()\r\n\t\t\t\t? ClientHelper.GetClientRowId()\r\n\t\t\t\t: undefined,\r\n\t\t\tProgramCode: \"\",\r\n\t\t\t// FromDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\t// ToDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tvModel: {},\r\n\t\t};\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient()\r\n\t\t\t\t? ClientHelper.GetClientId()\r\n\t\t\t\t: undefined,\r\n\t\t};\r\n\r\n\t\tthis.parameterLMSPaymentStatus = { ParameterCode: \"LMSPaymentStatus\" };\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Interest Type\",\r\n\t\t\t\taccessor: \"InterestType\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"Client\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"CustomerName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Number\",\r\n\t\t\t\taccessor: \"CustomerNumber\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Settlement Date\",\r\n\t\t\t\taccessor: \"SettlementDate\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Statement Begin Date\",\r\n\t\t\t\taccessor: \"StatementBeginDate\",\r\n\t\t\t\ttype: GridColumnType.Date,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Statement End Date\",\r\n\t\t\t\taccessor: \"StatementEndDate\",\r\n\t\t\t\ttype: GridColumnType.Date,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Interest Amount\",\r\n\t\t\t\taccessor: \"TotalInterestAmount\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
{row.value ? `$${row.value}` : \"\"}
\r\n\t\t\t\t\t
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Remaining Interest Amount\",\r\n\t\t\t\taccessor: \"RemInterestAmount\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
{row.value ? `$${row.value}` : \"\"}
\r\n\t\t\t\t\t
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Payment Status\",\r\n\t\t\t\taccessor: \"PaymentStatus.ParameterDesc\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Capital Type\",\r\n\t\t\t\taccessor: \"CapitalType.ParameterDesc\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Interest Capital Amount\",\r\n\t\t\t\taccessor: \"InterestCapitalAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Interest Rate\",\r\n\t\t\t\taccessor: \"InterestRate\",\r\n\t\t\t\ttype: GridColumnType.Percent,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Scheduled Process Date\",\r\n\t\t\t\taccessor: \"ScheduledProcessDate\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Active\",\r\n\t\t\t\taccessor: \"IsActive\",\r\n\t\t\t\ttype: GridColumnType.YesNo,\r\n\t\t\t\tColumnType: GridColumnType.YesNo\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Processed\",\r\n\t\t\t\taccessor: \"IsProcessed\",\r\n\t\t\t\ttype: GridColumnType.YesNo,\r\n\t\t\t\tColumnType: GridColumnType.YesNo\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Process Date\",\r\n\t\t\t\taccessor: \"ProcessDate\",\r\n\t\t\t\ttype: GridColumnType.Date,\r\n\t\t\t},\r\n\t\t];\r\n\r\n\t\tthis.trxTable = React.createRef();\r\n\t}\r\n\r\n\tshowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t\t),\r\n\t\t});\r\n\t};\r\n\tsetValueToState = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t};\r\n\tshowLoading() {\r\n\t\tthis.setState({ isLoading: true });\r\n\t}\r\n\r\n\thideLoading() {\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach((c) => {\r\n\t\t\tif (\r\n\t\t\t\tc.accessor != \"Actions\" &&\r\n\t\t\t\tc.accessor != \"ED\" &&\r\n\t\t\t\t(c.show == undefined || c.show)\r\n\t\t\t) {\r\n\t\t\t\ttrxColumns.push({\r\n\t\t\t\t\tvalue: c.accessor,\r\n\t\t\t\t\ttitle: c.Header,\r\n\t\t\t\t\tcolumntype: c.ColumnType,\r\n\t\t\t\t\ttype: c.type,\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({\r\n\t\t\tisDownloadDialogOpen: true,\r\n\t\t\tGridKeyValueList: trxColumns,\r\n\t\t\tExportSelectedColumns: trxColumns,\r\n\t\t});\r\n\t};\r\n\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t});\r\n\t};\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.props.showMessage(\r\n\t\t\t\t\"warning\",\r\n\t\t\t\t\"Export Report Type not selected\",\r\n\t\t\t\t\"Select Export Report Type to continue\"\r\n\t\t\t);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// if (\r\n\t\t// \tthis.state.ExportReportType == \"PDF\" &&\r\n\t\t// \tthis.state.ExportSelectedColumns.length > 15\r\n\t\t// ) {\r\n\t\t// \tthis.props.showMessage(\r\n\t\t// \t\t\"warning\",\r\n\t\t// \t\t\"PDF document cannot exceed 15 columns\",\r\n\t\t// \t\t\"PDF document cannot exceed 15 columns\"\r\n\t\t// \t);\r\n\t\t// \treturn;\r\n\t\t// }\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tthis.props.showConfirmMessage(\r\n\t\t\t\"question\",\r\n\t\t\t\"Long Process Warning\",\r\n\t\t\t\"This process may take a while. Continue ?\",\r\n\t\t\t() => {\r\n\t\t\t\tthis.hideAlert();\r\n\t\t\t\tconst { model } = this.state;\r\n\t\t\t\tmodel.IsClientBalanceScreen = true;\r\n\r\n\t\t\t\t// Add jsonFile\r\n\t\t\t\tvar jsonColList = [];\r\n\r\n\t\t\t\tvar trxColumns = {};\r\n\t\t\t\tthis.state.ExportSelectedColumns.map((c) => {\r\n\t\t\t\t\ttrxColumns[c.value] = {\r\n\t\t\t\t\t\tvalue: c.value,\r\n\t\t\t\t\t\ttitle: c.title,\r\n\t\t\t\t\t\tcolumntype: c.columntype,\r\n\t\t\t\t\t\ttype: c.type,\r\n\t\t\t\t\t};\r\n\t\t\t\t});\r\n\t\t\t\tjsonColList.push(trxColumns);\r\n\r\n\t\t\t\tmodel[\"jsonFile\"] = {\r\n\t\t\t\t\tcolmns: jsonColList,\r\n\t\t\t\t\tformat: this.state.ExportReportType,\r\n\t\t\t\t\ttitle: \"Simulation Credit Card Interests Report\",\r\n\t\t\t\t};\r\n\r\n\t\t\t\tthis.setState({ isLoading: true });\r\n\t\t\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\t\t\"/lmsapi/v1.0/FeeAndCodeBasedTransaction/DownloadSimulationCreditCardInterests\",\r\n\t\t\t\t\tmodel,\r\n\t\t\t\t\t(responseData) => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\t\tthis.props.showMessage(\r\n\t\t\t\t\t\t\t\t\"error\",\r\n\t\t\t\t\t\t\t\t\"Error\",\r\n\t\t\t\t\t\t\t\tresponseData.ErrorDescription\r\n\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t(errorMessage) => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t\t\t},\r\n\t\t\t\t\tthis.props.showMessage\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\topenExportDialog = () => {\r\n\t\tthis.setState({\r\n\t\t\tisDownloadDialogOpen: true,\r\n\t\t});\r\n\t};\r\n\r\n\tcloseExportDialog = () => {\r\n\t\tthis.setState({\r\n\t\t\tisDownloadDialogOpen: false,\r\n\t\t});\r\n\t};\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Simulation Credit Card Interest\");\r\n\t\tthis.props.setAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (name === \"UniqueClientId\") {\r\n\t\t\tdelete model.ClientCustomerId;\r\n\t\t\tdelete model.CustomerNumber;\r\n\t\t\tdelete model.CardId;\r\n\t\t\tdelete model.CardTokenNumber;\r\n\t\t}\r\n\t\tif (name === \"Customer\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.ClientCustomerId = newValue.Id;\r\n\t\t\t\tmodel.CustomerNumber = newValue.CustomerNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.ClientCustomerId;\r\n\t\t\t\tdelete model.CustomerNumber;\r\n\t\t\t\tdelete model.CardId;\r\n\t\t\t\tdelete model.CardTokenNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (name === \"Card\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.CardId = newValue.CardId;\r\n\t\t\t\tmodel.CardTokenNumber = newValue.CardTokenNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.CardId;\r\n\t\t\t\tdelete model.CardTokenNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\tValueChangedForExport = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t};\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tisEdit: false,\r\n\t\t\tindex: -1,\r\n\t\t});\r\n\t};\r\n\r\n\tHandleSearch = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel.ProgramCode = this.ProgramCode;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/lmsapi/v1.0/FeeAndCodeBasedTransaction/GetSimulationCreditCardInterests\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\r\n\t\t\t\t\t\t\"error\",\r\n\t\t\t\t\t\t\"Error\",\r\n\t\t\t\t\t\tresponseData.ErrorDescription\r\n\t\t\t\t\t);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\r\n\t\tvar errorList = [];\r\n\r\n\t\tvModel.UniqueClientId = !model.UniqueClientId;\r\n\t\tif (vModel.UniqueClientId) errorList.push(\"Client cannot be empty.\");\r\n\r\n\t\tvModel.ClientCustomerId = !model.ClientCustomerId;\r\n\t\tif (vModel.ClientCustomerId) errorList.push(\"Customer cannot be empty.\");\r\n\r\n\t\t// vModel.FromDate = !model.FromDate;\r\n\t\t// if (vModel.FromDate) errorList.push(\"From Date cannot be empty!\");\r\n\r\n\t\t// vModel.ToDate = !model.ToDate;\r\n\t\t// if (vModel.ToDate) errorList.push(\"To Date cannot be empty!\");\r\n\r\n\t\tif (errorList.length > 0) {\r\n\t\t\tshowValidationErrors(errorList);\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t};\r\n\r\n\tGetModel = () => {\r\n\t\treturn this.state.model;\r\n\t};\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tFillCustomer = (customer) => {\r\n\t\tthis.HandleChange(\"Customer\", customer);\r\n\t}\r\n\r\n\t// FillCard = (card) => {\r\n\t// \tthis.HandleChange(\"Card\", card);\r\n\t// }\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, isLoading, vModel } = this.state;\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t this.ExportClick(),\r\n\t\t\t\t\t\t\tDisabled: Disabled,\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After}\r\n\t\t\t\t/>\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{/* \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t */}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tthis.setState({ ExportSelectedColumns: value })\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\t\tname=\"Columns\"\r\n\t\t\t\t\t\t\t\t\tgetOptionLabel={(d) => d.title}\r\n\t\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ isDownloadDialogOpen: false })}\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\tCancel\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nSimulationCreditCardInterests.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool,\r\n};\r\n\r\nexport default withArtifex(SimulationCreditCardInterests, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport {\r\n\tGenericSelectInput,\r\n\tGenericDateInput,\r\n\tGenericExpansionPanel,\r\n\tGenericRadioInput,\r\n\tGenericGrid,\r\n\tGenericDialog,\r\n\tGenericAlert,\r\n\tGenericDialogActions,\r\n\tGenericLabel,\r\n\tGenericTitle,\r\n\tGenericCheckInput\r\n} from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Select from \"react-select\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent.jsx\";\r\nimport CardComponent from \"views/Components/CardComponent.jsx\";\r\n\r\nclass SimulationCreditCardPayments extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient()\r\n\t\t\t\t? ClientHelper.GetClientRowId()\r\n\t\t\t\t: undefined,\r\n\t\t\tProgramCode: \"\",\r\n\t\t\t// FromDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\t// ToDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tShowRemPayment: false\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tvModel: {},\r\n\t\t};\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient()\r\n\t\t\t\t? ClientHelper.GetClientId()\r\n\t\t\t\t: undefined,\r\n\t\t};\r\n\r\n\t\tthis.parameterProduct = {};\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"Client\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"CustomerName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Number\",\r\n\t\t\t\taccessor: \"CustomerNumber\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Settlement Date\",\r\n\t\t\t\taccessor: \"SettlementDate\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"End of Date\",\r\n\t\t\t\taccessor: \"EodDate\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Payment Amount\",\r\n\t\t\t\taccessor: \"TotalPaymentAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Remaining Payment Amount\",\r\n\t\t\t\taccessor: \"RemPaymentAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t];\r\n\r\n\t\tthis.trxTable = React.createRef();\r\n\t}\r\n\r\n\tshowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t\t),\r\n\t\t});\r\n\t};\r\n\tsetValueToState = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t};\r\n\tshowLoading() {\r\n\t\tthis.setState({ isLoading: true });\r\n\t}\r\n\r\n\thideLoading() {\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach((c) => {\r\n\t\t\tif (\r\n\t\t\t\tc.accessor != \"Actions\" &&\r\n\t\t\t\tc.accessor != \"ED\" &&\r\n\t\t\t\t(c.show == undefined || c.show)\r\n\t\t\t) {\r\n\t\t\t\ttrxColumns.push({\r\n\t\t\t\t\tvalue: c.accessor,\r\n\t\t\t\t\ttitle: c.Header,\r\n\t\t\t\t\tcolumntype: c.ColumnType,\r\n\t\t\t\t\ttype: c.type,\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({\r\n\t\t\tisDownloadDialogOpen: true,\r\n\t\t\tGridKeyValueList: trxColumns,\r\n\t\t\tExportSelectedColumns: trxColumns,\r\n\t\t});\r\n\t};\r\n\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t});\r\n\t};\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.props.showMessage(\r\n\t\t\t\t\"warning\",\r\n\t\t\t\t\"Export Report Type not selected\",\r\n\t\t\t\t\"Select Export Report Type to continue\"\r\n\t\t\t);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// if (\r\n\t\t// \tthis.state.ExportReportType == \"PDF\" &&\r\n\t\t// \tthis.state.ExportSelectedColumns.length > 15\r\n\t\t// ) {\r\n\t\t// \tthis.props.showMessage(\r\n\t\t// \t\t\"warning\",\r\n\t\t// \t\t\"PDF document cannot exceed 15 columns\",\r\n\t\t// \t\t\"PDF document cannot exceed 15 columns\"\r\n\t\t// \t);\r\n\t\t// \treturn;\r\n\t\t// }\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tthis.props.showConfirmMessage(\r\n\t\t\t\"question\",\r\n\t\t\t\"Long Process Warning\",\r\n\t\t\t\"This process may take a while. Continue ?\",\r\n\t\t\t() => {\r\n\t\t\t\tthis.hideAlert();\r\n\t\t\t\tconst { model } = this.state;\r\n\t\t\t\tmodel.IsClientBalanceScreen = true;\r\n\r\n\t\t\t\t// Add jsonFile\r\n\t\t\t\tvar jsonColList = [];\r\n\r\n\t\t\t\tvar trxColumns = {};\r\n\t\t\t\tthis.state.ExportSelectedColumns.map((c) => {\r\n\t\t\t\t\ttrxColumns[c.value] = {\r\n\t\t\t\t\t\tvalue: c.value,\r\n\t\t\t\t\t\ttitle: c.title,\r\n\t\t\t\t\t\tcolumntype: c.columntype,\r\n\t\t\t\t\t\ttype: c.type,\r\n\t\t\t\t\t};\r\n\t\t\t\t});\r\n\t\t\t\tjsonColList.push(trxColumns);\r\n\r\n\t\t\t\tmodel[\"jsonFile\"] = {\r\n\t\t\t\t\tcolmns: jsonColList,\r\n\t\t\t\t\tformat: this.state.ExportReportType,\r\n\t\t\t\t\ttitle: \"Simulation Credit Card Payments Report\",\r\n\t\t\t\t};\r\n\r\n\t\t\t\tthis.setState({ isLoading: true });\r\n\t\t\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\t\t\"/lmsapi/v1.0/FeeAndCodeBasedTransaction/DownloadSimulationCreditCardPayments\",\r\n\t\t\t\t\tmodel,\r\n\t\t\t\t\t(responseData) => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\t\tthis.props.showMessage(\r\n\t\t\t\t\t\t\t\t\"error\",\r\n\t\t\t\t\t\t\t\t\"Error\",\r\n\t\t\t\t\t\t\t\tresponseData.ErrorDescription\r\n\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t(errorMessage) => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t\t\t},\r\n\t\t\t\t\tthis.props.showMessage\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\topenExportDialog = () => {\r\n\t\tthis.setState({\r\n\t\t\tisDownloadDialogOpen: true,\r\n\t\t});\r\n\t};\r\n\r\n\tcloseExportDialog = () => {\r\n\t\tthis.setState({\r\n\t\t\tisDownloadDialogOpen: false,\r\n\t\t});\r\n\t};\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Simulation Credit Card Payments\");\r\n\t\tthis.props.setAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (name === \"UniqueClientId\") {\r\n\t\t\tdelete model.ClientCustomerId;\r\n\t\t\tdelete model.CustomerNumber;\r\n\t\t\tdelete model.CardId;\r\n\t\t\tdelete model.CardTokenNumber;\r\n\t\t}\r\n\t\tif (name === \"Customer\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.ClientCustomerId = newValue.Id;\r\n\t\t\t\tmodel.CustomerNumber = newValue.CustomerNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.ClientCustomerId;\r\n\t\t\t\tdelete model.CustomerNumber;\r\n\t\t\t\tdelete model.CardId;\r\n\t\t\t\tdelete model.CardTokenNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (name === \"Card\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.CardId = newValue.CardId;\r\n\t\t\t\tmodel.CardTokenNumber = newValue.CardTokenNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.CardId;\r\n\t\t\t\tdelete model.CardTokenNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\tValueChangedForExport = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t};\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tisEdit: false,\r\n\t\t\tindex: -1,\r\n\t\t});\r\n\t};\r\n\r\n\tHandleSearch = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel.ProgramCode = this.ProgramCode;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/lmsapi/v1.0/FeeAndCodeBasedTransaction/GetSimulationCreditCardPayments\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\r\n\t\t\t\t\t\t\"error\",\r\n\t\t\t\t\t\t\"Error\",\r\n\t\t\t\t\t\tresponseData.ErrorDescription\r\n\t\t\t\t\t);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\r\n\t\tvar errorList = [];\r\n\r\n\t\tvModel.UniqueClientId = !model.UniqueClientId;\r\n\t\tif (vModel.UniqueClientId) errorList.push(\"Client cannot be empty.\");\r\n\r\n\t\tvModel.ClientCustomerId = !model.ClientCustomerId && !model.ShowRemPayment;\r\n\t\tif (vModel.ClientCustomerId) errorList.push(\"Customer cannot be empty.\");\r\n\r\n\t\tif (errorList.length > 0) {\r\n\t\t\tshowValidationErrors(errorList);\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t};\r\n\r\n\tGetModel = () => {\r\n\t\treturn this.state.model;\r\n\t};\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tFillCustomer = (customer) => {\r\n\t\tthis.HandleChange(\"Customer\", customer);\r\n\t}\r\n\r\n\t// FillCard = (card) => {\r\n\t// \tthis.HandleChange(\"Card\", card);\r\n\t// }\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, isLoading, vModel } = this.state;\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t this.ExportClick(),\r\n\t\t\t\t\t\t\tDisabled: Disabled,\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t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getOptionLabel={(d) => d.title}\r\n\t\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ isDownloadDialogOpen: false })}\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\tCancel\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nSimulationCreditCardPayments.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool,\r\n};\r\n\r\nexport default withArtifex(SimulationCreditCardPayments, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport {\r\n\tGenericSelectInput,\r\n\tGenericDateInput,\r\n\tGenericExpansionPanel,\r\n\tGenericRadioInput,\r\n\tGenericGrid,\r\n\tGenericDialog,\r\n\tGenericAlert,\r\n\tGenericDialogActions,\r\n\tGenericLabel,\r\n\tGenericTitle,\r\n\tGenericNumberInput,\r\n\tGenericCheckInput\r\n} from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Select from \"react-select\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent.jsx\";\r\nimport CardComponent from \"views/Components/CardComponent.jsx\";\r\n\r\nclass SimulationCreditCardTransactions extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient()\r\n\t\t\t\t? ClientHelper.GetClientRowId()\r\n\t\t\t\t: undefined,\r\n\t\t\tProgramCode: \"\",\r\n\t\t\t// FromDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\t// ToDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tShowRemPayment: false,\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tvModel: {},\r\n\t\t};\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient()\r\n\t\t\t\t? ClientHelper.GetClientId()\r\n\t\t\t\t: undefined,\r\n\t\t};\r\n\r\n\t\tthis.parameterBucketType = { ParameterCode: \"BucketType\", ParameterValue6: \"1\" };\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"Client\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"CustomerName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Number\",\r\n\t\t\t\taccessor: \"CustomerNumber\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Settlement Date\",\r\n\t\t\t\taccessor: \"SettlementDate\",\r\n\t\t\t\ttype: GridColumnType.Date,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"End of Date\",\r\n\t\t\t\taccessor: \"EodDate\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Fee Record\",\r\n\t\t\t\taccessor: \"IsFeeRecord\",\r\n\t\t\t\ttype: GridColumnType.YesNo,\r\n\t\t\t\tColumnType: GridColumnType.YesNo\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Remaining Bucket Amount\",\r\n\t\t\t\taccessor: \"RemBucketAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reference Number\",\r\n\t\t\t\taccessor: \"ReferenceNumber\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Insert Date Time\",\r\n\t\t\t\taccessor: \"TransactionInsertDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Description\",\r\n\t\t\t\taccessor: \"TxnDescription\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Code Id\",\r\n\t\t\t\taccessor: \"TrxCodeId\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Code\",\r\n\t\t\t\taccessor: \"TrxCode\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Statement Begin Date\",\r\n\t\t\t\taccessor: \"StatementBeginDate\",\r\n\t\t\t\ttype: GridColumnType.Date,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Statement End Date\",\r\n\t\t\t\taccessor: \"StatementEndDate\",\r\n\t\t\t\ttype: GridColumnType.Date,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Bucket Type\",\r\n\t\t\t\taccessor: \"BucketType.ParameterDesc\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Bucket Amount\",\r\n\t\t\t\taccessor: \"BucketAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Processed\",\r\n\t\t\t\taccessor: \"IsProcessed\",\r\n\t\t\t\ttype: GridColumnType.YesNo,\r\n\t\t\t\tColumnType: GridColumnType.YesNo\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Processed Date Time\",\r\n\t\t\t\taccessor: \"ProcessedDateTime\",\r\n\t\t\t\ttype: GridColumnType.Date,\r\n\t\t\t},\r\n\t\t];\r\n\r\n\t\tthis.trxTable = React.createRef();\r\n\t}\r\n\r\n\tshowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t\t),\r\n\t\t});\r\n\t};\r\n\tsetValueToState = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t};\r\n\tshowLoading() {\r\n\t\tthis.setState({ isLoading: true });\r\n\t}\r\n\r\n\thideLoading() {\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach((c) => {\r\n\t\t\tif (\r\n\t\t\t\tc.accessor != \"Actions\" &&\r\n\t\t\t\tc.accessor != \"ED\" &&\r\n\t\t\t\t(c.show == undefined || c.show)\r\n\t\t\t) {\r\n\t\t\t\ttrxColumns.push({\r\n\t\t\t\t\tvalue: c.accessor,\r\n\t\t\t\t\ttitle: c.Header,\r\n\t\t\t\t\tcolumntype: c.ColumnType,\r\n\t\t\t\t\ttype: c.type,\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({\r\n\t\t\tisDownloadDialogOpen: true,\r\n\t\t\tGridKeyValueList: trxColumns,\r\n\t\t\tExportSelectedColumns: trxColumns,\r\n\t\t});\r\n\t};\r\n\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t});\r\n\t};\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.props.showMessage(\r\n\t\t\t\t\"warning\",\r\n\t\t\t\t\"Export Report Type not selected\",\r\n\t\t\t\t\"Select Export Report Type to continue\"\r\n\t\t\t);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// if (\r\n\t\t// \tthis.state.ExportReportType == \"PDF\" &&\r\n\t\t// \tthis.state.ExportSelectedColumns.length > 15\r\n\t\t// ) {\r\n\t\t// \tthis.props.showMessage(\r\n\t\t// \t\t\"warning\",\r\n\t\t// \t\t\"PDF document cannot exceed 15 columns\",\r\n\t\t// \t\t\"PDF document cannot exceed 15 columns\"\r\n\t\t// \t);\r\n\t\t// \treturn;\r\n\t\t// }\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tthis.props.showConfirmMessage(\r\n\t\t\t\"question\",\r\n\t\t\t\"Long Process Warning\",\r\n\t\t\t\"This process may take a while. Continue ?\",\r\n\t\t\t() => {\r\n\t\t\t\tthis.hideAlert();\r\n\t\t\t\tconst { model } = this.state;\r\n\t\t\t\tmodel.IsClientBalanceScreen = true;\r\n\r\n\t\t\t\t// Add jsonFile\r\n\t\t\t\tvar jsonColList = [];\r\n\r\n\t\t\t\tvar trxColumns = {};\r\n\t\t\t\tthis.state.ExportSelectedColumns.map((c) => {\r\n\t\t\t\t\ttrxColumns[c.value] = {\r\n\t\t\t\t\t\tvalue: c.value,\r\n\t\t\t\t\t\ttitle: c.title,\r\n\t\t\t\t\t\tcolumntype: c.columntype,\r\n\t\t\t\t\t\ttype: c.type,\r\n\t\t\t\t\t};\r\n\t\t\t\t});\r\n\t\t\t\tjsonColList.push(trxColumns);\r\n\r\n\t\t\t\tmodel[\"jsonFile\"] = {\r\n\t\t\t\t\tcolmns: jsonColList,\r\n\t\t\t\t\tformat: this.state.ExportReportType,\r\n\t\t\t\t\ttitle: \"Simulation Credit Card Transactions Report\",\r\n\t\t\t\t};\r\n\r\n\t\t\t\tthis.setState({ isLoading: true });\r\n\t\t\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\t\t\"/lmsapi/v1.0/FeeAndCodeBasedTransaction/DownloadSimulationCreditCardTransactions\",\r\n\t\t\t\t\tmodel,\r\n\t\t\t\t\t(responseData) => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\t\tthis.props.showMessage(\r\n\t\t\t\t\t\t\t\t\"error\",\r\n\t\t\t\t\t\t\t\t\"Error\",\r\n\t\t\t\t\t\t\t\tresponseData.ErrorDescription\r\n\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t(errorMessage) => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t\t\t},\r\n\t\t\t\t\tthis.props.showMessage\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\topenExportDialog = () => {\r\n\t\tthis.setState({\r\n\t\t\tisDownloadDialogOpen: true,\r\n\t\t});\r\n\t};\r\n\r\n\tcloseExportDialog = () => {\r\n\t\tthis.setState({\r\n\t\t\tisDownloadDialogOpen: false,\r\n\t\t});\r\n\t};\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Simulation Credit Card Transactions\");\r\n\t\tthis.props.setAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (name === \"UniqueClientId\") {\r\n\t\t\tdelete model.ClientCustomerId;\r\n\t\t\tdelete model.CustomerNumber;\r\n\t\t\tdelete model.CardId;\r\n\t\t\tdelete model.CardTokenNumber;\r\n\t\t}\r\n\t\tif (name === \"Customer\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.ClientCustomerId = newValue.Id;\r\n\t\t\t\tmodel.CustomerNumber = newValue.CustomerNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.ClientCustomerId;\r\n\t\t\t\tdelete model.CustomerNumber;\r\n\t\t\t\tdelete model.CardId;\r\n\t\t\t\tdelete model.CardTokenNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (name === \"Card\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.CardId = newValue.CardId;\r\n\t\t\t\tmodel.CardTokenNumber = newValue.CardTokenNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.CardId;\r\n\t\t\t\tdelete model.CardTokenNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\tValueChangedForExport = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t};\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tisEdit: false,\r\n\t\t\tindex: -1,\r\n\t\t});\r\n\t};\r\n\r\n\tHandleSearch = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel.ProgramCode = this.ProgramCode;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/lmsapi/v1.0/FeeAndCodeBasedTransaction/GetSimulationCreditCardTransactions\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\r\n\t\t\t\t\t\t\"error\",\r\n\t\t\t\t\t\t\"Error\",\r\n\t\t\t\t\t\tresponseData.ErrorDescription\r\n\t\t\t\t\t);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\r\n\t\tvar errorList = [];\r\n\r\n\t\tvModel.hasReferenceNumber = model.ReferenceNumber != undefined && model.ReferenceNumber != null && model.ReferenceNumber > 0;\r\n\t\t\r\n\t\tif (!vModel.hasReferenceNumber) {\r\n\t\t\tvModel.UniqueClientId = !model.UniqueClientId;\r\n\t\t\tif (vModel.UniqueClientId) errorList.push(\"Client cannot be empty.\");\r\n\r\n\t\t\tvModel.ClientCustomerId = !model.ClientCustomerId && !model.ShowRemPayment;\r\n\t\t\tif (vModel.ClientCustomerId) errorList.push(\"Customer cannot be empty.\");\r\n\t\t}\r\n\r\n\t\tif (errorList.length > 0) {\r\n\t\t\tshowValidationErrors(errorList);\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t};\r\n\r\n\tGetModel = () => {\r\n\t\treturn this.state.model;\r\n\t};\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tFillCustomer = (customer) => {\r\n\t\tthis.HandleChange(\"Customer\", customer);\r\n\t}\r\n\r\n\t// FillCard = (card) => {\r\n\t// \tthis.HandleChange(\"Card\", card);\r\n\t// }\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, isLoading, vModel } = this.state;\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t this.ExportClick(),\r\n\t\t\t\t\t\t\tDisabled: Disabled,\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After}\r\n\t\t\t\t/>\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{/* \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t */}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tthis.setState({ ExportSelectedColumns: value })\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\t\tname=\"Columns\"\r\n\t\t\t\t\t\t\t\t\tgetOptionLabel={(d) => d.title}\r\n\t\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ isDownloadDialogOpen: false })}\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\tCancel\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nSimulationCreditCardTransactions.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool,\r\n};\r\n\r\nexport default withArtifex(SimulationCreditCardTransactions, {});\r\n","import React from \"react\";\r\n// nodejs library that concatenates classes\r\nimport classNames from \"classnames\";\r\n// nodejs library to set properties for components\r\nimport PropTypes from \"prop-types\";\r\n// @material-ui/core components\r\nimport withStyles from \"@material-ui/core/styles/withStyles\";\r\n// @material-ui/icons\r\n\r\n// core components\r\nimport cardHeaderStyle from \"assets/jss/material-dashboard-pro-react/components/cardHeaderStyle.jsx\";\r\n\r\nfunction CardHeader({ ...props }) {\r\n const {\r\n classes,\r\n className,\r\n children,\r\n color,\r\n plain,\r\n image,\r\n contact,\r\n signup,\r\n stats,\r\n icon,\r\n text,\r\n ...rest\r\n } = props;\r\n const cardHeaderClasses = classNames({\r\n [classes.cardHeader]: true,\r\n [classes[color + \"CardHeader\"]]: color,\r\n [classes.cardHeaderPlain]: plain,\r\n [classes.cardHeaderImage]: image,\r\n [classes.cardHeaderContact]: contact,\r\n [classes.cardHeaderSignup]: signup,\r\n [classes.cardHeaderStats]: stats,\r\n [classes.cardHeaderIcon]: icon,\r\n [classes.cardHeaderText]: text,\r\n [className]: className !== undefined\r\n });\r\n return (\r\n
\r\n {children}\r\n
\r\n );\r\n}\r\n\r\nCardHeader.propTypes = {\r\n classes: PropTypes.object.isRequired,\r\n className: PropTypes.string,\r\n color: PropTypes.oneOf([\r\n \"warning\",\r\n \"success\",\r\n \"danger\",\r\n \"info\",\r\n \"primary\",\r\n\t \"rose\",\r\n\t \"white\",\r\n\t \"black\"\r\n ]),\r\n plain: PropTypes.bool,\r\n image: PropTypes.bool,\r\n contact: PropTypes.bool,\r\n signup: PropTypes.bool,\r\n stats: PropTypes.bool,\r\n icon: PropTypes.bool,\r\n text: PropTypes.bool\r\n};\r\n\r\nexport default withStyles(cardHeaderStyle)(CardHeader);\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport { EditIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport CardComponent from \"views/Components/CardComponent.jsx\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericSelectInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton.jsx\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant.js\";\r\nimport ClientDisputeAction from \"views/PPaid/Clearing/Dispute/ClientDisputeAction.jsx\";\r\n\r\nclass ClientDipsute extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t\tClientCustomerId: null,\r\n\t\t\tCustomerNumber: null,\r\n\t\t\tCardTokenNumber: null,\r\n\t\t\tCardId: null\r\n\t\t};\r\n\r\n\t\tthis.InitialDisputeModel = {\r\n\t\t\tDisputeCurrencyId: 0\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tvModel: {},\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tgeneralModel: { BankAccount: {}, WalletAccount: {}, ...this.initialModel },\r\n\t\t\tembossModel: { ...this.initialModel },\r\n\t\t\tstatisticModel: { ...this.initialModel },\r\n\t\t\ttransactions: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tactiveIndex: 0,\r\n\t\t\tisDisputeActionDialogOpen: false,\r\n\t\t\ttransactionData: {},\r\n\t\t\tdisputeModel: { ...this.InitialDisputeModel }\r\n\t\t};\r\n\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.maxLength26 = { maxLength: 26 };\r\n\t\tthis.maxLength19 = { maxLength: 19 };\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : undefined\r\n\t\t};\r\n\r\n\t\tthis.parameterPeriod = { ParameterCode: \"LoadingPeriod\" };\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\r\n\t\tthis.parameterProduct = {};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Client Dispute\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t}\r\n\r\n\thandleLoadTaskPoolCompleted = () => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\thandleLoadTaskPoolAppend = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (name === \"UniqueClientId\") {\r\n\t\t\tdelete model.ClientCustomerId;\r\n\t\t\tdelete model.CustomerNumber;\r\n\t\t\tdelete model.CardId;\r\n\t\t\tdelete model.CardTokenNumber;\r\n\t\t}\r\n\t\tif (name === \"Customer\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.ClientCustomerId = newValue.Id;\r\n\t\t\t\tmodel.CustomerNumber = newValue.CustomerNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.ClientCustomerId;\r\n\t\t\t\tdelete model.CustomerNumber;\r\n\t\t\t\tdelete model.CardId;\r\n\t\t\t\tdelete model.CardTokenNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (name === \"Card\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.CardId = newValue.CardId;\r\n\t\t\t\tmodel.CardTokenNumber = newValue.CardTokenNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.CardId;\r\n\t\t\t\tdelete model.CardTokenNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\ttransactions: []\r\n\t\t});\r\n\t}\r\n\r\n\tHandleSearch = async () => {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/prepaidapi/v1.0/TransactionData/SearchTransactionWithDispute\", {\r\n\t\t\tUniqueClientId: model.UniqueClientId,\r\n\t\t\tClientCustomerId: model.ClientCustomerId,\r\n\t\t\tCardId: model.CardId\r\n\t\t});\r\n\r\n\t\tif (result !== null)\r\n\t\t\tthis.setState({ transactions: result, isLoading: false });\r\n\t\telse\r\n\t\t\tthis.setState({ transactions: [] });\r\n\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tif (!model.UniqueClientId) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Client not selected\", \"Select the Client to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!model.ClientCustomerId) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Customer not selected\", \"Select the Customer to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!model.CardId) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Card not selected\", \"Select the Card to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tTabIndexChanged = (index) => {\r\n\t\tthis.setState({ activeIndex: index });\r\n\t}\r\n\r\n\tFillCustomer = (customer) => {\r\n\t\tthis.HandleChange(\"Customer\", customer);\r\n\t}\r\n\r\n\tFillCard = (card) => {\r\n\t\tthis.HandleChange(\"Card\", card);\r\n\t}\r\n\r\n\tHandleDispute = async (data, index) => {\r\n\t\tvar transactionData = this.state.transactions[index];\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/prepaidapi/v1.0/ClearingDispute/GetClientDispute\", { TransactionDataId: transactionData.Id });\r\n\r\n\t\tif (result !== null) {\r\n\t\t\tthis.setState({ isDisputeActionDialogOpen: true, disputeModel: result, transactionData: transactionData, isLoading: false });\r\n\t\t} else {\r\n\t\t\ttransactionData.ClientDispute = { ...this.InitialDisputeModel };\r\n\t\t\tthis.setState({ isDisputeActionDialogOpen: true, disputeModel: transactionData.ClientDispute, transactionData: transactionData, isLoading: false });\r\n\t\t}\r\n\t}\r\n\r\n\tHandleActionDialogClose = () => {\r\n\t\tthis.setState({ isDisputeActionDialogOpen: false });\r\n\t}\r\n\r\n\tDisputeModelChange = (modelFunction) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.disputeModel || {};\r\n\r\n\t\t\tif (modelFunction)\r\n\t\t\t\tmodel = modelFunction(model);\r\n\r\n\t\t\treturn { disputeModel: model };\r\n\t\t});\r\n\t}\r\n\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, isLoading, model, transactions, vModel } = this.state;\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\t\treturn (\r\n\t\t\t<>\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t { this.HandleDispute(row.original, row.index); }} />\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\tsortable: false,\r\n\t\t\t\t\t\t\t\t\t\t\t\tfilterable: false,\r\n\t\t\t\t\t\t\t\t\t\t\t\tresizable: false,\r\n\t\t\t\t\t\t\t\t\t\t\t\twidth: 60\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Reference Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ReferenceNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Account Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"AccountNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Account Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"AccountName\"\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Masked Card Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"MaskedCardNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Billing Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"BillingAmount\"\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Code\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ChannelName\"\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Cardholder Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"CardOwnerName\"\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Card Masked Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"MaskedCardNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Available Balance\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"WalletBalance\",\r\n\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Merchant\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Merchant\"\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Merchant City\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"MerchantCity\"\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Response Code\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ResponseCode\"\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Original Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionAmount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Biling Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"BillingAmount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Fee Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"FeeAmount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Terminal Type\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TerminalType\"\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Type\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"CardTransactionSource\"\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Settlement Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"SettlementAmount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Settlement Date\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"SettlementDate\",\r\n\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Error Code\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ErrorCode\"\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Error Description\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ErrorDescription\"\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Card Brand Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"CardBrandName\"\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Description\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Description\"\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\r\n\r\n\t\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\tHideButton={true} />\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nClientDipsute.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(ClientDipsute, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport { EditIcon } from \"core/Icons\";\r\nimport { TaskPool } from \"core/TaskPool\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericSelectInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton.jsx\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\nimport ClientDisputeReportAction from \"views/PPaid/Clearing/Dispute/ClientDisputeReportAction.jsx\";\r\n\r\n\r\nclass ClientDipsuteReport extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tgeneralModel: { BankAccount: {}, WalletAccount: {}, ...this.initialModel },\r\n\t\t\tembossModel: { ...this.initialModel },\r\n\t\t\tstatisticModel: { ...this.initialModel },\r\n\t\t\ttransactions: [],\r\n\t\t\tdisputeData: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tactiveIndex: 0,\r\n\t\t\tisDisputeActionDialogOpen: false\r\n\t\t}\r\n\r\n\t\tthis.loadTaskPool = new TaskPool(this.handleLoadTaskPoolAppend, this.handleLoadTaskPoolCompleted);\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.maxLength26 = { maxLength: 26 };\r\n\t\tthis.maxLength19 = { maxLength: 19 };\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : undefined\r\n\t\t};\r\n\r\n\t\tthis.parameterPeriod = { ParameterCode: \"LoadingPeriod\" };\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\r\n\t\tthis.parameterProduct = {};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Client Dispute Report\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t}\r\n\r\n\thandleLoadTaskPoolCompleted = () => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\thandleLoadTaskPoolAppend = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (name === \"UniqueClientId\") {\r\n\t\t\tdelete model.ClientCustomerId;\r\n\t\t\tdelete model.CustomerNumber;\r\n\t\t\tdelete model.CardId;\r\n\t\t\tdelete model.CardTokenNumber;\r\n\t\t}\r\n\t\tif (name === \"Customer\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.ClientCustomerId = newValue.Id;\r\n\t\t\t\tmodel.CustomerNumber = newValue.CustomerNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.ClientCustomerId;\r\n\t\t\t\tdelete model.CustomerNumber;\r\n\t\t\t\tdelete model.CardId;\r\n\t\t\t\tdelete model.CardTokenNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (name === \"Card\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.CardId = newValue.CardId;\r\n\t\t\t\tmodel.CardTokenNumber = newValue.CardTokenNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.CardId;\r\n\t\t\t\tdelete model.CardTokenNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\ttransactions: []\r\n\t\t});\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\r\n\t\tthis.loadTaskPool.AppendTask(\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/prepaidapi/v1.0/ClearingDispute/GetClientDisputeAll\",\r\n\t\t\t\tthis.state.model,\r\n\t\t\t\t(responseData) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\t\ttransactions: responseData.Item\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\t\ttransactions: []\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t(error) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t)\r\n\t\t);\r\n\t}\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tTabIndexChanged = (index) => {\r\n\t\tthis.setState({ activeIndex: index });\r\n\t}\r\n\r\n\tFillCustomer = (customer) => {\r\n\t\tthis.HandleChange(\"Customer\", customer);\r\n\t}\r\n\r\n\tFillCard = (card) => {\r\n\t\tthis.HandleChange(\"Card\", card);\r\n\t}\r\n\r\n\tHandleDispute = (data, index) => {\r\n\r\n\t\tvar disputeData = this.state.transactions[index];\r\n\r\n\t\tthis.setState({ isDisputeActionDialogOpen: true, disputeData: disputeData });\r\n\t}\r\n\r\n\tHandleActionDialogClose = () => {\r\n\t\tthis.setState({ isDisputeActionDialogOpen: false });\r\n\t\tthis.HandleSearch();\r\n\t}\r\n\r\n\tDisputeModelChange = (modelFunction) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.disputeData || {};\r\n\r\n\t\t\tif (modelFunction)\r\n\t\t\t\tmodel = modelFunction(model);\r\n\r\n\t\t\treturn { disputeData: model };\r\n\t\t});\r\n\t}\r\n\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, isLoading, model, transactions } = this.state;\r\n\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\r\n\t\treturn (\r\n\t\t\t<>\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t { this.HandleDispute(row.original, row.index); }} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\tsortable: false,\r\n\t\t\t\t\t\t\t\t\t\t\t\tfilterable: false,\r\n\t\t\t\t\t\t\t\t\t\t\t\tresizable: false,\r\n\t\t\t\t\t\t\t\t\t\t\t\tshow: !IsClient,\r\n\t\t\t\t\t\t\t\t\t\t\t\twidth: 60\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Client Dispute Status\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ClientDisputeStatus\"\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Client Reson Code\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ClientResonCode\"\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Client Document Status\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ClientDocumentStatus\"\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Dispute Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"DisputeAmount\"\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Dispute Entry Date\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"DisputeEntryDate\",\r\n\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateUtc,\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Resolve Date\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ResolveDate\",\r\n\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateUtc,\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Resolve Explanation\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ResolveExplanation\"\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Is Onus\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"IsOnusDesc\"\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\r\n\r\n\t\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\tHideButton={true} />\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nClientDipsuteReport.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(ClientDipsuteReport, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericTextInput, GenericTitle, GenericSelectInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent\";\r\nimport CardComponent from \"views/Components/CardComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\n\r\nclass DisputeReport extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t\tIsMainCard: true,\r\n\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tdetailModel: {},\r\n\t\t\tdisputeModel: {},\r\n\t\t\tmodel: {\r\n\t\t\t},\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tisDialogOpen: false\r\n\t\t}\r\n\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.maxLength26 = { maxLength: 26 };\r\n\t\tthis.maxLength19 = { maxLength: 19 };\r\n\t\tthis.maxLength12 = { maxLength: 12 };\r\n\t\tthis.maxLength40 = { maxLength: 40 };\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : undefined\r\n\t\t};\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\r\n\t\tthis.parameterProduct = {};\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Pgm Code\",\r\n\t\t\t\taccessor: \"PgmCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"ARN\",\r\n\t\t\t\taccessor: \"ARN\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Issuer Acquirer Flag\",\r\n\t\t\t\taccessor: \"IssuerAcquirerFlag\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Number\",\r\n\t\t\t\taccessor: \"CardNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Settlement Amount\",\r\n\t\t\t\taccessor: \"SettlementAmount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Dispute Amount\",\r\n\t\t\t\taccessor: \"DisputeAmount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Settlement Currency\",\r\n\t\t\t\taccessor: \"SettlementCurrency\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Start Date\",\r\n\t\t\t\taccessor: \"StartDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Resolve Date\",\r\n\t\t\t\taccessor: \"ResolveDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Chargeback Status\",\r\n\t\t\t\taccessor: \"ChargebackStatusDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Chargeback Reason Code\",\r\n\t\t\t\taccessor: \"ChargebackReasonCodeDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"SecondChargeback Reason Code\",\r\n\t\t\t\taccessor: \"SecondChargebackReasonCodeDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Second Chargeback Status\",\r\n\t\t\t\taccessor: \"SecondChargebackStatusDesc\"\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Representment Status\",\r\n\t\t\t\taccessor: \"RepresentmentStatusDesc\"\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Retrieval Request Status\",\r\n\t\t\t\taccessor: \"RetrievalRequestStatusDesc\"\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Retrieval Request Reason Code\",\r\n\t\t\t\taccessor: \"RetrievalRequestReasonCodeDesc\"\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Retrieval Response Status\",\r\n\t\t\t\taccessor: \"RetrievalResponseStatusDesc\"\r\n\t\t\t},\r\n\r\n\r\n\t\t];\r\n\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Dispute Report\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (name === \"UniqueClientId\") {\r\n\t\t\tdelete model.ClientCustomerId;\r\n\t\t\tdelete model.CustomerNumber;\r\n\t\t\tdelete model.CardId;\r\n\t\t\tdelete model.CardTokenNumber;\r\n\t\t}\r\n\t\tif (name === \"Customer\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.ClientCustomerId = newValue.Id;\r\n\t\t\t\tmodel.CustomerNumber = newValue.CustomerNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.ClientCustomerId;\r\n\t\t\t\tdelete model.CustomerNumber;\r\n\t\t\t\tdelete model.CardId;\r\n\t\t\t\tdelete model.CardTokenNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (name === \"Card\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.CardId = newValue.CardId;\r\n\t\t\t\tmodel.CardTokenNumber = newValue.CardTokenNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.CardId;\r\n\t\t\t\tdelete model.CardTokenNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, isEdit: false, index: -1 });\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST\r\n\t\t\t(\r\n\t\t\t\t\"/prepaidapi/v1.0/ClearingDispute/Search\",\r\n\t\t\t\tmodel,\r\n\t\t\t\t(responseData) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\t\tlist: responseData.Item\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t},\r\n\t\t\t\t(error) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t)\r\n\r\n\t}\r\n\r\n\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tDetailsModelChange = (modelFunction) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.detailModel || {};\r\n\r\n\t\t\tif (modelFunction)\r\n\t\t\t\tmodel = modelFunction(model);\r\n\r\n\t\t\treturn { detailModel: model };\r\n\t\t});\r\n\t}\r\n\r\n\tFillCustomer = (customer) => {\r\n\t\tthis.HandleChange(\"Customer\", customer);\r\n\t}\r\n\r\n\tFillCard = (card) => {\r\n\t\tthis.HandleChange(\"Card\", card);\r\n\t}\r\n\r\n\trender() {\r\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t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nDisputeReport.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(DisputeReport, {});","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport { DetailIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericTitle } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport MastercardClearingDetail from \"../MastercardClearingDetail\";\r\n\r\nclass MastercardFileReject extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t\tIsMainCard: true,\r\n\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tdetailModel: {},\r\n\t\t\tmodel: {},\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tisDialogOpen: false\r\n\t\t}\r\n\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.maxLength26 = { maxLength: 26 };\r\n\t\tthis.maxLength19 = { maxLength: 19 };\r\n\t\tthis.maxLength12 = { maxLength: 12 };\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : undefined\r\n\t\t};\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\r\n\t\tthis.parameterProduct = {};\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\twidth: 60\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Clearing Date\",\r\n\t\t\t\taccessor: \"ClearingDate\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Mti\",\r\n\t\t\t\taccessor: \"Mti\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Source Message Number ID\",\r\n\t\t\t\taccessor: \"Pds0138\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Source File ID\",\r\n\t\t\t\taccessor: \"Pds0280\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"File Name\",\r\n\t\t\t\taccessor: \"FileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"File ID\",\r\n\t\t\t\taccessor: \"Pds0105\"\r\n\t\t\t},\r\n\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"File Reject\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, isEdit: false, index: -1 });\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST\r\n\t\t\t(\r\n\t\t\t\t\"/prepaidapi/v1.0/MastercardClearing/GetAllMastercardFileReject\",\r\n\t\t\t\tmodel,\r\n\t\t\t\t(responseData) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\t\tlist:\r\n\t\t\t\t\t\t\t\tresponseData.Item.map(x => {\r\n\t\t\t\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\t\t\t\tActions: (\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t { this.setState({ isDialogOpen: true, detailModel: x.MastercardClearingTransaction }) }} />\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\tId: x.Id == null || undefined ? \"\" : x.Id,\r\n\t\t\t\t\t\t\t\t\t\tDe024: x.De024 == null || undefined ? \"\" : x.De024,\r\n\t\t\t\t\t\t\t\t\t\tDe072: x.De072 == null || undefined ? \"\" : x.De072,\r\n\t\t\t\t\t\t\t\t\t\tMti: x.Mti == null || undefined ? \"\" : x.Mti,\r\n\t\t\t\t\t\t\t\t\t\tPds0005: x.Pds0005 == null || undefined ? \"\" : x.Pds0005,\r\n\t\t\t\t\t\t\t\t\t\tPds0105: x.Pds0105 == null || undefined ? \"\" : x.Pds0105,\r\n\t\t\t\t\t\t\t\t\t\tPds0280: x.Pds0280 == null || undefined ? \"\" : x.Pds0280,\r\n\t\t\t\t\t\t\t\t\t\tClearingDate: x.ClearingDate == null || undefined ? 0 : x.ClearingDate,\r\n\t\t\t\t\t\t\t\t\t\tPds0138: x.Pds0138 == null || undefined ? 0 : x.Pds0138,\r\n\t\t\t\t\t\t\t\t\t\tFileName: x.FileName == null || undefined ? 0 : x.FileName,\r\n\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t},\r\n\t\t\t\t(error) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t);\r\n\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tlet { list } = this.state;\r\n\t\tconst tempModel = list[index];\r\n\t\tif (list[index].CardRequestId) {\r\n\t\t\ttempModel.Id = list[index].Id;\r\n\t\t}\r\n\t\tthis.setState({ isEdit: true, model: tempModel, index });\r\n\t}\r\n\r\n\tDetailsModelChange = (modelFunction) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.detailModel || {};\r\n\r\n\t\t\tif (modelFunction)\r\n\t\t\t\tmodel = modelFunction(model);\r\n\r\n\t\t\treturn { detailModel: model };\r\n\t\t});\r\n\t}\r\n\r\n\tDialogModelChange = (modelFunction) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.initialModel || {};\r\n\r\n\t\t\tif (modelFunction)\r\n\t\t\t\tmodel = modelFunction(model);\r\n\r\n\t\t\treturn { initialModel: model };\r\n\t\t});\r\n\t}\r\n\tCancelSelectCallback = () => {\r\n\t\tthis.setState({\r\n\t\t\tisDialogOpen: false\r\n\t\t});\r\n\t};\r\n\tHandleClickUpdate = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/prepaidapi/v1.0/MastercardClearing/MastercardClearingUpdateDetail\",\r\n\t\t\tthis.state.detailModel,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (responseData.IsSucceeded != false) {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tisDialogOpen: false\r\n\t\t\t\t\t});\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ dialogData: [] });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t});\r\n\t}\r\n\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, isLoading, index } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nMastercardFileReject.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(MastercardFileReject, {});","import GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { withArtifex } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport { GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nclass MastercardFileRejectDetail extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tdialog: {\r\n\t\t\t\tisOpen: false,\r\n\t\t\t\tdialogData: []\r\n\t\t\t},\r\n\t\t\tselected: -1,\r\n\t\t\tisLoading: false,\r\n\t\t\tPdsData: [],\r\n\t\t\tChipData: [],\r\n\t\t\tisPdsDialogOpen: false,\r\n\t\t\tisChipDialogOpen: false\r\n\t\t};\r\n\r\n\t\tthis.maxLength1 = { maxLength: 1 };\r\n\t\tthis.maxLength19 = { maxLength: 19 };\r\n\t\tthis.maxLength6 = { maxLength: 6 };\r\n\t\tthis.maxLength17 = { maxLength: 17 };\r\n\t\tthis.maxLength4 = { maxLength: 3 };\r\n\t\tthis.maxLength3 = { maxLength: 3 };\r\n\t\tthis.maxLength22 = { maxLength: 22 };\r\n\t\tthis.maxLength16 = { maxLength: 16 };\r\n\t\tthis.maxLength45 = { maxLength: 45 };\r\n\t\tthis.maxLength13 = { maxLength: 13 };\r\n\t\tthis.maxLength10 = { maxLength: 10 };\r\n\t\tthis.maxLength256 = { maxLength: 256 };\r\n\t\tthis.maxLength11 = { maxLength: 11 };\r\n\t\tthis.maxLength999 = { maxLength: 999 };\r\n\t\tthis.maxLength25 = { maxLength: 25 };\r\n\t\tthis.maxLength8 = { maxLength: 8 };\r\n\t\tthis.maxLength140 = { maxLength: 140 };\r\n\r\n\t}\r\n\r\n\tcomponentDidMount() \r\n\t{\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tthis.props.onModelChange(model => {\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\treturn model;\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model } = this.props;\r\n\t\tconst { isLoading } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t<>\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t{/* */}\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nMastercardFileRejectDetail.propTypes = {\r\n\tinitialModel: PropTypes.any,\r\n\tHandleChange: PropTypes.func,\r\n\tFillCallback: PropTypes.func,\r\n\tLabelMd: PropTypes.number,\r\n\tDisabled: PropTypes.bool,\r\n\tIsDialogOpen: PropTypes.any\r\n};\r\n\r\nexport default withArtifex(MastercardFileRejectDetail, {});","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericCheckInput, GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericSelectInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { SwitchNetworkType } from \"views/Constants/Constant\";\r\nimport MastercardClearingDetail from \"./MastercardClearingDetail\";\r\n\r\nclass IncomingBatchCorrection extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t\tIsMainCard: true,\r\n\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tdetailModel: {},\r\n\t\t\tmodel: {},\r\n\t\t\tlist: [],\r\n\t\t\tPostRequest: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tisDialogOpen: false\r\n\t\t}\r\n\r\n\t\tthis.Columns = [];\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.parameterNetworkId = { ParameterCode: \"SwitchNetworkType\" };\r\n\t\tthis.NetworkType = {};\r\n\r\n\r\n\t\tthis.maxLength26 = { maxLength: 26 };\r\n\t\tthis.maxLength19 = { maxLength: 19 };\r\n\t\tthis.maxLength12 = { maxLength: 12 };\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : undefined\r\n\t\t};\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\r\n\t\tthis.parameterProduct = {};\r\n\r\n\r\n\t}\r\n\tGetColumns = () => {\r\n\t\tconst { list } = this.state;\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\tlist.length > 0 &&\r\n\t\t\t\t\t this.CellValueChanged(name, value, row.index, true)}\r\n\t\t\t\t\t/>\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Clearing Date\",\r\n\t\t\t\taccessor: \"ClearingDate\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Issuer Acquirer Flag\",\r\n\t\t\t\taccessor: \"IssuerAcqueirerFlag\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Number\",\r\n\t\t\t\taccessor: \"CardNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Original Amount\",\r\n\t\t\t\taccessor: \"OrginalAmount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Settlement Amount\",\r\n\t\t\t\taccessor: \"SettlementAmount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"RRN\",\r\n\t\t\t\taccessor: \"RRN\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Processing Code\",\r\n\t\t\t\taccessor: \"ProcessingCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Direction\",\r\n\t\t\t\taccessor: \"Direction\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Clearing Date\",\r\n\t\t\t\taccessor: \"ClearingDate\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Validation Status\",\r\n\t\t\t\taccessor: \"ValidationStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Arn\",\r\n\t\t\t\taccessor: \"ARN\"\r\n\t\t\t},\r\n\r\n\t\t];\r\n\r\n\t\tthis.forceUpdate();\r\n\t}\r\n\tCellValueChanged = (name, value, index, isRole) => {\r\n\r\n\t\tconst { PostRequest, list } = this.state;\r\n\r\n\t\tlist[index].IsPostAvailable = value;\r\n\t\tvar Id = list[index].Id;\r\n\t\tif (value) {\r\n\t\t\tvar removeIndex = PostRequest.findIndex(x => x.Id == Id);\r\n\t\t\tif (removeIndex == -1) {\r\n\t\t\t\tPostRequest.push({ \"Id\": Id });\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tvar removeIndex = PostRequest.findIndex(x => x.Id == Id);\r\n\t\t\tif (removeIndex != -1)\r\n\t\t\t\tPostRequest.splice(removeIndex, 1);\r\n\t\t}\r\n\t\tthis.setState({ PostRequest, value, list });\r\n\t\tthis.GetColumns();\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Incoming Batch Correct\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\r\n\t\tthis.GetColumns();\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (name == \"NewworkId\") {\r\n\t\t\tthis.NetworkType = data.ParameterValue;\r\n\t\t}\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, isEdit: false, index: -1 });\r\n\t}\r\n\r\n\r\n\r\n\tValidate = () => {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tif (!model.NetworkId) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Network not selected\", \"Select the network type to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (!model.IncomingValidationCodeId) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Validation Code not selected\", \"Select the Validation Code.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\tHandleSearch = () => {\r\n\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tconst model = { ...this.state.model };\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tif (this.NetworkType == SwitchNetworkType.MasterCard)\r\n\t\t\tthis.Url = \"/prepaidapi/v1.0/MastercardClearing/GetAllMastercardTransaction\";\r\n\t\telse\r\n\t\t\tthis.Url = \"/prepaidapi/v1.0/VisaClearingTransaction/GetAllVisaTransaction\";\r\n\r\n\t\tProxy.POST\r\n\t\t\t(\r\n\t\t\t\tthis.Url,\r\n\t\t\t\tmodel,\r\n\t\t\t\t(responseData) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\t\tlist: responseData.Item, PostRequest: []\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\tthis.GetColumns();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t},\r\n\t\t\t\t(error) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t)\r\n\r\n\t}\r\n\r\n\tHandleSubmit = () => {\r\n\r\n\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\r\n\t\tif (this.NetworkType == SwitchNetworkType.MasterCard)\r\n\t\t\tthis.Url = \"/prepaidapi/v1.0/MastercardClearing/IncomingBatchCorrect\";\r\n\t\telse\r\n\t\t\tthis.Url = \"/prepaidapi/v1.0/VisaClearingTransaction/IncomingBatchCorrect\";\r\n\r\n\t\tconst { model } = this.state;\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST\r\n\t\t\t(\r\n\t\t\t\tthis.Url,\r\n\t\t\t\t{\r\n\t\t\t\t\t\"NetworkId\": model.NetworkId,\r\n\t\t\t\t\t\"PostRequest\": this.state.PostRequest,\r\n\t\t\t\t\t\"IncomingValidationCodeId\": model.IncomingValidationCodeId,\r\n\t\t\t\t\t\"ClearingDate\": model.ClearingDate\r\n\t\t\t\t},\r\n\t\t\t\t(responseData) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item !== null) {\r\n\r\n\t\t\t\t\t\tthis.HandleSearch();\r\n\t\t\t\t\t\tthis.GetColumns();\r\n\t\t\t\t\t\tthis.HandleClear();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t},\r\n\t\t\t\t(error) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t)\r\n\r\n\t}\r\n\r\n\r\n\r\n\tRowSelected = (index) => {\r\n\t\tlet { model, list } = this.state;\r\n\t\tmodel = list[index];\r\n\t\tif (list[index].CardRequestId) {\r\n\t\t\tmodel.Id = list[index].Id;\r\n\t\t}\r\n\t\tthis.setState({ isEdit: true, model, index });\r\n\t}\r\n\r\n\tDetailsModelChange = (modelFunction) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.detailModel || {};\r\n\r\n\t\t\tif (modelFunction)\r\n\t\t\t\tmodel = modelFunction(model);\r\n\r\n\t\t\treturn { detailModel: model };\r\n\t\t});\r\n\t}\r\n\r\n\tDialogModelChange = (modelFunction) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.initialModel || {};\r\n\r\n\t\t\tif (modelFunction)\r\n\t\t\t\tmodel = modelFunction(model);\r\n\r\n\t\t\treturn { initialModel: model };\r\n\t\t});\r\n\t}\r\n\tCancelSelectCallback = () => {\r\n\t\tthis.setState({\r\n\t\t\tisDialogOpen: false\r\n\t\t});\r\n\t};\r\n\tHandleClickUpdate = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/prepaidapi/v1.0/MastercardClearing/MastercardClearingUpdateDetail\",\r\n\t\t\tthis.state.detailModel,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (responseData.IsSucceeded != false) {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tisDialogOpen: false\r\n\t\t\t\t\t});\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ dialogData: [] });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\",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\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nIncomingBatchCorrection.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(IncomingBatchCorrection, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport { ETransferIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport CardComponent from \"views/Components/CardComponent\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent\";\r\nimport { GenericDateInput, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ToolbarButton from \"views/Components/ToolbarButton.jsx\";\r\nimport { ProgramCodes, SwitchNetworkType } from \"views/Constants/Constant\";\r\nimport ClientHelper from '../../../core/ClientHelper';\r\nimport ClearingTransactionData from \"./ClearingTransactionData\";\r\n\r\n\r\nclass ManuelProvisionMatching extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tdetailModel: {},\r\n\t\t\tmodel: {},\r\n\t\t\tlist: [],\r\n\t\t\tMatchingList: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tisDialogOpen: false,\r\n\t\t\tClearingModel: {}\r\n\t\t}\r\n\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.maxLength26 = { maxLength: 26 };\r\n\t\tthis.maxLength19 = { maxLength: 19 };\r\n\t\tthis.maxLength12 = { maxLength: 12 };\r\n\t\tthis.maxLength40 = { maxLength: 40 };\r\n\r\n\t\tthis.parameterNetworkId = { ParameterCode: \"SwitchNetworkType\" };\r\n\t\tthis.parameterProduct = {};\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : undefined\r\n\t\t};\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\t\tthis.NetworkType = {};\r\n\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Manual Provision Matching\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t}\r\n\tHandleDeleteMatch = (data, index) => {\r\n\t\tvar match = this.state.MatchingList;\r\n\t\tmatch.splice(index, 1);\r\n\t\tthis.setState({ MatchingList: match });\r\n\t\treturn this.state;\r\n\r\n\t}\r\n\r\n\r\n\tIsShow = () => {\r\n\t\tif (this.NetworkType == SwitchNetworkType.Moneris)\r\n\t\t\treturn false;\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\r\n\tFillCustomer = (customer) => {\r\n\t\tthis.HandleChange(\"Customer\", customer);\r\n\t}\r\n\r\n\tFillCard = (card) => {\r\n\t\tthis.HandleChange(\"Card\", card);\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tif (name === \"TransactionData\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tvar match = [];\r\n\t\t\t\tvar findindex = match.findIndex(x => x.TransactionDataId == newValue.Id);\r\n\r\n\t\t\t\tif (findindex == -1) {\r\n\t\t\t\t\tmatch.push({\r\n\t\t\t\t\t\t\"ClearingId\": model.Id,\r\n\t\t\t\t\t\t\"TransactionDataId\": newValue.Id,\r\n\t\t\t\t\t\t\"AccountNumber\": newValue.AccountNumber,\r\n\t\t\t\t\t\t\"CustomerNumber\": newValue.CustomerNumber,\r\n\t\t\t\t\t\t\"ClientName\": newValue.ClientName,\r\n\t\t\t\t\t\t\"TransactionCardNumber\": newValue.MaskedCardNumber,\r\n\t\t\t\t\t\t\"ClearingDate\": model.ClearingDate,\r\n\t\t\t\t\t\t\"Direction\": model.Direction,\r\n\t\t\t\t\t\t\"ProcessingCode\": model.ProcessingCode,\r\n\t\t\t\t\t\t\"RRN\": model.RRN,\r\n\t\t\t\t\t\t\"IssuerAcqueirerFlag\": model.IssuerAcqueirerFlag\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.props.showMessage(\"warning\", \"Multiple Transaction Data\",\r\n\t\t\t\t\t\t\"You can only choose one transaction..\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tthis.setState({ MatchingList: match });\r\n\t\t}\r\n\t\tif (name == \"NetworkId\") {\r\n\t\t\tthis.NetworkType = data.ParameterValue;\r\n\t\t}\r\n\t\tif (name === \"UniqueClientId\") {\r\n\t\t\tdelete model.ClientCustomerId;\r\n\t\t\tdelete model.CustomerNumber;\r\n\t\t\tdelete model.CardId;\r\n\t\t\tdelete model.CardTokenNumber;\r\n\t\t}\r\n\t\tif (name === \"Customer\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.ClientCustomerId = newValue.Id;\r\n\t\t\t\tmodel.CustomerNumber = newValue.CustomerNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.ClientCustomerId;\r\n\t\t\t\tdelete model.CustomerNumber;\r\n\t\t\t\tdelete model.CardId;\r\n\t\t\t\tdelete model.CardTokenNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (name === \"Card\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.CardId = newValue.CardId;\r\n\t\t\t\tmodel.CardTokenNumber = newValue.CardTokenNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.CardId;\r\n\t\t\t\tdelete model.CardTokenNumber;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: {}, isEdit: false, index: -1 });\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tconst model = { ...this.state.model };\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tif (this.NetworkType == SwitchNetworkType.MasterCard)\r\n\t\t\tthis.Url = \"/prepaidapi/v1.0/MastercardClearing/GetAllMastercardTransactionByMatching\";\r\n\t\telse if (this.NetworkType == SwitchNetworkType.Visa)\r\n\t\t\tthis.Url = \"/prepaidapi/v1.0/VisaClearingTransaction/GetAllVisaTransactionByMatching\";\r\n\t\telse if (this.NetworkType == SwitchNetworkType.Moneris)\r\n\t\t\tthis.Url = \"/prepaidapi/v1.0/MonerisSettlement/GetAllMonerisTransactionByMatching\";\r\n\r\n\r\n\t\tProxy.POST\r\n\t\t\t(\r\n\t\t\t\tthis.Url,\r\n\t\t\t\tmodel,\r\n\t\t\t\t(responseData) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\t\tlist:\r\n\t\t\t\t\t\t\t\tresponseData.Item.map(x => {\r\n\t\t\t\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\t\t\t\tCHQ: (\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t this.setState({ isDialogOpen: true, ClearingModel: x })}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\tIssuerAcqueirerFlag: x.IssuerAcqueirerFlag == null || undefined ? \"\" : x.IssuerAcqueirerFlag,\r\n\t\t\t\t\t\t\t\t\t\tCardNumber: x.CardNumber == null || undefined ? \"\" : x.CardNumber,\r\n\t\t\t\t\t\t\t\t\t\tOrginalAmount: x.OrginalAmount == null || undefined ? \"\" : x.OrginalAmount,\r\n\t\t\t\t\t\t\t\t\t\tSettlementAmount: x.SettlementAmount == null || undefined ? \"\" : x.SettlementAmount,\r\n\t\t\t\t\t\t\t\t\t\tRRN: x.RRN == null || undefined ? \"\" : x.RRN,\r\n\t\t\t\t\t\t\t\t\t\tProcessingCode: x.ProcessingCode == null || undefined ? \"\" : x.ProcessingCode,\r\n\t\t\t\t\t\t\t\t\t\tDirection: x.Direction == null || undefined ? \"\" : x.Direction,\r\n\t\t\t\t\t\t\t\t\t\tClearingDate: x.ClearingDate == null || undefined ? 0 : x.ClearingDate,\r\n\t\t\t\t\t\t\t\t\t\tValidationStatus: x.ValidationStatus == null || undefined ? 0 : x.ValidationStatus,\r\n\t\t\t\t\t\t\t\t\t\tARN: x.ARN == null || undefined ? 0 : x.ARN,\r\n\t\t\t\t\t\t\t\t\t\tId: x.Id == null || undefined ? 0 : x.Id\r\n\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t},\r\n\t\t\t\t(error) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t)\r\n\t}\r\n\r\n\r\n\tHandleSubmit = () => {\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Prepaid/ManuelProvisionMatching\",\r\n\t\t\t{ \"MatchingList\": this.state.MatchingList },\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ model: {}, index: -1 });\r\n\t\t\t\t\tthis.props.showMessage(\"success\", \"Succeeded\", \"Operation is successfully!\");\r\n\t\t\t\t\tthis.HandleSearch();\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tif (!model.NetworkId) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Network not selected\", \"Select the network type to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\tTransactionDataCloseDialog = () => {\r\n\t\tthis.setState({ isDialogOpen: false });\r\n\t\treturn this.state;\r\n\t}\r\n\tFillTransactionData = (customer) => {\r\n\t\tthis.HandleChange(\"TransactionData\", customer);\r\n\t}\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, isLoading, index } = this.state;\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\t\treturn (\r\n\t\t\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n\r\n\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nManuelProvisionMatching.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(ManuelProvisionMatching, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericDateInput, GenericExpansionPanel, GenericGrid, GenericTextInput, GenericDialog, GenericRadioInput, GenericLabel, GenericDialogActions } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Select from \"react-select\";\r\nimport Button from \"components/CustomButtons/Button\";\r\n\r\nclass MastercardSettlementReport extends React.Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tlist: [],\r\n\t\t\tmodel: {},\r\n\t\t\tfilterModel: {},\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\r\n\t\tthis.trxTable = React.createRef();\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Mastercard Settlement Report\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {}\r\n\t\t});\r\n\t};\r\n\r\n\tHandleSearch = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tconst { showMessage } = this.props;\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/MastercardClearing/MastercardClearingTransactionSearch\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t this.setState({ isLoading: false });\r\n \r\n\t\t\t if (!responseData.IsSucceeded) {\r\n\t\t\t\t showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t return;\r\n\t\t\t }\r\n\t\t\t this.setState({\r\n\t\t\t\tlist: responseData.Item ?? [],\r\n\t\t\t });\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t this.setState({ isLoading: false });\r\n\t\t\t showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t );\r\n\t};\r\n\r\n\tExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.accessor != \"Actions\" && c.accessor != \"ED\" && (c.show == undefined || c.show)) {\r\n\t\t\t\ttrxColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: trxColumns, ExportSelectedColumns: trxColumns });\r\n\t}\r\n\r\n\tExcelDownload = () => {\r\n\t\tconst { showMessage } = this.props;\r\n\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tshowMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tshowMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tconst temp = { ...this.state.model };\r\n\r\n\t\tvar jsonColList = [];\r\n\r\n\t\tvar trxColumns = {};\r\n\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\ttrxColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t});\r\n\t\tjsonColList.push(trxColumns);\r\n\r\n\t\tvar mytitle = \"Mastercard Settlement Report\";\r\n\r\n\t\ttemp.jsonFile = {\r\n\t\t\tcolmns: jsonColList,\r\n\t\t\tformat: this.state.ExportReportType,\r\n\t\t\ttitle: mytitle\r\n\t\t};\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\"/prepaidapi/v1.0/VisaClearingTransaction/MastercardClearingTransactionSearchExportDownload\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t},\r\n\t\t\tthis.props.showMessage\r\n\t\t);\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { alert, model, list, isLoading } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nMastercardSettlementReport.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default MastercardSettlementReport;\r\n","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport { ApproveIcon, DetailIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport CardComponent from \"views/Components/CardComponent\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent\";\r\nimport { GenericCheckInput, GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { ClearingDirection, ClearingIssuerFlag, ClearingProcessStatus, PgmCodeType, ProgramCodes } from \"views/Constants/Constant.js\";\r\nimport Dispute from \"views/PPaid/Clearing/Dispute/Dispute\";\r\nimport MastercardClearingDetail from \"./MastercardClearingDetail\";\r\n\r\nclass MastercardClearingTransaction extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tIsMainCard: true,\r\n\t\t\tProcessStatusParams: {},\r\n\t\t\tIssuerFlagParams: {},\r\n\t\t\tValidationStatusParams: {},\r\n\t\t\tDirectionParams: {}\r\n\t\t};\r\n\r\n\t\tthis.DisputeModel = {\r\n\t\t\tClearingDisputeFeeData: []\r\n\t\t}\r\n\t\tthis.state = {\r\n\t\t\tdetailModel: {},\r\n\t\t\tdisputeModel: { ...this.DisputeModel },\r\n\t\t\tdisputeFeeModel: {},\r\n\t\t\tmodel: {\r\n\t\t\t\tProcessStatusParams: {},\r\n\t\t\t\tIssuerFlagParams: {},\r\n\t\t\t\tValidationStatusParams: {},\r\n\t\t\t\tDirectionParams: {}\r\n\t\t\t},\r\n\t\t\tlist: [],\r\n\t\t\tDisputeActionData: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tisDialogOpen: false,\r\n\t\t\tisDisputeDialogOpen: false,\r\n\t\t\tisDisputeActionDialogOpen: false\r\n\t\t}\r\n\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.maxLength26 = { maxLength: 26 };\r\n\t\tthis.maxLength19 = { maxLength: 19 };\r\n\t\tthis.maxLength12 = { maxLength: 12 };\r\n\t\tthis.maxLength40 = { maxLength: 40 };\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : undefined\r\n\t\t};\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\r\n\t\tthis.parameterProduct = {};\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\twidth: 100\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Issuer Acquirer Flag\",\r\n\t\t\t\taccessor: \"IssuerAcqueirerFlag\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Number\",\r\n\t\t\t\taccessor: \"CardNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Original Amount\",\r\n\t\t\t\taccessor: \"OrginalAmount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Settlement Amount\",\r\n\t\t\t\taccessor: \"SettlementAmount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"RRN\",\r\n\t\t\t\taccessor: \"RRN\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Processing Code\",\r\n\t\t\t\taccessor: \"ProcessingCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Direction\",\r\n\t\t\t\taccessor: \"Direction\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Clearing Date\",\r\n\t\t\t\taccessor: \"ClearingDate\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Validation Status\",\r\n\t\t\t\taccessor: \"ValidationStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Arn\",\r\n\t\t\t\taccessor: \"ARN\"\r\n\t\t\t},\r\n\r\n\r\n\t\t];\r\n\r\n\t\tthis.HandleUpdate = this.HandleUpdate.bind(this);\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Clearing Transaction\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t}\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (name === \"UniqueClientId\") {\r\n\t\t\tdelete model.ClientCustomerId;\r\n\t\t\tdelete model.CustomerNumber;\r\n\t\t\tdelete model.CardId;\r\n\t\t\tdelete model.CardTokenNumber;\r\n\t\t}\r\n\t\tif (name === \"Customer\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.ClientCustomerId = newValue.Id;\r\n\t\t\t\tmodel.CustomerNumber = newValue.CustomerNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.ClientCustomerId;\r\n\t\t\t\tdelete model.CustomerNumber;\r\n\t\t\t\tdelete model.CardId;\r\n\t\t\t\tdelete model.CardTokenNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (name === \"Card\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.CardId = newValue.CardId;\r\n\t\t\t\tmodel.CardTokenNumber = newValue.CardTokenNumber;\r\n\t\t\t\tmodel.CardNumber = newValue.MaskedCardNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.CardId;\r\n\t\t\t\tdelete model.CardTokenNumber;\r\n\t\t\t\tdelete model.MaskedCardNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tFillCustomer = (customer) => {\r\n\t\tthis.HandleChange(\"Customer\", customer);\r\n\t}\r\n\r\n\tFillCard = (card) => {\r\n\t\tthis.HandleChange(\"Card\", card);\r\n\t}\r\n\r\n\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, isEdit: false, index: -1 });\r\n\t}\r\n\r\n\r\n\tHandleSearch = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST\r\n\t\t\t(\r\n\t\t\t\t\"/prepaidapi/v1.0/MastercardClearing/GetAllMastercardTransaction\",\r\n\t\t\t\tmodel,\r\n\t\t\t\t(responseData) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\t\tlist:\r\n\t\t\t\t\t\t\t\tresponseData.Item.map(x => {\r\n\t\t\t\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\t\t\t\tActions: (\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t { this.setState({ isDialogOpen: true, detailModel: x.MastercardClearingTransaction }); }} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t { this.HandleGetDispute(x.MastercardClearingTransaction); }} />\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\tIssuerAcqueirerFlag: x.IssuerAcqueirerFlag == null || undefined ? \"\" : x.IssuerAcqueirerFlag,\r\n\t\t\t\t\t\t\t\t\t\tCardNumber: x.CardNumber == null || undefined ? \"\" : x.CardNumber,\r\n\t\t\t\t\t\t\t\t\t\tOrginalAmount: x.OrginalAmount == null || undefined ? \"\" : x.OrginalAmount,\r\n\t\t\t\t\t\t\t\t\t\tSettlementAmount: x.SettlementAmount == null || undefined ? \"\" : x.SettlementAmount,\r\n\t\t\t\t\t\t\t\t\t\tRRN: x.RRN == null || undefined ? \"\" : x.RRN,\r\n\t\t\t\t\t\t\t\t\t\tProcessingCode: x.ProcessingCode == null || undefined ? \"\" : x.ProcessingCode,\r\n\t\t\t\t\t\t\t\t\t\tDirection: x.Direction == null || undefined ? \"\" : x.Direction,\r\n\t\t\t\t\t\t\t\t\t\tClearingDate: x.ClearingDate == null || undefined ? 0 : x.ClearingDate,\r\n\t\t\t\t\t\t\t\t\t\tValidationStatus: x.ValidationStatus == null || undefined ? 0 : x.ValidationStatus,\r\n\t\t\t\t\t\t\t\t\t\tARN: x.ARN == null || undefined ? 0 : x.ARN,\r\n\t\t\t\t\t\t\t\t\t\tProcessStatusParams: x.ProcessStatusParams == null || undefined ? 0 : x.ProcessStatusParams,\r\n\t\t\t\t\t\t\t\t\t\tDirectionParams: x.DirectionParams == null || undefined ? 0 : x.DirectionParams,\r\n\t\t\t\t\t\t\t\t\t\tValidationStatusParams: x.ValidationStatusParams == null || undefined ? 0 : x.ValidationStatusParams,\r\n\t\t\t\t\t\t\t\t\t\tIssuerFlagParams: x.IssuerFlagParams == null || undefined ? 0 : x.IssuerFlagParams,\r\n\t\t\t\t\t\t\t\t\t\tIsReversal: x.IsReversal == null || undefined ? 0 : x.IsReversal,\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t},\r\n\t\t\t\t(error) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t)\r\n\r\n\t}\r\n\r\n\tHandleUpdate() {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tconst model = { ...this.state.model };\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Prepaid/UpdateCardRenew\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.props.showMessage(\"success\", \"Succeeded\", \"Operation is successfully!\");\r\n\t\t\t\t\tthis.HandleSearch();\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\r\n\tHandleSubmit = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Prepaid/RenewCard\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ model: { ...this.initialModel }, index: -1 });\r\n\t\t\t\t\tthis.props.showMessage(\"success\", \"Succeeded\", \"Operation is successfully!\");\r\n\t\t\t\t\tthis.HandleSearch();\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tif (!model.UniqueClientId) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Client not selected\", \"Select the Client to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!model.ClientCustomerId) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Customer not selected\", \"Select the Customer to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!model.ProductId) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Product not selected\", \"Select the Product to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!model.EmbossName) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Emboss Name is empty\", \"Enter the Emboss Name to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!model.CardIssuingReasonType) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Issuing Resason Type is empty\", \"Enter the Issuin Reason Type to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tlet { model, list } = this.state;\r\n\t\tmodel = list[index];\r\n\t\tif (list[index].CardRequestId) {\r\n\t\t\tmodel.Id = list[index].Id;\r\n\t\t}\r\n\t\tthis.setState({ isEdit: true, model, index });\r\n\t}\r\n\r\n\tGetProductParameter = () => {\r\n\t\tthis.parameterProduct.UniqueClientId = this.state.model.UniqueClientId;\r\n\t\tthis.parameterProduct.IsNoNameProduct = false;\r\n\t\treturn this.parameterProduct;\r\n\t}\r\n\r\n\r\n\tDisputeModelChange = (modelFunction) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.disputeModel || {};\r\n\r\n\t\t\tif (modelFunction)\r\n\t\t\t\tmodel = modelFunction(model);\r\n\r\n\t\t\treturn { disputeModel: model };\r\n\t\t});\r\n\t}\r\n\r\n\r\n\tDetailsModelChange = (modelFunction) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.detailModel || {};\r\n\r\n\t\t\tif (modelFunction)\r\n\t\t\t\tmodel = modelFunction(model);\r\n\r\n\t\t\treturn { detailModel: model };\r\n\t\t});\r\n\t}\r\n\r\n\tDialogModelChange = (modelFunction) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.initialModel || {};\r\n\r\n\t\t\tif (modelFunction)\r\n\t\t\t\tmodel = modelFunction(model);\r\n\r\n\t\t\treturn { initialModel: model };\r\n\t\t});\r\n\t}\r\n\r\n\tCancelSelectCallback = () => {\r\n\t\tthis.setState({\r\n\t\t\tisDialogOpen: false,\r\n\t\t\tisDisputeDialogOpen: false,\r\n\t\t\tdisputeModel: this.DisputeModel\r\n\t\t});\r\n\t};\r\n\r\n\r\n\tHandleClickUpdate = () => {\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/prepaidapi/v1.0/MastercardClearing/MastercardClearingUpdateDetail\",\r\n\t\t\tthis.state.detailModel,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (responseData.IsSucceeded != false) {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tisDialogOpen: false\r\n\t\t\t\t\t});\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ dialogData: [] });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t});\r\n\t}\r\n\r\n\tHandleClickDispute = () => {\r\n\r\n\t\tif (!this.ValidateDispute()) return false;\r\n\r\n\t\tthis.state.disputeModel.PgmCode = PgmCodeType.MasterCard;\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tProxy.POST(\"/prepaidapi/v1.0/ClearingDispute/InsertOrUpdateClearingDispute\",\r\n\t\t\tthis.state.disputeModel,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (responseData.IsSucceeded != false) {\r\n\t\t\t\t\tthis.CancelSelectCallback();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t});\r\n\t}\r\n\r\n\tHandleGetDispute = (model) => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/prepaidapi/v1.0/ClearingDispute/GetDisputeByTransactionId\",\r\n\t\t\t{\r\n\t\t\t\tClearingDataTableId: model.Id,\r\n\t\t\t\tPgmCode: PgmCodeType.MasterCard\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (responseData.IsSucceeded != false) {\r\n\t\t\t\t\tthis.setState({ isDisputeDialogOpen: true, disputeModel: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.setState({ isDisputeDialogOpen: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t});\r\n\t}\r\n\r\n\tHandleClickReverse = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/prepaidapi/v1.0/MastercardClearing/MastercardClearingTransactionReverse\",\r\n\t\t\tthis.state.detailModel,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (responseData.IsSucceeded != false) {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tisDialogOpen: false\r\n\t\t\t\t\t});\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t});\r\n\t}\r\n\r\n\tReverseControl = () => {\r\n\t\tconst { model } = { ...this.state };\r\n\r\n\t\tif (model.ProcessStatusParams.ParameterValue != ClearingProcessStatus.ReadyToSend) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tif (model.DirectionParams.ParameterValue != ClearingDirection.Outgoing) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tif (model.IssuerFlagParams.ParameterValue != ClearingIssuerFlag.Acquirer) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tif (model.IsReversal) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\r\n\t\treturn false;\r\n\t}\r\n\r\n\r\n\tDisputeFeeModelChange = (modelFunction) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.disputeFeeModel || {};\r\n\t\t\tif (modelFunction)\r\n\t\t\t\tmodel = modelFunction(model);\r\n\t\t\treturn { disputeFeeModel: model, disputeModel: this.state.disputeModel };\r\n\t\t});\r\n\t}\r\n\r\n\tDisputeFeeModelDelete = (index) => {\r\n\r\n\t\tif (!index) {\r\n\t\t\tthis.state.disputeModel.ClearingDisputeFeeData.splice(index, 1);\r\n\t\t}\r\n\t\tthis.setState({ disputeModel: this.state.disputeModel });\r\n\t}\r\n\r\n\tDisputeFeeModelClear = () => {\r\n\t\tthis.setState({ disputeFeeModel: {} });\r\n\t}\r\n\r\n\tDisputeFeeModelEdit = (index) => {\r\n\t\tif (!index) {\r\n\t\t\tthis.state.disputeModel.ClearingDisputeFeeData[index] = this.state.disputeFeeModel;\r\n\t\t}\r\n\t\tthis.setState({ disputeModel: this.state.disputeModel });\r\n\t}\r\n\r\n\tDisputeFeeModelPush = (modelFunction) => {\r\n\t\tvar model = this.state.disputeFeeModel || {};\r\n\t\tvar arr = this.state.disputeModel.ClearingDisputeFeeData || [];\r\n\t\tarr.push({ ...model });\r\n\t\tthis.state.disputeModel.ClearingDisputeFeeData = arr;\r\n\t\tthis.setState({ disputeModel: this.state.disputeModel });\r\n\t}\r\n\tValidateDispute = () => {\r\n\r\n\t\tconst model = this.state.disputeModel;\r\n\r\n\t\tif (model.ChargebackStatusId) {\r\n\t\t\tif (!model.ChargebackReasonCodeId) {\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Chargeback\", \"Chargeback Reason Code cannot be empty\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\t\tif (model.RepresentmentStatusId) {\r\n\t\t\tif (!model.ChargebackStatusId) {\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Charge Back\", \"Chargeback information cannot be empty\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tif (!model.RepresentmentReasonCodeId) {\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Representment\", \"Representment Reason Code cannot be empty\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\t\tif (model.SecondChargebackStatusId) {\r\n\t\t\tif (!model.RepresentmentStatusId) {\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Retrieval Response\", \"Representment information can not be empty\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tif (!model.SecondChargebackReasonCodeId) {\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Retrieval Response\", \"Second Chargeback Reason Code cannot be empty\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\r\n\tHandleDisputeAction = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tProxy.POST(\"/prepaidapi/v1.0/ClearingDispute/GetDisputeAction\",\r\n\t\t\t{\r\n\t\t\t\tDisputeId: this.state.disputeModel.Id\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (responseData.IsSucceeded != false) {\r\n\t\t\t\t\tthis.setState({ isDisputeActionDialogOpen: true, DisputeActionData: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.setState({ isDisputeActionDialogOpen: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t});\r\n\t}\r\n\r\n\tHandleActionDialogOpen = () => {\r\n\t\tthis.HandleDisputeAction();\r\n\t}\r\n\tHandleActionDialogClose = () => {\r\n\t\tthis.setState({ isDisputeActionDialogOpen: false });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, isLoading } = this.state;\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t 0}\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\r\n\t\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object.isRequired,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(MastercardClearingTransaction, {});","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport { DetailIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericTitle } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport MastercardClearingDetail from \"./MastercardClearingDetail\";\r\n\r\nclass MastercardMessageException extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t\tIsMainCard: true,\r\n\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tdetailModel: {},\r\n\t\t\tmodel: {},\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tisDialogOpen: false\r\n\t\t}\r\n\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.maxLength26 = { maxLength: 26 };\r\n\t\tthis.maxLength19 = { maxLength: 19 };\r\n\t\tthis.maxLength12 = { maxLength: 12 };\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : undefined\r\n\t\t};\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\r\n\t\tthis.parameterProduct = {};\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\twidth: 60\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Clearing Date\",\r\n\t\t\t\taccessor: \"ClearingDate\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Mti\",\r\n\t\t\t\taccessor: \"Mti\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Source Message Number ID\",\r\n\t\t\t\taccessor: \"Pds0138\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Source File ID\",\r\n\t\t\t\taccessor: \"Pds0280\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Message Reversal Indicator\",\r\n\t\t\t\taccessor: \"Pds0025\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Risk Management Approval Code\",\r\n\t\t\t\taccessor: \"Pds0261\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"File Name\",\r\n\t\t\t\taccessor: \"FileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Message Reversal Indicator\",\r\n\t\t\t\taccessor: \"Pds0105\"\r\n\t\t\t},\r\n\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Message Exception\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, isEdit: false, index: -1 });\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST\r\n\t\t\t(\r\n\t\t\t\t\"/prepaidapi/v1.0/MastercardClearing/GetAllMastercardMessageException\",\r\n\t\t\t\tmodel,\r\n\t\t\t\t(responseData) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\t\tlist:\r\n\t\t\t\t\t\t\t\tresponseData.Item.map(x => {\r\n\t\t\t\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\t\t\t\tActions: (\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t { this.setState({ isDialogOpen: true, detailModel: x.MastercardClearingTransaction }) }} />\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\tId: x.Id == null || undefined ? \"\" : x.Id,\r\n\t\t\t\t\t\t\t\t\t\tDe024: x.De024 == null || undefined ? \"\" : x.De024,\r\n\t\t\t\t\t\t\t\t\t\tDe072: x.De072 == null || undefined ? \"\" : x.De072,\r\n\t\t\t\t\t\t\t\t\t\tMti: x.Mti == null || undefined ? \"\" : x.Mti,\r\n\t\t\t\t\t\t\t\t\t\tPds0005: x.Pds0005 == null || undefined ? \"\" : x.Pds0005,\r\n\t\t\t\t\t\t\t\t\t\tPds0105: x.Pds0105 == null || undefined ? \"\" : x.Pds0105,\r\n\t\t\t\t\t\t\t\t\t\tPds0280: x.Pds0280 == null || undefined ? \"\" : x.Pds0280,\r\n\t\t\t\t\t\t\t\t\t\tClearingDate: x.ClearingDate == null || undefined ? 0 : x.ClearingDate,\r\n\t\t\t\t\t\t\t\t\t\tPds0138: x.Pds0138 == null || undefined ? 0 : x.Pds0138,\r\n\t\t\t\t\t\t\t\t\t\tPds0025: x.Pds0025 == null || undefined ? 0 : x.Pds0025,\r\n\t\t\t\t\t\t\t\t\t\tPds0261: x.Pds0261 == null || undefined ? 0 : x.Pds0261,\r\n\t\t\t\t\t\t\t\t\t\tFileName: x.FileName == null || undefined ? 0 : x.FileName,\r\n\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t},\r\n\t\t\t\t(error) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t)\r\n\r\n\t}\r\n\r\n\r\n\r\n\tRowSelected = (index) => {\r\n\t\tlet { list } = this.state;\r\n\t\tconst tempModel = list[index];\r\n\t\tif (list[index].CardRequestId) {\r\n\t\t\ttempModel.Id = list[index].Id;\r\n\t\t}\r\n\t\tthis.setState({ isEdit: true, model: tempModel, index });\r\n\t}\r\n\r\n\tDetailsModelChange = (modelFunction) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.detailModel || {};\r\n\r\n\t\t\tif (modelFunction)\r\n\t\t\t\tmodel = modelFunction(model);\r\n\r\n\t\t\treturn { detailModel: model };\r\n\t\t});\r\n\t}\r\n\r\n\tDialogModelChange = (modelFunction) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.initialModel || {};\r\n\r\n\t\t\tif (modelFunction)\r\n\t\t\t\tmodel = modelFunction(model);\r\n\r\n\t\t\treturn { initialModel: model };\r\n\t\t});\r\n\t}\r\n\tCancelSelectCallback = () => {\r\n\t\tthis.setState({\r\n\t\t\tisDialogOpen: false\r\n\t\t});\r\n\t};\r\n\tHandleClickUpdate = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/prepaidapi/v1.0/MastercardClearing/MastercardClearingUpdateDetail\",\r\n\t\t\tthis.state.detailModel,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (responseData.IsSucceeded != false) {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tisDialogOpen: false\r\n\t\t\t\t\t});\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ dialogData: [] });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t});\r\n\t}\r\n\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, isLoading, index } = this.state;\r\n\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nMastercardMessageException.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(MastercardMessageException, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericAlert, GenericDateInput, GenericExpansionPanel, GenericGrid, GenericTextInput, GenericDialog, GenericRadioInput, GenericLabel, GenericDialogActions } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent\";\r\nimport CardComponent from \"views/Components/CardComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Select from \"react-select\";\r\nimport Button from \"components/CustomButtons/Button\";\r\n\r\nclass MonerisSettlementReport extends React.Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tlist: [],\r\n\t\t\tmodel: {},\r\n\t\t\tfilterModel: {},\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : undefined\r\n\t\t};\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\r\n\t\tthis.parameterProduct = {};\r\n\r\n\t\tthis.trxTable = React.createRef();\r\n\t}\r\n\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Moneris Settlement Report\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (name === \"UniqueClientId\") {\r\n\t\t\tdelete model.ClientCustomerId;\r\n\t\t\tdelete model.CustomerNumber;\r\n\t\t\tdelete model.CardId;\r\n\t\t\tdelete model.CardTokenNumber;\r\n\t\t}\r\n\t\tif (name === \"Customer\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.ClientCustomerId = newValue.Id;\r\n\t\t\t\tmodel.CustomerNumber = newValue.CustomerNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.ClientCustomerId;\r\n\t\t\t\tdelete model.CustomerNumber;\r\n\t\t\t\tdelete model.CardId;\r\n\t\t\t\tdelete model.CardTokenNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (name === \"Card\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.CardId = newValue.CardId;\r\n\t\t\t\tmodel.CardTokenNumber = newValue.CardTokenNumber;\r\n\t\t\t\tmodel.AccountNumber1 = newValue.MaskedCardNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.CardId;\r\n\t\t\t\tdelete model.CardTokenNumber;\r\n\t\t\t\tdelete model.AccountNumber1;\r\n\t\t\t}\r\n\t\t}\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tFillCustomer = (customer) => {\r\n\t\tthis.HandleChange(\"Customer\", customer);\r\n\t}\r\n\r\n\tFillCard = (card) => {\r\n\t\tthis.HandleChange(\"Card\", card);\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {}\r\n\t\t});\r\n\t};\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\tHandleSearch = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tthis.setState({ isLoading: true })\r\n\t\tProxy.ExecuteGeneral(\r\n\t\t\tthis, \"POST\",\r\n\t\t\t\"/prepaidapi/v1.0/MonerisSettlement/Search\",\r\n\t\t\tmodel,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tisLoading: false,\r\n\t\t\t\t\tmodel,\r\n\t\t\t\t\tlist: responseData.Item\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t\tOnConfirm={onConfirm}\r\n\t\t\t\t/>\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n\r\n\tExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.accessor != \"Actions\" && c.accessor != \"ED\" && (c.show == undefined || c.show)) {\r\n\t\t\t\ttrxColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: trxColumns, ExportSelectedColumns: trxColumns });\r\n\t}\r\n\r\n\tExcelDownload = () => {\r\n\t\tconst { showMessage } = this.props;\r\n\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tshowMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tshowMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tconst temp = { ...this.state.model };\r\n\r\n\t\tvar jsonColList = [];\r\n\r\n\t\tvar trxColumns = {};\r\n\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\ttrxColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t});\r\n\t\tjsonColList.push(trxColumns);\r\n\r\n\t\tvar mytitle = \"Moneris Settlement Report\";\r\n\r\n\t\ttemp.jsonFile = {\r\n\t\t\tcolmns: jsonColList,\r\n\t\t\tformat: this.state.ExportReportType,\r\n\t\t\ttitle: mytitle\r\n\t\t};\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\"/prepaidapi/v1.0/MonerisSettlement/MonerisSettlementReportExportDownload\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t},\r\n\t\t\tthis.props.showMessage\r\n\t\t);\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\r\n\r\n\trender() {\r\n\t\tconst { alert, model, list, isLoading } = this.state;\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nMonerisSettlementReport.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default MonerisSettlementReport;\r\n","import Card from \"components/Card/Card\";\r\nimport CardBody from \"components/Card/CardBody\";\r\nimport GridContainer from \"components/Grid/GridContainer\";\r\nimport GridItem from \"components/Grid/GridItem\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericDateInput, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass RefundReversalTransactions extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Type\",\r\n\t\t\t\taccessor: \"TransactionType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Destination\",\r\n\t\t\t\taccessor: \"TransactionDestination\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reference Number\",\r\n\t\t\t\taccessor: \"ReferenceNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Token Number\",\r\n\t\t\t\taccessor: \"CardTokenNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"TransactionDateTime\",\r\n\t\t\t\taccessor: \"TransactionDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Error Code\",\r\n\t\t\t\taccessor: \"ErrorCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Response Code\",\r\n\t\t\t\taccessor: \"ResponseCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Error Description\",\r\n\t\t\t\taccessor: \"ErrorDescription\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Billing Amount\",\r\n\t\t\t\taccessor: \"BillingAmount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Txn Description\",\r\n\t\t\t\taccessor: \"TxnDescription\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Settlement Status\",\r\n\t\t\t\taccessor: \"SettlementStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transmission Date Time\",\r\n\t\t\t\taccessor: \"TransmissionDateTime\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"System Trace Audit Number\",\r\n\t\t\t\taccessor: \"SystemTraceAuditNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Acquiring Institution Id\",\r\n\t\t\t\taccessor: \"AcquiringInstitutionId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Retrieval Reference Number\",\r\n\t\t\t\taccessor: \"RetrievalReferenceNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Authorization Identification Response\",\r\n\t\t\t\taccessor: \"AuthorizationIdentificationResponse\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.uniqueClientId = ClientHelper.GetClientRowId();\r\n\r\n\t\tthis.emptyObject = {};\r\n\t\tthis.parameterUniqueClientId = {};\r\n\r\n\r\n\t\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tUniqueClientId: this.uniqueClientId\r\n\t\t\t}\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"CLEARING AND SETTLEMENT\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Error - Refund Reversal Transactions\");\r\n\t\t}\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/prepaid/v1.0/ReversalRefundTransactions/Search\", model, model);\r\n\r\n\t\tthis.setState({ list: result || [] });\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: { UniqueClientId: this.uniqueClientId }, list: [] });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, list } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nRefundReversalTransactions.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default RefundReversalTransactions;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericDateInput, GenericExpansionPanel, GenericGrid, GenericTextInput, GenericDialog, GenericRadioInput, GenericLabel, GenericDialogActions } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Select from \"react-select\";\r\nimport Button from \"components/CustomButtons/Button\";\r\n\r\nclass DebitAdjustmentReport extends React.Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tlist: [],\r\n\t\t\tmodel: {},\r\n\t\t\tfilterModel: {},\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\r\n\t\tthis.trxTable = React.createRef();\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Debit Adjustment Report\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {}\r\n\t\t});\r\n\t};\r\n\r\n\tHandleSearch = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tconst { showMessage } = this.props;\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/VisaClearingTransaction/VisaDebitAdjustmentReportSearch\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t this.setState({ isLoading: false });\r\n \r\n\t\t\t if (!responseData.IsSucceeded) {\r\n\t\t\t\t showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t return;\r\n\t\t\t }\r\n\t\t\t this.setState({\r\n\t\t\t\tlist: responseData.Item ?? [],\r\n\t\t\t });\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t this.setState({ isLoading: false });\r\n\t\t\t showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t );\r\n\t};\r\n\r\n\tExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.accessor != \"Actions\" && c.accessor != \"ED\" && (c.show == undefined || c.show)) {\r\n\t\t\t\ttrxColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: trxColumns, ExportSelectedColumns: trxColumns });\r\n\t}\r\n\r\n\tExcelDownload = () => {\r\n\t\tconst { showMessage } = this.props;\r\n\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tshowMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tshowMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tconst temp = { ...this.state.model };\r\n\r\n\t\tvar jsonColList = [];\r\n\r\n\t\tvar trxColumns = {};\r\n\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\ttrxColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t});\r\n\t\tjsonColList.push(trxColumns);\r\n\r\n\t\tvar mytitle = \"Debit Adjustment Report\";\r\n\r\n\t\ttemp.jsonFile = {\r\n\t\t\tcolmns: jsonColList,\r\n\t\t\tformat: this.state.ExportReportType,\r\n\t\t\ttitle: mytitle\r\n\t\t};\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\"/prepaidapi/v1.0/VisaClearingTransaction/VisaDebitAdjustmentReportExportDownload\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t},\r\n\t\t\tthis.props.showMessage\r\n\t\t);\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { alert, model, list, isLoading } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nDebitAdjustmentReport.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default DebitAdjustmentReport;\r\n","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport { ApproveIcon, DetailIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport CardComponent from \"views/Components/CardComponent\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent\";\r\nimport { GenericCheckInput, GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { ClearingDirection, ClearingIssuerFlag, ClearingProcessStatus, GridColumnType, PgmCodeType, ProgramCodes } from \"views/Constants/Constant.js\";\r\nimport Dispute from \"views/PPaid/Clearing/Dispute/Dispute\";\r\nimport VisaClearingTransactionDetail from \"views/PPaid/Clearing/Visa/TransactionDetails/VisaClearingTransactionDetail\";\r\n\r\n\r\nclass VisaClearingTransaction extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t\tIsMainCard: true,\r\n\t\t\tProcessStatusParams: {},\r\n\t\t\tIssuerFlagParams: {},\r\n\t\t\tValidationStatusParams: {},\r\n\t\t\tDirectionParams: {},\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\ttransactionmodel: {},\r\n\t\t\tsmsdatamodel: {},\r\n\t\t\tchipdatamodel: {},\r\n\t\t\tpaymentservicemodel: {},\r\n\t\t\tdisputeModel: {\r\n\t\t\t\tClearingDisputeFeeData: []\r\n\t\t\t},\r\n\t\t\tdisputeFeeModel: {},\r\n\t\t\tmodel: {\r\n\t\t\t\tProcessStatusParams: {},\r\n\t\t\t\tIssuerFlagParams: {},\r\n\t\t\t\tValidationStatusParams: {},\r\n\t\t\t\tDirectionParams: {}\r\n\t\t\t},\r\n\t\t\tlist: [],\r\n\t\t\tDisputeActionData: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tisDialogOpen: false,\r\n\t\t\tisDisputeDialogOpen: false,\r\n\t\t\tisDisputeActionDialogOpen: false\r\n\t\t}\r\n\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.maxLength26 = { maxLength: 26 };\r\n\t\tthis.maxLength19 = { maxLength: 19 };\r\n\t\tthis.maxLength12 = { maxLength: 12 };\r\n\t\tthis.maxLength40 = { maxLength: 40 };\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : undefined\r\n\t\t};\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\r\n\t\tthis.parameterProduct = {};\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\twidth: 100\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Issuer Acquirer Flag\",\r\n\t\t\t\taccessor: \"IssuerAcqueirerFlag\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Number\",\r\n\t\t\t\taccessor: \"CardNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Original Amount\",\r\n\t\t\t\taccessor: \"OrginalAmount\",\r\n\t\t\t\ttype: GridColumnType.Money\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Settlement Amount\",\r\n\t\t\t\taccessor: \"SettlementAmount\",\r\n\t\t\t\ttype: GridColumnType.Money\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Direction\",\r\n\t\t\t\taccessor: \"Direction\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Clearing Date\",\r\n\t\t\t\taccessor: \"ClearingDate\",\r\n\t\t\t\ttype: GridColumnType.DateTime\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Validation Status\",\r\n\t\t\t\taccessor: \"ValidationStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Arn\",\r\n\t\t\t\taccessor: \"ARN\"\r\n\t\t\t},\r\n\r\n\r\n\t\t];\r\n\r\n\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Clearing Transaction\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (name === \"UniqueClientId\") {\r\n\t\t\tdelete model.ClientCustomerId;\r\n\t\t\tdelete model.CustomerNumber;\r\n\t\t\tdelete model.CardId;\r\n\t\t\tdelete model.CardTokenNumber;\r\n\t\t}\r\n\t\tif (name === \"Customer\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.ClientCustomerId = newValue.Id;\r\n\t\t\t\tmodel.CustomerNumber = newValue.CustomerNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.ClientCustomerId;\r\n\t\t\t\tdelete model.CustomerNumber;\r\n\t\t\t\tdelete model.CardId;\r\n\t\t\t\tdelete model.CardTokenNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (name === \"Card\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.CardId = newValue.CardId;\r\n\t\t\t\tmodel.CardTokenNumber = newValue.CardTokenNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.CardId;\r\n\t\t\t\tdelete model.CardTokenNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tFillCustomer = (customer) => {\r\n\t\tthis.HandleChange(\"Customer\", customer);\r\n\t}\r\n\r\n\tFillCard = (card) => {\r\n\t\tthis.HandleChange(\"Card\", card);\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, isEdit: false, index: -1 });\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST\r\n\t\t\t(\r\n\t\t\t\t\"/prepaidapi/v1.0/VisaClearingTransaction/GetAllVisaTransaction\",\r\n\t\t\t\tmodel,\r\n\t\t\t\t(responseData) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\t\tlist:\r\n\t\t\t\t\t\t\t\tresponseData.Item.map(x => {\r\n\t\t\t\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\t\t\t\tActions: (\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tisDialogOpen: true,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttransactionmodel: x.VisaClearingTransaction,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tchipdatamodel: x.VisaChipData,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpaymentservicemodel: x.VisaPaymentServiceData,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsmsdatamodel: x.VisaSmsData\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t { this.HandleGetDispute(x.VisaClearingTransaction) }} />\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\tIssuerAcqueirerFlag: x.IssuerAcqueirerFlag == null || undefined ? \"\" : x.IssuerAcqueirerFlag,\r\n\t\t\t\t\t\t\t\t\t\tOrginalAmount: x.OrginalAmount == null || undefined ? \"\" : x.OrginalAmount,\r\n\t\t\t\t\t\t\t\t\t\tSettlementAmount: x.SettlementAmount == null || undefined ? \"\" : x.SettlementAmount,\r\n\t\t\t\t\t\t\t\t\t\tRRN: x.RRN == null || undefined ? \"\" : x.RRN,\r\n\t\t\t\t\t\t\t\t\t\tProcessingCode: x.ProcessingCode == null || undefined ? \"\" : x.ProcessingCode,\r\n\t\t\t\t\t\t\t\t\t\tDirection: x.Direction == null || undefined ? \"\" : x.Direction,\r\n\t\t\t\t\t\t\t\t\t\tClearingDate: x.ClearingDate == null || undefined ? 0 : x.ClearingDate,\r\n\t\t\t\t\t\t\t\t\t\tValidationStatus: x.ValidationStatus == null || undefined ? 0 : x.ValidationStatus,\r\n\t\t\t\t\t\t\t\t\t\tARN: x.ARN == null || undefined ? 0 : x.ARN,\r\n\t\t\t\t\t\t\t\t\t\tProcessStatusParams: x.ProcessStatusParams == null || undefined ? 0 : x.ProcessStatusParams,\r\n\t\t\t\t\t\t\t\t\t\tDirectionParams: x.DirectionParams == null || undefined ? 0 : x.DirectionParams,\r\n\t\t\t\t\t\t\t\t\t\tValidationStatusParams: x.ValidationStatusParams == null || undefined ? 0 : x.ValidationStatusParams,\r\n\t\t\t\t\t\t\t\t\t\tIssuerFlagParams: x.IssuerFlagParams == null || undefined ? 0 : x.IssuerFlagParams,\r\n\t\t\t\t\t\t\t\t\t\tIsReversal: x.IsReversal == null || undefined ? 0 : x.IsReversal,\r\n\t\t\t\t\t\t\t\t\t\tCardNumber: x.CardNumber == null || undefined ? 0 : x.CardNumber\r\n\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t},\r\n\t\t\t\t(error) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t)\r\n\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tif (!model.UniqueClientId) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Client not selected\", \"Select the Client to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!model.ClientCustomerId) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Customer not selected\", \"Select the Customer to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!model.ProductId) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Product not selected\", \"Select the Product to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!model.EmbossName) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Emboss Name is empty\", \"Enter the Emboss Name to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!model.CardIssuingReasonType) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Issuing Resason Type is empty\", \"Enter the Issuin Reason Type to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tlet { list } = this.state;\r\n\t\tconst tempModel = list[index];\r\n\t\tif (list[index].CardRequestId) {\r\n\t\t\ttempModel.Id = list[index].Id;\r\n\t\t}\r\n\t\tthis.setState({ isEdit: true, model: tempModel, index });\r\n\t}\r\n\r\n\tGetProductParameter = () => {\r\n\t\tthis.parameterProduct.UniqueClientId = this.state.model.UniqueClientId;\r\n\t\tthis.parameterProduct.IsNoNameProduct = false;\r\n\t\treturn this.parameterProduct;\r\n\t}\r\n\r\n\t\r\n\tTransactionModelChange = (modelFunction) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.transactionmodel || {};\r\n\r\n\t\t\tif (modelFunction)\r\n\t\t\t\tmodel = modelFunction(model);\r\n\r\n\t\t\treturn { transactionmodel: model };\r\n\t\t});\r\n\t}\r\n\r\n\tDialogModelChange = (modelFunction) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.initialModel || {};\r\n\r\n\t\t\tif (modelFunction)\r\n\t\t\t\tmodel = modelFunction(model);\r\n\r\n\t\t\treturn { initialModel: model };\r\n\t\t});\r\n\t}\r\n\tCancelSelectCallback = () => {\r\n\t\tthis.setState({\r\n\t\t\tisDialogOpen: false,\r\n\t\t\tisDisputeDialogOpen: false\r\n\t\t});\r\n\t};\r\n\tHandleClickUpdate = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/prepaidapi/v1.0/VisaClearingTransaction/Update\",\r\n\t\t\t{\r\n\t\t\t\tVisaClearingTransaction: this.state.transactionmodel,\r\n\t\t\t\tVisaSmsData: this.state.smsdatamodel,\r\n\t\t\t\tVisaChipData: this.state.chipdatamodel,\r\n\t\t\t\tVisaPaymentServiceData: this.state.paymentservicemodel\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (responseData.IsSucceeded != false) {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tisDialogOpen: false\r\n\t\t\t\t\t});\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\tthis.setState({ dialogData: [] });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t});\r\n\t}\r\n\r\n\tSmsDataModelChange = (modelFunction) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.smsdatamodel || {};\r\n\r\n\t\t\tif (modelFunction)\r\n\t\t\t\tmodel = modelFunction(model);\r\n\r\n\t\t\treturn { smsdatamodel: model };\r\n\t\t});\r\n\t}\r\n\r\n\r\n\tPaymentServiceModelChange = (modelFunction) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.paymentservicemodel || {};\r\n\r\n\t\t\tif (modelFunction)\r\n\t\t\t\tmodel = modelFunction(model);\r\n\r\n\t\t\treturn { paymentservicemodel: model };\r\n\t\t});\r\n\t}\r\n\r\n\tChipDataModelChange = (modelFunction) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.chipdatamodel || {};\r\n\r\n\t\t\tif (modelFunction)\r\n\t\t\t\tmodel = modelFunction(model);\r\n\r\n\t\t\treturn { chipdatamodel: model };\r\n\t\t});\r\n\t}\r\n\r\n\tDisputeModelChange = (modelFunction) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.disputeModel || {};\r\n\r\n\t\t\tif (modelFunction)\r\n\t\t\t\tmodel = modelFunction(model);\r\n\r\n\t\t\treturn { disputeModel: model };\r\n\t\t});\r\n\t}\r\n\r\n\tReverseControl = () => {\r\n\t\tconst { model } = { ...this.state };\r\n\r\n\t\tif (model.ProcessStatusParams.ParameterValue != ClearingProcessStatus.ReadyToSend) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tif (model.DirectionParams.ParameterValue != ClearingDirection.Outgoing) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tif (model.IssuerFlagParams.ParameterValue != ClearingIssuerFlag.Acquirer) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tif (model.IsReversal) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\r\n\t\treturn false;\r\n\t}\r\n\r\n\r\n\tHandleClickReverse = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/prepaidapi/v1.0/VisaClearingTransaction/VisaClearingTransactionReverse\",\r\n\t\t\tthis.state.detailModel,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (responseData.IsSucceeded != false) {\r\n\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tisDialogOpen: false\r\n\t\t\t\t\t});\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t});\r\n\t}\r\n\r\n\r\n\r\n\tValidateDispute = () => {\r\n\r\n\t\tconst model = this.state.disputeModel;\r\n\r\n\t\tif (model.ChargebackStatusId) {\r\n\t\t\tif (!model.ChargebackReasonCodeId) {\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Chargeback\", \"Chargeback Reason Code can not be empty\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// if (model.RetrievalResponseStatusId) {\r\n\t\t// \tif (!model.RetrievalResponseReasonCodeId) {\r\n\t\t// \t\tthis.props.showMessage(\"error\", \"Retrieval Response\", \"Retrieval Response Reason Code can not be empty\");\r\n\t\t// \t\treturn false;\r\n\t\t// \t}\r\n\t\t// }\r\n\r\n\t\tif (model.RepresentmentStatusId) {\r\n\t\t\tif (model.ChargebackStatusId) {\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Charge Back\", \"Chargeback information can not be empty\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tif (!model.RepresentmentReasonCodeId) {\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Representment\", \"Representment Reason Code can not be empty\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\t\tif (model.SecondChargebackStatusId) {\r\n\t\t\tif (!model.RepresentmentStatusId) {\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Retrieval Response\", \"Representment information can not be empty\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tif (model.SecondChargebackReasonCodeId) {\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Retrieval Response\", \"Second Chargeback Reason Code can not be empty\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\tHandleClickDispute = () => {\r\n\t\tif (!this.ValidateDispute()) return false;\r\n\r\n\t\tthis.state.disputeModel.PgmCode = PgmCodeType.Visa;\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/prepaidapi/v1.0/ClearingDispute/InsertOrUpdateClearingDispute\",\r\n\t\t\tthis.state.disputeModel,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (responseData.IsSucceeded != false) {\r\n\t\t\t\t\tthis.CancelSelectCallback();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t});\r\n\t}\r\n\r\n\r\n\tHandleDisputeAction = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tProxy.POST(\"/prepaidapi/v1.0/ClearingDispute/GetDisputeAction\",\r\n\t\t\t{\r\n\t\t\t\tDisputeId: this.state.disputeModel.Id\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (responseData.IsSucceeded != false) {\r\n\t\t\t\t\tthis.setState({ isDisputeActionDialogOpen: true, DisputeActionData: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.setState({ isDisputeActionDialogOpen: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t});\r\n\t}\r\n\r\n\tHandleGetDispute = (model) => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/prepaidapi/v1.0/ClearingDispute/GetDisputeByTransactionId\",\r\n\t\t\t{\r\n\t\t\t\tClearingDataTableId: model.Id,\r\n\t\t\t\tPgmCode: PgmCodeType.Visa\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (responseData.IsSucceeded != false) {\r\n\t\t\t\t\tthis.setState({ isDisputeDialogOpen: true, disputeModel: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.setState({ isDisputeDialogOpen: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t});\r\n\t}\r\n\r\n\tHandleActionDialogOpen = () => {\r\n\t\tthis.HandleDisputeAction();\r\n\t}\r\n\tHandleActionDialogClose = () => {\r\n\t\tthis.setState({ isDisputeActionDialogOpen: false });\r\n\t}\r\n\r\n\tDisputeFeeModelChange = (modelFunction) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.disputeFeeModel || {};\r\n\t\t\tif (modelFunction)\r\n\t\t\t\tmodel = modelFunction(model);\r\n\t\t\treturn { disputeFeeModel: model, disputeModel: this.state.disputeModel };\r\n\t\t});\r\n\t}\r\n\r\n\tDisputeFeeModelDelete = (index) => {\r\n\t\tif (!index) {\r\n\t\t\tthis.state.disputeModel.ClearingDisputeFeeData.splice(index, 1);\r\n\t\t}\r\n\t\tthis.setState({ disputeModel: this.state.disputeModel });\r\n\t}\r\n\r\n\tDisputeFeeModelClear = () => {\r\n\t\tthis.setState({ disputeFeeModel: {} });\r\n\t}\r\n\r\n\tDisputeFeeModelEdit = (index) => {\r\n\t\tif (!index) {\r\n\t\t\tthis.state.disputeModel.ClearingDisputeFeeData[index] = this.state.disputeFeeModel;\r\n\t\t}\r\n\t\tthis.setState({ disputeModel: this.state.disputeModel });\r\n\t}\r\n\r\n\r\n\tDisputeFeeModelPush = (modelFunction) => {\r\n\t\tvar model = this.state.disputeFeeModel || {};\r\n\t\tvar arr = this.state.disputeModel.ClearingDisputeFeeData || [];\r\n\t\tarr.push({ ...model });\r\n\t\tthis.state.disputeModel.ClearingDisputeFeeData = arr;\r\n\t\tthis.setState({ disputeModel: this.state.disputeModel });\r\n\t}\r\n\r\n\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, isLoading } = this.state;\r\n\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{this.state.isDisputeDialogOpen &&\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t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\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nVisaClearingTransaction.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(VisaClearingTransaction, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericDateInput, GenericExpansionPanel, GenericGrid, GenericTextInput, GenericDialog, GenericRadioInput, GenericLabel, GenericDialogActions } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Select from \"react-select\";\r\nimport Button from \"components/CustomButtons/Button\";\r\n\r\nclass VisaDirectSettlementReport extends React.Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tlist: [],\r\n\t\t\tmodel: {},\r\n\t\t\tfilterModel: {},\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\r\n\t\tthis.trxTable = React.createRef();\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Visa Direct Settlement Report\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {}\r\n\t\t});\r\n\t};\r\n\r\n\tHandleSearch = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tconst { showMessage } = this.props;\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/VisaClearingTransaction/VisaDirectSettlementReportSearch\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t this.setState({ isLoading: false });\r\n \r\n\t\t\t if (!responseData.IsSucceeded) {\r\n\t\t\t\t showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t return;\r\n\t\t\t }\r\n\t\t\t this.setState({\r\n\t\t\t\tlist: responseData.Item ?? [],\r\n\t\t\t });\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t this.setState({ isLoading: false });\r\n\t\t\t showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t );\r\n\t};\r\n\r\n\tExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.accessor != \"Actions\" && c.accessor != \"ED\" && (c.show == undefined || c.show)) {\r\n\t\t\t\ttrxColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: trxColumns, ExportSelectedColumns: trxColumns });\r\n\t}\r\n\r\n\tExcelDownload = () => {\r\n\t\tconst { showMessage } = this.props;\r\n\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tshowMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tshowMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tconst temp = { ...this.state.model };\r\n\r\n\t\tvar jsonColList = [];\r\n\r\n\t\tvar trxColumns = {};\r\n\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\ttrxColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t});\r\n\t\tjsonColList.push(trxColumns);\r\n\r\n\t\tvar mytitle = \"Visa Direct Settlement Report\";\r\n\r\n\t\ttemp.jsonFile = {\r\n\t\t\tcolmns: jsonColList,\r\n\t\t\tformat: this.state.ExportReportType,\r\n\t\t\ttitle: mytitle\r\n\t\t};\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\"/prepaidapi/v1.0/VisaClearingTransaction/VisaDirectSettlementReportExportDownload\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t},\r\n\t\t\tthis.props.showMessage\r\n\t\t);\r\n\t}\r\n\r\n\r\n\trender() {\r\n\t\tconst { alert, model, list, isLoading } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\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\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nVisaDirectSettlementReport.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default VisaDirectSettlementReport;\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericDateInput, GenericExpansionPanel, GenericGrid, GenericTextInput, GenericDialog, GenericRadioInput, GenericLabel, GenericDialogActions } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Select from \"react-select\";\r\nimport Button from \"components/CustomButtons/Button\";\r\n\r\nclass VisaSettlementRefundsReport extends React.Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tlist: [],\r\n\t\t\tmodel: {},\r\n\t\t\tfilterModel: {},\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\r\n\t\tthis.trxTable = React.createRef();\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Settlement Refunds Report\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {}\r\n\t\t});\r\n\t};\r\n\r\n\tHandleSearch = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tconst { showMessage } = this.props;\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/VisaClearingTransaction/VisaSettlementRefundsSearch\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t this.setState({ isLoading: false });\r\n \r\n\t\t\t if (!responseData.IsSucceeded) {\r\n\t\t\t\t showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t return;\r\n\t\t\t }\r\n\t\t\t this.setState({\r\n\t\t\t\tlist: responseData.Item ?? [],\r\n\t\t\t });\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t this.setState({ isLoading: false });\r\n\t\t\t showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t );\r\n\t};\r\n\r\n\tExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.accessor != \"Actions\" && c.accessor != \"ED\" && (c.show == undefined || c.show)) {\r\n\t\t\t\ttrxColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: trxColumns, ExportSelectedColumns: trxColumns });\r\n\t}\r\n\r\n\tExcelDownload = () => {\r\n\t\tconst { showMessage } = this.props;\r\n\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tshowMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tshowMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tconst temp = { ...this.state.model };\r\n\r\n\t\tvar jsonColList = [];\r\n\r\n\t\tvar trxColumns = {};\r\n\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\ttrxColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t});\r\n\t\tjsonColList.push(trxColumns);\r\n\r\n\t\tvar mytitle = \"Settlement Refunds Report\";\r\n\r\n\t\ttemp.jsonFile = {\r\n\t\t\tcolmns: jsonColList,\r\n\t\t\tformat: this.state.ExportReportType,\r\n\t\t\ttitle: mytitle\r\n\t\t};\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\"/prepaidapi/v1.0/VisaClearingTransaction/VisaSettlementRefundsSearchExportDownload\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t},\r\n\t\t\tthis.props.showMessage\r\n\t\t);\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState({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\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nVisaSettlementRefundsReport.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default VisaSettlementRefundsReport;\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericDateInput, GenericExpansionPanel, GenericGrid, GenericTextInput, GenericDialog, GenericRadioInput, GenericLabel, GenericDialogActions } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Select from \"react-select\";\r\nimport Button from \"components/CustomButtons/Button\";\r\n\r\nclass VisaSettlementReport extends React.Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tlist: [],\r\n\t\t\tmodel: {},\r\n\t\t\tfilterModel: {},\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\t\r\n\t\tthis.trxTable = React.createRef();\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Visa Settlement Report\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {}\r\n\t\t});\r\n\t};\r\n\r\n\tHandleSearch = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tconst { showMessage } = this.props;\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/VisaClearingTransaction/VisaSmsDataTransactionSearch\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t this.setState({ isLoading: false });\r\n \r\n\t\t\t if (!responseData.IsSucceeded) {\r\n\t\t\t\t showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t return;\r\n\t\t\t }\r\n\t\t\t this.setState({\r\n\t\t\t\tlist: responseData.Item ?? [],\r\n\t\t\t });\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t this.setState({ isLoading: false });\r\n\t\t\t showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t );\r\n\t};\r\n\r\n\tExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.accessor != \"Actions\" && c.accessor != \"ED\" && (c.show == undefined || c.show)) {\r\n\t\t\t\ttrxColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: trxColumns, ExportSelectedColumns: trxColumns });\r\n\t}\r\n\r\n\tExcelDownload = () => {\r\n\t\tconst { showMessage } = this.props;\r\n\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tshowMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tshowMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tconst temp = { ...this.state.model };\r\n\r\n\t\tvar jsonColList = [];\r\n\r\n\t\tvar trxColumns = {};\r\n\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\ttrxColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t});\r\n\t\tjsonColList.push(trxColumns);\r\n\r\n\t\tvar mytitle = \"Visa Settlement Report\";\r\n\r\n\t\ttemp.jsonFile = {\r\n\t\t\tcolmns: jsonColList,\r\n\t\t\tformat: this.state.ExportReportType,\r\n\t\t\ttitle: mytitle\r\n\t\t};\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\"/prepaidapi/v1.0/VisaClearingTransaction/VisaSmsDataTransactionSearchExportDownload\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t},\r\n\t\t\tthis.props.showMessage\r\n\t\t);\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { alert, model, list, isLoading } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nVisaSettlementReport.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default VisaSettlementReport;\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericExpansionPanel,GenericRadioInput, GenericGrid,GenericDialog,GenericAlert,GenericDialogActions,GenericLabel, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Select from \"react-select\";\r\n\r\nclass CardAuthorizationMatching extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t\tIsMainCard: true,\r\n\t\t\tProgramCode: \"\",\r\n\t\t\tStartDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tEndDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tvModel: {}\r\n\t\t};\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.maxLength6 = { maxLength: 6 };\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : undefined\r\n\t\t};\r\n\r\n\t\tthis.parameterProduct = {};\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Create Date\",\r\n\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Application NetWork\",\r\n\t\t\t\taccessor: \"ApplicationNetWork\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reference Number\",\r\n\t\t\t\taccessor: \"ReferenceNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"External Reference Number\",\r\n\t\t\t\taccessor: \"ExternalReferenceNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Number\",\r\n\t\t\t\taccessor: \"CardTokenNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Code\",\r\n\t\t\t\taccessor: \"TransactionCodeDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Available Balance\",\r\n\t\t\t\taccessor: \"AvailableBalance\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"BillingAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Entry Type\",\r\n\t\t\t\taccessor: \"TransactionEntryTypeDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Merchant Clearing Amount\",\r\n\t\t\t\taccessor: \"SettlementAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Type\",\r\n\t\t\t\taccessor: \"TransactionTypeDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Merchant\",\r\n\t\t\t\taccessor: \"Merchant\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Mti\",\r\n\t\t\t\taccessor: \"Mti\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Processing Code\",\r\n\t\t\t\taccessor: \"ProcessingCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"City\",\r\n\t\t\t\taccessor: \"City\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Fee\",\r\n\t\t\t\taccessor: \"TransactionFee\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Description\",\r\n\t\t\t\taccessor: \"TransactionDescription\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Response Code\",\r\n\t\t\t\taccessor: \"ResponseCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Response\",\r\n\t\t\t\taccessor: \"ResponseDescription\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Error Code\",\r\n\t\t\t\taccessor: \"ErrorCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Error Description\",\r\n\t\t\t\taccessor: \"ErrorDescription\"\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Pos Country\",\r\n\t\t\t\taccessor: \"PosCountry\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Merchant Clearing Date\",\r\n\t\t\t\taccessor: \"SwitchSettlemntDate\"\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Mcc\",\r\n\t\t\t\taccessor: \"Mcc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"NetTraceId\",\r\n\t\t\t\taccessor: \"NetTraceId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Authorzation Code\",\r\n\t\t\t\taccessor: \"AuthorzationCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Orginal Amount\",\r\n\t\t\t\taccessor: \"OrginalAmount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Currency\",\r\n\t\t\t\taccessor: \"TransactionCurrency\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Billing Currency\",\r\n\t\t\t\taccessor: \"BillingCurrency\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"CustomerName\"\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Emboss Name\",\r\n\t\t\t\taccessor: \"EmbossName1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Usage Limit\",\r\n\t\t\t\taccessor: \"CardUsageLimit\",\r\n\t\t\t\ttype: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Type Id\",\r\n\t\t\t\taccessor: \"TransactionTypeId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Provision Transaction Type Id\",\r\n\t\t\t\taccessor: \"ProvisionTransactionTypeId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Reversed\",\r\n\t\t\t\taccessor: \"IsReversed\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value == true ? \"Yes\" : \"No\"}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reversed Date\",\r\n\t\t\t\taccessor: \"ReversedDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reversal Type\",\r\n\t\t\t\taccessor: \"ReversalType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"System Settlement Status\",\r\n\t\t\t\taccessor: \"SettlementStatusId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Mobile Wallet Type\",\r\n\t\t\t\taccessor: \"MobileWalletType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Original Transaction Reference Number\",\r\n\t\t\t\taccessor: \"MatchTransactionReferenceNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Match Date Time\",\r\n\t\t\t\taccessor: \"MatchDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Match Status\",\r\n\t\t\t\taccessor: \"MatchStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader:\"Mobile Wallet Code\",\r\n\t\t\t\taccessor:\"MobileWalletCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Mobile Wallet Type Id\",\r\n\t\t\t\taccessor: \"MobileWaletTypeId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader:\"Transaction Identifier\",\r\n\t\t\t\taccessor: \"TransactionIdentifier\"\r\n\t\t\t},\r\n\t\t];\r\n\t\t\r\n\t\tthis.trxTable = React.createRef();\r\n\t}\r\n\r\n\t showMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t alert: (\r\n\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t />\r\n\t\t ),\r\n\t\t});\r\n\t };\r\n\t\r\n\t setValueToState = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t };\r\n\t showLoading() {\r\n\t\tthis.setState({ isLoading: true });\r\n\t }\r\n \r\n\t hideLoading() {\r\n\t\tthis.setState({ isLoading: false });\r\n\t }\r\n\r\n\t ExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.accessor != \"Actions\" && c.accessor != \"ED\" && (c.show == undefined || c.show)) {\r\n\t\t\t\ttrxColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: trxColumns, ExportSelectedColumns: trxColumns });\r\n\t}\r\n\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tthis.props.showConfirmMessage(\"question\", \"Long Process Warning\", \"This process may take a while. Continue ?\", () => {\r\n\t\t\tthis.hideAlert();\r\n\t\t\tconst { model } = this.state;\r\n\t\t\tmodel.IsClientBalanceScreen = true;\r\n\r\n\t\t\t// Add jsonFile\r\n\t\t\tvar jsonColList = [];\r\n\r\n\t\t\tvar trxColumns = {};\r\n\t\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\t\ttrxColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t\t});\r\n\t\t\tjsonColList.push(trxColumns);\r\n\r\n\t\t\tmodel[\"jsonFile\"] = {\r\n\t\t\t\tcolmns: jsonColList,\r\n\t\t\t\tformat: this.state.ExportReportType,\r\n\t\t\t\ttitle: \"Visa Settlement Report\"\r\n\t\t\t};\r\n\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\t\"/prepaidapi/v1.0/Card/CardAuthorizationMatchingExportDownload\",\r\n\t\t\t\tmodel,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terrorMessage => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t\t},\r\n\t\t\t\tthis.props.showMessage\r\n\t\t\t);\r\n\t\t});\r\n\t}\r\n\t openExportDialog = () => {\r\n\t\tthis.setState({\r\n\t\t isDownloadDialogOpen: true,\r\n\t\t});\r\n\t };\r\n \r\n\t closeExportDialog = () => {\r\n\t\tthis.setState({\r\n\t\t isDownloadDialogOpen: false,\r\n\t\t});\r\n\t };\r\n \r\n \r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Card Authorization Matching\");\r\n\t\tthis.props.setAppCenterTitle(\"CLEARING & SETTLEMENT\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tValueChangedForExport = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, isEdit: false, index: -1 });\r\n\t}\r\n\r\n\t\r\n\r\n\tHandleSearch = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst model = { ...this.state.model };\r\n\t\t\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Card/CardAuthorizationMatchingSearch\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\r\n\t}\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\r\n\t\tvar errorList = [];\r\n\r\n\t\tif (!model.IsHasCustomer) {\r\n\t\t\tvModel.StartDate = !model.StartDate;\r\n\t\t\tif (vModel.StartDate)\r\n\t\t\t\terrorList.push(\"StartDate cannot be empty!\");\r\n\r\n\t\t\tvModel.EndDate = !model.EndDate;\r\n\t\t\tif (vModel.EndDate)\r\n\t\t\t\terrorList.push(\"EndDate cannot be empty!\");\r\n\t\t}\r\n\t\telse if (model.IsHasCustomer) {\r\n\t\t\tvModel.UniqueClientId = !model.UniqueClientId;\r\n\t\t\tif (vModel.UniqueClientId) {\r\n\t\t\t\terrorList.push(\"Select the Client to continue.\");\r\n\t\t\t}\r\n\t\t\tvModel.ClientCustomerId = !model.ClientCustomerId;\r\n\t\t\tif (vModel.ClientCustomerId) {\r\n\t\t\t\terrorList.push(\"Select the Customer to continue.\");\r\n\t\t\t}\r\n\t\t\tvModel.CardId = !model.CardId;\r\n\t\t\tif (vModel.CardId) {\r\n\t\t\t\terrorList.push(\"Select the Card to continue.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (errorList.length > 0) {\r\n\t\t\tshowValidationErrors(errorList);\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tGetModel = () => { return this.state.model; }\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, isLoading } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t this.ExportClick(), Disabled: Disabled }\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\t\t\tname=\"Columns\"\r\n\t\t\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCardAuthorizationMatching.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(CardAuthorizationMatching, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericDateInput, GenericDialog, GenericLabel, GenericDialogActions, GenericRadioInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport Select from \"react-select\";\r\nimport { Proxy } from \"core\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\n\r\nclass CardEmbossBillingList extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.sortedName = { Member: \"Name\" };\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"File Date\",\r\n\t\t\t\taccessor: \"FileDate\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"File Name\",\r\n\t\t\t\taccessor: \"FileName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\",\r\n\t\t\t\twidth: 200,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Brand\",\r\n\t\t\t\taccessor: \"CardBrand\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Product Name\",\r\n\t\t\t\taccessor: \"ProductName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Number of Total\",\r\n\t\t\t\taccessor: \"NumberofTotal\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Number of Success\",\r\n\t\t\t\taccessor: \"NumberofSuccess\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Number of Rejected\",\r\n\t\t\t\taccessor: \"NumberofRejected\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"FileStatus\",\r\n\t\t\t\taccessor: \"FileStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Number Of Instant Cards\",\r\n\t\t\t\taccessor: \"NumberOfInstantCards\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Number Of Perso Office Cards\",\r\n\t\t\t\taccessor: \"NumberOfPersoOfficeCards\"\r\n\t\t\t},\r\n\t\t];\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : undefined\r\n\t\t};\r\n\r\n\t\tthis.cardEmbossTable = React.createRef();\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tFromDate: DateHelper.GetDateLocal(),\r\n\t\t\t\tToDate: DateHelper.GetDateLocal(),\r\n\t\t\t}, isLoading: false, checkedAccounts: [], ClientTypeParameter: {}\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Card Emboss Billing List\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t}\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tvar result = null;\r\n\t\tresult = await ExecuteApiPost(\"/prepaidapi/v1.0/CardEmbossFile/GetCardEmbossBillingList\", model, null, null, null);\r\n\t\tif (result != null) {\r\n\t\t\tthis.setState({ list: result || [] });\r\n\t\t}\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {\r\n\t\t\t\tFromDate: DateHelper.GetDateLocal(),\r\n\t\t\t\tToDate: DateHelper.GetDateLocal(),\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tvar { model } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errors = [];\r\n\r\n\t\tif (!model.FromDate) {\r\n\t\t\terrors.push(\"From Date must be select\");\r\n\t\t}\r\n\r\n\t\tif (!model.ToDate) {\r\n\t\t\terrors.push(\"To Date must be select\");\r\n\t\t}\r\n\r\n\t\tif (model.ToDate < model.FromDate) {\r\n\t\t\terrors.push(\"To Date must be bigger than From Date\");\r\n\t\t}\r\n\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tGetRenderItemUniqueClient = (x) => {\r\n\t\tthis.renderItemUniqueClient = `${x.Name} - ${x.UniqueClientId}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tValueChangedForReportType = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\r\n\tExportClick = () => {\r\n\t\tvar cardEmbossColumns = [];\r\n\t\tthis.cardEmbossTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.show == undefined || c.show) {\r\n\t\t\t\tcardEmbossColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: cardEmbossColumns, ExportSelectedColumns: cardEmbossColumns });\r\n\t}\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\t\tconst temp = { ...this.state.model };\r\n\t\tvar jsonColList = [];\r\n\t\tvar cardEmbossColumns = {};\r\n\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\tcardEmbossColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t});\r\n\t\tjsonColList.push(cardEmbossColumns);\r\n\r\n\t\tvar mytitle = \"Card Emboss Billing List\";\r\n\r\n\t\ttemp.jsonFile = {\r\n\t\t\tcolmns: jsonColList,\r\n\t\t\tformat: this.state.ExportReportType,\r\n\t\t\ttitle: mytitle\r\n\t\t};\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\"/prepaidapi/v1.0/CardEmbossFile/CardEmbossBillingListExportDownload\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t},\r\n\t\t\tthis.props.showMessage\r\n\t\t);\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, list } = this.state;\r\n\t\tconst { Disabled, } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\tclassName=\"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n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\nexport default CardEmbossBillingList;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes, { bool, func } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericGrid, GenericNumberInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { Direction, GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\n\r\nclass ExportCardEmbossFileList extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tFromDate: DateHelper.GetDate(),\r\n\t\t\t\tToDate: DateHelper.GetDate(),\r\n\t\t\t\tDirectionParameterValue: \"\"\r\n\t\t\t},\r\n\t\t\tgetTransactionByFileIdModel: {\r\n\t\t\t\tDirectionParameterValue: \"\"\r\n\t\t\t},\r\n\t\t\tdailyFileList: [],\r\n\t\t\tfileInfoModel: {},\r\n\t\t\theaderModel: {},\r\n\t\t\tcardList: [],\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : undefined\r\n\t\t};\r\n\r\n\t\tthis.IsImportScreen = false;\r\n\t\tthis.IsExportScreen = false;\r\n\r\n\t\tthis.HeaderColumns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"File Name\",\r\n\t\t\t\taccessor: \"FileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"File Date\",\r\n\t\t\t\taccessor: \"FileDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Record Count\",\r\n\t\t\t\taccessor: \"RecordCount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"File Status\",\r\n\t\t\t\taccessor: \"SendStatus\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.DetailColumns =\r\n\t\t\t[\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Create Date\",\r\n\t\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\t\ttype: GridColumnType.DateTimeUtc\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Card Id\",\r\n\t\t\t\t\taccessor: \"CardId\"\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Client\",\r\n\t\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\t\taccessor: \"CustomerName\"\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Card Number\",\r\n\t\t\t\t\taccessor: \"CardNumber\"\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Product Name\",\r\n\t\t\t\t\taccessor: \"ProductName\"\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Emboss Name\",\r\n\t\t\t\t\taccessor: \"EmbossName1\"\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Usage Limit\",\r\n\t\t\t\t\taccessor: \"CardUsageLimit\",\r\n\t\t\t\t\ttype: GridColumnType.Money\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Issuing Reason Type\",\r\n\t\t\t\t\taccessor: \"IssuingReasonType\",\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Emboss Status\",\r\n\t\t\t\t\taccessor: \"EmbossStatusName\",\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Plastic Type\",\r\n\t\t\t\t\taccessor: \"PlasticTypeDesc\",\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Product Brand\",\r\n\t\t\t\t\taccessor: \"ProductBrand\",\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Bin Description\",\r\n\t\t\t\t\taccessor: \"BinDesc\",\r\n\t\t\t\t}\r\n\t\t\t\t,\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Is No Name Card\",\r\n\t\t\t\t\taccessor: \"IsNoNameCard\",\r\n\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t
{row.value == true ? \"Yes\" : \"No\"}
\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\r\n\t\tthis.props.setAppLeftTitle(\"Export Card Emboss File\");\r\n\t\tthis.props.setAppCenterTitle(\"CLEARING & SETTLEMENT\");\r\n\r\n\t\tvar model = { ...this.state.model };\r\n\t\tmodel.DirectionParameterValue = Direction.Outgoing;\r\n\t\tvar getTransactionByFileIdModel = { ...this.state.getTransactionByFileIdModel };\r\n\t\tgetTransactionByFileIdModel.DirectionParameterValue = Direction.Outgoing;\r\n\t\tthis.setState({ getTransactionByFileIdModel, model });\r\n\t}\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tSelectedRowChange = (index) => {\r\n\t\tconst tempModel = this.state.dailyFileList[index];\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (tempModel.FileInformationId == null || tempModel.FileInformationId == undefined)\r\n\t\t\tthis.props.showMessage(\"Error\", \"File can not be null\", \"error\");\r\n\t\telse {\r\n\t\t\tmodel.ClientId = tempModel.UniqueClientId;\r\n\t\t\tthis.setState({ fileInfoModel: tempModel, model, isLoading: true, rowIndex: index });\r\n\t\t\tthis.GetCardList(tempModel.FileInformationId);\r\n\r\n\t\t}\r\n\t}\r\n\r\n\tGetDailyFileList = async () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\r\n\t\tvar result = await ExecuteApiPost(\"/prepaidapi/v1.0/CardEmbossFile/GetExportCardEmbossFileList\", this.state.model);\r\n\t\tif (result) {\r\n\t\t\tthis.setState({\r\n\t\t\t\tcardList: [], headerModel: {},\r\n\t\t\t\tdailyFileList: result, isLoading: false\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\r\n\r\n\tGetCardList = async (Id) => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\r\n\t\tvar getTransactionByFileIdModel = { ...this.state.getTransactionByFileIdModel };\r\n\t\tgetTransactionByFileIdModel.FileInformationId = Id;\r\n\t\tgetTransactionByFileIdModel.ClientId = this.state.model.UniqueClientId == null ? null : this.state.model.UniqueClientId;\r\n\r\n\t\tvar result = await ExecuteApiPost(\"/prepaidapi/v1.0/CardEmbossFile/GetExportCardEmbossFileDetailsByFileId\", getTransactionByFileIdModel);\r\n\t\tif (result) {\r\n\t\t\tthis.setState({ cardList: result.CardRequestDataList, headerModel: result.CardEmbossHeaderDetail, isLoading: false });\r\n\t\t}\r\n\r\n\t}\r\n\r\n\tClearModel = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {\r\n\t\t\t\tFromDate: DateHelper.GetDate(),\r\n\t\t\t\tToDate: DateHelper.GetDate(),\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, headerModel, isLoading } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t { this.SelectedRowChange(index); }}\r\n\t\t\t\t\t\t\t\t\tSelectedIndex={this.state.rowIndex}\r\n\t\t\t\t\t\t\t\t\tProgramCode={ProgramCodes.Prepaid}\r\n\t\t\t\t\t\t\t\t\tShowPagination={true}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t
Card List

\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nExportCardEmbossFileList.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\thandleOperationType: PropTypes.func,\r\n\tshowQuestionMessage: func,\r\n\tsetAppLeftTitle: func,\r\n\tsetAppCenterTitle: func,\r\n\tDisabled: bool\r\n};\r\n\r\nexport default withArtifex(ExportCardEmbossFileList, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes, { bool, func } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericGrid, GenericNumberInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { Direction, GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\n\r\nclass ImportCardEmbossFileList extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tFromDate: DateHelper.GetDate(),\r\n\t\t\t\tToDate: DateHelper.GetDate(),\r\n\t\t\t\tDirectionParameterValue: \"\"\r\n\t\t\t},\r\n\t\t\tgetTransactionByFileIdModel: {\r\n\t\t\t\tDirectionParameterValue: \"\"\r\n\t\t\t},\r\n\t\t\tdailyFileList: [],\r\n\t\t\tfileInfoModel: {},\r\n\t\t\theaderModel: {},\r\n\t\t\tcardList: [],\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : undefined\r\n\t\t};\r\n\r\n\t\tthis.IsImportScreen = false;\r\n\t\tthis.IsExportScreen = false;\r\n\r\n\t\tthis.HeaderColumns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"File Name\",\r\n\t\t\t\taccessor: \"FileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"File Date\",\r\n\t\t\t\taccessor: \"FileDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Record Count\",\r\n\t\t\t\taccessor: \"RecordCount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"File Status\",\r\n\t\t\t\taccessor: \"SendStatus\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.DetailColumns =\r\n\t\t\t[\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Create Date\",\r\n\t\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\t\ttype: GridColumnType.DateTimeUtc\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Card Number\",\r\n\t\t\t\t\taccessor: \"CardNumber\"\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Card Id\",\r\n\t\t\t\t\taccessor: \"CardId\"\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Emboss Status\",\r\n\t\t\t\t\taccessor: \"EmbossStatusName\",\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Client\",\r\n\t\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\t\taccessor: \"CustomerName\"\r\n\t\t\t\t},\r\n\t\t\t\t\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Product Name\",\r\n\t\t\t\t\taccessor: \"ProductName\"\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Emboss Name\",\r\n\t\t\t\t\taccessor: \"EmbossName1\"\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Usage Limit\",\r\n\t\t\t\t\taccessor: \"CardUsageLimit\",\r\n\t\t\t\t\ttype: GridColumnType.Money\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Issuing Reason Type\",\r\n\t\t\t\t\taccessor: \"IssuingReasonType\",\r\n\t\t\t\t},\r\n\t\t\t\t\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Plastic Type\",\r\n\t\t\t\t\taccessor: \"PlasticTypeDesc\",\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Product Brand\",\r\n\t\t\t\t\taccessor: \"ProductBrand\",\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Bin Description\",\r\n\t\t\t\t\taccessor: \"BinDesc\",\r\n\t\t\t\t}\r\n\t\t\t\t,\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Is No Name Card\",\r\n\t\t\t\t\taccessor: \"IsNoNameCard\",\r\n\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t
{row.value == true ? \"Yes\" : \"No\"}
\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\r\n\t\tthis.props.setAppLeftTitle(\"Import Card Emboss File\");\r\n\t\tthis.props.setAppCenterTitle(\"CLEARING & SETTLEMENT\");\r\n\r\n\t\tvar model = { ...this.state.model };\r\n\t\tmodel.DirectionParameterValue = Direction.Outgoing;\r\n\t\tvar getTransactionByFileIdModel = { ...this.state.getTransactionByFileIdModel };\r\n\t\tgetTransactionByFileIdModel.DirectionParameterValue = Direction.Outgoing;\r\n\t\tthis.setState({ getTransactionByFileIdModel, model });\r\n\t}\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tSelectedRowChange = (index) => {\r\n\t\tconst tempModel = this.state.dailyFileList[index];\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (tempModel.FileInformationId == null || tempModel.FileInformationId == undefined)\r\n\t\t\tthis.props.showMessage(\"Error\", \"File can not be null\", \"error\");\r\n\t\telse {\r\n\t\t\tmodel.ClientId = tempModel.UniqueClientId;\r\n\t\t\tthis.setState({ fileInfoModel: tempModel, model, isLoading: true, rowIndex: index });\r\n\t\t\tthis.GetCardList(tempModel.FileInformationId);\r\n\r\n\t\t}\r\n\t}\r\n\r\n\tGetDailyFileList = async () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/prepaidapi/v1.0/CardEmbossFile/GetImportCardEmbossFileList\", this.state.model);\r\n\t\tif (result) {\r\n\t\t\tthis.setState({\r\n\t\t\t\tcardList: [], headerModel: {},\r\n\t\t\t\tdailyFileList: result, isLoading: false\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\r\n\r\n\tGetCardList = async (Id) => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\r\n\t\tvar getTransactionByFileIdModel = { ...this.state.getTransactionByFileIdModel };\r\n\t\tgetTransactionByFileIdModel.FileInformationId = Id;\r\n\t\tgetTransactionByFileIdModel.ClientId = this.state.model.UniqueClientId == null ? null : this.state.model.UniqueClientId;\r\n\r\n\t\tvar result = await ExecuteApiPost(\"/prepaidapi/v1.0/CardEmbossFile/GetImportCardEmbossFileDetailsByFileId\", getTransactionByFileIdModel);\r\n\t\tif (result) {\r\n\t\t\tthis.setState({ cardList: result.CardRequestDataList, headerModel: result.CardEmbossHeaderDetail, isLoading: false });\r\n\t\t}\r\n\r\n\t}\r\n\tGetImportFile = async () => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/prepaidapi/v1.0/CardEmbossFile/ImportCardEmbossFile\");\r\n\t\tif (result) {\r\n\t\t\tthis.GetDailyFileList();\r\n\t\t}\r\n\t}\r\n\r\n\tClearModel = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {\r\n\t\t\t\tFromDate: DateHelper.GetDate(),\r\n\t\t\t\tToDate: DateHelper.GetDate(),\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, headerModel, isLoading } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t { this.SelectedRowChange(index); }}\r\n\t\t\t\t\t\t\t\t\tSelectedIndex={this.state.rowIndex}\r\n\t\t\t\t\t\t\t\t\tProgramCode={ProgramCodes.Prepaid}\r\n\t\t\t\t\t\t\t\t\tShowPagination={true}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t
Card List

\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nImportCardEmbossFileList.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\thandleOperationType: PropTypes.func,\r\n\tshowQuestionMessage: func,\r\n\tsetAppLeftTitle: func,\r\n\tsetAppCenterTitle: func,\r\n\tDisabled: bool\r\n};\r\n\r\nexport default withArtifex(ImportCardEmbossFileList, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericExpansionPanel,GenericRadioInput, GenericGrid,GenericDialog, GenericSelectInput,GenericAlert,GenericDialogActions,GenericLabel, GenericTitle, GenericNumberInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Select from \"react-select\";\r\n\r\nclass SwitchSettlementAggregateReportHundredList extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t\tIsMainCard: true,\r\n\t\t\tProgramCode: \"\",\r\n\t\t\tStartDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tEndDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tvModel: {}\r\n\t\t};\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.maxLength6 = { maxLength: 6 };\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : undefined\r\n\t\t};\r\n\r\n\t\tthis.parameterProduct = {};\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Insert Date Time\",\r\n\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Bin\",\r\n\t\t\t\taccessor: \"Bin\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Match Status\",\r\n\t\t\t\taccessor: \"MatchStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Count Credit\",\r\n\t\t\t\taccessor: \"TotalCreditCount\"\r\n\t\t\t},\t\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Amount Credit\",\r\n\t\t\t\taccessor: \"TotalCreditAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Count Debit\",\r\n\t\t\t\taccessor: \"TotalDebitCount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Amount Debit\",\r\n\t\t\t\taccessor: \"TotalDebitAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money,\r\n\t\t\t},\r\n\r\n\t\t];\r\n\r\n\t\tthis.Url = \"/prepaidapi/v1.0/Card/SwitchSettlementAggregateReportForHundred\";\r\n\r\n\t\tthis.sortParamValue = { Member: \"ParameterValue\" };\r\n\t\t\r\n\t\tthis.trxTable = React.createRef();\r\n\t}\r\n\r\n\t showMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t alert: (\r\n\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t />\r\n\t\t ),\r\n\t\t});\r\n\t };\r\n\t setValueToState = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t };\r\n\t showLoading() {\r\n\t\tthis.setState({ isLoading: true });\r\n\t }\r\n \r\n\t hideLoading() {\r\n\t\tthis.setState({ isLoading: false });\r\n\t }\r\n\t ExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.accessor != \"Actions\" && c.accessor != \"ED\" && (c.show == undefined || c.show)) {\r\n\t\t\t\ttrxColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: trxColumns, ExportSelectedColumns: trxColumns });\r\n\t}\r\n\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\r\n\t ExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tthis.props.showConfirmMessage(\"question\", \"Long Process Warning\", \"This process may take a while. Continue ?\", () => {\r\n\t\t\tthis.hideAlert();\r\n\t\t\tconst { model } = this.state;\r\n\t\t\tmodel.IsClientBalanceScreen = true;\r\n\r\n\t\t\t// Add jsonFile\r\n\t\t\tvar jsonColList = [];\r\n\r\n\t\t\tvar trxColumns = {};\r\n\t\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\t\ttrxColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t\t});\r\n\t\t\tjsonColList.push(trxColumns);\r\n\r\n\t\t\tmodel[\"jsonFile\"] = {\r\n\t\t\t\tcolmns: jsonColList,\r\n\t\t\t\tformat: this.state.ExportReportType,\r\n\t\t\t\ttitle: \"Switch Settlement Aggregate Report\"\r\n\t\t\t};\r\n\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\t\"/prepaidapi/v1.0/Card/SwitchSettlementAggregateForHundredExportDownload\",\r\n\t\t\t\tmodel,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terrorMessage => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t\t},\r\n\t\t\t\tthis.props.showMessage\r\n\t\t\t);\r\n\t\t});\r\n\t}\r\n\r\n\r\n\r\n\t openExportDialog = () => {\r\n\t\tthis.setState({\r\n\t\t isDownloadDialogOpen: true,\r\n\t\t});\r\n\t };\r\n \r\n\t closeExportDialog = () => {\r\n\t\tthis.setState({\r\n\t\t isDownloadDialogOpen: false,\r\n\t\t});\r\n\t };\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Switch Settlement Aggregate Report/100\");\r\n\t\tthis.props.setAppCenterTitle(\"CLEARING & SETTLEMENT\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tValueChangedForExport = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, isEdit: false, index: -1 });\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel.ProgramCode = this.ProgramCode;\r\n\t\t\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Card/SwitchSettlementAggregateReportForHundred\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\r\n\t}\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\r\n\t\tvar errorList = [];\r\n\r\n\t\tif (!model.IsHasCustomer) {\r\n\t\t\tvModel.StartDate = !model.StartDate;\r\n\t\t\tif (vModel.StartDate)\r\n\t\t\t\terrorList.push(\"StartDate cannot be empty!\");\r\n\r\n\t\t\tvModel.EndDate = !model.EndDate;\r\n\t\t\tif (vModel.EndDate)\r\n\t\t\t\terrorList.push(\"EndDate cannot be empty!\");\r\n\t\t}\r\n\t\telse if (model.IsHasCustomer) {\r\n\t\t\tvModel.UniqueClientId = !model.UniqueClientId;\r\n\t\t\tif (vModel.UniqueClientId) {\r\n\t\t\t\terrorList.push(\"Select the Client to continue.\");\r\n\t\t\t}\r\n\t\t\tvModel.ClientCustomerId = !model.ClientCustomerId;\r\n\t\t\tif (vModel.ClientCustomerId) {\r\n\t\t\t\terrorList.push(\"Select the Customer to continue.\");\r\n\t\t\t}\r\n\t\t\tvModel.CardId = !model.CardId;\r\n\t\t\tif (vModel.CardId) {\r\n\t\t\t\terrorList.push(\"Select the Card to continue.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (errorList.length > 0) {\r\n\t\t\tshowValidationErrors(errorList);\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\t\r\n\r\n\r\n\r\n\r\n\tGetModel = () => { return this.state.model; }\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, isLoading } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t this.ExportClick(), Disabled: Disabled }\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\t\t\tname=\"Columns\"\r\n\t\t\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nSwitchSettlementAggregateReportHundredList.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(SwitchSettlementAggregateReportHundredList, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericExpansionPanel,GenericRadioInput, GenericGrid,GenericDialog, GenericSelectInput,GenericAlert,GenericDialogActions,GenericLabel, GenericTitle, GenericNumberInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Select from \"react-select\";\r\n\r\nclass SwitchSettlementAggregateReportList extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t\tIsMainCard: true,\r\n\t\t\tProgramCode: \"\",\r\n\t\t\tStartDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tEndDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tvModel: {}\r\n\t\t};\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.maxLength6 = { maxLength: 6 };\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : undefined\r\n\t\t};\r\n\r\n\t\tthis.parameterProduct = {};\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Create Date\",\r\n\t\t\t\taccessor: \"MatchDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Bin\",\r\n\t\t\t\taccessor: \"Bin\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Match Status\",\r\n\t\t\t\taccessor: \"MatchStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Count Credit\",\r\n\t\t\t\taccessor: \"TotalCreditCount\"\r\n\t\t\t},\t\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Amount Credit\",\r\n\t\t\t\taccessor: \"TotalCreditAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Count Debit\",\r\n\t\t\t\taccessor: \"TotalDebitCount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Amount Debit\",\r\n\t\t\t\taccessor: \"TotalDebitAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money,\r\n\t\t\t},\r\n\r\n\t\t];\r\n\r\n\t\tthis.Url = \"/prepaidapi/v1.0/Card/SwitchSettlementAggregateReport\";\r\n\r\n\t\tthis.sortParamValue = { Member: \"ParameterValue\" };\r\n\t\t\r\n\t\tthis.trxTable = React.createRef();\r\n\t}\r\n\r\n\t showMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t alert: (\r\n\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t />\r\n\t\t ),\r\n\t\t});\r\n\t };\r\n\t setValueToState = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t };\r\n\t showLoading() {\r\n\t\tthis.setState({ isLoading: true });\r\n\t }\r\n \r\n\t hideLoading() {\r\n\t\tthis.setState({ isLoading: false });\r\n\t }\r\n\t ExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.accessor != \"Actions\" && c.accessor != \"ED\" && (c.show == undefined || c.show)) {\r\n\t\t\t\ttrxColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: trxColumns, ExportSelectedColumns: trxColumns });\r\n\t}\r\n\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\r\n\t ExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tthis.props.showConfirmMessage(\"question\", \"Long Process Warning\", \"This process may take a while. Continue ?\", () => {\r\n\t\t\tthis.hideAlert();\r\n\t\t\tconst { model } = this.state;\r\n\t\t\tmodel.IsClientBalanceScreen = true;\r\n\r\n\t\t\t// Add jsonFile\r\n\t\t\tvar jsonColList = [];\r\n\r\n\t\t\tvar trxColumns = {};\r\n\t\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\t\ttrxColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t\t});\r\n\t\t\tjsonColList.push(trxColumns);\r\n\r\n\t\t\tmodel[\"jsonFile\"] = {\r\n\t\t\t\tcolmns: jsonColList,\r\n\t\t\t\tformat: this.state.ExportReportType,\r\n\t\t\t\ttitle: \"Switch Settlement Aggregate Report\"\r\n\t\t\t};\r\n\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\t\"/prepaidapi/v1.0/Card/SwitchSettlementAggregateReportExportDownload\",\r\n\t\t\t\tmodel,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terrorMessage => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t\t},\r\n\t\t\t\tthis.props.showMessage\r\n\t\t\t);\r\n\t\t});\r\n\t}\r\n\r\n\r\n\r\n\t openExportDialog = () => {\r\n\t\tthis.setState({\r\n\t\t isDownloadDialogOpen: true,\r\n\t\t});\r\n\t };\r\n \r\n\t closeExportDialog = () => {\r\n\t\tthis.setState({\r\n\t\t isDownloadDialogOpen: false,\r\n\t\t});\r\n\t };\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Switch Settlement Aggregate Report/220\");\r\n\t\tthis.props.setAppCenterTitle(\"CLEARING & SETTLEMENT\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tValueChangedForExport = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, isEdit: false, index: -1 });\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel.ProgramCode = this.ProgramCode;\r\n\t\t\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Card/SwitchSettlementAggregateReport\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\r\n\t}\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\r\n\t\tvar errorList = [];\r\n\r\n\t\tif (!model.IsHasCustomer) {\r\n\t\t\tvModel.StartDate = !model.StartDate;\r\n\t\t\tif (vModel.StartDate)\r\n\t\t\t\terrorList.push(\"StartDate cannot be empty!\");\r\n\r\n\t\t\tvModel.EndDate = !model.EndDate;\r\n\t\t\tif (vModel.EndDate)\r\n\t\t\t\terrorList.push(\"EndDate cannot be empty!\");\r\n\t\t}\r\n\t\telse if (model.IsHasCustomer) {\r\n\t\t\tvModel.UniqueClientId = !model.UniqueClientId;\r\n\t\t\tif (vModel.UniqueClientId) {\r\n\t\t\t\terrorList.push(\"Select the Client to continue.\");\r\n\t\t\t}\r\n\t\t\tvModel.ClientCustomerId = !model.ClientCustomerId;\r\n\t\t\tif (vModel.ClientCustomerId) {\r\n\t\t\t\terrorList.push(\"Select the Customer to continue.\");\r\n\t\t\t}\r\n\t\t\tvModel.CardId = !model.CardId;\r\n\t\t\tif (vModel.CardId) {\r\n\t\t\t\terrorList.push(\"Select the Card to continue.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (errorList.length > 0) {\r\n\t\t\tshowValidationErrors(errorList);\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\t\r\n\r\n\r\n\r\n\r\n\tGetModel = () => { return this.state.model; }\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, isLoading } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t this.ExportClick(), Disabled: Disabled }\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\t\t\tname=\"Columns\"\r\n\t\t\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nSwitchSettlementAggregateReportList.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(SwitchSettlementAggregateReportList, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericExpansionPanel,GenericRadioInput, GenericGrid,GenericDialog, GenericSelectInput,GenericAlert,GenericDialogActions,GenericLabel, GenericTitle, GenericNumberInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Select from \"react-select\";\r\n\r\nclass VisaSettlementReportList extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t\tIsMainCard: true,\r\n\t\t\tProgramCode: \"\",\r\n\t\t\tStartDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tEndDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tvModel: {}\r\n\t\t};\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.maxLength6 = { maxLength: 6 };\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : undefined\r\n\t\t};\r\n\r\n\t\tthis.parameterProduct = {};\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Create Date\",\r\n\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Application NetWork\",\r\n\t\t\t\taccessor: \"ApplicationNetWork\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reference Number\",\r\n\t\t\t\taccessor: \"ReferenceNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"External Reference Number\",\r\n\t\t\t\taccessor: \"ExternalReferenceNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Number\",\r\n\t\t\t\taccessor: \"CardTokenNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Code\",\r\n\t\t\t\taccessor: \"TransactionCodeDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Available Balance\",\r\n\t\t\t\taccessor: \"AvailableBalance\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"BillingAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Entry Type\",\r\n\t\t\t\taccessor: \"TransactionEntryTypeDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Merchant Clearing Amount\",\r\n\t\t\t\taccessor: \"SettlementAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Type\",\r\n\t\t\t\taccessor: \"TransactionTypeDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Merchant\",\r\n\t\t\t\taccessor: \"Merchant\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Mti\",\r\n\t\t\t\taccessor: \"Mti\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Processing Code\",\r\n\t\t\t\taccessor: \"ProcessingCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"City\",\r\n\t\t\t\taccessor: \"City\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Fee\",\r\n\t\t\t\taccessor: \"TransactionFee\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Description\",\r\n\t\t\t\taccessor: \"TransactionDescription\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Response Code\",\r\n\t\t\t\taccessor: \"ResponseCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Response\",\r\n\t\t\t\taccessor: \"ResponseDescription\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Error Code\",\r\n\t\t\t\taccessor: \"ErrorCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Error Description\",\r\n\t\t\t\taccessor: \"ErrorDescription\"\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Pos Country\",\r\n\t\t\t\taccessor: \"PosCountry\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Merchant Clearing Date\",\r\n\t\t\t\taccessor: \"SwitchSettlemntDate\"\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Mcc\",\r\n\t\t\t\taccessor: \"Mcc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"NetTraceId\",\r\n\t\t\t\taccessor: \"NetTraceId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Authorzation Code\",\r\n\t\t\t\taccessor: \"AuthorzationCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Orginal Amount\",\r\n\t\t\t\taccessor: \"OrginalAmount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Currency\",\r\n\t\t\t\taccessor: \"TransactionCurrency\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Billing Currency\",\r\n\t\t\t\taccessor: \"BillingCurrency\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"CustomerName\"\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Emboss Name\",\r\n\t\t\t\taccessor: \"EmbossName1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Usage Limit\",\r\n\t\t\t\taccessor: \"CardUsageLimit\",\r\n\t\t\t\ttype: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Type Id\",\r\n\t\t\t\taccessor: \"TransactionTypeId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Provision Transaction Type Id\",\r\n\t\t\t\taccessor: \"ProvisionTransactionTypeId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Reversed\",\r\n\t\t\t\taccessor: \"IsReversed\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value == true ? \"Yes\" : \"No\"}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reversed Date\",\r\n\t\t\t\taccessor: \"ReversedDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reversal Type\",\r\n\t\t\t\taccessor: \"ReversalType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"System Settlement Status\",\r\n\t\t\t\taccessor: \"SettlementStatusId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Mobile Wallet Type\",\r\n\t\t\t\taccessor: \"MobileWalletType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Original Transaction Reference Number\",\r\n\t\t\t\taccessor: \"MatchTransactionReferenceNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Match Date Time\",\r\n\t\t\t\taccessor: \"MatchDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Match Status\",\r\n\t\t\t\taccessor: \"MatchStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader:\"Mobile Wallet Code\",\r\n\t\t\t\taccessor:\"MobileWalletCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Mobile Wallet Type Id\",\r\n\t\t\t\taccessor: \"MobileWaletTypeId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader:\"Transaction Identifier\",\r\n\t\t\t\taccessor: \"TransactionIdentifier\"\r\n\t\t\t},\r\n\t\t];\r\n\r\n\t\tthis.Url = \"/prepaidapi/v1.0/Card/VisaSettlementReports\";\r\n\r\n\t\tthis.sortParamValue = { Member: \"ParameterValue\" };\r\n\t\t\r\n\t\tthis.trxTable = React.createRef();\r\n\t}\r\n\r\n\t showMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t alert: (\r\n\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t />\r\n\t\t ),\r\n\t\t});\r\n\t };\r\n\t\r\n\t setValueToState = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t };\r\n\t showLoading() {\r\n\t\tthis.setState({ isLoading: true });\r\n\t }\r\n \r\n\t hideLoading() {\r\n\t\tthis.setState({ isLoading: false });\r\n\t }\r\n\r\n\t ExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.accessor != \"Actions\" && c.accessor != \"ED\" && (c.show == undefined || c.show)) {\r\n\t\t\t\ttrxColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: trxColumns, ExportSelectedColumns: trxColumns });\r\n\t}\r\n\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tthis.props.showConfirmMessage(\"question\", \"Long Process Warning\", \"This process may take a while. Continue ?\", () => {\r\n\t\t\tthis.hideAlert();\r\n\t\t\tconst { model } = this.state;\r\n\t\t\tmodel.IsClientBalanceScreen = true;\r\n\r\n\t\t\t// Add jsonFile\r\n\t\t\tvar jsonColList = [];\r\n\r\n\t\t\tvar trxColumns = {};\r\n\t\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\t\ttrxColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t\t});\r\n\t\t\tjsonColList.push(trxColumns);\r\n\r\n\t\t\tmodel[\"jsonFile\"] = {\r\n\t\t\t\tcolmns: jsonColList,\r\n\t\t\t\tformat: this.state.ExportReportType,\r\n\t\t\t\ttitle: \"Visa Settlement Report\"\r\n\t\t\t};\r\n\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\t\"/prepaidapi/v1.0/Card/VisaSettlementExportDownload\",\r\n\t\t\t\tmodel,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terrorMessage => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t\t},\r\n\t\t\t\tthis.props.showMessage\r\n\t\t\t);\r\n\t\t});\r\n\t}\r\n\t openExportDialog = () => {\r\n\t\tthis.setState({\r\n\t\t isDownloadDialogOpen: true,\r\n\t\t});\r\n\t };\r\n \r\n\t closeExportDialog = () => {\r\n\t\tthis.setState({\r\n\t\t isDownloadDialogOpen: false,\r\n\t\t});\r\n\t };\r\n \r\n \r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Visa Settlement Report\");\r\n\t\tthis.props.setAppCenterTitle(\"CLEARING & SETTLEMENT\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tValueChangedForExport = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, isEdit: false, index: -1 });\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel.ProgramCode = this.ProgramCode;\r\n\t\t\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Card/VisaSettlementReports\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\r\n\t}\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\r\n\t\tvar errorList = [];\r\n\r\n\t\tif (!model.IsHasCustomer) {\r\n\t\t\tvModel.StartDate = !model.StartDate;\r\n\t\t\tif (vModel.StartDate)\r\n\t\t\t\terrorList.push(\"StartDate cannot be empty!\");\r\n\r\n\t\t\tvModel.EndDate = !model.EndDate;\r\n\t\t\tif (vModel.EndDate)\r\n\t\t\t\terrorList.push(\"EndDate cannot be empty!\");\r\n\t\t}\r\n\t\telse if (model.IsHasCustomer) {\r\n\t\t\tvModel.UniqueClientId = !model.UniqueClientId;\r\n\t\t\tif (vModel.UniqueClientId) {\r\n\t\t\t\terrorList.push(\"Select the Client to continue.\");\r\n\t\t\t}\r\n\t\t\tvModel.ClientCustomerId = !model.ClientCustomerId;\r\n\t\t\tif (vModel.ClientCustomerId) {\r\n\t\t\t\terrorList.push(\"Select the Customer to continue.\");\r\n\t\t\t}\r\n\t\t\tvModel.CardId = !model.CardId;\r\n\t\t\tif (vModel.CardId) {\r\n\t\t\t\terrorList.push(\"Select the Card to continue.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (errorList.length > 0) {\r\n\t\t\tshowValidationErrors(errorList);\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\t\r\n\r\n\r\n\r\n\r\n\tGetModel = () => { return this.state.model; }\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, isLoading } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t this.ExportClick(), Disabled: Disabled }\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\t\t\tname=\"Columns\"\r\n\t\t\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nVisaSettlementReportList.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(VisaSettlementReportList, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport AlertHelper from \"core/AlertHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericGrid, GenericNumberInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant.js\";\r\n\r\nclass BAI2File extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tFromDate: DateHelper.GetDate(),\r\n\t\t\t\tToDate: DateHelper.GetDate()\r\n\t\t\t},\r\n\t\t\tsettlementFileList: [],\r\n\t\t\theaderModel: {},\r\n\t\t\ttransactionList: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tSettlementType: \"\"\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"BAI2 File\");\r\n\t\tthis.props.setAppCenterTitle(\"CLEARING & SETTLEMENT\");\r\n\t}\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tvar { SettlementType } = this.state;\r\n\t\tif (name == \"EFTTypeId\")\r\n\t\t\tSettlementType = data != null ? data.ParameterDesc : \"\";\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model, SettlementType });\r\n\t}\r\n\r\n\tSelectedRowChange = (index) => {\r\n\t\tconst tempModel = this.state.settlementFileList[index];\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (tempModel.Id == null || tempModel.Id == undefined)\r\n\t\t\tthis.showBasicAlert(\"Error\", \"FileInformationId can not be null\", \"error\");\r\n\t\telse {\r\n\t\t\tmodel.ClientId = tempModel.ClientId;\r\n\t\t\tthis.setState({ model, isLoading: true, rowIndex: index, headerModel: tempModel });\r\n\t\t\tthis.GetTransactionList(tempModel.Id);\r\n\t\t}\r\n\t}\r\n\r\n\tGetSettlementFileList = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/WireTransfer/WireTransferSettlementFileSearch\",\r\n\t\t\tthis.state.model,\r\n\t\t\tthis.successSettlementFileList,\r\n\t\t\terror => {\r\n\t\t\t\tthis.showBasicAlert(\"Error\", \"An error occurred during the api visit\" + error, \"error\");\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tsuccessSettlementFileList = (responseData) => {\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.showBasicAlert(\"Error\", responseData.ErrorDescription, \"error\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({\r\n\t\t\ttransactionList: [], headerModel: {},\r\n\t\t\tsettlementFileList: responseData.Item == null ? [] : responseData.Item.length < 1 ? [] : responseData.Item, isLoading: false\r\n\t\t});\r\n\t}\r\n\r\n\tGetTransactionList = (Id) => {\r\n\t\tvar getTransactionByFileIdModel = { ...this.state.getTransactionByFileIdModel };\r\n\t\tgetTransactionByFileIdModel.FileId = Id;\r\n\t\tgetTransactionByFileIdModel.ClientId = this.state.model.ClientId == null ? null : this.state.model.ClientId;\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/WireTransfer/WireTransferSettlementTransactionSearch\",\r\n\t\t\tgetTransactionByFileIdModel,\r\n\t\t\tthis.successTransactionListCallback,\r\n\t\t\terror => {\r\n\t\t\t\tthis.showBasicAlert(\"Error\", \"An error occurred during the api visit\" + error, \"error\");\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tsuccessTransactionListCallback = (responseData) => {\r\n\t\tvar headerModel = { ...this.state.headerModel };\r\n\t\tvar transactionList = { ...this.state.transactionList };\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.showBasicAlert(\"Error\", responseData.ErrorDescription, \"error\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (responseData.Item != null) {\r\n\t\t\ttransactionList = responseData.Item;\r\n\t\t}\r\n\t\tthis.setState({ transactionList, headerModel, isLoading: false });\r\n\t}\r\n\r\n\tshowBasicAlert = (title, message, type) => {\r\n\t\tthis.setState({ isLoading: false, alert: AlertHelper.CreateAlert(title, message, type, this.hideAlert) });\r\n\t}\r\n\r\n\thideAlert = () => { this.setState({ alert: null, isLoading: false }); }\r\n\r\n\tshowLoading = () => { this.setState({ alert: null, isLoading: true }); }\r\n\r\n\tClearModel = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {\r\n\t\t\t\tFromDate: DateHelper.GetDateTime(), ToDate: DateHelper.GetDateTime(),\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, headerModel, isLoading } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tthis.SelectedRowChange(index);\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\tPageSize={10}\r\n\t\t\t\t\t\t\t\t\tShowPagination={true}\r\n\t\t\t\t\t\t\t\t\tSelectedIndex={this.state.rowIndex} />\r\n\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nBAI2File.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\thandleOperationType: PropTypes.func,\r\n\tshowQuestionMessage: PropTypes.func,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(BAI2File, {});","// @ts-nocheck\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport AlertHelper from \"core/AlertHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericGrid, GenericTextInput, GenericTitle, GenericNumberInput, GenericDialogActions, GenericDialog, GenericLabel, GenericAlert } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant.js\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport TabsComponent from \"views/Components/TabsComponent\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport { UndoIcon, EditIcon } from \"core/Icons\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\n\r\n\r\nclass WireReconciliation extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tFromDate: DateHelper.GetDate(),\r\n\t\t\t\tToDate: DateHelper.GetDate()\r\n\t\t\t},\r\n\t\t\teditModel: {},\r\n\t\t\tsettlementFileList: [],\r\n\t\t\theaderModel: {},\r\n\t\t\ttransactionList: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tSettlementType: \"\",\r\n\t\t\tvModel: {},\r\n\t\t\tsearchModel: {}\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Wire Reconciliation\");\r\n\t\tthis.props.setAppCenterTitle(\"CLEARING & SETTLEMENT\");\r\n\t}\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\thandleChangeForEdit = (name, newValue, data) => {\r\n\t\tconst editModel = { ...this.state.editModel };\r\n\r\n\t\teditModel[name] = newValue;\r\n\t\tthis.setState({ editModel });\r\n\t}\r\n\r\n\tGetSettlementFileList = () => {\r\n\t\tif(this.ValidateSearch()){\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/bankapi/v1.0/WireTransfer/WireTransferSettlementFileSearch\",\r\n\t\t\t\tthis.state.model,\r\n\t\t\t\tthis.successSettlementFileList,\r\n\t\t\t\terror => {\r\n\t\t\t\t\tthis.showBasicAlert(\"Error\", \"An error occurred during the api visit\" + error, \"error\");\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t}\r\n\r\n\tsuccessSettlementFileList = (responseData) => {\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.showBasicAlert(\"Error\", responseData.ErrorDescription, \"error\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({\r\n\t\t\theaderModel: {}, isLoading: false,\r\n\t\t\tvostroList: responseData.Item.VostroList == null ? [] : responseData.Item.VostroList.length < 1 ? [] : responseData.Item.VostroList,\r\n\t\t\tbridgeList: responseData.Item.BridgeList == null ? [] : responseData.Item.BridgeList.length < 1 ? [] : responseData.Item.BridgeList,\r\n\t\t\tsearchModel : responseData.Item\r\n\t\t});\r\n\t}\r\n\r\n\tshowBasicAlert = (title, message, type) => {\r\n\t\tthis.setState({ isLoading: false, alert: AlertHelper.CreateAlert(title, message, type, this.hideAlert) });\r\n\t}\r\n\r\n\thideAlert = () => { this.setState({ alert: null, isLoading: false }); }\r\n\r\n\tshowLoading = () => { this.setState({ alert: null, isLoading: true }); }\r\n\r\n\tClearModel = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {\r\n\t\t\t\tFromDate: DateHelper.GetDateTime(), ToDate: DateHelper.GetDateTime(),\r\n\t\t\t},\r\n\t\t\teditModel: { },\r\n\t\t\tsearchModel: {}\r\n\t\t});\r\n\t}\r\n\r\n\thandleChangeParentTab(tab) { }\r\n\r\n\tValidate = () => {\r\n\t\tconst { editModel } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errors = [];\r\n\r\n\t\tif (editModel.Credit > 0 && editModel.Debit > 0) {\r\n\t\t\terrors.push(\"Credit or Debit must be filled!\");\r\n\t\t}\r\n\t\tif (editModel.Credit==null && editModel.Debit==null && editModel.CategoryId == null) {\r\n\t\t\terrors.push(\"Select field!\");\r\n\t\t}\r\n\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\t openEditWireDialog = (row) => { \r\n\t\tconst editModel = { ...this.state.editModel };\r\n\r\n\t\teditModel[\"BAI2Id\"] = row.BAI2Id;\r\n\r\n\t\tthis.setState({\r\n\t\t\tisEditWireDialogOpen: true, editModel\r\n\t\t\t});\r\n\t };\r\n\r\n\t handleEditWire = () => {\r\n\t\tconst { showMessage } = this.props;\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tif (this.Validate())\r\n\t\t{\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/bankapi/v1.0/WireTransfer/UpdateBAI2Transaction\",\r\n\t\t\t\tthis.state.editModel,\r\n\t\t\t\t(responseData) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false, isEditWireDialogOpen: false });\r\n\t \r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t return;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tshowMessage(\"success\", \"Success\", responseData.ErrorDescription);\r\n\t\t\t\t },\r\n\t\t\t\terror => {\r\n\t\t\t\t\tthis.showBasicAlert(\"Error\", \"An error occurred during the api visit\" + error, \"error\");\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\t\r\n\t}\r\n\r\n\thandleUndoChanges = (row) => {\r\n\t\tconst { showMessage } = this.props;\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/WireTransfer/UpdateBAI2Transaction\",\r\n\t\t\t{BAI2Id: row.BAI2Id, UndoAllChanges:true},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tshowMessage(\"success\", \"Success\", responseData.ErrorDescription);\r\n\t\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.showBasicAlert(\"Error\", \"An error occurred during the api visit\" + error, \"error\");\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tShowQuestionMessage = (message, model) => {\r\n\t\tthis.setState({\r\n\t\t\talert: AlertHelper.CreateQuestionAlert(\"Undo\", message, \"warning\", e => {\r\n\t\t\t\tthis.handleUndoChanges(model);\r\n\t\t\t\tthis.HideAlert();\r\n\t\t\t}, () => {\r\n\t\t\t\tthis.HideAlert();\r\n\t\t\t})\r\n\t\t});\r\n\t}\r\n\r\n\tHideAlert = () => {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\tValidateSearch = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errors = [];\r\n\r\n\t\tconsole.log(model);\r\n\t\tif (model.FromDate == null || model.FromDate == \"\") {\r\n\t\t\terrors.push(\"From Bridge Date must be selected\");\r\n\t\t\tvModel.FromDate = true;\r\n\t\t} else {\r\n\t\t\tvModel.FromDate = false;\r\n\t\t}\r\n\t\tif (model.ToDate == null || model.ToDate == \"\") {\r\n\t\t\terrors.push(\"To Bridge Date must be selected\");\r\n\t\t\tvModel.ToDate = true;\r\n\t\t} else {\r\n\t\t\tvModel.ToDate = false;\r\n\t\t}\r\n\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, isLoading, isEditWireDialogOpen, editModel, vModel, searchModel } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\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t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.openEditWireDialog(row.original)} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.ShowQuestionMessage(\"Undo this record !\", row.original)} />\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 100\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Bridge Transaction Date\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.DateTimeUtc,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTimeUtc\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"BAI2 Date\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"BAI2Date\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.DateTimeUtc,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTimeUtc\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"BAI2 Description\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"BAI2Description\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Debit\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Debit\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Credit\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Credit\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Category\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Category\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Matched Date\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"MatchedDate\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.DateTimeUtc,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTimeUtc\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Adj Date\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"AdjDate\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.DateTimeUtc,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTimeUtc\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Settlement Status\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"SettlementStatus\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Client/FI Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ClientName\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tSelectedIndex={this.state.rowIndex} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\tHidden: false\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t]}\r\n\t\t\t\t\t/>\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t







\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nWireReconciliation.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\thandleOperationType: PropTypes.func,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(WireReconciliation, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { EditIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton.jsx\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass ClientCardholderTransactionFee extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.emptyProfile = {\r\n\t\t\tId: 0,\r\n\t\t\tIsRecordValid: true,\r\n\t\t\tProfileName: null,\r\n\t\t\tIsDefaultProfile: true\r\n\t\t};\r\n\r\n\t\tthis.emptyDetail = {\r\n\t\t\tIndex: null,\r\n\t\t\tId: 0,\r\n\t\t\tIsRecordValid: true,\r\n\t\t\tProfileId: 0,\r\n\t\t\tTransactionCodeId: null,\r\n\t\t\tTransactionCode: null,\r\n\t\t\tFeeRate: null,\r\n\t\t\tDeclineFee: null,\r\n\t\t\tFlatAmount: null,\r\n\t\t\tProvisionSourceId: 0,\r\n\t\t\tProvisionSource: null,\r\n\t\t\tCardTransactionFeeProfile: { ...this.emptyProfile }\r\n\t\t};\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tSelectedFeeProfile: { ...this.emptyProfile },\r\n\t\t\tSelectedTransactionFee: { ...this.emptyDetail },\r\n\t\t\tProfileList: [],\r\n\t\t\tDetailList: []\r\n\t\t};\r\n\r\n\t\tthis.parameterProvisionSource = {\r\n\t\t\tParameterCode: \"ProvisionSource\"\r\n\t\t};\r\n\r\n\t\tthis.feeProfileColumns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t { this.handleSelectProfile(row.original, row.index); }} />\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\tresizable: false,\r\n\t\t\t\twidth: 60\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Profile Name\",\r\n\t\t\t\taccessor: \"Profile.ProfileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"User\",\r\n\t\t\t\taccessor: \"Profile.InsertUser\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Create Date\",\r\n\t\t\t\taccessor: \"Profile.InsertDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t];\r\n\r\n\t\tthis.feeItemColumns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t { this.handleSelectDetail(row.original, row.index); }} />\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\tresizable: false,\r\n\t\t\t\twidth: 60\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Fee Profile Name\",\r\n\t\t\t\taccessor: \"CardTransactionFeeProfile.ProfileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Source\",\r\n\t\t\t\taccessor: \"ProvisionSource.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Code\",\r\n\t\t\t\taccessor: \"TransactionCode.TxnCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Name\",\r\n\t\t\t\taccessor: \"TransactionCode.TxnName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Fee Rate\",\r\n\t\t\t\taccessor: \"FeeRate\",\r\n\t\t\t\tCell: row => (
{Formatter.FormatPercentFee(row.value)}
)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Flat Amount\",\r\n\t\t\t\taccessor: \"FlatAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Decline Fee\",\r\n\t\t\t\taccessor: \"DeclineFee\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tisLoading: false,\r\n\t\t\tvModel: {},\r\n\t\t\tvModelDetail: {}\r\n\t\t};\r\n\t}\r\n\r\n\ttoArray = (value) => {\r\n\t\tvar returnList = [];\r\n\t\tif (value != null && value[0]) {\r\n\t\t\tfor (const key in value) {\r\n\t\t\t\tif (value.hasOwnProperty(key)) {\r\n\t\t\t\t\tconst element = value[key];\r\n\t\t\t\t\treturnList.push(element);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn returnList;\r\n\t};\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Transaction Fee Profile\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t}\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (name === \"FeeProfileName\") {\r\n\t\t\tmodel.SelectedFeeProfile.ProfileName = newValue;\r\n\t\t} else if (name == \"ProvisionSource\") {\r\n\t\t\tmodel.SelectedTransactionFee.ProvisionSourceId = newValue;\r\n\t\t\tmodel.SelectedTransactionFee.ProvisionSource = data;\r\n\t\t} else if (name == \"TransactionCode\") {\r\n\t\t\tmodel.SelectedTransactionFee.TransactionCodeId = newValue;\r\n\t\t\tmodel.SelectedTransactionFee.TransactionCode = data;\r\n\t\t} else if (name == \"FlatAmount\") {\r\n\t\t\tmodel.SelectedTransactionFee.FlatAmount = newValue;\r\n\t\t} else if (name == \"FeeRate\") {\r\n\t\t\tmodel.SelectedTransactionFee.FeeRate = newValue;\r\n\t\t} else if (name == \"DeclineFee\") {\r\n\t\t\tmodel.SelectedTransactionFee.DeclineFee = newValue;\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\thandleClear = () => {\r\n\r\n\t\tthis.setState({\r\n\t\t\tmodel: {\r\n\t\t\t\t...this.initialModel,\r\n\t\t\t\tSelectedFeeProfile: { ...this.emptyProfile },\r\n\t\t\t\tSelectedTransactionFee: { ...this.emptyDetail }\r\n\t\t\t}\r\n\t\t});\r\n\t};\r\n\r\n\thandleSearch = () => {\r\n\t\tthis.executeSearch();\r\n\t};\r\n\r\n\thandleSelectProfile = (data, index) => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tvar feeProfile = Object.assign({}, data.Profile);\r\n\t\tvar feeItemList = Object.assign({}, data.FeeList);\r\n\r\n\t\tmodel.SelectedFeeProfile = feeProfile;\r\n\t\tmodel.SelectedTransactionFee = Object.assign({}, this.emptyDetail);\r\n\t\tmodel.DetailList = this.toArray(feeItemList);\r\n\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\thandleSelectDetail = (data, index) => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tmodel.SelectedTransactionFee = Object.assign({}, data);\r\n\t\tmodel.SelectedTransactionFee.Index = index;\r\n\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\thandleAddDetail = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tvar newItem = Object.assign({}, model.SelectedTransactionFee);\r\n\r\n\t\tif (!this.validateNewDetail(newItem, model.DetailList)) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tnewItem.CardTransactionFeeProfile = model.SelectedFeeProfile;\r\n\t\tvar temporary = [];\r\n\t\tif (newItem.Id == 0) {\r\n\t\t\tnewItem.ProfileId = model.SelectedFeeProfile.Id;\r\n\r\n\t\t\tif (newItem.Index != null) {\r\n\t\t\t\tfor (let index = 0; index < model.DetailList.length; index++) {\r\n\t\t\t\t\tconst element = model.DetailList[index];\r\n\t\t\t\t\ttemporary.push(index == newItem.Index ? newItem : element);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tmodel.DetailList.forEach((value, index, array) => { temporary.push(value); });\r\n\t\t\t\ttemporary.push(newItem);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tmodel.DetailList.forEach(element => {\r\n\t\t\t\tif (element.Id == newItem.Id) {\r\n\t\t\t\t\ttemporary.push(newItem);\r\n\t\t\t\t} else {\r\n\t\t\t\t\telement.CardTransactionFeeProfile = model.SelectedFeeProfile;\r\n\t\t\t\t\ttemporary.push(element);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tmodel.SelectedTransactionFee = Object.assign({}, this.emptyDetail);\r\n\t\tmodel.DetailList = temporary;\r\n\r\n\r\n\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\thandleDeleteDetail = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tvar newItem = Object.assign({}, model.SelectedTransactionFee);\r\n\r\n\t\tvar temporary = [];\r\n\t\tif (newItem.Id != 0) {\r\n\t\t\tnewItem.IsRecordValid = false;\r\n\t\t\tmodel.DetailList.forEach(element => {\r\n\t\t\t\tif (element.Id != newItem.Id) { temporary.push(element); }\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\tfor (let index = 0; index < model.DetailList.length; index++) {\r\n\t\t\t\tconst element = model.DetailList[index];\r\n\t\t\t\tif (index != newItem.Index) { temporary.push(element); }\r\n\t\t\t}\r\n\t\t}\r\n\t\tmodel.SelectedTransactionFee = Object.assign({}, this.emptyDetail);\r\n\t\tmodel.DetailList = temporary;\r\n\t\tthis.setState({ model }, this.executeSubmit);\r\n\t}\r\n\r\n\thandleClearDetail = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel.SelectedTransactionFee = Object.assign({}, this.emptyDetail);\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\texecuteSearch = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst request = {\r\n\t\t\tProfileName: model.SelectedFeeProfile.ProfileName\r\n\t\t};\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/CardTransactionFeeProfile/SearchProfile\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tmodel.SelectedTransactionFee = Object.assign({}, this.emptyDetail);\r\n\t\t\t\tmodel.ProfileList = responseData.Item;\r\n\t\t\t\tmodel.DetailList = [];\r\n\t\t\t\tthis.setState({ model, isLoading: false });\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\tsuccessCallback = (responseData) => {\r\n\r\n\t\tif (responseData.IsSucceeded == false) {\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel.SelectedFeeProfile = responseData.Item.Profile;\r\n\t\tmodel.SelectedTransactionFee = Object.assign({}, this.emptyDetail);\r\n\t\tmodel.ProfileList = [];\r\n\t\tmodel.ProfileList.push(responseData.Item);\r\n\t\tmodel.DetailList = responseData.Item.FeeList;\r\n\r\n\t\tthis.ShowMessage(\"success\", \"Succeeded!\", \"Operation successfully completed!\");\r\n\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\terrorCallBack = (error) => {\r\n\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t}\r\n\r\n\texecuteSubmit = () => {\r\n\t\tif (!this.validateSubmit()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst model = { ...this.state.model };\r\n\t\tvar callUrl = model.SelectedFeeProfile.Id != 0 ?\r\n\t\t\t\"/prepaidapi/v1.0/CardTransactionFeeProfile/Update\" :\r\n\t\t\t\"/prepaidapi/v1.0/CardTransactionFeeProfile/Insert\";\r\n\r\n\t\tvar requestList = [];\r\n\t\tif (model.SelectedFeeProfile.Id != 0) {\r\n\t\t\tvar originalDetail = model.ProfileList.find(x => x.Profile.Id == model.SelectedFeeProfile.Id).FeeList;\r\n\t\t\tvar originalDetailList = this.toArray(originalDetail);\r\n\r\n\t\t\tmodel.DetailList.forEach(element => {\r\n\t\t\t\tif (element.Id == 0) { requestList.push(element); }\r\n\t\t\t\tif (element.Id != 0) { requestList.push(element); }\r\n\t\t\t});\r\n\r\n\t\t\t// deleted list\r\n\t\t\toriginalDetailList.forEach(element => {\r\n\t\t\t\tvar relatedItem = model.DetailList.find(x => x.Id == element.Id);\r\n\t\t\t\tif (relatedItem == null) {\r\n\t\t\t\t\tvar deletedItem = Object.assign({}, element);\r\n\t\t\t\t\tdeletedItem.IsRecordValid = false;\r\n\t\t\t\t\trequestList.push(deletedItem);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\tmodel.DetailList.forEach(element => {\r\n\t\t\t\t// added list\r\n\t\t\t\trequestList.push(element);\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\t//\tconst UniqueClientId = ClientHelper.IsClient() ? null : model.SelectedFeeProfile.UniqueClientId;\r\n\t\tconst request = {\r\n\t\t\tProfileName: model.SelectedFeeProfile.ProfileName,\r\n\t\t\t//\tUniqueClientId: UniqueClientId,\r\n\t\t\tId: model.SelectedFeeProfile != null ? model.SelectedFeeProfile.Id : null,\r\n\t\t\tIsRecordValid: true,\r\n\t\t\tDetailList: requestList\r\n\t\t};\r\n\t\tProxy.POST(\r\n\t\t\tcallUrl,\r\n\t\t\trequest,\r\n\t\t\tthis.successCallback,\r\n\t\t\tthis.errorCallBack\r\n\t\t);\r\n\t};\r\n\r\n\texecuteDelete = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\t//const UniqueClientId = ClientHelper.IsClient() ? null : model.SelectedFeeProfile.UniqueClientId;\r\n\t\tconst request = {\r\n\t\t\tProfileName: model.SelectedFeeProfile.ProfileName,\r\n\t\t\t//\tUniqueClientId: UniqueClientId,\r\n\t\t\tId: model.SelectedFeeProfile != null ? model.SelectedFeeProfile.Id : null,\r\n\t\t\tIsRecordValid: false\r\n\t\t};\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/CardTransactionFeeProfile/Delete\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tmodel: {\r\n\t\t\t\t\t\tSelectedFeeProfile: Object.assign({}, this.emptyProfile),\r\n\t\t\t\t\t\tSelectedTransactionFee: Object.assign({}, this.emptyDetail),\r\n\t\t\t\t\t\tProfileList: [],\r\n\t\t\t\t\t\tDetailList: [],\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\tvalidateSubmit = () => {\r\n\t\tvar errorList = [];\r\n\t\tconst { model, vModel } = this.state;\r\n\r\n\r\n\t\tif (model.SelectedFeeProfile == null\r\n\t\t\t|| model.SelectedFeeProfile.ProfileName == null\r\n\t\t\t|| model.SelectedFeeProfile.ProfileName === \"\") {\r\n\t\t\tvModel.ProfileName = true;\r\n\t\t\terrorList.push(\"Please fill Profile Name field.\");\r\n\t\t}\r\n\t\telse\r\n\t\t\tvModel.ProfileName = false;\r\n\r\n\t\tif (errorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Required fields!\", errorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\tvalidateNewDetail = (newItem, allDetail) => {\r\n\t\tvar errorList = [];\r\n\t\tconst { model, vModelDetail, vModel } = this.state;\r\n\r\n\t\tif (!model.SelectedFeeProfile.ProfileName) {\r\n\t\t\terrorList.push(\"Please fill in the Fee Profile Name field.\");\r\n\t\t\tvModel.ProfileName = true;\r\n\t\t}\r\n\t\telse\r\n\t\t\tvModel.ProfileName = false;\r\n\r\n\t\tif (newItem.ProvisionSource == null) {\r\n\t\t\terrorList.push(\"Please fill in the Transaction Source field.\");\r\n\t\t\tvModelDetail.ProvisionSourceId = true;\r\n\t\t}\r\n\t\telse\r\n\t\t\tvModelDetail.ProvisionSourceId = false;\r\n\r\n\t\tif (newItem.TransactionCodeId == null) {\r\n\t\t\terrorList.push(\"Please fill in the Transaction Code field.\");\r\n\t\t\tvModelDetail.TransactionCodeId = true;\r\n\t\t}\r\n\t\telse\r\n\t\t\tvModelDetail.TransactionCodeId = false;\r\n\r\n\t\tif (newItem.FeeRate == null) {\r\n\t\t\terrorList.push(\"Please fill in the Fee Rate field.\");\r\n\t\t\tvModelDetail.FeeRate = true;\r\n\t\t}\r\n\t\telse\r\n\t\t\tvModelDetail.FeeRate = false;\r\n\r\n\t\tif (newItem.FlatAmount == null) {\r\n\t\t\terrorList.push(\"Please fill in the Flat Amount field.\");\r\n\t\t\tvModelDetail.FlatAmount = true;\r\n\t\t}\r\n\t\telse\r\n\t\t\tvModelDetail.FlatAmount = false;\r\n\r\n\r\n\t\tif (newItem.Id == 0) {\r\n\t\t\tif (newItem.Index != null) {\r\n\t\t\t\tfor (let index = 0; index < allDetail.length; index++) {\r\n\t\t\t\t\tconst element = allDetail[index];\r\n\t\t\t\t\tif (index != newItem.Index && element.TransactionCodeId == newItem.TransactionCodeId && element.ProvisionSourceId == newItem.ProvisionSourceId) {\r\n\t\t\t\t\t\terrorList.push(\"Transaction source and transaction code have already been added!\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tallDetail.forEach((value, index, array) => {\r\n\t\t\t\t\tif (value.TransactionCodeId == newItem.TransactionCodeId && value.ProvisionSourceId == newItem.ProvisionSourceId) {\r\n\t\t\t\t\t\terrorList.push(\"Transaction source and transaction code have already been added!\");\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tallDetail.forEach(element => {\r\n\t\t\t\tif (element.Id != newItem.Id && element.TransactionCodeId == newItem.TransactionCodeId && element.ProvisionSourceId == newItem.ProvisionSourceId) {\r\n\t\t\t\t\terrorList.push(\"Transaction source and transaction code have already been added!\");\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tif (errorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Required fields!\", errorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, isLoading, alert, vModel, vModelDetail } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t 0,\r\n\t\t\t\t\t\t\tModelFunction: () => model,\r\n\t\t\t\t\t\t\tValidationFunction: this.validateSubmit\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Update\",\r\n\t\t\t\t\t\t\tOnClick: this.executeSubmit,\r\n\t\t\t\t\t\t\tDisabled: Disabled || model.SelectedFeeProfile.Id == 0,\r\n\t\t\t\t\t\t\tModelFunction: () => model,\r\n\t\t\t\t\t\t\tValidationFunction: this.validateSubmit\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Delete\",\r\n\t\t\t\t\t\t\tOnClick: this.executeDelete,\r\n\t\t\t\t\t\t\tDisabled: Disabled || model.SelectedFeeProfile.Id == 0,\r\n\t\t\t\t\t\t\tModelFunction: () => model,\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Search\",\r\n\t\t\t\t\t\t\tOnClick: this.handleSearch,\r\n\t\t\t\t\t\t\tDisabled: Disabled,\r\n\t\t\t\t\t\t\tModelFunction: () => model,\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{ Code: \"Clear\", OnClick: this.handleClear, Disabled: Disabled }\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t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t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{model.SelectedTransactionFee.Index > -1 && model.SelectedTransactionFee.Index != null ? \"UPDATE\" : \"ADD\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })} />\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })} />\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t\tOnConfirm={onConfirm} />\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n}\r\n\r\nClientCardholderTransactionFee.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\thandleChange: PropTypes.func,\r\n\tmenuId: PropTypes.number,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default withArtifex(ClientCardholderTransactionFee, {});\r\n","import { Proxy, withArtifex } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport { ProgramCodes, MenuCodes } from \"views/Constants/Constant.js\";\r\nimport CustomerDefinition from \"views/Customer/CustomerDefinition\";\r\n\r\nclass PpCustomerDefinition extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tmenuId: 0\r\n\t\t}\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tif (this.props.setAppLeftTitle) this.props.setAppLeftTitle(\"Create Customer\");\r\n\t\tif (this.props.setAppCenterTitle) this.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t\tthis.GetCreateCustomerMenuId();\r\n\t}\r\n\r\n\tGetCreateCustomerMenuId = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/coreapi/v1.0/Menu/GetByMenuCode\",\r\n\t\t\tMenuCodes.CustomerDefinition,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ menuId: responseData.Item.Id });\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { menuId } = this.state;\r\n\t\treturn (\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nPpCustomerDefinition.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool,\r\n\tApprovalData: PropTypes.any,\r\n};\r\n\r\nexport default withArtifex(PpCustomerDefinition, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericExpansionPanel, GenericSelectInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { EmvScriptPoolInsertType, ProgramCodes } from \"views/Constants/Constant\";\r\n\r\nclass EmvScriptPool extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\r\n\t\tthis.maxLength50 = { maxLength: 50 };\r\n\r\n\t\tthis.FileModel = {\r\n\t\t\tUniqueClientId: \"\",\r\n\t\t\tClientCustomerId: \"\",\r\n\t\t\tCardNumber: \"\",\r\n\t\t\tTemplateId: \"\",\r\n\r\n\t\t};\r\n\r\n\t\tthis.SingleModel = {\r\n\t\t\tUniqueClientId: \"\",\r\n\t\t\tClientCustomerId: \"\",\r\n\t\t\tCardId: \"\",\r\n\t\t\tTemplateId: \"\"\r\n\t\t};\r\n\r\n\r\n\t\tthis.state = {\r\n\t\t\talert: null,\r\n\t\t\tmodel: {},\r\n\t\t\tlist: [],\r\n\t\t\tFileCardData: [],\r\n\t\t\tselected: null,\r\n\t\t\tisFileChanged: false,\r\n\t\t\tisLoading: false,\r\n\t\t\tFileModel: {},\r\n\t\t\tSingleModel: {},\r\n\t\t\tIsSingleCardActive: false,\r\n\t\t\tIsFileCaCardActive: false,\r\n\t\t\tIsFileCardActive: false,\r\n\t\t\tIsFileCardListDialogOpen: false\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t\tthis.props.setAppLeftTitle(\"Emv Script Pool\");\r\n\t}\r\n\r\n\tFileModelValueChanged = (name, value) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar FileModel = state.FileModel;\r\n\t\t\tFileModel[name] = value;\r\n\t\t\treturn { FileModel };\r\n\t\t});\r\n\t}\r\n\r\n\tSingleModelValueChanged = (name, value) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar SingleModel = state.SingleModel;\r\n\t\t\tSingleModel[name] = value;\r\n\t\t\treturn { SingleModel };\r\n\t\t});\r\n\t}\r\n\r\n\tModelValueChanged = (name, value, data) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\r\n\t\t\tif (name === \"EmvScriptPollType\") {\r\n\t\t\t\tif (data.ParameterValue == EmvScriptPoolInsertType.Single) {\r\n\t\t\t\t\tstate.IsSingleCardActive = true;\r\n\t\t\t\t\tstate.IsFileCardActive = false;\r\n\t\t\t\t}\r\n\t\t\t\telse if (data.ParameterValue == EmvScriptPoolInsertType.File) {\r\n\t\t\t\t\tstate.IsFileCardActive = true;\r\n\t\t\t\t\tstate.IsSingleCardActive = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\r\n\tRowSelected = (index) => {\r\n\t\tconst { list } = this.state;\r\n\t\tthis.setState({ model: list[index], selected: index });\r\n\t}\r\n\r\n\tSubmit = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tconst { FileModel, SingleModel, IsSingleCardActive, IsFileCardActive, FileCardData } = this.state;\r\n\r\n\t\tif (IsSingleCardActive) {\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/prepaidapi/v1.0/EmvScriptTemplate/InsertEmvScriptSinglePool\",\r\n\t\t\t\t{\r\n\t\t\t\t\t\"TemplateId\": SingleModel.TemplateId,\r\n\t\t\t\t\t\"CardId\": SingleModel.CardId\r\n\t\t\t\t},\r\n\t\t\t\t(responseData) => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tthis.ShowMessageNode(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tthis.setState({ list: responseData.Item || [], isLoading: false });\r\n\t\t\t\t},\r\n\t\t\t\t(error) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessageNode(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\telse if (IsFileCardActive) {\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/prepaidapi/v1.0/EmvScriptTemplate/InsertEmvScriptFilePool\",\r\n\t\t\t\t{\r\n\t\t\t\t\tMaskedCardList: FileCardData,\r\n\t\t\t\t\t\"TemplateId\": FileModel.TemplateId\r\n\t\t\t\t},\r\n\t\t\t\t(responseData) => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tthis.ShowMessageNode(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tthis.setState({ list: responseData.Item || [], isLoading: false });\r\n\t\t\t\t},\r\n\t\t\t\t(error) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessageNode(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t}\r\n\r\n\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, FileModel: {}, SingleModel: {}, list: [], selected: null, isFileChanged: false });\r\n\t}\r\n\r\n\r\n\tValidate() {\r\n\r\n\t\tconst { IsFileCardActive, IsSingleCardActive, IsFileCardListDialogOpen, FileModel, SingleModel } = this.state;\r\n\t\tconst { showMessageNode } = this.props;\r\n\t\tvar messages = [];\r\n\r\n\t\tif (IsFileCardActive) {\r\n\t\t\tif (!IsFileCardListDialogOpen) {\r\n\t\t\t\tif ((FileModel.FileName === undefined || FileModel.FileName == null)\r\n\t\t\t\t\t&& (FileModel.File === undefined || FileModel.File == null)) {\r\n\t\t\t\t\tmessages.push(\"Card file can not be null.\");\r\n\t\t\t\t}\r\n\t\t\t\tif (FileModel.TemplateId == undefined || FileModel.TemplateId == null\r\n\t\t\t\t\t|| FileModel.TemplateId == \"\")\r\n\t\t\t\t\tmessages.push(\"Template can not be null.\");\r\n\t\t\t}\r\n\t\t\tif (FileModel.ClientCustomerId == null || FileModel.ClientCustomerId == undefined || FileModel.ClientCustomerId == \"\")\r\n\t\t\t\tmessages.push(\"Customer Name can not be null\");\r\n\r\n\t\t\tif (FileModel.UniqueClientId == null || FileModel.UniqueClientId == undefined || FileModel.UniqueClientId == \"\")\r\n\t\t\t\tmessages.push(\"Unique Client Name can not be null\");\r\n\t\t}\r\n\r\n\r\n\t\telse if (IsSingleCardActive) {\r\n\t\t\tif (SingleModel.ClientCustomerId == null || SingleModel.ClientCustomerId == undefined || SingleModel.ClientCustomerId == \"\")\r\n\t\t\t\tmessages.push(\"Customer Name can not be null\");\r\n\r\n\t\t\tif (SingleModel.UniqueClientId == null || SingleModel.UniqueClientId == undefined || SingleModel.UniqueClientId == \"\")\r\n\t\t\t\tmessages.push(\"Unique Client Name can not be null\");\r\n\r\n\t\t\tif (SingleModel.TemplateId == undefined || SingleModel.TemplateId == null || SingleModel.TemplateId == \"\")\r\n\t\t\t\tmessages.push(\"Template can not be null.\");\r\n\r\n\t\t\tif (SingleModel.CardId == undefined || SingleModel.CardId == null || SingleModel.CardId == \"\")\r\n\t\t\t\tmessages.push(\"Card can not be null.\");\r\n\r\n\t\t}\r\n\t\tif (messages.length > 0) {\r\n\t\t\tif (messages.length > 9) {\r\n\t\t\t\tvar moreWarn = messages.length - 8;\r\n\t\t\t\tmessages = messages.slice(0, 8);\r\n\t\t\t\tmessages.push(\"And \" + moreWarn + \" more warnings\");\r\n\t\t\t}\r\n\t\t\tshowMessageNode(\"error\", \"Please Fill Required Fields\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\thideAlert() {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\r\n\r\n\tSearch = () => {\r\n\r\n\t\tconst { SingleModel } = { ...this.state };\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/EmvScriptTemplate/GetAllEmvScriptSinglePool\",\r\n\t\t\t{\r\n\t\t\t\t\"ClientCustomerId\": SingleModel.ClientCustomerId,\r\n\t\t\t\t\"UniquClientId\": SingleModel.UniquClientId,\r\n\t\t\t\t\"TemplateId\": SingleModel.TemplateId,\r\n\t\t\t\t\"CardId\": SingleModel.CardId\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessageNode(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ list: responseData.Item || [], isLoading: false });\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessageNode(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { isLoading,SingleModel } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={SingleModel.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.SingleModelValueChanged}\r\n\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={ClientHelper.IsClient()}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDefaultIndex={ClientHelper.IsClient() ? 0 : -1} />\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t
\r\n\t\t);\r\n\r\n\t}\r\n}\r\nEmvScriptPool.propTypes = {\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default EmvScriptPool;","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent\";\r\nimport { GenericAlert, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericSelectInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { CrudType, EmvScriptPoolInsertType, FileType, GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\n\r\nclass EmvScriptQueue extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.fileInputRef = React.createRef();\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Header\",\r\n\t\t\t\taccessor: \"Header\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.maxLength50 = { maxLength: 50 };\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : undefined\r\n\t\t};\r\n\t\tthis.FileModel = {\r\n\t\t\tUniqueClientId: \"\",\r\n\t\t\tClientCustomerId: \"\",\r\n\t\t\tCardNumber: \"\",\r\n\t\t\tTemplateId: \"\",\r\n\r\n\t\t}\r\n\r\n\t\tthis.SingleModel = {\r\n\t\t\tUniqueClientId: \"\",\r\n\t\t\tClientCustomerId: \"\",\r\n\t\t\tCardId: \"\",\r\n\t\t\tTemplateId: \"\"\r\n\t\t}\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\r\n\t\tthis.state = {\r\n\t\t\talert: null,\r\n\t\t\tmodel: {},\r\n\t\t\tlist: [],\r\n\t\t\tFileCardData: [],\r\n\t\t\tfilePostCardList: [],\r\n\t\t\tcardMessages: [],\r\n\t\t\tselected: null,\r\n\t\t\tisFileChanged: false,\r\n\t\t\tisLoading: false,\r\n\t\t\tFileModel: {},\r\n\t\t\tSingleModel: {},\r\n\t\t\tFilterModel: {},\r\n\t\t\tIsSingleCardActive: false,\r\n\t\t\tIsFileCaCardActive: false,\r\n\t\t\tIsFileCardActive: false,\r\n\t\t\tIsFileCardListDialogOpen: false,\r\n\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t\tthis.props.setAppLeftTitle(\"EMV Script Queue\");\r\n\t}\r\n\r\n\tFileModelValueChanged = (name, newValue, data) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar FileModel = state.FileModel;\r\n\r\n\t\t\tif (name === \"Customer\") {\r\n\t\t\t\tif (newValue) {\r\n\t\t\t\t\tFileModel.ClientCustomerId = newValue.Id;\r\n\t\t\t\t\tFileModel.CustomerNumber = newValue.CustomerNumber;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tdelete FileModel.ClientCustomerId;\r\n\t\t\t\t\tdelete FileModel.CustomerNumber;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (name === \"UniqueClientId\") {\r\n\t\t\t\tdelete FileModel.ClientCustomerId;\r\n\t\t\t\tdelete FileModel.CustomerNumber;\r\n\t\t\t}\r\n\t\t\tFileModel[name] = newValue;\r\n\t\t\treturn { FileModel };\r\n\t\t});\r\n\t}\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\r\n\tFilterValueChanged = (name, newValue, data) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar FilterModel = state.FilterModel;\r\n\t\t\tif (name === \"Customer\") {\r\n\t\t\t\tif (newValue) {\r\n\t\t\t\t\tFilterModel.ClientCustomerId = newValue.Id;\r\n\t\t\t\t\tFilterModel.CustomerNumber = newValue.CustomerNumber;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tdelete FilterModel.ClientCustomerId;\r\n\t\t\t\t\tdelete FilterModel.CustomerNumber;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (name === \"UniqueClientId\") {\r\n\t\t\t\tdelete FilterModel.ClientCustomerId;\r\n\t\t\t\tdelete FilterModel.CustomerNumber;\r\n\t\t\t}\r\n\t\t\tFilterModel[name] = newValue;\r\n\t\t\treturn { FilterModel };\r\n\t\t});\r\n\t}\r\n\r\n\tSingleModelValueChanged = (name, newValue, data) => {\r\n\r\n\t\tthis.setState(state => {\r\n\t\t\tvar SingleModel = state.SingleModel;\r\n\r\n\t\t\tif (name === \"Customer\") {\r\n\t\t\t\tif (newValue) {\r\n\t\t\t\t\tSingleModel.ClientCustomerId = newValue.Id;\r\n\t\t\t\t\tSingleModel.CustomerNumber = newValue.CustomerNumber;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tdelete SingleModel.ClientCustomerId;\r\n\t\t\t\t\tdelete SingleModel.CustomerNumber;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (name === \"UniqueClientId\") {\r\n\t\t\t\tdelete SingleModel.ClientCustomerId;\r\n\t\t\t\tdelete SingleModel.CustomerNumber;\r\n\t\t\t}\r\n\r\n\r\n\r\n\t\t\tSingleModel[name] = newValue;\r\n\t\t\treturn { SingleModel };\r\n\t\t});\r\n\t}\r\n\r\n\tModelValueChanged = (name, value, data) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tvar SingleModel = state.SingleModel;\r\n\t\t\tvar FileModel = state.FileModel;\r\n\t\t\tif (data) {\r\n\t\t\t\tif (name == \"EmvScriptPollType\") {\r\n\t\t\t\t\tif (data.ParameterValue == EmvScriptPoolInsertType.Single) {\r\n\t\t\t\t\t\tstate.IsSingleCardActive = true;\r\n\t\t\t\t\t\tstate.IsFileCardActive = false;\r\n\t\t\t\t\t\tFileModel.Disabled = true;\r\n\t\t\t\t\t\tSingleModel.Disabled = false;\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (data.ParameterValue == EmvScriptPoolInsertType.File) {\r\n\t\t\t\t\t\tstate.IsFileCardActive = true;\r\n\t\t\t\t\t\tstate.IsSingleCardActive = false;\r\n\t\t\t\t\t\tSingleModel.Disabled = true;\r\n\t\t\t\t\t\tFileModel.Disabled = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\r\n\tRowSelected = (index) => {\r\n\t\tconst { list } = this.state;\r\n\t\tthis.setState({ model: list[index], selected: index });\r\n\t}\r\n\r\n\tDeleteConfirm = () => {\r\n\t\tconst { showConfirmMessage } = this.props;\r\n\t\tshowConfirmMessage(\"warning\", \"Warning\", \"Are you sure want to delete_?\", this.Delete);\r\n\t}\r\n\r\n\tDelete = () => {\r\n\t\tconst { SingleModel } = { ...this.state };\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/EmvScriptTemplate/DeleteEmvScriptSinglePool\",\r\n\t\t\t{\r\n\t\t\t\t\"Id\": SingleModel.Id\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessageNode(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.ShowMessageNode(\"success\", \"Delete transaction successfully updated.\");\r\n\t\t\t\t\tthis.Clear();\r\n\t\t\t\t\tthis.Search();\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t}\r\n\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessageNode(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tUpdate = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst { SingleModel } = { ...this.state };\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/EmvScriptTemplate/InsertEmvScriptSinglePool\",\r\n\t\t\t{\r\n\t\t\t\t\"Id\": SingleModel.Id,\r\n\t\t\t\t\"TemplateId\": SingleModel.TemplateId,\r\n\t\t\t\t\"CardId\": SingleModel.CardId\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessageNode(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.ShowMessageNode(\"success\", \"Update transaction successfully updated.\");\r\n\t\t\t\tthis.Clear();\r\n\t\t\t\tthis.Search();\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessageNode(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tSubmit = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tconst { FileModel, SingleModel, IsSingleCardActive, IsFileCardActive, filePostCardList } = this.state;\r\n\r\n\t\tif (IsSingleCardActive) {\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/prepaidapi/v1.0/EmvScriptTemplate/InsertEmvScriptSinglePool\",\r\n\t\t\t\t{\r\n\t\t\t\t\t\"TemplateId\": SingleModel.TemplateId,\r\n\t\t\t\t\t\"CardId\": SingleModel.CardId\r\n\t\t\t\t},\r\n\t\t\t\t(responseData) => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tthis.ShowMessageNode(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tthis.ShowMessageNode(\"success\", \"Insert transaction successfully added.\");\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tthis.Search();\r\n\t\t\t\t\t\tthis.Clear();\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t(error) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessageNode(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\telse if (IsFileCardActive) {\r\n\r\n\t\t\tif (filePostCardList.length < 1) {\r\n\t\t\t\tthis.ShowMessageNode(\"warning\", \"Warning\", \"Card not found\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/prepaidapi/v1.0/EmvScriptTemplate/InsertEmvScriptFilePool\",\r\n\t\t\t\t{\r\n\t\t\t\t\tMaskedCardList: filePostCardList,\r\n\t\t\t\t\t\"TemplateId\": FileModel.TemplateId\r\n\t\t\t\t},\r\n\t\t\t\t(responseData) => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tthis.ShowMessageNode(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tthis.ShowMessageNode(\"success\", \"Insert transaction successfully added.\");\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tthis.Search();\r\n\t\t\t\t\t\tthis.Clear();\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t(error) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessageNode(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t}\r\n\r\n\r\n\tUpload = () => {\r\n\t\tthis.fileInputRef.current.click();\r\n\t}\r\n\r\n\tView = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tconst { model } = this.state;\r\n\t\tconst { showMessage } = this.props;\r\n\r\n\t\tProxy.FileDownloadWithGenericResponse(\r\n\t\t\t\"/coreapi/v1.0/File/DownloadFileFromBinary\",\r\n\t\t\tmodel.File.FileName,\r\n\t\t\tmodel.File.FileExtension.ParameterDesc,\r\n\t\t\t{\r\n\t\t\t\t\"FileId\": model.FileId\r\n\t\t\t},\r\n\t\t\t() => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, FileModel: {}, SingleModel: {}, FilterModel: {}, selected: null, isFileChanged: false, IsFileCardActive: false, IsSingleCardActive: false });\r\n\t}\r\n\r\n\tFileSelect = (e) => {\r\n\r\n\t\tthis.setState({ isLoading: true })\r\n\t\te.preventDefault();\r\n\r\n\t\tvar file = e.target.files[0];\r\n\t\tif (!file) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar { FileModel } = this.state;\r\n\t\tFileModel.TempFileId = FileModel.File !== undefined\r\n\t\t\t? FileModel.File.Id\r\n\t\t\t: 0;\r\n\t\tFileModel.File = file;\r\n\t\tFileModel.FileName = file.name;\r\n\t\tFileModel.FileSelect = true;\r\n\r\n\r\n\t\tconst { showMessage } = this.props;\r\n\r\n\t\tvar formData = new FormData();\r\n\t\tformData.append(\"file\", FileModel.File, FileModel.FileName);\r\n\t\tformData.append(\"fileId\", FileModel.TempFileId || 0);\r\n\t\tformData.append(\"isBinaryOrBase64\", FileType.Binary);\r\n\t\tformData.append(\"isInsertOrUpdate\", FileModel.Id == null ? CrudType.Insert : CrudType.Update);\r\n\r\n\t\tProxy.FileUpload(\"/prepaidapi/v1.0/EmvScriptTemplate/EmvScriptPollFileCardData\",\r\n\t\t\tformData,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.SubmitFileCardDataCheck();\r\n\t\t\t\t\tthis.setState({ FileModel, FileCardData: responseData.Item, isFileChanged: true, IsFileCardListDialogOpen: true, isLoading: false, });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\r\n\r\n\t}\r\n\r\n\tValidate() {\r\n\r\n\t\tconst { IsFileCardActive, IsSingleCardActive, IsFileCardListDialogOpen, FileModel, SingleModel } = this.state;\r\n\t\tconst { showMessageNode } = this.props;\r\n\t\tvar messages = [];\r\n\r\n\t\tif (IsFileCardActive) {\r\n\t\t\tif (!IsFileCardListDialogOpen) {\r\n\t\t\t\tif ((FileModel.FileName === undefined || FileModel.FileName == null)\r\n\t\t\t\t\t&& (FileModel.File === undefined || FileModel.File == null)) {\r\n\t\t\t\t\tmessages.push(\"Upload File cannot be null.\");\r\n\t\t\t\t}\r\n\t\t\t\tif (FileModel.TemplateId == undefined || FileModel.TemplateId == null\r\n\t\t\t\t\t|| FileModel.TemplateId == \"\")\r\n\t\t\t\t\tmessages.push(\"Template cannot be null.\");\r\n\t\t\t}\r\n\t\t\tif (FileModel.ClientCustomerId == null || FileModel.ClientCustomerId == undefined || FileModel.ClientCustomerId == \"\")\r\n\t\t\t\tmessages.push(\"Customer Number cannot be null\");\r\n\r\n\t\t\tif (FileModel.UniqueClientId == null || FileModel.UniqueClientId == undefined || FileModel.UniqueClientId == \"\")\r\n\t\t\t\tmessages.push(\"Client Name cannot be null\");\r\n\t\t}\r\n\r\n\r\n\t\telse if (IsSingleCardActive) {\r\n\t\t\tif (SingleModel.ClientCustomerId == null || SingleModel.ClientCustomerId == undefined || SingleModel.ClientCustomerId == \"\")\r\n\t\t\t\tmessages.push(\"Customer Number cannot be null\");\r\n\r\n\t\t\tif (SingleModel.UniqueClientId == null || SingleModel.UniqueClientId == undefined || SingleModel.UniqueClientId == \"\")\r\n\t\t\t\tmessages.push(\"Client cannot be null\");\r\n\r\n\t\t\tif (SingleModel.TemplateId == undefined || SingleModel.TemplateId == null || SingleModel.TemplateId == \"\")\r\n\t\t\t\tmessages.push(\"Template cannot be null.\");\r\n\r\n\t\t\tif (SingleModel.CardId == undefined || SingleModel.CardId == null || SingleModel.CardId == \"\")\r\n\t\t\t\tmessages.push(\"Card Number cannot be null.\");\r\n\r\n\t\t}\r\n\t\tif (messages.length > 0) {\r\n\t\t\tif (messages.length > 9) {\r\n\t\t\t\tvar moreWarn = messages.length - 8;\r\n\t\t\t\tmessages = messages.slice(0, 8);\r\n\t\t\t\tmessages.push(\"And \" + moreWarn + \" more warnings\");\r\n\t\t\t}\r\n\t\t\tshowMessageNode(\"error\", \"Please Fill Required Fields\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\thideAlert() {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\r\n\tSubmitFileCardDataCheck = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tconst { FileModel } = this.state;\r\n\t\tconst { showMessage } = this.props;\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Card/CardSearch\",\r\n\t\t\t{\r\n\t\t\t\tClientCustomerId: FileModel.ClientCustomerId,\r\n\t\t\t\tCardSearchCriteria: 2\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tvar cardMessages = [];\r\n\t\t\t\t\tvar responseList = [];\r\n\t\t\t\t\tvar filePostCardList = [];\r\n\r\n\t\t\t\t\tresponseData.Item.map((i, value) => {\r\n\t\t\t\t\t\tresponseList.push(responseData.Item[value].MaskedCardNumber);\r\n\t\t\t\t\t});\r\n\r\n\r\n\t\t\t\t\tthis.state.FileCardData.map((value) => {\r\n\t\t\t\t\t\tif (!(responseList.includes(value.CardNumber))) {\r\n\t\t\t\t\t\t\tcardMessages.push({\r\n\t\t\t\t\t\t\t\t\"CardNumber\": value.CardNumber,\r\n\t\t\t\t\t\t\t\t\"Description\": \"Card Number not found\",\r\n\t\t\t\t\t\t\t\t\"Status\": \"Rejected\"\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tcardMessages.push({\r\n\t\t\t\t\t\t\t\t\"CardNumber\": value.CardNumber,\r\n\t\t\t\t\t\t\t\t\"Description\": \"Card Number found\",\r\n\t\t\t\t\t\t\t\t\"Status\": \"Success\"\r\n\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\tfilePostCardList.push({\r\n\t\t\t\t\t\t\t\tCardNumber: value.CardNumber\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tisLoading: false,\r\n\t\t\t\t\t\tcardMessages,\r\n\t\t\t\t\t\tfilePostCardList\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst { FilterModel } = { ...this.state };\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/EmvScriptTemplate/GetAllEmvScriptSinglePool\",\r\n\t\t\t{\r\n\t\t\t\t\"TemplateId\": FilterModel.TemplateId,\r\n\t\t\t\t\"CardId\": FilterModel.CardId,\r\n\t\t\t\t\"ClientCustomerId\": FilterModel.ClientCustomerId,\r\n\t\t\t\t\"UniqueClientId\": FilterModel.UniqueClientId,\r\n\t\t\t\t\"ScriptStatusId\": FilterModel.EmvScriptStatusId\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessageNode(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ list: responseData.Item || [], isLoading: false });\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessageNode(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tSelectedRowChange = (index) => {\r\n\r\n\t\tvar data = this.state.list[index];\r\n\r\n\t\tconst { SingleModel, FileModel, model } = this.state;\r\n\t\tFileModel.Disabled = true;\r\n\t\tmodel.Disabled = true;\r\n\t\tmodel.IsUpdate = true;\r\n\t\tSingleModel.Id = data.Id;\r\n\t\tSingleModel.UniqueClientId = data.UniqueClientId;\r\n\t\tSingleModel.ClientCustomerId = data.ClientCustomerId;\r\n\t\tSingleModel.CardId = data.CardId;\r\n\t\tSingleModel.TemplateId = data.TemplateId;\r\n\t\tthis.setState({ SingleModel, FileModel, model, IsSingleCardActive: true, IsFileCardActive: false })\r\n\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.SingleModel };\r\n\t\tif (name === \"Customer\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.ClientCustomerId = newValue.Id;\r\n\t\t\t\tmodel.CustomerNumber = newValue.CustomerNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.ClientCustomerId;\r\n\t\t\t\tdelete model.CustomerNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (name === \"UniqueClientId\") {\r\n\t\t\tdelete model.ClientCustomerId;\r\n\t\t\tdelete model.CustomerNumber;\r\n\t\t}\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ SingleModel: model });\r\n\t}\r\n\tFillCustomerSingle = (customer) => {\r\n\t\tthis.SingleModelValueChanged(\"Customer\", customer);\r\n\t}\r\n\r\n\tFillCustomerFile = (customer) => {\r\n\t\tthis.FileModelValueChanged(\"Customer\", customer);\r\n\t}\r\n\tFillCustomerFilter = (customer) => {\r\n\t\tthis.FilterValueChanged(\"Customer\", customer);\r\n\t}\r\n\trender() {\r\n\t\tconst { model, isLoading, IsFileCardListDialogOpen, IsFileCardActive, IsSingleCardActive, FileModel, SingleModel, FilterModel } = this.state;\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\t{this.state.alert}\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\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\t\t 0 ? true : false}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t
\r\n\t\t);\r\n\r\n\t}\r\n}\r\nEmvScriptQueue.propTypes = {\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default EmvScriptQueue;","import { Card } from \"@material-ui/core\";\r\nimport CardBody from \"components/Card/CardBody\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport PropTypes, { any } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nclass EmvScriptTemplate extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\r\n\r\n\t\tthis.state = {\r\n\t\t\tisEdit: false,\r\n\t\t\tisEditTemplate: false,\r\n\t\t\tmodel: {},\r\n\t\t\ttemplateModel: {},\r\n\t\t\ttempCard: {},\r\n\t\t\tisLoading: false,\r\n\t\t\thandleList: [],\r\n\t\t\tfullTagList: [],\r\n\t\t\tdeleteTagList: [],\r\n\t\t\ttemplateList: [],\r\n\t\t\ttempTemplate: {},\r\n\t\t\tisTemplateExpansionPanelActive: false,\r\n\t\t\tisTagExpansionPanelActive: false\r\n\t\t};\r\n\r\n\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"EMV Script Template\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t\tthis.HandleGetAllTagList();\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ isEdit: false, model: any });\r\n\t}\r\n\r\n\tAddScriptTemplate = () => {\r\n\t\tconst { model, tempCard, handleList, templateModel } = this.state;\r\n\t\tvar messages = [];\r\n\r\n\t\tif (model.TagName == null || undefined) messages.push(\"Tag Name can not be null\");\r\n\t\tif (model.TagValue == null || undefined || \"\") messages.push(\"Tag value can not be null.\");\r\n\t\tif (templateModel.TemplateName == null || undefined || \"\") messages.push(\"Template can not be null.\");\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.props.showMessageNode(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvar index = handleList.indexOf(tempCard);\r\n\t\t\tif (index == -1) {\r\n\t\t\t\thandleList.push({\r\n\t\t\t\t\t\"TemplateName\": templateModel.TemplateName,\r\n\t\t\t\t\t\"TagValue\": model.TagValue,\r\n\t\t\t\t\t\"TagName\": model.TagName\r\n\t\t\t\t}\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tthis.state.handleList[index] = model;\r\n\t\t\t}\r\n\t\t\tthis.setState({ handleList })\r\n\t\t}\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: any, templateModel: any });\r\n\t}\r\n\r\n\tSubmit = () => {\r\n\t\tvar data = this.state.handleList;\r\n\t\tconst { templateModel, deleteTagList } = { ...this.state };\r\n\t\tthis.setState({ isLoading: true })\r\n\t\tProxy.POST(\"/prepaidapi/v1.0/EmvScriptTemplate/InsertOrUpdateEmvScriptTag\",\r\n\t\t\t{\r\n\t\t\t\temvScriptTemplates: data,\r\n\t\t\t\tdeleteScriptTemplates: deleteTagList,\r\n\t\t\t\tTemplateName: templateModel.TemplateName,\r\n\t\t\t\tTemplateId: templateModel.TemplateId\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", responseData.ErrorDescription);\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.props.showMessage(\"success\", \"Emv script template transaction successfully\");\r\n\t\t\t\t\tthis.setState({ handleList: [], deleteTagList: [] });\r\n\t\t\t\t\tthis.HandleGetAllTagList();\r\n\t\t\t\t\tthis.Clear();\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\r\n\r\n\t}\r\n\r\n\r\n\r\n\tHandleAddTemplate = () => {\r\n\r\n\t\tconst templateModel = this.state.templateModel;\r\n\t\tProxy.POST(\"/prepaidapi/v1.0/EmvScriptTemplate/InsertOrUpdateEmvScriptTemplate\",\r\n\t\t\t{\r\n\t\t\t\tTemplateId: templateModel.TemplateId,\r\n\t\t\t\tTemplateName: templateModel.TemplateName\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.props.showMessage(\"success\", \"Emv script template transaction successfully\");\r\n\t\t\t\t\tthis.HandleGetAllTemplate();\r\n\t\t\t\t\tthis.Clear();\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\r\n\t}\r\n\r\n\tHandleGetAllTemplate = () => {\r\n\r\n\t\tProxy.POST(\"/prepaidapi/v1.0/EmvScriptTemplate/GetAllEmvScriptTemplate\",\r\n\t\t\t{\r\n\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\r\n\t\t\t\t\tthis.setState({ templateList: responseData.Item, isTemplateExpansionPanelActive: true })\r\n\t\t\t\t\t//\tthis.Clear();\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleDeleteTemplate = () => {\r\n\r\n\t\tconst { model, handleList, templateModel } = this.state;\r\n\t\tvar messages = [];\r\n\r\n\t\tif (model.TagName == null || undefined) messages.push(\"Tag Name can not be null\");\r\n\t\tif (model.TagValue == null || undefined || \"\") messages.push(\"Tag value can not be null.\");\r\n\t\tif (templateModel.TemplateName == null || undefined || \"\") messages.push(\"Template can not be null.\");\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.props.showMessageNode(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvar index = handleList.indexOf(this.state.tempCard);\r\n\t\t\tvar deleteData = handleList[index];\r\n\t\t\tthis.state.deleteTagList.push({\r\n\t\t\t\t\"TemplateTagId\": deleteData.TemplateTagId,\r\n\t\t\t\t\"TemplateName\": deleteData.TemplateName,\r\n\t\t\t\t\"TagName\": deleteData.TagName,\r\n\t\t\t\t\"TagValue\": deleteData.TagValue,\r\n\t\t\t\t\"TemplateId\": deleteData.TemplateId\r\n\t\t\t});\r\n\t\t\thandleList.splice(index, 1);\r\n\t\t\tthis.setState({ isEdit: false, model: any });\r\n\t\t}\r\n\t}\r\n\r\n\tHandleClearTemplate = () => {\r\n\t\tthis.setState({ isEditTemplate: false, templateModel: any, model: any });\r\n\t}\r\n\r\n\tTemplateRowSelected = (index) => {\r\n\r\n\t\tconst tempmodel = this.state.templateModel;\r\n\t\tvar data = this.state.templateList[index];\r\n\t\ttempmodel.TemplateName = data.TemplateName;\r\n\t\ttempmodel.TemplateId = data.TemplateId;\r\n\r\n\t\tvar fullTag = this.state.fullTagList.filter(x => x.TemplateId === tempmodel.TemplateId);\r\n\t\tthis.setState({ handleList: fullTag, isEditTemplate: true, templateModel: tempmodel, isTemplateExpansionPanelActive: false, isTagExpansionPanelActive: true });\r\n\r\n\r\n\t}\r\n\r\n\r\n\r\n\tHandleGetAllTagList = () => {\r\n\r\n\t\tProxy.POST(\"/prepaidapi/v1.0/EmvScriptTemplate/GetAllEmvScriptTag\",\r\n\t\t\t{\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.setState({ fullTagList: responseData.Item });\r\n\t\t\t\t\t//\tthis.Clear();\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\r\n\t}\r\n\r\n\r\n\r\n\r\n\tRowSelected = (index) => {\r\n\r\n\t\tconst model = this.state.model;\r\n\t\tvar data = this.state.handleList[index];\r\n\t\tmodel.TemplateTagId = data.Id;\r\n\t\tthis.setState({ isEdit: true, model: this.state.handleList[index], tempCard: this.state.handleList[index] });\r\n\t}\r\n\tHandleChanged = (name, value) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tTemplateHandleChange = (name, value) => {\r\n\t\tconst templateModel = { ...this.state.templateModel };\r\n\t\ttemplateModel[name] = value;\r\n\t\tthis.setState({ templateModel });\r\n\t}\r\n\r\n\tSearch = () => {\r\n\t\tthis.HandleGetAllTemplate();\r\n\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, templateModel, handleList, isEdit, isEditTemplate, isLoading } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{/*\r\n\t\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t\t */}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t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
\r\n\t\t\t\t
\r\n\t\t\t\t{/* */}\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nEmvScriptTemplate.propTypes = {\r\n\tmodel: PropTypes.object,\r\n\tonModelChange: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default EmvScriptTemplate;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { GridColumnType, MenuCodes } from \"views/Constants/Constant.js\";\r\n\r\nclass CardFeeProfileDefination extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : -1,\r\n\t\t\tAnnuelFeeChargeTypeValue: \"\",\r\n\t\t\tDayCount: 0\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tlist: [],\r\n\t\t\tisEdit: false,\r\n\t\t\tisLoading: false,\r\n\t\t\tindex: -1\r\n\t\t};\r\n\r\n\t\tthis.IsDefaultProfile = false;\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : -1,\r\n\t\t};\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\r\n\t\tswitch (this.props.MenuCode) {\r\n\t\t\tcase MenuCodes.Menu_BackOfficeCardFeeProfile:\r\n\t\t\t\tthis.IsDefaultProfile = true;\r\n\t\t\t\tthis.props.setAppLeftTitle(\"Card Fee Profile\");\r\n\t\t\t\tbreak;\r\n\t\t\tcase MenuCodes.Menu_CardFeeProfile:\r\n\t\t\t\tthis.IsDefaultProfile = false;\r\n\t\t\t\tthis.props.setAppLeftTitle(\"Card Fee Profile\");\r\n\t\t\t\tbreak;\r\n\t\t\tcase MenuCodes.Menu_ClientCardFeeProfile:\r\n\t\t\t\tthis.IsDefaultProfile = false;\r\n\t\t\t\tthis.props.setAppLeftTitle(\"Client Card Fee Profile\");\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tif (name == \"AnnuelFeeChargeTypeId\") {\r\n\t\t\tif (data && data.ParameterValue == \"D\")\r\n\t\t\t\tmodel.AnnuelFeeChargeTypeValue = data.ParameterValue;\r\n\t\t\telse {\r\n\t\t\t\tmodel.AnnuelFeeChargeTypeValue = \"S\";\r\n\t\t\t\tmodel.DayCount = 0;\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, isEdit: false, index: -1 });\r\n\t}\r\n\r\n\tHandleSearch = async () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tconst model = this.state.model;\r\n\t\tmodel.IsDefaultProfile = this.IsDefaultProfile;\r\n\t\tvar result = await ExecuteApiPost(\"/prepaidapi/v1.0/CardFeeProfile/SearchCardFeeProfile\", model);\r\n\t\tthis.setState({ list: result || [], isLoading: false });\r\n\t}\r\n\r\n\tHandleSubmit = async () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tconst model = this.state.model;\r\n\t\tmodel.IsDefaultProfile = this.IsDefaultProfile;\r\n\t\tvar result = await ExecuteApiPost(\"/prepaidapi/v1.0/CardFeeProfile/InsertOrUpdateCardFeeProfile\", model);\r\n\t\tif (result != false) {\r\n\t\t\tthis.HandleClear();\r\n\t\t\tthis.HandleSearch();\r\n\t\t}\r\n\t}\r\n\r\n\tHandleDelete = () => {\r\n\t\tconst { ExecuteApiPost, showConfirmMessage } = this.props;\r\n\t\tshowConfirmMessage(\"warning\", \"Delete\", \"Are you sure to delete this record?\", () => ExecuteApiPost\r\n\t\t\t(\"/prepaidapi/v1.0/CardFeeProfile/DeleteCardFeeProfile\",\r\n\t\t\t\t{\r\n\t\t\t\t\tId: this.state.model.Id,\r\n\t\t\t\t\tIsDefaultProfile: this.IsDefaultProfile\r\n\t\t\t\t}, null, null, null, [this.HandleSearch, this.HandleClear], true\r\n\t\t\t));\r\n\t}\r\n\tValidate = () => {\r\n\t\tconst { showValidationErrors } = this.props;\r\n\r\n\t\tconst { model } = this.state;\r\n\t\tvar Messages = [];\r\n\t\tmodel.vProfileName = !model.ProfileName;\r\n\t\tif (model.vProfileName) Messages.push(\"Profile Name cannot be empty.\");\r\n\r\n\t\tmodel.vMainCardIssuingFee = model.MainCardIssuingFee < 0 || model.MainCardIssuingFee == null;\r\n\t\tif (model.vMainCardIssuingFee) Messages.push(\"Main Card Issuing Fee cannot be empty\");\r\n\r\n\t\tmodel.vSuppCardIssuingFee = model.SuppCardIssuingFee < 0 || model.SuppCardIssuingFee == null;\r\n\t\tif (model.vSuppCardIssuingFee) Messages.push(\"Sup Card Issuing Fee cannot be empty\");\r\n\r\n\t\tmodel.vMainCardAnnualFee = model.MainCardAnnualFee < 0 || model.MainCardAnnualFee == null;\r\n\t\tif (model.vMainCardAnnualFee) Messages.push(\"Main Card Annual Fee cannot be empty\");\r\n\r\n\t\tmodel.vSuppCardAnnualFee = model.SuppCardAnnualFee < 0 || model.SuppCardAnnualFee == null;\r\n\t\tif (model.vSuppCardAnnualFee) Messages.push(\"Sup Card Annual Fee cannot be empty\");\r\n\r\n\t\tmodel.vMainCardRenewalFee = model.MainCardRenewalFee < 0 || model.MainCardRenewalFee == null;\r\n\t\tif (model.vMainCardRenewalFee) Messages.push(\"Main Card Renewal Fee cannot be empty\");\r\n\r\n\t\tmodel.vSuppCardRenewalFee = model.SuppCardRenewalFee < 0 || model.SuppCardRenewalFee == null;\r\n\t\tif (model.vSuppCardRenewalFee) Messages.push(\"Sup Card Renewal Fee cannot be empty\");\r\n\r\n\t\tmodel.vCardReembossFee = model.CardReembossFee < 0 || model.CardReembossFee == null;\r\n\t\tif (model.vCardReembossFee) Messages.push(\"Main Card Re-Issuing Fee cannot be empty\");\r\n\r\n\t\tmodel.vSuppCardReEmbossFee = model.SuppCardReEmbossFee < 0 || model.SuppCardReEmbossFee == null;\r\n\t\tif (model.vSuppCardReEmbossFee) Messages.push(\"Sup Card Re-Issuing Fee cannot be empty\");\r\n\r\n\t\tmodel.vTokenGenerationFee = model.TokenGenerationFee < 0 || model.TokenGenerationFee == null;\r\n\t\tif (model.vTokenGenerationFee) Messages.push(\"Token Generation Fee cannot be empty\");\r\n\r\n\t\tmodel.vInstantPersonalizationFee = model.InstantPersonalizationFee < 0 || model.InstantPersonalizationFee == null;\r\n\t\tif (model.vInstantPersonalizationFee) Messages.push(\"Instant Personalization Fee cannot be empty\");\r\n\r\n\t\tmodel.vTokenStatusUpdateFee = model.TokenStatusUpdateFee < 0 || model.TokenStatusUpdateFee == null;\r\n\t\tif (model.vTokenStatusUpdateFee) Messages.push(\"Token Status Update Fee cannot be empty\");\r\n\r\n\t\tmodel.vUniqueClientId = this.IsDefaultProfile == false && (model.UniqueClientId < 0 || model.UniqueClientId == null);\r\n\t\tif (model.vUniqueClientId) Messages.push(\"Client cannot be empty\");\r\n\r\n\t\tif (Messages.length > 0) {\r\n\t\t\tshowValidationErrors(Messages);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn true;\r\n\t}\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tvar tempModel = this.state.list[index];\r\n\t\tthis.setState({ isEdit: true, model: tempModel, index });\r\n\t}\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, isLoading, index } = this.state;\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{!this.IsDefaultProfile &&\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n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\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCardFeeProfileDefination.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(CardFeeProfileDefination, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { EditIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton.jsx\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, MenuCodes } from \"views/Constants/Constant\";\r\n\r\nclass CardholderTransactionFee extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.emptyProfile = {\r\n\t\t\tId: 0,\r\n\t\t\tIsRecordValid: true,\r\n\t\t\tProfileName: null,\r\n\t\t\tIsDefaultProfile: true,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined\r\n\t\t};\r\n\r\n\t\tthis.emptyDetail = {\r\n\t\t\tIndex: null,\r\n\t\t\tId: 0,\r\n\t\t\tIsRecordValid: true,\r\n\t\t\tProfileId: 0,\r\n\t\t\tTransactionCodeId: null,\r\n\t\t\tTransactionCode: null,\r\n\t\t\tFeeRate: null,\r\n\t\t\tDeclineFee: null,\r\n\t\t\tFlatAmount: null,\r\n\t\t\tProvisionSourceId: 0,\r\n\t\t\tProvisionSource: null,\r\n\t\t\tCardTransactionFeeProfile: { ...this.emptyProfile }\r\n\t\t};\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tSelectedFeeProfile: { ...this.emptyProfile },\r\n\t\t\tSelectedTransactionFee: { ...this.emptyDetail },\r\n\t\t\tProfileList: [],\r\n\t\t\tDetailList: []\r\n\t\t};\r\n\r\n\t\tthis.parameterProvisionSource = {\r\n\t\t\tParameterCode: \"ProvisionSource\"\r\n\t\t};\r\n\t\tthis.renderItemUniqueClient = {};\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : -1,\r\n\t\t};\r\n\r\n\r\n\t\tthis.feeItemColumns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t { this.HandleSelectDetail(row.original, row.index); }} />\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\tresizable: false,\r\n\t\t\t\twidth: 60\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Fee Profile Name\",\r\n\t\t\t\taccessor: \"CardTransactionFeeProfile.ProfileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Source\",\r\n\t\t\t\taccessor: \"ProvisionSource.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Code\",\r\n\t\t\t\taccessor: \"TransactionCode.TxnCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Name\",\r\n\t\t\t\taccessor: \"TransactionCode.TxnName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Fee Rate\",\r\n\t\t\t\taccessor: \"FeeRate\",\r\n\t\t\t\tCell: row => (
{Formatter.FormatPercentFee(row.value)}
)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Flat Amount\",\r\n\t\t\t\taccessor: \"FlatAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Decline Fee\",\r\n\t\t\t\taccessor: \"DeclineFee\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tisLoading: false,\r\n\t\t\tvModel: {},\r\n\t\t\tvModelDetail: {}\r\n\t\t};\r\n\t};\r\n\r\n\ttoArray = (value) => {\r\n\t\tvar returnList = [];\r\n\t\tif (value != null && value[0]) {\r\n\t\t\tfor (const key in value) {\r\n\t\t\t\tif (value.hasOwnProperty(key)) {\r\n\t\t\t\t\tconst element = value[key];\r\n\t\t\t\t\treturnList.push(element);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn returnList;\r\n\t};\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t\tswitch (this.props.MenuCode) {\r\n\t\t\tcase MenuCodes.Menu_BackofficeTransactionFeeProfile:\r\n\t\t\t\tthis.IsDefaultProfile = true;\r\n\t\t\t\tthis.props.setAppLeftTitle(\"Transaction Fee Profile\");\r\n\t\t\t\tbreak;\r\n\t\t\tcase MenuCodes.Menu_TransactionFeeProfile:\r\n\t\t\t\tthis.IsDefaultProfile = false;\r\n\t\t\t\tthis.props.setAppLeftTitle(\"Transaction Fee Profile\");\r\n\t\t\t\tbreak;\r\n\t\t\tcase MenuCodes.Menu_ClientCardHolderFee:\r\n\t\t\t\tthis.IsDefaultProfile = false;\r\n\t\t\t\tthis.props.setAppLeftTitle(\"Client Transaction Fee Profile\");\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (name === \"FeeProfileName\") {\r\n\t\t\tmodel.SelectedFeeProfile.ProfileName = newValue;\r\n\t\t} else if (name == \"ProvisionSource\") {\r\n\t\t\tmodel.SelectedTransactionFee.ProvisionSourceId = newValue;\r\n\t\t\tmodel.SelectedTransactionFee.ProvisionSource = data;\r\n\t\t} else if (name == \"TransactionCode\") {\r\n\t\t\tmodel.SelectedTransactionFee.TransactionCodeId = newValue;\r\n\t\t\tmodel.SelectedTransactionFee.TransactionCode = data;\r\n\t\t} else if (name == \"FlatAmount\") {\r\n\t\t\tmodel.SelectedTransactionFee.FlatAmount = newValue;\r\n\t\t} else if (name == \"FeeRate\") {\r\n\t\t\tmodel.SelectedTransactionFee.FeeRate = newValue;\r\n\t\t} else if (name == \"DeclineFee\") {\r\n\t\t\tmodel.SelectedTransactionFee.DeclineFee = newValue;\r\n\t\t}\r\n\t\telse if (name == \"UniqueClientId\") {\r\n\t\t\tmodel.SelectedFeeProfile.UniqueClientId = newValue;\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {\r\n\t\t\t\t...this.initialModel,\r\n\t\t\t\tSelectedFeeProfile: { ...this.emptyProfile },\r\n\t\t\t\tSelectedTransactionFee: { ...this.emptyDetail }\r\n\t\t\t}\r\n\t\t});\r\n\t};\r\n\r\n\tHandleSelectProfile = (data, index) => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tvar feeProfile = Object.assign({}, data.Profile);\r\n\t\tvar feeItemList = Object.assign({}, data.FeeList);\r\n\r\n\t\tmodel.SelectedFeeProfile = feeProfile;\r\n\t\tmodel.SelectedTransactionFee = Object.assign({}, this.emptyDetail);\r\n\t\tmodel.DetailList = this.toArray(feeItemList);\r\n\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\tHandleSelectDetail = (data, index) => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tmodel.SelectedTransactionFee = Object.assign({}, data);\r\n\t\tmodel.SelectedTransactionFee.Index = index;\r\n\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\tHandleAddDetail = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tvar newItem = Object.assign({}, model.SelectedTransactionFee);\r\n\r\n\t\tif (!this.ValidateNewDetail(newItem, model.DetailList)) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tnewItem.CardTransactionFeeProfile = model.SelectedFeeProfile;\r\n\t\tvar temporary = [];\r\n\t\tif (newItem.Id == 0) {\r\n\t\t\tnewItem.ProfileId = model.SelectedFeeProfile.Id;\r\n\r\n\t\t\tif (newItem.Index != null) {\r\n\t\t\t\tfor (let index = 0; index < model.DetailList.length; index++) {\r\n\t\t\t\t\tconst element = model.DetailList[index];\r\n\t\t\t\t\ttemporary.push(index == newItem.Index ? newItem : element);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tmodel.DetailList.forEach((value, index, array) => { temporary.push(value); });\r\n\t\t\t\ttemporary.push(newItem);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tmodel.DetailList.forEach(element => {\r\n\t\t\t\tif (element.Id == newItem.Id) {\r\n\t\t\t\t\ttemporary.push(newItem);\r\n\t\t\t\t} else {\r\n\t\t\t\t\telement.CardTransactionFeeProfile = model.SelectedFeeProfile;\r\n\t\t\t\t\ttemporary.push(element);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tmodel.SelectedTransactionFee = Object.assign({}, this.emptyDetail);\r\n\t\tmodel.DetailList = temporary;\r\n\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleDeleteDetail = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tvar newItem = Object.assign({}, model.SelectedTransactionFee);\r\n\r\n\t\tvar temporary = [];\r\n\t\tif (newItem.Id != 0) {\r\n\t\t\tnewItem.IsRecordValid = false;\r\n\t\t\tmodel.DetailList.forEach(element => {\r\n\t\t\t\tif (element.Id != newItem.Id) { temporary.push(element); }\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\tfor (let index = 0; index < model.DetailList.length; index++) {\r\n\t\t\t\tconst element = model.DetailList[index];\r\n\t\t\t\tif (index != newItem.Index) { temporary.push(element); }\r\n\t\t\t}\r\n\t\t}\r\n\t\tmodel.SelectedTransactionFee = Object.assign({}, this.emptyDetail);\r\n\t\tmodel.DetailList = temporary;\r\n\t\tthis.setState({ model }, this.HandleSubmit);\r\n\t}\r\n\r\n\tHandleClearDetail = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel.SelectedTransactionFee = Object.assign({}, this.emptyDetail);\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleSearch = async () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tmodel.SelectedFeeProfile.IsDefaultProfile = this.IsDefaultProfile;\r\n\t\tvar result = await ExecuteApiPost(\"/prepaidapi/v1.0/CardTransactionFeeProfile/SearchProfile\", model.SelectedFeeProfile);\r\n\r\n\t\tmodel.SelectedTransactionFee = Object.assign({}, this.emptyDetail);\r\n\t\tmodel.ProfileList = result;\r\n\t\tmodel.DetailList = [];\r\n\t\tthis.setState({ model, isLoading: false });\r\n\t}\r\n\r\n\tsuccessCallback = (result) => {\r\n\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel.SelectedFeeProfile = result.Profile;\r\n\t\tmodel.SelectedTransactionFee = Object.assign({}, this.emptyDetail);\r\n\t\tmodel.ProfileList = [];\r\n\t\tmodel.ProfileList.push(result);\r\n\t\tmodel.DetailList = result.FeeList;\r\n\r\n\t\tthis.props.showMessage(\"success\", \"Succeeded!\", \"Operation successfully completed!\");\r\n\t\tthis.HandleSearch();\r\n\t\tthis.HandleClear();\r\n\t}\r\n\r\n\r\n\tHandleSubmit = async () => {\r\n\t\tif (!this.ValidateSubmit()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tconst model = { ...this.state.model };\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\r\n\t\tvar callUrl = model.SelectedFeeProfile.Id != 0 ?\r\n\t\t\t\"/prepaidapi/v1.0/CardTransactionFeeProfile/Update\" :\r\n\t\t\t\"/prepaidapi/v1.0/CardTransactionFeeProfile/Insert\";\r\n\r\n\t\tvar requestList = [];\r\n\t\tif (model.SelectedFeeProfile.Id != 0) {\r\n\t\t\tvar originalDetail = model.ProfileList.find(x => x.Profile.Id == model.SelectedFeeProfile.Id).FeeList;\r\n\t\t\tvar originalDetailList = this.toArray(originalDetail);\r\n\r\n\t\t\tmodel.DetailList.forEach(element => {\r\n\t\t\t\t// added list\r\n\t\t\t\tif (element.Id == 0) { requestList.push(element); }\r\n\t\t\t\t// modified list\r\n\t\t\t\tif (element.Id != 0) { requestList.push(element); }\r\n\t\t\t});\r\n\r\n\t\t\t// deleted list\r\n\t\t\toriginalDetailList.forEach(element => {\r\n\t\t\t\tvar relatedItem = model.DetailList.find(x => x.Id == element.Id);\r\n\t\t\t\tif (relatedItem == null) {\r\n\t\t\t\t\tvar deletedItem = Object.assign({}, element);\r\n\t\t\t\t\tdeletedItem.IsRecordValid = false;\r\n\t\t\t\t\trequestList.push(deletedItem);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\tmodel.DetailList.forEach(element => {\r\n\t\t\t\t// added list\r\n\t\t\t\trequestList.push(element);\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tconst request = {\r\n\t\t\tProfileName: model.SelectedFeeProfile.ProfileName,\r\n\t\t\tUniqueClientId: model.SelectedFeeProfile.UniqueClientId,\r\n\t\t\tId: model.SelectedFeeProfile != null ? model.SelectedFeeProfile.Id : null,\r\n\t\t\tIsRecordValid: true,\r\n\t\t\tDetailList: requestList,\r\n\t\t\tIsDefaultProfile: this.IsDefaultProfile\r\n\t\t};\r\n\t\tvar result = await ExecuteApiPost(callUrl, request);\r\n\t\tif (result != null)\r\n\t\t\tthis.successCallback(result);\r\n\r\n\t};\r\n\r\n\tHandleDelete = async () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\r\n\t\tconst request = {\r\n\t\t\tProfileName: model.SelectedFeeProfile.ProfileName,\r\n\t\t\tUniqueClientId: model.SelectedFeeProfile.UniqueClientId,\r\n\t\t\tId: model.SelectedFeeProfile != null ? model.SelectedFeeProfile.Id : null,\r\n\t\t\tIsRecordValid: false,\r\n\t\t\tIsDefaultProfile: this.IsDefaultProfile\r\n\t\t};\r\n\t\tvar result = await ExecuteApiPost(\"/prepaidapi/v1.0/CardTransactionFeeProfile/Delete\", request);\r\n\t\tif (result != null && result.Item == true) {\r\n\t\t\tthis.setState({\r\n\t\t\t\tmodel: {\r\n\t\t\t\t\tSelectedFeeProfile: Object.assign({}, this.emptyProfile),\r\n\t\t\t\t\tSelectedTransactionFee: Object.assign({}, this.emptyDetail),\r\n\t\t\t\t\tProfileList: [],\r\n\t\t\t\t\tDetailList: [],\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t};\r\n\r\n\tValidateSubmit = () => {\r\n\t\tvar errorList = [];\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\r\n\t\tvModel.UniqueClientId = this.IsDefaultProfile == false && (model.SelectedFeeProfile == null || model.SelectedFeeProfile.UniqueClientId <= 0 || !model.SelectedFeeProfile.UniqueClientId);\r\n\t\tif (vModel.UniqueClientId) {\r\n\t\t\terrorList.push(\"Please fill Client field.\");\r\n\t\t}\r\n\r\n\t\tvModel.ProfileName = model.SelectedFeeProfile == null|| !model.SelectedFeeProfile.ProfileName;\r\n\t\tif (vModel.ProfileName) {\r\n\t\t\terrorList.push(\"Please fill Profile Name field.\");\r\n\t\t}\r\n\t\tif (errorList.length > 0) {\r\n\t\t\tshowValidationErrors(errorList);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\tValidateNewDetail = (newItem, allDetail) => {\r\n\t\tvar errorList = [];\r\n\t\tconst { model, vModelDetail, vModel } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\r\n\t\tif (!model.SelectedFeeProfile.ProfileName) {\r\n\t\t\terrorList.push(\"Please fill in the Fee Profile Name field.\");\r\n\t\t\tvModel.ProfileName = true;\r\n\t\t}\r\n\t\telse\r\n\t\t\tvModel.ProfileName = false;\r\n\r\n\t\tif (newItem.ProvisionSource == null) {\r\n\t\t\terrorList.push(\"Please fill in the Transaction Source field.\");\r\n\t\t\tvModelDetail.ProvisionSourceId = true;\r\n\t\t}\r\n\t\telse\r\n\t\t\tvModelDetail.ProvisionSourceId = false;\r\n\r\n\t\tif (newItem.TransactionCodeId == null) {\r\n\t\t\terrorList.push(\"Please fill in the Transaction Code field.\");\r\n\t\t\tvModelDetail.TransactionCodeId = true;\r\n\t\t}\r\n\t\telse\r\n\t\t\tvModelDetail.TransactionCodeId = false;\r\n\r\n\t\tif (newItem.FeeRate == null) {\r\n\t\t\terrorList.push(\"Please fill in the Fee Rate field.\");\r\n\t\t\tvModelDetail.FeeRate = true;\r\n\t\t}\r\n\t\telse\r\n\t\t\tvModelDetail.FeeRate = false;\r\n\r\n\t\tif (newItem.FlatAmount == null) {\r\n\t\t\terrorList.push(\"Please fill in the Flat Amount field.\");\r\n\t\t\tvModelDetail.FlatAmount = true;\r\n\t\t}\r\n\t\telse\r\n\t\t\tvModelDetail.FlatAmount = false;\r\n\r\n\r\n\t\tif (newItem.Id == 0) {\r\n\t\t\tif (newItem.Index != null) {\r\n\t\t\t\tfor (let index = 0; index < allDetail.length; index++) {\r\n\t\t\t\t\tconst element = allDetail[index];\r\n\t\t\t\t\tif (index != newItem.Index && element.TransactionCodeId == newItem.TransactionCodeId && element.ProvisionSourceId == newItem.ProvisionSourceId) {\r\n\t\t\t\t\t\terrorList.push(\"Transaction source and transaction code have already been added!\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tallDetail.forEach((value, index, array) => {\r\n\t\t\t\t\tif (value.TransactionCodeId == newItem.TransactionCodeId && value.ProvisionSourceId == newItem.ProvisionSourceId) {\r\n\t\t\t\t\t\terrorList.push(\"Transaction source and transaction code have already been added!\");\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tallDetail.forEach(element => {\r\n\t\t\t\tif (element.Id != newItem.Id && element.TransactionCodeId == newItem.TransactionCodeId && element.ProvisionSourceId == newItem.ProvisionSourceId) {\r\n\t\t\t\t\terrorList.push(\"Transaction source and transaction code have already been added!\");\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tif (errorList.length > 0) {\r\n\t\t\tshowValidationErrors(errorList);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, isLoading, alert, vModel, vModelDetail } = this.state;\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t 0 || IsClient,\r\n\t\t\t\t\t\t\tValidationFunction: this.ValidateSubmit\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Update\",\r\n\t\t\t\t\t\t\tOnClick: this.HandleSubmit,\r\n\t\t\t\t\t\t\tDisabled: Disabled || model.SelectedFeeProfile.Id == 0 || IsClient,\r\n\t\t\t\t\t\t\tValidationFunction: this.ValidateSubmit\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Delete\",\r\n\t\t\t\t\t\t\tOnClick: this.HandleDelete,\r\n\t\t\t\t\t\t\tDisabled: Disabled || model.SelectedFeeProfile.Id == 0 || IsClient,\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Search\",\r\n\t\t\t\t\t\t\tOnClick: this.HandleSearch,\r\n\t\t\t\t\t\t\tDisabled: Disabled,\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Clear\",\r\n\t\t\t\t\t\t\tOnClick: this.HandleClear,\r\n\t\t\t\t\t\t\tDisabled: Disabled\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{!this.IsDefaultProfile &&\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t { this.HandleSelectProfile(row.original, row.index); }} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsortable: false,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfilterable: false,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tresizable: false,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 60\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Profile Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Profile.ProfileName\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Client Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"UniqueClientId\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tshow: !this.IsDefaultProfile\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"UniqueClientName\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tshow: !this.IsDefaultProfile\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"User\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Profile.InsertUser\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Create Date\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Profile.InsertDateTime\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{!ClientHelper.IsClient() &&\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t `${d.TxnCode} - ${d.TxnName}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.SelectedTransactionFee.TransactionCodeId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModelDetail.TransactionCodeId}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{model.SelectedTransactionFee.Index > -1 && model.SelectedTransactionFee.Index != null ? \"UPDATE\" : \"ADD\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n\r\n}\r\n\r\nCardholderTransactionFee.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tHandleChange: PropTypes.func,\r\n\tmenuId: PropTypes.number,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default withArtifex(CardholderTransactionFee, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport Formatter from \"core/Formatter\";\r\nimport StringHelper from \"core/StringHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nclass FXFeeProfile extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tClientShare: 50, \r\n\t\t\tDcShare: 50 \r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tlist: [],\r\n\t\t\tisEdit: false,\r\n\t\t\tisLoading: false,\r\n\t\t\tindex: -1\r\n\t\t};\r\n\r\n\t\tthis.maxLength40 = { maxLength: 40 };\r\n\t\tthis.maxLength25 = { maxLength: 25 };\r\n\t\tthis.maxLength3 = { maxLength: 3 };\r\n\t\tthis.maxLength128 = { maxLength: 128 };\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Profile Name\",\r\n\t\t\t\taccessor: \"ProfileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"FX Upsell Rate\",\r\n\t\t\t\taccessor: \"FxUpsellRate\",\r\n\t\t\t\tCell: row => (
{Formatter.FormatPercentFee(row.value)}
)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"DC Bank Share\",\r\n\t\t\t\taccessor: \"DcShare\",\r\n\t\t\t\tCell: row => (
{Formatter.FormatPercentFee(row.value)}
)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Share\",\r\n\t\t\t\taccessor: \"ClientShare\",\r\n\t\t\t\tCell: row => (
{Formatter.FormatPercentFee(row.value)}
)\r\n\t\t\t},\r\n\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t\tthis.props.setAppLeftTitle(\"FX Profile\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, isEdit: false, index: -1 });\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/FxProfile/Search\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ list: responseData.Item || [] });\r\n\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleSubmit = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/prepaidapi/v1.0/FxProfile/Insert\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"A profile with this name already exists. Please use a unique profile name\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.HandleClear();\r\n\t\t\t\tthis.HandleSearch();\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Operation completed successfully!\");\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleUpdate = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/prepaidapi/v1.0/FxProfile/Update\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"A profile with this name already exists. Please use a unique profile name\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.HandleClear();\r\n\t\t\t\tthis.HandleSearch();\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Operation completed successfully!\");\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleDelete = () => {\r\n\t\tthis.ShowConfirmMessage(\"warning\", \"Delete\", \"Are you sure to delete this record?\", () => {\r\n\t\t\tthis.setState({ isLoading: true, alert: \"\" });\r\n\t\t\tProxy.POST(\"/prepaidapi/v1.0/FxProfile/Delete\",\r\n\t\t\t\t{ Id: this.state.model.Id },\r\n\t\t\t\t(responseData) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.HandleClear();\r\n\t\t\t\t\tthis.HandleSearch();\r\n\t\t\t\t\tthis.ShowMessage(\"success\", \"Deleted successfully!\");\r\n\t\t\t\t},\r\n\t\t\t\t(error) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t});\r\n\t}\r\n\r\n\tonlyLetterAndDigit = (str) => {\r\n\t\treturn StringHelper.VerifiyDigitAndLetter(str);\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tvar Messages = [];\r\n\t\tmodel.vProfileName = !model.ProfileName;\r\n\t\tif (model.vProfileName) Messages.push(\"Profile Name cannot be empty.\");\r\n\r\n\t\tmodel.vFxUpsellRate = model.FxUpsellRate < 0 || model.FxUpsellRate == null;\r\n\t\tif (model.vFxUpsellRate) Messages.push(\"FX Upsell Rate cannot be empty\");\r\n\r\n\t\tmodel.vDcShare = model.DcShare < 0 || model.DcShare == null;\r\n\t\tif (model.vDcShare) Messages.push(\"DC Bank Share cannot be empty\");\r\n\r\n\t\tmodel.vClientShare = model.ClientShare < 0 || model.ClientShare == null;\r\n\t\tif (model.vClientShare) Messages.push(\"Client Share cannot be empty\");\r\n\r\n\t\tif (Messages.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", Messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn true;\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tvar tempModel = this.state.list[index];\r\n\t\tthis.setState({ isEdit: true, model: tempModel, index });\r\n\t}\r\n\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tHandleShareChange = (name, newValue) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (name === \"ClientShare\") {\r\n\t\t\t model.ClientShare = newValue;\r\n\t\t\t model.DcShare = 100 - newValue;\r\n\t\t} else if (name === \"DcShare\") {\r\n\t\t\t model.DcShare = newValue;\r\n\t\t\t model.ClientShare = 100 - newValue;\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n };\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: null })} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, isLoading, index } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.HandleShareChange(name, value)}\r\n\t\t\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={model.vDcShare}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t this.HandleShareChange(name, value)}\r\n\t\t\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={model.vClientShare}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nFXFeeProfile.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(FXFeeProfile, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport StringHelper from \"core/StringHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant.js\";\r\n\r\nclass InterestFeeProfile extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : -1,\r\n\t\t\tIsDefaultProfile: ClientHelper.IsClient() ? false : true,\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tlist: [],\r\n\t\t\tisEdit: false,\r\n\t\t\tisLoading: false,\r\n\t\t\tindex: -1\r\n\t\t};\r\n\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : -1,\r\n\t\t};\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\t\tthis.maxLength40 = { maxLength: 40 };\r\n\t\tthis.maxLength25 = { maxLength: 25 };\r\n\t\tthis.maxLength3 = { maxLength: 3 };\r\n\t\tthis.maxLength128 = { maxLength: 128 };\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Profile Name\",\r\n\t\t\t\taccessor: \"ProfileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"UniqueClient.ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Minimum Amount\",\r\n\t\t\t\taccessor: \"MinimumAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Interest Rate\",\r\n\t\t\t\taccessor: \"InterestRate\",\r\n\t\t\t\tCell: row => (
{Formatter.FormatPercentFee(row.value)}
)\r\n\t\t\t},\r\n\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t\tthis.props.setAppLeftTitle(\"Interest Profile\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, isEdit: false, index: -1 });\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/InterestProfile/Search\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ list: responseData.Item || [] });\r\n\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleSubmit = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/prepaidapi/v1.0/InterestProfile/Insert\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.HandleClear();\r\n\t\t\t\tthis.HandleSearch();\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Operation completed successfully!\");\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleUpdate = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/prepaidapi/v1.0/InterestProfile/Update\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.HandleClear();\r\n\t\t\t\tthis.HandleSearch();\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Operation completed successfully!\");\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleDelete = () => {\r\n\t\tthis.ShowConfirmMessage(\"warning\", \"Delete\", \"Are you sure to delete this record?\", () => {\r\n\t\t\tthis.setState({ isLoading: true, alert: \"\" });\r\n\t\t\tProxy.POST(\"/prepaidapi/v1.0/InterestProfile/Delete\",\r\n\t\t\t\t{ Id: this.state.model.Id },\r\n\t\t\t\t(responseData) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.HandleClear();\r\n\t\t\t\t\tthis.HandleSearch();\r\n\t\t\t\t\tthis.ShowMessage(\"success\", \"Deleted successfully!\");\r\n\t\t\t\t},\r\n\t\t\t\t(error) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t});\r\n\t}\r\n\r\n\tonlyLetterAndDigit = (str) => {\r\n\t\treturn StringHelper.VerifiyDigitAndLetter(str);\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tvar Messages = [];\r\n\t\tmodel.vProfileName = !model.ProfileName;\r\n\t\tif (model.vProfileName) Messages.push(\"Profile Name cannot be empty.\");\r\n\r\n\t\tmodel.vInterestRate = model.InterestRate < 0 || model.InterestRate == null;\r\n\t\tif (model.vInterestRate) Messages.push(\"Interest Rate cannot be empty\");\r\n\r\n\t\tmodel.vMinimumAmount = model.MinimumAmount < 0 || model.MinimumAmount == null;\r\n\t\tif (model.vMinimumAmount) Messages.push(\"Minimum Amount cannot be empty\");\r\n\r\n\t\tmodel.vUniqueClientId = !model.UniqueClientId || model.UniqueClientId == null || model.UniqueClientId == -1;\r\n\t\tif (model.vUniqueClientId) Messages.push(\"Client Name cannot be empty\");\r\n\r\n\t\tif (Messages.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", Messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn true;\r\n\t}\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tvar tempModel = this.state.list[index];\r\n\t\tthis.setState({ isEdit: true, model: tempModel, index });\r\n\t}\r\n\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: null })} OnConfirm={onConf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n\r\nInterestFeeProfile.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(InterestFeeProfile, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent.jsx\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass AlertSettings extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.initialModel = {\r\n\t\t\tUniqueClientId: ClientHelper.IsBackOffice() ? -2 : ClientHelper.GetClientRowId()\r\n\t\t};\r\n\t\tthis.alertsettingcolumns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date\",\r\n\t\t\t\taccessor: \"AlertSettingDate\",\r\n\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"UniqueClient.ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Definition Type\",\r\n\t\t\t\taccessor: \"DefinitionType.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Product Name\",\r\n\t\t\t\taccessor: \"Product.ProductName\"\r\n\t\t\t}\r\n\t\t\t,\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Alert Limit\",\r\n\t\t\t\taccessor: \"AlertLimit\"\r\n\t\t\t}\r\n\t\t\t,\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Notification Channel\",\r\n\t\t\t\taccessor: \"NotificationChannelType.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Phone for Notification\",\r\n\t\t\t\taccessor: \"Phone.PhoneNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Email for Notification\",\r\n\t\t\t\taccessor: \"EMailforNotification\"\r\n\t\t\t}\r\n\r\n\t\t];\r\n\t\tthis.emptyObject = {}\r\n\t\tthis.sortedCustomerName = { Member: \"Name\" };\r\n\t\tthis.sortedCustomerStore = { Member: \"StoreName\" };\r\n\t\tthis.parameterCustomerStore = {};\r\n\r\n\t\tthis.state = {\r\n\t\t\talertsettinglist: [],\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tselected: null,\r\n\t\t\tisLoading: false,\r\n\t\t\tIsBackOffice: false,\r\n\t\t\tisOpenDialog: false,\r\n\t\t\tdetailDialog: false,\r\n\t\t\tvModel:{}\r\n\t\t};\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Alert Settings\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t\tconst { model } = { ...this.state }\r\n\t\tvar { isBackOffice } = this.state;\r\n\t\tisBackOffice = ClientHelper.IsBackOffice();\r\n\t\tif (!isBackOffice) {\r\n\t\t\tmodel.UniqueClientId = ClientHelper.GetClientRowId();\r\n\t\t}\r\n\t\tthis.setState({ model, isBackOffice });\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\r\n\t\tconst model = this.state.model;\r\n\t\tmodel[name] = value;\r\n\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tconst { alertsettinglist } = this.state;\r\n\r\n\t\tthis.setState({ model: alertsettinglist[index], selected: index });\r\n\t}\r\n\tDeleteConfirm = () => {\r\n\t\tconst { showConfirmMessage } = this.props;\r\n\t\tshowConfirmMessage(\"warning\", \"Warning\", \"Are you sure want to delete ?\", this.Delete);\r\n\t}\r\n\r\n\tGetParameterCustomerStore = () => {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tthis.parameterCustomerStore.Id = model.UniqueClientId;\r\n\r\n\t\treturn this.parameterCustomerStore;\r\n\t}\r\n\tSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tconst { model } = this.state;\r\n\t\tconst { showMessage } = this.props;\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/InventoryAlertSetting/Search\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ alertsettinglist: responseData.Item || [], isLoading: false });\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, alertsettinglist: [], selected: null });\r\n\t}\r\n\tUpdate = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tconst { model } = this.state;\r\n\t\tconst { showMessage } = this.props;\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/InventoryAlertSetting/Update\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"success\", \"Operation is successfully!\");\r\n\t\t\t\tthis.Clear();\r\n\t\t\t\tthis.Search();\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tDelete = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tconst { model } = this.state;\r\n\t\tconst { showMessage } = this.props;\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/InventoryAlertSetting/Delete\",\r\n\t\t\t{\r\n\t\t\t\t\"Id\": model.Id\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"success\", \"Operation is successfully!\");\r\n\t\t\t\tthis.Clear();\r\n\t\t\t\tthis.Search();\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tSubmit = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tconst { model } = this.state;\r\n\t\tconst { showMessage } = this.props;\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/InventoryAlertSetting/Insert\",\r\n\t\t\tmodel\r\n\t\t\t,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"success\", \"Operation is successfully!\");\r\n\t\t\t\tthis.Clear();\r\n\t\t\t\tthis.Search();\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tGetRenderItemPhoneCountryCode = (x) => {\r\n\t\tthis.renderItemPhoneCountryCode = \"+\" + x.Code + \" (\" + x.Name + \")\";\r\n\r\n\t\treturn this.renderItemPhoneCountryCode;\r\n\t}\r\n\r\n\tValidate() {\r\n\t\tconst { model } = { ...this.state };\r\n\t\tconst { showMessageNode } = this.props;\r\n\t\tvar messages = [];\r\n\t\tconst vModel = { ...this.state.vModel };\r\n\r\n\t\tif (model.UniqueClientId == -2) {\r\n\t\t\tmessages.push(\"Client can not be null.\");\r\n\t\t\tvModel.UniqueClientId = true;\r\n\t\t} else{\r\n\t\t\tvModel.UniqueClientId = false;\r\n\t\t}\r\n\r\n\t\tif (!model.DefinitionTypeId) {\r\n\t\t\tmessages.push(\"Definition Type can not be null.\");\r\n\t\t\tvModel.DefinitionTypeId = true;\r\n\t\t} else{\r\n\t\t\tvModel.DefinitionTypeId = false;\r\n\t\t}\r\n\r\n\t\tif (!model.AlertLimit) {\r\n\t\t\tmessages.push(\"Alert Limit can not be null.\");\r\n\t\t\tvModel.AlertLimit = true;\r\n\t\t} else{\r\n\t\t\tvModel.AlertLimit = false;\r\n\t\t}\r\n\t\tif (!model.NotificationChannelTypeId) {\r\n\t\t\tmessages.push(\"Notification Channel can not be null.\");\r\n\t\t\tvModel.NotificationChannelTypeId = true;\r\n\t\t} else{\r\n\t\t\tvModel.NotificationChannelTypeId = false;\r\n\t\t}\r\n\r\n\t\tif (!model.ProductId) {\r\n\t\t\tmessages.push(\"Product Name can not be null.\");\r\n\t\t\tvModel.ProductId = true;\r\n\t\t} else{\r\n\t\t\tvModel.ProductId = false;\r\n\t\t}\r\n\r\n\t\tif (!model.EMailforNotification) {\r\n\t\t\tmessages.push(\"e-Mail Notification can not be null.\");\r\n\t\t\tvModel.EMailforNotification = true;\r\n\t\t} else{\r\n\t\t\tvModel.EMailforNotification = false;\r\n\t\t}\r\n\t\tthis.setState({ vModel });\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tif (messages.length > 9) {\r\n\t\t\t\tvar moreWarn = messages.length - 8;\r\n\t\t\t\tmessages = messages.slice(0, 8);\r\n\t\t\t\tmessages.push(\"And \" + moreWarn + \" more warnings\");\r\n\t\t\t}\r\n\t\t\tshowMessageNode(\"error\", \"Please Fill Required Fields\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\thandleClose = () => {\r\n\r\n\t\tthis.setState({ detailDialog: false, openCheckinDialog: false, openTransferDialog: false, openReceiveDialog: false, openOrderDialog: false });\r\n\t}\r\n\trender() {\r\n\t\tconst { classes, Disabled } = this.props;\r\n\t\tconst { alert, model, selected, alertsettingcolumns, alertsettinglist, isLoading, detailDialog, IsBackOffice,vModel } = this.state;\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t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n}\r\n\r\nAlertSettings.propTypes = {\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default AlertSettings;","import { DialogContent } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { DetailIcon, ETransferIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericCheckInput, GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericSelectInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent.jsx\";\r\nimport { CheckType, GridColumnType } from \"views/Constants/Constant\";\r\nimport InventoryCheckin from \"./InventoryCheckin.jsx\";\r\nimport OrderCard from \"./OrderCard.jsx\";\r\nimport Receive from \"./Receive.jsx\";\r\nimport Transfer from \"./Transfer.jsx\";\r\n\r\nclass InventoryManagement extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tinventorylist: [],\r\n\t\t\tinventorycolumns: [],\r\n\t\t\tinventorydetailscolumns: [],\r\n\t\t\tsafedetailscolumns: [],\r\n\t\t\tsafeactivitycolumns: [],\r\n\t\t\tsafelist: [],\r\n\t\t\tstorelist: [],\r\n\t\t\tsafedetailslist: [],\r\n\t\t\tsafeactivitylist: [],\r\n\t\t\tmodel: {},\r\n\t\t\tfilterModel: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tisInventorydetail: false,\r\n\t\t\tisSafedetail: false,\r\n\t\t\tisSafeactivity: false,\r\n\t\t\tIsBackOffice: false,\r\n\t\t\topenOrderDialog: false,\r\n\t\t\topenTransferDialog: false,\r\n\t\t\topenReceiveDialog: false,\r\n\t\t\topenCheckinDialog: false,\r\n\t\t\tisOpenDialog: false,\r\n\t\t\tdetailDialog: false,\r\n\t\t\tcheckedValues: [],\r\n\t\t\tcheckmodel: {},\r\n\t\t\ttransferitem: [],\r\n\t\t\tcheckinitem: [],\r\n\t\t\tsafedetailmodel: {},\r\n\t\t\tStartDate: null,\r\n\t\t\tEndDate: null,\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: 0,\r\n\t\t};\r\n\t\tthis.HandleCheck = this.HandleCheck.bind(this);\r\n\t}\r\n\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Inventory Management\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t\tconst { model } = { ...this.state }\r\n\t\tvar { isBackOffice } = this.state;\r\n\t\tisBackOffice = ClientHelper.IsBackOffice();\r\n\t\tif (!isBackOffice) {\r\n\t\t\tmodel.UniqueClientId = ClientHelper.GetClientRowId();\r\n\t\t}\r\n\r\n\t\tthis.setState({ model, isBackOffice });\r\n\t\tthis.Columnlist();\r\n\r\n\r\n\t}\r\n\r\n\tColumnlist = () => {\r\n\r\n\t\tvar inventorycolumns = [];\r\n\t\tvar safeactivitycolumns = [];\r\n\t\tvar safedetailscolumns = [];\r\n\t\tvar inventorydetailscolumns = [];\r\n\t\tvar tempsamecolumns = [];\r\n\t\tconst IsBackOffice = ClientHelper.IsBackOffice();\r\n\r\n\t\tsafedetailscolumns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\twidth: 100\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Store/Safe\",\r\n\t\t\t\taccessor: \"CustomerStoreSafeName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Order Date\",\r\n\t\t\t\taccessor: \"OrderDate\",\r\n\t\t\t\ttype: GridColumnType.Date\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Serial Number\",\r\n\t\t\t\taccessor: \"CardId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Masked Card Number\",\r\n\t\t\t\taccessor: \"MaskedCardNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Received Date\",\r\n\t\t\t\taccessor: \"ReceiveDate\",\r\n\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Package No\",\r\n\t\t\t\taccessor: \"PackageNo\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Order Package No\",\r\n\t\t\t\taccessor: \"OrderPackageNo\"\r\n\t\t\t},\r\n\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Record Type\",\r\n\t\t\t\taccessor: \"RecordType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Number\",\r\n\t\t\t\taccessor: \"Id\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Person Name\",\r\n\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t},\r\n\r\n\r\n\t\t];\r\n\t\tinventorydetailscolumns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"Client\",\r\n\t\t\t\tshow: IsBackOffice,\r\n\t\t\t\twidth: 80\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Receive Date\",\r\n\t\t\t\taccessor: \"ReceiveDate\"\r\n\t\t\t}\r\n\r\n\t\t];\r\n\t\tinventorycolumns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"ClientName\",\r\n\t\t\t\tshow: IsBackOffice,\r\n\t\t\t\twidth: 80\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Store/Safe\",\r\n\t\t\t\taccessor: \"CustomerStoreSafe\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Receive Date\",\r\n\t\t\t\taccessor: \"ReceiveDate\",\r\n\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t}\r\n\r\n\t\t];\r\n\t\tsafeactivitycolumns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"ClientName\",\r\n\t\t\t\tshow: IsBackOffice,\r\n\t\t\t\twidth: 80\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Store/Safe\",\r\n\t\t\t\taccessor: \"CustomerStoreSafe\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Action Name\",\r\n\t\t\t\taccessor: \"ActionName\"\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Receive Date\",\r\n\t\t\t\taccessor: \"ReceiveDate\",\r\n\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t}\r\n\r\n\t\t];\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/PlasticType/SearchPlasticTypeList\",\r\n\t\t\t{ UniqueClientId: ClientHelper.GetClientRowId() },\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\t\tresponseData.Item.map(d => {\r\n\t\t\t\t\t\t\ttempsamecolumns.push(\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: d.PlasticName,\r\n\t\t\t\t\t\t\t\t\taccessor: d.PlasticName.trim()\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\ttempsamecolumns.push(\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tHeader: \"Total\",\r\n\t\t\t\t\t\t\t\taccessor: \"Total\"\r\n\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\ttempsamecolumns.map(d => {\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tinventorycolumns.push(\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\tHeader: d.Header,\r\n\t\t\t\t\t\t\t\t\t\taccessor: d.accessor.trim()\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t{\r\n\r\n\t\t\t\t\t\t\t\tsafeactivitycolumns.push(\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\tHeader: d.Header,\r\n\t\t\t\t\t\t\t\t\t\taccessor: d.accessor.trim()\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\t\tinventorycolumns: inventorycolumns,\r\n\t\t\t\t\t\t\tsafeactivitycolumns: safeactivitycolumns,\r\n\t\t\t\t\t\t\tsafedetailscolumns: safedetailscolumns,\r\n\t\t\t\t\t\t\tinventorydetailscolumns: inventorydetailscolumns,\r\n\t\t\t\t\t\t\tIsBackOffice: IsBackOffice\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\r\n\t}\r\n\r\n\r\n\tOpenCheckOutModal = (d) => {\r\n\r\n\t\tconst checkmodel = {\r\n\t\t\tReceiveDate: d.ReceiveDate,\r\n\t\t\tPlasticTypeName: d.InventoryOrder.Product.PlasticType.PlasticName,\r\n\t\t\tProductName: d.InventoryOrder.Product.ProductName,\r\n\t\t\tCustomerStoreSafeName: d.InventorySafeDefinition.SafeName + \" / \" + d.InventorySafeDefinition.CustomerStore.StoreName,\r\n\t\t\tPackageNo: d.InventoryOrder.PackageNo,\r\n\t\t\tOrderDate: d.InventoryOrder.OrderReceiveDate,\r\n\t\t\tRecordType: d.InventoryOrder.ReceiveRecordType.ParameterDesc,\r\n\t\t\tId: d.Id,\r\n\t\t\tCardId: d.CardId,\r\n\t\t\tMaskedCardNumber: d.MaskedCardNumber,\r\n\t\t\tCardTokenNumber: d.CardTokenNumber,\r\n\t\t\tClientName: d.InventorySafeDefinition.UniqueClient.ClientName,\r\n\t\t\tCheckType: CheckType.CheckOut,\r\n\t\t\tCheckTypeId: CheckType.CheckOutId\r\n\t\t}\r\n\t\tthis.setState({ checkmodel: checkmodel, openCheckinDialog: true, detailDialog: true });\r\n\t}\r\n\r\n\tSafeDetailActivityModal = (d) => {\r\n\r\n\t\tconst checkmodel = {\r\n\t\t\tReceiveDate: d.ReceiveDate,\r\n\t\t\tPlasticTypeName: d.InventoryOrder.Product.PlasticType.PlasticName,\r\n\t\t\tProductName: d.InventoryOrder.Product.ProductName,\r\n\t\t\tCustomerStoreSafeName: d.InventorySafeDefinition.SafeName + \" / \" + d.InventorySafeDefinition.CustomerStore.StoreName,\r\n\t\t\tPackageNo: d.InventoryOrder.PackageNo,\r\n\t\t\tOrderDate: d.InventoryOrder.OrderReceiveDate,\r\n\t\t\tRecordType: d.InventoryOrder.ReceiveRecordType.ParameterDesc,\r\n\t\t\tId: d.Id,\r\n\t\t\tCardId: d.CardId,\r\n\t\t\tMaskedCardNumber: d.MaskedCardNumber,\r\n\t\t\tCardTokenNumber: d.CardTokenNumber,\r\n\t\t\tClientName: d.InventorySafeDefinition.UniqueClient.ClientName,\r\n\t\t\tCheckType: CheckType.CheckOut,\r\n\t\t\tCheckTypeId: CheckType.CheckOutId\r\n\t\t}\r\n\t\tthis.setState({ checkmodel: checkmodel, openCheckinDialog: true, detailDialog: true });\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tthis.Columnlist();\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst { model } = this.state;\r\n\t\tconst { showMessage } = this.props;\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/InventoryOrder/StoreSafeList\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tresponseData.Item.forEach(e1 => {\r\n\t\t\t\t\te1.ColumnData.forEach(e2 => {\r\n\t\t\t\t\t\te1[e2.PlasticName.trim()] = e2.Count;\r\n\t\t\t\t\t});\r\n\t\t\t\t});\r\n\t\t\t\tthis.setState({ storelist: responseData.Item || [], isLoading: false, safelist: [], safedetailslist: [], safeactivitylist: [] });\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tStoreDetailRowSelected = (index) => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst { storelist } = this.state;\r\n\t\tconst { showMessage } = this.props;\r\n\r\n\t\tvar tlist = storelist[index];\r\n\t\ttlist[\"StatusType\"] = 1;\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/InventoryOrder/StoreSafeList\",\r\n\t\t\ttlist,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tresponseData.Item.forEach(e1 => {\r\n\t\t\t\t\te1.ColumnData.forEach(e2 => {\r\n\t\t\t\t\t\te1[e2.PlasticName.trim()] = e2.Count;\r\n\t\t\t\t\t});\r\n\t\t\t\t});\r\n\t\t\t\tthis.setState({ safelist: responseData.Item || [], isLoading: false, safedetailslist: [], safeactivitylist: [] });\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\r\n\t}\r\n\tSafeDetailRowSelected = (index) => {\r\n\t\tconst { safelist } = { ...this.state };\r\n\t\tthis.SafeDetailListFnc(safelist[index]);\r\n\t}\r\n\tSafeDetailListFnc = (item) => {\r\n\t\tthis.setState({ isLoading: true, checkedValues: [] });\r\n\t\tconst { showMessage } = this.props;\r\n\t\titem[\"StatusType\"] = 1;\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/InventoryOrder/SafeDetailList\",\r\n\t\t\titem,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ safedetailslist: responseData.Item || [], isLoading: false, safeactivitylist: [] });\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t// showMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\t// SafeActivityDetailRowSelected = (index) => {\r\n\t// \tconst { safedetailslist } = { ...this.state };\r\n\t// \tthis.SafeActivityDetailListFnc(safedetailslist[index]);\r\n\t// }\r\n\r\n\tSafeActivityDetailListFnc = (item) => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst { showMessage } = this.props;\r\n\t\titem[\"StatusType\"] = 2;\r\n\t\titem[\"InventorySafeDefinitionId\"] = item.InventorySafeDefinition.Id;\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/InventoryOrder/StoreSafeList\",\r\n\t\t\titem,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tresponseData.Item.forEach(e1 => {\r\n\t\t\t\t\te1.ColumnData.forEach(e2 => {\r\n\t\t\t\t\t\te1[e2.PlasticName.trim()] = e2.Count;\r\n\t\t\t\t\t});\r\n\t\t\t\t});\r\n\t\t\t\tthis.setState({ safeactivitylist: responseData.Item || [], isLoading: false });\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t// showMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tValueChanged = (name, value, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tif (name === \"Name\") model[\"UniqueClientId\"] = value;\r\n\t\tif (name === \"UniqueClientId\") model[\"Name\"] = value;\r\n\r\n\t\tthis.setState({ model });\r\n\t}\r\n\tHandleClear = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tmodel.EndDate = null;\r\n\t\tmodel.StartDate = null;\r\n\r\n\t\tthis.setState({ filterModel: {}, selected: null, inventorylist: [], safelist: [], storelist: [], safedetailslist: [], safeactivitylist: [], model: model });\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: \"\" })} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\tOrderEvent = () => {\r\n\t\tthis.StoreSafeClear();\r\n\t\tconst { model } = { ...this.state }\r\n\t\tmodel[\"IsNoNameProduct\"] = true;\r\n\t\tthis.setState({ openOrderDialog: true, detailDialog: true });\r\n\t}\r\n\tStoreSafeClear = () => {\r\n\t\tconst { model } = { ...this.state }\r\n\t\tmodel[\"FromInventorySafeDefinitionId\"] = null;\r\n\t\tthis.setState({ model: model });\r\n\t}\r\n\tReceiveEvent = () => {\r\n\t\tthis.StoreSafeClear();\r\n\t\tthis.setState({ openReceiveDialog: true, detailDialog: true });\r\n\r\n\t}\r\n\tTransferEvent = (item) => {\r\n\r\n\t\tif (item.length > 0) {\r\n\t\t\tconst { model } = { ...this.state }\r\n\r\n\t\t\tmodel[\"FromInventorySafeDefinitionId\"] = item[0].InventorySafeDefinitionId;\r\n\t\t\tthis.setState({ openTransferDialog: true, detailDialog: true, transferitem: item, model: model });\r\n\t\t} else {\r\n\t\t\tconst { showMessage } = this.props;\r\n\t\t\tshowMessage(\"error\", \"Error\", \"Please Select Item from Safe Detail List!\");\r\n\t\t}\r\n\r\n\t}\r\n\tCheckinEvent = (d) => {\r\n\t\tthis.StoreSafeClear();\r\n\r\n\t\tif (d.length > 0) {\r\n\t\t\tconst checkmodel = {\r\n\t\t\t\tReceiveDate: d[0].ReceiveDate,\r\n\t\t\t\tPlasticTypeName: d[0].PlasticType.PlasticName,\r\n\t\t\t\tCustomerStoreSafeName: d[0].InventorySafeDefinition.SafeName + \" / \" + d[0].InventorySafeDefinition.CustomerStore.StoreName,\r\n\t\t\t\tPackageNo: d[0].InventoryOrder.PackageNo,\r\n\t\t\t\tOrderDate: d[0].InventoryOrder.OrderReceiveDate,\r\n\t\t\t\tRecordType: d[0].InventoryOrder.ReceiveRecordType.ParameterDesc,\r\n\t\t\t\tId: d[0].Id,\r\n\t\t\t\tClientName: d[0].InventorySafeDefinition.UniqueClient.ClientName,\r\n\t\t\t\tCheckType: CheckType.CheckIn,\r\n\t\t\t\tCheckTypeId: CheckType.CheckInId\r\n\r\n\t\t\t}\r\n\t\t\tthis.setState({ openCheckinDialog: true, detailDialog: true, checkmodel: checkmodel });\r\n\t\t}\r\n\t\telse {\r\n\t\t\tconst { showMessage } = this.props;\r\n\t\t\tshowMessage(\"error\", \"Error\", \"Please Safe Detail List Select Item !\");\r\n\t\t}\r\n\t}\r\n\thandleClose = () => {\r\n\r\n\t\tthis.setState({ detailDialog: false, openCheckinDialog: false, openTransferDialog: false, openReceiveDialog: false, openOrderDialog: false });\r\n\t}\r\n\tHandleCheck = (e, x) => {\r\n\r\n\t\tthis.setState(state => ({\r\n\t\t\tcheckedValues: state.checkedValues.includes(x)\r\n\t\t\t\t? state.checkedValues.filter(c => c !== x)\r\n\t\t\t\t: [...state.checkedValues, x]\r\n\t\t}));\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { alert, model, safeactivitylist, safelist, storelist, selected: selected, safedetailslist, safeactivitycolumns, inventorycolumns, safedetailscolumns, checkedValues, isLoading, IsBackOffice } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.ValueChanged}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={ClientHelper.IsClient()}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tDefaultIndex={ClientHelper.IsClient() ? 0 : -1}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{/* */}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t!ClientHelper.IsStore() &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\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\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t c.Id == d.Id).length > 0}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={(e) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.HandleCheck(e, d);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}} />\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t { this.OpenCheckOutModal(d); }} />\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t { this.SafeActivityDetailListFnc(d); }} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tReceiveDate: d.ReceiveDate,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPlasticTypeName: d.PlasticType.PlasticName,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tProductName: d.Product.ProductName,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCustomerStoreSafeName: d.InventorySafeDefinition.SafeName + \" / \" + d.InventorySafeDefinition.CustomerStore.StoreName,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPackageNo: d.InventoryOrder.PackageNo,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tOrderPackageNo: d.InventoryOrder.OrderPackageNo,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tOrderDate: d.InventoryOrder.OrderReceiveDate,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tRecordType: d.InventoryOrder.ReceiveRecordType == null ? \"\" : d.InventoryOrder.ReceiveRecordType.ParameterDesc,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tId: d.Id,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tClientName: d.InventorySafeDefinition.UniqueClient.ClientName,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tStatusType: 2,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCardId: d.CardId,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMaskedCardNumber: d.MaskedCardNumber,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCardTokenNumber: d.CardTokenNumber,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tInventorySafeDefinitionId: d.InventorySafeDefinition.Id\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tColumns={safedetailscolumns}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tSelectedIndex={selected}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// RowSelected={this.SafeActivityDetailRowSelected}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t{this.state.openOrderDialog == true ?\r\n\t\t\t\t\t\t\t
Order Card
\r\n\t\t\t\t\t\t\t: null}\r\n\t\t\t\t\t\t{this.state.openReceiveDialog == true ?\r\n\t\t\t\t\t\t\t
Receive
\r\n\t\t\t\t\t\t\t: null}\r\n\t\t\t\t\t\t{this.state.openTransferDialog == true ?\r\n\t\t\t\t\t\t\t
Transfer
\r\n\t\t\t\t\t\t\t: null}\r\n\t\t\t\t\t\t{this.state.openCheckinDialog == true ?\r\n\t\t\t\t\t\t\t
{this.state.checkmodel.CheckType}
\r\n\t\t\t\t\t\t\t: null}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t{this.state.openOrderDialog == true ?\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t: null}\r\n\t\t\t\t\t\t{this.state.openReceiveDialog == true ?\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t: null}\r\n\t\t\t\t\t\t{this.state.openTransferDialog == true ?\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t: null}\r\n\t\t\t\t\t\t{this.state.openCheckinDialog == true ?\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t : null}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nInventoryManagement.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(InventoryManagement, {});","import { DialogContent } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport { DetailIcon, ETransferIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericCheckInput, GenericTextInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericNumberInput, GenericDateInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent.jsx\";\r\nimport { CheckType, GridColumnType } from \"views/Constants/Constant\";\r\nimport InventoryCheckin from \"./InventoryCheckin.jsx\";\r\nimport OrderCard from \"./OrderCard.jsx\";\r\nimport Receive from \"./Receive.jsx\";\r\nimport Transfer from \"./Transfer.jsx\";\r\nimport DateHelper from \"core/DateHelper\";\r\n\r\nclass InventorySafeDetail extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tinventorylist: [],\r\n\t\t\tinventorycolumns: [],\r\n\t\t\tinventorydetailscolumns: [],\r\n\t\t\tsafedetailscolumns: [],\r\n\t\t\tsafeactivitycolumns: [],\r\n\t\t\tsafelist: [],\r\n\t\t\tstorelist: [],\r\n\t\t\tsafedetailslist: [],\r\n\t\t\tsafeactivitylist: [],\r\n\t\t\tmodel: {\r\n\t\t\t\tStoreSummaryId : null,\r\n\t\t\t\tSafeSummaryId : null, \r\n\t\t\t\tUniqueClientId : null, \r\n\t\t\t\tLast4Digit : null,\r\n\t\t\t\tClearCardNumber : null,\r\n\t\t\t\tFromDate : null,\r\n\t\t\t\tToDate : null,\r\n\t\t\t\tMaskedCardNumber : null\r\n\t\t\t},\r\n\t\t\tfilterModel: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tisInventorydetail: false,\r\n\t\t\tisSafedetail: false,\r\n\t\t\tisSafeactivity: false,\r\n\t\t\tIsBackOffice: false,\r\n\t\t\topenOrderDialog: false,\r\n\t\t\topenTransferDialog: false,\r\n\t\t\topenReceiveDialog: false,\r\n\t\t\topenCheckinDialog: false,\r\n\t\t\tisOpenDialog: false,\r\n\t\t\tdetailDialog: false,\r\n\t\t\tcheckedValues: [],\r\n\t\t\tcheckmodel: {},\r\n\t\t\ttransferitem: [],\r\n\t\t\tcheckinitem: [],\r\n\t\t\tsafedetailmodel: {},\r\n\t\t\tStartDate: null,\r\n\t\t\tEndDate: null,\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: 0,\r\n\t\t};\r\n\t\tthis.HandleCheck = this.HandleCheck.bind(this);\r\n\r\n\t\tthis.maxLenght4 = 4;\r\n\t\tthis.maxLength19 = { maxLength: 19 };\r\n\t\tthis.maxLength26 = { maxLength: 26 };\r\n\t}\r\n\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Inventory Safe Detail\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t\tconst { model } = { ...this.state }\r\n\t\tvar { isBackOffice } = this.state;\r\n\t\tisBackOffice = ClientHelper.IsBackOffice();\r\n\t\tif (!isBackOffice) {\r\n\t\t\tmodel.UniqueClientId = ClientHelper.GetClientRowId();\r\n\t\t}\r\n\r\n\t\tthis.setState({ model, isBackOffice });\r\n\t\tthis.Columnlist();\r\n\r\n\r\n\t}\r\n\r\n\tColumnlist = () => {\r\n\r\n\t\tvar inventorycolumns = [];\r\n\t\tvar safeactivitycolumns = [];\r\n\t\tvar safedetailscolumns = [];\r\n\t\tvar inventorydetailscolumns = [];\r\n\t\tvar tempsamecolumns = [];\r\n\t\tconst IsBackOffice = ClientHelper.IsBackOffice();\r\n\r\n\t\tsafedetailscolumns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\twidth: 100\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Store/Safe\",\r\n\t\t\t\taccessor: \"CustomerStoreSafeName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Order Date\",\r\n\t\t\t\taccessor: \"OrderDate\",\r\n\t\t\t\ttype: GridColumnType.Date\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Serial Number\",\r\n\t\t\t\taccessor: \"CardId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Masked Card Number\",\r\n\t\t\t\taccessor: \"MaskedCardNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Received Date\",\r\n\t\t\t\taccessor: \"ReceiveDate\",\r\n\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Package No\",\r\n\t\t\t\taccessor: \"PackageNo\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Order Package No\",\r\n\t\t\t\taccessor: \"OrderPackageNo\"\r\n\t\t\t},\r\n\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Record Type\",\r\n\t\t\t\taccessor: \"RecordType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Number\",\r\n\t\t\t\taccessor: \"Id\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Person Name\",\r\n\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t},\r\n\r\n\r\n\t\t];\r\n\t\tinventorydetailscolumns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"Client\",\r\n\t\t\t\tshow: IsBackOffice,\r\n\t\t\t\twidth: 80\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Receive Date\",\r\n\t\t\t\taccessor: \"ReceiveDate\"\r\n\t\t\t}\r\n\r\n\t\t];\r\n\t\tinventorycolumns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"ClientName\",\r\n\t\t\t\tshow: IsBackOffice,\r\n\t\t\t\twidth: 80\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Store/Safe\",\r\n\t\t\t\taccessor: \"CustomerStoreSafe\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Receive Date\",\r\n\t\t\t\taccessor: \"ReceiveDate\",\r\n\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t}\r\n\r\n\t\t];\r\n\t\tsafeactivitycolumns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"ClientName\",\r\n\t\t\t\tshow: IsBackOffice,\r\n\t\t\t\twidth: 80\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Store/Safe\",\r\n\t\t\t\taccessor: \"CustomerStoreSafe\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Action Name\",\r\n\t\t\t\taccessor: \"ActionName\"\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Receive Date\",\r\n\t\t\t\taccessor: \"ReceiveDate\",\r\n\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t}\r\n\r\n\t\t];\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/PlasticType/SearchPlasticTypeList\",\r\n\t\t\t{ UniqueClientId: ClientHelper.GetClientRowId() },\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\t\tresponseData.Item.map(d => {\r\n\t\t\t\t\t\t\ttempsamecolumns.push(\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: d.PlasticName,\r\n\t\t\t\t\t\t\t\t\taccessor: d.PlasticName.trim()\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\ttempsamecolumns.push(\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tHeader: \"Total\",\r\n\t\t\t\t\t\t\t\taccessor: \"Total\"\r\n\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\ttempsamecolumns.map(d => {\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tinventorycolumns.push(\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\tHeader: d.Header,\r\n\t\t\t\t\t\t\t\t\t\taccessor: d.accessor.trim()\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t{\r\n\r\n\t\t\t\t\t\t\t\tsafeactivitycolumns.push(\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\tHeader: d.Header,\r\n\t\t\t\t\t\t\t\t\t\taccessor: d.accessor.trim()\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\t\tinventorycolumns: inventorycolumns,\r\n\t\t\t\t\t\t\tsafeactivitycolumns: safeactivitycolumns,\r\n\t\t\t\t\t\t\tsafedetailscolumns: safedetailscolumns,\r\n\t\t\t\t\t\t\tinventorydetailscolumns: inventorydetailscolumns,\r\n\t\t\t\t\t\t\tIsBackOffice: IsBackOffice\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\r\n\t}\r\n\r\n\r\n\tOpenCheckOutModal = (d) => {\r\n\r\n\t\tconst checkmodel = {\r\n\t\t\tReceiveDate: d.ReceiveDate,\r\n\t\t\tPlasticTypeName: d.InventoryOrder.Product.PlasticType.PlasticName,\r\n\t\t\tProductName: d.InventoryOrder.Product.ProductName,\r\n\t\t\tCustomerStoreSafeName: d.InventorySafeDefinition.SafeName + \" / \" + d.InventorySafeDefinition.CustomerStore.StoreName,\r\n\t\t\tPackageNo: d.InventoryOrder.PackageNo,\r\n\t\t\tOrderDate: d.InventoryOrder.OrderReceiveDate,\r\n\t\t\tRecordType: d.InventoryOrder.ReceiveRecordType.ParameterDesc,\r\n\t\t\tId: d.Id,\r\n\t\t\tCardId: d.CardId,\r\n\t\t\tMaskedCardNumber: d.MaskedCardNumber,\r\n\t\t\tCardTokenNumber: d.CardTokenNumber,\r\n\t\t\tClientName: d.InventorySafeDefinition.UniqueClient.ClientName,\r\n\t\t\tCheckType: CheckType.CheckOut,\r\n\t\t\tCheckTypeId: CheckType.CheckOutId\r\n\t\t}\r\n\t\tthis.setState({ checkmodel: checkmodel, openCheckinDialog: true, detailDialog: true });\r\n\t}\r\n\r\n\tSafeDetailActivityModal = (d) => {\r\n\r\n\t\tconst checkmodel = {\r\n\t\t\tReceiveDate: d.ReceiveDate,\r\n\t\t\tPlasticTypeName: d.InventoryOrder.Product.PlasticType.PlasticName,\r\n\t\t\tProductName: d.InventoryOrder.Product.ProductName,\r\n\t\t\tCustomerStoreSafeName: d.InventorySafeDefinition.SafeName + \" / \" + d.InventorySafeDefinition.CustomerStore.StoreName,\r\n\t\t\tPackageNo: d.InventoryOrder.PackageNo,\r\n\t\t\tOrderDate: d.InventoryOrder.OrderReceiveDate,\r\n\t\t\tRecordType: d.InventoryOrder.ReceiveRecordType.ParameterDesc,\r\n\t\t\tId: d.Id,\r\n\t\t\tCardId: d.CardId,\r\n\t\t\tMaskedCardNumber: d.MaskedCardNumber,\r\n\t\t\tCardTokenNumber: d.CardTokenNumber,\r\n\t\t\tClientName: d.InventorySafeDefinition.UniqueClient.ClientName,\r\n\t\t\tCheckType: CheckType.CheckOut,\r\n\t\t\tCheckTypeId: CheckType.CheckOutId\r\n\t\t}\r\n\t\tthis.setState({ checkmodel: checkmodel, openCheckinDialog: true, detailDialog: true });\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tthis.Columnlist();\r\n\t\tthis.setState({ isLoading: true, checkedValues: [] });\r\n\t\tconst { showMessage } = this.props;\r\n\t\tconst model = { ...this.state.model };\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/InventoryOrder/SafeDetailList\",\r\n\t\t\t{ \r\n\t\t\t\tCustomerStoreId: model.StoreSummaryId, \r\n\t\t\t\tInventorySafeDefinitionId: model.SafeSummaryId, \r\n\t\t\t\tUniqueClientId: model.UniqueClientId, \r\n\t\t\t\tLast4Digit: model.Last4Digit,\r\n\t\t\t\tClearCardNumber: model.ClearCardNumber,\r\n\t\t\t\tFromDate : model.FromDate,\r\n\t\t\t\tToDate: model.ToDate,\r\n\t\t\t\tMaskedCardNumber: model.MaskedCardNumber\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ safedetailslist: responseData.Item || [], isLoading: false, safeactivitylist: [] });\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t// showMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tStoreDetailRowSelected = (index) => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst { storelist } = this.state;\r\n\t\tconst { showMessage } = this.props;\r\n\r\n\t\tvar tlist = storelist[index];\r\n\t\ttlist[\"StatusType\"] = 1;\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/InventoryOrder/StoreSafeList\",\r\n\t\t\ttlist,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tresponseData.Item.forEach(e1 => {\r\n\t\t\t\t\te1.ColumnData.forEach(e2 => {\r\n\t\t\t\t\t\te1[e2.PlasticName.trim()] = e2.Count;\r\n\t\t\t\t\t});\r\n\t\t\t\t});\r\n\t\t\t\tthis.setState({ safelist: responseData.Item || [], isLoading: false, safedetailslist: [], safeactivitylist: [] });\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\r\n\t}\r\n\tSafeDetailRowSelected = (index) => {\r\n\t\tconst { safelist } = { ...this.state };\r\n\t\tthis.SafeDetailListFnc(safelist[index]);\r\n\t}\r\n\tSafeDetailListFnc = (item) => {\r\n\t\tthis.setState({ isLoading: true, checkedValues: [] });\r\n\t\tconst { showMessage } = this.props;\r\n\t\titem[\"StatusType\"] = 1;\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/InventoryOrder/SafeDetailList\",\r\n\t\t\titem,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ safedetailslist: responseData.Item || [], isLoading: false, safeactivitylist: [] });\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t// showMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\t// SafeActivityDetailRowSelected = (index) => {\r\n\t// \tconst { safedetailslist } = { ...this.state };\r\n\t// \tthis.SafeActivityDetailListFnc(safedetailslist[index]);\r\n\t// }\r\n\r\n\tSafeActivityDetailListFnc = (item) => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst { showMessage } = this.props;\r\n\t\titem[\"StatusType\"] = 2;\r\n\t\titem[\"InventorySafeDefinitionId\"] = item.InventorySafeDefinition.Id;\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/InventoryOrder/StoreSafeList\",\r\n\t\t\titem,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tresponseData.Item.forEach(e1 => {\r\n\t\t\t\t\te1.ColumnData.forEach(e2 => {\r\n\t\t\t\t\t\te1[e2.PlasticName.trim()] = e2.Count;\r\n\t\t\t\t\t});\r\n\t\t\t\t});\r\n\t\t\t\tthis.setState({ safeactivitylist: responseData.Item || [], isLoading: false });\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t// showMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tValueChanged = (name, value, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tif (name === \"Name\") model[\"UniqueClientId\"] = value;\r\n\t\tif (name === \"UniqueClientId\") model[\"Name\"] = value;\r\n\t\tif(name == \"StoreSummaryId\"){\r\n\t\t\tmodel[\"ReceiveDate\"]=data.ReceiveDate;\r\n\t\t\tmodel[\"UniqueClientId\"]=data.UniqueClientId;\r\n\t\t} \r\n\r\n\t\tthis.setState({ model });\r\n\t}\r\n\tHandleClear = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tmodel.EndDate = null;\r\n\t\tmodel.StartDate = null;\r\n\r\n\t\tthis.setState({ filterModel: {}, selected: null, inventorylist: [], safelist: [], storelist: [], safedetailslist: [], safeactivitylist: [], model: model });\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: \"\" })} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\tOrderEvent = () => {\r\n\t\tthis.StoreSafeClear();\r\n\t\tconst { model } = { ...this.state }\r\n\t\tmodel[\"IsNoNameProduct\"] = true;\r\n\t\tthis.setState({ openOrderDialog: true, detailDialog: true });\r\n\t}\r\n\tStoreSafeClear = () => {\r\n\t\tconst { model } = { ...this.state }\r\n\t\tmodel[\"FromInventorySafeDefinitionId\"] = null;\r\n\t\tthis.setState({ model: model });\r\n\t}\r\n\tReceiveEvent = () => {\r\n\t\tthis.StoreSafeClear();\r\n\t\tthis.setState({ openReceiveDialog: true, detailDialog: true });\r\n\r\n\t}\r\n\tTransferEvent = (item) => {\r\n\r\n\t\tif (item.length > 0) {\r\n\t\t\tconst { model } = { ...this.state }\r\n\r\n\t\t\tmodel[\"FromInventorySafeDefinitionId\"] = item[0].InventorySafeDefinitionId;\r\n\t\t\tthis.setState({ openTransferDialog: true, detailDialog: true, transferitem: item, model: model });\r\n\t\t} else {\r\n\t\t\tconst { showMessage } = this.props;\r\n\t\t\tshowMessage(\"error\", \"Error\", \"Please Select Item from Safe Detail List!\");\r\n\t\t}\r\n\r\n\t}\r\n\tCheckinEvent = (d) => {\r\n\t\tthis.StoreSafeClear();\r\n\r\n\t\tif (d.length > 0) {\r\n\t\t\tconst checkmodel = {\r\n\t\t\t\tReceiveDate: d[0].ReceiveDate,\r\n\t\t\t\tPlasticTypeName: d[0].PlasticType.PlasticName,\r\n\t\t\t\tCustomerStoreSafeName: d[0].InventorySafeDefinition.SafeName + \" / \" + d[0].InventorySafeDefinition.CustomerStore.StoreName,\r\n\t\t\t\tPackageNo: d[0].InventoryOrder.PackageNo,\r\n\t\t\t\tOrderDate: d[0].InventoryOrder.OrderReceiveDate,\r\n\t\t\t\tRecordType: d[0].InventoryOrder.ReceiveRecordType.ParameterDesc,\r\n\t\t\t\tId: d[0].Id,\r\n\t\t\t\tClientName: d[0].InventorySafeDefinition.UniqueClient.ClientName,\r\n\t\t\t\tCheckType: CheckType.CheckIn,\r\n\t\t\t\tCheckTypeId: CheckType.CheckInId\r\n\r\n\t\t\t}\r\n\t\t\tthis.setState({ openCheckinDialog: true, detailDialog: true, checkmodel: checkmodel });\r\n\t\t}\r\n\t\telse {\r\n\t\t\tconst { showMessage } = this.props;\r\n\t\t\tshowMessage(\"error\", \"Error\", \"Please Safe Detail List Select Item !\");\r\n\t\t}\r\n\t}\r\n\thandleClose = () => {\r\n\r\n\t\tthis.setState({ detailDialog: false, openCheckinDialog: false, openTransferDialog: false, openReceiveDialog: false, openOrderDialog: false });\r\n\t}\r\n\tHandleCheck = (e, x) => {\r\n\r\n\t\tthis.setState(state => ({\r\n\t\t\tcheckedValues: state.checkedValues.includes(x)\r\n\t\t\t\t? state.checkedValues.filter(c => c !== x)\r\n\t\t\t\t: [...state.checkedValues, x]\r\n\t\t}));\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { alert, model, safeactivitylist, safelist, storelist, selected: selected, safedetailslist, safeactivitycolumns, inventorycolumns, safedetailscolumns, checkedValues, isLoading, IsBackOffice } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.ValueChanged}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={ClientHelper.IsClient()}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tDefaultIndex={ClientHelper.IsClient() ? 0 : -1}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t 0 && model.StoreSummaryId == undefined ? \"/prepaidapi/v1.0/InventoryOrder/StoreSafeList\" : \"\" ) : (model.StoreSummaryId == undefined ? \"/prepaidapi/v1.0/InventoryOrder/StoreSafeList\" : \"\")}\r\n\t\t\t\t\t\t\t\t\t\t\t\tParameter={ { UniqueClientId: model.UniqueClientId } }\r\n\t\t\t\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"CustomerStoreId\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tRenderItem={d => `${d.ClientName} - ${d.CustomerStoreSafe}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={model.StoreSummaryId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.ValueChanged}\r\n\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t 0 ? \"/prepaidapi/v1.0/InventoryOrder/StoreSafeList\" : \"\" }\r\n\t\t\t\t\t\t\t\t\t\t\t\tParameter={ { UniqueClientId: model.UniqueClientId, StatusType: 1, CustomerStoreId: model.StoreSummaryId, ReceiveDate: model.ReceiveDate } }\r\n\t\t\t\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"InventorySafeDefinitionId\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tRenderItem={d => `${d.ClientName} - ${d.CustomerStoreSafe}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={model.SafeSummaryId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.ValueChanged}\r\n\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\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
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tReceiveDate: d.ReceiveDate,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPlasticTypeName: d.PlasticType.PlasticName,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tProductName: d.Product.ProductName,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCustomerStoreSafeName: d.InventorySafeDefinition.SafeName + \" / \" + d.InventorySafeDefinition.CustomerStore.StoreName,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPackageNo: d.InventoryOrder.PackageNo,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tOrderPackageNo: d.InventoryOrder.OrderPackageNo,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tOrderDate: d.InventoryOrder.OrderReceiveDate,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tRecordType: d.InventoryOrder.ReceiveRecordType == null ? \"\" : d.InventoryOrder.ReceiveRecordType.ParameterDesc,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tId: d.Id,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tClientName: d.InventorySafeDefinition.UniqueClient.ClientName,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tStatusType: 2,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCardId: d.CardId,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMaskedCardNumber: d.MaskedCardNumber,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCardTokenNumber: d.CardTokenNumber,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tInventorySafeDefinitionId: d.InventorySafeDefinition.Id\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tColumns={safedetailscolumns}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tSelectedIndex={selected}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tShowPagination={true}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tPageSize={100}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// RowSelected={this.SafeActivityDetailRowSelected}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t{this.state.openOrderDialog == true ?\r\n\t\t\t\t\t\t\t
Order Card
\r\n\t\t\t\t\t\t\t: null}\r\n\t\t\t\t\t\t{this.state.openReceiveDialog == true ?\r\n\t\t\t\t\t\t\t
Receive
\r\n\t\t\t\t\t\t\t: null}\r\n\t\t\t\t\t\t{this.state.openTransferDialog == true ?\r\n\t\t\t\t\t\t\t
Transfer
\r\n\t\t\t\t\t\t\t: null}\r\n\t\t\t\t\t\t{this.state.openCheckinDialog == true ?\r\n\t\t\t\t\t\t\t
{this.state.checkmodel.CheckType}
\r\n\t\t\t\t\t\t\t: null}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t{this.state.openOrderDialog == true ?\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t: null}\r\n\t\t\t\t\t\t{this.state.openReceiveDialog == true ?\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t: null}\r\n\t\t\t\t\t\t{this.state.openTransferDialog == true ?\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t: null}\r\n\t\t\t\t\t\t{this.state.openCheckinDialog == true ?\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t : null}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nInventorySafeDetail.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(InventorySafeDetail, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nclass InventorySafeManagement extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.initialModel = {\r\n\t\t\tUniqueClientId: ClientHelper.IsBackOffice() ? -2 : ClientHelper.GetClientRowId()\r\n\t\t};\r\n\t\tthis.safecolumns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"CustomerName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Store\",\r\n\t\t\t\taccessor: \"CustomerStoreName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Safe Name\",\r\n\t\t\t\taccessor: \"SafeName\"\r\n\t\t\t}\r\n\r\n\t\t];\r\n\t\tthis.emptyObject = {}\r\n\t\tthis.sortedCustomerName = { Member: \"Name\" };\r\n\t\tthis.sortedCustomerStore = { Member: \"StoreName\" };\r\n\t\tthis.parameterCustomerStore = {};\r\n\r\n\t\tthis.state = {\r\n\t\t\tsafelist: [],\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tselected: null,\r\n\t\t\tisLoading: false,\r\n\t\t\tIsBackOffice: false,\r\n\t\t\tisOpenDialog: false,\r\n\t\t\tdetailDialog: false,\r\n\t\t\tvModel: {}\r\n\t\t};\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Inventory Safe Management\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t}\r\n\r\n\tHandleChange = (name, value) => {\r\n\r\n\t\tconst model = this.state.model;\r\n\t\tmodel[name] = value;\r\n\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tconst { safelist } = this.state;\r\n\r\n\t\tthis.setState({ model: safelist[index], selected: index });\r\n\t}\r\n\tDeleteConfirm = () => {\r\n\t\tconst { showConfirmMessage } = this.props;\r\n\t\tshowConfirmMessage(\"warning\", \"Warning\", \"Are you sure want to delete ?\", this.Delete);\r\n\t}\r\n\r\n\tGetParameterCustomerStore = () => {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tthis.parameterCustomerStore.Id = model.UniqueClientId;\r\n\r\n\t\treturn this.parameterCustomerStore;\r\n\t}\r\n\tSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tconst { model } = this.state;\r\n\t\tconst { showMessage } = this.props;\r\n\t\tmodel.CustomerStoreId = ClientHelper.IsStore() ? ClientHelper.GetStoreId() : model.CustomerStoreId;\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/InventorySafeDefinition/Search\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ safelist: responseData.Item || [], isLoading: false });\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, safelist: [], selected: null });\r\n\t}\r\n\tUpdate = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tconst { model } = this.state;\r\n\t\tconst { showMessage } = this.props;\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/InventorySafeDefinition/Update\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"success\", \"Operation is successfully!\");\r\n\t\t\t\tthis.Clear();\r\n\t\t\t\tthis.Search();\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tDelete = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tconst { model } = this.state;\r\n\t\tconst { showMessage } = this.props;\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/InventorySafeDefinition/Delete\",\r\n\t\t\t{\r\n\t\t\t\t\"Id\": model.Id\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"success\", \"Operation is successfully!\");\r\n\t\t\t\tthis.Clear();\r\n\t\t\t\tthis.Search();\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tSubmit = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tconst { model } = this.state;\r\n\t\tconst { showMessage } = this.props;\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/InventorySafeDefinition/Insert\",\r\n\t\t\tmodel\r\n\t\t\t,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"success\", \"Operation is successfully!\");\r\n\t\t\t\tthis.Clear();\r\n\t\t\t\tthis.Search();\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tValidate() {\r\n\t\tconst { model } = { ...this.state };\r\n\t\tconst { showMessageNode } = this.props;\r\n\t\tvar messages = [];\r\n\t\tconst vModel = { ...this.state.vModel };\r\n\r\n\t\tif (model.UniqueClientId == -2) {\r\n\t\t\tmessages.push(\"Client can not be null.\");\r\n\t\t\tvModel.UniqueClientId = true;\r\n\r\n\t\t} else {\r\n\t\t\tvModel.UniqueClientId = false;\r\n\t\t}\r\n\r\n\t\tif (!model.SafeName) {\r\n\t\t\tmessages.push(\"Safe Name can not be null.\");\r\n\t\t\tvModel.SafeName = true;\r\n\r\n\t\t} else {\r\n\t\t\tvModel.SafeName = false;\r\n\t\t}\r\n\r\n\r\n\t\tif (!model.CustomerStoreId) {\r\n\t\t\tmessages.push(\" Store Name can not be null.\");\r\n\t\t\tvModel.CustomerStoreId = true;\r\n\r\n\t\t} else {\r\n\t\t\tvModel.CustomerStoreId = false;\r\n\t\t}\r\n\t\tthis.setState({ vModel });\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tif (messages.length > 9) {\r\n\t\t\t\tvar moreWarn = messages.length - 8;\r\n\t\t\t\tmessages = messages.slice(0, 8);\r\n\t\t\t\tmessages.push(\"And \" + moreWarn + \" more warnings\");\r\n\t\t\t}\r\n\t\t\tshowMessageNode(\"error\", \"Please Fill Required Fields\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\thandleClose = () => {\r\n\r\n\t\tthis.setState({ detailDialog: false, openCheckinDialog: false, openTransferDialog: false, openReceiveDialog: false, openOrderDialog: false });\r\n\t}\r\n\trender() {\r\n\t\tconst { classes, Disabled } = this.props;\r\n\t\tconst { alert, model, selected, safecolumns, safelist, isLoading, detailDialog, IsBackOffice, vModel } = this.state;\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nInventorySafeManagement.propTypes = {\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default InventorySafeManagement;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent.jsx\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass LimitDefinition extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.initialModel = {\r\n\t\t\tUniqueClientId: ClientHelper.IsBackOffice() ? -2 : ClientHelper.GetClientRowId()\r\n\t\t};\r\n\t\tthis.limitdefinationcolumns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date\",\r\n\t\t\t\taccessor: \"LimitDefinitionDate\",\r\n\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"UniqueClient.ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"LimitLevel\",\r\n\t\t\t\taccessor: \"LimitLevelType.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Product Based Max Order\",\r\n\t\t\t\taccessor: \"ProductBasedMaximumOrder\"\r\n\t\t\t}\r\n\t\t\t,\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Maximum Order-Daily\",\r\n\t\t\t\taccessor: \"MaximumOrderDaily\"\r\n\t\t\t}\r\n\t\t\t, {\r\n\t\t\t\tHeader: \"Maximum Order-Weekly\",\r\n\t\t\t\taccessor: \"MaximumOrderWeekly\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Safe Level Limit For Order\",\r\n\t\t\t\taccessor: \"SafeLevelLimit\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Maximum Package Size\",\r\n\t\t\t\taccessor: \"MaximumPackageSize\"\r\n\t\t\t}\r\n \r\n\r\n\t\t];\r\n\t\tthis.emptyObject = {}\r\n\t\tthis.sortedCustomerName = { Member: \"Name\" };\r\n\t\tthis.sortedCustomerStore = { Member: \"StoreName\" };\r\n\t\tthis.parameterCustomerStore = {};\r\n\r\n\t\tthis.state = {\r\n\t\t\tsafelist: [],\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tselected: null,\r\n\t\t\tisLoading: false,\r\n\t\t\tIsBackOffice: false,\r\n\t\t\tisOpenDialog: false,\r\n\t\t\tdetailDialog: false,\r\n\t\t\tvModel:{}\r\n\t\t};\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Limit Definition\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\r\n\t\tconst model = this.state.model;\r\n\t\tmodel[name] = value;\r\n\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tconst { safelist } = this.state;\r\n\r\n\t\tthis.setState({ model: safelist[index], selected: index });\r\n\t}\r\n\tDeleteConfirm = () => {\r\n\t\tconst { showConfirmMessage } = this.props;\r\n\t\tshowConfirmMessage(\"warning\", \"Warning\", \"Are you sure want to delete ?\", this.Delete);\r\n\t}\r\n\r\n\tGetParameterCustomerStore = () => {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tthis.parameterCustomerStore.Id = model.UniqueClientId;\r\n\r\n\t\treturn this.parameterCustomerStore;\r\n\t}\r\n\tSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tconst { model } = this.state;\r\n\t\tconst { showMessage } = this.props;\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/InventoryLimitDefinition/Search\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ safelist: responseData.Item || [], isLoading: false });\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, safelist: [], selected: null });\r\n\t}\r\n\tUpdate = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tconst { model } = this.state;\r\n\t\tconst { showMessage } = this.props;\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/InventoryLimitDefinition/Update\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"success\", \"Operation is successfully!\");\r\n\t\t\t\tthis.Clear();\r\n\t\t\t\tthis.Search();\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tDelete = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tconst { model } = this.state;\r\n\t\tconst { showMessage } = this.props;\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/InventoryLimitDefinition/Delete\",\r\n\t\t\t{\r\n\t\t\t\t\"Id\": model.Id\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"success\", \"Operation is successfully!\");\r\n\t\t\t\tthis.Clear();\r\n\t\t\t\tthis.Search();\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tSubmit = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tconst { model } = this.state;\r\n\t\tconst { showMessage } = this.props;\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/InventoryLimitDefinition/Insert\",\r\n\t\t\tmodel\r\n\t\t\t,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"success\", \"Operation is successfully!\");\r\n\t\t\t\tthis.Clear();\r\n\t\t\t\tthis.Search();\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tshowMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\r\n\tValidate() {\r\n\t\tconst { model } = { ...this.state };\r\n\t\tconst { showMessageNode } = this.props;\r\n\t\tvar messages = [];\r\n\t\tconst vModel = { ...this.state.vModel };\r\n\r\n\t\tif (model.UniqueClientId == -2) {\r\n\t\t\tmessages.push(\"Client can not be null.\");\r\n\t\t\t\tvModel.UniqueClientId = true;\r\n\t\t} else{\r\n\t\t\tvModel.UniqueClientId = false;\r\n\t\t}\r\n\r\n\t\tif (!model.LimitLevelTypeId) {\r\n\t\t\tmessages.push(\"Limit Level can not be null.\");\r\n\t\t\tvModel.LimitLevelTypeId = true;\r\n\t\t} else{\r\n\t\t\tvModel.LimitLevelTypeId = false;\r\n\t\t}\r\n\t\tif (!model.ProductBasedMaximumOrder) {\r\n\t\t\tmessages.push(\"Product Based Maximum Order can not be null.\");\r\n\t\t\tvModel.ProductBasedMaximumOrder = true;\r\n\t\t} else{\r\n\t\t\tvModel.ProductBasedMaximumOrder = false;\r\n\t\t}\r\n\t\tif (!model.SafeLevelLimit) {\r\n\t\t\tmessages.push(\"Safe Level Limit for Order can not be null.\");\r\n\t\t\tvModel.SafeLevelLimit = true;\r\n\t\t} else{\r\n\t\t\tvModel.SafeLevelLimit = false;\r\n\t\t}\r\n\t\tif (!model.MaximumOrderWeekly) {\r\n\t\t\tmessages.push(\"Maximum Order Weekly can not be null.\");\r\n\t\t\tvModel.MaximumOrderWeekly = true;\r\n\t\t} else{\r\n\t\t\tvModel.MaximumOrderWeekly = false;\r\n\t\t}\r\n\t\tif (!model.MaximumOrderDaily) {\r\n\t\t\tmessages.push(\"Maximum Order Daily can not be null.\");\r\n\t\t\tvModel.MaximumOrderDaily = true;\r\n\t\t} else{\r\n\t\t\tvModel.MaximumOrderDaily = false;\r\n\t\t}\r\n\t\tif (!model.MaximumPackageSize) {\r\n\t\t\tmessages.push(\"Maximum Package Size can not be null.\");\r\n\t\t\tvModel.MaximumPackageSize = true;\r\n\t\t} else{\r\n\t\t\tvModel.MaximumPackageSize = false;\r\n\t\t}\r\n\t\tthis.setState({ vModel });\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tif (messages.length > 9) {\r\n\t\t\t\tvar moreWarn = messages.length - 8;\r\n\t\t\t\tmessages = messages.slice(0, 8);\r\n\t\t\t\tmessages.push(\"And \" + moreWarn + \" more warnings\");\r\n\t\t\t}\r\n\t\t\tshowMessageNode(\"error\", \"Please Fill Required Fields\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\thandleClose = () => {\r\n\r\n\t\tthis.setState({ detailDialog: false, openCheckinDialog: false, openTransferDialog: false, openReceiveDialog: false, openOrderDialog: false });\r\n\t}\r\n\r\n\r\n\trender() {\r\n\t\tconst { classes, Disabled } = this.props;\r\n\t\tconst { alert, model, selected, limitdefinationcolumns, safelist, isLoading, detailDialog, IsBackOffice,vModel } = this.state;\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.ValueChanged}\r\n\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\tAll\r\n\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.func,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default LimitDefinition;","import sweetAlertStyle from \"assets/jss/material-dashboard-pro-react/views/sweetAlertStyle.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport { GenericAlert, GenericCheckInput, GenericExpansionPanel, GenericGrid, GenericSelectInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { InventoryOrderStatusType } from \"views/Constants/Constant\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\n\r\nconst styles = ({\r\n\t...sweetAlertStyle\r\n});\r\nclass NewCardOrder extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tvar userJson = localStorage.getItem(\"user\");\r\n\t\tvar user = userJson ? JSON.parse(userJson) : null;\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tClientTypeId: (user && user.UniqueClient && user.UniqueClient.ClientTypeId) || null,\r\n\t\t\tisBackOffice: true,\r\n\t\t\tOrderStatusName: InventoryOrderStatusType.Created,\r\n\t\t\tInventorySafeDefinitionId: 0,\r\n\t\t\tQuantity: null\r\n\t\t};\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\tcardorderlist: [],\r\n\t\t\ttotalresult: {},\r\n\t\t\tcheckedValues: [],\r\n\t\t\tselected: null,\r\n\t\t\tisLoading: false,\r\n\t\t\talert: \"\",\r\n\t\t\tIsUpdate: false,\r\n\t\t\tvModel: {},\r\n\t\t};\r\n\t\tthis.HandleCheck = this.HandleCheck.bind(this);\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\twidth: 60\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Store/Safe\",\r\n\t\t\t\taccessor: \"CustomerStoreSafeName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Product Name\",\r\n\t\t\t\taccessor: \"ProductName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Order Status\",\r\n\t\t\t\taccessor: \"OrderStatusType\"\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Quantity\",\r\n\t\t\t\taccessor: \"Quantity\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Design Name\",\r\n\t\t\t\taccessor: \"PlasticTypeName\"\r\n\t\t\t},\r\n\r\n\t\t\t// {\r\n\t\t\t// \tHeader: \"Ship Via\",\r\n\t\t\t// \taccessor: \"ShipViaName\"\r\n\t\t\t// },\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"New Card Order\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t}\r\n\tValueChanged = (name, value, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tif (name === \"Name\")\r\n\t\t\tmodel[\"UniqueClientId\"] = value;\r\n\r\n\t\tif (name === \"UniqueClientId\")\r\n\t\t\tmodel[\"Name\"] = value;\r\n\r\n\t\tif (name == \"ProductId\")\r\n\t\t\tmodel[\"PlasticTypeId\"] = data.PlasticTypeId;\r\n\r\n\t\tif (name == \"QuantityId\")\r\n\t\t\tmodel.Quantity = data.ParameterValue;\r\n\r\n\t\tthis.setState({ model });\r\n\t}\r\n\tHandleCheck = (e, x) => {\r\n\r\n\t\tthis.setState(state => ({\r\n\t\t\tcheckedValues: state.checkedValues.includes(x)\r\n\t\t\t\t? state.checkedValues.filter(c => c !== x)\r\n\t\t\t\t: [...state.checkedValues, x]\r\n\t\t}));\r\n\t}\r\n\r\n\tOrderCardConfrim = () => {\r\n\t\tthis.setState({ isLoading: true, alert: null });\r\n\r\n\t\tif (this.state.checkedValues.length > 0) {\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/prepaidapi/v1.0/InventoryOrder/InventoryCardChangeStatusUpdate\",\r\n\t\t\t\tthis.state.checkedValues,\r\n\t\t\t\t(responseData) => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// var listItems = [];\r\n\t\t\t\t\t// if (responseData.Item != null) {\r\n\t\t\t\t\t// \tlistItems = responseData.Item.map((number) =>\r\n\r\n\t\t\t\t\t// \t\t
\r\n\t\t\t\t\t// \t\t\t{number.OrderReceiveDate == null ?\r\n\t\t\t\t\t// \t\t\t\tnumber.CustomerStoreSafeName + \"==>\" + number.ProductName + \"==>\" + Formatter.FormatDate(number.OrderReceiveDate) + \"==>Error\"\r\n\t\t\t\t\t// \t\t\t\t:\r\n\t\t\t\t\t// \t\t\t\tnumber.CustomerStoreSafeName + \"==>\" + number.ProductName + \"==>\" + Formatter.FormatDate(number.OrderReceiveDate) + \"==>Succeses\"\r\n\t\t\t\t\t// \t\t\t}\r\n\t\t\t\t\t// \t\t
\r\n\t\t\t\t\t// \t);\r\n\t\t\t\t\t// }\r\n\t\t\t\t},\r\n\t\t\t\tnull, null, null, 200000000\r\n\t\t\t);\r\n\r\n\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\tthis.props.showMessage(\"success\", \"Order request has been added to the queue\");\r\n\t\t\tthis.Clear();\r\n\t\t\tthis.props.clearlist();\r\n\t\t} else {\r\n\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", \"Please select ordered cards !\");\r\n\t\t\tthis.setState({ isLoading: false });\r\n\t\t}\r\n\r\n\t}\r\n\r\n\tSubmit = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tconst { model } = this.state;\r\n\t\tconst { showMessage } = this.props;\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/InventoryOrder/InsertorUpdateInventoryOrder\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Operation is successfully!\");\r\n\t\t\t\tthis.Clear();\r\n\t\t\t\tthis.Search();\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t// showMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\r\n\t}\r\n\tSearch = () => {\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tconst { model } = this.state;\r\n\t\tconst { showMessage } = this.props;\r\n\t\tmodel.OrderStatusName = InventoryOrderStatusType.Created;\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/InventoryOrder/Search\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ cardorderlist: responseData.Item || [], isLoading: false });\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t// showMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tDeleteConfirm = () => {\r\n\t\tconst { showConfirmMessage } = this.props;\r\n\t\tshowConfirmMessage(\"warning\", \"Warning\", \"Are you sure want to delete ?\", this.Delete);\r\n\t}\r\n\tUpdate = () => {\r\n\r\n\t\tconst { model } = this.state;\r\n\t\tconst { showMessage } = this.props;\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/InventoryOrder/InsertorUpdateInventoryOrder\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Operation is successfully!\");\r\n\t\t\t\tthis.Clear();\r\n\t\t\t\tthis.Search();\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t// showMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\r\n\t}\r\n\tDelete = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/InventoryOrder/Delete\",\r\n\t\t\t{\r\n\t\t\t\t\"Id\": model.Id\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Operation is successfully!\");\r\n\t\t\t\tthis.Clear();\r\n\t\t\t\tthis.Search();\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tClear = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tmodel.UniqueClientId = this.initialModel.UniqueClientId;\r\n\r\n\t\tthis.initialModel.InventorySafeDefinitionId = ClientHelper.IsStore() ? model.InventorySafeDefinitionId : 0;\r\n\t\tthis.setState({ model: this.initialModel, cardorderlist: [], selected: null, checkedValues: [], totalresult: {}, IsUpdate: false });\r\n\t}\r\n\tValidate() {\r\n\t\tconst { model } = this.state;\r\n\t\tvar messages = [];\r\n\t\tconst vModel = { ...this.state.vModel };\r\n\r\n\t\tif (!model.InventorySafeDefinitionId) {\r\n\t\t\tmessages.push(\"Store / Safe can not be null.\");\r\n\t\t\tvModel.InventorySafeDefinitionId = true;\r\n\t\t} else {\r\n\t\t\tvModel.InventorySafeDefinitionId = false;\r\n\t\t}\r\n\r\n\r\n\t\tif (model.ProductId == null) {\r\n\t\t\tmessages.push(\"Product Name can not be null.\");\r\n\t\t\tvModel.ProductId = true;\r\n\r\n\t\t} else {\r\n\t\t\tvModel.ProductId = false;\r\n\t\t}\r\n\t\tif (model.Quantity == null) {\r\n\t\t\tmessages.push(\"Quantity can not be null.\");\r\n\t\t\tvModel.Quantity = true;\r\n\r\n\t\t} else {\r\n\t\t\tvModel.Quantity = false;\r\n\t\t}\r\n\r\n\t\tthis.setState({ vModel });\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tif (messages.length > 9) {\r\n\t\t\t\tvar moreWarn = messages.length - 8;\r\n\t\t\t\tmessages = messages.slice(0, 8);\r\n\t\t\t\tmessages.push(\"And \" + moreWarn + \" more warnings\");\r\n\t\t\t}\r\n\t\t\tthis.props.showMessageNode(\"error\", \"Please Fill Required Fields\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\tErrorSendCallback(error) {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert:\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t});\r\n\t}\r\n\tShowConfirmMessage(type, title, message, onConfirm) {\r\n\t\tthis.setState({\r\n\t\t\talert:\r\n\t\t\t\t this.setState({ alert: null, isLoading: false })}\r\n\t\t\t\t\tOnConfirm={onConfirm}\r\n\t\t\t\t/>,\r\n\t\t\tisLoading: true\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, cardorderlist, checkedValues, IsUpdate, vModel } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\r\n\t\t\t\t{this.state.alert}\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.ValueChanged}\r\n\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={ClientHelper.IsClient()}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDefaultIndex={ClientHelper.IsClient() ? 0 : -1}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t 0 ? \"/prepaidapi/v1.0/InventoryOrder/GetAllStoreBySafe\" : \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"SafeId\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tTextValueMember=\"CustomerStoreSafeName\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={model.InventorySafeDefinitionId}\r\n\t\t\t\t\t\t\t\t\t\t\t\tParameter={ {UniqueClientId : model.UniqueClientId, IsNoNameProduct: true}}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.ValueChanged}\r\n\t\t\t\t\t\t\t\t\t\t\t\tSorted={{ Member: \"CustomerStoreSafeName\" }}\r\n\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.InventorySafeDefinitionId}\r\n\t\t\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\t\t\tDefaultIndex={ClientHelper.IsStore() ? 0 : -1}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t 0 ? \"/prepaidapi/v1.0/Product/Search\" : \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\tParameter={ {UniqueClientId : model.UniqueClientId, IsNoNameProduct: true}}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"Id\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tTextValueMember=\"ProductName\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={model.ProductId}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.ValueChanged}\r\n\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.ProductId}\r\n\t\t\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tActions: (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t c.Id == d.InventoryOrder.Id).length > 0}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={(e) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.HandleCheck(e, d.InventoryOrder);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={d.InventoryOrder.OrderStatusType == \"Ordered\" || d.InventoryOrder.OrderStatus.ParameterDesc == \"OrderPreparing\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCustomerStoreSafeName: d.InventoryOrder.InventorySafeDefinition.SafeName + \" / \" + d.InventoryOrder.InventorySafeDefinition.CustomerStore.StoreName,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tId: d.Id,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tProductName: d.InventoryOrder.Product.ProductName,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tProductId: d.InventoryOrder.Product.Id,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tOrderStatusType: d.InventoryOrder.OrderStatus.ParameterDesc,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPlasticTypeName: d.InventoryOrder.Product.PlasticType.PlasticName,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tQuantity: d.InventoryOrder.Quantity\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tColumns={this.columns}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tRowSelected={index => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.setState({ model: cardorderlist[index].InvertoryOrder, selected: index, openOrderDialog: true, IsUpdate: true });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar tt = cardorderlist[index];\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar model = tt.InventoryOrder;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmodel[\"PlasticTypeId\"] = cardorderlist[index].InventoryOrder.Product.PlasticTypeId;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.setState({ model });\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nNewCardOrder.propTypes = {\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any,\r\n\tclasses: PropTypes.object,\r\n\r\n\r\n};\r\n\r\nexport default withArtifex(NewCardOrder, styles);","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport sweetAlertStyle from \"assets/jss/material-dashboard-pro-react/views/sweetAlertStyle.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport { GenericAlert, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { InventoryOrderStatusType } from \"views/Constants/Constant\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\n\r\nconst styles = ({\r\n\t...sweetAlertStyle\r\n});\r\nclass ReceivedCardConfirmation extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tvar userJson = localStorage.getItem(\"user\");\r\n\t\tvar user = userJson ? JSON.parse(userJson) : null;\r\n\t\tthis.initialModel = {\r\n\t\t\tisBackOffice: true,\r\n\t\t\tOrderStatusName: InventoryOrderStatusType.Ordered\r\n\t\t};\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\treceivelist: [],\r\n\t\t\ttotalresult: {},\r\n\t\t\tcheckedValues: [],\r\n\t\t\tselected: null,\r\n\t\t\tisLoading: false,\r\n\t\t\topenReceiveDialog: false,\r\n\t\t\talert: \"\",\r\n\t\t\tvModel: {},\r\n\t\t};\r\n\r\n\t\tthis.HandleCheck = this.HandleCheck.bind(this);\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Store/Safe\",\r\n\t\t\t\taccessor: \"CustomerStoreSafeName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Record Type\",\r\n\t\t\t\taccessor: \"RecordType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Product Name\",\r\n\t\t\t\taccessor: \"ProductName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Package No\",\r\n\t\t\t\taccessor: \"PackageNo\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Quantity\",\r\n\t\t\t\taccessor: \"Quantity\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Product Code\",\r\n\t\t\t\taccessor: \"PlasticTypeName\"\r\n\t\t\t},\r\n\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Received Card Confirmation\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t\tconst { model } = { ...this.state }\r\n\t\tmodel.isBackOffice = ClientHelper.IsBackOffice();\r\n\t\tif (!model.isBackOffice) {\r\n\t\t\tmodel.UniqueClientId = ClientHelper.GetClientRowId();\r\n\t\t\tmodel.Name = model.UniqueClientId;\r\n\t\t}\r\n\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tOpenReceiveModal = (item) => {\r\n\t\tthis.setState({ openReceiveDialog: true })\r\n\t}\r\n\r\n\tValueChanged = (name, value, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tif (name === \"Name\") model[\"UniqueClientId\"] = value;\r\n\t\tif (name === \"UniqueClientId\") model[\"Name\"] = value;\r\n\r\n\t\tthis.setState({ model });\r\n\t}\r\n\tHandleCheck = (e, x) => {\r\n\r\n\t\tthis.setState(state => ({\r\n\t\t\tcheckedValues: state.checkedValues.includes(x)\r\n\t\t\t\t? state.checkedValues.filter(c => c !== x)\r\n\t\t\t\t: [...state.checkedValues, x]\r\n\t\t}));\r\n\t\tthis.setState({ openOrderDialog: true });\r\n\r\n\t}\r\n\r\n\tErrorSendCallback(error) {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t}\r\n\tValidate() {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { showMessageNode } = this.props;\r\n\t\tconst vModel = { ...this.state.vModel };\r\n\r\n\t\tvar messages = [];\r\n\r\n\t\tif (model.OldQuantity != model.Quantity) {\r\n\t\t\tmessages.push(\"Old Quantity With New Quantity Not Equal!\");\r\n\t\t\tvModel.OldQuantity = true;\r\n\t\t\tvModel.Quantity = true;\r\n\r\n\t\t} else {\r\n\t\t\tvModel.OldQuantity = false;\r\n\t\t\tvModel.Quantity = false;\r\n\r\n\t\t}\r\n\t\tif (model.OldQuantity != (model.EndToNumber - model.StartingFromNumber)) {\r\n\t\t\tmessages.push(\"The difference between End To Number and Starting From Number is not equal to Quantity!\");\r\n\t\t\tvModel.EndToNumber = true;\r\n\t\t\tvModel.StartingFromNumber = true;\r\n\t\t\tvModel.Quantity = true;\r\n\t\t} else {\r\n\t\t\tvModel.EndToNumber = false;\r\n\t\t\tvModel.StartingFromNumber = false;\r\n\t\t\tvModel.Quantity = false;\r\n\r\n\t\t}\r\n\t\tif (model.OrderPackageNo == null || model.OrderPackageNo ==\"\") {\r\n\t\t\tmessages.push(\"Order Package No can not be null.\");\r\n\t\t\tvModel.OrderPackageNo = true;\r\n\r\n\t\t} else{\r\n\t\t\tvModel.OrderPackageNo = false;\r\n\t\t}\r\n\t\tthis.setState({ vModel});\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tif (messages.length > 9) {\r\n\t\t\t\tvar moreWarn = messages.length - 8;\r\n\t\t\t\tmessages = messages.slice(0, 8);\r\n\t\t\t\tmessages.push(\"And \" + moreWarn + \" more warnings\");\r\n\t\t\t}\r\n\t\t\tthis.props.showMessageNode(\"error\", \"Please Fill Required Fields\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tReceiceConfrim = () => {\r\n\r\n\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst { model } = this.state;\r\n\t\tconst { showMessage } = this.props;\r\n\t\tif (model.OldQuantity == model.Quantity) {\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/prepaidapi/v1.0/InventoryOrder/InventoryOrderAcceptUpdate\",\r\n\t\t\t\tmodel,\r\n\t\t\t\t(responseData) => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.props.showMessage(\"success\", \" Operation completed successfully!!\");\r\n\t\t\t\t\tthis.Clear();\r\n\t\t\t\t\tthis.Search();\r\n\t\t\t\t\tthis.props.clearlist();\r\n\r\n\t\t\t\t},\r\n\t\t\t\t(error) => {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Inventory Order Accept Update Error!\");\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t} else {\r\n\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Old Quantity With New Quantity Not Equal!\");\r\n\t\t\tthis.setState({ isLoading: false });\r\n\t\t}\r\n\r\n\t}\r\n\tSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tconst { model } = this.state;\r\n\t\tconst { showMessage } = this.props;\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/InventoryOrder/Search\",\r\n\t\t\t{OrderStatusName : InventoryOrderStatusType.Ordered},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ receivelist: responseData.Item || [], isLoading: false });\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t// showMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\r\n\r\n\tClear = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tmodel.UniqueClientId = this.initialModel.UniqueClientId;\r\n\t\tthis.setState({ model: this.initialModel, receivelist: [], selected: null, checkedValues: [], totalresult: {} });\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert:\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t});\r\n\t}\r\n\tShowConfirmMessage(type, title, message, onConfirm) {\r\n\t\tthis.setState({\r\n\t\t\talert:\r\n\t\t\t\t this.setState({ alert: null, isLoading: false })}\r\n\t\t\t\t\tOnConfirm={onConfirm}\r\n\t\t\t\t/>,\r\n\t\t\tisLoading: true\r\n\t\t});\r\n\t}\r\n\thandleClose = () => {\r\n\r\n\t\tthis.setState({\r\n\t\t\topenReceiveDialog: false\r\n\t\t});\r\n\t}\r\n\tCardIdGet = (temp) => {\r\n\r\n\t\tconst { model } = this.state.model;\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Card/GetInventoryCardorderId\",\r\n\t\t\t{\r\n\t\t\t\t\"CardOrderId\": temp.Id,\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tvar tt = responseData.Item;\r\n\t\t\t\ttemp[\"StartingFromNumber\"] = responseData.Item.CardOrderId;\r\n\t\t\t\tthis.setState({ model: temp });\r\n\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t// showMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\r\n\r\n\t}\r\n\trender() {\r\n\t\tconst { model, receivelist, selected, checkedValues, vModel } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{this.state.alert}\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tRecordType: d.InventoryOrder.ReceiveRecordType == null ? \"\" : d.InventoryOrder.ReceiveRecordType.ParameterDesc,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPackageNo: d.InventoryOrder.PackageNo,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tQuantity: d.InventoryOrder.Quantity,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCustomerStoreSafeName: d.InventoryOrder.InventorySafeDefinition.SafeName + \" / \" + d.InventoryOrder.InventorySafeDefinition.CustomerStore.StoreName,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tId: d.InventoryOrder.Id,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tOrderStatusType: d.InventoryOrder.OrderStatus.ParameterDesc,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tProductName: d.InventoryOrder.Product.ProductName,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPlasticTypeName: d.InventoryOrder.Product.PlasticType.PlasticName,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tColumns={this.columns}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tShowPagination={true}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tPageSize={100}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tRowSelected={index => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar tempomodel = {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSignatureTypeId: receivelist[index].InventoryOrder.SignatureTypeId,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tRecordType: receivelist[index].InventoryOrder.ReceiveRecordType == null ? \"\" : receivelist[index].InventoryOrder.ReceiveRecordType.ParameterDesc,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPackageNo: receivelist[index].InventoryOrder.PackageNo,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tOldQuantity: receivelist[index].InventoryOrder.Quantity,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCustomerStoreSafeName: receivelist[index].InventoryOrder.InventorySafeDefinition.SafeName + \" / \" + receivelist[index].InventoryOrder.InventorySafeDefinition.CustomerStore.StoreName,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tId: receivelist[index].InventoryOrder.Id,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tOrderStatusType: receivelist[index].InventoryOrder.OrderStatus.ParameterDesc,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPlasticTypeName: receivelist[index].InventoryOrder.Product.PlasticType.PlasticName,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tInventorySafeDefinitionId: receivelist[index].InventoryOrder.InventorySafeDefinition.Id,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tQuantity: receivelist[index].InventoryOrder.Quantity,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tProductName: receivelist[index].InventoryOrder.Product.ProductName,\r\n\t\t\t\t\t\t\t\t\t\t\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\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nReceivedCardConfirmation.propTypes = {\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any,\r\n\tclasses: PropTypes.object,\r\n\r\n};\r\n\r\nexport default withArtifex(ReceivedCardConfirmation, styles);","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport { EditIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericCheckInput, GenericGrid, GenericNumberInput, GenericTextInput, GenericTitle, GenericSelectInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton.jsx\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { GridColumnType, MenuCodes } from \"views/Constants/Constant\";\r\n\r\nclass CardholderTransactionLimit extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.emptyProfile = {\r\n\t\t\tId: 0,\r\n\t\t\tIsRecordValid: true,\r\n\t\t\tProfileName: null,\r\n\t\t\tIsDefaultProfile: false,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined\r\n\t\t};\r\n\r\n\t\tthis.emptyDetail = {\r\n\t\t\tIndex: null,\r\n\t\t\tId: 0,\r\n\t\t\tIsRecordValid: true,\r\n\t\t\tTransactionGroupId: null,\r\n\t\t\tTransactionGroup: null,\r\n\t\t\tOneTimeMaxAmount: null,\r\n\t\t\tHasDailyLimit: false,\r\n\t\t\tDailyLimitAmount: null,\r\n\t\t\tDailyLimitCount: null,\r\n\t\t\tHasWeeklyLimit: false,\r\n\t\t\tWeeklyLimitAmount: null,\r\n\t\t\tWeeklyLimitCount: null,\r\n\t\t\tHasMonthlyLimit: false,\r\n\t\t\tMonthlyLimitAmount: null,\r\n\t\t\tMonthlyLimitCount: null,\r\n\t\t}\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tSelectedLimitProfile: Object.assign({}, this.emptyProfile),\r\n\t\t\tSelectedTransactionLimit: Object.assign({}, this.emptyDetail),\r\n\t\t\tProfileList: [],\r\n\t\t\tDetailList: [],\r\n\t\t};\r\n\r\n\t\tthis.IsDefaultProfile = false;\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : -1,\r\n\t\t};\r\n\r\n\t\tthis.LimitItemColumns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t { this.HandleSelectDetail(row.original, row.index); }} />\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\tresizable: false,\r\n\t\t\t\twidth: 50\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Limit Profile Name\",\r\n\t\t\t\taccessor: \"CardTransactionLimitProfile.ProfileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Code\",\r\n\t\t\t\taccessor: \"TransactionGroup.ParameterCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Name\",\r\n\t\t\t\taccessor: \"TransactionGroup.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"One Time Max Amount\",\r\n\t\t\t\taccessor: \"OneTimeMaxAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Has Daily Limit\",\r\n\t\t\t\tCell: row => (
{row.original.HasDailyLimit ? \"✓\" : \"❌\"}
),\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Daily Limit Amount\",\r\n\t\t\t\taccessor: \"DailyLimitAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Daily Limit Count\",\r\n\t\t\t\taccessor: \"DailyLimitCount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Has Weekly Limit\",\r\n\t\t\t\tCell: row => (
{row.original.HasWeeklyLimit ? \"✓\" : \"❌\"}
),\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Weekly Limit Amount\",\r\n\t\t\t\taccessor: \"WeeklyLimitAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Weekly Limit Count\",\r\n\t\t\t\taccessor: \"WeeklyLimitCount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Has Monthly Limit\",\r\n\t\t\t\tCell: row => (
{row.original.HasMonthlyLimit ? \"✓\" : \"❌\"}
),\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Monthly Limit Amount\",\r\n\t\t\t\taccessor: \"MonthlyLimitAmount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Monthly Limit Count\",\r\n\t\t\t\taccessor: \"MonthlyLimitCount\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: Object.assign({}, this.initialModel),\r\n\t\t\tisLoading: false,\r\n\t\t\tvModel: {},\r\n\t\t\tvModelDetail: {}\r\n\t\t};\r\n\t};\r\n\r\n\ttoArray = (value) => {\r\n\t\tvar returnList = [];\r\n\t\tif (value != null && value[0]) {\r\n\t\t\tfor (const key in value) {\r\n\t\t\t\tif (value.hasOwnProperty(key)) {\r\n\t\t\t\t\tconst element = value[key];\r\n\t\t\t\t\treturnList.push(element);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn returnList;\r\n\t};\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\r\n\t\tswitch (this.props.MenuCode) {\r\n\t\t\tcase MenuCodes.Menu_ClientTransactionLimitProfile:\r\n\t\t\t\tthis.IsDefaultProfile = false;\r\n\t\t\t\tthis.props.setAppLeftTitle(\"Client Transaction Limit Profile\");\r\n\t\t\t\tbreak;\r\n\t\t\tcase MenuCodes.Menu_LimitProfile:\r\n\t\t\t\tthis.IsDefaultProfile = false;\r\n\t\t\t\tthis.props.setAppLeftTitle(\"Transaction Limit Profile\");\r\n\t\t\t\tbreak;\r\n\t\t\tcase MenuCodes.Menu_DCLimitProfile:\r\n\t\t\t\tthis.IsDefaultProfile = true;\r\n\t\t\t\tthis.props.setAppLeftTitle(\"Transaction Limit Profile\");\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\r\n\t\t}\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (name === \"LimitProfileName\") {\r\n\t\t\tmodel.SelectedLimitProfile.ProfileName = newValue;\r\n\t\t} else if (name == \"UniqueClientId\") {\r\n\t\t\tmodel.SelectedLimitProfile.UniqueClientId = newValue;\r\n\t\t} else if (name == \"TransactionGroup\") {\r\n\t\t\tmodel.SelectedTransactionLimit.TransactionGroupId = newValue;\r\n\t\t\tmodel.SelectedTransactionLimit.TransactionGroup = data;\r\n\t\t} else if (name == \"OneTimeMaxAmount\") {\r\n\t\t\tmodel.SelectedTransactionLimit.OneTimeMaxAmount = newValue;\r\n\t\t} else if (name == \"HasDailyLimit\") {\r\n\t\t\tmodel.SelectedTransactionLimit.HasDailyLimit = newValue;\r\n\t\t} else if (name == \"DailyLimitAmount\") {\r\n\t\t\tmodel.SelectedTransactionLimit.DailyLimitAmount = newValue;\r\n\t\t} else if (name == \"DailyLimitCount\") {\r\n\t\t\tmodel.SelectedTransactionLimit.DailyLimitCount = newValue;\r\n\t\t} else if (name == \"HasWeeklyLimit\") {\r\n\t\t\tmodel.SelectedTransactionLimit.HasWeeklyLimit = newValue;\r\n\t\t} else if (name == \"WeeklyLimitAmount\") {\r\n\t\t\tmodel.SelectedTransactionLimit.WeeklyLimitAmount = newValue;\r\n\t\t} else if (name == \"WeeklyLimitCount\") {\r\n\t\t\tmodel.SelectedTransactionLimit.WeeklyLimitCount = newValue;\r\n\t\t} else if (name == \"HasMonthlyLimit\") {\r\n\t\t\tmodel.SelectedTransactionLimit.HasMonthlyLimit = newValue;\r\n\t\t} else if (name == \"MonthlyLimitAmount\") {\r\n\t\t\tmodel.SelectedTransactionLimit.MonthlyLimitAmount = newValue;\r\n\t\t} else if (name == \"MonthlyLimitCount\") {\r\n\t\t\tmodel.SelectedTransactionLimit.MonthlyLimitCount = newValue;\r\n\t\t}\r\n\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {\r\n\t\t\t\tSelectedLimitProfile: Object.assign({}, this.emptyProfile),\r\n\t\t\t\tSelectedTransactionLimit: Object.assign({}, this.emptyDetail),\r\n\t\t\t\tProfileList: [],\r\n\t\t\t\tDetailList: [],\r\n\t\t\t\tvModel: {},\r\n\t\t\t\tvModelDetail: {}\r\n\t\t\t}\r\n\t\t});\r\n\t};\r\n\r\n\tHandleSelectProfile = (data, index) => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tvar LimitProfile = Object.assign({}, data.Profile);\r\n\t\tvar LimitItemList = Object.assign({}, data.LimitList);\r\n\r\n\t\tmodel.SelectedLimitProfile = LimitProfile;\r\n\t\tmodel.SelectedTransactionLimit = Object.assign({}, this.emptyDetail);\r\n\t\tmodel.DetailList = this.toArray(LimitItemList);\r\n\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\tHandleSelectDetail = (data, index) => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\r\n\t\tmodel.SelectedTransactionLimit = Object.assign({}, data);\r\n\t\tmodel.SelectedTransactionLimit.Index = index;\r\n\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\tHandleAddDetail = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tvar newItem = Object.assign({}, model.SelectedTransactionLimit);\r\n\r\n\t\tif (!this.ValidateNewDetail(newItem, model.DetailList)) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (!newItem.HasDailyLimit) {\r\n\t\t\tnewItem.DailyLimitAmount = 0;\r\n\t\t\tnewItem.DailyLimitCount = 0;\r\n\t\t}\r\n\t\tif (!newItem.HasWeeklyLimit) {\r\n\t\t\tnewItem.WeeklyLimitAmount = 0;\r\n\t\t\tnewItem.WeeklyLimitCount = 0;\r\n\t\t}\r\n\t\tif (!newItem.HasMonthlyLimit) {\r\n\t\t\tnewItem.MonthlyLimitAmount = 0;\r\n\t\t\tnewItem.MonthlyLimitCount = 0;\r\n\t\t}\r\n\r\n\t\tvar temporary = [];\r\n\t\tif (newItem.Id == 0) {\r\n\t\t\tnewItem.ProfileId = model.SelectedLimitProfile.Id;\r\n\t\t\tnewItem.CardTransactionLimitProfile = model.SelectedLimitProfile;\r\n\r\n\t\t\tif (newItem.Index != null) {\r\n\t\t\t\tfor (let index = 0; index < model.DetailList.length; index++) {\r\n\t\t\t\t\tconst element = model.DetailList[index];\r\n\t\t\t\t\ttemporary.push(index == newItem.Index ? newItem : element);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tmodel.DetailList.forEach((value, index, array) => { temporary.push(value); });\r\n\t\t\t\ttemporary.push(newItem);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tmodel.DetailList.forEach(element => {\r\n\t\t\t\tif (element.Id == newItem.Id) {\r\n\t\t\t\t\ttemporary.push(newItem);\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttemporary.push(element);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tmodel.SelectedTransactionLimit = Object.assign({}, this.emptyDetail);\r\n\t\tmodel.DetailList = temporary;\r\n\t\tthis.setState({ model });\r\n\r\n\t}\r\n\r\n\tHandleDeleteDetail = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tvar newItem = Object.assign({}, model.SelectedTransactionLimit);\r\n\r\n\t\tvar temporary = [];\r\n\t\tif (newItem.Id != 0) {\r\n\t\t\tnewItem.IsRecordValid = false;\r\n\t\t\tmodel.DetailList.forEach(element => {\r\n\t\t\t\tif (element.Id != newItem.Id) { temporary.push(element); }\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\tfor (let index = 0; index < model.DetailList.length; index++) {\r\n\t\t\t\tconst element = model.DetailList[index];\r\n\t\t\t\tif (index != newItem.Index) { temporary.push(element); }\r\n\t\t\t}\r\n\t\t}\r\n\t\tmodel.SelectedTransactionLimit = Object.assign({}, this.emptyDetail);\r\n\t\tmodel.DetailList = temporary;\r\n\t\tthis.setState({ model });\r\n\t\tthis.props.showMessage(\"success\", \"Success\", \"Limit Definition deleted.\");\r\n\r\n\t}\r\n\r\n\tHandleClearDetail = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel.SelectedTransactionLimit = Object.assign({}, this.emptyDetail);\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleSearch = async () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\r\n\t\tconst request = {\r\n\t\t\tProfileName: model.SelectedLimitProfile.ProfileName,\r\n\t\t\tUniquClientId: model.SelectedLimitProfile.UniqueClientId,\r\n\t\t\tIsDefaultProfile: this.IsDefaultProfile\r\n\t\t};\r\n\t\tvar result = await ExecuteApiPost(\"/prepaidapi/v1.0/CardTransactionLimitProfile/SearchProfile\", request);\r\n\t\t// model.SelectedLimitProfile = Object.assign({}, this.emptyProfile);\r\n\t\tmodel.SelectedTransactionLimit = Object.assign({}, this.emptyDetail);\r\n\t\tmodel.ProfileList = result;\r\n\t\tmodel.DetailList = [];\r\n\t\tthis.setState({ model });\r\n\r\n\t};\r\n\tsuccessCallback = (result) => {\r\n\t\tconst model = { ...this.state };\r\n\t\tmodel.SelectedLimitProfile = result.Profile;\r\n\t\tmodel.SelectedTransactionLimit = Object.assign({}, this.emptyDetail);\r\n\t\tmodel.ProfileList = [];\r\n\t\tmodel.ProfileList.push(result);\r\n\t\tmodel.DetailList = result.LimitList;\r\n\t\tthis.props.showMessage(\"success\", \"Success\", \"The operation successfully completed.\");\r\n\t\tthis.HandleSearch();\r\n\t\tthis.setState({ model });\r\n\r\n\t}\r\n\r\n\terrorCallback = (error) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.props.showMessage(\"error\", \"Error\", \"An error occurred during the api visit\" + error);\r\n\t}\r\n\r\n\tsuccessDeleteCallback = (responseData) => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {\r\n\t\t\t\tSelectedLimitProfile: Object.assign({}, this.emptyProfile),\r\n\t\t\t\tSelectedTransactionLimit: Object.assign({}, this.emptyDetail),\r\n\t\t\t\tProfileList: [],\r\n\t\t\t\tDetailList: [],\r\n\t\t\t}\r\n\t\t});\r\n\t\tthis.props.showMessage(\"success\", \"Success\", \"The operation successfully completed.\");\r\n\r\n\t}\r\n\r\n\r\n\r\n\tHandleSubmit = async () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\r\n\t\tvar callUrl =\r\n\t\t\tmodel.SelectedLimitProfile.Id != 0 ?\r\n\t\t\t\t\"/prepaidapi/v1.0/CardTransactionLimitProfile/Update\" :\r\n\t\t\t\t\"/prepaidapi/v1.0/CardTransactionLimitProfile/Insert\"\r\n\r\n\t\tvar requestList = [];\r\n\t\tif (model.SelectedLimitProfile.Id != 0) {\r\n\t\t\tvar originalDetail = model.ProfileList.find(x => x.Profile.Id == model.SelectedLimitProfile.Id).LimitList;\r\n\t\t\tvar originalDetailList = this.toArray(originalDetail);\r\n\r\n\t\t\tmodel.DetailList.forEach(element => {\r\n\t\t\t\t// added list\r\n\t\t\t\tif (element.Id == 0) { requestList.push(element); }\r\n\t\t\t\t// modified list\r\n\t\t\t\tif (element.Id != 0) { requestList.push(element); }\r\n\t\t\t});\r\n\r\n\t\t\t// deleted list\r\n\t\t\toriginalDetailList.forEach(element => {\r\n\t\t\t\tvar relatedItem = model.DetailList.find(x => x.Id == element.Id);\r\n\t\t\t\tif (relatedItem == null) {\r\n\t\t\t\t\tvar deletedItem = Object.assign({}, element);\r\n\t\t\t\t\tdeletedItem.IsRecordValid = false;\r\n\t\t\t\t\trequestList.push(deletedItem);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\tmodel.DetailList.forEach(element => {\r\n\t\t\t\t// added list\r\n\t\t\t\trequestList.push(element);\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tconst request = {\r\n\t\t\tProfileName: model.SelectedLimitProfile.ProfileName,\r\n\t\t\tId: model.SelectedLimitProfile != null ? model.SelectedLimitProfile.Id : null,\r\n\t\t\tIsRecordValid: true,\r\n\t\t\tDetailList: requestList,\r\n\t\t\tUniqueClientId: model.SelectedLimitProfile.UniqueClientId,\r\n\t\t\tIsDefaultProfile: this.IsDefaultProfile\r\n\t\t};\r\n\t\tvar result = await ExecuteApiPost(callUrl, request);\r\n\t\tif (result != null)\r\n\t\t\tthis.successCallback(result);\r\n\t};\r\n\r\n\tHandleDelete = async () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\r\n\t\tconst request = {\r\n\t\t\tProfileName: model.SelectedLimitProfile.ProfileName,\r\n\t\t\tId: model.SelectedLimitProfile != null ? model.SelectedLimitProfile.Id : null,\r\n\t\t\tIsRecordValid: false,\r\n\t\t\tIsDefaultProfile: this.IsDefaultProfile\r\n\t\t};\r\n\r\n\t\tvar result = await ExecuteApiPost(\"/prepaidapi/v1.0/CardTransactionLimitProfile/Delete\", request);\r\n\t\tif (result != null)\r\n\t\t\tthis.successDeleteCallback()\r\n\t};\r\n\r\n\tValidateSubmit = () => {\r\n\t\tvar errorList = [];\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\r\n\t\tvModel.ProfileName = model.SelectedLimitProfile == null\r\n\t\t\t|| model.SelectedLimitProfile.ProfileName == null\r\n\t\t\t|| model.SelectedLimitProfile.ProfileName === \"\";\r\n\r\n\t\tif (vModel.ProfileName) {\r\n\t\t\terrorList.push(\"Please fill Profile Name field.\");\r\n\t\t}\r\n\r\n\t\tvModel.UniqueClientId = this.IsDefaultProfile == false && (model.SelectedLimitProfile == null || model.SelectedLimitProfile.UniqueClientId <= 0 || !model.SelectedLimitProfile.UniqueClientId);\r\n\t\tif (vModel.UniqueClientId) {\r\n\t\t\terrorList.push(\"Please fill Client field.\");\r\n\t\t}\r\n\r\n\t\tif (errorList.length > 0) {\r\n\t\t\tshowValidationErrors(errorList);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\tValidateNewDetail = (newItem, allDetail) => {\r\n\t\tvar errorList = [];\r\n\t\tconst { model, vModelDetail, vModel } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\r\n\t\tvModel.ProfileName = model.SelectedLimitProfile == null\r\n\t\t\t|| model.SelectedLimitProfile.ProfileName == null\r\n\t\t\t|| model.SelectedLimitProfile.ProfileName === \"\";\r\n\t\tif (vModel.ProfileName) {\r\n\t\t\terrorList.push(\"Please fill Profile Name field.\");\r\n\t\t}\r\n\r\n\r\n\t\tif (newItem.TransactionGroupId == null) {\r\n\t\t\terrorList.push(\"Please fill in the Transaction Name field.\");\r\n\t\t\tvModelDetail.TransactionGroupId = true;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvModelDetail.TransactionGroupId = false;\r\n\t\t}\r\n\t\tif (newItem.Id == 0) {\r\n\t\t\tif (newItem.Index != null) {\r\n\t\t\t\tfor (let index = 0; index < allDetail.length; index++) {\r\n\t\t\t\t\tconst element = allDetail[index];\r\n\t\t\t\t\tif (index != newItem.Index && element.TransactionGroupId == newItem.TransactionGroupId) {\r\n\t\t\t\t\t\terrorList.push(\"Please fill in the Transaction Name field with different value.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tallDetail.forEach((value, index, array) => {\r\n\t\t\t\t\tif (value.TransactionGroupId == newItem.TransactionGroupId) {\r\n\t\t\t\t\t\terrorList.push(\"Please fill in the Transaction Name field with different value.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tallDetail.forEach(element => {\r\n\t\t\t\tif (element.Id != newItem.Id && element.TransactionGroupId == newItem.TransactionGroupId) {\r\n\t\t\t\t\terrorList.push(\"Please fill in the Transaction Name field with different value.\");\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tif (errorList.length > 0) {\r\n\t\t\tshowValidationErrors(errorList);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, isLoading, alert, vModel, vModelDetail } = this.state;\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t 0\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{ Code: \"Clear\", OnClick: this.HandleClear, Disabled: Disabled }\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{!this.IsDefaultProfile &&\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t { this.HandleSelectProfile(row.original, row.index); }} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsortable: false,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfilterable: false,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tresizable: false,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 60\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Profile Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Profile.ProfileName\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Client Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"UniqueClientId\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tshow: !this.IsDefaultProfile\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ClientName\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tshow: !this.IsDefaultProfile\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"User\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Profile.InsertUser\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t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tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tHandleChange: PropTypes.func,\r\n\tmenuId: PropTypes.number,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default withArtifex(CardholderTransactionLimit, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport CardComponent from \"views/Components/CardComponent\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent\";\r\nimport {\r\n GenericAlert,\r\n GenericExpansionPanel,\r\n GenericGrid,\r\n GenericLabel,\r\n GenericNumberInput,\r\n GenericSelectInput,\r\n GenericTextInput,\r\n GenericTitle,\r\n} from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport {\r\n GridColumnType,\r\n MenuCodes,\r\n ProgramCodes,\r\n TransactionMoneyTransferType,\r\n} from \"views/Constants/Constant\";\r\n\r\nclass MoneyTransferToCardholder extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n\r\n this.initialModel = {\r\n UniqueClientId: ClientHelper.IsClient()\r\n ? ClientHelper.GetClientRowId()\r\n : undefined,\r\n TransactionCode: 0,\r\n };\r\n this.maxLenght = 21;\r\n\r\n this.state = {\r\n vCustomerModel: {},\r\n vCardModel: {},\r\n list: [],\r\n CardModel: this.initialModel,\r\n CustomerModel: this.initialModel,\r\n SelectedCustomerItem: \"\",\r\n model: this.initialModel,\r\n isLoading: false,\r\n selected: null,\r\n bankAccounts: [],\r\n cardList: [],\r\n TransactionType: [],\r\n };\r\n\r\n this.CardDisactive = true;\r\n this.CustomerDisactive = true;\r\n this.IsCustomerAccountSelected = true;\r\n\r\n this.parameterMainCard = {};\r\n this.parameterUniqueClientId = {\r\n UniqueClientId: ClientHelper.IsClient()\r\n ? ClientHelper.GetClientId()\r\n : undefined,\r\n };\r\n\r\n this.renderItemUniqueClient = {};\r\n }\r\n\r\n componentDidMount() {\r\n switch (this.props.MenuCode) {\r\n case MenuCodes.LOS_QuickFundsTransfer:\r\n this.props.setAppLeftTitle(\"Quick Funds Transfer\");\r\n this.props.setAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n this.ProgramCode = ProgramCodes.Lender;\r\n this.state.model.ProgramCode = ProgramCodes.Lender;\r\n this.CardDisactive = true;\r\n this.CustomerDisactive = false;\r\n this.IsCustomerAccountSelected = true;\r\n break;\r\n case MenuCodes.Menu_MoneyTransferToCardHolder:\r\n this.props.setAppLeftTitle(\"Quick Funds Transfer\");\r\n this.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n this.ProgramCode = ProgramCodes.Prepaid;\r\n this.state.model.ProgramCode = ProgramCodes.Prepaid;\r\n this.CardDisactive = true;\r\n this.CustomerDisactive = true;\r\n this.IsCustomerAccountSelected = true;\r\n break;\r\n default:\r\n break;\r\n }\r\n this.setState({ model: this.state.model });\r\n this.GetCustomerBankAccounts();\r\n //\tthis.FillMainCard();\r\n }\r\n RenderItemUniqueClient = (d) => {\r\n this.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n return this.renderItemUniqueClient;\r\n };\r\n HandleChange = (name, value, data) => {\r\n const model = { ...this.state.model };\r\n model[name] = value;\r\n\r\n if (name == \"TransferTypeId\") {\r\n var findIndex = TransactionMoneyTransferType.findIndex(\r\n (x) => x.Id == value\r\n );\r\n\r\n if (TransactionMoneyTransferType[findIndex].Text === \"Card\") {\r\n this.CustomerDisactive = true;\r\n this.CardDisactive = false;\r\n } else {\r\n this.CardDisactive = true;\r\n this.CustomerDisactive = false;\r\n }\r\n }\r\n\r\n this.setState({ model });\r\n };\r\n\r\n CardModelChange = (name, value, data) => {\r\n const model = { ...this.state.CardModel };\r\n model[name] = value;\r\n\r\n if (name === \"Customer\") {\r\n if (value) {\r\n model.ClientCustomerId = value.Id;\r\n model.CustomerNumber = value.CustomerNumber;\r\n } else {\r\n delete model.ClientCustomerId;\r\n delete model.CustomerNumber;\r\n delete model.CardId;\r\n delete model.CardTokenNumber;\r\n }\r\n }\r\n if (name === \"Card\") {\r\n if (value) {\r\n model.CardId = value.CardId;\r\n model.CardTokenNumber = value.CardTokenNumber;\r\n } else {\r\n delete model.CardId;\r\n delete model.CardTokenNumber;\r\n }\r\n }\r\n\r\n if (name === \"TransactionCode\") {\r\n model[name] = value;\r\n }\r\n\r\n this.setState({ CardModel: model });\r\n };\r\n\r\n CustomerModelChange = (name, value, data) => {\r\n const model = { ...this.state.CustomerModel };\r\n const model2 = this.state.SelectedCustomerItem;\r\n\r\n var IsTrxDisabled = false;\r\n\r\n if (\r\n name === \"DestinationAccountId\" &&\r\n data !== null &&\r\n data !== undefined\r\n ) {\r\n this.setState({ SelectedCustomerItem: data.AccountName });\r\n this.IsCustomerAccountSelected = false;\r\n }\r\n\r\n if (\r\n model.TransactionTypeId !== null &&\r\n model.TransactionTypeId !== undefined &&\r\n data !== null &&\r\n data !== undefined\r\n ) {\r\n if (\r\n name === \"DestinationAccountId\" &&\r\n data.AccountName === \"Security Number\" &&\r\n model.TransactionTypeId !== 6020\r\n ) {\r\n IsTrxDisabled = true;\r\n this.ShowMessage(\r\n \"error\",\r\n \"Error\",\r\n \"Debit option not available from security number !\"\r\n );\r\n }\r\n }\r\n\r\n if (model2 === \"Security Number\") {\r\n if (data !== null && data !== undefined) {\r\n if (name === \"TransactionTypeId\" && data.ParameterDesc === \"Debit\") {\r\n IsTrxDisabled = true;\r\n this.ShowMessage(\r\n \"error\",\r\n \"Error\",\r\n \"Debit option not available from security number !\"\r\n );\r\n }\r\n } else {\r\n IsTrxDisabled = false;\r\n }\r\n }\r\n\r\n if (!IsTrxDisabled) {\r\n model[name] = value;\r\n }\r\n\r\n if (name === \"Customer\") {\r\n if (value) {\r\n model.ClientCustomerId = value.Id;\r\n model.CustomerNumber = value.CustomerNumber;\r\n } else {\r\n delete model.ClientCustomerId;\r\n delete model.CustomerNumber;\r\n delete model.CardId;\r\n delete model.CardTokenNumber;\r\n }\r\n }\r\n if (name === \"TransactionCode\") {\r\n model[name] = value;\r\n }\r\n this.setState({ CustomerModel: model });\r\n };\r\n\r\n HandleSelectModel = (model, index) => {\r\n this.setState({ model, selected: index });\r\n this.HandleGetList();\r\n };\r\n\r\n HandleClear = () => {\r\n this.CardDisactive = true;\r\n this.CustomerDisactive = true;\r\n this.IsCustomerAccountSelected = true;\r\n if (this.ProgramCode == ProgramCodes.Lender) this.CustomerDisactive = false;\r\n\r\n this.setState({\r\n model: this.initialModel,\r\n CardModel: this.initialModel,\r\n CustomerModel: this.initialModel,\r\n });\r\n };\r\n\r\n HandleGetList = () => {\r\n this.setState({ isLoading: true });\r\n var model = this.CustomerDisactive\r\n ? this.state.CardModel\r\n : this.state.CustomerModel;\r\n var searchRequest = {\r\n ClientCustomerId: model.ClientCustomerId,\r\n TransactionTypeId: model.TransactionTypeId,\r\n ProgramCode: this.ProgramCode,\r\n SourceAccountId: model.SourceAccountId,\r\n DestinationAccountId: model.DestinationAccountId,\r\n CardId: model.CardId,\r\n ReferenceNumber: model.ReferenceNumber,\r\n };\r\n\r\n Proxy.POST(\r\n \"/bankapi/v1.0/Transaction/GetAllTransactionCustomerByProgramCode\",\r\n searchRequest,\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n if (!responseData.IsSucceeded) {\r\n this.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n return;\r\n }\r\n if (responseData.Item != null) {\r\n this.setState({ list: responseData.Item });\r\n } else {\r\n this.setState({ list: [] });\r\n }\r\n },\r\n (error) => {\r\n this.setState({ isLoading: false });\r\n this.ShowMessage(\"error\", \"Error\", error);\r\n }\r\n );\r\n };\r\n\r\n HandleSubmit = () => {\r\n if (!this.Validate()) return;\r\n\r\n this.setState({ isLoading: true });\r\n this.state.CardModel.ProgramCode = this.ProgramCode;\r\n this.state.CustomerModel.ProgramCOde = this.ProgramCode;\r\n Proxy.POST(\r\n \"/bankapi/v1.0/Transaction/MoneyTransferToCardHolder\",\r\n this.CustomerDisactive ? this.state.CardModel : this.state.CustomerModel,\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n if (!responseData.IsSucceeded) {\r\n this.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n return;\r\n }\r\n this.ShowMessage(\"success\", \"Success\", \"Operation is successfully!\");\r\n this.HandleClear();\r\n this.HandleGetList();\r\n },\r\n (error) => {\r\n this.setState({ isLoading: false });\r\n this.ShowMessage(\"error\", \"Error\", error);\r\n }\r\n );\r\n };\r\n\r\n Validate = () => {\r\n const { vCustomerModel, vCardModel, CustomerModel, CardModel } = this.state;\r\n\r\n if (this.CardDisactive) {\r\n if (!CustomerModel.SourceAccountId) {\r\n vCustomerModel.SourceAccountId = true;\r\n this.ShowMessage(\r\n \"warning\",\r\n \"Invalid\",\r\n \"Please select client account !\"\r\n );\r\n return;\r\n } else {\r\n vCustomerModel.SourceAccountId = false;\r\n }\r\n if (!CustomerModel.ClientCustomerId) {\r\n vCustomerModel.ClientCustomerId = true;\r\n this.ShowMessage(\"warning\", \"Invalid\", \"Please select customer !\");\r\n return;\r\n } else {\r\n vCustomerModel.ClientCustomerId = false;\r\n }\r\n if (!CustomerModel.Amount) {\r\n vCustomerModel.Amount = true;\r\n this.ShowMessage(\r\n \"warning\",\r\n \"Invalid\",\r\n \"Please fill transaction amount !\"\r\n );\r\n return;\r\n } else {\r\n vCustomerModel.Amount = false;\r\n }\r\n if (!CustomerModel.DestinationAccountId) {\r\n vCustomerModel.DestinationAccountId = true;\r\n this.ShowMessage(\r\n \"warning\",\r\n \"Invalid\",\r\n \"Please fill Customer account !\"\r\n );\r\n return;\r\n } else {\r\n vCustomerModel.DestinationAccountId = false;\r\n }\r\n\r\n if (!CustomerModel.TransactionTypeId) {\r\n vCustomerModel.TransactionTypeId = true;\r\n this.ShowMessage(\r\n \"warning\",\r\n \"Invalid\",\r\n \"Please fill Transaction Type !\"\r\n );\r\n return;\r\n } else {\r\n vCustomerModel.TransactionTypeId = false;\r\n }\r\n\r\n if (CardModel.TransactionCode == null) {\r\n CardModel.TransactionCode = 0;\r\n this.setState({ CardModel });\r\n }\r\n\r\n if (vCustomerModel.Description?.length > 21) {\r\n this.ShowMessage(\r\n \"Warning\",\r\n \"Invalid\",\r\n \"Description cannot be longer than 30 characters!\"\r\n );\r\n }\r\n } else if (!this.CardDisactive) {\r\n if (!CardModel.SourceAccountId) {\r\n vCardModel.SourceAccountId = true;\r\n this.ShowMessage(\r\n \"warning\",\r\n \"Invalid\",\r\n \"Please select client account !\"\r\n );\r\n return;\r\n } else {\r\n vCustomerModel.SourceAccountId = false;\r\n }\r\n if (!CardModel.ClientCustomerId) {\r\n vCardModel.ClientCustomerId = true;\r\n this.ShowMessage(\"warning\", \"Invalid\", \"Please select customer !\");\r\n return;\r\n } else {\r\n vCustomerModel.ClientCustomerId = false;\r\n }\r\n if (!CardModel.Amount) {\r\n vCardModel.Amount = true;\r\n this.ShowMessage(\r\n \"warning\",\r\n \"Invalid\",\r\n \"Please fill transaction amount !\"\r\n );\r\n return;\r\n } else {\r\n vCardModel.Amount = false;\r\n }\r\n if (!CardModel.CardId) {\r\n vCardModel.CardId = true;\r\n this.ShowMessage(\"warning\", \"Invalid\", \"Please fill Card !\");\r\n return;\r\n } else {\r\n vCardModel.DestinationAccountId = false;\r\n }\r\n\r\n if (!CardModel.TransactionTypeId) {\r\n vCardModel.TransactionTypeId = true;\r\n this.ShowMessage(\r\n \"warning\",\r\n \"Invalid\",\r\n \"Please fill Transaction Type !\"\r\n );\r\n return;\r\n } else {\r\n vCardModel.TransactionTypeId = false;\r\n }\r\n\r\n if (vCardModel.Description?.length > 21) {\r\n this.ShowMessage(\r\n \"Warning\",\r\n \"Invalid\",\r\n \"Description cannot be longer than 30 characters!\"\r\n );\r\n }\r\n if (CustomerModel.TransactionCode == null) {\r\n CustomerModel.TransactionCode = 0;\r\n this.setState({ CustomerModel });\r\n }\r\n }\r\n\r\n this.setState({ vCustomerModel });\r\n return true;\r\n };\r\n\r\n ShowMessage = (type, title, message) => {\r\n this.setState({\r\n alert: (\r\n this.setState({ alert: \"\" })}\r\n />\r\n ),\r\n });\r\n };\r\n\r\n GetCustomerBankAccounts = async () => {\r\n this.setState({ isLoading: true });\r\n const { ExecuteApiPost } = this.props;\r\n var result = await ExecuteApiPost(\r\n \"/bankapi/v1.0/Account/GetAllAccountForFundsTransfer\",\r\n {}\r\n );\r\n this.setState({ bankAccounts: result || [], isLoading: false });\r\n };\r\n\r\n ShowMessageNode = (type, title, message) => {\r\n this.setState({\r\n alert: (\r\n this.setState({ alert: \"\" })}\r\n />\r\n ),\r\n });\r\n };\r\n\r\n ShowConfirmMessage = (type, title, message, onConfirm) => {\r\n this.setState({\r\n alert: (\r\n this.setState({ alert: \"\" })}\r\n OnConfirm={onConfirm}\r\n />\r\n ),\r\n });\r\n };\r\n GetMainCardParameter = () => {\r\n this.parameterMainCard.ClientCustomerId = this.state.model.ClientCustomerId;\r\n this.parameterMainCard.IsActive = true;\r\n this.parameterMainCard.CardSearchCriteria = 2;\r\n return this.parameterMainCard;\r\n };\r\n FillMainCard = () => {\r\n this.setState({ isLoading: true });\r\n Proxy.POST(\r\n \"/prepaidapi/v1.0/Card/CardSearch\",\r\n this.GetMainCardParameter(),\r\n (responseData) => {\r\n this.setState({ isLoading: false }, () => {\r\n if (!responseData.IsSucceeded) {\r\n this.props.showMessage(\r\n \"error\",\r\n \"Error\",\r\n responseData.ErrorDescription\r\n );\r\n return;\r\n }\r\n this.setState({ cardList: responseData.Item }, () => {\r\n if (responseData.Item == null || responseData.Item.length == 0) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Warning\",\r\n \"Main card could not found.\"\r\n );\r\n }\r\n });\r\n });\r\n },\r\n (error) => {\r\n this.setState({ isLoading: false });\r\n this.props.showMessage(\"error\", \"Error\", error);\r\n }\r\n );\r\n };\r\n\r\n RenderItemAccount = (d) => {\r\n this.renderItemAccount = `${d.AccountName} - ${d.AccountNumber}`;\r\n return this.renderItemAccount;\r\n };\r\n FillCustomerForCard = (customer) => {\r\n this.CardModelChange(\"Customer\", customer);\r\n };\r\n FillCustomerForCustomer = (customer) => {\r\n this.CustomerModelChange(\"Customer\", customer);\r\n };\r\n\r\n FillCard = (card) => {\r\n this.CardModelChange(\"Card\", card);\r\n };\r\n\r\n render() {\r\n const { Disabled } = this.props;\r\n const {\r\n alert,\r\n CustomerModel,\r\n CardModel,\r\n list,\r\n isLoading,\r\n model,\r\n bankAccounts,\r\n vCustomerModel,\r\n vCardModel,\r\n } = this.state;\r\n\r\n var sourceAccount = bankAccounts.map((d) => {\r\n return {\r\n Id: d.Id,\r\n CustomerBankAccountId: d.CustomerBankAccountId,\r\n AccountShortName: d.AccountShortName,\r\n BankAccountId: d.BankAccountId,\r\n UniqueClientId: d.UniqueClientId,\r\n Balance: d.Balance,\r\n AccountName: d.AccountName,\r\n TotalBalance: d.TotalBalance,\r\n AccountNumber: d.AccountNumber,\r\n AccountNumberStr: d.AccountNumberStr,\r\n BranchNumber: d.BranchNumber,\r\n BankNumber: d.BankNumber,\r\n AccountTypeId: d.AccountTypeId,\r\n AccountType: d.AccountType,\r\n ProgramName: d.ProgramName,\r\n ProgramCode: d.ProgramCode,\r\n AccountCode: d.AccountCode,\r\n CurrencyCode: d.CurrencyCode,\r\n };\r\n });\r\n var sourcePrimaryAccountData = sourceAccount;\r\n return (\r\n
\r\n \r\n\r\n {alert}\r\n \r\n \r\n \r\n {this.ProgramCode == ProgramCodes.Prepaid && (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n )}\r\n {this.ProgramCode == ProgramCodes.Prepaid && (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n `${d.TxnCode} - ${d.TxnName}`}\r\n Value={CardModel.TransactionCode}\r\n ValueChanged={this.CardModelChange}\r\n CanClear\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n )}\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n {this.ProgramCode == ProgramCodes.Lender && (\r\n \r\n )}\r\n\r\n {this.ProgramCode == ProgramCodes.Prepaid && (\r\n \r\n )}\r\n \r\n \r\n `${d.TxnCode} - ${d.TxnName}`}\r\n Value={CustomerModel.TransactionCode}\r\n ValueChanged={this.CustomerModelChange}\r\n CanClear\r\n />\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\nMoneyTransferToCardholder.propTypes = {\r\n classes: PropTypes.object.isRequired,\r\n};\r\n\r\nexport default withArtifex(MoneyTransferToCardholder, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport moment from \"moment\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericDateInput, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport { GridColumnType, UserStatus } from \"views/Constants/Constant\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nclass UserFundsActivities extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Number\",\r\n\t\t\t\taccessor: \"CustomerNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"CustomerName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Source Account Number\",\r\n\t\t\t\taccessor: \"SourceAccount.AccountNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Source Account Name\",\r\n\t\t\t\taccessor: \"SourceOwnerName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Destination Account Number\",\r\n\t\t\t\taccessor: \"DestinationAccount.AccountNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Destination Account Owner Name\",\r\n\t\t\t\taccessor: \"DestinationOwnerName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Type\",\r\n\t\t\t\taccessor: \"TransactionType.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Code\",\r\n\t\t\t\taccessor: \"TransactionCode.TxnName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"TransactionAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reference Number\",\r\n\t\t\t\taccessor: \"ReferenceNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Description\",\r\n\t\t\t\taccessor: \"Description\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"User Name\",\r\n\t\t\t\taccessor: \"UserEmail\"\r\n\t\t\t}\r\n\r\n\t\t];\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tFromDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\t\tToDate: DateHelper.GetLocalDateAsUtc()\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tthis.clientId = ClientHelper.GetClientRowId();\r\n\t\tthis.userParameter = { UniqueClientId: this.clientId, UserStatusList: [UserStatus.Ok] };\r\n\t\tthis.userSort = { Member: \"UserName\" };\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"User Funds Activities\");\r\n\t\t}\r\n\r\n\r\n\r\n\t}\r\n\r\n\tValueChanged = (name, newValue) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = newValue;\r\n\r\n\t\t\tif (name === \"FromDate\" && (newValue instanceof moment) && newValue > model.ToDate) {\r\n\t\t\t\tvar endDate = newValue.clone();\r\n\t\t\t\tmodel[\"ToDate\"] = endDate.add(33, \"days\");\r\n\t\t\t}\r\n\t\t\tif (name === \"FromDate\") {\r\n\t\t\t\tif ((newValue instanceof moment) && Math.abs(model.ToDate.diff(newValue, \"days\")) > 33) {\r\n\t\t\t\t\tvar endDate = newValue.clone();\r\n\t\t\t\t\tmodel[\"ToDate\"] = endDate.add(33, \"days\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (name == \"ReferenceNumber\") {\r\n\t\t\t\tmodel.isUniqueDataSearch = newValue?.length > 0;\r\n\t\t\t}\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\t\tvar { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/bankapi/v1.0/Transaction/GetAllUserFundsActivitiesTransaction\", model);\r\n\r\n\t\tmodel.IsCode = false;\r\n\t\tmodel.IsDescription = false;\r\n\t\tmodel.IsOrder = false;\r\n\r\n\t\tthis.setState({ model, list: result || [] });\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {\r\n\t\t\t\tFromDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\t\tToDate: DateHelper.GetLocalDateAsUtc()\r\n\t\t\t}, list: [], selected: null\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, list } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\t\tvar endDate = (model.FromDate instanceof moment) ? model.FromDate.clone() : \"\";\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nUserFundsActivities.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default UserFundsActivities;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nclass CardKeyProfile extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tvModel: {},\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false\r\n\t\t}\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.maxLength49 = { maxLength: 49 };\r\n\t\tthis.maxLength16 = { maxLength: 16 };\r\n\t\tthis.maxLength6 = { maxLength: 6 };\r\n\t\tthis.maxLength4 = { maxLength: 4 };\r\n\t\tthis.maxLength64 = { maxLength: 64 };\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : undefined\r\n\t\t};\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\r\n\t\tthis.parameterProduct = {};\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Profile Name\",\r\n\t\t\t\taccessor: \"ProfileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"AcKeyUnderLmk\",\r\n\t\t\t\taccessor: \"AcKeyUnderLmk\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"AcKeyKcv\",\r\n\t\t\t\taccessor: \"AcKeyKcv\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"EncKeyUnderLmk\",\r\n\t\t\t\taccessor: \"EncKeyUnderLmk\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"EncKeyKcv\",\r\n\t\t\t\taccessor: \"EncKeyKcv\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"MacKeyUnderLmk\",\r\n\t\t\t\taccessor: \"MacKeyUnderLmk\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"MacKeyKcv\",\r\n\t\t\t\taccessor: \"MacKeyKcv\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"DcvvKeyUnderLmk\",\r\n\t\t\t\taccessor: \"DcvvKeyUnderLmk\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"DcvvKeyKcv\",\r\n\t\t\t\taccessor: \"DcvvKeyKcv\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"CvkKeyUnderLmk\",\r\n\t\t\t\taccessor: \"CvkKeyUnderLmk\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"CvkKeyKcv\",\r\n\t\t\t\taccessor: \"CvkKeyKcv\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"CavvkKeyUnderLmk\",\r\n\t\t\t\taccessor: \"CavvkKeyUnderLmk\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"CavvkKeyKcv\",\r\n\t\t\t\taccessor: \"CavvkKeyKcv\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"ZekUnderLmk\",\r\n\t\t\t\taccessor: \"ZekAcUnderLmk\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"ZekKcv\",\r\n\t\t\t\taccessor: \"ZekAcKcv\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"PgkUnderLmk\",\r\n\t\t\t\taccessor: \"PgkUnderLmk\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"PgkKcv\",\r\n\t\t\t\taccessor: \"PgkKcv\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"ArpcKeyUnderLmk\",\r\n\t\t\t\taccessor: \"ArpcKeyUnderLmk\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"ArpcKeyKcv\",\r\n\t\t\t\taccessor: \"ArpcKeyKcv\"\r\n\t\t\t}\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Card Key Profile\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, vModel: {}, isEdit: false, index: -1 });\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/CardKeyProfile/Search\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleSubmit = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/dynamic/do\",\r\n\t\t\t{\r\n\t\t\t\toperation: this.state.isEdit ? \"Update\" : \"Insert\",\r\n\t\t\t\tdataModel: \"CardKeyProfile\",\r\n\t\t\t\tvalue: this.state.model\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ model: { ...this.initialModel }, index: -1 });\r\n\t\t\t\t\tthis.props.showMessage(\"success\", \"Succeeded\", \"Operation is successfully!\");\r\n\t\t\t\t\tthis.HandleSearch();\r\n\t\t\t\t\tthis.HandleClear();\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleDelete = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/dynamic/do\",\r\n\t\t\t{\r\n\t\t\t\toperation: \"Delete\",\r\n\t\t\t\tdataModel: \"CardKeyProfile\",\r\n\t\t\t\tvalue: { Id: this.state.model.Id }\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ model: { ...this.initialModel }, index: -1 });\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Succeeded\", \"Deleted successfully!\");\r\n\t\t\t\tthis.HandleSearch();\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tvar errorList = [];\r\n\t\tconst { showValidationErrors } = this.props;\r\n\r\n\t\tvModel.ProfileName = model.ProfileName == null || model.ProfileName == \"\";\r\n\t\tif (vModel.ProfileName) {\r\n\t\t\terrorList.push(\"Profile Name cannot be empty.\");\r\n\t\t}\r\n\r\n\t\tvModel.DcvvKeyUnderLmk = model.DcvvKeyUnderLmk == null || model.DcvvKeyUnderLmk == \"\";\r\n\t\tif (vModel.DcvvKeyUnderLmk) {\r\n\t\t\terrorList.push(\"DcvvKeyUnderLmk cannot be empty.\");\r\n\t\t}\r\n\r\n\t\tvModel.DcvvKeyKcv = model.DcvvKeyKcv == null || model.DcvvKeyKcv == \"\";\r\n\t\tif (!model.DcvvKeyKcv) {\r\n\t\t\terrorList.push(\"DcvvKeyKcv cannot be empty.\");\r\n\t\t}\r\n\r\n\t\tvModel.ProfileName = model.ProfileName == null || model.ProfileName == \"\";\r\n\t\tif (vModel.CvkKeyUnderLmk) {\r\n\t\t\terrorList.push(\"CvkKeyUnderLmk cannot be empty.\");\r\n\t\t}\r\n\r\n\t\tvModel.CvkKeyKcv = model.CvkKeyKcv == null || model.CvkKeyKcv == \"\";\r\n\t\tif (vModel.CvkKeyKcv) {\r\n\t\t\terrorList.push(\"CvkKeyKcv cannot be empty.\");\r\n\t\t}\r\n\r\n\t\tvModel.CavvkKeyUnderLmk = model.CavvkKeyUnderLmk == null || model.CavvkKeyUnderLmk == \"\";\r\n\t\tif (vModel.CavvkKeyUnderLmk) {\r\n\t\t\terrorList.push(\"CavvkKeyUnderLmk cannot be empty.\");\r\n\t\t}\r\n\r\n\t\tvModel.CavvkKeyKcv = model.CavvkKeyKcv == null || model.CavvkKeyKcv == \"\";\r\n\t\tif (vModel.CavvkKeyKcv) {\r\n\t\t\terrorList.push(\"CavvkKeyKcv cannot be empty.\");\r\n\t\t}\r\n\r\n\t\tvModel.ZekAcUnderLmk = model.ZekAcUnderLmk == null || model.ZekAcUnderLmk == \"\";\r\n\t\tif (vModel.ZekAcUnderLmk) {\r\n\t\t\terrorList.push(\"ZekUnderLmk cannot be empty.\");\r\n\t\t}\r\n\r\n\t\tvModel.ZekAcKcv = model.ZekAcKcv == null || model.ZekAcKcv == \"\";\r\n\t\tif (vModel.ZekAcKcv) {\r\n\t\t\terrorList.push(\"ZekKcv cannot be empty.\");\r\n\t\t}\r\n\r\n\t\tvModel.PgkUnderLmk = model.PgkUnderLmk == null || model.PgkUnderLmk == \"\";\r\n\t\tif (vModel.PgkUnderLmk) {\r\n\t\t\terrorList.push(\"PgkUnderLmk cannot be empty.\");\r\n\t\t}\r\n\r\n\t\tvModel.PgkKcv = model.PgkKcv == null || model.PgkKcv == \"\";\r\n\t\tif (!model.PgkKcv) {\r\n\t\t\terrorList.push(\"PgkKcv cannot be empty.\");\r\n\t\t}\r\n\r\n\r\n\t\tif (errorList.length > 0) {\r\n\t\t\tshowValidationErrors(errorList);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tlet { model, list } = this.state;\r\n\t\tmodel = list[index];\r\n\t\tif (list[index].ClientCustomer) {\r\n\t\t\tmodel.ClientCustomerId = list[index].ClientCustomer.Id;\r\n\t\t\tmodel.CustomerNumber = list[index].ClientCustomer.CustomerNumber;\r\n\t\t}\r\n\t\tthis.setState({ isEdit: true, model, index });\r\n\t}\r\n\r\n\tFillCustomer = (customer) => {\r\n\t\tthis.HandleChange(\"Customer\", customer);\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, isLoading, index, vModel } = this.state;\r\n\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t 0 },\r\n\t\t\t\t\t{ Code: \"Update\", OnClick: this.HandleSubmit, Disabled: Disabled || model.Id === 0 },\r\n\t\t\t\t\t{ Code: \"Delete\", OnClick: this.HandleDelete, Disabled: Disabled || model.Id === 0 },\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t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\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCardKeyProfile.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(CardKeyProfile, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericTitle, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent.jsx\";\r\nimport { ProgramCodes, GridColumnType } from \"views/Constants/Constant.js\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\n\r\nclass ClientForthLineDefinition extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tvModel: {},\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false\r\n\t\t}\r\n\r\n\t\tthis.emptyObject = {};\r\n\t\tthis.isClient = ClientHelper.IsClient();\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: this.isClient ? ClientHelper.GetClientId() : undefined,\r\n\t\t};\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\r\n\t\tthis.parameterProduct = {};\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"UniqueClient.ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"ClientCustomer.CustomerName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Product Name\",\r\n\t\t\t\taccessor: \"Product.ProductName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Emboss Forth Line\",\r\n\t\t\t\taccessor: \"EmbossForthLine\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"InsertDateTime\",\r\n\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Insert User\",\r\n\t\t\t\taccessor: \"InsertUser\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Update DateTime\",\r\n\t\t\t\taccessor: \"UpdateDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Update User\",\r\n\t\t\t\taccessor: \"UpdateUser\"\r\n\t\t\t}\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Client and Product Base 4th Line Definition\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (name === \"Customer\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.ClientCustomerId = newValue.Id;\r\n\t\t\t\tmodel.CustomerNumber = newValue.CustomerNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.ClientCustomerId;\r\n\t\t\t\tdelete model.CustomerNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (name === \"UniqueClientId\") {\r\n\t\t\tdelete model.ClientCustomerId;\r\n\t\t\tdelete model.CustomerNumber;\r\n\t\t}\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, vModel: {}, isEdit: false, index: -1 });\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Prepaid/ClientForthLineSearch\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleSubmit = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Prepaid/ClientandProductBaseForthLineInsert\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleDelete = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/dynamic/do\",\r\n\t\t\t{\r\n\t\t\t\toperation: \"Delete\",\r\n\t\t\t\tdataModel: \"ClientForthLineDefinition\",\r\n\t\t\t\tvalue: { Id: this.state.model.Id }\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ model: { ...this.initialModel }, index: -1 });\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Succeeded\", \"Deleted successfully!\");\r\n\t\t\t\tthis.HandleSearch();\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tvar errorList = [];\r\n\t\tconst { showValidationErrors } = this.props;\r\n\r\n\t\tvModel.EmbossForthLine = model.EmbossForthLine == null || model.EmbossForthLine == \"\";\r\n\t\tif (vModel.EmbossForthLine) {\r\n\t\t\terrorList.push(\"Emboss Forth Line cannot be empty.\");\r\n\t\t}\r\n\r\n\t\tvModel.ProductId = model.ProductId == null || model.ProductId == \"\";\r\n\t\tif (vModel.ProductId) {\r\n\t\t\terrorList.push(\"Product cannot be empty.\");\r\n\t\t}\r\n\r\n\t\tif (errorList.length > 0) {\r\n\t\t\tshowValidationErrors(errorList);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tlet { model, list } = this.state;\r\n\t\tmodel = list[index];\r\n\t\tif (list[index].ClientCustomer) {\r\n\t\t\tmodel.ClientCustomerId = list[index].ClientCustomer.Id;\r\n\t\t\tmodel.CustomerNumber = list[index].ClientCustomer.CustomerNumber;\r\n\t\t}\r\n\t\tthis.setState({ isEdit: true, model, index });\r\n\t}\r\n\r\n\tFillCustomer = (customer) => {\r\n\t\tthis.HandleChange(\"Customer\", customer);\r\n\t}\r\n\r\n\tRenderItemProduct = (d) => {\r\n\t\tthis.renderItemProduct = d.Name;\r\n\t\tif (d.UniqueClient)\r\n\t\t\tthis.renderItemProduct += ` - (${d.UniqueClient.UniqueClientId} - ${d.UniqueClient.ClientName})`;\r\n\t\treturn this.renderItemProduct;\r\n\t}\r\n\r\n\tGetProductParameter = () => {\r\n\t\tthis.parameterProduct.UniqueClientId = this.state.model.UniqueClientId;\r\n\t\tthis.parameterProduct.IsNoNameProduct = false;\r\n\t\treturn this.parameterProduct;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, isLoading, index, vModel } = this.state;\r\n\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nClientForthLineDefinition.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(ClientForthLineDefinition, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport {\r\n GenericExpansionPanel,\r\n GenericGrid,\r\n GenericSelectInput,\r\n GenericTextInput,\r\n GenericTitle,\r\n} from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nclass OnusBinDefiniton extends Component {\r\n constructor(props) {\r\n super(props);\r\n\r\n this.initialModel = {\r\n Id: 0,\r\n Bin: \"\",\r\n Description: \"\",\r\n KeyProfileId: 0,\r\n CardBrandId: 0,\r\n InstantEmvProfileCode: \"\",\r\n\t\tInstantChipProfileCode: \"\"\r\n };\r\n\r\n this.state = {\r\n model: this.initialModel,\r\n vModel: {},\r\n list: [],\r\n isLoading: false,\r\n };\r\n\r\n this.emptyObject = {};\r\n\r\n this.parameterTemplate = {\r\n operation: \"GetByParameter\",\r\n dataModel: \"CardKeyProfile\",\r\n };\r\n\r\n this.brandParameterTemplete = {\r\n operation: \"GetByParameter\",\r\n dataModel: \"ParameterDefinition\",\r\n value: { ParameterCode: \"Brand\" },\r\n };\r\n\r\n this.Columns = [\r\n {\r\n Header: \"Bin\",\r\n accessor: \"Bin\",\r\n },\r\n {\r\n Header: \"Description\",\r\n accessor: \"Description\",\r\n },\r\n {\r\n Header: \"Key Profile\",\r\n accessor: \"KeyProfile.ProfileName\",\r\n },\r\n {\r\n Header: \"Card Brand\",\r\n accessor: \"CardBrand.ParameterDesc\",\r\n },\r\n {\r\n Header: \"Chip Profile Code\",\r\n accessor: \"InstantChipProfileCode\",\r\n },\r\n {\r\n Header: \"Card Issuance Chip Code\",\r\n accessor: \"InstantEmvProfileCode\",\r\n },\r\n ];\r\n }\r\n\r\n componentDidMount() {\r\n this.props.setAppLeftTitle(\"Onus Bin Definition\");\r\n this.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n }\r\n\r\n HandleChange = (name, newValue, data) => {\r\n const model = { ...this.state.model };\r\n model[name] = newValue;\r\n this.setState({ model });\r\n };\r\n\r\n HandleClear = () => {\r\n this.setState({\r\n model: { ...this.initialModel },\r\n vModel: {},\r\n isEdit: false,\r\n index: -1,\r\n });\r\n };\r\n\r\n HandleSearch = () => {\r\n this.setState({ isLoading: true });\r\n Proxy.POST(\r\n \"/prepaidapi/v1.0/OnusBin/Search\",\r\n this.state.model,\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n if (!responseData.IsSucceeded) {\r\n this.props.showMessage(\r\n \"error\",\r\n \"Error\",\r\n responseData.ErrorDescription\r\n );\r\n return;\r\n }\r\n if (responseData.Item !== null) {\r\n this.setState({ list: responseData.Item });\r\n }\r\n },\r\n (error) => {\r\n this.setState({ isLoading: false });\r\n this.props.showMessage(\"error\", \"Error\", error);\r\n }\r\n );\r\n };\r\n\r\n HandleSubmit = () => {\r\n if (!this.Validate()) {\r\n return;\r\n }\r\n\r\n this.setState({ isLoading: true });\r\n Proxy.POST(\r\n \"/prepaidapi/v1.0/OnusBin/Insert\",\r\n this.state.model,\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n if (!responseData.IsSucceeded) {\r\n this.props.showMessage(\r\n \"error\",\r\n \"Error\",\r\n responseData.ErrorDescription\r\n );\r\n return;\r\n }\r\n if (responseData.Item !== null) {\r\n this.setState({ model: { ...this.initialModel }, index: -1 });\r\n this.props.showMessage(\r\n \"success\",\r\n \"Succeeded\",\r\n \"Operation is successfully!\"\r\n );\r\n this.HandleSearch();\r\n this.HandleClear();\r\n }\r\n },\r\n (error) => {\r\n this.setState({ isLoading: false });\r\n this.props.showMessage(\"error\", \"Error\", error);\r\n }\r\n );\r\n };\r\n\r\n HandleUpdate = () => {\r\n if (!this.Validate()) {\r\n return;\r\n }\r\n\r\n this.setState({ isLoading: true });\r\n Proxy.POST(\r\n \"/prepaidapi/v1.0/OnusBin/Update\",\r\n this.state.model,\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n if (!responseData.IsSucceeded) {\r\n this.props.showMessage(\r\n \"error\",\r\n \"Error\",\r\n responseData.ErrorDescription\r\n );\r\n return;\r\n }\r\n if (responseData.Item !== null) {\r\n this.setState({ model: { ...this.initialModel }, index: -1 });\r\n this.props.showMessage(\r\n \"success\",\r\n \"Succeeded\",\r\n \"Operation is successfully!\"\r\n );\r\n this.HandleSearch();\r\n this.HandleClear();\r\n }\r\n },\r\n (error) => {\r\n this.setState({ isLoading: false });\r\n this.props.showMessage(\"error\", \"Error\", error);\r\n }\r\n );\r\n };\r\n\r\n Validate = () => {\r\n const { model, vModel } = this.state;\r\n var errorList = [];\r\n const { showValidationErrors } = this.props;\r\n\r\n\t vModel.Bin = model.Bin == null || model.Bin == \"\" || model.Bin == undefined;\r\n if (vModel.Bin) {\r\n errorList.push(\"Bin cannot be empty.\");\r\n }\r\n\r\n vModel.Description =\r\n model.Description == null ||\r\n model.Description == \"\" ||\r\n model.Description == undefined;\r\n if (vModel.Description) {\r\n errorList.push(\"Description cannot be empty.\");\r\n }\r\n\r\n vModel.KeyProfileId =\r\n model.KeyProfileId == null ||\r\n model.KeyProfileId == 0 ||\r\n model.KeyProfileId == undefined;\r\n if (!model.KeyProfileId) {\r\n errorList.push(\"KeyProfileId cannot be empty.\");\r\n }\r\n\r\n vModel.CardBrandId =\r\n model.CardBrandId == null ||\r\n model.CardBrandId == 0 ||\r\n model.CardBrandId == undefined;\r\n if (vModel.CardBrandId) {\r\n errorList.push(\"CardBrandId cannot be empty.\");\r\n }\r\n\r\n vModel.InstantEmvProfileCode =\r\n model.InstantEmvProfileCode == null ||\r\n model.InstantEmvProfileCode == \"\" ||\r\n model.InstantEmvProfileCode == undefined;\r\n if (vModel.InstantEmvProfileCode) {\r\n errorList.push(\"Card Issuance Chip Code cannot be empty.\");\r\n }\r\n\r\n vModel.InstantChipProfileCode =\r\n model.InstantChipProfileCode == null ||\r\n model.InstantChipProfileCode == \"\" ||\r\n model.InstantChipProfileCode == undefined;\r\n if (vModel.InstantChipProfileCode) {\r\n errorList.push(\"Chip Profile Code cannot be empty.\");\r\n }\r\n\r\n if (errorList.length > 0) {\r\n showValidationErrors(errorList);\r\n return false;\r\n }\r\n return true;\r\n };\r\n\r\n HandleDelete = () => {\r\n this.setState({ isLoading: true });\r\n Proxy.POST(\r\n \"/prepaidapi/v1.0/OnusBin/Delete\",\r\n this.state.model,\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n if (!responseData.IsSucceeded) {\r\n this.props.showMessage(\r\n \"error\",\r\n \"Error\",\r\n responseData.ErrorDescription\r\n );\r\n return;\r\n }\r\n this.setState({ model: { ...this.initialModel }, index: -1 });\r\n this.props.showMessage(\"success\", \"Succeeded\", \"Deleted successfully!\");\r\n this.HandleSearch();\r\n },\r\n (error) => {\r\n this.setState({ isLoading: false });\r\n this.props.showMessage(\"error\", \"Error\", error);\r\n }\r\n );\r\n };\r\n\r\n RowSelected = (index) => {\r\n let { list } = this.state;\r\n const tempModel = list[index];\r\n if (list[index].CardRequestId) {\r\n tempModel.Id = list[index].Id;\r\n }\r\n this.setState({ isEdit: true, model: tempModel, index });\r\n };\r\n\r\n render() {\r\n const { Disabled } = this.props;\r\n const { alert, model, list, isLoading, index, vModel } = this.state;\r\n\r\n return (\r\n
\r\n \r\n\r\n {alert}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\t\t\t\t\t\t\t\t \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\nOnusBinDefiniton.propTypes = {\r\n classes: PropTypes.object.isRequired,\r\n Disabled: PropTypes.bool,\r\n};\r\n\r\nexport default withArtifex(OnusBinDefiniton, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericCheckInput, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\n\r\nclass PlasticTypeDefinition extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t};\r\n\r\n\t\tthis.emptyModel = {};\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tvModel: {},\r\n\t\t\tlist: [],\r\n\t\t\tisEdit: false,\r\n\t\t\tisLoading: false,\r\n\t\t\tindex: -1\r\n\t\t};\r\n\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : undefined,\r\n\t\t};\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\r\n\t\tthis.maxLength40 = { maxLength: 40 };\r\n\t\tthis.maxLength25 = { maxLength: 25 };\r\n\t\tthis.maxLength3 = { maxLength: 3 };\r\n\t\tthis.maxLength128 = { maxLength: 128 };\r\n\t\tthis.maxLength8 = { maxLength: 8 };\r\n\t\tthis.maxLength1 = { maxLength: 1 };\r\n\t\tthis.maxLength2 = { maxLength: 2 };\r\n\t\tthis.maxLength20 = { maxLength: 20 };\r\n\t\tthis.maxLength10 = { maxLength: 10 };\r\n\t\tthis.maxLength14 = { maxLength: 14 };\r\n\t\tthis.maxLength5 = { maxLength: 5 };\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"UniqueClient.ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Plastic Name\",\r\n\t\t\t\taccessor: \"PlasticName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Plastic Code\",\r\n\t\t\t\taccessor: \"PlasticCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Product Type\",\r\n\t\t\t\taccessor: \"ProductType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Service Code\",\r\n\t\t\t\taccessor: \"ServiceCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Expiry Period\",\r\n\t\t\t\taccessor: \"ExpiryPeriod\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Bulk Delivery Location Id\",\r\n\t\t\t\taccessor: \"BulkDeliveryLocationId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Emboss Center Code\",\r\n\t\t\t\taccessor: \"CardEmbossCenterCode\"\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"Card Type\",\r\n\t\t\t\taccessor: \"CardType\"\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"Customer Service Phone Number\",\r\n\t\t\t\taccessor: \"CustomerServicePhoneNumber\"\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"Return Address1\",\r\n\t\t\t\taccessor: \"ReturnAddress1\"\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"Return Address2\",\r\n\t\t\t\taccessor: \"ReturnAddress2\"\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"Return City\",\r\n\t\t\t\taccessor: \"ReturnCity\"\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"Return Country Code\",\r\n\t\t\t\taccessor: \"ReturnCountryCode\"\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"Return Post Code\",\r\n\t\t\t\taccessor: \"ReturnPostCode\"\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"Return Provience Code\",\r\n\t\t\t\taccessor: \"ReturnProvienceCode\"\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"Service Code\",\r\n\t\t\t\taccessor: \"ServiceCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Plastic Language\",\r\n\t\t\t\taccessor: \"PlasticLanguage\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Image Code\",\r\n\t\t\t\taccessor: \"CardImageCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Instant Image Code\",\r\n\t\t\t\taccessor: \"InstantArtWorkCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Emv\",\r\n\t\t\t\taccessor: \"IsEmv\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value ? \"Yes\" : \"No\"}
\r\n\t\t\t\t),\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"IsContactless\",\r\n\t\t\t\taccessor: \"IsContactless\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value ? \"Yes\" : \"No\"}
\r\n\t\t\t\t),\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Has Bulk Delivery\",\r\n\t\t\t\taccessor: \"HasBulkDelivery\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value ? \"Yes\" : \"No\"}
\r\n\t\t\t\t),\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Has Qr Code\",\r\n\t\t\t\taccessor: \"HasQrCode\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value ? \"Yes\" : \"No\"}
\r\n\t\t\t\t),\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Instant Card Issuance Emboss Code\",\r\n\t\t\t\taccessor: \"InstantCardIssuanceEmbossCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Instant or Bulk\",\r\n\t\t\t\taccessor: \"InstantOrBulk\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value ? \"Instant\" : \"Bulk\"}
\r\n\t\t\t\t),\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Status\",\r\n\t\t\t\taccessor: \"StatusId\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{this.renderSwitch(row.value)}
\r\n\t\t\t\t),\r\n\t\t\t}\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Plastic Type Definition\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID MANAGEMENT\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, vModel: {}, isEdit: false, index: -1 });\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/PlasticType/Search\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ list: responseData.Item || [] });\r\n\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleUpdate = (workflowId, after) => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/prepaidapi/v1.0/PlasticType/Update\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (after) after();\r\n\t\t\t\tthis.HandleClear();\r\n\t\t\t\tthis.HandleSearch();\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Updated successfully!\");\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t},\r\n\t\t\tworkflowId\r\n\t\t);\r\n\t}\r\n\r\n\tHandleDelete = () => {\r\n\t\tthis.ShowConfirmMessage(\"warning\", \"Delete\", \"Are you sure to delete this record?\", () => {\r\n\t\t\tthis.setState({ isLoading: true, alert: \"\" });\r\n\t\t\tProxy.POST(\"/prepaidapi/v1.0/PlasticType/Delete\",\r\n\t\t\t\t{ Id: this.state.model.Id },\r\n\t\t\t\t(responseData) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.HandleClear();\r\n\t\t\t\t\tthis.HandleSearch();\r\n\t\t\t\t\tthis.ShowMessage(\"success\", \"Deleted successfully!\");\r\n\t\t\t\t},\r\n\t\t\t\t(error) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t});\r\n\t}\r\n\r\n\tHandleSubmit = (workflowId, after) => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/prepaidapi/v1.0/PlasticType/Insert\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (after) after();\r\n\t\t\t\tthis.HandleClear();\r\n\t\t\t\tthis.HandleSearch();\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Added successfully!\");\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t},\r\n\t\t\tworkflowId\r\n\t\t);\r\n\t}\r\n\r\n\r\n\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar Messages = [];\r\n\r\n\t\tif (!model.UniqueClientId) {\r\n\t\t\tMessages.push(\"Client cannot be empty.\");\r\n\t\t\tvModel.UniqueClientId = true;\r\n\t\t}\r\n\r\n\t\tif (!model.PlasticName) {\r\n\t\t\tMessages.push(\"Plastic Name cannot be empty.\");\r\n\t\t\tvModel.PlasticName = true;\r\n\t\t}\r\n\r\n\t\tif (!model.PlasticCode) {\r\n\t\t\tMessages.push(\"Plastic Code cannot be empty\");\r\n\t\t\tvModel.PlasticCode = true;\r\n\t\t}\r\n\r\n\t\tif (!model.ProductType) {\r\n\t\t\tMessages.push(\"Product Type cannot be empty\");\r\n\t\t\tvModel.ProductType = true;\r\n\t\t}\r\n\r\n\t\tif (!model.CardType) {\r\n\t\t\tMessages.push(\"Card Type cannot be empty\");\r\n\t\t\tvModel.CardType = true;\r\n\t\t}\r\n\r\n\t\tif (!model.ServiceCode) {\r\n\t\t\tMessages.push(\"Service Code cannot be empty\");\r\n\t\t\tvModel.ServiceCode = true;\r\n\t\t}\r\n\r\n\t\tif (!model.ExpiryPeriod) {\r\n\t\t\tMessages.push(\"Expiry Period cannot be empty\");\r\n\t\t\tvModel.ExpiryPeriod = true;\r\n\t\t}\r\n\r\n\t\tif (!model.ReturnAddress1) {\r\n\t\t\tMessages.push(\"Return Address1 cannot be empty\");\r\n\t\t\tvModel.ReturnAddress1 = true;\r\n\t\t}\r\n\r\n\t\tif (!model.ReturnCity) {\r\n\t\t\tMessages.push(\"Return City cannot be empty\");\r\n\t\t\tvModel.ReturnCity = true;\r\n\t\t}\r\n\t\tif (!model.ReturnCountryCode) {\r\n\t\t\tMessages.push(\"Return Country Code cannot be empty\");\r\n\t\t\tvModel.ReturnCountryCode = true;\r\n\t\t}\r\n\t\tif (!model.ReturnPostCode) {\r\n\t\t\tMessages.push(\"Return Post Code cannot be empty\");\r\n\t\t\tvModel.ReturnPostCode = true;\r\n\t\t}\r\n\t\tif (!model.ReturnProvienceCode) {\r\n\t\t\tMessages.push(\"Return Provience Code cannot be empty\");\r\n\t\t\tvModel.ReturnProvienceCode = true;\r\n\t\t}\r\n\t\tif (!model.ServiceCode) {\r\n\t\t\tMessages.push(\"Service Code cannot be empty\");\r\n\t\t\tvModel.ServiceCode = true;\r\n\t\t}\r\n\t\tif (!model.PlasticLanguage) {\r\n\t\t\tMessages.push(\"Plastic Language cannot be empty\");\r\n\t\t\tvModel.PlasticLanguage = true;\r\n\t\t}\r\n\t\tif (!model.BulkDeliveryLocationId) {\r\n\t\t\tMessages.push(\"Bulk Delivery Location Id cannot be empty\");\r\n\t\t\tvModel.BulkDeliveryLocationId = true;\r\n\t\t}\r\n\t\tif (!model.BulkDeliveryLocationId) {\r\n\t\t\tMessages.push(\"Bulk Delivery Location Id cannot be empty\");\r\n\t\t\tvModel.BulkDeliveryLocationId = true;\r\n\t\t}\r\n\t\tif (!model.CardEmbossCenterCode) {\r\n\t\t\tMessages.push(\"Card Emboss Center Code cannot be empty\");\r\n\t\t\tvModel.CardEmbossCenterCode = true;\r\n\t\t}\r\n\t\tif (!model.CustomerServicePhoneNumber) {\r\n\t\t\tMessages.push(\"Card Emboss Center Code cannot be empty\");\r\n\t\t\tvModel.CustomerServicePhoneNumber = true;\r\n\t\t}\r\n\r\n\t\tif (Messages.length > 0) {\r\n\t\t\tshowValidationErrors(Messages);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn true;\r\n\t}\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tvar tempModel = this.state.list[index];\r\n\t\tthis.setState({ isEdit: true, model: tempModel, index });\r\n\t}\r\n\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: null })} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\r\n\trenderSwitch(value) {\r\n\t\tswitch(value) {\r\n\t\t case 11111:\r\n\t\t\t return 'Approved';\r\n\t\t case 11112:\r\n\t\t\t return 'Rejected';\r\n\t\t case 11113:\r\n\t\t\t return 'Unapproved';\r\n\t\t default:\r\n\t\t\t return '';\r\n\t\t}\r\n\t }\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, isLoading, index, vModel } = this.state;\r\n\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t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\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nPlasticTypeDefinition.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(PlasticTypeDefinition, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport { EditIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericCheckInput, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nclass ClientProductManagement extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tvModel: {},\r\n\t\t\tlist: [],\r\n\t\t\tisEdit: false,\r\n\t\t\tisLoading: false,\r\n\t\t\tindex: -1,\r\n\t\t};\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : undefined,\r\n\t\t};\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\r\n\t\tthis.parameterClientProfileParameter = {};\r\n\t\tthis.parameterDCBankProfileParameter = {};\r\n\r\n\t\tthis.maxLength26 = { maxLength: 26 };\r\n\t\tthis.maxLength128 = { maxLength: 128 };\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t this.setState({ isEdit: true, model: { ...row.original } })} />\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\twidth: 50\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Product Id\",\r\n\t\t\t\taccessor: \"Id\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Product Name\",\r\n\t\t\t\taccessor: \"ProductName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Program Name\",\r\n\t\t\t\taccessor: \"ProgramName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"UniqueClient.ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Bin Range Profile\",\r\n\t\t\t\taccessor: \"BinRangeProfile.ProfileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Plastic Type\",\r\n\t\t\t\taccessor: \"PlasticType.PlasticName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Product Brand\",\r\n\t\t\t\taccessor: \"ProductBrand.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is No Name Product\",\r\n\t\t\t\taccessor: \"IsNoNameProduct\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\trow.value ? \"Yes\" : \"No\"\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"No Name Emboss Name\",\r\n\t\t\t\taccessor: \"NoNameEmbossName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Restriction Profile\",\r\n\t\t\t\taccessor: \"RestrictionProfile.ProfileName\"\r\n\t\t\t},\r\n\t\t\t// {\r\n\t\t\t// \tHeader: \"Client Restriction Profile\",\r\n\t\t\t// \taccessor: \"ClientRestrictionProfile.ProfileName\"\r\n\t\t\t// },\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Fee Profile\",\r\n\t\t\t\taccessor: \"FeeProfile.ProfileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Fee Profile\",\r\n\t\t\t\taccessor: \"ClientFeeProfile.ProfileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Fee Profile\",\r\n\t\t\t\taccessor: \"CardFeeProfile.ProfileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Card Fee Profile\",\r\n\t\t\t\taccessor: \"ClientCardFeeProfile.ProfileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Limit Profile\",\r\n\t\t\t\taccessor: \"LimitProfile.ProfileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Limit Profile\",\r\n\t\t\t\taccessor: \"ClientLimitProfile.ProfileName\"\r\n\t\t\t},\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Product Profile\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\r\n\t\tif (model.UniqueClientId > 0) {\r\n\t\t\tmodel.RestrictionProfileId = null;\r\n\t\t\tmodel.FeeProfileId = null;\r\n\t\t\tmodel.CardFeeProfileId = null;\r\n\t\t}\r\n\r\n\t\tif (model.UniqueClientId === -1) {\r\n\t\t\tmodel.ClientRestrictionProfileId = null;\r\n\t\t\tmodel.ClientFeeProfileId = null;\r\n\t\t\tmodel.ClientCardFeeProfileId = null;\r\n\t\t}\r\n\r\n\t\tif (!model.AutoRenewCard) {\r\n\t\t\tmodel.AutoRenewalPeriodMonth = null;\r\n\t\t}\r\n\r\n\t\tif (!model.IsNoNameProduct) {\r\n\t\t\tmodel.NoNameEmbossName = null;\r\n\t\t}\r\n\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, isEdit: false, index: -1 });\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Product/Search\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ list: responseData.Item || [] });\r\n\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleUpdate = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/prepaidapi/v1.0/Product/ClientUpdate\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.HandleClear();\r\n\t\t\t\tthis.HandleSearch();\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Operation is successfully!\");\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\r\n\t\tif (!model.UniqueClientId) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Client not selected\", \"Select the Client to continue.\");\r\n\t\t\tvModel.UniqueClientId = true;\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (model.IsNoNameProduct && !model.NoNameEmbossName) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"No Name Emboss Name is empty\", \"Enter the No Name Emboss Name to continue.\");\r\n\t\t\tvModel.NoNameEmbossName = true;\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\r\n\tGetClientProfileParameter = () => {\r\n\t\tthis.parameterDCBankProfileParameter.IsDefaultProfile = false;\r\n\t\tthis.parameterDCBankProfileParameter.UniqueClientId = this.state.model.UniqueClientId;\r\n\t\treturn this.parameterDCBankProfileParameter;\r\n\t}\r\n\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: null })} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes, Disabled } = this.props;\r\n\t\tconst { alert, model, list, isLoading, index, vModel } = this.state;\r\n\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\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: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(ClientProductManagement, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport {\r\n\tGenericSelectInput,\r\n\tGenericDateInput,\r\n\tGenericExpansionPanel,\r\n\tGenericGrid,\r\n\tGenericAlert,\r\n} from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\n\r\nclass CorporateSummaryReportbyProduct extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient()\r\n\t\t\t\t? ClientHelper.GetClientRowId()\r\n\t\t\t\t: undefined,\r\n\t\t\tIsMainCard: true,\r\n\t\t\tProgramCode: \"\",\r\n\t\t\tFromDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tToDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tvModel: {},\r\n\t\t};\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.maxLength6 = { maxLength: 6 };\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient()\r\n\t\t\t\t? ClientHelper.GetClientId()\r\n\t\t\t\t: undefined,\r\n\t\t};\r\n\r\n\t\tthis.parameterProduct = {};\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"UniqueClientName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Product Profile\",\r\n\t\t\t\taccessor: \"ProductProfile\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Start Date\",\r\n\t\t\t\taccessor: \"FromDate\",\r\n\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"End Date\",\r\n\t\t\t\taccessor: \"ToDate\",\r\n\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Approved IDP Count\",\r\n\t\t\t\taccessor: \"ApprovedIDPTrxCount\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Approved IDP Amount\",\r\n\t\t\t\taccessor: \"ApprovedIDPTrxAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Approved SCD Count\",\r\n\t\t\t\taccessor: \"ApprovedSCDTrxCount\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Approved SCD Amount\",\r\n\t\t\t\taccessor: \"ApprovedSCDTrxAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Approved IDP and SCD Count\",\r\n\t\t\t\taccessor: \"TotalApprovedIDPandSCDTransactionCount\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Declined IDP Count\",\r\n\t\t\t\taccessor: \"DeclinedIDPTrxCount\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Declined SCD Count\",\r\n\t\t\t\taccessor: \"DeclinedSCDTrxCount\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Declined IDP and SCD Count\",\r\n\t\t\t\taccessor: \"TotalDeclinedIDPandSCDTrxCount\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Approved and Total Declined IDP and SCD Count\",\r\n\t\t\t\taccessor: \"TotalApprovedAndDeclinedIDPandSCDTrxCount\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"New Cards Count\",\r\n\t\t\t\taccessor: \"TotalNewCardsCount\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reload Count\",\r\n\t\t\t\taccessor: \"TotalReloadCardsCount\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total New And Reload Card Count\",\r\n\t\t\t\taccessor: \"TotalNewAndReloadLoadsCount\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total New And Reload Amount\",\r\n\t\t\t\taccessor: \"TotalNewAndReloadLoadsAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Directcash Loads\",\r\n\t\t\t\taccessor: \"DirectcashLoads\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Balance CSR\",\r\n\t\t\t\taccessor: \"BalanceCSR\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Balance IVR\",\r\n\t\t\t\taccessor: \"BalanceIVR\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Balance Inquiry\",\r\n\t\t\t\taccessor: \"BalanceInquiry\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Monthly Fee\",\r\n\t\t\t\taccessor: \"MonthlyFee\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Bill Payment\",\r\n\t\t\t\taccessor: \"BillPayment\",\r\n\t\t\t},\r\n\r\n\t\t];\r\n\r\n\t\tthis.trxTable = React.createRef();\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Corporate Summary Report by Product\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t}\r\n\r\n\tshowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t\t),\r\n\t\t});\r\n\t};\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tisEdit: false,\r\n\t\t\tindex: -1,\r\n\t\t});\r\n\t};\r\n\r\n\tHandleSearch = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel.ProgramCode = this.ProgramCode;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Product/GetCorporateSummaryReportbyProduct\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\r\n\t\t\t\t\t\t\"error\",\r\n\t\t\t\t\t\t\"Error\",\r\n\t\t\t\t\t\tresponseData.ErrorDescription\r\n\t\t\t\t\t);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\r\n\t\tvar errorList = [];\r\n\r\n\t\tvModel.FromDate = !model.FromDate;\r\n\t\tif (vModel.FromDate) errorList.push(\"From Date cannot be empty!\");\r\n\r\n\t\tvModel.ToDate = !model.ToDate;\r\n\t\tif (vModel.ToDate) errorList.push(\"To Date cannot be empty!\");\r\n\r\n\t\tvModel.UniqueClientId = !model.UniqueClientId;\r\n\t\tif (vModel.UniqueClientId) errorList.push(\"Select the Client to continue.\");\r\n\r\n\t\tvModel.ProductId = !model.ProductId;\r\n\t\tif (vModel.ProductId) errorList.push(\"Select the Product to continue.\");\r\n\r\n\t\tif (errorList.length > 0) {\r\n\t\t\tshowValidationErrors(errorList);\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t};\r\n\r\n\tGetProductParameter = () => {\r\n\t\tthis.parameterProduct.UniqueClientId = this.state.model.UniqueClientId;\r\n\t\treturn this.parameterProduct;\r\n\t}\r\n\r\n\tRenderItemProduct = (d) => {\r\n\t\tthis.renderItemProduct = d.Name;\r\n\t\tif (d.UniqueClient)\r\n\t\t\tthis.renderItemProduct += ` - (${d.UniqueClient.UniqueClientId} - ${d.UniqueClient.ClientName})`;\r\n\t\treturn this.renderItemProduct;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, isLoading } = this.state;\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\tTextValueMember=\"Name\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\t\t\tDefaultIndex={IsClient ? 0 : -1}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCorporateSummaryReportbyProduct.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool,\r\n};\r\n\r\nexport default withArtifex(CorporateSummaryReportbyProduct, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericCheckInput, GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\nimport kycManualPhotoDefinitionStyle from \"assets/jss/material-dashboard-pro-react/views/kycManualPhotoDefinitionStyle.jsx\";\r\nimport GenericCardMedia from \"views/Components/Generic/GenericCardMedia.jsx\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\n\r\n\r\nconst galerydefault = require(\"assets/img/galerydefault-image.png\");\r\n\r\nclass ProductDefinition extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient()\r\n\t\t\t? ClientHelper.GetClientRowId()\r\n\t\t\t: 0,\r\n\t\t\tPlasticTypeId: 0,\r\n\t\t\tProductTypeId: 0,\r\n\t\t\tProductBrandId: 0\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tvModel: {},\r\n\t\t\tlist: [],\r\n\t\t\tfileInfoModel: {},\r\n\t\t\tisEdit: false,\r\n\t\t\tisLoading: false,\r\n\t\t\tindex: -1\r\n\t\t};\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\r\n\t\tthis.parameterProductBrandId = { ParameterCode: \"Brand\" };\r\n\t\tthis.parameterPhysicalTypeId = { ParameterCode: \"CardPhysicalType\" };\r\n\r\n\t\tthis.parameterClientProfile = {};\r\n\t\tthis.parameterDCBankProfile = {};\r\n\t\tthis.isBackOffice = ClientHelper.IsBackOffice();\r\n\r\n\t\tthis.maxLength26 = { maxLength: 26 };\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Product Name\",\r\n\t\t\t\taccessor: \"ProductName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"UniqueClient.ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Product Type\",\r\n\t\t\t\taccessor: \"ProductType.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Bin Range Profile\",\r\n\t\t\t\taccessor: \"BinRangeProfile.ProfileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Plastic Type\",\r\n\t\t\t\taccessor: \"PlasticType.PlasticName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Product Brand\",\r\n\t\t\t\taccessor: \"ProductBrand.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is No Name Product\",\r\n\t\t\t\taccessor: \"IsNoNameProduct\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\trow.value ? \"Yes\" : \"No\"\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"No Name Emboss Name\",\r\n\t\t\t\taccessor: \"NoNameEmbossName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Interest Profile\",\r\n\t\t\t\taccessor: \"InterestProfile.ProfileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Restriction Profile\",\r\n\t\t\t\taccessor: \"RestrictionProfile.ProfileName\"\r\n\t\t\t},\r\n\t\t\t// {\r\n\t\t\t// \tHeader: \"Client Restriction Profile\",\r\n\t\t\t// \taccessor: \"ClientRestrictionProfile.ProfileName\"\r\n\t\t\t// },\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Limit Profile\",\r\n\t\t\t\taccessor: \"LimitProfile.ProfileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Limit Profile\",\r\n\t\t\t\taccessor: \"ClientLimitProfile.ProfileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Fee Profile\",\r\n\t\t\t\taccessor: \"FeeProfile.ProfileName\"\r\n\t\t\t},\r\n\t\t\t// {\r\n\t\t\t// \tHeader: \"Client Fee Profile\",\r\n\t\t\t// \taccessor: \"ClientFeeProfile.ProfileName\"\r\n\t\t\t// },\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Fee Profile\",\r\n\t\t\t\taccessor: \"CardFeeProfile.ProfileName\"\r\n\t\t\t},\r\n\t\t\t// {\r\n\t\t\t// \tHeader: \"Client Card Fee Profile\",\r\n\t\t\t// \taccessor: \"ClientCardFeeProfile.ProfileName\"\r\n\t\t\t// },\r\n\t\t\t{\r\n\t\t\t\tHeader: \"FX Profile\",\r\n\t\t\t\taccessor: \"FxProfile.ProfileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Auto Renew Card\",\r\n\t\t\t\taccessor: \"AutoRenewCard\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\trow.value ? \"Yes\" : \"No\"\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Auto Renewal Period (Month)\",\r\n\t\t\t\taccessor: \"AutoRenewalPeriodMonth\"\r\n\t\t\t},\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Product Definition\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t}\r\n\thandleChange = async (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\r\n\t\tvar responseData = await ExecuteApiPost(\"/prepaidapi/v1.0/Product/GetProductImage\", { PlasticTypeId: model.PlasticTypeId, UniqueClientId: model.UniqueClientId });\r\n\t\tvar fileInfoModel = { ...this.state.fileInfoModel }\r\n\r\n\t\tif (responseData == null || responseData == undefined) {\r\n\t\t\tfileInfoModel.StoredImage = galerydefault;\r\n\t\t\tthis.setState({ model });\r\n\t\t}\r\n\t\tif (responseData != null || responseData != undefined) {\r\n\t\t\tvar cardNumber = document.getElementById(\"cardNumber\").textContent = \"5032 9334 3764 9846\";\r\n cardNumber = document.getElementById(\"cardNumber\").style.position = \"absolute\";\r\n cardNumber = document.getElementById(\"cardNumber\").style.left = \"20px\";\r\n cardNumber = document.getElementById(\"cardNumber\").style.bottom = \"55px\";\r\n cardNumber = document.getElementById(\"cardNumber\").style.color = \"white\";\r\n cardNumber = document.getElementById(\"cardNumber\").style.fontSize = \"15px\";\r\n\r\n var cardName = document.getElementById(\"cardName\").textContent = \"Alexander Theodore\";\r\n cardName = document.getElementById(\"cardName\").style.position = \"absolute\";\r\n cardName = document.getElementById(\"cardName\").style.left = \"20px\";\r\n cardName = document.getElementById(\"cardName\").style.bottom = \"20px\";\r\n cardName = document.getElementById(\"cardName\").style.color = \"white\";\r\n cardName = document.getElementById(\"cardName\").style.fontSize = \"15px\";\r\n\r\n var cardDate = document.getElementById(\"cardDate\").textContent = \"09/19\";\r\n cardDate = document.getElementById(\"cardDate\").style.position = \"absolute\";\r\n cardDate = document.getElementById(\"cardDate\").style.left = \"160px\";\r\n cardDate = document.getElementById(\"cardDate\").style.bottom = \"30px\";\r\n cardDate = document.getElementById(\"cardDate\").style.color = \"white\";\r\n cardDate = document.getElementById(\"cardDate\").style.fontSize = \"15px\";\r\n\r\n if (responseData.CardChipTypeId == 11100) {\r\n var documentry = document.getElementById(\"cardChipType\").style.width = \"50px\";\r\n documentry = document.getElementById(\"cardChipType\").style.height = \"40px\";\r\n documentry = document.getElementById(\"cardChipType\").style.left = \"20px\";\r\n documentry = document.getElementById(\"cardChipType\").style.bottom = \"80px\";\r\n documentry = document.getElementById(\"cardChipType\").style.position = \"absolute\";\r\n documentry = document.getElementById(\"cardChipType\").style.borderRadius = \"5px\";\r\n documentry = document.getElementById(\"cardChipType\").style.backgroundColor = \"white\";\r\n }\r\n\t else {\r\n var documentry = document.getElementById(\"cardChipType\").style.width = \"\";\r\n documentry = document.getElementById(\"cardChipType\").style.height = \"\";\r\n documentry = document.getElementById(\"cardChipType\").style.left = \"\";\r\n documentry = document.getElementById(\"cardChipType\").style.bottom = \"\";\r\n documentry = document.getElementById(\"cardChipType\").style.position = \"\";\r\n documentry = document.getElementById(\"cardChipType\").style.borderRadius = \"\";\r\n documentry = document.getElementById(\"cardChipType\").style.backgroundColor = \"\";\r\n }\r\n\r\n if (responseData.CardBrandId == 3400) {\r\n var documentry2 = document.getElementById(\"cardBrandId\").style.width = \"80px\";\r\n documentry2 = document.getElementById(\"cardBrandId\").style.height = \"37px\";\r\n documentry2 = document.getElementById(\"cardBrandId\").style.left = \"235px\";\r\n documentry2 = document.getElementById(\"cardBrandId\").style.bottom = \"15px\";\r\n documentry2 = document.getElementById(\"cardBrandId\").style.position = \"absolute\";\r\n documentry2 = document.getElementById(\"cardBrandId\").style.borderRadius = \"10px\";\r\n documentry2 = document.getElementById(\"cardBrandId\").style.backgroundColor = \"white\";\r\n }\r\n\t else if (responseData.CardBrandId == 3403) {\r\n var documentry2 = document.getElementById(\"cardBrandId\").style.width = \"48px\";\r\n documentry2 = document.getElementById(\"cardBrandId\").style.height = \"48px\";\r\n documentry2 = document.getElementById(\"cardBrandId\").style.left = \"265px\";\r\n documentry2 = document.getElementById(\"cardBrandId\").style.bottom = \"15px\";\r\n documentry2 = document.getElementById(\"cardBrandId\").style.position = \"absolute\";\r\n documentry2 = document.getElementById(\"cardBrandId\").style.borderRadius = \"10px\";\r\n documentry2 = document.getElementById(\"cardBrandId\").style.backgroundColor = \"white\";\r\n }\r\n\t else if (responseData.CardBrandId == 3401) {\r\n var documentry2 = document.getElementById(\"cardBrandId\").style.width = \"80px\";\r\n documentry2 = document.getElementById(\"cardBrandId\").style.height = \"55px\";\r\n documentry2 = document.getElementById(\"cardBrandId\").style.left = \"235px\";\r\n documentry2 = document.getElementById(\"cardBrandId\").style.bottom = \"15px\";\r\n documentry2 = document.getElementById(\"cardBrandId\").style.position = \"absolute\";\r\n documentry2 = document.getElementById(\"cardBrandId\").style.borderRadius = \"30px\";\r\n documentry2 = document.getElementById(\"cardBrandId\").style.backgroundColor = \"white\";\r\n }\r\n\t else {\r\n var documentry2 = document.getElementById(\"cardBrandId\").style.width = \"\";\r\n documentry2 = document.getElementById(\"cardBrandId\").style.height = \"\";\r\n documentry2 = document.getElementById(\"cardBrandId\").style.left = \"\";\r\n documentry2 = document.getElementById(\"cardBrandId\").style.bottom = \"\";\r\n documentry2 = document.getElementById(\"cardBrandId\").style.position = \"\";\r\n documentry2 = document.getElementById(\"cardBrandId\").style.borderRadius = \"\";\r\n documentry2 = document.getElementById(\"cardBrandId\").style.backgroundColor = \"\";\r\n }\r\n\r\n if (responseData.CardContactlessColorTypeId == 11102) {\r\n var documentry3 = document.getElementById(\"cardContactlessColorType\").style.position = \"absolute\";\r\n documentry3 = document.getElementById(\"cardContactlessColorType\").style.width = \"40px\";\r\n documentry3 = document.getElementById(\"cardContactlessColorType\").style.height = \"40px\";\r\n documentry3 = document.getElementById(\"cardContactlessColorType\").style.left = \"275px\";\r\n documentry3 = document.getElementById(\"cardContactlessColorType\").style.bottom = \"100px\";\r\n documentry3 = document.getElementById(\"cardContactlessColorType\").style.borderRadius = \"40px\";\r\n documentry3 = document.getElementById(\"cardContactlessColorType\").style.backgroundColor = \"black\";\r\n }\r\n\t else if (responseData.CardContactlessColorTypeId == 11104) {\r\n var documentry3 = document.getElementById(\"cardContactlessColorType\").style.position = \"absolute\";\r\n documentry3 = document.getElementById(\"cardContactlessColorType\").style.width = \"40px\";\r\n documentry3 = document.getElementById(\"cardContactlessColorType\").style.height = \"40px\";\r\n documentry3 = document.getElementById(\"cardContactlessColorType\").style.left = \"275px\";\r\n documentry3 = document.getElementById(\"cardContactlessColorType\").style.bottom = \"100px\";\r\n documentry3 = document.getElementById(\"cardContactlessColorType\").style.borderRadius = \"40px\";\r\n documentry3 = document.getElementById(\"cardContactlessColorType\").style.backgroundColor = \"white\";\r\n }\r\n\t else {\r\n var documentry3 = document.getElementById(\"cardContactlessColorType\").style.position = \"\";\r\n documentry3 = document.getElementById(\"cardContactlessColorType\").style.width = \"\";\r\n documentry3 = document.getElementById(\"cardContactlessColorType\").style.height = \"\";\r\n documentry3 = document.getElementById(\"cardContactlessColorType\").style.left = \"\";\r\n documentry3 = document.getElementById(\"cardContactlessColorType\").style.bottom = \"\";\r\n documentry3 = document.getElementById(\"cardContactlessColorType\").style.borderRadius = \"\";\r\n documentry3 = document.getElementById(\"cardContactlessColorType\").style.backgroundColor = \"\";\r\n }\r\n\r\n if(responseData.BackgroundColorId == 11105 || responseData.BackgroundColorId == 11109 || responseData.BackgroundColorId == 11107){\r\n document.getElementById(\"cardName\").style.color = \"black\";\r\n document.getElementById(\"cardNumber\").style.color = \"black\";\r\n document.getElementById(\"cardDate\").style.color = \"black\";\r\n }\r\n\t else if(responseData.BackgroundColorId == 11106 || responseData.BackgroundColorId == 11110 || responseData.BackgroundColorId == 11108){\r\n document.getElementById(\"cardName\").style.color = \"white\";\r\n document.getElementById(\"cardNumber\").style.color = \"white\";\r\n document.getElementById(\"cardDate\").style.color = \"white\";\r\n }\r\n\t\t\tthis.setState({ model, fileInfoModel: responseData });\r\n\t\t}\r\n\r\n\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tif (name == \"UniqueClientId\") {\r\n\t\t\tmodel.PlasticTypeId = 0;\r\n\t\t}\r\n\t\tif (name == \"ProductBrandId\" && newValue == null) {\r\n\t\t\tmodel.ProductBrandId = 0;\r\n\t\t}\r\n\t\tif (name == \"ProductTypeId\" && newValue == null) {\r\n\t\t\tmodel.ProductTypeId = 0;\r\n\t\t}\r\n\t\tif (!model.AutoRenewCard) {\r\n\t\t\tmodel.AutoRenewalPeriodMonth = null;\r\n\t\t}\r\n\r\n\t\tif (!model.IsNoNameProduct) {\r\n\t\t\tmodel.NoNameEmbossName = null;\r\n\t\t}\r\n\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, fileInfoModel: {}, vModel: {}, isEdit: false, index: -1 });\r\n\r\n\t\tvar cardNumber = document.getElementById(\"cardNumber\").textContent = \"\";\r\n\t\t\tcardNumber = document.getElementById(\"cardNumber\").style.position = \"\";\r\n\t\t\tcardNumber = document.getElementById(\"cardNumber\").style.left = \"\";\r\n\t\t\tcardNumber = document.getElementById(\"cardNumber\").style.bottom = \"\";\r\n\t\t\tcardNumber = document.getElementById(\"cardNumber\").style.color = \"\";\r\n\t\t\tcardNumber = document.getElementById(\"cardNumber\").style.fontSize = \"\";\r\n\r\n\t\tvar cardName = document.getElementById(\"cardName\").textContent = \"\";\r\n\t\t\tcardName = document.getElementById(\"cardName\").style.position = \"\";\r\n\t\t\tcardName = document.getElementById(\"cardName\").style.left = \"\";\r\n\t\t\tcardName = document.getElementById(\"cardName\").style.bottom = \"\";\r\n\t\t\tcardName = document.getElementById(\"cardName\").style.color = \"\";\r\n\t\t\tcardName = document.getElementById(\"cardName\").style.fontSize = \"\";\r\n\r\n\t\tvar cardDate = document.getElementById(\"cardDate\").textContent = \"\";\r\n\t\t\tcardDate = document.getElementById(\"cardDate\").style.position = \"\";\r\n\t\t\tcardDate = document.getElementById(\"cardDate\").style.left = \"\";\r\n\t\t\tcardDate = document.getElementById(\"cardDate\").style.bottom = \"\";\r\n\t\t\tcardDate = document.getElementById(\"cardDate\").style.color = \"\";\r\n\t\t\tcardDate = document.getElementById(\"cardDate\").style.fontSize = \"\";\r\n\r\n\t\tvar documentry = document.getElementById(\"cardChipType\").style.width = \"\";\r\n\t\t\tdocumentry = document.getElementById(\"cardChipType\").style.height = \"\";\r\n\t\t\tdocumentry = document.getElementById(\"cardChipType\").style.left = \"\";\r\n\t\t\tdocumentry = document.getElementById(\"cardChipType\").style.bottom = \"\";\r\n\t\t\tdocumentry = document.getElementById(\"cardChipType\").style.position = \"\";\r\n\t\t\tdocumentry = document.getElementById(\"cardChipType\").style.borderRadius = \"\";\r\n\t\t\tdocumentry = document.getElementById(\"cardChipType\").style.backgroundColor = \"\";\r\n\t\t\r\n\t\tvar documentry2 = document.getElementById(\"cardBrandId\").style.width = \"\";\r\n\t\t\tdocumentry2 = document.getElementById(\"cardBrandId\").style.height = \"\";\r\n\t\t\tdocumentry2 = document.getElementById(\"cardBrandId\").style.left = \"\";\r\n\t\t\tdocumentry2 = document.getElementById(\"cardBrandId\").style.bottom = \"\";\r\n\t\t\tdocumentry2 = document.getElementById(\"cardBrandId\").style.position = \"\";\r\n\t\t\tdocumentry2 = document.getElementById(\"cardBrandId\").style.borderRadius = \"\";\r\n\t\t\tdocumentry2 = document.getElementById(\"cardBrandId\").style.backgroundColor = \"\";\r\n\r\n\t\tvar documentry3 = document.getElementById(\"cardContactlessColorType\").style.position = \"\";\r\n\t\t\tdocumentry3 = document.getElementById(\"cardContactlessColorType\").style.width = \"\";\r\n\t\t\tdocumentry3 = document.getElementById(\"cardContactlessColorType\").style.height = \"\";\r\n\t\t\tdocumentry3 = document.getElementById(\"cardContactlessColorType\").style.left = \"\";\r\n\t\t\tdocumentry3 = document.getElementById(\"cardContactlessColorType\").style.bottom = \"\";\r\n\t\t\tdocumentry3 = document.getElementById(\"cardContactlessColorType\").style.borderRadius = \"\";\r\n\t\t\tdocumentry3 = document.getElementById(\"cardContactlessColorType\").style.backgroundColor = \"\";\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Product/Search\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleSubmit = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/prepaidapi/v1.0/Product/Insert\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ hasChandedFromList: false });\r\n\t\t\t\tthis.HandleSearch();\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Operation successfully completed!\");\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\r\n\t\tthis.HandleClear();\r\n\t}\r\n\r\n\tHandleUpdate = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/prepaidapi/v1.0/Product/Update\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ hasChandedFromList: false });\r\n\t\t\t\tthis.HandleSearch();\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Operation successfully completed!\");\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleDelete = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.GET(\r\n\t\t\t\"/prepaidapi/v1.0/Product/Delete/Id?Id=\" + this.state.model.Id,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.HandleSearch();\r\n\t\t\t\tthis.setState({ model: { ...this.initialModel }, index: -1 });\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Operation successfully completed!\");\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while deleting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tvar Messages = [];\r\n\t\tif (!model.UniqueClientId) {\r\n\t\t\tMessages.push(\"Client Name is empty\");\r\n\t\t\tvModel.UniqueClientId = true;\r\n\t\t}\r\n\t\telse\r\n\t\t\tvModel.UniqueClientId = false;\r\n\r\n\t\tif (!model.ProductName) {\r\n\t\t\tMessages.push(\"Product Name is empty\");\r\n\t\t\tvModel.ProductName = true;\r\n\t\t}\r\n\t\telse\r\n\t\t\tvModel.ProductName = false;\r\n\r\n\t\tif (!model.BinRangeProfileId) {\r\n\t\t\tMessages.push(\"Bin Range Profile not selected\");\r\n\t\t\tvModel.BinRangeProfileId = true;\r\n\t\t}\r\n\t\telse\r\n\t\t\tvModel.BinRangeProfileId = false;\r\n\r\n\t\tif (!model.PlasticTypeId || model.PlasticTypeId == 0) {\r\n\t\t\tMessages.push(\"Plastic Type not selected\");\r\n\t\t\tvModel.PlasticTypeId = true;\r\n\t\t}\r\n\t\telse\r\n\t\t\tvModel.PlasticTypeId = false;\r\n\r\n\t\tif (!model.ProductBrandId || model.ProductBrandId == 0) {\r\n\t\t\tMessages.push(\"Product Brand not selected\");\r\n\t\t\tvModel.ProductBrandId = true;\r\n\t\t}\r\n\t\telse\r\n\t\t\tvModel.ProductBrandId = false;\r\n\r\n\t\tif (!model.ProductTypeId || model.ProductTypeId == 0) {\r\n\t\t\tMessages.push(\"Product Type not selected\");\r\n\t\t\tvModel.ProductTypeId = true;\r\n\t\t}\r\n\t\telse\r\n\t\t\tvModel.ProductTypeId = false;\r\n\r\n\t\tif (model.AutoRenewCard && !model.AutoRenewalPeriodMonth) {\r\n\t\t\tMessages.push(\"Auto Renewal Period (Month) is empty\");\r\n\t\t\tvModel.AutoRenewCard = true;\r\n\t\t}\r\n\t\telse\r\n\t\t\tvModel.AutoRenewCard = false;\r\n\r\n\r\n\t\tif (model.IsNoNameProduct && !model.NoNameEmbossName) {\r\n\t\t\tMessages.push(\"No Name Emboss Name is empty\");\r\n\t\t\tvModel.IsNoNameProduct = true;\r\n\t\t}\r\n\t\telse\r\n\t\t\tvModel.IsNoNameProduct = false;\r\n\r\n\t\tif (!model.CardPhysicalTypeId || model.CardPhysicalTypeId == 0) {\r\n\t\t\tMessages.push(\"Card Physical Type not selected\");\r\n\t\t\tvModel.CardPhysicalTypeId = true;\r\n\t\t}\r\n\t\telse\r\n\t\t\tvModel.CardPhysicalTypeId = false;\r\n\r\n\t\tthis.setState({ vModel });\r\n\t\tif (Messages.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", Messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn true;\r\n\t}\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tthis.setState({ isEdit: true, model: this.state.list[index], index });\r\n\t}\r\n\r\n\tGetDCBankProfileParameter = () => {\r\n\t\tthis.parameterClientProfile.IsDefaultProfile = true;\r\n\t\tthis.parameterClientProfile.UniqueClientId = -1;\r\n\t\treturn this.parameterClientProfile;\r\n\t}\r\n\r\n\tGetClientProfileParameter = () => {\r\n\t\tthis.parameterDCBankProfile.IsDefaultProfile = true;\r\n\t\tthis.parameterDCBankProfile.UniqueClientId = -1;\r\n\t\treturn this.parameterDCBankProfile;\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: null })} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes, Disabled, ExecuteApiPost } = this.props;\r\n\t\tconst { alert, model, vModel, list, isLoading, index, fileInfoModel } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t<>\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\r\n\t\t\t\t 0, ModelFunction: () => model, FillDataFromModel: model => this.setState({ model }), ValidationFunction: this.Validate },\r\n\t\t\t\t\t{ Code: \"Update\", OnClick: this.HandleUpdate, Disabled: Disabled || model.Id === 0, ModelFunction: () => model, FillDataFromModel: model => this.setState({ model }), ValidationFunction: this.Validate },\r\n\t\t\t\t\t{ Code: \"Delete\", OnClick: this.HandleDelete, Disabled: Disabled || model.Id === 0, ModelFunction: () => model, FillDataFromModel: model => this.setState({ model }), ValidationFunction: this.Validate },\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t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ypes.bool\r\n};\r\n\r\nexport default withArtifex(ProductDefinition, kycManualPhotoDefinitionStyle);\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport StringHelper from \"core/StringHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericCheckInput, GenericGrid, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass BinRangeProfile extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tRangeFrom: \"00000000000\",\r\n\t\t\tRangeTo: \"00000000000\",\r\n\t\t\tBinId: 0,\r\n\t\t\tBinName: \"\",\r\n\t\t\tBin: {},\r\n\t\t\tHasBinRange: false,\r\n\t\t\tIsRecordValid: true,\r\n\t\t\tProfile: {},\r\n\t\t\tIndex: 0\r\n\t\t};\r\n\r\n\t\tthis.initialProfileModel = {\r\n\t\t\tId: 0,\r\n\t\t\tIsRecordValid: true,\r\n\t\t\tProfileName: \"\"\r\n\t\t};\r\n\t\tthis.state = {\r\n\t\t\tprofileModel: { ...this.initialProfileModel },\r\n\t\t\tprofileList: [],\r\n\t\t\tprofileIndex: -1,\r\n\t\t\tdetailModel: { ...this.initialModel },\r\n\t\t\tfullDetailList: [],\r\n\t\t\tdetailList: [],\r\n\t\t\tdetailIndex: -1,\r\n\t\t\tvModel: {},\r\n\t\t\thasChangedProfile: false,\r\n\t\t\thasChangedDetail: false,\r\n\t\t\thasChandedFromList: false,\r\n\t\t\tisEditProfile: false,\r\n\t\t\tisEditDetail: false,\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.ColumnsDataProfile = [];\r\n\r\n\t\tthis.ColumnsDataDetail = [];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Bin Range Profile Defination\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t\tthis.GetColumnsProfile();\r\n\t\tthis.GetColumnsDetail();\r\n\t}\r\n\r\n\tGetColumnsProfile = () => {\r\n\t\tthis.ColumnsDataProfile = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date\",\r\n\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\ttype: GridColumnType.Date,\r\n\t\t\t\twidth: 200\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Profile Name\",\r\n\t\t\t\taccessor: \"ProfileName\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.forceUpdate();\r\n\t}\r\n\r\n\tGetColumnsDetail = () => {\r\n\t\tthis.ColumnsDataDetail = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date\",\r\n\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\ttype: GridColumnType.Date,\r\n\t\t\t\twidth: 200\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Profile Name\",\r\n\t\t\t\taccessor: \"Profile.ProfileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Bin Id\",\r\n\t\t\t\taccessor: \"BinId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Bin\",\r\n\t\t\t\taccessor: \"Bin\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Bin Description\",\r\n\t\t\t\taccessor: \"BinName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Has Bin Range\",\r\n\t\t\t\taccessor: \"HasBinRange\",\r\n\t\t\t\ttype: GridColumnType.YesNo,\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Range From\",\r\n\t\t\t\taccessor: \"RangeFrom\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\trow.value ? StringHelper.PadLeft(\"0\", row.value, 10) : \"\"\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Range To\",\r\n\t\t\t\taccessor: \"RangeTo\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\trow.value ? StringHelper.PadLeft(\"0\", row.value, 10) : \"\"\r\n\t\t\t\t)\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.forceUpdate();\r\n\t}\r\n\r\n\tHandleChangeProfile = (name, newValue, data) => {\r\n\t\tconst profileModel = { ...this.state.profileModel };\r\n\t\tprofileModel[name] = newValue;\r\n\t\tthis.setState({ profileModel });\r\n\t}\r\n\r\n\tHandleChangeDetail = (name, newValue, data) => {\r\n\t\tconst { profileIndex, detailModel } = this.state;\r\n\t\tif (profileIndex === -1) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Please add an profile before!\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (name == \"RangeFrom\") {\r\n\t\t\tif (StringHelper.VerifyDigit(newValue))\r\n\t\t\t\tdetailModel.RangeFrom = newValue;\r\n\t\t\telse\r\n\t\t\t\treturn;\r\n\t\t}\r\n\t\tif (name == \"RangeTo\") {\r\n\t\t\tif (StringHelper.VerifyDigit(newValue))\r\n\t\t\t\tdetailModel.RangeTo = newValue;\r\n\t\t\telse\r\n\t\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (name == \"BinId\") {\r\n\t\t\tdetailModel.BinName = data && data.Description;\r\n\t\t\tdetailModel.Bin = data && data.Bin;\r\n\t\t}\r\n\r\n\r\n\t\tdetailModel[name] = newValue;\r\n\t\tthis.setState({ detailModel });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ profileModel: { ...this.initialModel }, detailModel: { ...this.initialModel }, profileIndex: -1, detailIndex: -1, isEditProfile: false, isEditDetail: false, hasChandedFromList: false });\r\n\t}\r\n\r\n\tHandleClearProfile = () => {\r\n\t\tthis.setState({ profileModel: { ...this.initialModel }, profileIndex: -1, isEditProfile: false });\r\n\t}\r\n\r\n\tHandleClearDetail = () => {\r\n\t\tthis.setState({ detailModel: { ...this.initialModel }, detailIndex: -1, isEditDetail: false, hasChandedFromList: false });\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tconst { profileModel } = this.state;\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/BinRangeProfile/GetAll\",\r\n\t\t\t{\r\n\t\t\t\tId: profileModel.Id,\r\n\t\t\t\tProfileName: profileModel.ProfileName,\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tvar profileList = responseData.Item.BinRangeProfileList;\r\n\t\t\t\tvar fullDetailList = responseData.Item.BinRangeProfileDetailList;\r\n\r\n\t\t\t\tfor (var i = 0; i < profileList.length; i++) {\r\n\t\t\t\t\tfor (var j = 0; j < fullDetailList.length; j++) {\r\n\t\t\t\t\t\tif (this.isEquivalent(profileList[i], fullDetailList[j].Profile)) {\r\n\t\t\t\t\t\t\tfullDetailList[j].Index = i;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ profileList, fullDetailList });\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleSubmit = () => {\r\n\t\tconst { profileList, detailList } = this.state;\r\n\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/prepaidapi/v1.0/BinRangeProfile/InsertOrUpdate\",\r\n\t\t\t{\r\n\t\t\t\tBinRangeProfileList: profileList,\r\n\t\t\t\tBinRangeProfileDetailList: detailList,\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ hasChandedFromList: false });\r\n\t\t\t\tthis.HandleSearch();\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Operation is successfully!\");\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tAddProfile = () => {\r\n\t\tconst { profileIndex, profileModel, profileList, isEditProfile, hasChangedProfile } = this.state;\r\n\r\n\t\tif (!this.AddProfileValidate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tprofileModel.IsRecordValid = true;\r\n\r\n\t\tif (isEditProfile && profileIndex > -1) {\r\n\t\t\tprofileList[profileIndex] = profileModel;\r\n\t\t} else {\r\n\t\t\tprofileList.push(profileModel);\r\n\t\t}\r\n\t\tthis.setState({ profileList, profileModel: { ...this.initialModel }, hasChangedProfile: !hasChangedProfile, isEditProfile: false });\r\n\t\tthis.GetColumnsProfile();\r\n\t}\r\n\r\n\tAddDetail = () => {\r\n\t\tconst { detailIndex, detailModel, detailList, isEditDetail, hasChangedDetail, profileModel, profileIndex } = this.state;\r\n\r\n\t\tvar messages = [];\r\n\r\n\t\tif (detailModel.HasBinRange) {\r\n\t\t\tif (!detailModel.RangeFrom)\r\n\t\t\t\tmessages.push(\"Range From cannot be empty!\");\r\n\r\n\t\t\tif (!detailModel.RangeTo)\r\n\t\t\t\tmessages.push(\"Range To cannot be empty!\");\r\n\r\n\t\t\tif (detailModel.RangeFrom == detailModel.RangeTo)\r\n\t\t\t\tmessages.push(\"Range From and Range To not equals!\");\r\n\r\n\t\t\telse if (Number(detailModel.RangeFrom) > Number(detailModel.RangeTo))\r\n\t\t\t\tmessages.push(\"Range From cannot be greater than Range To!\");\r\n\t\t}\r\n\r\n\t\tif (!detailModel.BinId) {\r\n\t\t\tmessages.push(\"Enter the Bin In to continue.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tdetailModel.IsRecordValid = true;\r\n\t\tdetailModel.Profile = profileModel;\r\n\t\tdetailModel.Index = profileIndex;\r\n\r\n\t\tif (isEditDetail && detailIndex > -1) {\r\n\t\t\tdetailList[detailIndex] = detailModel;\r\n\t\t} else {\r\n\t\t\tdetailList.push(detailModel);\r\n\t\t}\r\n\t\tthis.setState({\r\n\t\t\tdetailList, detailModel: { ...this.initialModel }, detailIndex: -1, hasChangedDetail: !hasChangedDetail, isEditDetail: false,\r\n\t\t\thasChandedFromList: true\r\n\t\t});\r\n\t\tthis.GetColumnsDetail();\r\n\t}\r\n\r\n\tDeleteProfile = () => {\r\n\t\tconst { profileList, detailList, profileIndex, hasChangedProfile } = this.state;\r\n\t\tprofileList[profileIndex].IsRecordValid = false;\r\n\t\tvar deletedDetails = detailList.filter(x => x.Index === profileIndex);\r\n\t\tdeletedDetails.forEach(detail => {\r\n\t\t\tdetail.IsRecordValid = false;\r\n\t\t});\r\n\t\tthis.setState({ profileList, profileModel: { ...this.initialModel }, hasChangedProfile: !hasChangedProfile, isEditProfile: false, detailList });\r\n\t\tthis.GetColumnsProfile();\r\n\t}\r\n\r\n\tDeleteDetail = () => {\r\n\t\tconst { detailList, detailIndex, hasChangedDetail } = this.state;\r\n\t\tdetailList[detailIndex].IsRecordValid = false;\r\n\t\tthis.setState({ detailList, detailModel: { ...this.initialModel }, hasChangedDetail: !hasChangedDetail, isEditDetail: false, hasChandedFromList: true });\r\n\t\tthis.GetColumnsDetail();\r\n\t}\r\n\r\n\tRowSelectedProfile = (index) => {\r\n\t\tlet { detailList, fullDetailList, detailModel, hasChandedFromList } = this.state;\r\n\r\n\t\tif (hasChandedFromList) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"There's a change in the list\", \"Please submit the change!\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tdetailModel = { ...this.initialModel };\r\n\t\tdetailModel.Index = index;\r\n\t\tdetailList = fullDetailList.filter(k => k.IsRecordValid && k.Index == index);\r\n\r\n\t\tthis.setState({\r\n\t\t\tisEditProfile: true, profileModel: { ...this.state.profileList.filter(x => x.IsRecordValid)[index] }, profileIndex: index,\r\n\t\t\tisEditDetail: false, detailModel, detailIndex: -1, detailList,\r\n\t\t});\r\n\t}\r\n\r\n\tRowSelectedDetail = (index) => {\r\n\r\n\r\n\t\tvar detail = { ...this.state.detailList.filter(x => x.IsRecordValid)[index] };\r\n\t\tif (detail != null) {\r\n\t\t\tdetail.RangeFrom = StringHelper.PadLeft(\"0\", detail.RangeFrom, 10);\r\n\t\t\tdetail.RangeTo = StringHelper.PadLeft(\"0\", detail.RangeTo, 10);\r\n\t\t}\r\n\r\n\t\tthis.setState({ isEditDetail: true, detailModel: detail, detailIndex: index });\r\n\t}\r\n\r\n\tisEquivalent = (a, b) => {\r\n\t\t// Create arrays of property names\r\n\t\tvar aProps = Object.getOwnPropertyNames(a);\r\n\t\tvar bProps = Object.getOwnPropertyNames(b);\r\n\r\n\t\t// If number of properties is different,\r\n\t\t// objects are not equivalent\r\n\t\tif (aProps.length != bProps.length) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tfor (var i = 0; i < aProps.length; i++) {\r\n\t\t\tvar propName = aProps[i];\r\n\r\n\t\t\t// If values of same property are not equal,\r\n\t\t\t// objects are not equivalent\r\n\t\t\tif (a[propName] !== b[propName]) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// If we made it this far, objects\r\n\t\t// are considered equivalent\r\n\t\treturn true;\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { profileModel, vModel, profileList } = this.state;\r\n\t\tvar messages = [];\r\n\r\n\t\tvModel.ProfileName = profileList.length == 0 && (profileModel.ProfileName == null || profileModel.ProfileName.trim() == \"\");\r\n\t\tif (vModel.ProfileName) messages.push(\"Profile Name cannot be empty\");\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.setState({ vModel });\r\n\t\treturn true;\r\n\t}\r\n\r\n\tAddProfileValidate = () => {\r\n\t\tconst { profileModel, vModel } = this.state;\r\n\t\tvar messages = [];\r\n\r\n\t\tvModel.ProfileName = profileModel.ProfileName == null || profileModel.ProfileName.trim() == \"\";\r\n\t\tif (vModel.ProfileName) messages.push(\"Profile Name cannot be empty\");\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.setState({ vModel });\r\n\t\treturn true;\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: null })} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, isLoading, vModel, profileModel, detailModel, profileList, detailList, isEditProfile, isEditDetail, profileIndex, detailIndex } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t<>\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t x.IsRecordValid)}\r\n\t\t\t\t\t\t\t\t\t\t\tColumns={this.ColumnsDataProfile}\r\n\t\t\t\t\t\t\t\t\t\t\tRowSelected={this.RowSelectedProfile}\r\n\t\t\t\t\t\t\t\t\t\t\tSelectedIndex={profileIndex}\r\n\t\t\t\t\t\t\t\t\t\t\tHideButton={true}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t `${d.Bin} - ${d.Description}`}\r\n\t\t\t\t\t\t\t\t\t\t\tValue={detailModel.BinId}\r\n\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.HandleChangeDetail}\r\n\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\t\t\tDisabled={Disabled || profileIndex === -1} />\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{detailModel.HasBinRange &&\r\n\t\t\t\t\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t x.IsRecordValid)}\r\n\t\t\t\t\t\t\t\t\t\t\tColumns={this.ColumnsDataDetail}\r\n\t\t\t\t\t\t\t\t\t\t\tRowSelected={this.RowSelectedDetail}\r\n\t\t\t\t\t\t\t\t\t\t\tSelectedIndex={detailIndex}\r\n\t\t\t\t\t\t\t\t\t\t\tHideButton={true} />\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nBinRangeProfile.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(BinRangeProfile, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant.js\";\r\nimport { GenericCheckInput } from '../../Components/Generic';\r\n\r\nclass CardEmbossingFileProfile extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : -1,\r\n\t\t\tIsDefaultProfile: ClientHelper.IsClient() ? false : true,\r\n\t\t\tIsAutomaticGenerateFile: true\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {...this.initialModel},\r\n\t\t\tvModel: {},\r\n\t\t\tlist: [],\r\n\t\t\tisEdit: false,\r\n\t\t\tisLoading: false,\r\n\t\t\tindex: -1\r\n\t\t};\r\n\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : -1,\r\n\t\t};\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\t\tthis.maxLength40 = { maxLength: 40 };\r\n\t\tthis.maxLength25 = { maxLength: 25 };\r\n\t\tthis.maxLength3 = { maxLength: 3 };\r\n\t\tthis.maxLength128 = { maxLength: 128 };\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"UniqueClient.ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Profile Name\",\r\n\t\t\t\taccessor: \"ProfileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Emboss File Export Period\",\r\n\t\t\t\taccessor: \"EmbossFileExportPeriod.ParameterDesc\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Automatic Generate File\",\r\n\t\t\t\taccessor: \"IsAutomaticGenerateFile\",\r\n\t\t\t\ttype: GridColumnType.YesNo\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Minimum Record Count\",\r\n\t\t\t\taccessor: \"MinimumRecordCount\"\r\n\t\t\t},\r\n\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t\tthis.props.setAppLeftTitle(\"Card Emboss File Profile\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, isEdit: false, index: -1 });\r\n\t}\r\n\r\n\tHandleSearch = async () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/prepaidapi/v1.0/CardEmbossFileProfile/Search\", this.state.model);\r\n\t\tthis.setState({ list: result || [], isLoading: false });\r\n\t}\r\n\r\n\tHandleSubmit = async () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/prepaidapi/v1.0/CardEmbossFileProfile/Insert\", this.state.model);\r\n\r\n\t\tif (result != null && result > 0) {\r\n\t\t\tthis.HandleClear();\r\n\t\t\tthis.HandleSearch();\r\n\t\t\tthis.props.showMessage(\"success\", \"Operation completed successfully!\");\r\n\t\t}\r\n\t}\r\n\r\n\tHandleUpdate = async () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/prepaidapi/v1.0/CardEmbossFileProfile/Update\", this.state.model);\r\n\r\n\t\tif (result != null && result > 0) {\r\n\t\t\tthis.HandleClear();\r\n\t\t\tthis.HandleSearch();\r\n\t\t\tthis.props.showMessage(\"success\", \"Operation completed successfully!\");\r\n\t\t}\r\n\r\n\t}\r\n\r\n\tHandleDelete = () => {\r\n\t\tconst { ExecuteApiPost, showConfirmMessage } = this.props;\r\n\t\tshowConfirmMessage(\"warning\", \"Warning\", \"Are you sure want to delete ?\", () => ExecuteApiPost(\"/prepaidapi/v1.0/CardEmbossFileProfile/Delete\", { Id: this.state.model.Id }, null, null, null, [this.HandleClear, this.HandleSearch], true));\r\n\t}\r\n\r\n\r\n\tValidate = () => {\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tvar Messages = [];\r\n\t\tvModel.ProfileName = !model.ProfileName;\r\n\t\tif (vModel.ProfileName)\r\n\t\t\tMessages.push(\"Profile Name cannot be empty.\");\r\n\r\n\t\tvModel.UniqueClientId = !model.UniqueClientId || model.UniqueClientId == null || model.UniqueClientId == -1;\r\n\t\tif (vModel.UniqueClientId)\r\n\t\t\tMessages.push(\"Client cannot be empty\");\r\n\r\n\t\tvModel.EmbossFileExportPeriodId = model.IsAutomaticGenerateFile && !model.EmbossFileExportPeriodId;\r\n\t\tif (vModel.EmbossFileExportPeriodId)\r\n\t\t\tMessages.push(\"Emboss File Export Period cannot be empty\");\r\n\r\n\t\tif (Messages.length > 0) {\r\n\t\t\tshowValidationErrors(Messages);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn true;\r\n\t}\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tvar tempModel = this.state.list[index];\r\n\t\tthis.setState({ isEdit: true, model: tempModel, index });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, isLoading, index, vModel } = this.state;\r\n\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t{model.IsAutomaticGenerateFile &&\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCardEmbossingFileProfile.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(CardEmbossingFileProfile, {});\r\n","import { withStyles } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport {\r\n GenericExpansionPanel,\r\n GenericGrid,\r\n GenericCheckInput,\r\n GenericSelectInput,\r\n} from \"views/Components/Generic\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\nimport { Proxy } from \"core\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport externalContainerStyle from \"assets/jss/material-dashboard-pro-react/layouts/externalContainerStyle.jsx\";\r\nimport { ParameterEmptyObject } from \"views/Constants/Constant.Parameter\";\r\nimport { SortedName } from \"views/Constants/Constant.Sorted\";\r\nimport { DeleteIcon, EditIcon } from \"core/Icons\";\r\nimport GridButton from \"views/Components/GridButton\";\r\n\r\nclass PayClientProvisionProfile extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n\r\n this.columns = [\r\n {\r\n Header: \"Id\",\r\n accessor: \"Id\",\r\n show: false,\r\n },\r\n {\r\n Header: \"Client Id\",\r\n accessor: \"UniqueClientId\",\r\n },\r\n {\r\n Header: \"Approve Failed Avs\",\r\n accessor: \"ApproveFailedAvs\",\r\n type: GridColumnType.YesNo,\r\n },\r\n {\r\n Header: \"Insert Date Time\",\r\n accessor: \"InsertDateTime\",\r\n type: GridColumnType.DateTime,\r\n },\r\n {\r\n Header: \"Insert User\",\r\n accessor: \"InsertUser\",\r\n },\r\n ];\r\n this.getappCenterTitle = \"Empty\";\r\n this.getappLeftTitle = \"Empty\";\r\n this.zIndex10 = { zIndex: 10 };\r\n\r\n this.state = {\r\n model: {},\r\n modelv2: {},\r\n data: [],\r\n recordKeeping: [],\r\n isSendEmailDialogOpen: false,\r\n activeClient: [],\r\n responseDetail: {},\r\n isDetailDialogOpen: false,\r\n };\r\n this.cpverTable = React.createRef();\r\n }\r\n\r\n componentDidMount = () => {\r\n const { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n if (setAppCenterTitle) {\r\n setAppCenterTitle(\"Profile\");\r\n this.getappCenterTitle = \"Profile\";\r\n }\r\n if (setAppLeftTitle) {\r\n setAppLeftTitle(\"Pay Client Provision Profile\");\r\n this.getappLeftTitle = \"Pay Client Provision Profile\";\r\n }\r\n };\r\n\r\n Clear = () => {\r\n this.setState({ model: {}, data: [], selected: null, modelv2: {} });\r\n };\r\n HandleClear = () => {\r\n this.setState({ modelv2: {} });\r\n };\r\n\r\n showLoading = () => {\r\n this.setState({ isLoading: true });\r\n };\r\n hideLoading = () => {\r\n this.setState({ isLoading: false });\r\n };\r\n\r\n showDetail = async (result) => {\r\n this.setState({ responseDetail: result || [], isDetailDialogOpen: true });\r\n console.log(result);\r\n };\r\n\r\n HandleSearch = () => {\r\n const model = { ...this.state.model };\r\n this.setState({ isLoading: true });\r\n Proxy.POST(\r\n \"/prepaidapi/v1.0/ClientProvisionProfile/Search\",\r\n model,\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n\r\n if (!responseData.IsSucceeded) {\r\n this.props.showMessage(\r\n \"error\",\r\n \"Error\",\r\n responseData.ErrorDescription\r\n );\r\n return;\r\n }\r\n if (responseData.Item !== null) {\r\n this.setState({ data: responseData.Item });\r\n }\r\n },\r\n (error) => {\r\n this.setState({ isLoading: false });\r\n this.props.showMessage(\"error\", \"Error\", error);\r\n }\r\n );\r\n };\r\n\r\n Submit = () => {\r\n if (!this.validate()) {\r\n return;\r\n }\r\n const model = { ...this.state.modelv2 };\r\n if (model.Id > 0) {\r\n this.Update(model);\r\n } else {\r\n this.Insert(model);\r\n }\r\n };\r\n\r\n Insert = (model)=>{\r\n\tthis.setState({ isLoading: true });\r\n Proxy.POST(\r\n \"/prepaidapi/v1.0/ClientProvisionProfile/Insert\",\r\n model,\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n\r\n if (!responseData.IsSucceeded) {\r\n this.props.showMessage(\r\n \"error\",\r\n \"Error\",\r\n responseData.ErrorDescription\r\n );\r\n return;\r\n } else {\r\n this.HandleSearch();\r\n this.HandleClear();\r\n this.props.showMessage(\r\n \"success\",\r\n \"Succeeded\",\r\n \"Operation is successfully!\"\r\n );\r\n }\r\n },\r\n (error) => {\r\n this.setState({ isLoading: false });\r\n this.props.showMessage(\"error\", \"Error\", error);\r\n }\r\n );\r\n\r\n }\r\n\r\n Update = (model)=>{\r\n\tthis.setState({ isLoading: true });\r\n\tProxy.POST(\r\n\t \"/prepaidapi/v1.0/ClientProvisionProfile/Update\",\r\n\t model,\r\n\t (responseData) => {\r\n\t\t this.setState({ isLoading: false });\r\n\r\n\t\t if (!responseData.IsSucceeded) {\r\n\t\t\tthis.props.showMessage(\r\n\t\t\t \"error\",\r\n\t\t\t \"Error\",\r\n\t\t\t responseData.ErrorDescription\r\n\t\t\t);\r\n\t\t\treturn;\r\n\t\t } else {\r\n\t\t\tthis.HandleSearch();\r\n\t\t\tthis.HandleClear();\r\n\t\t\tthis.props.showMessage(\r\n\t\t\t \"success\",\r\n\t\t\t \"Succeeded\",\r\n\t\t\t \"Operation is successfully!\"\r\n\t\t\t);\r\n\t\t }\r\n\t },\r\n\t (error) => {\r\n\t\t this.setState({ isLoading: false });\r\n\t\t this.props.showMessage(\"error\", \"Error\", error);\r\n\t }\r\n\t);\r\n }\r\n \r\n\r\n GetRenderItemClient = (x) => {\r\n var render = `${x.Name} - ${x.UniqueClientId}`;\r\n\r\n return render;\r\n };\r\n GetRenderItemClientV2 = (x) => {\r\n var render = `${x.Name} - ${x.UniqueClientId}`;\r\n\r\n return render;\r\n };\r\n\r\n ValueChanged = (name, value, data) => {\r\n const model = { ...this.state.model };\r\n model[name] = value;\r\n this.setState({ model });\r\n };\r\n\r\n ValueChangedv2 = (name, newValue) => {\r\n const modelv2 = { ...this.state.modelv2 };\r\n modelv2[name] = newValue;\r\n this.setState({ modelv2 });\r\n };\r\n\r\n validate = () => {\r\n const model = { ...this.state.modelv2 };\r\n if (model.UniqueClientId == null || model.UniqueClientId == 0) {\r\n this.props.showMessageNode(\"warning\", \"Please Select Client!\");\r\n return false;\r\n } else {\r\n return true;\r\n }\r\n };\r\n\r\n deleteConfirm = (id) => {\r\n const { ExecuteApiPost, showConfirmMessage } = this.props;\r\n showConfirmMessage(\r\n \"warning\",\r\n \"Warning\",\r\n \"Are you sure you want to delete ?\",\r\n () =>\r\n ExecuteApiPost(\r\n \"/prepaidapi/v1.0/ClientProvisionProfile/Delete\",\r\n { Id: id },\r\n null,\r\n null,\r\n null,\r\n [this.HandleSearch],\r\n true\r\n )\r\n );\r\n };\r\n\r\n HandleEditButton = (modelv2) => () => {\r\n this.setState({ modelv2: { ...modelv2 } });\r\n };\r\n\r\n render() {\r\n const { model, selected, isLoading, data, modelv2 } = this.state;\r\n const { Disabled } = this.props;\r\n\r\n return (\r\n
\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n (\r\n
\r\n \r\n \r\n this.deleteConfirm(row.original.Id)\r\n }\r\n />\r\n
\r\n ),\r\n width: 100,\r\n sortable: false,\r\n filterable: false,\r\n },\r\n {\r\n Header: \"Id\",\r\n accessor: \"Id\",\r\n show: false,\r\n },\r\n {\r\n Header: \"UniqueClientId\",\r\n accessor: \"UniqueClientId\",\r\n\t\t\t\t\t\t\t\t\t\tshow: false,\r\n },\r\n\t\t\t\t\t\t\t\t\t {\r\n Header: \"Client\",\r\n accessor: \"UniqueClient\"\r\n },\r\n {\r\n Header: \"Approve Failed Avs\",\r\n accessor: \"ApproveFailedAvs\",\r\n type: GridColumnType.YesNo,\r\n },\r\n {\r\n Header: \"Insert Date Time\",\r\n accessor: \"InsertDateTime\",\r\n type: GridColumnType.DateTime,\r\n },\r\n {\r\n Header: \"Insert User\",\r\n accessor: \"InsertUser\",\r\n },\r\n ]}\r\n SelectedIndex={selected}\r\n IsSorted={true}\r\n PageSize={10}\r\n ShowPagination={true}\r\n ref={this.cpverTable}\r\n />\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n );\r\n }\r\n}\r\n\r\nPayClientProvisionProfile.propTypes = {\r\n setAppLeftTitle: PropTypes.func,\r\n setAppCenterTitle: PropTypes.func,\r\n ExecuteApiPost: PropTypes.func,\r\n ExecuteApiFileDownloadWithGenericResponse: PropTypes.func,\r\n Disabled: PropTypes.bool,\r\n menuId: PropTypes.any,\r\n ApprovalData: PropTypes.any,\r\n After: PropTypes.any,\r\n};\r\n\r\nexport default withStyles(externalContainerStyle)(PayClientProvisionProfile);\r\n","import styles from \"assets/jss/material-dashboard-pro-react/views/productRestrictionProfileStyle.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport DualListBox from \"react-dual-listbox\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericCheckInput, GenericGrid, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { MenuCodes } from \"views/Constants/Constant.js\";\r\n\r\nclass ProductRestrictionProfileDefinition extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.isClient = ClientHelper.IsClient();\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tMerchantValues: [],\r\n\t\t\tMCCValues: [],\r\n\t\t\tTxnCodeValues: [],\r\n\t\t\tCountryValues: [],\r\n\t\t\tMccOptions: [],\r\n\t\t\tTxnCodeOptions: [],\r\n\t\t\tCountryOptions: [],\r\n\t\t\tHasECommerceUsage: false,\r\n\t\t\tHasInternationalUsage: false,\r\n\t\t\tIsDefaultProfile: props.MenuCode === MenuCodes.DCBankProductRestrictionProfile,\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tmerchantModel: {},\r\n\t\t\tvModel: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tProfileList: []\r\n\r\n\t\t};\r\n\r\n\t\tthis.emptyObject = {};\r\n\t\tthis.merchantOptions = [];\r\n\r\n\t\tthis.DefaultIndex = 0;\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\t\tthis.parameterRestrictionCheckType = { ParameterCode: \"RestrictionCheckType\" };\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Product Restriction Profile\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t\tthis.LoadOptionList();\r\n\t\tthis.HandleSearch();\r\n\t}\r\n\r\n\tGetMerchantOptions = (model) => {\r\n\t\tif (!this.merchantOptions.find(i => i.label == model.Name)) {\r\n\t\t\tthis.merchantOptions.push({\r\n\t\t\t\t\"value\": model.Name ? model.Name.toString() : \"\",\r\n\t\t\t\t\"label\": model.Name\r\n\t\t\t});\r\n\t\t}\r\n\t\tthis.forceUpdate();\r\n\t}\r\n\r\n\tLoadOptionList = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tProxy.POST(\"/prepaidapi/v1.0/Mcc/Search\",\r\n\t\t\t{},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", responseData.ErrorDescription);\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tvar MccOptions = this.TranslateToLabelValue(responseData.Item, \"FullName\", \"Code\");\r\n\t\t\t\tProxy.GET(\"/bankapi/v1.0/BankTransactionCode/GetAllForTransactionPrepaid\",\r\n\t\t\t\t\t(responseData) => {\r\n\t\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\t\tthis.ShowMessage(\"error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tvar TxnCodeOptions = this.TranslateToLabelValue(responseData.Item, \"FullName\", \"TxnCode\");\r\n\t\t\t\t\t\tProxy.POST(\"/coreapi/v1.0/Country/GetAll\",\r\n\t\t\t\t\t\t\tnull,\r\n\t\t\t\t\t\t\t(responseData) => {\r\n\t\t\t\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\t\t\t\tthis.ShowMessage(\"error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tvar CountryOptions = this.TranslateToLabelValue(responseData.Item, \"Name\", \"ISO2\");\r\n\t\t\t\t\t\t\t\tconst model = { ...this.state.model };\r\n\t\t\t\t\t\t\t\tmodel.MccOptions = MccOptions;\r\n\t\t\t\t\t\t\t\tmodel.TxnCodeOptions = TxnCodeOptions;\r\n\t\t\t\t\t\t\t\tmodel.CountryOptions = CountryOptions;\r\n\t\t\t\t\t\t\t\tthis.setState({ isLoading: false, model });\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t(error) => {\r\n\t\t\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t},\r\n\t\t\t\t\t(error) => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t\t}\r\n\t\t\t\t);\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tTranslateToLabelValue = (array, labelPath, valuePath) => {\r\n\t\tvar returnObject = [];\r\n\t\tarray.forEach((value) => {\r\n\t\t\tif (value[valuePath])\r\n\t\t\t\treturnObject.push({ value: value[valuePath].toString(), label: value[labelPath] });\r\n\r\n\t\t});\r\n\t\treturn returnObject;\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleChangeMerchant = (name, newValue, data) => {\r\n\t\tconst merchantModel = { ...this.state.merchantModel };\r\n\t\tmerchantModel[name] = newValue;\r\n\t\tthis.setState({ merchantModel });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.merchantOptions = [];\r\n\t\tthis.setState({ merchantModel: {}, model: { ...this.initialModel } });\r\n\t\tthis.DefaultIndex = 1;\r\n\t\tthis.LoadOptionList();\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/ProductRestrictionProfile/SearchForComponent\",\r\n\t\t\tmodel\r\n\t\t\t,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ ProfileList: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleSearchByProfileName = (index) => {\r\n\r\n\t\tconst model = this.state.ProfileList[index];\r\n\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/ProductRestrictionProfile/Search\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.merchantOptions = responseData.Item.MerchantOptions;\r\n\t\t\t\t\tvar tempModel = responseData.Item;\r\n\t\t\t\t\ttempModel.IsUpdate = true;\r\n\t\t\t\t\tthis.setState({ model: tempModel });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleSubmit = () => {\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/prepaidapi/v1.0/ProductRestrictionProfile/InsertOrUpdate\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ hasChandedFromList: false });\r\n\t\t\t\tthis.HandleSearch();\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Operation is successfully!\");\r\n\t\t\t\tthis.HandleClear();\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleUpdate = () => {\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/prepaidapi/v1.0/ProductRestrictionProfile/InsertOrUpdate\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ hasChandedFromList: false });\r\n\t\t\t\tthis.HandleSearch();\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Operation is successfully!\");\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleDelete = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/prepaidapi/v1.0/ProductRestrictionProfile/Delete\",\r\n\t\t\t{ Id: this.state.model.Id },\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ hasChandedFromList: false });\r\n\t\t\t\tthis.HandleSearch();\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Operation is successfully!\");\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tAddMerchant = () => {\r\n\t\tconst { merchantModel } = this.state;\r\n\t\tmerchantModel.Index = this.merchantOptions.length;\r\n\t\tthis.GetMerchantOptions(merchantModel);\r\n\t}\r\n\r\n\tColumnListBoxOnChangeMerchant = (selected) => {\r\n\t\tconst { model } = this.state;\r\n\t\tmodel.MerchantValues = selected;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tColumnListBoxOnChangeMCC = (selected) => {\r\n\t\tconst { model } = this.state;\r\n\t\t// selected.forEach((value, index, array) => {\r\n\t\t// \tarray[index] = Number.parseInt(value)\r\n\t\t// });\r\n\t\tmodel.MCCValues = selected;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tColumnListBoxOnChangeTxnCode = (selected) => {\r\n\t\tconst { model } = this.state;\r\n\t\tmodel.TxnCodeValues = selected;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tColumnListBoxOnChangeCountry = (selected) => {\r\n\t\tconst { model } = this.state;\r\n\t\tmodel.CountryValues = selected;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tvar messages = [];\r\n\r\n\r\n\t\tvModel.ProfileName = model.ProfileName == null || model.ProfileName.trim() == \"\";\r\n\t\tif (vModel.ProfileName) messages.push(\"Profile Name cannot be empty\");\r\n\r\n\r\n\t\tvModel.MerchantRestrictionCheckType = model.MerchantRestrictionCheckType == null;\r\n\t\tif (vModel.MerchantRestrictionCheckType) messages.push(\"Merchant Restriction Check Type must be select\");\r\n\r\n\t\tvModel.MccRestrictionCheckType = model.MccRestrictionCheckType == null;\r\n\t\tif (vModel.MccRestrictionCheckType) messages.push(\"Mcc Restriction CheckType must be select\");\r\n\r\n\t\tvModel.TransactionRestrictionCheckType = model.TransactionRestrictionCheckType == null;\r\n\t\tif (vModel.TransactionRestrictionCheckType) messages.push(\"Transaction Restriction Check Type cannot be empty\");\r\n\r\n\t\tvModel.CountryRestrictionCheckType = model.CountryRestrictionCheckType == null;\r\n\t\tif (vModel.CountryRestrictionCheckType) messages.push(\"Country Restriction Check Type must be select\");\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.props.showMessageNode(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.setState({ vModel });\r\n\t\treturn true;\r\n\t}\r\n\r\n\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: null })} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes, Disabled } = this.props;\r\n\t\tconst { alert, model, merchantModel, vModel, isLoading } = this.state;\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\r\n\t\treturn (\r\n\t\t\t<>\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t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\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
{row.value == true ? \"Yes\" : \"No\"}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Has e-Commerce Usage\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"HasECommerceUsage\",\r\n\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
{row.value == true ? \"Yes\" : \"No\"}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\r\n\t\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\t\tRowSelected={index => {\r\n\t\t\t\t\t\t\t\t\t\t\tthis.HandleSearchByProfileName(index);\r\n\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\tSelectedIndex={this.state.rowIndex}\r\n\t\t\t\t\t\t\t\t\t\tShowPagination={true}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nProductRestrictionProfileDefinition.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(ProductRestrictionProfileDefinition, styles);","import { List } from \"@material-ui/core\";\r\nimport { chartColors, chartGradientColors } from \"assets/jss/material-dashboard-pro-react\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport CardIcon from \"components/Card/CardIcon.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport { Bar, Chart } from 'react-chartjs-2';\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericExpansionPanel, GenericGrid, GenericSelectInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\nimport cx from \"classnames\"\r\n\r\nconst styles = ({\r\n\tcircleBoxGrid: {\r\n\t\twidth: \"14%\",\r\n\t\ttextAlign: \"center\"\r\n\t},\r\n\tcircleBox: {\r\n\t\t// display: \"inline-block\",\r\n\t\t// marginTop: \"24px\",\r\n\t\t// marginLeft: \"auto\",\r\n\t\t// marginRight: \"auto\",\r\n\t\t// marginBottom: \"24px\"\r\n\t\t\"& > canvas\": {\r\n\t\t\twidth: \"108% !important\",\r\n\t\t\theight: 400\r\n\t\t}\r\n\t}, circleBoxMain: {\r\n\r\n\t\t\"& > canvas\": {\r\n\t\t\twidth: \"80% !important\",\r\n\t\t\theight: 400\r\n\t\t}\r\n\t}\r\n});\r\nclass CardBrandStaticsReport extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.doughnutHeight = 500;\r\n\t\tthis.doughnutWidth = 400;\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t\tCreateDateTime: null\r\n\t\t};\r\n\r\n\t\tthis.HandleRequest = null;\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tcardBrand: { ... this.initialDoughnutDataModel },\r\n\t\t\tcardTransaction: { ... this.initialDoughnutDataModel },\r\n\t\t\ttotalOnhold: { ... this.initialDoughnutDataModel },\r\n\t\t\ttotalReturned: { ... this.initialDoughnutDataModel },\r\n\t\t\ttotalRejected: { ... this.initialDoughnutDataModel },\r\n\t\t\tlist: [],\r\n\t\t\tisEdit: false,\r\n\t\t\tisLoading: false,\r\n\t\t\tindex: -1,\r\n\t\t};\r\n\r\n\r\n\t\tthis.chartOptions = {\r\n\t\t\tmaintainAspectRatio: false,\r\n\t\t\tresponsive: true,\r\n\t\t\tlegend: {\r\n\t\t\t\tdisplay: false\r\n\t\t\t},\r\n\t\t\tcutoutPercentage: 90,\r\n\t\t\tanimation: {\r\n\t\t\t\tduration: 2000\r\n\t\t\t},\r\n\t\t\ttooltips: { enabled: true }\r\n\t\t};\r\n\r\n\t\tthis.initialDoughnutDataModel = {\r\n\t\t\tlabels: [\"Transactions\"],\r\n\t\t\tdatasets: [{\r\n\t\t\t\tdata: [1],\r\n\t\t\t\tbackgroundColor: \"rgb(255, 99, 132)\",\r\n\t\t\t\thoverBackgroundColor: \"rgb(255, 99, 132)\"\r\n\t\t\t}],\r\n\t\t\ttext: \"0 \\t $ 0\"\r\n\t\t};\r\n\r\n\t\tthis.chartOptions = {\r\n\t\t\tmaintainAspectRatio: false,\r\n\t\t\tresponsive: false,\r\n\t\t\tlegend: { display: false },\r\n\t\t\tcutoutPercentage: 90,\r\n\t\t\tanimation: { duration: 2000 }\r\n\t\t};\r\n\r\n\t\tthis.chartColors = {\r\n\t\t\tred: \"rgb(255, 99, 132)\",\r\n\t\t\torange: \"rgb(255, 159, 64)\",\r\n\t\t\tyellow: \"rgb(255, 205, 86)\",\r\n\t\t\tgreen: \"rgb(75, 192, 192)\",\r\n\t\t\tblue: \"rgb(54, 162, 235)\",\r\n\t\t\tpurple: \"rgb(153, 102, 255)\",\r\n\t\t\tgrey: \"rgb(201, 203, 207)\"\r\n\t\t};\r\n\r\n\t\tthis.doughnutRef = React.createRef();\r\n\r\n\t\tthis.parameterProduct = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t\tIsNoNameProduct: false\r\n\t\t};\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\r\n\t\tthis.maxLength40 = { maxLength: 40 };\r\n\t\tthis.maxLength25 = { maxLength: 25 };\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : undefined\r\n\t\t};\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\taccessor: \"Date\",\r\n\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Count\",\r\n\t\t\t\taccessor: \"Count\"\r\n\t\t\t},\r\n\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Card Transaction Statistic\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID MANAGEMENT\");\r\n\r\n\t\tvar originalDoughnutDraw = Chart.controllers.doughnut.prototype.draw;\r\n\t\tChart.helpers.extend(Chart.controllers.doughnut.prototype, {\r\n\t\t\tdraw: function () {\r\n\t\t\t\toriginalDoughnutDraw.apply(this, arguments);\r\n\r\n\t\t\t\tvar chart = this.chart;\r\n\t\t\t\tvar width = chart.chart.width,\r\n\t\t\t\t\theight = chart.chart.height,\r\n\t\t\t\t\tctx = chart.chart.ctx;\r\n\r\n\t\t\t\tvar fontSize = 1.5;\r\n\t\t\t\tctx.font = fontSize + \"em sans-serif\";\r\n\t\t\t\tctx.textBaseline = \"middle\";\r\n\t\t\t\tctx.fillStyle = \"#000\";\r\n\r\n\t\t\t\tvar text = chart.config.data.text,\r\n\t\t\t\t\ttextX = Math.round((width - ctx.measureText(text).width) / 2),\r\n\t\t\t\t\ttextY = height / 2;\r\n\r\n\t\t\t\tctx.fillText(text, textX, textY);\r\n\t\t\t}\r\n\t\t});\r\n\t\tthis.HandleClickSearch();\r\n\t\tthis.timer = setInterval(this.HandleSearch, 5000);\r\n\t}\r\n\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, isEdit: false, index: -1 });\r\n\t}\r\n\tHandleClickSearch = () => {\r\n\t\tthis.setState({ isLoading: true })\r\n\t\tthis.HandleSearch();\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\r\n\t\tif (this.HandleRequest != null)\r\n\t\t\treturn;\r\n\r\n\t\tthis.HandleRequest = true;\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Card/CardBrandStatisticsReport\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.SuccessListCallback(responseData);\r\n\t\t\t\t//this.setState({ list: responseData.Item || [] });\r\n\t\t\t\tthis.HandleRequest = null;\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\r\n\tgetGradientList(dataList) {\r\n\t\tvar gradientList = undefined;\r\n\t\tif (document.getElementById(\"canvas\") != null) {\r\n\t\t\t// @ts-ignore\r\n\t\t\tvar ctx = document.getElementById(\"canvas\").getContext(\"2d\");\r\n\t\t\tgradientList = [];\r\n\t\t\tif (dataList.datasets != undefined && dataList.datasets.length > 0) {\r\n\t\t\t\tvar i;\r\n\t\t\t\tfor (i = 0; i < dataList.datasets[0].data.length; i++) {\r\n\t\t\t\t\tvar gradient = ctx.createLinearGradient(0, 0, 0, 400);\r\n\t\t\t\t\tif (chartGradientColors[i] == undefined) {\r\n\t\t\t\t\t\tgradient.addColorStop(0, chartGradientColors[0].begin);\r\n\t\t\t\t\t\tgradient.addColorStop(1, chartGradientColors[0].end);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tgradient.addColorStop(0, chartGradientColors[i].begin);\r\n\t\t\t\t\t\tgradient.addColorStop(1, chartGradientColors[i].end);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tgradientList.push(gradient);\r\n\t\t\t\t}\r\n\t\t\t\treturn gradientList;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn gradientList;\r\n\r\n\t}\r\n\r\n\tSuccessListCallback(responseData) {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (responseData.Item !== null) {\r\n\t\t\tthis.setState({ list: responseData.Item.SummaryGridData })\r\n\t\t\tthis.GenerateDoughnutData(responseData);\r\n\t\t}\r\n\t}\r\n\tformatNumber = (num) => {\r\n\t\treturn \" $\" + num\r\n\t\t\t.toString()\r\n\t\t\t.replace(/(\\d)(?=(\\d{3})+(?!\\d))/g, \"$1,\");\r\n\t}\r\n\tGenerateDoughnutData(responseData) {\r\n\t\tvar arrayData = [];\r\n\t\tvar arrayLabel = [];\r\n\t\tvar arrayColor = [];\r\n\r\n\t\tvar colorNames = Object.keys(chartColors);\r\n\t\tvar i = 0;\r\n\r\n\t\tif (responseData.Item.BrandCountSummaryChartDatas != null) {\r\n\t\t\tvar data = responseData.Item.BrandCountSummaryChartDatas;\r\n\r\n\t\t\tdata.forEach(element => {\r\n\t\t\t\ti = i + 1;\r\n\t\t\t\tvar colorName = colorNames[i];\r\n\t\t\t\tvar newColor = chartColors[colorName];\r\n\t\t\t\tarrayColor.push(newColor);\r\n\t\t\t\tarrayData.push(element.Count);\r\n\t\t\t\tarrayLabel.push(element.Label);\r\n\t\t\t});\r\n\r\n\t\t\tvar totalCardBrandDataObj = {\r\n\t\t\t\tlabels: arrayLabel,\r\n\t\t\t\tdatasets: [\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdata: arrayData,\r\n\t\t\t\t\t\thoverBackgroundColor: arrayColor,\r\n\t\t\t\t\t\tbackgroundColor: arrayColor\r\n\t\t\t\t\t},\r\n\t\t\t\t],\r\n\t\t\t\ttext: \"Card Brand\"\r\n\r\n\t\t\t};\r\n\t\t}\r\n\r\n\t\tarrayData = [];\r\n\t\tarrayLabel = [];\r\n\t\tarrayColor = [];\r\n\t\ti = 0;\r\n\t\tif (responseData.Item.TransactionCodeCountSummaryChartDatas != null) {\r\n\t\t\tvar dataTransaction = responseData.Item.TransactionCodeCountSummaryChartDatas;\r\n\r\n\t\t\tdataTransaction.forEach(element => {\r\n\t\t\t\ti = i + 1;\r\n\t\t\t\tvar colorName = colorNames[i];\r\n\t\t\t\tvar newColor = chartColors[colorName];\r\n\t\t\t\tarrayColor.push(newColor);\r\n\t\t\t\tarrayData.push(element.Count);\r\n\t\t\t\tarrayLabel.push(element.Label);\r\n\t\t\t});\r\n\r\n\t\t\tvar totalCardTransactionCodeObj = {\r\n\t\t\t\tlabels: arrayLabel,\r\n\t\t\t\tdatasets: [\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdata: arrayData,\r\n\t\t\t\t\t\thoverBackgroundColor: arrayColor,\r\n\t\t\t\t\t\tbackgroundColor: arrayColor\r\n\t\t\t\t\t}\r\n\t\t\t\t],\r\n\t\t\t\ttext: \"Transaction Code\"\r\n\t\t\t};\r\n\t\t}\r\n\r\n\r\n\t\tthis.setState({ cardBrand: totalCardBrandDataObj, cardTransaction: totalCardTransactionCodeObj });\r\n\t}\r\n\r\n\tSumValues(...arr) {\r\n\t\treturn arr.length > 0 ? arr[0].reduce((a, b) => a + b, 0) : 0;\r\n\t}\r\n\r\n\tGetChartText(item1, item2) {\r\n\t\treturn item1 + \" \\t $ \" + item2\r\n\t\t\t.toString()\r\n\t\t\t.replace(/(\\d)(?=(\\d{3})+(?!\\d))/g, \"$1,\");\r\n\t}\r\n\r\n\tGetElementValue(obj, path) {\r\n\t\tif (obj == null || path == null)\r\n\t\t\treturn \"\";\r\n\t\treturn [obj].concat(path.split(\".\")).reduce((c, n) => c && c[n]);\r\n\t}\r\n\r\n\tTabIndexChanged(activeIndex) {\r\n\t\tthis.setState({ activeIndex });\r\n\t}\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tvar tempModel = this.state.list[index];\r\n\t\tthis.setState({ isEdit: true, model: tempModel, index });\r\n\t}\r\n\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: null })} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\tGetProductParameter = () => {\r\n\t\tthis.parameterProduct.UniqueClientId = this.state.model.UniqueClientId;\r\n\t\tthis.parameterProduct.IsNoNameProduct = false;\r\n\t\treturn this.parameterProduct;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, isLoading, cardTransaction, cardBrand } = this.state;\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\t\tconst { classes } = this.props;\r\n\r\n\t\tvar brandGradientList = this.getGradientList(cardBrand);\r\n\t\tvar txtBrand = cardBrand;\r\n\t\tif (brandGradientList != undefined && cardBrand && txtBrand.datasets.length > 0) {\r\n\t\t\t// @ts-ignore\r\n\t\t\ttxtBrand.datasets[0].backgroundColor = brandGradientList;\r\n\t\t\t// @ts-ignore\r\n\t\t\ttxtBrand.datasets[0].hoverBackgroundColor = brandGradientList;\r\n\t\t}\r\n\r\n\t\tvar carTransactionGradientList = this.getGradientList(cardTransaction);\r\n\t\tvar txtCardTransaction = cardTransaction;\r\n\t\tif (carTransactionGradientList != undefined && cardTransaction && txtCardTransaction.datasets.length > 0) {\r\n\t\t\t// @ts-ignore) {\r\n\t\t\t// @ts-ignore\r\n\t\t\ttxtCardTransaction.datasets[0].backgroundColor = carTransactionGradientList;\r\n\t\t\t// @ts-ignore\r\n\t\t\ttxtCardTransaction.datasets[0].hoverBackgroundColor = carTransactionGradientList;\r\n\t\t}\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\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t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCardBrandStaticsReport.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(CardBrandStaticsReport, styles);\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericExpansionPanel, GenericGrid, GenericSelectInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\nimport DateHelper from '../../../core/DateHelper';\r\n\r\nclass CardDailyReport extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t\tCreateDateTime: DateHelper.GetDate()\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tlist: [],\r\n\t\t\tisEdit: false,\r\n\t\t\tisLoading: false,\r\n\t\t\tindex: -1\r\n\t\t};\r\n\r\n\r\n\t\tthis.parameterProduct = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t\tIsNoNameProduct: false\r\n\t\t};\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\r\n\t\tthis.maxLength40 = { maxLength: 40 };\r\n\t\tthis.maxLength25 = { maxLength: 25 };\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : undefined\r\n\t\t};\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Create Date\",\r\n\t\t\t\taccessor: \"CreateDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Product Name\",\r\n\t\t\t\taccessor: \"ProductName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Plastic Type\",\r\n\t\t\t\taccessor: \"PlasticTypeName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Count\",\r\n\t\t\t\taccessor: \"Count\"\r\n\t\t\t},\r\n\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Card Daily Report\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID MANAGEMENT\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, isEdit: false, index: -1 });\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Card/CardDailyReport\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ list: responseData.Item || [] });\r\n\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tvar tempModel = this.state.list[index];\r\n\t\tthis.setState({ isEdit: true, model: tempModel, index });\r\n\t}\r\n\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: null })} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\tGetProductParameter = () => {\r\n\t\tthis.parameterProduct.UniqueClientId = this.state.model.UniqueClientId;\r\n\t\tthis.parameterProduct.IsNoNameProduct = false;\r\n\t\treturn this.parameterProduct;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, isLoading } = this.state;\r\n\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCardDailyReport.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(CardDailyReport, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport MenuAuthorityRightHelper from \"core/MenuAuthorityRightHelper\";\r\nimport { TaskPool } from \"core/TaskPool\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport CardComponent from \"views/Components/CardComponent.jsx\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent.jsx\";\r\nimport { GenericExpansionPanel, GenericSelectInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport TabsComponent from \"views/Components/TabsComponent\";\r\nimport { MenuCodes, ProgramCodes } from \"views/Constants/Constant.js\";\r\nimport CustomerCardInformation from \"views/PPaid/Reports/Step/CustomerCardInformation\";\r\nimport QrCode from \"views/PPaid/Reports/Step/QrCode\";\r\nimport EmbossInfo from \"./Step/EmbossInfo\";\r\nimport GeneralInfo from \"./Step/GeneralInfo\";\r\nimport Statistics from \"./Step/Statistics\";\r\nimport Transactions from \"./Step/Transactions\";\r\n\r\n\r\nclass CardMonitoring extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t\tQrCode: \"\",\r\n\t\t\tIsCorporateCard : null\r\n\t\t};\r\n\t\tthis.MenuAuthorityRightHelper = new MenuAuthorityRightHelper();\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tgeneralModel: { BankAccount: {}, WalletAccount: {}, ...this.initialModel },\r\n\t\t\tembossModel: { ...this.initialModel },\r\n\t\t\tstatisticModel: { ...this.initialModel },\r\n\t\t\tcustomerInfo: { ...this.initialModel },\r\n\t\t\tvModel: {},\r\n\t\t\ttransactions: [],\r\n\t\t\tcardList: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tactiveIndex: 0,\r\n\t\t\tisDisableCustomerCardInfoTab: false,\r\n\t\t\tisDisableGeneralInfoTab: false,\r\n\t\t\tisDisableEmbossInfoTab: false,\r\n\t\t\tisDisableStatisticsTab: false,\r\n\t\t\tisDisableTransactionsTab: false,\r\n\t\t\tisDisableQrCodeTab: false\r\n\t\t};\r\n\t\tthis.loadTaskPool = new TaskPool(this.handleLoadTaskPoolAppend, this.handleLoadTaskPoolCompleted);\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.maxLength26 = { maxLength: 26 };\r\n\t\tthis.maxLength19 = { maxLength: 19 };\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : undefined\r\n\t\t};\r\n\r\n\t\tthis.parameterPeriod = { ParameterCode: \"LoadingPeriod\" };\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\r\n\t\tthis.parameterProduct = {};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle, MenuCode } = this.props;\r\n\r\n\t\tswitch (MenuCode) {\r\n\t\t\tcase MenuCodes.CallCenter_CardMonitoring:\r\n\t\t\t\tif (setAppLeftTitle) setAppLeftTitle(\"Card Monitoring\");\r\n\t\t\t\tif (setAppCenterTitle) setAppCenterTitle(\"CALL CENTER\");\r\n\t\t\t\tthis.GetGridButtonsRight();\r\n\t\t\t\tthis.state.model.IsCorporateCard = false;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase MenuCodes.Menu_CorporateCard:\r\n\t\t\t\t\tif (setAppLeftTitle) setAppLeftTitle(\"Corporate Card Monitoring\");\r\n\t\t\t\tif (setAppCenterTitle) setAppCenterTitle(\"Corporate Card\");\r\n\t\t\t\tthis.state.model.IsCorporateCard = true;\r\n\t\t\t\tthis.state.model.ClientCustomerId = 0;\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tif (setAppLeftTitle) setAppLeftTitle(\"Card Monitoring\");\r\n\t\t\t\tif (setAppCenterTitle) setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t\t\t\tthis.state.model.IsCorporateCard = null;\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t}\r\n\r\n\r\n\tGetGridButtonsRight = async () => {\r\n\t\tconst { MenuCode } = this.props;\r\n\t\tconst model = { ...this.state };\r\n\t\t\r\n\t\tvar gridButtonRightDetail = await this.MenuAuthorityRightHelper.RightCheckList(MenuCode, [\"CALCMTCCT\", \"CALCMTGIT\", \"CALCMTEIT\", \"CALCMTSST\", \"CALCMTTRT\", \"CALCMTQRT\"]);\r\n\t\tmodel.isDisableCustomerCardInfoTab =\r\n\t\t\tthis.props.MenuCode == MenuCodes.CallCenter_CardMonitoring ? !gridButtonRightDetail.find(x => x.Code == \"CALCMTCCT\")?.HasAuthority : false;\r\n\t\tmodel.isDisableGeneralInfoTab =\r\n\t\t\tthis.props.MenuCode == MenuCodes.CallCenter_CardMonitoring ? !gridButtonRightDetail.find(x => x.Code == \"CALCMTGIT\")?.HasAuthority : false;\r\n\t\tmodel.isDisableEmbossInfoTab =\r\n\t\t\tthis.props.MenuCode == MenuCodes.CallCenter_CardMonitoring ? !gridButtonRightDetail.find(x => x.Code == \"CALCMTEIT\")?.HasAuthority : false;\r\n\t\tmodel.isDisableStatisticsTab =\r\n\t\t\tthis.props.MenuCode == MenuCodes.CallCenter_CardMonitoring ? !gridButtonRightDetail.find(x => x.Code == \"CALCMTSST\")?.HasAuthority : false;\r\n\t\tmodel.isDisableTransactionsTab =\r\n\t\t\tthis.props.MenuCode == MenuCodes.CallCenter_CardMonitoring ? !gridButtonRightDetail.find(x => x.Code == \"CALCMTTRT\")?.HasAuthority : false;\r\n\t\tmodel.isDisableQrCodeTab =\r\n\t\t\tthis.props.MenuCode == MenuCodes.CallCenter_CardMonitoring ? !gridButtonRightDetail.find(x => x.Code == \"CALCMTQRT\")?.HasAuthority : false;\r\n\r\n\t\tthis.setState({\r\n\t\t\tisDisableCustomerCardInfoTab: model.isDisableCustomerCardInfoTab,\r\n\t\t\tisDisableGeneralInfoTab: model.isDisableGeneralInfoTab,\r\n\t\t\tisDisableEmbossInfoTab: model.isDisableEmbossInfoTab,\r\n\t\t\tisDisableStatisticsTab: model.isDisableStatisticsTab,\r\n\t\t\tisDisableTransactionsTab: model.isDisableTransactionsTab,\r\n\t\t\tisDisableQrCodeTab: model.isDisableQrCodeTab\r\n\t\t});\r\n\r\n\t}\r\n\r\n\thandleLoadTaskPoolCompleted = () => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\thandleLoadTaskPoolAppend = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (name === \"UniqueClientId\") {\r\n\t\t\tdelete model.ClientCustomerId;\r\n\t\t\tdelete model.CustomerNumber;\r\n\t\t\tdelete model.CardId;\r\n\t\t\tdelete model.CardTokenNumber;\r\n\t\t}\r\n\t\tif (name === \"Customer\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.ClientCustomerId = newValue.Id;\r\n\t\t\t\tmodel.CustomerNumber = newValue.CustomerNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.ClientCustomerId;\r\n\t\t\t\tdelete model.CustomerNumber;\r\n\t\t\t\tdelete model.CardId;\r\n\t\t\t\tdelete model.CardTokenNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (name === \"Card\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.CardId = newValue.CardId;\r\n\t\t\t\tmodel.CardTokenNumber = newValue.CardTokenNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.CardId;\r\n\t\t\t\tdelete model.CardTokenNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tgeneralModel: { ...this.initialModel },\r\n\t\t\tembossModel: { ...this.initialModel },\r\n\t\t\tstatisticModel: { ...this.initialModel },\r\n\t\t\ttransactions: []\r\n\t\t});\r\n\t}\r\n\r\n\tHandleGetCardList = async () => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tconst model = { ...this.state.model };\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tvar request = {\r\n\t\t\tUniqueClientId: model.UniqueClientId,\r\n\t\t\tClientCustomerId: model.ClientCustomerId,\r\n\t\t\tCardSearchCriteria: 2,\r\n\t\t\t//ekle\r\n\t\t};\r\n\t\tvar result = await ExecuteApiPost(\"/prepaidapi/v1.0/Card/CardSearch\", request);\r\n\t\tthis.setState({ cardList: result, isLoading: false });\r\n\t}\r\n\r\n\tHandleSearch = async () => {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.loadTaskPool.AppendTask(\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/prepaidapi/v1.0/Card/SearchForMonitoring\",\r\n\t\t\t\t{\r\n\t\t\t\t\tUniqueClientId: model.UniqueClientId,\r\n\t\t\t\t\tClientCustomerId: model.ClientCustomerId,\r\n\t\t\t\t\tCardId: model.CardId,\r\n\t\t\t\t\tIsCorporateCard : model.IsCorporateCard\r\n\t\t\t\t},\r\n\t\t\t\t(responseData) => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\t\tvar generalModel = responseData.Item.CardInfo;\r\n\t\t\t\t\t\tProxy.POST(\r\n\t\t\t\t\t\t\t\"/prepaidapi/v1.0/Card/GetQrCodeData\",\r\n\t\t\t\t\t\t\t{ Id: generalModel.CardId },\r\n\t\t\t\t\t\t\t(responseQr) => {\r\n\t\t\t\t\t\t\t\tgeneralModel.QrCode = responseQr.Item;\r\n\t\t\t\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\t\t\t\tisLoading: false,\r\n\t\t\t\t\t\t\t\t\tgeneralModel: generalModel,\r\n\t\t\t\t\t\t\t\t\tembossModel: responseData.Item.EmbossInfo,\r\n\t\t\t\t\t\t\t\t\tstatisticModel: responseData.Item.StatisticInfo,\r\n\t\t\t\t\t\t\t\t\ttransactions: responseData.Item.CardTransactions,\r\n\t\t\t\t\t\t\t\t\tcustomerInfo: responseData.Item.CustomerInfo,\r\n\t\t\t\t\t\t\t\t\tcardList: responseData.Item.CardList\r\n\t\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\t}, (error) => {\r\n\t\t\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\t\tisLoading: false,\r\n\t\t\t\t\t\t\tgeneralModel: { BankAccount: {}, WalletAccount: {}, ...this.initialModel },\r\n\t\t\t\t\t\t\tembossModel: { ...this.initialModel },\r\n\t\t\t\t\t\t\tstatisticModel: { ...this.initialModel },\r\n\t\t\t\t\t\t\tcustomerInfo: { ...this.initialModel },\r\n\t\t\t\t\t\t\ttransactions: []\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t(error) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t)\r\n\t\t);\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tvar messages = [];\r\n\r\n\t\tvModel.UniqueClientId = model.UniqueClientId == null;\r\n\t\tif (vModel.UniqueClientId) messages.push(\"Client must be select\");\r\n\r\n\t\tif(!model.IsCorporateCard){\r\n\t\t\tvModel.ClientCustomerId = model.ClientCustomerId == null;\r\n\t\t\tif (vModel.ClientCustomerId) messages.push(\"Customer must be select\");\r\n\t\t}\r\n\t\t\r\n\r\n\t\tvModel.CardId = model.CardId == null;\r\n\t\tif (vModel.CardId) messages.push(\"Card must be select\");\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.props.showMessageNode(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.setState({ vModel });\r\n\t\treturn true;\r\n\t}\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tTabIndexChanged = (index) => {\r\n\t\tthis.setState({ activeIndex: index });\r\n\t}\r\n\r\n\tFillCustomer = (customer) => {\r\n\t\tthis.HandleChange(\"Customer\", customer);\r\n\t}\r\n\r\n\tFillCard = (card) => {\r\n\t\tthis.HandleChange(\"Card\", card);\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, isLoading, model, customerInfo, generalModel, embossModel, statisticModel, vModel, transactions, cardList, isDisableQrCodeTab, isDisableEmbossInfoTab, isDisableGeneralInfoTab, isDisableTransactionsTab, isDisableCustomerCardInfoTab, isDisableStatisticsTab } = this.state;\r\n\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\r\n\t\treturn (\r\n\t\t\t<>\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{this.state.model.IsCorporateCard ? '' : \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{this.state.model.IsCorporateCard ? \r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t: \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\tdisabed: isDisableCustomerCardInfoTab\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\ttabButton: \"General Info\",\r\n\t\t\t\t\t\t\ttabContent: (\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\tdisabled: isDisableGeneralInfoTab\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\ttabButton: \"Emboss Info\",\r\n\t\t\t\t\t\t\ttabContent: (\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\tdisabled: isDisableEmbossInfoTab\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\ttabButton: \"Statistics\",\r\n\t\t\t\t\t\t\ttabContent: (\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\tdisabled: isDisableStatisticsTab\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\ttabButton: \"Transactions\",\r\n\t\t\t\t\t\t\ttabContent: (\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\tdisabled:isDisableTransactionsTab\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\ttabButton: \"Qr Code\",\r\n\t\t\t\t\t\t\ttabContent: (\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\tdisabled:isDisableQrCodeTab\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t]}\r\n\t\t\t\t\ttabIndexChanged={this.TabIndexChanged}\r\n\t\t\t\t/>\r\n\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCardMonitoring.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tExecuteApiFileDownloadWithGenericResponse: PropTypes.func\r\n\r\n};\r\n\r\nexport default withArtifex(CardMonitoring, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport { DocumentIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport CardComponent from \"views/Components/CardComponent\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent\";\r\nimport { GenericAlert, GenericDateInput, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTitle } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant.js\";\r\nimport DateHelper from \"core/DateHelper\";\r\n\r\nclass CardStatementReport extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: null,\r\n\t\t\tCustomer: null,\r\n\t\t\tDefaultAccount: null,\r\n\t\t\tDefaultCard: null,\r\n\t\t\tCardId: null,\r\n\t\t\tValidFrom: null,\r\n\t\t\tValidTo: null,\r\n\t\t\tStatementStart: DateHelper.GetLocalDateTimeAsUtc(),\r\n\t\t\tStatementEnd: DateHelper.GetLocalDateAsUtc(),\r\n\t\t};\r\n\r\n\t\tthis.CardColumns = [\r\n\t\t\t// {\r\n\t\t\t// \tHeader: \"Actions\",\r\n\t\t\t// \taccessor: \"Actions\",\r\n\t\t\t// \tCell: row => (\r\n\t\t\t// \t\t
\r\n\t\t\t// \t\t\t {\r\n\t\t\t// \t\t\t\t\tprops.ExecuteApiFileDownloadWithGenericResponse(\"/prepaidapi/v1.0/Card/GenerateStatementPdfFile\", { CardId: row.original.Id, StatementStart: this.state.model.StatementStart,StatementEnd:this.state.model.StatementEnd },\r\n\t\t\t// \t\t\t\t\t\t`${row.original.CardNumber}-Statement${Math.floor(Math.random() * Math.floor(999999))}`, \"pdf\");\r\n\t\t\t// \t\t\t\t}}\r\n\t\t\t// \t\t\t\tIcon={DocumentIcon}\r\n\t\t\t// \t\t\t/>\r\n\t\t\t// \t\t
\r\n\t\t\t// \t),\r\n\t\t\t// \tsortable: false,\r\n\t\t\t// \tfilterable: false,\r\n\t\t\t// \twidth: 80\r\n\t\t\t// },\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"UniqueClient.ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer\",\r\n\t\t\t\taccessor: \"ClientCustomer.CustomerName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Number\",\r\n\t\t\t\taccessor: \"CardNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Product Name\",\r\n\t\t\t\taccessor: \"Product.ProductName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Usage Limit\",\r\n\t\t\t\taccessor: \"CardUsageLimit\",\r\n\t\t\t\ttypes: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Id\",\r\n\t\t\t\taccessor: \"CardId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Token Number\",\r\n\t\t\t\taccessor: \"CardTokenNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Merchant\",\r\n\t\t\t\taccessor: \"Merchant\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Response Code\",\r\n\t\t\t\taccessor: \"ResponseCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Original Amount\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{row.original.TransactionAmount + \" \" + (row.original.TransactionCurrency != null ? row.original.TransactionCurrency.Code : \"\")}\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{row.original.BillingAmount + \" \" + (row.original.CardholderCurrency != null ? row.original.CardholderCurrency.Code : \"\")}\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Settlement Amount\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{row.original.SettlementAmount + \" \" + (row.original.SettlementCurrency != null ? row.original.SettlementCurrency.Code : \"\")}\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Settlement Date\",\r\n\t\t\t\taccessor: \"SettlementDate\",\r\n\t\t\t\ttype: GridColumnType.Date\r\n\r\n\r\n\t\t\t},\r\n\t\t];\r\n\r\n\t\tthis.state = {\r\n\t\t\tlist: [],\r\n\t\t\tcardlist: [],\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tfilterModel: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tLimitToken: false,\r\n\t\t\tLimitBalanceData: {\r\n\t\t\t\tAvailableCreditLimit: 0,\r\n\t\t\t\tAvailableDebitLimit: 0,\r\n\t\t\t\tAvailableBalance: 0\r\n\t\t\t},\r\n\t\t\tvModel: {}\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Card Statement Report\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t}\r\n\r\n\tRefreshToolBar = () => {\r\n\t\tthis.setState({ LimitToken: !this.state.LimitToken });\r\n\t};\r\n\r\n\tLimitDataLoad = data => {\r\n\t\tthis.setState({ LimitBalanceData: data, isLoading: false });\r\n\t};\r\n\r\n\thandleChange = (name, newValue) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tconst initialModel = { ...this.initialModel };\r\n\r\n\t\tmodel[name] = newValue;\r\n\t\tif (name === \"Customer\") {\r\n\t\t\tif (newValue != null) {\r\n\t\t\t\tmodel.Customer = newValue;\r\n\t\t\t\tmodel.ClientCustomerId = newValue.Id;\r\n\t\t\t\tif (newValue.Accounts != null && newValue.Accounts.length > 0) {\r\n\t\t\t\t\tmodel.DefaultAccount = newValue.Accounts[0];\r\n\t\t\t\t}\r\n\t\t\t\tconst request = { CardLevelCriteria: 1, CustomerId: newValue.Id };\r\n\t\t\t\tProxy.ExecuteGeneral(\r\n\t\t\t\t\tthis, \"POST\",\r\n\t\t\t\t\t\"/prepaidapi/v1.0/Card/GetListByCustomerNo\",\r\n\t\t\t\t\trequest,\r\n\t\t\t\t\tresponseData => {\r\n\t\t\t\t\t\tif (responseData.Item != null && responseData.Item[0] != null) {\r\n\t\t\t\t\t\t\tmodel.DefaultCard = responseData.Item[0];\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tmodel.DefaultCard = null;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tthis.setState({ model: model });\r\n\t\t\t\t\t}\r\n\t\t\t\t);\r\n\t\t\t} else {\r\n\t\t\t\tmodel.ClientCustomerId = null;\r\n\t\t\t\tmodel.Customer = initialModel.Customer;\r\n\t\t\t\tmodel.DefaultAccount = initialModel.DefaultAccount;\r\n\t\t\t\tmodel.DefaultCard = initialModel.DefaultCard;\r\n\t\t\t}\r\n\t\t} else if (name === \"UniqueClientId\") {\r\n\t\t\tif (\r\n\t\t\t\tClientHelper.IsClient() &&\r\n\t\t\t\tinitialModel.UniqueClientId == null &&\r\n\t\t\t\tnewValue != null\r\n\t\t\t) {\r\n\t\t\t\tthis.initialModel.UniqueClientId = newValue;\r\n\t\t\t}\r\n\t\t\tmodel.UniqueClientId = newValue;\r\n\t\t} else if (name === \"ValidFrom\") {\r\n\t\t\tmodel.ValidFrom = newValue;\r\n\t\t} else if (name === \"ValidTo\") {\r\n\t\t\tmodel.ValidTo = newValue;\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tfilterModel: {},\r\n\t\t\tselected: null,\r\n\t\t\tlist: []\r\n\t\t});\r\n\t};\r\n\r\n\taddDays = (date, days) => {\r\n\t\tvar returnDate = new Date();\r\n\t\treturnDate.setDate(date.getDate() + days);\r\n\t\treturn returnDate;\r\n\t};\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tvar errorList = [];\r\n\r\n\t\tif (!model.UniqueClientId) {\r\n\t\t\terrorList.push(\"Select the Client to continue.\");\r\n\t\t\tvModel.UniqueClientId = true;\r\n\t\t}\r\n\t\telse\r\n\t\t\tvModel.UniqueClientId = false;\r\n\r\n\t\tif (!model.ClientCustomerId) {\r\n\t\t\terrorList.push(\"Select the Customer to continue.\");\r\n\t\t\tvModel.ClientCustomerId = true;\r\n\t\t}\r\n\t\telse\r\n\t\t\tvModel.ClientCustomerId = false;\r\n\r\n\t\tif (errorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Required fields!\", errorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\tValidateTransactionSearch = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tvar errorList = [];\r\n\r\n\t\tif (!model.UniqueClientId) {\r\n\t\t\terrorList.push(\"Select the Client to continue.\");\r\n\t\t\tvModel.UniqueClientId = true;\r\n\t\t}\r\n\t\telse\r\n\t\t\tvModel.UniqueClientId = false;\r\n\r\n\t\tif (!model.ClientCustomerId) {\r\n\t\t\terrorList.push(\"Select the Customer to continue.\");\r\n\t\t\tvModel.ClientCustomerId = true;\r\n\t\t}\r\n\t\telse\r\n\t\t\tvModel.ClientCustomerId = false;\r\n\r\n\t\tvModel.StatementStart = !model.StatementStart;\r\n\t\tif (vModel.StatementStart)\r\n\t\t\terrorList.push(\"StatementStart cannot be empty!\");\r\n\r\n\t\tvModel.StatementEnd = !model.StatementEnd;\r\n\t\tif (vModel.StatementEnd)\r\n\t\t\terrorList.push(\"StatementEnd cannot be empty!\");\r\n\t\treturn true;\r\n\t}\r\n\r\n\tHandleCardTransactionSearch = (model) => {\r\n\r\n\t\tif (!this.ValidateTransactionSearch(model))\r\n\t\t\treturn false;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tvar request = {\r\n\t\t\tCriteria: 0,\r\n\t\t\tClientCustomerId: model.Customer == null ? null : model.Customer.Id,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : model.UniqueClientId,\r\n\t\t\tCardId: model.CardId,\r\n\t\t\tStatementStart: model.StatementStart,\r\n\t\t\tStatementEnd: model.StatementEnd\r\n\t\t};\r\n\t\tProxy.ExecuteGeneral(\r\n\t\t\tthis, \"POST\",\r\n\t\t\t\"/prepaidapi/v1.0/TransactionData/SearchStatementCardTransactionSummary\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tmodel,\r\n\t\t\t\t\tlist: responseData.Item\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t\tOnConfirm={onConfirm}\r\n\t\t\t\t/>\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tlet { model, cardlist } = this.state;\r\n\t\tif (cardlist[index].ClientCustomer) {\r\n\t\t\tmodel.ClientCustomerId = cardlist[index].ClientCustomer.Id;\r\n\t\t\tmodel.CustomerNumber = cardlist[index].ClientCustomer.CustomerNumber;\r\n\t\t\tmodel.Customer = cardlist[index].ClientCustomer;\r\n\t\t\tmodel.CardId = cardlist[index].Id;\r\n\t\t\tmodel.CardTokenNumber = cardlist[index].CardTokenNumber;\r\n\t\t\tthis.HandleCardTransactionSearch(model);\r\n\t\t}\r\n\t\tthis.setState({ isEdit: true, model, index });\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Card/GetCardSummaryList\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ cardlist: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tFillCard = (card) => {\r\n\t\tthis.CardModelChange(\"Card\", card);\r\n\t}\r\n\tCardModelChange = (name, value, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\r\n\r\n\t\tif (name === \"Customer\") {\r\n\t\t\tif (value) {\r\n\t\t\t\tmodel.ClientCustomerId = value.Id;\r\n\t\t\t\tmodel.CustomerNumber = value.CustomerNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.ClientCustomerId;\r\n\t\t\t\tdelete model.CustomerNumber;\r\n\t\t\t\tdelete model.CardId;\r\n\t\t\t\tdelete model.CardTokenNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (name === \"Card\") {\r\n\t\t\tif (value) {\r\n\t\t\t\tmodel.CardId = value.CardId;\r\n\t\t\t\tmodel.CardTokenNumber = value.CardTokenNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.CardId;\r\n\t\t\t\tdelete model.CardTokenNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.setState({ model: model });\r\n\t}\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, cardlist, isLoading, vModel } = this.state;\r\n\t\t\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t model,\r\n\t\t\t\t\t\t\tFillDataFromModel: model => this.setState({ model })\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Clear\", OnClick: this.HandleClear, Disabled: Disabled\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n Code: \"Print\",\r\n Disabled: Disabled || model.CardTokenNumber == null ,\r\n\t\t\t\t\t\t\tOnClick: () =>\r\n\t\t\t\t\t\t\t\tthis.props.ExecuteApiFileDownloadWithGenericResponse(\"/prepaidapi/v1.0/Card/GenerateStatementPdfFile\", { CardId:model.CardId, StatementStart: this.state.model.StatementStart,StatementEnd:this.state.model.StatementEnd },\r\n\t\t\t\t\t\t\t\t\t`${this.state.model.CardTokenNumber.substr(0,6)+(\"______\")+this.state.model.CardTokenNumber.substr(12,15)}-Statement${Math.floor(Math.random() * Math.floor(999999))}`, \"pdf\"),\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After}\r\n\t\t\t\t/>\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={ClientHelper.IsClient()}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDefaultIndex={ClientHelper.IsClient() ? 0 : -1}\r\n\t\t\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.UniqueClientId}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t { this.handleChange(\"Customer\", customer); }}\r\n\t\t\t\t\t\t\t\t\t\t\t\tPrograms={[ProgramCodes.Prepaid]}\r\n\t\t\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.ClientCustomerId}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t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iFileDownload: PropTypes.func,\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(CardStatementReport, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent\";\r\nimport { GenericDateInput, GenericExpansionPanel, GenericGrid, GenericSelectInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant.js\";\r\n\r\nclass CardStatusReport extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: null,\r\n\t\t\tCustomer: null,\r\n\t\t\tDefaultAccount: null,\r\n\t\t\tDefaultCard: null,\r\n\t\t\tFilterBy: null\r\n\t\t};\r\n\t\tconst IsBackOffice = ClientHelper.IsBackOffice();\r\n\r\n\t\tthis.initialDialogModel = {\r\n\t\t\tIsDialogOpen: false,\r\n\t\t\tSelectedCard: null\r\n\t\t};\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Create Date\",\r\n\t\t\t\taccessor: \"CardCreateDate\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tColumnType: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Cardholder Name\",\r\n\t\t\t\taccessor: \"CardEmbossName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Masked Card Number\",\r\n\t\t\t\taccessor: \"MaskedCardNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Status\",\r\n\t\t\t\taccessor: \"StatusDescription\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"ClientName\",\r\n\t\t\t\tshow: IsBackOffice\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"CustomerName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Available Balance\",\r\n\t\t\t\taccessor: \"AvailableBalance\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Updated By\",\r\n\t\t\t\taccessor: \"UpdateUser\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Last Transaction Date\",\r\n\t\t\t\taccessor: \"LastTransactionDate\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tColumnType: GridColumnType.DateTime\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Status Change Date\",\r\n\t\t\t\taccessor: \"CardStatusChangeDate\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tColumnType: GridColumnType.DateTime\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.state = {\r\n\t\t\tlist: [],\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tlastModel: this.initialModel,\r\n\t\t\tdialogModel: this.initialDialogModel,\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Card Status Report\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t}\r\n\r\n\r\n\thandleChange = async (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tconst dialogModel = { ...this.state.dialogModel };\r\n\t\tconst initialModel = { ...this.initialModel };\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tif (name === \"Customer\") {\r\n\t\t\tif (newValue != null) {\r\n\t\t\t\tmodel.Customer = newValue;\r\n\t\t\t\tif (newValue.Accounts != null && newValue.Accounts.length > 0) {\r\n\t\t\t\t\tmodel.DefaultAccount = newValue.Accounts[0];\r\n\t\t\t\t}\r\n\t\t\t\tconst request = { CardLevelCriteria: 1, CustomerId: newValue.Id };\r\n\t\t\t\tvar result = await ExecuteApiPost(\"/prepaidapi/v1.0/Card/GetListByCustomerNo\", request);\r\n\t\t\t\tif (result != null && result[0] != null) {\r\n\t\t\t\t\tmodel.DefaultCard = result[0];\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmodel.DefaultCard = null;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ model: model });\r\n\t\t\t} else {\r\n\t\t\t\tmodel.Customer = initialModel.Customer;\r\n\t\t\t\tmodel.DefaultAccount = initialModel.DefaultAccount;\r\n\t\t\t\tmodel.DefaultCard = initialModel.DefaultCard;\r\n\t\t\t}\r\n\t\t} else if (name === \"UniqueClientId\") {\r\n\t\t\tif (\r\n\t\t\t\tClientHelper.IsClient() &&\r\n\t\t\t\tinitialModel.UniqueClientId == null &&\r\n\t\t\t\tnewValue != null\r\n\t\t\t) {\r\n\t\t\t\tthis.initialModel.UniqueClientId = newValue;\r\n\t\t\t}\r\n\t\t\tmodel.UniqueClientId = newValue;\r\n\t\t} else if (name === \"CardStatus\") {\r\n\t\t\tmodel.FilterBy = data;\r\n\t\t} else if (name === \"SelectedCardStatus\") {\r\n\t\t\tdialogModel.SelectedCard.Status = newValue;\r\n\t\t} else if (name === \"SelectedCardStatusReason\") {\r\n\t\t\tdialogModel.SelectedCard.StatusReason = newValue;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tmodel[name] = newValue;\r\n\t\t}\r\n\t\tthis.setState({ model, dialogModel });\r\n\t};\r\n\r\n\thandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tfilterModel: {},\r\n\t\t\tselected: null,\r\n\t\t\tlist: []\r\n\t\t});\r\n\t};\r\n\r\n\r\n\r\n\thandleSearch = async () => {\r\n\r\n\t\tconst { model } = this.state;\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tconst request = {\r\n\t\t\tClientCustomerId: model.Customer === null ? null : model.Customer.Id,\r\n\t\t\tUniqueClientId: model.UniqueClientId,\r\n\t\t\tStatusId: model.FilterBy === null ? null : model.FilterBy.Id,\r\n\t\t\tFromDate: model.FromDate,\r\n\t\t\tEndDate: model.EndDate\r\n\t\t};\r\n\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/prepaidapi/v1.0/Card/CardStatusReport\", request);\r\n\t\tthis.setState({ list: result, isLoading: false });\r\n\r\n\t};\r\n\r\n\thandleShowDialog = (data, index) => {\r\n\t\tconst dialogModel = { ...this.state.dialogModel };\r\n\t\tdialogModel.IsDialogOpen = true;\r\n\t\tdialogModel.SelectedCard = Object.assign({}, data);\r\n\t\tthis.setState({ dialogModel });\r\n\t};\r\n\r\n\thandleCancelDialog = () => {\r\n\t\tconst dialogModel = { ...this.state.dialogModel };\r\n\t\tdialogModel.IsDialogOpen = false;\r\n\t\tdialogModel.SelectedCard = null;\r\n\t\tthis.setState({ dialogModel });\r\n\t};\r\n\r\n\thandleSubmitDialog = () => {\r\n\t\tconst dialogModel = { ...this.state.dialogModel };\r\n\r\n\t\tif (dialogModel.SelectedCard == null) {\r\n\t\t\tdialogModel.IsDialogOpen = false;\r\n\t\t\tdialogModel.SelectedCard = null;\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Card/UpdateStatus\",\r\n\t\t\t{\r\n\t\t\t\tCardId: dialogModel.SelectedCard.CardId,\r\n\t\t\t\tCardStatusId: dialogModel.SelectedCard.Status,\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tdialogModel.IsDialogOpen = false;\r\n\t\t\t\tdialogModel.SelectedCard = null;\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ dialogModel, isLoading: false }, () => {\r\n\t\t\t\t\t\tthis.props.showMessgae(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t});\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ dialogModel, isLoading: false }, () => {\r\n\t\t\t\t\tthis.handleSearch();\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false }, () => {\r\n\t\t\t\t\tthis.props.showMessage(\r\n\t\t\t\t\t\t\"error\",\r\n\t\t\t\t\t\t\"An error occurred while requesting data\",\r\n\t\t\t\t\t\terror.message\r\n\t\t\t\t\t);\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, list, isLoading } = this.state;\r\n\t\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t 0\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{ Code: \"Clear\", OnClick: this.handleClear, Disabled: Disabled }\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After}\r\n\t\t\t\t/>\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={ClientHelper.IsClient()}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tDefaultIndex={ClientHelper.IsClient() ? 0 : -1}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.handleChange(\"Customer\", customer);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tPrograms={[ProgramCodes.Prepaid]}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t `${d.Description}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.FilterBy == null ? null : model.FilterBy.Id}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tSorted={{Member: \"Description\"}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCanClear />\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCardStatusReport.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\thandleChange: PropTypes.func,\r\n\tmenuId: PropTypes.number,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default withArtifex(CardStatusReport, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericCheckInput, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericDateInput, GenericLabel, GenericTitle } from \"views/Components/Generic\";\r\nimport { MonthsOfYear, MenuCodes, GridColumnType } from \"views/Constants/Constant.js\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\n\r\nclass ActiveCardandRevenueReport extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t\tIsMainCard: true\r\n\t\t};\r\n\r\n\r\n\t\tthis.columnsRevenue = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Year\",\r\n\t\t\t\taccessor: \"Year\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Month\",\r\n\t\t\t\taccessor: \"Month\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"ProductName\",\r\n\t\t\t\taccessor: \"ProductName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"TransactionType\",\r\n\t\t\t\taccessor: \"TransactionType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Transaction Source\",\r\n\t\t\t\taccessor: \"CardTransactionSourceValue\",\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Amount\",\r\n\t\t\t\taccessor: \"TotalAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Count\",\r\n\t\t\t\taccessor: \"Count\"\r\n\t\t\t}\r\n\r\n\t\t];\r\n\t\tthis.columnsFundsTransfer = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Year\",\r\n\t\t\t\taccessor: \"Year\",\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Month\",\r\n\t\t\t\taccessor: \"Month\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Name\",\r\n\t\t\t\taccessor: \"AccountName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Number\",\r\n\t\t\t\taccessor: \"AccountNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"MaskedCardNumber\",\r\n\t\t\t\taccessor: \"MaskedCardNumber\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"CardTokenNumber\",\r\n\t\t\t\taccessor: \"CardTokenNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"TransactionType\",\r\n\t\t\t\taccessor: \"TransactionType\"\r\n\t\t\t},\r\n\t\t\t\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Amount\",\r\n\t\t\t\taccessor: \"TotalAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Count\",\r\n\t\t\t\taccessor: \"Count\"\r\n\t\t\t}\r\n\t\t\t// {\r\n\t\t\t// \tHeader: \"TranactionDateTime\",\r\n\t\t\t// \taccessor: \"TranactionDateTime\",\r\n\t\t\t// \ttype: GridColumnType.DateUtc,\r\n\r\n\t\t\t// },\r\n\t\t];\r\n\t\tthis.columnsActiveCard = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Year\",\r\n\t\t\t\taccessor: \"Year\",\r\n\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"Month\",\r\n\t\t\t\taccessor: \"Month\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"MaskedCardNumber\",\r\n\t\t\t\taccessor: \"MaskedCardNumber\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"CardTokenNumber\",\r\n\t\t\t\taccessor: \"CardTokenNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"TransactionType\",\r\n\t\t\t\taccessor: \"TransactionType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"TransactionCodeType\",\r\n\t\t\t\taccessor: \"TransactionCodeType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Transaction Source\",\r\n\t\t\t\taccessor: \"CardTransactionSourceValue\",\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Amount\",\r\n\t\t\t\taccessor: \"TotalAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Count\",\r\n\t\t\t\taccessor: \"Count\"\r\n\t\t\t}\r\n\t\t\t// {\r\n\t\t\t// \tHeader: \"TranactionDateTime\",\r\n\t\t\t// \taccessor: \"TranactionDateTime\",\r\n\t\t\t// \ttype: GridColumnType.DateUtc,\r\n\r\n\t\t\t// },\r\n\t\t];\r\n\t\tthis.emptyObject = {};\r\n\t\tthis.parameterProduct = {};\r\n\t\tthis.sortedName = { Member: \"Name\" };\r\n\t\tthis.sortedCode = { Member: \"Code\" };\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tMonth: [],\r\n\t\t\tvModel: {}\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t\t}\r\n\r\n\t\tif (this.props.MenuCode == MenuCodes.Menu_ActiveCardReport) {\r\n\r\n\t\t\tsetAppLeftTitle(\"Active Card Report\");\r\n\t\t} else {\r\n\t\t\tsetAppLeftTitle(\"Revenue Report\");\r\n\r\n\t\t}\r\n\t\tthis.SetYearList();\r\n\t}\r\n\r\n\tSetYearList = () => {\r\n\t\tvar currentYear = parseInt(DateHelper.GetYear());\r\n\t\tvar listYear = [];\r\n\t\tvar listAge = [];\r\n\t\tvar listMonth = [];\r\n\r\n\t\tfor (var i = 2019; i <= currentYear; i++) {\r\n\t\t\tlistYear.push({\r\n\t\t\t\t\"Year\": i,\r\n\t\t\t\t\"YearNumber\": parseInt(currentYear - i),\r\n\t\t\t});\r\n\t\t}\r\n\t\tfor (var i = 18, j = 1; i <= 100; i++) {\r\n\t\t\tlistAge.push({\r\n\t\t\t\t\"Age\": i\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tlistMonth.push(\r\n\t\t\t{\r\n\t\t\t\t\"MonthName\": \"Last 1 Months\",\r\n\t\t\t\t\"StatementPeriod\": 1\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\t\"MonthName\": \"Last 3 Months\",\r\n\t\t\t\t\"StatementPeriod\": 3\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\t\"MonthName\": \"Last 6 Months\",\r\n\t\t\t\t\"StatementPeriod\": 6\r\n\t\t\t}\r\n\t\t);\r\n\r\n\t\tthis.setState({ listAge, listYear, listMonth });\r\n\t}\r\n\thandleListItemChange = (name, newValue, key, ObjectName) => {\r\n\t\tvar model = { ...this.state.model };\r\n\t\tconst array = this.state.Month;\r\n\t\tconst item = array.includes(key);\r\n\t\tif (item == false && newValue == true) {\r\n\t\t\tarray.push(key);\r\n\t\t} else if (item == true && newValue == false) {\r\n\t\t\tvar index = array.indexOf(key);\r\n\t\t\tif (index > -1) {\r\n\t\t\t\tarray.splice(index, 1);\r\n\t\t\t}\r\n\t\t}\r\n\t\tmodel[\"Month\"] = array;\r\n\t\tthis.setState({ Month: array, model });\r\n\r\n\t}\r\n\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\r\n\t\tlet IsActiveCardReport = this.props.MenuCode == MenuCodes.Menu_ActiveCardReport;\r\n\t\tif (IsActiveCardReport) {\r\n\t\t\tvar result = await ExecuteApiPost(\"/prepaidapi/v1.0/TransactionData/ActiveCardReport\", model, null, null, null);\r\n\t\t\tthis.setState({ listActiveCard: result.ActiveCardResponse || [], listFundstransfer: result.FundsTransferResponse || [] });\r\n\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvar result1 = await ExecuteApiPost(\"/prepaidapi/v1.0/TransactionData/RevenueReport\", model, null, null, null);\r\n\t\t\tthis.setState({ listRevenue: result1.RevenueResponse || [] });\r\n\t\t}\r\n\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, listActiveCard: [], listFundstransfer: [], listRevenue: [], selected: null, Month: [] });\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tvar { model } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tconst vModel = { ...this.state.vModel };\r\n\t\tvar errors = [];\r\n\r\n\t\tif (!model.ParentMenuId\r\n\t\t\t|| model.ParentMenuId == -2) {\r\n\t\t\terrors.push(\"Parent menu can not be null.\");\r\n\t\t}\r\n\t\tif (!model.SubMenuId) {\r\n\t\t\terrors.push(\"Sub menu can not be null.\");\r\n\t\t}\r\n\t\tif (!model.ActionId) {\r\n\t\t\terrors.push(\"Action can not be null.\");\r\n\t\t}\r\n\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tGetProductParameter = () => {\r\n\t\tthis.parameterProduct.UniqueClientId = this.state.model.UniqueClientId;\r\n\t\tthis.parameterProduct.IsNoNameProduct = false;\r\n\t\treturn this.parameterProduct;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, listActiveCard, listRevenue, listFundstransfer, listYear, listMonth, Month } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\t\tlet IsActiveCardReport = this.props.MenuCode == MenuCodes.Menu_ActiveCardReport;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{(IsActiveCardReport) &&\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t{(IsActiveCardReport) &&\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t{(!IsActiveCardReport) &&\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t 0 ? true : false}\r\n\t\t\t\t\t\t\t\t\t\t\t\t// Required\r\n\t\t\t\t\t\t\t\t\t\t\t\t// IsInvalid={vModel.ProductId}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t{(!IsActiveCardReport) &&\r\n\t\t\t\t\t\t\t\t\t\t\t \t}\r\n\t\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t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t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nActiveCardandRevenueReport.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any,\r\n\tclasses: PropTypes.object\r\n\r\n};\r\nexport default withArtifex(ActiveCardandRevenueReport, {});\r\n","import { ListItemIcon, withStyles } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput, GenericCheckInput } from \"views/Components/Generic\";\r\nimport { Proxy } from \"core\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport externalContainerStyle from \"assets/jss/material-dashboard-pro-react/layouts/externalContainerStyle.jsx\";\r\nimport { ParameterEmptyObject } from \"views/Constants/Constant.Parameter\";\r\nimport { SortedName, SortedParameterValue, SortedPropertyName } from \"views/Constants/Constant.Sorted\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\nimport AlertHelper from \"core/AlertHelper\";\r\n\r\nclass CardExpireDate extends React.Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.getappCenterTitle = \"Empty\";\r\n\t\tthis.getappLeftTitle = \"Empty\";\r\n\t\tthis.zIndex10 = { zIndex: 10 };\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\tdata: [],\r\n\t\t\tcheckedValues: [],\r\n\t\t\trecordKeeping: [],\r\n\t\t\tisSendEmailDialogOpen: false,\r\n\t\t\tactiveClient: [],\r\n\t\t\tresponseDetail: {},\r\n\t\t\tisDetailDialogOpen: false\r\n\t\t};\r\n\t\tthis.cpverTable = React.createRef();\r\n\t}\r\n\r\n\tcomponentDidMount = () => {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"Card Expire Date\");\r\n\t\t\tthis.getappCenterTitle = \"Card Expire Date\";\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Card Expire Date\");\r\n\t\t\tthis.getappLeftTitle = \"Account Search\";\r\n\t\t}\r\n\r\n\t\tthis.setState(state => ({ checkedValues: [] }));\r\n\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({ alert: null, isLoading: false });\r\n\t}\r\n\tShowErrorMessage = (message) => {\r\n\t\tthis.setState({\r\n\t\t\tisLoading: false,\r\n\t\t\talert: AlertHelper.CreateAlert(\"Warning\", message, \"warning\", this.hideAlert)\r\n\t\t});\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, data: [], selected: null });\r\n\t}\r\n\r\n\tshowLoading = () => { this.setState({ isLoading: true }); }\r\n\thideLoading = () => { this.setState({ isLoading: false }); }\r\n\r\n\tshowDetail = async (result) => {\r\n\t\tthis.setState({ responseDetail: result || [], isDetailDialogOpen: true });\r\n\t}\r\n\r\n\tHandleCheck(trans) {\r\n\r\n\t\tthis.setState(state => ({\r\n\t\t\tcheckedValues: state.checkedValues.includes(trans)\r\n\t\t\t\t? state.checkedValues.filter(c => c !== trans)\r\n\t\t\t\t: [...state.checkedValues, trans]\r\n\t\t}));\r\n\r\n\t\t// console.log(this.state)\r\n\t}\r\n\tHandleSearch = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Card/GetExpiredDateCards\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false, checkedValues: [] });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ data: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tSubmit = () => {\r\n\t\tif (this.state.checkedValues.length > 0) {\r\n\t\t\tthis.props.showConfirmMessage(\"warning\", \"Warning\", \"Are you sure you want to continue?\", () => {\r\n\r\n\t\t\t\tthis.setState({ isLoading: true });\r\n\r\n\t\t\t\tvar model = this.state.checkedValues.map(item => {\r\n\t\t\t\t\treturn {\r\n\t\t\t\t\t\tCardId: item.CardId,\r\n\t\t\t\t\t\tClientCustomerId: item.ClientCustomerId,\r\n\t\t\t\t\t\tProductId: item.ProductId,\r\n\t\t\t\t\t\tEmbossName: item.EmbossName1,\r\n\t\t\t\t\t\tEmbossType: item.EmbossType,\r\n\t\t\t\t\t\tInstantEmbossBranchId: item.InstantEmbossBranchId,\r\n\t\t\t\t\t\tUniqueClientId: this.state.model.UniqueClientId\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\r\n\t\t\t\tProxy.POST(\r\n\t\t\t\t\t\"/prepaidapi/v1.0/Prepaid/RenewCardList\",\r\n\t\t\t\t\tmodel,\r\n\t\t\t\t\t(responseData) => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\t\t\tthis.props.showMessage(\"success\", \"Succeeded\", responseData.Item.ResultMessage);\r\n\t\t\t\t\t\t\tthis.HandleSearch();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t(error) => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t\t\t}\r\n\t\t\t\t);\r\n\t\t\t})\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.ShowErrorMessage(\"Please select at least one data. \");\r\n\t\t}\r\n\r\n\t}\r\n\r\n\r\n\thandleChange = (name, newValue) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\tGetRenderItemClient = (x) => {\r\n\t\tvar render = `${x.Name} - ${x.UniqueClientId}`;\r\n\r\n\t\treturn render;\r\n\t}\r\n\r\n\tValueChanged = (name, value, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tvalidate = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (model.UniqueClientId == null || model.UniqueClientId == 0) {\r\n\t\t\tthis.props.showMessageNode(\"warning\", \"Please Select Client!\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, selected, isLoading, data, alert } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t c.CardId == row.original.CardId).length > 0}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={() => { this.HandleCheck(row.original); }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={row.original.IsRenewed == true}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Card Id\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"CardId\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Customer Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"CustomerNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Emboss Name 1\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"EmbossName1\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Expire Date\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ExpireDate\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.DateTime\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Last Reneval Date\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"LastRenevalDate\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.DateTime\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"CardFinancial Id\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"CardFinancialId\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Card Token Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"CardTokenNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Is Main Card\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"IsMainCard\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.YesNo,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.YesNo\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Is Renewed\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"IsRenewed\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.YesNo,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.YesNo\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCardExpireDate.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tExecuteApiFileDownloadWithGenericResponse: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default withStyles(externalContainerStyle)(CardExpireDate);","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericCheckInput, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericLabel, GenericTitle } from \"views/Components/Generic\";\r\nimport { MonthsOfYear, GridColumnType, MenuCodes } from \"views/Constants/Constant.js\";\r\n\r\nclass CardReport extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tlet IsCardReport = this.props.MenuCode == MenuCodes.Menu_CardReport;\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\",\r\n\t\t\t\tshow: IsCardReport\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Year\",\r\n\t\t\t\taccessor: \"Year\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Month\",\r\n\t\t\t\taccessor: \"Month\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"MCC Name\",\r\n\t\t\t\taccessor: \"MCCName\",\r\n\t\t\t\tshow: !IsCardReport\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Transaction Source\",\r\n\t\t\t\taccessor: \"CardTransactionSourceValue\",\r\n\t\t\t\tshow: !IsCardReport\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"City Name\",\r\n\t\t\t\taccessor: \"CityName\",\r\n\t\t\t\tshow: IsCardReport\r\n\t\t\t},\r\n\t\t\t// {\r\n\t\t\t// \tHeader: \"Gender\",\r\n\t\t\t// \taccessor: \"Gender\",\r\n\t\t\t// \tshow: IsCardReport\r\n\t\t\t// },\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Age\",\r\n\t\t\t\taccessor: \"Age\",\r\n\t\t\t\tshow: IsCardReport\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Amount\",\r\n\t\t\t\taccessor: \"TotalAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Count\",\r\n\t\t\t\taccessor: \"Count\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.sortedName = { Member: \"Name\" };\r\n\t\tthis.sortedCode = { Member: \"Code\" };\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\tMonth: [],\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t\t}\r\n\r\n\t\tif (this.props.MenuCode == MenuCodes.Menu_CardReport) {\r\n\t\t\tsetAppLeftTitle(\"Card Report\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tsetAppLeftTitle(\"MCC Report\");\r\n\t\t}\r\n\t\tthis.SetYearList();\r\n\t}\r\n\r\n\tSetYearList = () => {\r\n\t\tvar currentYear = parseInt(DateHelper.GetYear());\r\n\t\tvar listYear = [];\r\n\t\tvar listAge = [];\r\n\r\n\t\tfor (var i = 2019; i <= currentYear; i++) {\r\n\t\t\tlistYear.push({\r\n\t\t\t\t\"Year\": i\r\n\t\t\t});\r\n\t\t}\r\n\t\tfor (var i = 18; i <= 100; i++) {\r\n\t\t\tlistAge.push({\r\n\t\t\t\t\"Age\": i\r\n\t\t\t});\r\n\t\t}\r\n\t\tthis.setState({ listAge, listYear });\r\n\t}\r\n\thandleListItemChange = (name, newValue, key, ObjectName) => {\r\n\t\tvar model = { ...this.state.model };\r\n\t\tconst array = this.state.Month;\r\n\t\tconst item = array.includes(key);\r\n\t\tif (item == false && newValue == true) {\r\n\t\t\tarray.push(key);\r\n\t\t} else if (item == true && newValue == false) {\r\n\t\t\tvar index = array.indexOf(key);\r\n\t\t\tif (index > -1) {\r\n\t\t\t\tarray.splice(index, 1);\r\n\t\t\t}\r\n\t\t}\r\n\t\tmodel[\"Month\"] = array;\r\n\t\tthis.setState({ Month: array, model });\r\n\r\n\t}\r\n\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tif (this.props.MenuCode == MenuCodes.Menu_CardReport) {\r\n\t\t\tvar result = await ExecuteApiPost(\"/prepaidapi/v1.0/TransactionData/CardReport\", model, null, null, null);\r\n\t\t\tthis.setState({ list: result || [] });\r\n\r\n\t\t} else {\r\n\t\t\tvar result1 = await ExecuteApiPost(\"/prepaidapi/v1.0/TransactionData/MCCReport\", model, null, null, null);\r\n\t\t\tthis.setState({ list: result1 || [] });\r\n\t\t}\r\n\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, list: [], selected: null, Month: [] });\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tvar { model } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errors = [];\r\n\r\n\t\tif (!model.ParentMenuId\r\n\t\t\t|| model.ParentMenuId == -2) {\r\n\t\t\terrors.push(\"Parent menu can not be null.\");\r\n\t\t}\r\n\t\tif (!model.SubMenuId) {\r\n\t\t\terrors.push(\"Sub menu can not be null.\");\r\n\t\t}\r\n\t\tif (!model.ActionId) {\r\n\t\t\terrors.push(\"Action can not be null.\");\r\n\t\t}\r\n\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\r\n\r\n\trender() {\r\n\t\tconst { model, list, listYear, listAge, Month } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\t\tlet IsCardReport = this.props.MenuCode == MenuCodes.Menu_CardReport;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{(IsCardReport) &&\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.ValueChanged}\r\n\t\t\t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\r\n\t\t\t\t\t\t\t\t\t\t\t{MonthsOfYear != null && MonthsOfYear.map(item => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChange(name, value, item.Id, \"MonthsOfYear\")}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t))}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCardReport.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any,\r\n\tclasses: PropTypes.object\r\n\r\n};\r\nexport default withArtifex(CardReport, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericCheckInput, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericLabel, GenericTitle } from \"views/Components/Generic\";\r\nimport { MonthsOfYear, GridColumnType, MenuCodes } from \"views/Constants/Constant.js\";\r\n\r\nclass ChannelandSettlementReport extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tlet IsChannelReport = this.props.MenuCode == MenuCodes.Menu_ChannelReport;\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Year\",\r\n\t\t\t\taccessor: \"Year\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Month\",\r\n\t\t\t\taccessor: \"Month\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Tranasction Entry Type\",\r\n\t\t\t\taccessor: \"TransactionEntryValue\",\r\n\t\t\t\tshow: IsChannelReport\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"Card Transaction Source\",\r\n\t\t\t\taccessor: \"CardTransactionSourceValue\",\r\n\t\t\t\tshow: IsChannelReport\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Bin\",\r\n\t\t\t\taccessor: \"Bin\",\r\n\t\t\t\tshow: !IsChannelReport\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Bin Description\",\r\n\t\t\t\taccessor: \"BinDescription\",\r\n\t\t\t\tshow: !IsChannelReport\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Network Name\",\r\n\t\t\t\taccessor: \"NetworkTypeName\",\r\n\t\t\t\tshow: !IsChannelReport\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"AccountName\",\r\n\t\t\t\taccessor: \"AccountName\",\r\n\t\t\t\tshow: false\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"AccountNumber\",\r\n\t\t\t\taccessor: \"AccountNumber\",\r\n\t\t\t\tshow: false\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Amount\",\r\n\t\t\t\taccessor: \"TotalAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Count\",\r\n\t\t\t\taccessor: \"Count\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.sortedName = { Member: \"Name\" };\r\n\t\tthis.sortedCode = { Member: \"Code\" };\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\tMonth: [],\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t\t}\r\n\r\n\t\tif (this.props.MenuCode == MenuCodes.Menu_ChannelReport) {\r\n\t\t\tsetAppLeftTitle(\"Channel Report\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tsetAppLeftTitle(\"Settlement Report\");\r\n\t\t}\r\n\t\tthis.SetYearList();\r\n\t}\r\n\r\n\tSetYearList = () => {\r\n\t\tvar currentYear = parseInt(DateHelper.GetYear());\r\n\t\tvar listYear = [];\r\n\t\tvar listAge = [];\r\n\r\n\t\tfor (var i = 2019; i <= currentYear; i++) {\r\n\t\t\tlistYear.push({\r\n\t\t\t\t\"Year\": i\r\n\t\t\t});\r\n\t\t}\r\n\t\tfor (var i = 18; i <= 100; i++) {\r\n\t\t\tlistAge.push({\r\n\t\t\t\t\"Age\": i\r\n\t\t\t});\r\n\t\t}\r\n\t\tthis.setState({ listAge, listYear });\r\n\t}\r\n\thandleListItemChange = (name, newValue, key, ObjectName) => {\r\n\t\tvar model = { ...this.state.model };\r\n\t\tconst array = this.state.Month;\r\n\t\tconst item = array.includes(key);\r\n\t\tif (item == false && newValue == true) {\r\n\t\t\tarray.push(key);\r\n\t\t} else if (item == true && newValue == false) {\r\n\t\t\tvar index = array.indexOf(key);\r\n\t\t\tif (index > -1) {\r\n\t\t\t\tarray.splice(index, 1);\r\n\t\t\t}\r\n\t\t}\r\n\t\tmodel[\"Month\"] = array;\r\n\t\tthis.setState({ Month: array, model });\r\n\r\n\t}\r\n\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tif (this.props.MenuCode == MenuCodes.Menu_ChannelReport) {\r\n\t\t\tvar result = await ExecuteApiPost(\"/prepaidapi/v1.0/TransactionData/ChannelReport\", model, null, null, null);\r\n\t\t\tthis.setState({ list: result || [] });\r\n\r\n\t\t} else {\r\n\t\t\tvar result1 = await ExecuteApiPost(\"/prepaidapi/v1.0/TransactionData/SettlementReport\", model, null, null, null);\r\n\t\t\tthis.setState({ list: result1 || [] });\r\n\t\t}\r\n\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, list: [], selected: null, Month: [] });\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tvar { model } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errors = [];\r\n\r\n\t\tif (!model.ParentMenuId\r\n\t\t\t|| model.ParentMenuId == -2) {\r\n\t\t\terrors.push(\"Parent menu can not be null.\");\r\n\t\t}\r\n\t\tif (!model.SubMenuId) {\r\n\t\t\terrors.push(\"Sub menu can not be null.\");\r\n\t\t}\r\n\t\tif (!model.ActionId) {\r\n\t\t\terrors.push(\"Action can not be null.\");\r\n\t\t}\r\n\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\r\n\r\n\trender() {\r\n\t\tconst { model, list, listYear, listAge, Month } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\t\tlet IsChannelReport = this.props.MenuCode == MenuCodes.Menu_ChannelReport;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t{(!IsChannelReport) &&\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t `${d.Bin} - ${d.Description}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.OnusBinId}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.ValueChanged}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t{(!IsChannelReport) &&\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t{(IsChannelReport) &&\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t{(IsChannelReport) &&\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t \t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{MonthsOfYear != null && MonthsOfYear.map(item => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChange(name, value, item.Id, \"MonthsOfYear\")}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t))}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nChannelandSettlementReport.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any,\r\n\tclasses: PropTypes.object\r\n\r\n};\r\nexport default withArtifex(ChannelandSettlementReport, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericCheckInput, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericDateInput, GenericLabel } from \"views/Components/Generic\";\r\nimport { MonthsOfYear, MenuCodes, GridColumnType } from \"views/Constants/Constant.js\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\n\r\nclass DomesticAndInternationalReport extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t\tIsMainCard: true\r\n\t\t};\r\n\r\n\t\tlet IsDomesticAndInternationalReport = this.props.MenuCode == MenuCodes.Menu_DomesticAndInternationalReport;\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Year\",\r\n\t\t\t\taccessor: \"Year\",\r\n\t\t\t\tshow: !IsDomesticAndInternationalReport\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Month\",\r\n\t\t\t\taccessor: \"Month\",\r\n\t\t\t\tshow: !IsDomesticAndInternationalReport\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"ProductName\",\r\n\t\t\t\taccessor: \"ProductName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"TransactionType\",\r\n\t\t\t\taccessor: \"TransactionType\"\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Transaction Source\",\r\n\t\t\t\taccessor: \"CardTransactionSourceValue\",\r\n\t\t\t\tshow: IsDomesticAndInternationalReport\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"PlasticType Name\",\r\n\t\t\t\taccessor: \"PlasticName\",\r\n\t\t\t\tshow: !IsDomesticAndInternationalReport\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"PlasticType Code\",\r\n\t\t\t\taccessor: \"PlasticCode\",\r\n\t\t\t\tshow: !IsDomesticAndInternationalReport\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Amount\",\r\n\t\t\t\taccessor: \"TotalAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Count\",\r\n\t\t\t\taccessor: \"Count\"\r\n\t\t\t}\r\n\t\t\t// {\r\n\t\t\t// \tHeader: \"TranactionDateTime\",\r\n\t\t\t// \taccessor: \"TranactionDateTime\",\r\n\t\t\t// \ttype: GridColumnType.DateUtc,\r\n\r\n\t\t\t// },\r\n\t\t];\r\n\r\n\t\tthis.emptyObject = {};\r\n\t\tthis.parameterProduct = {};\r\n\t\tthis.sortedName = { Member: \"Name\" };\r\n\t\tthis.sortedCode = { Member: \"Code\" };\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tMonth: [],\r\n\t\t\tvModel: {}\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t\t}\r\n\r\n\t\tif (this.props.MenuCode == MenuCodes.Menu_DomesticAndInternationalReport) {\r\n\r\n\t\t\tsetAppLeftTitle(\"Txn Domestic and International Report\");\r\n\t\t} else {\r\n\t\t\tsetAppLeftTitle(\"Txn Product and PlasticType Report\");\r\n\r\n\t\t}\r\n\t\tthis.SetYearList();\r\n\t}\r\n\r\n\tSetYearList = () => {\r\n\t\tvar currentYear = parseInt(DateHelper.GetYear());\r\n\t\tvar listYear = [];\r\n\t\tvar listAge = [];\r\n\r\n\t\tfor (var i = 2019; i <= currentYear; i++) {\r\n\t\t\tlistYear.push({\r\n\t\t\t\t\"Year\": i\r\n\t\t\t});\r\n\t\t}\r\n\t\tfor (var i = 18; i <= 100; i++) {\r\n\t\t\tlistAge.push({\r\n\t\t\t\t\"Age\": i\r\n\t\t\t});\r\n\t\t}\r\n\t\tthis.setState({ listAge, listYear });\r\n\t}\r\n\thandleListItemChange = (name, newValue, key, ObjectName) => {\r\n\t\tvar model = { ...this.state.model };\r\n\t\tconst array = this.state.Month;\r\n\t\tconst item = array.includes(key);\r\n\t\tif (item == false && newValue == true) {\r\n\t\t\tarray.push(key);\r\n\t\t} else if (item == true && newValue == false) {\r\n\t\t\tvar index = array.indexOf(key);\r\n\t\t\tif (index > -1) {\r\n\t\t\t\tarray.splice(index, 1);\r\n\t\t\t}\r\n\t\t}\r\n\t\tmodel[\"Month\"] = array;\r\n\t\tthis.setState({ Month: array, model });\r\n\r\n\t}\r\n\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\r\n\t\tlet IsDomesticAndInternationalReport = this.props.MenuCode == MenuCodes.Menu_DomesticAndInternationalReport;\r\n\t\tif (IsDomesticAndInternationalReport) {\r\n\t\t\tvar result = await ExecuteApiPost(\"/prepaidapi/v1.0/TransactionData/DomesticAndInternationaReport\", model, null, null, null);\r\n\t\t\tthis.setState({ list: result || [] });\r\n\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvar result1 = await ExecuteApiPost(\"/prepaidapi/v1.0/TransactionData/ProductAndPlasticTypeReport\", model, null, null, null);\r\n\t\t\tthis.setState({ list: result1 || [] });\r\n\t\t}\r\n\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, list: [], selected: null, Month: [] });\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tvar { model } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tconst vModel = { ...this.state.vModel };\r\n\t\tvar errors = [];\r\n\r\n\t\tif (!model.ParentMenuId\r\n\t\t\t|| model.ParentMenuId == -2) {\r\n\t\t\terrors.push(\"Parent menu can not be null.\");\r\n\t\t}\r\n\t\tif (!model.SubMenuId) {\r\n\t\t\terrors.push(\"Sub menu can not be null.\");\r\n\t\t}\r\n\t\tif (!model.ActionId) {\r\n\t\t\terrors.push(\"Action can not be null.\");\r\n\t\t}\r\n\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tGetProductParameter = () => {\r\n\t\tthis.parameterProduct.UniqueClientId = this.state.model.UniqueClientId;\r\n\t\tthis.parameterProduct.IsNoNameProduct = false;\r\n\t\treturn this.parameterProduct;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, list, listYear, listAge, Month } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\t\tlet IsDomesticAndInternationalReport = this.props.MenuCode == MenuCodes.Menu_DomesticAndInternationalReport;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{(!IsDomesticAndInternationalReport) &&\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t 0 ? true : false}\r\n\t\t\t\t\t\t\t\t\t\t\t// Required\r\n\t\t\t\t\t\t\t\t\t\t\t// IsInvalid={vModel.ProductId}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{(IsDomesticAndInternationalReport) &&\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t{(IsDomesticAndInternationalReport) &&\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t{(IsDomesticAndInternationalReport) &&\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t{(!IsDomesticAndInternationalReport) &&\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t{(!IsDomesticAndInternationalReport) &&\r\n\t\t\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t{(IsDomesticAndInternationalReport) &&\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t{(IsDomesticAndInternationalReport) &&\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t{(!IsDomesticAndInternationalReport) &&\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t{(!IsDomesticAndInternationalReport) &&\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t{MonthsOfYear != null && MonthsOfYear.map(item => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t this.handleListItemChange(name, value, item.Id, \"MonthsOfYear\")}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t))}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nDomesticAndInternationalReport.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any,\r\n\tclasses: PropTypes.object\r\n\r\n};\r\nexport default withArtifex(DomesticAndInternationalReport, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport { GenericGrid } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { GenericDateInput} from \"views/Components/Generic\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\n\r\nclass FeeCollection extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: null\r\n\t\t};\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Unique Client Id\",\r\n\t\t\t\taccessor: \"UniqueClientId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Fee Amount Intended For Collection\",\r\n\t\t\t\taccessor: \"FeeAmountToCollect\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actual Fee Amount Collected\",\r\n\t\t\t\taccessor: \"FeeAmountCollected\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date And Time Of Collection\",\r\n\t\t\t\taccessor: \"DateTimeCollection\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reference Number\",\r\n\t\t\t\taccessor: \"ReferenceNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Description\",\r\n\t\t\t\taccessor: \"Description\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.state = {\r\n\t\t\tlist: [],\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tisLoading: false,\r\n\t\t\tindex: -1\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Fee Collection\");\r\n\t\tthis.props.setAppCenterTitle(\"CARD MANAGEMENT SYSTEM\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tthis.setState(function (state) {\r\n\t\t\tvar model = state.model || {};\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t};\r\n\r\n\tHandleSearch = (name, newValue, data) => {\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/FeeCollectionReport/GetAll\",\r\n\t\t\t{StartDate: this.state.model.FromDate, EndDate: this.state.model.ToDate},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({isLoading: false});\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tlist: responseData.Item,\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({isLoading: false});\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\trender() {\r\n\t\tconst { alert, model, list, isLoading, index} = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t { this.HandleSearch();}}\r\n\t\t\t\t]} menuId={this.props.menuId}/>\r\n\t\t\t\t

\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\nFeeCollection.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\nexport default withArtifex(FeeCollection, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport {\r\n GenericSelectInput,\r\n GenericDateInput,\r\n GenericExpansionPanel,\r\n GenericRadioInput,\r\n GenericGrid,\r\n GenericDialog,\r\n GenericAlert,\r\n GenericLabel\r\n} from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Select from \"react-select\";\r\n\r\nclass FeeRevenueReport extends Component {\r\n constructor(props) {\r\n super(props);\r\n\r\n this.initialModel = {\r\n Id: 0,\r\n UniqueClientId: ClientHelper.IsClient()\r\n ? ClientHelper.GetClientRowId()\r\n : undefined,\r\n IsMainCard: true,\r\n ProgramCode: \"\",\r\n FromDate: DateHelper.GetLocalDateAsUtc(),\r\n ToDate: DateHelper.GetLocalDateAsUtc(),\r\n };\r\n\r\n this.state = {\r\n model: this.initialModel,\r\n list: [],\r\n isLoading: false,\r\n vModel: {},\r\n };\r\n\r\n this.emptyObject = {};\r\n\r\n this.maxLength6 = { maxLength: 6 };\r\n\r\n this.parameterUniqueClientId = {\r\n UniqueClientId: ClientHelper.IsClient()\r\n ? ClientHelper.GetClientId()\r\n : undefined,\r\n };\r\n\r\n this.parameterProduct = {};\r\n\r\n this.Columns = [\r\n {\r\n Header: \"Client\",\r\n accessor: \"ClientInfo\",\r\n },\r\n {\r\n Header: \"Insert Date\",\r\n accessor: \"InsertDate\",\r\n type: GridColumnType.Date,\r\n },\r\n {\r\n Header: \"Customer Name\",\r\n accessor: \"CustomerName\",\r\n },\r\n {\r\n Header: \"Customer Number\",\r\n accessor: \"CustomerNumber\",\r\n },\r\n {\r\n Header: \"Source Account Name\",\r\n accessor: \"SourceAccountName\",\r\n },\r\n {\r\n Header: \"Source Account Number\",\r\n accessor: \"SourceAccountNumber\",\r\n },\r\n {\r\n Header: \"Fee Type\",\r\n accessor: \"FeeType\",\r\n },\r\n {\r\n Header: \"Revenue Fee Amount\",\r\n accessor: \"RevenueFeeAmount\",\r\n type: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Reference Number\",\r\n accessor: \"ReferenceNumber\",\r\n }\r\n ];\r\n\r\n\r\n this.sortParamValue = { Member: \"ParameterValue\" };\r\n\r\n this.trxTable = React.createRef();\r\n }\r\n\r\n showMessage = (type, title, message) => {\r\n this.setState({\r\n alert: (\r\n this.setState({ alert: \"\" })}\r\n />\r\n ),\r\n });\r\n };\r\n setValueToState = (name, value) => {\r\n this.setState({ [name]: value });\r\n };\r\n showLoading() {\r\n this.setState({ isLoading: true });\r\n }\r\n\r\n hideLoading() {\r\n this.setState({ isLoading: false });\r\n }\r\n ExportClick = () => {\r\n var trxColumns = [];\r\n this.trxTable.current.props.Columns.forEach((c) => {\r\n if (\r\n c.accessor != \"Actions\" &&\r\n c.accessor != \"ED\" &&\r\n (c.show == undefined || c.show)\r\n ) {\r\n trxColumns.push({\r\n value: c.accessor,\r\n title: c.Header,\r\n columntype: c.ColumnType,\r\n type: c.type,\r\n });\r\n }\r\n }, this);\r\n\r\n this.setState({\r\n isDownloadDialogOpen: true,\r\n GridKeyValueList: trxColumns,\r\n ExportSelectedColumns: trxColumns,\r\n });\r\n };\r\n\r\n hideAlert = () => {\r\n this.setState({\r\n alert: null,\r\n isLoading: false,\r\n });\r\n };\r\n\r\n// ExcelDownload = () => {\r\n// if (!this.state.ExportReportType) {\r\n// this.props.showMessage(\r\n// \"warning\",\r\n// \"Export Report Type not selected\",\r\n// \"Select Export Report Type to continue\"\r\n// );\r\n// return;\r\n// }\r\n\r\n// if (\r\n// this.state.ExportReportType == \"PDF\" &&\r\n// this.state.ExportSelectedColumns.length > 15\r\n// ) {\r\n// this.props.showMessage(\r\n// \"warning\",\r\n// \"PDF document cannot exceed 15 columns\",\r\n// \"PDF document cannot exceed 15 columns\"\r\n// );\r\n// return;\r\n// }\r\n\r\n// this.setState({ isDownloadDialogOpen: false });\r\n\r\n// this.props.showConfirmMessage(\r\n// \"question\",\r\n// \"Long Process Warning\",\r\n// \"This process may take a while. Continue ?\",\r\n// () => {\r\n// this.hideAlert();\r\n// const { model } = this.state;\r\n// model.IsClientBalanceScreen = true;\r\n\r\n// // Add jsonFile\r\n// var jsonColList = [];\r\n\r\n// var trxColumns = {};\r\n// this.state.ExportSelectedColumns.map((c) => {\r\n// trxColumns[c.value] = {\r\n// value: c.value,\r\n// title: c.title,\r\n// columntype: c.columntype,\r\n// type: c.type,\r\n// };\r\n// });\r\n// jsonColList.push(trxColumns);\r\n\r\n// model[\"jsonFile\"] = {\r\n// colmns: jsonColList,\r\n// format: this.state.ExportReportType,\r\n// title: \"Switch Settlement Aggregate Report\",\r\n// };\r\n\r\n// this.setState({ isLoading: true });\r\n// Proxy.DownloadGeneratedFile(\r\n// \"/lmsapi/v1.0/FeeAndCodeBasedTransaction/DownloadFeeRevenueReport\",\r\n// model,\r\n// (responseData) => {\r\n// this.setState({ isLoading: false });\r\n// if (!responseData.IsSucceeded) {\r\n// this.props.showMessage(\r\n// \"error\",\r\n// \"Error\",\r\n// responseData.ErrorDescription\r\n// );\r\n// return;\r\n// }\r\n// },\r\n// (errorMessage) => {\r\n// this.setState({ isLoading: false });\r\n// this.props.showMessage(\"error\", \"Error\", errorMessage);\r\n// },\r\n// this.props.showMessage\r\n// );\r\n// }\r\n// );\r\n// };\r\n\r\n openExportDialog = () => {\r\n this.setState({\r\n isDownloadDialogOpen: true,\r\n });\r\n };\r\n\r\n closeExportDialog = () => {\r\n this.setState({\r\n isDownloadDialogOpen: false,\r\n });\r\n };\r\n\r\n componentDidMount() {\r\n this.props.setAppLeftTitle(\"Fee Revenue Report\");\r\n this.props.setAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n }\r\n\r\n HandleChange = (name, newValue, data) => {\r\n const model = { ...this.state.model };\r\n model[name] = newValue;\r\n this.setState({ model });\r\n };\r\n\r\n ValueChangedForExport = (name, value) => {\r\n this.setState({ [name]: value });\r\n };\r\n\r\n HandleClear = () => {\r\n this.setState({\r\n model: { ...this.initialModel },\r\n isEdit: false,\r\n index: -1,\r\n });\r\n };\r\n\r\n HandleSearch = () => {\r\n if (!this.Validate()) {\r\n return;\r\n }\r\n\r\n const model = { ...this.state.model };\r\n model.ProgramCode = this.ProgramCode;\r\n\r\n this.setState({ isLoading: true });\r\n Proxy.POST(\r\n \"/prepaidapi/v1.0/Prepaid/SearchPrepaidCardFeeRevenue\",\r\n model,\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n if (!responseData.IsSucceeded) {\r\n this.props.showMessage(\r\n \"error\",\r\n \"Error\",\r\n responseData.ErrorDescription\r\n );\r\n return;\r\n }\r\n if (responseData.Item !== null) {\r\n this.setState({ list: responseData.Item });\r\n }\r\n },\r\n (error) => {\r\n this.setState({ isLoading: false });\r\n this.props.showMessage(\"error\", \"Error\", error);\r\n }\r\n );\r\n };\r\n Validate = () => {\r\n const { model, vModel } = this.state;\r\n const { showValidationErrors } = this.props;\r\n\r\n var errorList = [];\r\n\r\n vModel.FromDate = !model.FromDate;\r\n if (vModel.FromDate) errorList.push(\"From Date cannot be empty!\");\r\n\r\n vModel.ToDate = !model.ToDate;\r\n if (vModel.ToDate) errorList.push(\"To Date cannot be empty!\");\r\n\r\n vModel.UniqueClientId = !model.UniqueClientId;\r\n if (vModel.UniqueClientId) errorList.push(\"Select the Client to continue.\");\r\n\r\n if (errorList.length > 0) {\r\n showValidationErrors(errorList);\r\n return false;\r\n }\r\n\r\n return true;\r\n };\r\n\r\n GetModel = () => {\r\n return this.state.model;\r\n };\r\n\r\n render() {\r\n const { Disabled } = this.props;\r\n const { alert, model, list, isLoading } = this.state;\r\n var IsClient = ClientHelper.IsClient();\r\n return (\r\n
\r\n \r\n\r\n {alert}\r\n this.ExportClick(),\r\n // Disabled: Disabled,\r\n // },\r\n ]}\r\n menuId={this.props.menuId}\r\n ApprovalData={this.props.ApprovalData}\r\n After={this.props.After}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n `${d.UniqueClientId} - ${d.Name}`}\r\n TextValueMember=\"Name\"\r\n Value={model.UniqueClientId}\r\n ValueChanged={this.HandleChange}\r\n CanClear\r\n All\r\n Required\r\n DefaultIndex={IsClient ? 0 : -1}\r\n />\r\n \r\n \r\n\t\t\t\t\t\t\t {/* */}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n this.setState({ ExportSelectedColumns: value })\r\n }\r\n isMulti\r\n name=\"Columns\"\r\n getOptionLabel={(d) => d.title}\r\n options={this.state.GridKeyValueList}\r\n className=\"basic-multi-select\"\r\n classNamePrefix=\"select\"\r\n />\r\n \r\n \r\n {/* \r\n \r\n this.setState({ isDownloadDialogOpen: false })}\r\n >\r\n Cancel\r\n \r\n */}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\nFeeRevenueReport.propTypes = {\r\n classes: PropTypes.object.isRequired,\r\n Disabled: PropTypes.bool,\r\n};\r\n\r\nexport default withArtifex(FeeRevenueReport, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericDateInput } from \"views/Components/Generic\";\r\nimport { GridColumnType, MenuCodes } from \"views/Constants/Constant.js\";\r\n\r\nclass SwitchReport extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tlet IsSwitchReport = this.props.MenuCode == MenuCodes.Menu_SwitchReport;\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\ttype: GridColumnType.DateTimeUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"ClientName\",\r\n\t\t\t\taccessor: \"ClientName\",\r\n\t\t\t\tshow: !IsSwitchReport\r\n\t\t\t},\t{\r\n\t\t\t\tHeader: \"CustomerName\",\r\n\t\t\t\taccessor: \"CustomerName\",\r\n\t\t\t\tshow: !IsSwitchReport\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"MaskedCardNumber\",\r\n\t\t\t\taccessor: \"MaskedCardNumber\",\r\n\t\t\t\tshow: !IsSwitchReport\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"CardTokenNumber\",\r\n\t\t\t\taccessor: \"CardTokenNumber\",\r\n\t\t\t\tshow: !IsSwitchReport\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Response Code\",\r\n\t\t\t\taccessor: \"ResponseCode\",\r\n\t\t\t\tshow: IsSwitchReport\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Amount\",\r\n\t\t\t\taccessor: \"TotalAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money,\r\n\t\t\t\tshow: IsSwitchReport\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Count\",\r\n\t\t\t\taccessor: \"Count\",\r\n\t\t\t\tshow: IsSwitchReport\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.sortedName = { Member: \"Name\" };\r\n\t\tthis.sortedCode = { Member: \"Code\" };\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\tMonth: [],\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t\t}\r\n\t\tif (this.props.MenuCode == MenuCodes.Menu_SwitchReport) {\r\n\t\t\tsetAppLeftTitle(\"Switch Report\");\r\n\t\t}else{\r\n\t\t\tsetAppLeftTitle(\"Renewal Report\");\r\n\t\t}\r\n\t\tthis.SetYearList();\r\n\t}\r\n\r\n\tSetYearList = () => {\r\n\t\tvar currentYear = parseInt(DateHelper.GetYear());\r\n\t\tvar listYear = [];\r\n\t\tvar listAge = [];\r\n\r\n\t\tfor (var i = 2019; i <= currentYear; i++) {\r\n\t\t\tlistYear.push({\r\n\t\t\t\t\"Year\": i\r\n\t\t\t});\r\n\t\t}\r\n\t\tfor (var i = 18; i <= 100; i++) {\r\n\t\t\tlistAge.push({\r\n\t\t\t\t\"Age\": i\r\n\t\t\t});\r\n\t\t}\r\n\t\tthis.setState({ listAge, listYear });\r\n\t}\r\n\thandleListItemChange = (name, newValue, key, ObjectName) => {\r\n\t\tvar model = { ...this.state.model };\r\n\t\tconst array = this.state.Month;\r\n\t\tconst item = array.includes(key);\r\n\t\tif (item == false && newValue == true) {\r\n\t\t\tarray.push(key);\r\n\t\t} else if (item == true && newValue == false) {\r\n\t\t\tvar index = array.indexOf(key);\r\n\t\t\tif (index > -1) {\r\n\t\t\t\tarray.splice(index, 1);\r\n\t\t\t}\r\n\t\t}\r\n\t\tmodel[\"Month\"] = array;\r\n\t\tthis.setState({ Month: array, model });\r\n\r\n\t}\r\n\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\tSearch = async () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\r\n\t\tif( this.props.MenuCode == MenuCodes.Menu_SwitchReport)\r\n\t\t{\r\n\t\t\tvar result = await ExecuteApiPost(\"/prepaidapi/v1.0/TransactionData/SwitchReport\", model, null, null, null);\r\n\r\n\t\t\tthis.setState({ list: result || [] });\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tvar result1 = await ExecuteApiPost(\"/prepaidapi/v1.0/TransactionData/RenewalReport\", model, null, null, null);\r\n\t\t\tthis.setState({ list: result1 || [] });\r\n\t\t}\r\n\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, list: [], selected: null, Month: [] });\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tvar { model } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errors = [];\r\n\r\n\t\tif (!model.ParentMenuId\r\n\t\t\t|| model.ParentMenuId == -2) {\r\n\t\t\terrors.push(\"Parent menu can not be null.\");\r\n\t\t}\r\n\t\tif (!model.SubMenuId) {\r\n\t\t\terrors.push(\"Sub menu can not be null.\");\r\n\t\t}\r\n\t\tif (!model.ActionId) {\r\n\t\t\terrors.push(\"Action can not be null.\");\r\n\t\t}\r\n\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\r\n\r\n\trender() {\r\n\t\tconst { model, list } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nSwitchReport.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any,\r\n\tclasses: PropTypes.object\r\n\r\n};\r\nexport default withArtifex(SwitchReport, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport {\r\n GenericExpansionPanel,\r\n GenericGrid,\r\n GenericSelectInput,\r\n GenericTextInput,\r\n GenericTitle,\r\n GenericDateInput,\r\n} from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport moment from \"moment\";\r\n\r\nclass SetPinLogOp extends Component {\r\n constructor(props) {\r\n super(props);\r\n\r\n this.initialModel = {\r\n UniqueId: ClientHelper.IsClient()\r\n ? ClientHelper.GetClientRowId()\r\n : undefined,\r\n FromDate: null,\r\n ToDate: null,\r\n };\r\n\r\n this.state = {\r\n model: this.initialModel,\r\n vModel: {},\r\n list: [],\r\n isLoading: false,\r\n };\r\n\r\n this.emptyObject = {};\r\n\r\n this.Columns = [\r\n {\r\n Header: \"Client\",\r\n accessor: \"Client\",\r\n },\r\n {\r\n Header: \"Total Number of Calls\",\r\n accessor: \"TotalCount\",\r\n },\r\n {\r\n Header: \"Total Number of Successful Calls\",\r\n accessor: \"SuccessfulCount\",\r\n },\r\n {\r\n Header: \"Total Number of Unsuccessful Calls\",\r\n accessor: \"UnSuccessfulCount\",\r\n },\r\n ];\r\n }\r\n\r\n componentDidMount() {\r\n this.props.setAppLeftTitle(\"Set Pin Op Report\");\r\n this.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n }\r\n\r\n HandleChange = (name, newValue) => {\r\n const model = { ...this.state.model };\r\n model[name] = newValue;\r\n this.setState({ model });\r\n };\r\n\r\n HandleClear = () => {\r\n this.setState({\r\n model: { ...this.initialModel },\r\n vModel: {},\r\n isEdit: false,\r\n index: -1,\r\n });\r\n };\r\n\r\n HandleSearch = () => {\r\n if (!this.Validate()) {\r\n return;\r\n }\r\n\r\n this.setState({ isLoading: true });\r\n Proxy.POST(\r\n \"/prepaidapi/v1.0/CardStatus/GetSetPinLog\",\r\n this.state.model,\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n if (!responseData.IsSucceeded) {\r\n this.props.showMessage(\r\n \"error\",\r\n \"Error\",\r\n responseData.ErrorDescription\r\n );\r\n return;\r\n }\r\n if (responseData.Item !== null) {\r\n this.setState({ list: responseData.Item });\r\n }\r\n },\r\n (error) => {\r\n this.setState({ isLoading: false });\r\n this.props.showMessage(\"error\", \"Error\", error);\r\n }\r\n );\r\n };\r\n\r\n Validate = () => {\r\n const { model, vModel } = this.state;\r\n var errorList = [];\r\n const { showValidationErrors } = this.props;\r\n\r\n vModel.FromDate =\r\n model.FromDate == null ||\r\n model.FromDate == \"\" ||\r\n model.FromDate == undefined;\r\n if (vModel.FromDate) {\r\n errorList.push(\"From Date cannot be empty.\");\r\n }\r\n\r\n vModel.ToDate =\r\n model.ToDate == null || model.ToDate == \"\" || model.ToDate == undefined;\r\n if (vModel.ToDate) {\r\n errorList.push(\"To Date cannot be empty.\");\r\n }\r\n\r\n if (errorList.length > 0) {\r\n showValidationErrors(errorList);\r\n return false;\r\n }\r\n return true;\r\n };\r\n\r\n render() {\r\n const { Disabled } = this.props;\r\n const { alert, model, list, isLoading, index, vModel } = this.state;\r\n var IsClient = ClientHelper.IsClient();\r\n\t var endDate = (model.FromDate instanceof moment) ? model.FromDate.clone() : \"\";\r\n\t var fromDate = (model.ToDate instanceof moment) ? model.ToDate.clone() : \"\";\r\n\r\n\r\n return (\r\n
\r\n \r\n\r\n {alert}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n `${d.UniqueClientId} - ${d.Name}`\r\n }\r\n TextValueMember=\"Name\"\r\n Value={model.UniqueId}\r\n ValueChanged={this.HandleChange}\r\n CanClear\r\n All\r\n Required\r\n DefaultIndex={IsClient ? 0 : -1}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\nSetPinLogOp.propTypes = {\r\n classes: PropTypes.object.isRequired,\r\n Disabled: PropTypes.bool,\r\n};\r\n\r\nexport default withArtifex(SetPinLogOp, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericExpansionPanel, GenericGrid, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass MastercardFinancialPosDetail extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tFromDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tToDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tFileName:\"\"\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {...this.initialModel},\r\n\t\t\tvModel: {},\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false,\r\n\t\t\t\r\n\t\t};\r\n\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.maxLength26 = { maxLength: 26 };\r\n\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Clearing Date\",\r\n\t\t\t\taccessor: \"MastercardFinancialPositionDetail.ClearingDate\",\r\n\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"File Name\",\r\n\t\t\t\taccessor: \"FileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Mti\",\r\n\t\t\t\taccessor: \"MastercardFinancialPositionDetail.Mti\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Message Reason Code\",\r\n\t\t\t\taccessor: \"MastercardFinancialPositionDetail.De025\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Acceptor Business Code(MCC)\",\r\n\t\t\t\taccessor: \"MastercardFinancialPositionDetail.De026\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Currency Exponents\",\r\n\t\t\t\taccessor: \"MastercardFinancialPositionDetail.Pds0148\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Settlement Indicator\",\r\n\t\t\t\taccessor: \"MastercardFinancialPositionDetail.Pds0165\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reconciled File\",\r\n\t\t\t\taccessor: \"MastercardFinancialPositionDetail.Pds0300\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reconciled Member Activity\",\r\n\t\t\t\taccessor: \"MastercardFinancialPositionDetail.Pds0302\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reconciled Business Activity\",\r\n\t\t\t\taccessor: \"MastercardFinancialPositionDetail.Pds0358\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reconciled Account Range\",\r\n\t\t\t\taccessor: \"MastercardFinancialPositionDetail.Pds0370\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reconciled Transaction Function\",\r\n\t\t\t\taccessor: \"MastercardFinancialPositionDetail.Pds0372\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reconciled Processing Code\",\r\n\t\t\t\taccessor: \"MastercardFinancialPositionDetail.Pds0374\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Member Reconciliation Indicator 1\",\r\n\t\t\t\taccessor: \"MastercardFinancialPositionDetail.Pds0375\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Original/Reversal Totals Indicator\",\r\n\t\t\t\taccessor: \"MastercardFinancialPositionDetail.Pds0378\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Debit/Credit Indicator(Debit)\",\r\n\t\t\t\taccessor: \"MastercardFinancialPositionDetail.Pds0380_1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Amount(Debit)\",\r\n\t\t\t\taccessor: \"MastercardFinancialPositionDetail.Pds0380_2\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Debit/Credit Indicator(Credit)\",\r\n\t\t\t\taccessor: \"MastercardFinancialPositionDetail.Pds0381_1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Amount(Credit)\",\r\n\t\t\t\taccessor: \"MastercardFinancialPositionDetail.Pds0381_2\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Debit/Credit Indicator(Net Transaction)\",\r\n\t\t\t\taccessor: \"MastercardFinancialPositionDetail.Pds0384_1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Amount(Net)\",\r\n\t\t\t\taccessor: \"MastercardFinancialPositionDetail.Pds0384_2\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Debit/Credit Indicator(Reconcilation Debit)\",\r\n\t\t\t\taccessor: \"MastercardFinancialPositionDetail.Pds0390_1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Amount(Reconcilation Debit)\",\r\n\t\t\t\taccessor: \"MastercardFinancialPositionDetail.Pds0390_2\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Debit/Credit Indicator(Reconcilation Credit)\",\r\n\t\t\t\taccessor: \"MastercardFinancialPositionDetail.Pds0391_1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Amount(Reconcilation Credit)\",\r\n\t\t\t\taccessor: \"MastercardFinancialPositionDetail.Pds0391_2\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Fee Amounts in Reconciliation Currency(Debit)\",\r\n\t\t\t\taccessor: \"MastercardFinancialPositionDetail.Pds0392\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Fee Amounts in Reconciliation Currency(Credit)\",\r\n\t\t\t\taccessor: \"MastercardFinancialPositionDetail.Pds0393\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Debit/Credit Indicator in Reconciliation Currency\",\r\n\t\t\t\taccessor: \"MastercardFinancialPositionDetail.Pds0394_1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Net Amount in Reconcilation Currency\",\r\n\t\t\t\taccessor: \"MastercardFinancialPositionDetail.Pds0394_2\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Net Fee in Reconciliation Currency Debit/Credit Indicator\",\r\n\t\t\t\taccessor: \"MastercardFinancialPositionDetail.Pds0395_1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Net Fee Amount in Reconcilation Currency\",\r\n\t\t\t\taccessor: \"MastercardFinancialPositionDetail.Pds0396_1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \" Net Total Debit/Credit Indicator in Reconciliation Currency\",\r\n\t\t\t\taccessor: \"MastercardFinancialPositionDetail.Pds0396_2\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Net Total Amoount in Reconciliation Currency\",\r\n\t\t\t\taccessor: \"MastercardFinancialPositionDetail.Pds0400\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Debit Transaction Number\",\r\n\t\t\t\taccessor: \"MastercardFinancialPositionDetail.Pds0400\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Credit Transaction Number\",\r\n\t\t\t\taccessor: \"MastercardFinancialPositionDetail.Pds0401\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Transaction Number\",\r\n\t\t\t\taccessor: \"MastercardFinancialPositionDetail.Pds0402\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Currency Code\",\r\n\t\t\t\taccessor: \"MastercardFinancialPositionDetail.De049\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reconcilation Currency Code\",\r\n\t\t\t\taccessor: \"MastercardFinancialPositionDetail.De050\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Additional Data 2\",\r\n\t\t\t\taccessor: \"MastercardFinancialPositionDetail.De062\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Message Number\",\r\n\t\t\t\taccessor: \"MastercardFinancialPositionDetail.De071\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Destination Institution ID Code\",\r\n\t\t\t\taccessor: \"MastercardFinancialPositionDetail.De093\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Receiving Institution ID Code\",\r\n\t\t\t\taccessor: \"MastercardFinancialPositionDetail.De100\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Additional Data 3\",\r\n\t\t\t\taccessor: \"MastercardFinancialPositionDetail.De123\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Additional Data 4\",\r\n\t\t\t\taccessor: \"MastercardFinancialPositionDetail.De124\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Additional Data 5\",\r\n\t\t\t\taccessor: \"MastercardFinancialPositionDetail.De125\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Function Code\",\r\n\t\t\t\taccessor: \"MastercardFinancialPositionDetail.De024\"\r\n\t\t\t},\r\n\r\n\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Mastercard Financial Position Detail List\");\r\n\t\tthis.props.setAppCenterTitle(\"CLEARING AND SETTLEMENT\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, isEdit: false, index: -1 });\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST\r\n\t\t\t(\r\n\t\t\t\t\"/prepaidapi/v1.0/MastercardSettlement/SeearchSettlementPositionDetail\",\r\n\t\t\t\tmodel,\r\n\t\t\t\t(responseData) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\t\tlist: responseData.Item\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t},\r\n\t\t\t\t(error) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t);\r\n\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, isLoading, index, vModel } = this.state;\r\n\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nMastercardFinancialPosDetail.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(MastercardFinancialPosDetail, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericExpansionPanel, GenericGrid, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass MastercardSettlementPositionDetail extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tFromDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tToDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tFileName:\"\"\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {...this.initialModel},\r\n\t\t\tvModel: {},\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false,\r\n\t\t\t\r\n\t\t};\r\n\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.maxLength26 = { maxLength: 26 };\r\n\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Clearing Date\",\r\n\t\t\t\taccessor: \"MastercardSettlementPositionDetail.ClearingDate\",\r\n\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"File Name\",\r\n\t\t\t\taccessor: \"FileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Mti\",\r\n\t\t\t\taccessor: \"MastercardSettlementPositionDetail.Mti\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Function Code\",\r\n\t\t\t\taccessor: \"MastercardSettlementPositionDetail.De024\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Message Reason Code\",\r\n\t\t\t\taccessor: \"MastercardSettlementPositionDetail.De025\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Currency Exponents\",\r\n\t\t\t\taccessor: \"MastercardSettlementPositionDetail.Pds0148\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reconciled File\",\r\n\t\t\t\taccessor: \"MastercardSettlementPositionDetail.Pds0300\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reconciled Member Activity\",\r\n\t\t\t\taccessor: \"MastercardSettlementPositionDetail.Pds0302\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reconciled Business Activity\",\r\n\t\t\t\taccessor: \"MastercardSettlementPositionDetail.Pds0358\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reconciled Settlement Activity\",\r\n\t\t\t\taccessor: \"MastercardSettlementPositionDetail.Pds0359\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reconciled Card Program Identifier\",\r\n\t\t\t\taccessor: \"MastercardSettlementPositionDetail.Pds0367\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reconciled Transaction Function Group Code\",\r\n\t\t\t\taccessor: \"MastercardSettlementPositionDetail.Pds0368\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reconciled Acquirer’s BIN\",\r\n\t\t\t\taccessor: \"MastercardSettlementPositionDetail.Pds0369\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Debit/Credit Indicator(Reconcilation Debit)\",\r\n\t\t\t\taccessor: \"MastercardSettlementPositionDetail.Pds0390_1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Amount(Reconcilation Debit Amount)\",\r\n\t\t\t\taccessor: \"MastercardSettlementPositionDetail.Pds0390_2\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Debit/Credit Indicator(Reconcilation Credit)\",\r\n\t\t\t\taccessor: \"MastercardSettlementPositionDetail.Pds0391_1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Amount(Reconcilation Credit Amount)\",\r\n\t\t\t\taccessor: \"MastercardSettlementPositionDetail.Pds0391_2\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Fee Amounts in Reconciliation Currency(Debit)\",\r\n\t\t\t\taccessor: \"MastercardSettlementPositionDetail.Pds0392\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Fee Amounts in Reconciliation Currency(Credit)\",\r\n\t\t\t\taccessor: \"MastercardSettlementPositionDetail.Pds0393\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Debit/Credit Indicator(Reconciliation Currency)\",\r\n\t\t\t\taccessor: \"MastercardSettlementPositionDetail.Pds0394_1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Net Amount(Reconcilation Currency)\",\r\n\t\t\t\taccessor: \"MastercardSettlementPositionDetail.Pds0394_2\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Net Fee in Reconciliation Currency Debit/Credit Indicator\",\r\n\t\t\t\taccessor: \"MastercardSettlementPositionDetail.Pds0395_1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Net Fee Amount in Reconcilation Currency\",\r\n\t\t\t\taccessor: \"MastercardSettlementPositionDetail.Pds0396_1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \" Net Total Debit/Credit Indicator in Reconciliation Currency\",\r\n\t\t\t\taccessor: \"MastercardSettlementPositionDetail.Pds0396_2\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Currency Code\",\r\n\t\t\t\taccessor: \"MastercardSettlementPositionDetail.De049\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reconcilation Currency Code\",\r\n\t\t\t\taccessor: \"MastercardSettlementPositionDetail.De050\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Additional Data 2\",\r\n\t\t\t\taccessor: \"MastercardSettlementPositionDetail.De062\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Message Number\",\r\n\t\t\t\taccessor: \"MastercardSettlementPositionDetail.De071\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Destination Institution ID Code\",\r\n\t\t\t\taccessor: \"MastercardSettlementPositionDetail.De093\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Receiving Institution ID Code\",\r\n\t\t\t\taccessor: \"MastercardSettlementPositionDetail.De100\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Additional Data 3\",\r\n\t\t\t\taccessor: \"MastercardSettlementPositionDetail.De123\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Additional Data 4\",\r\n\t\t\t\taccessor: \"MastercardSettlementPositionDetail.De124\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Additional Data 5\",\r\n\t\t\t\taccessor: \"MastercardSettlementPositionDetail.De125\"\r\n\t\t\t},\r\n\t\t\t\r\n\r\n\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Mastercard Settlement Position Detail List\");\r\n\t\tthis.props.setAppCenterTitle(\"CLEARING AND SETTLEMENT\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, isEdit: false, index: -1 });\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST\r\n\t\t\t(\r\n\t\t\t\t\"/prepaidapi/v1.0/MastercardSettlement/SeearchSettlementPositionDetail\",\r\n\t\t\t\tmodel,\r\n\t\t\t\t(responseData) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\t\tlist: responseData.Item\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t},\r\n\t\t\t\t(error) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t);\r\n\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, isLoading, index, vModel } = this.state;\r\n\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nMastercardSettlementPositionDetail.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(MastercardSettlementPositionDetail, {});","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport HtmlEditor from \"core/HtmlEditorHelper\";\r\nimport { EditorState } from \"draft-js\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport \"react-autocomplete-input/dist/bundle.css\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport { renderToString } from \"react-dom/server\";\r\nimport { Editor } from \"react-draft-wysiwyg\";\r\nimport \"react-draft-wysiwyg/dist/react-draft-wysiwyg.css\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericColorInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport TemplatePreview from \"./TemplatePreview\";\r\nimport { CMSTemplateType } from \"views/Constants/Constant.js\";\r\n\r\nclass TemplateDefinition extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.isClient = ClientHelper.IsClient();\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tBackgroundColor: \"#fff\",\r\n\t\t\tUniqueClientId: this.isClient ? ClientHelper.GetClientRowId() : undefined\r\n\t\t};\r\n\t\t\r\n\t\tthis.state = {\r\n\t\t\talert: null,\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tvModel: {},\r\n\t\t\tlist: [],\r\n\t\t\tisBrowse: false,\r\n\t\t\tisLoading: false,\r\n\t\t\teditorModelEmail: EditorState.createEmpty(),\r\n\t\t\teditorPropertyList: [],\r\n\t\t\tFile: {},\r\n\t\t\tisTempPreviewDialogOpen: false,\r\n\t\t\trowIndex: -1\r\n\t\t};\r\n\t\t// preserve the initial state in a new object\r\n\t\tthis.baseState = this.state;\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: this.isClient ? ClientHelper.GetClientId() : undefined,\r\n\t\t};\r\n\r\n\t\tthis.parameterTemplateType = {\r\n\t\t\tParameterCode: \"CMSTemplateType\"\r\n\t\t};\r\n\r\n\t\tthis.sortedParameterDesc = { Member: \"ParameterDesc\" };\r\n\r\n\t\tthis.fileInputRef1 = React.createRef();\r\n\t\tthis.fileInputRef2 = React.createRef();\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Template Definition\");\r\n\t\tthis.props.setAppCenterTitle(\"CARD MANAGEMENT SYSTEM\");\r\n\t\tthis.setState({\r\n\t\t\teditorModelEmail: HtmlEditor.EmptyEditorContent()\r\n\t\t});\r\n\t\t((this.state.editorPropertyList == null || this.state.editorPropertyList.length == 0) && this.GetDataModelPropertyList());\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\r\n\t\tif (name == \"TemplateTypeId\")\r\n\t\t\tmodel.TemplateType = data;\r\n\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState(function (state) {\r\n\t\t\tstate = this.baseState;\r\n\t\t\tstate.editorModelEmail = HtmlEditor.EmptyEditorContent();\r\n\t\t\treturn state;\r\n\t\t});\r\n\t};\r\n\r\n\tHandleSearch = () => {\r\n\t\tthis.setState({ isLoading: true, list: [] });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/CardNotificationTemplate/Search\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tthis.ErrorCallback\r\n\t\t);\r\n\t}\r\n\r\n\tHandleSubmit = () => {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/CardNotificationTemplate/InsertOrUpdate\",\r\n\t\t\tmodel,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false, list: [] });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Operation is successfully!\");\r\n\t\t\t\tthis.HandleSearch();\r\n\t\t\t},\r\n\t\t\tthis.ErrorCallback\r\n\t\t);\r\n\t}\r\n\r\n\tHandleDelete = () => {\r\n\t\tProxy.GET(\r\n\t\t\t\"/prepaidapi/v1.0/CardNotificationTemplate/Delete/Id?Id=\" + this.state.model.Id,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Success\", \"Deleted successfully!\");\r\n\t\t\t\tthis.HandleClear();\r\n\t\t\t\tthis.HandleSearch();\r\n\t\t\t},\r\n\t\t\tthis.ErrorCallback\r\n\t\t);\r\n\t}\r\n\t getFileBase64 = (file, callback) => {\r\n\t\tvar reader = new FileReader();\r\n\t\treader.readAsDataURL(file);\r\n\t\t// Since FileReader is asynchronous,\r\n\t\t// we need to pass data back.\r\n\t\treader.onload = () => callback(reader.result);\r\n\t\t// TODO: catch an error\r\n\t\treader.onerror = error => { };\r\n\t};\r\n\r\n\t imageUploadCallback = file => new Promise(\r\n\t\t(resolve, reject) => this.getFileBase64(\r\n\t\t\tfile,\r\n\t\t\tdata => resolve({ data: { link: data } })\r\n\t\t)\r\n\t);\r\n\r\n\tGetDataModelPropertyList = () => {\r\n\t\tthis.setState({ isLoading: true, list: [] });\r\n\t\tProxy.GET(\r\n\t\t\t\"/coreapi/v1.0/NotificationTemplate/GetDataModelProperties\",\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tvar temp = responseData.Item.map(x => {\r\n\t\t\t\t\t\treturn { text: x.PropertyDescription, value: x.PropertyName };\r\n\t\t\t\t\t});\r\n\t\t\t\t\tthis.setState({ editorPropertyList: temp });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tthis.ErrorCallback\r\n\t\t);\r\n\t}\r\n\r\n\tErrorCallback = (error) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t}\r\n\r\n\tEditorStateChangeEmail = (obj) => {\r\n\t\tthis.setState({ editorModelEmail: obj });\r\n\t\tHtmlEditor.EditorContentToText(this.state.editorModelEmail);\r\n\t}\r\n\r\n\tFileSelect = (e, name) => {\r\n\t\te.preventDefault();\r\n\r\n\t\tvar file = e.target.files[0];\r\n\t\tif (!file) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar HandleChageTemp = this.HandleChange;\r\n\t\tvar model = this.state.model;\r\n\t\tvar reader = new FileReader();\r\n\t\treader.readAsDataURL(file);\r\n\t\treader.onloadend = function () {\r\n\t\t\tvar base64 = reader.result;\r\n\t\t\tHandleChageTemp(name.concat(\"Name\"), file.name);\r\n\t\t\tHandleChageTemp(name, base64);\r\n\t\t};\r\n\t\treader.onerror = function (error) {\r\n\t\t\tconsole.log(\"File Error: \", error);\r\n\t\t};\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tconst { list } = this.state;\r\n\t\tconst model = list[index];\r\n\r\n\t\tthis.setState({\r\n\t\t\tmodel,\r\n\t\t\teditorModelEmail: HtmlEditor.HtmlToEditorContent(model.Content),\r\n\t\t\trowIndex: index\r\n\t\t});\r\n\t}\r\n\r\n\tGetHTMLTemplateContent = (isPreview = false) => {\r\n\t\tconst model = this.state.model;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t

{isPreview ? HtmlEditor.EditorContentToText(this.state.editorModelEmail) : HtmlEditor.EditorContentToHtml(this.state.editorModelEmail)}

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: null })}\r\n\t\t\t\tOnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageAndRefresh = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.HideAlertAndRefresh()} />\r\n\t\t});\r\n\t}\r\n\r\n\tHideAlertAndRefresh = () => {\r\n\t\tthis.HandleClear();\r\n\t\twindow\r\n\t\t\t.location\r\n\t\t\t.reload();\r\n\r\n\t}\r\n\r\n\tHideAlert = () => {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\tIsStringNullOrEmptyOrWhiteSpace = (value) => {\r\n\r\n\t\treturn !(typeof value === \"string\") || value == null || value.trim().length == 0;\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tvar ErrorList = [];\r\n\t\tconst { model, vModel } = this.state;\r\n\r\n\t\tif (model.UniqueClientId == null || model.UniqueClientId == 0) {\r\n\t\t\tvModel.UniqueClientId = true;\r\n\t\t\tErrorList.push(\"Client must be selected\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvModel.UniqueClientId = false;\r\n\t\t}\r\n\r\n\t\tif (model.TemplateTypeId == null || model.TemplateTypeId == 0) {\r\n\t\t\tvModel.TemplateTypeId = true;\r\n\t\t\tErrorList.push(\"Action must be selected\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvModel.TemplateTypeId = false;\r\n\t\t}\r\n\r\n\t\tif (model.TemplateType && model.TemplateType.ParameterValue === CMSTemplateType.TransactionLimit && (model.Amount == null || model.Amount == 0)) {\r\n\t\t\tvModel.Amount = true;\r\n\t\t\tErrorList.push(\"Amount must be entered\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvModel.Amount = false;\r\n\t\t}\r\n\r\n\t\tif (model.Description == null || model.Description == \"\") {\r\n\t\t\tvModel.Description = true;\r\n\t\t\tErrorList.push(\"Description must be entered\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvModel.Description = false;\r\n\t\t}\r\n\r\n\t\tvar contentText = HtmlEditor.EditorContentToHtml(this.state.editorModelEmail);\r\n\t\tif (this.IsStringNullOrEmptyOrWhiteSpace(contentText)) {\r\n\t\t\tErrorList.push(\"Template message must be defined\");\r\n\t\t}\r\n\r\n\t\tvar letterContent = renderToString(this.GetHTMLTemplateContent(false));\r\n\t\tif (letterContent == null) {\r\n\t\t\tErrorList.push(\"Template Content must be defined\");\r\n\t\t}\r\n\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tmodel.Content = contentText;\r\n\r\n\t\tthis.setState({ model, vModel });\r\n\t\treturn true;\r\n\t}\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, alert, editorModelEmail, editorPropertyList, isLoading, isTempPreviewDialogOpen, vModel } = this.state;\r\n\t\tconst { classes, Disabled, IsPopUp } = this.props;\r\n\r\n\t\tvar ForInsert = !(model.Id > 0);\r\n\t\treturn (\r\n\r\n\t\t\t<>\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t{alert}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{model.TemplateType && model.TemplateType.ParameterValue === CMSTemplateType.TransactionLimit &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t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odel: model,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\teditorModelEmail: HtmlEditor.EmptyEditorContent()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCLEAR\r\n \r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{model.Logo == null ?\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.fileInputRef1.current.click()}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tstyle={{ marginTop: 8 }}>LOGO\r\n \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.FileSelect(e, \"Logo\")}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tref={this.fileInputRef1}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccept=\"image/*\" />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmodel.Logo = null;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmodel: model\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tstyle={{ marginTop: 8 }}>DELETE LOGO\r\n \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{model.Logo &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{model.HeaderImage == null ?\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.fileInputRef2.current.click()}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tstyle={{ marginTop: 8 }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t>IMAGE\r\n \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.FileSelect(e, \"HeaderImage\")}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tref={this.fileInputRef2}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccept=\"image/*\" />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t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t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nTemplateDefinition.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tExecuteApiPost: PropTypes.func,\r\n};\r\n\r\nexport default withArtifex(TemplateDefinition, {});","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport { ProfileIcon } from \"core/Icons\";\r\nimport { TaskPool } from \"core/TaskPool\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport AssignDDTAccountComponent from \"views/Components/AssignDDTAccountComponent.jsx\";\r\nimport BeneficiaryComponent from \"views/Components/BeneficiaryComponent\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent.jsx\";\r\nimport CustomerInformationComponent from \"views/Components/CustomerInformationComponent\";\r\nimport { GenericAlert, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericNumberInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { ClientType, GridColumnType, ProgramCodes, ReportType, WalletAutoLoadType } from \"views/Constants/Constant.js\";\r\nimport WalletAccount from \"./Steps/WalletAccount\";\r\n\r\nclass Wallet extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.getappCenterTitle = \"Empty\";\r\n\t\tthis.getappLeftTitle = \"Empty\";\r\n\t\tthis.initialGeneralModel = {\r\n\t\t\tId: 0\r\n\t\t};\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t\tisPanelActive: false\r\n\t\t};\r\n\r\n\t\tthis.initialCustomerModel = {\r\n\t\t\tAccounts: [],\r\n\t\t\tPrograms: [],\r\n\t\t\tLinkedAccounts: []\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tvModel: {},\r\n\t\t\tlinkedAccountModel: this.initialGeneralModel,\r\n\t\t\taccountModel: this.initialGeneralModel,\r\n\t\t\taccountList: [],\r\n\t\t\taccountIndex: -1,\r\n\t\t\tcardList: [],\r\n\t\t\tcustomerModel: { ...this.initialCustomerModel },\r\n\t\t\ttempModel: {},\r\n\t\t\tcustomerAddress: {},\r\n\t\t\thasChangedLinkedAccount: false,\r\n\t\t\thasChangedAccount: false,\r\n\t\t\tisLoading: false,\r\n\t\t\tKnownCustomer: false\r\n\t\t};\r\n\t\t// preserve the initial state in a new object\r\n\t\tthis.baseState = this.state;\r\n\r\n\t\tthis.maxLength19 = { maxLength: 19 };\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : undefined\r\n\t\t};\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\r\n\t\tthis.loadTaskPool = new TaskPool(this.handleLoadTaskPoolAppend, this.handleLoadTaskPoolCompleted);\r\n\r\n\t\tthis.ColumnsCard = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Number\",\r\n\t\t\t\taccessor: \"WalletAccountNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Masked Card Number\",\r\n\t\t\t\taccessor: \"MaskedCardNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Cardholder Name\",\r\n\t\t\t\taccessor: \"EmbossName1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Balance\",\r\n\t\t\t\taccessor: \"CardBalance\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Pending Balance\",\r\n\t\t\t\taccessor: \"CardPendingBalance\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Usage Period\",\r\n\t\t\t\taccessor: \"CardUsagePeriod.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Usage Limit\",\r\n\t\t\t\taccessor: \"CardUsageLimit\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t}\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Wallet\"); this.getappLeftTitle = \"Wallet\";\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\"); this.getappCenterTitle = \"CUPREPAID CARD MANAGEMENT\";\r\n\t}\r\n\r\n\thandleLoadTaskPoolCompleted = () => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\thandleLoadTaskPoolAppend = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t}\r\n\r\n\tHandleChange = (name, newValue) => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tif (name === \"Customer\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.CustomerId = newValue.Id;\r\n\t\t\t\tmodel.CustomerNumber = newValue.CustomerNumber;\r\n\t\t\t\tmodel.CustomerName = newValue.CustomerName;\r\n\t\t\t\tthis.SelectedRowChangeCustomer(newValue);\r\n\t\t\t\tthis.HandleSearch(model);\r\n\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.CustomerId;\r\n\t\t\t\tdelete model.CustomerNumber;\r\n\t\t\t\tdelete model.CustomerName;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (name === \"UniqueClientId\") {\r\n\t\t\tmodel.CustomerId = 0;\r\n\t\t\tdelete model.CustomerNumber;\r\n\t\t}\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleChangeLinkedAccount = (name, newValue, data) => {\r\n\t\tconst linkedAccountModel = { ...this.state.linkedAccountModel };\r\n\t\tlinkedAccountModel[name] = newValue;\r\n\r\n\t\tif (name === \"FinancialInstitutionId\")\r\n\t\t\tlinkedAccountModel.FinancialInstitution = data;\r\n\r\n\t\tif (name === \"FinancialInstitutionBranchId\")\r\n\t\t\tlinkedAccountModel.FinancialInstitutionBranch = data;\r\n\r\n\t\tif (name == \"FinancialInstitutionId\") {\r\n\t\t\tlinkedAccountModel.BankNumber = data.FinancialInstitutionId;\r\n\t\t\t// linkedAccountModel.FinancialInstitutionBranchId = null;\r\n\t\t\t// linkedAccountModel.BranchNumber = null;\r\n\t\t}\r\n\r\n\t\tif (name == \"FinancialInstitutionBranchId\") {\r\n\t\t\tlinkedAccountModel.BranchNumber = data.TransitNumber;\r\n\t\t}\r\n\r\n\t\tthis.setState({ linkedAccountModel });\r\n\t}\r\n\r\n\tHandleChangeAccount = (name, newValue, data) => {\r\n\t\tconst accountModel = { ...this.state.accountModel };\r\n\t\tif (name === \"BankingAccountTypeId\") {\r\n\t\t\taccountModel.BankingAccountType = data;\r\n\t\t} else if (name === \"AccountCurrency\") {\r\n\t\t\taccountModel.CurrencyId = newValue;\r\n\t\t\taccountModel.Currency = data;\r\n\t\t}\r\n\r\n\t\tif (name === \"ReportType\" && accountModel[name] === ReportType.ReportableReadOnly) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"The report type of this account cannot be changed!\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (name === \"AutoLoadTypeId\") {\r\n\t\t\taccountModel.AutoLoadType = data;\r\n\t\t\tlet IsFromMyAccount = data.ParameterValue === WalletAutoLoadType.MyAccounts;\r\n\t\t\tlet IsFromEFT = data.ParameterValue === WalletAutoLoadType.EFT;\r\n\t\t\tlet IsFromETransfer = data.ParameterValue === WalletAutoLoadType.eTransfer;\r\n\t\t\tif (IsFromMyAccount) {\r\n\t\t\t\tdelete accountModel.BeneficiaryId;\r\n\t\t\t\tdelete accountModel.ClientCustomerPayeeId;\r\n\t\t\t}\r\n\t\t\tif (IsFromEFT) {\r\n\t\t\t\tdelete accountModel.SourceAccountId;\r\n\t\t\t\tdelete accountModel.ClientCustomerPayeeId;\r\n\t\t\t}\r\n\t\t\tif (IsFromETransfer) {\r\n\t\t\t\tdelete accountModel.BeneficiaryId;\r\n\t\t\t\tdelete accountModel.SourceAccountId;\r\n\t\t\t}\r\n\t\t}\r\n\t\taccountModel[name] = newValue;\r\n\t\tthis.setState({ accountModel });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState(function (state) {\r\n\t\t\tstate = this.baseState;\r\n\t\t\treturn state;\r\n\t\t});\r\n\t}\r\n\r\n\tHandleClearLinkedAccount = () => {\r\n\t\tthis.setState({ linkedAccountModel: { ...this.initialGeneralModel } });\r\n\t}\r\n\r\n\tHandleClearAccount = () => {\r\n\t\tthis.setState({ accountModel: { ...this.initialGeneralModel } });\r\n\t}\r\n\r\n\tHandleSearch = (tempModel) => {\r\n\r\n\t\tlet { model, customerModel } = this.state;\r\n\r\n\t\tif (!this.Validate(tempModel || model)) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tthis.loadTaskPool.AppendTask(\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/prepaidapi/v1.0/Wallet/Search\",\r\n\t\t\t\ttempModel || this.state.model,\r\n\t\t\t\t(responseData) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tlet customer = responseData.Item.ClientCustomer;\r\n\t\t\t\t\tif (customer != null) {\r\n\t\t\t\t\t\tcustomerModel = { ...this.initialCustomerModel, ...customer };\r\n\t\t\t\t\t\tmodel.CustomerId = customer.Id;\r\n\t\t\t\t\t\tmodel.CustomerNumber = customer.CustomerNumber;\r\n\t\t\t\t\t\tmodel.UniqueClientId = customer.UniqueClientId;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.setState({ model, customerModel, KnownCustomer: true, accountList: responseData.Item.AccountList, cardList: responseData.Item.CardList });\r\n\t\t\t\t\tthis.GetLinkedAccounts();\r\n\t\t\t\t},\r\n\t\t\t\t(error) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t));\r\n\t}\r\n\r\n\tHandleSubmit = () => {\r\n\r\n\t\tconst { model, accountList, customerModel } = this.state;\r\n\r\n\r\n\t\tif (!this.Validate(model)) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\taccountList.forEach(element => { element.UniqueClientId = model.UniqueClientId; });\r\n\r\n\t\tthis.loadTaskPool.AppendTask(\r\n\t\t\tProxy.POST(\"/prepaidapi/v1.0/Wallet/InsertOrUpdate\",\r\n\t\t\t\t{\r\n\t\t\t\t\tUniqueClientId: model.UniqueClientId,\r\n\t\t\t\t\tCustomerId: model.CustomerId,\r\n\t\t\t\t\tAccountList: accountList,\r\n\t\t\t\t\tLinkedAccounts: customerModel.LinkedAccounts\r\n\t\t\t\t},\r\n\t\t\t\t(responseData) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Operation is successfully!\");\r\n\t\t\t\t},\r\n\t\t\t\t(error) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t));\r\n\t}\r\n\r\n\tGetLinkedAccounts = () => {\r\n\t\tconst customerModel = { ...this.state.customerModel };\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tthis.loadTaskPool.AppendTask(\r\n\t\t\tProxy.GET(\r\n\t\t\t\t\"/bankapi/v1.0/Beneficiary/GetByCustomerId/Id?Id=\" + this.state.model.CustomerId,\r\n\t\t\t\t(responseData) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\t\tcustomerModel.LinkedAccounts = responseData.Item;\r\n\t\t\t\t\t\tthis.setState({ customerModel });\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t(error) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t));\r\n\t}\r\n\r\n\tAddLinkedAccount = (index, isEdit) => {\r\n\t\tconst { linkedAccountModel, customerModel, hasChangedLinkedAccount } = this.state;\r\n\r\n\t\tlinkedAccountModel.IsRecordValid = true;\r\n\r\n\t\tif (isEdit && index > -1) {\r\n\t\t\tcustomerModel.LinkedAccounts[index] = linkedAccountModel;\r\n\t\t} else {\r\n\t\t\t// if (customerModel.Accounts.filter(x => x.IsRecordValid).length >= 1)\r\n\t\t\t// \tthis.ShowMessage(\"warning\", \"Warning\", \"Cannot be allowed more than one account!\");\r\n\t\t\t// else\r\n\t\t\tcustomerModel.LinkedAccounts.push(linkedAccountModel);\r\n\t\t}\r\n\t\tthis.setState({ customerModel, linkedAccountModel: { ...this.initialGeneralModel }, hasChangedLinkedAccount: !hasChangedLinkedAccount });\r\n\t}\r\n\r\n\tAddAccount = (index, isEdit) => {\r\n\t\tconst { accountModel, accountList, hasChangedAccount } = this.state;\r\n\r\n\t\taccountModel.IsRecordValid = true;\r\n\r\n\t\tif (isEdit && index > -1) {\r\n\t\t\taccountList[index] = accountModel;\r\n\t\t} else {\r\n\t\t\taccountList.push(accountModel);\r\n\t\t}\r\n\t\tthis.setState({ accountList, accountModel: { ...this.initialGeneralModel }, hasChangedAccount: !hasChangedAccount });\r\n\t}\r\n\r\n\tDeleteLinkedAccount = (index) => {\r\n\t\tconst { customerModel, hasChangedLinkedAccount } = this.state;\r\n\t\tcustomerModel.LinkedAccounts[index].IsRecordValid = false;\r\n\t\tthis.setState({ customerModel, linkedAccountModel: { ...this.initialGeneralModel }, hasChangedLinkedAccount: !hasChangedLinkedAccount });\r\n\t}\r\n\r\n\tDeleteAccount = (index) => {\r\n\t\tconst { accountList, hasChangedAccount } = this.state;\r\n\t\tif (accountList.filter(x => x.IsRecordValid).length === 1) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Must have at least one account!\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\taccountList[index].IsRecordValid = false;\r\n\t\tthis.setState({ accountList, accountModel: { ...this.initialGeneralModel }, hasChangedAccount: !hasChangedAccount });\r\n\t}\r\n\r\n\tSelectedRowChangeCustomer = (customerModel) => {\r\n\t\tvar tempModel = { ...this.state.tempModel };\r\n\r\n\t\tif (customerModel != null && customerModel.ClientType != null) {\r\n\t\t\tif (customerModel.ClientType.ParameterValue === ClientType.Personal) {\r\n\t\t\t\ttempModel.isPersonal = true;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\ttempModel.isPersonal = false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.setState({ tempModel });\r\n\t}\r\n\r\n\tSelectedRowChangeLinkedAccount = (index) => {\r\n\t\tvar linkedAccountModel = this.state.customerModel.LinkedAccounts[index];\r\n\t\tthis.setState({ linkedAccountModel });\r\n\t}\r\n\r\n\tSelectedRowChangeAccount = (index) => {\r\n\t\tvar accountModel = this.state.accountList[index];\r\n\t\tthis.setState({ accountModel, accountIndex: index });\r\n\t}\r\n\r\n\tSelectedRowLinkedChangeAccount = (index) => {\r\n\t\tvar linkedAccountModel = this.state.customerModel.LinkedAccounts[index];\r\n\t\tthis.setState({ linkedAccountModel: linkedAccountModel });\r\n\t}\r\n\tFillCustomer = (customer) => {\r\n\t\tthis.HandleChange(\"Customer\", customer);\r\n\t}\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tValidate = (model) => {\r\n\t\tconst { vModel } = this.state;\r\n\r\n\t\tmodel = model ?? this.state.model;\r\n\r\n\t\tvar messages = [];\r\n\r\n\t\tif (!model) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Request not fill\", \"Request can not be empty.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tvModel.UniqueClientId = model.UniqueClientId == null;\r\n\t\tif (vModel.UniqueClientId) messages.push(\"Client must be select\");\r\n\r\n\t\tvModel.CustomerId = model.CustomerId == null || model.CustomerNumber == null;\r\n\t\tif (vModel.CustomerId) messages.push(\"Customer must be select\");\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.props.showMessageNode(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.setState({ vModel });\r\n\t\treturn true;\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: null })} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes, Disabled } = this.props;\r\n\t\tconst { alert, isWalletDialogOpen, model, vModel, isLoading, accountModel, accountList, cardList, customerModel, tempModel, linkedAccountModel, KnownCustomer } = this.state;\r\n\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\r\n\t\treturn (\r\n\t\t\t<>\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t 0 ? 1 : 0.4 }}>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t model, FillDataFromModel: model => this.setState({ model }), ValidationFunction: this.Validate },\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.setState({ isWalletDialogOpen: true })}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttooltip=\"Wallet Information\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={customerModel == null}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\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ropTypes.any,\r\n\r\n};\r\n\r\nexport default withArtifex(Wallet, {});","import { Dialog, DialogActions, DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport { primaryColor } from \"assets/jss/material-dashboard-pro-react.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { EditIcon, ProfileIcon } from \"core/Icons\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent\";\r\nimport { GenericAlert, GenericExpansionPanel, GenericGrid, GenericLabel, GenericNumberInput, GenericSelectInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { ProgramCodes } from \"views/Constants/Constant.js\";\r\n\r\nclass ActiveWalletList extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t\tCustomer: null,\r\n\t\t\tDefaultAccount: null,\r\n\t\t\tDefaultCard: null,\r\n\r\n\t\t\t//detail\r\n\t\t\tHasDetail: false,\r\n\t\t\tFirstName: \"\",\r\n\t\t\tLastName: \"\",\r\n\t\t\tInitial: \"\",\r\n\t\t\tBirthDate: null,\r\n\t\t\tApplicationType: null,\r\n\t\t\tWalletBalanceMin: null,\r\n\t\t\tWalletBalanceMax: null,\r\n\t\t\tCardBalanceMin: null,\r\n\t\t\tCardBalanceMax: null\r\n\t\t};\r\n\r\n\t\tthis.initialDialogModel = {\r\n\t\t\tIsDialogOpen: false,\r\n\t\t\tSelectedCard: null\r\n\t\t};\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{row.original != null && row.original.CardId != null && row.original.CardId != 0 &&\r\n\t\t\t\t\t\t\t { this.handleShowDialog(row.original, row.index); }} />}\r\n\r\n\t\t\t\t\t\t{ClientHelper.IsClient() &&\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tRouteHelper.Push(this.props.history, \"/CreateCustomer\", \"CustomerModel\", {\r\n\t\t\t\t\t\t\t\t\t\tId: row.original.ClientCustomerId, CallCenter: false, UniqueClientId: row.original.UniqueClientId\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t}} />\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\tresizable: false,\r\n\t\t\t\twidth: 80\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Cardholder Name\",\r\n\t\t\t\taccessor: \"CardHolderName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"CustomerName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Masked Card Number\",\r\n\t\t\t\taccessor: \"MaskedCardNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Status\",\r\n\t\t\t\taccessor: \"StatusDescription\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Available Balance\",\r\n\t\t\t\taccessor: \"WalletAvailableBalance\",\r\n\t\t\t\tCell: row => (Formatter.FormatMoney(row.value))\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Number\",\r\n\t\t\t\taccessor: \"WalletAccountNumber\"\r\n\t\t\t},\r\n\r\n\r\n\t\t];\r\n\r\n\t\tthis.state = {\r\n\t\t\tlist: [],\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tlastModel: {},\r\n\t\t\tdialogModel: this.initialDialogModel,\r\n\t\t\tisLoading: false,\r\n\t\t\tvModel: {}\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Card Status Update\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t\tOnConfirm={onConfirm}\r\n\t\t\t\t/>\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n\tgetListByCustomerNo = (request) => {\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Card/GetListByCustomerNo\",\r\n\t\t\trequest,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tconst model = { ...this.state.model };\r\n\t\t\t\tmodel.DefaultCard = (responseData.Item && responseData.Item[0]) || null;\r\n\t\t\t\tthis.setState({ model: model, lastModel: request });\r\n\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false, lastModel: request });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t});\r\n\r\n\t}\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tconst dialogModel = { ...this.state.dialogModel };\r\n\t\tconst initialModel = { ...this.initialModel };\r\n\t\tif (name === \"Customer\") {\r\n\t\t\tif (newValue != null) {\r\n\t\t\t\tmodel.Customer = newValue;\r\n\t\t\t\tif (newValue.Accounts != null && newValue.Accounts.length > 0) {\r\n\t\t\t\t\tmodel.DefaultAccount = newValue.Accounts[0];\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.getListByCustomerNo({ CardLevelCriteria: 1, CustomerId: newValue.Id });\r\n\t\t\t\t}\r\n\r\n\r\n\t\t\t} else {\r\n\t\t\t\tmodel.Customer = initialModel.Customer;\r\n\t\t\t\tmodel.DefaultAccount = initialModel.DefaultAccount;\r\n\t\t\t\tmodel.DefaultCard = initialModel.DefaultCard;\r\n\t\t\t}\r\n\t\t} else if (name === \"UniqueClientId\") {\r\n\t\t\tif (\r\n\t\t\t\tClientHelper.IsClient() &&\r\n\t\t\t\tinitialModel.UniqueClientId == null &&\r\n\t\t\t\tnewValue != null\r\n\t\t\t) {\r\n\t\t\t\tthis.initialModel.UniqueClientId = newValue;\r\n\t\t\t}\r\n\t\t\tmodel.UniqueClientId = newValue;\r\n\t\t} else if (name === \"Detail\") {\r\n\t\t\tmodel.HasDetail = newValue;\r\n\t\t} else if (name === \"ApplicationType\") {\r\n\t\t\tmodel.ApplicationType = data;\r\n\t\t} else if (name === \"SelectedCardStatus\") {\r\n\t\t\tdialogModel.SelectedCard.Status = newValue;\r\n\t\t} else {\r\n\t\t\tmodel[name] = newValue;\r\n\t\t}\r\n\t\tthis.setState({ model, dialogModel });\r\n\t};\r\n\r\n\thandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tvModel: {},\r\n\t\t\tfilterModel: {},\r\n\t\t\tselected: null,\r\n\t\t\tlist: []\r\n\t\t});\r\n\t};\r\n\tvalidateSearch = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tvar Messages = [];\r\n\t\tif (model.Customer == null) {\r\n\t\t\tMessages.push(\"Customer cannot be empty.\");\r\n\t\t\tvModel.CustomerNumber = true;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvModel.CustomerNumber = false;\r\n\t\t}\r\n\r\n\t\tif (model.UniqueClientId == null) {\r\n\t\t\tvModel.UniqueClientId = true;\r\n\t\t\tMessages.push(\"Client cannot be empty.\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvModel.UniqueClientId = false;\r\n\t\t}\r\n\r\n\r\n\t\tif (Messages.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Required fields!\", Messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn true;\r\n\t}\r\n\thandleSearch = (lastModel) => {\r\n\t\tif (!this.validateSearch()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tconst model = lastModel || this.state.model;\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst request = {\r\n\t\t\tClientCustomerId: model.Customer && model.Customer.Id,\r\n\t\t\tUniqueClientId: model.UniqueClientId,\r\n\t\t\tMaxWalletBalance: model.WalletBalanceMax,\r\n\t\t\tMinWalletBalance: model.WalletBalanceMin,\r\n\t\t\tMaxCardBalance: model.CardBalanceMax,\r\n\t\t\tMinCardBalance: model.CardBalanceMin\r\n\t\t};\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Card/ActiveCardWalletSearch\",\r\n\t\t\trequest,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ list: responseData.Item || [], lastModel: model });\r\n\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false, lastModel: model });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\thandleShowDialog = (data, index) => {\r\n\t\tconst dialogModel = { ...this.state.dialogModel };\r\n\t\tdialogModel.IsDialogOpen = true;\r\n\t\tdialogModel.SelectedCard = Object.assign({}, data);\r\n\t\tthis.setState({ dialogModel });\r\n\t};\r\n\r\n\thandleCancelDialog = () => {\r\n\t\tconst dialogModel = { ...this.state.dialogModel };\r\n\t\tdialogModel.IsDialogOpen = false;\r\n\t\tdialogModel.SelectedCard = null;\r\n\t\tthis.setState({ dialogModel });\r\n\t};\r\n\r\n\thandleSubmitDialog = () => {\r\n\t\tconst dialogModel = { ...this.state.dialogModel };\r\n\t\tconst lastModel = { ...this.state.lastModel };\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tif (dialogModel.SelectedCard == null) {\r\n\t\t\tdialogModel.IsDialogOpen = false;\r\n\t\t\tdialogModel.SelectedCard = null;\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Card/UpdateStatus\",\r\n\t\t\t{\r\n\t\t\t\tCardId: dialogModel.SelectedCard.CardId,\r\n\t\t\t\tCardStatusId: dialogModel.SelectedCard.Status,\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tdialogModel.IsDialogOpen = false;\r\n\t\t\t\tdialogModel.SelectedCard = null;\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ dialogModel, isLoading: false }, () => {\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"ERROR\", responseData.ErrorDescription);\r\n\t\t\t\t\t});\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ dialogModel, isLoading: false }, () => {\r\n\t\t\t\t\tthis.handleSearch(this.state.model);\r\n\t\t\t\t\tthis.ShowMessage(\"success\", \"Updated successfully!\");\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false }, () => {\r\n\t\t\t\t\tthis.ShowMessage(\r\n\t\t\t\t\t\t\"error\",\r\n\t\t\t\t\t\t\"An error occurred while requesting data\",\r\n\t\t\t\t\t\terror.message\r\n\t\t\t\t\t);\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, dialogModel, list, isLoading, alert, vModel } = this.state;\r\n\t\tconst dialogBorderStyle = {\r\n\t\t\tborderColor: primaryColor,\r\n\t\t\tborderWidth: \"7px\",\r\n\t\t\tborderStyle: \"Solid\",\r\n\t\t\toverflow: \"hidden\"\r\n\t\t};\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={ClientHelper.IsClient()}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tDefaultIndex={ClientHelper.IsClient() ? 0 : -1}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.UniqueClientId}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.handleChange(\"Customer\", customer);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tPrograms={[ProgramCodes.Prepaid]}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tShowCustomerProgram={true}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.CustomerNumber}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t `${d.Description}`}\r\n\t\t\t\t\t\t\t\t\t\t\tValue={dialogModel.SelectedCard == null ? null : dialogModel.SelectedCard.Status}\r\n\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange} />\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nActiveWalletList.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\thandleChange: PropTypes.func,\r\n\tmenuId: PropTypes.number,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default withArtifex(ActiveWalletList, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent.jsx\";\r\nimport { GenericCheckInput, GenericDateInput, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTextInput, GenericTitle, GenericNumberInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\n\r\n\r\nclass CardSwitchTransaction extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t\tIsMainCard: true,\r\n\t\t\tProgramCode: \"\",\r\n\t\t\tStartDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tEndDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tvModel: {},\r\n\t\t\ttrxGridToken: false\r\n\t\t};\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.maxLength26 = { maxLength: 26 };\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : undefined\r\n\t\t};\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\t\tthis.renderItemCard = {};\r\n\t\tthis.parameterProduct = {};\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Create Date\",\r\n\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Application NetWork\",\r\n\t\t\t\taccessor: \"ApplicationNetWork\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reference Number\",\r\n\t\t\t\taccessor: \"ReferenceNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"External Reference Number\",\r\n\t\t\t\taccessor: \"ExternalReferenceNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Number\",\r\n\t\t\t\taccessor: \"CardTokenNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Code\",\r\n\t\t\t\taccessor: \"TransactionCodeDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Available Balance\",\r\n\t\t\t\taccessor: \"AvailableBalance\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"BillingAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Entry Type\",\r\n\t\t\t\taccessor: \"TransactionEntryTypeDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Merchant Clearing Amount\",\r\n\t\t\t\taccessor: \"SettlementAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Type\",\r\n\t\t\t\taccessor: \"TransactionTypeDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Merchant\",\r\n\t\t\t\taccessor: \"Merchant\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Mti\",\r\n\t\t\t\taccessor: \"Mti\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Processing Code\",\r\n\t\t\t\taccessor: \"ProcessingCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"City\",\r\n\t\t\t\taccessor: \"City\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Fee\",\r\n\t\t\t\taccessor: \"TransactionFee\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Description\",\r\n\t\t\t\taccessor: \"TransactionDescription\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Response Code\",\r\n\t\t\t\taccessor: \"ResponseCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Response\",\r\n\t\t\t\taccessor: \"ResponseDescription\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Error Code\",\r\n\t\t\t\taccessor: \"ErrorCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Error Description\",\r\n\t\t\t\taccessor: \"ErrorDescription\"\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Pos Country\",\r\n\t\t\t\taccessor: \"PosCountry\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Merchant Clearing Date\",\r\n\t\t\t\taccessor: \"SwitchSettlemntDate\"\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Mcc\",\r\n\t\t\t\taccessor: \"Mcc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"NetTraceId\",\r\n\t\t\t\taccessor: \"NetTraceId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Authorzation Code\",\r\n\t\t\t\taccessor: \"AuthorzationCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Orginal Amount\",\r\n\t\t\t\taccessor: \"OrginalAmount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Currency\",\r\n\t\t\t\taccessor: \"TransactionCurrency\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Billing Currency\",\r\n\t\t\t\taccessor: \"BillingCurrency\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"CustomerName\"\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Emboss Name\",\r\n\t\t\t\taccessor: \"EmbossName1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Usage Limit\",\r\n\t\t\t\taccessor: \"CardUsageLimit\",\r\n\t\t\t\ttype: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Has Online Pin\",\r\n\t\t\t\taccessor: \"HasOnlinePin\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value == true ? \"Yes\" : \"No\"}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Has Cvv\",\r\n\t\t\t\taccessor: \"HasCvv\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value == true ? \"Yes\" : \"No\"}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Has Cvv2\",\r\n\t\t\t\taccessor: \"HasCvv2\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value == true ? \"Yes\" : \"No\"}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Sent To Provision\",\r\n\t\t\t\taccessor: \"IsSentToProvision\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value == true ? \"Yes\" : \"No\"}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Succeded\",\r\n\t\t\t\taccessor: \"IsSucceded\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value == true ? \"Yes\" : \"No\"}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Financial\",\r\n\t\t\t\taccessor: \"IsFinancialTransaction\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value == true ? \"Yes\" : \"No\"}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Network AVS Address\",\r\n\t\t\t\taccessor: \"NetworkAVSAddress\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Type Id\",\r\n\t\t\t\taccessor: \"TransactionTypeId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Provision Transaction Type Id\",\r\n\t\t\t\taccessor: \"ProvisionTransactionTypeId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Reversed\",\r\n\t\t\t\taccessor: \"IsReversed\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value == true ? \"Yes\" : \"No\"}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reversed Date\",\r\n\t\t\t\taccessor: \"ReversedDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reversal Type\",\r\n\t\t\t\taccessor: \"ReversalType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"System Settlement Status\",\r\n\t\t\t\taccessor: \"SettlementStatusId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Cvv Check Result Id\",\r\n\t\t\t\taccessor: \"CvvCheckResultId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Cvv2 Check Result Id\",\r\n\t\t\t\taccessor: \"Cvv2CheckResultId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Pin Check Result Id\",\r\n\t\t\t\taccessor: \"PinCheckResultId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Cavv Check Result Id\",\r\n\t\t\t\taccessor: \"CavvCheckResultId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Clearing Match Status Id\",\r\n\t\t\t\taccessor: \"ClearingMatchStatusId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Currency Rate\",\r\n\t\t\t\taccessor: \"CurrencyRate\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Mobile Wallet Type\",\r\n\t\t\t\taccessor: \"MobileWalletType\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.Url = \"/prepaidapi/v1.0/Card/CardSwitchTransactions\";\r\n\r\n\t\tthis.sortParamValue = { Member: \"ParameterValue\" };\r\n\t}\r\n\r\n\tShowQrCode = (data, index) => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/CardRequest/ShowQrCodeData\",\r\n\t\t\t{ Id: data.Id },\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.state.model.QrCode = responseData.Item;\r\n\t\t\t\t\tthis.setState({ model: this.state.model, isDialogOpen: true });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t});\r\n\t}\r\n\r\n\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Card Switch Transaction\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (name === \"Customer\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.ClientCustomerId = newValue.Id;\r\n\t\t\t\tmodel.CustomerNumber = newValue.CustomerNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.ClientCustomerId;\r\n\t\t\t\tdelete model.CustomerNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (name === \"UniqueClientId\") {\r\n\t\t\tdelete model.ClientCustomerId;\r\n\t\t\tdelete model.CustomerNumber;\r\n\t\t}\r\n\t\tif (name === \"CardId\" && data) {\r\n\t\t\tmodel.EmbossName = data.CardEmbossName;\r\n\t\t}\r\n\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, isEdit: false, index: -1 });\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t//this.setState(state => ({ trxGridToken: !state.trxGridToken }));\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel.ProgramCode = this.ProgramCode;\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Card/CardSwitchTransactions\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\r\n\t\tvar errorList = [];\r\n\r\n\t\tif (!model.IsHasCustomer) {\r\n\t\t\tvModel.StartDate = !model.StartDate;\r\n\t\t\tif (vModel.StartDate)\r\n\t\t\t\terrorList.push(\"StartDate cannot be empty!\");\r\n\r\n\t\t\tvModel.EndDate = !model.EndDate;\r\n\t\t\tif (vModel.EndDate)\r\n\t\t\t\terrorList.push(\"EndDate cannot be empty!\");\r\n\t\t}\r\n\t\telse if (model.IsHasCustomer) {\r\n\t\t\tvModel.UniqueClientId = !model.UniqueClientId;\r\n\t\t\tif (vModel.UniqueClientId) {\r\n\t\t\t\terrorList.push(\"Select the Client to continue.\");\r\n\t\t\t}\r\n\t\t\tvModel.ClientCustomerId = !model.ClientCustomerId;\r\n\t\t\tif (vModel.ClientCustomerId) {\r\n\t\t\t\terrorList.push(\"Select the Customer to continue.\");\r\n\t\t\t}\r\n\t\t\tvModel.CardId = !model.CardId;\r\n\t\t\tif (vModel.CardId) {\r\n\t\t\t\terrorList.push(\"Select the Card to continue.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (errorList.length > 0) {\r\n\t\t\tshowValidationErrors(errorList);\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\tRenderItemCard = (d) => {\r\n\t\tthis.renderItemCard = `${d.MaskedCardNumber} - ${d.CardEmbossName}`;\r\n\t\treturn this.renderItemCard;\r\n\t}\r\n\tRowSelected = (index) => {\r\n\t\tlet { model, list } = this.state;\r\n\t\tlet StartDate = model.StartDate;\r\n\t\tlet EndDate = model.EndDate;\r\n\r\n\t\tmodel = list[index];\r\n\r\n\t\tmodel.StartDate = StartDate;\r\n\t\tmodel.EndDate = EndDate;\r\n\t\tif (list[index].CardRequestId) {\r\n\t\t\tmodel.Id = list[index].Id;\r\n\t\t}\r\n\t\tthis.setState({ isEdit: true, model, index });\r\n\t}\r\n\r\n\tGetProductParameter = () => {\r\n\t\tthis.parameterProduct.UniqueClientId = this.state.model.UniqueClientId;\r\n\t\tthis.parameterProduct.IsNoNameProduct = this.state.model.IsNoNameCard;\r\n\t\treturn this.parameterProduct;\r\n\t}\r\n\r\n\tFillCustomer = (customer) => {\r\n\t\tthis.HandleChange(\"Customer\", customer);\r\n\t}\r\n\r\n\tCancelSelectCallback = () => {\r\n\t\tthis.setState({\r\n\t\t\tisDialogOpen: false,\r\n\t\t\tisDisputeDialogOpen: false\r\n\t\t});\r\n\t};\r\n\r\n\t\r\n\tGetModel = () => { return this.state.model; }\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, vModel, list, isLoading } = this.state;\r\n\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{model.IsHasCustomer &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t{model.IsHasCustomer &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t{model.IsHasCustomer &&\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t `${d.CardEmbossName} - ${d.MaskedCardNumber.substring(12)}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"CardId\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tTextValueMember=\"MaskedCardNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.CardId}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.CardId}\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\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{/* \r\n\t\t\t\t\t\t\t\t\t\t */}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCardSwitchTransaction.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(CardSwitchTransaction, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent\";\r\nimport { GenericAlert, GenericDateInput, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericNumberInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { ProgramCodes, GridColumnType, MenuCodes } from \"views/Constants/Constant.js\";\r\nimport moment from \"moment\";\r\nimport Formatter from \"core/Formatter\";\r\n\r\nclass CardTransaction extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: null,\r\n\t\t\tCustomer: null,\r\n\t\t\tDefaultAccount: null,\r\n\t\t\tDefaultCard: null,\r\n\t\t\tCardId: null,\r\n\t\t\tValidFrom: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tValidTo: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tIsUniqueDataSearch: null,\r\n\t\t\tReferenceNumber: null\r\n\t\t};\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\tCell: row => (
{Formatter.FormatDateTimeEst(row.value)}
)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Code\",\r\n\t\t\t\taccessor: \"ChannelName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Number\",\r\n\t\t\t\taccessor: \"CustomerNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Cardholder Name\",\r\n\t\t\t\taccessor: \"CardOwnerName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Masked Number\",\r\n\t\t\t\taccessor: \"MaskedCardNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Available Balance\",\r\n\t\t\t\taccessor: \"WalletBalance\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Merchant\",\r\n\t\t\t\taccessor: \"Merchant\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Merchant City\",\r\n\t\t\t\taccessor: \"MerchantCity\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Response Code\",\r\n\t\t\t\taccessor: \"ResponseCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Response Description\",\r\n\t\t\t\taccessor: \"ResponseDescription\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reversal Type\",\r\n\t\t\t\taccessor: \"ReversalType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reversed Date Time\",\r\n\t\t\t\taccessor: \"ReversedDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Original Amount\",\r\n\t\t\t\taccessor: \"TransactionAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Original Billing Amount\",\r\n\t\t\t\taccessor: \"OriginalBillingAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Biling Amount\",\r\n\t\t\t\taccessor: \"BillingAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Fee Amount\",\r\n\t\t\t\taccessor: \"FeeAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Terminal Type\",\r\n\t\t\t\taccessor: \"TerminalType\"\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Source\",\r\n\t\t\t\taccessor: \"CardTransactionSource\"\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Merchant Clearing Amount\",\r\n\t\t\t\taccessor: \"SettlementAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Merchant Clearing Date\",\r\n\t\t\t\taccessor: \"SettlementDate\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\trow.value ? Formatter.FormatDate(row.value) : \"\"\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Error Code\",\r\n\t\t\t\taccessor: \"ErrorCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Error Description\",\r\n\t\t\t\taccessor: \"ErrorDescription\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Brand Name\",\r\n\t\t\t\taccessor: \"CardBrandName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Description\",\r\n\t\t\t\taccessor: \"Description\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reference Number\",\r\n\t\t\t\taccessor: \"ReferenceNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Mcc\",\r\n\t\t\t\taccessor: \"Mcc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"System Settlement Status\",\r\n\t\t\t\taccessor: \"SettlementStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Entry Type\",\r\n\t\t\t\taccessor: \"TransactionEntryTypeDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Type\",\r\n\t\t\t\taccessor: \"TransactionTypeDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Mti\",\r\n\t\t\t\taccessor: \"Mti\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Network Fee\",\r\n\t\t\t\taccessor: \"TransactionFee\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Authorzation Code\",\r\n\t\t\t\taccessor: \"AuthorzationCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Mobile Wallet Type\",\r\n\t\t\t\taccessor: \"MobileWalletType\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.state = {\r\n\t\t\tlist: [],\r\n\t\t\tvModel: {},\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tfilterModel: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tLimitToken: false,\r\n\t\t\tLimitBalanceData: {\r\n\t\t\t\tAvailableCreditLimit: 0,\r\n\t\t\t\tAvailableDebitLimit: 0,\r\n\t\t\t\tAvailableBalance: 0\r\n\t\t\t}\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\r\n\t\tif (this.props.MenuCode == MenuCodes.CallCenter_CardTransaction) {\r\n\t\t\tthis.props.setAppLeftTitle(\"Card Transaction Search\");\r\n\t\t\tthis.props.setAppCenterTitle(\"CALL CENTER\");\r\n\t\t} else {\r\n\t\t\tthis.props.setAppLeftTitle(\"Card Transaction Search\");\r\n\t\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t\t}\r\n\t}\r\n\r\n\tRefreshToolBar = () => {\r\n\t\tthis.setState({ LimitToken: !this.state.LimitToken });\r\n\t};\r\n\r\n\tLimitDataLoad = data => {\r\n\t\tthis.setState({ LimitBalanceData: data, isLoading: false });\r\n\t};\r\n\tIsValid = () => {\r\n\t\tvar vmodel = { ...this.state.model };\r\n\t\tconst kModel = { ...this.state.vModel };\r\n\r\n\t\tif (!vmodel.IsUniqueDataSearch && vmodel.ValidFrom == null || vmodel.ValidFrom == \"\") {\r\n\t\t\tkModel.ValidFrom = true;\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Select From Date to continue!\");\r\n\t\t\tthis.setState({\r\n\t\t\t\tkModel: kModel\r\n\t\t\t});\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tkModel.ValidFrom = false;\r\n\t\t}\r\n\t\tif (!vmodel.IsUniqueDataSearch && vmodel.ValidTo == null || vmodel.ValidTo == \"\") {\r\n\t\t\tkModel.ValidTo = true;\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Select To Date to continue!\");\r\n\t\t\tthis.setState({\r\n\t\t\t\tkModel: kModel\r\n\t\t\t});\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tkModel.ValidTo = false;\r\n\t\t}\r\n\r\n\t\tif (!vmodel.IsUniqueDataSearch && typeof vmodel.ValidFrom != \"object\" && vmodel.ValidFrom != \"\" && vmodel.ValidFrom != null) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"From Date is invalid\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!vmodel.IsUniqueDataSearch && typeof vmodel.ValidTo != \"object\" && vmodel.ValidTo != \"\" && vmodel.ValidTo != null) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"To Date is invalid\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!vmodel.IsUniqueDataSearch && (typeof vmodel.ValidFrom == \"object\" && typeof vmodel.ValidTo == \"object\") && vmodel.ValidTo < vmodel.ValidFrom) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"From Date cannot be greater than To Date!\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!vmodel.IsUniqueDataSearch && (typeof vmodel.ValidFrom == \"object\" && typeof vmodel.ValidTo == \"object\")) {\r\n\t\t\tvar interval = moment.duration(vmodel.ValidTo.diff(vmodel.ValidFrom)).asDays();\r\n\t\t\tif (interval > 30) {\r\n\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Between two dates cannot be longer than 30 days!\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.setState({\r\n\t\t\tkModel: kModel\r\n\t\t});\r\n\t\treturn true;\r\n\t}\r\n\thandleChange = (name, newValue) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tconst initialModel = { ...this.initialModel };\r\n\t\tif (name === \"Customer\") {\r\n\t\t\tif (newValue != null) {\r\n\t\t\t\tmodel.Customer = newValue;\r\n\t\t\t\tif (newValue.Accounts != null && newValue.Accounts.length > 0) {\r\n\t\t\t\t\tmodel.DefaultAccount = newValue.Accounts[0];\r\n\t\t\t\t}\r\n\t\t\t\tconst request = { CardLevelCriteria: 1, CustomerId: newValue.Id };\r\n\t\t\t\tProxy.ExecuteGeneral(\r\n\t\t\t\t\tthis, \"POST\",\r\n\t\t\t\t\t\"/prepaidapi/v1.0/Card/GetListByCustomerNo\",\r\n\t\t\t\t\trequest,\r\n\t\t\t\t\tresponseData => {\r\n\t\t\t\t\t\tif (responseData.Item != null && responseData.Item[0] != null) {\r\n\t\t\t\t\t\t\tmodel.DefaultCard = responseData.Item[0];\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tmodel.DefaultCard = null;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tthis.setState({ model: model });\r\n\t\t\t\t\t}\r\n\t\t\t\t);\r\n\t\t\t} else {\r\n\t\t\t\tmodel.Customer = initialModel.Customer;\r\n\t\t\t\tmodel.DefaultAccount = initialModel.DefaultAccount;\r\n\t\t\t\tmodel.DefaultCard = initialModel.DefaultCard;\r\n\t\t\t}\r\n\t\t} else if (name === \"UniqueClientId\") {\r\n\t\t\tif (\r\n\t\t\t\tClientHelper.IsClient() &&\r\n\t\t\t\tinitialModel.UniqueClientId == null &&\r\n\t\t\t\tnewValue != null\r\n\t\t\t) {\r\n\t\t\t\tthis.initialModel.UniqueClientId = newValue;\r\n\t\t\t}\r\n\t\t\tmodel.UniqueClientId = newValue;\r\n\t\t} else if (name === \"ValidFrom\") {\r\n\t\t\tmodel.ValidFrom = newValue;\r\n\t\t} else if (name === \"ValidTo\") {\r\n\t\t\tmodel.ValidTo = newValue;\r\n\t\t} else if (name == \"ReferenceNumber\") {\r\n\t\t\tmodel.ReferenceNumber = newValue;\r\n\t\t\tmodel.IsUniqueDataSearch = newValue?.length > 0;\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tfilterModel: {},\r\n\t\t\tselected: null,\r\n\t\t\tlist: []\r\n\t\t});\r\n\t};\r\n\r\n\taddDays = (date, days) => {\r\n\t\tvar returnDate = new Date();\r\n\t\treturnDate.setDate(date.getDate() + days);\r\n\t\treturn returnDate;\r\n\t};\r\n\r\n\tHandleSearch = () => {\r\n\t\tif (!this.IsValid())\r\n\t\t\treturn;\r\n\r\n\t\tconst model = { ...this.state.model };\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tvar request = {\r\n\t\t\tCriteria: 0,\r\n\t\t\tBeginDate: model.ValidFrom,\r\n\t\t\tEndDate: model.ValidTo,\r\n\t\t\tClientCustomerId: model.Customer == null ? null : model.Customer.Id,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : model.UniqueClientId,\r\n\t\t\tCardId: model.CardId,\r\n\t\t\tReferenceNumber: model.ReferenceNumber\r\n\t\t}\r\n\t\tProxy.ExecuteGeneral(\r\n\t\t\tthis, \"POST\",\r\n\t\t\t\"/prepaidapi/v1.0/TransactionData/SearchCardTransactionSummary\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tmodel,\r\n\t\t\t\t\tlist: responseData.Item\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t\tOnConfirm={onConfirm}\r\n\t\t\t\t/>\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, isLoading, vModel } = this.state;\r\n\r\n\t\tvar endDate = (model.ValidFrom instanceof moment) ? model.ValidFrom.clone() : \"\";\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t 0,\r\n\t\t\t\t\t\t\tModelFunction: () => model,\r\n\t\t\t\t\t\t\tFillDataFromModel: model => this.setState({ model }),\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{ Code: \"Clear\", OnClick: this.HandleClear, Disabled: Disabled }\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After}\r\n\t\t\t\t/>\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={ClientHelper.IsClient()}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tDefaultIndex={ClientHelper.IsClient() ? 0 : -1}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t { this.handleChange(\"Customer\", customer); }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tPrograms={[ProgramCodes.Prepaid]} />\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCardTransaction.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(CardTransaction, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericExpansionPanel, GenericGrid } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { ProgramCodes, GridColumnType, MenuCodes } from \"views/Constants/Constant.js\";\r\n\r\nclass OverlimitCardList extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tValidFrom: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tValidTo: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tIsUniqueDataSearch: null,\r\n\t\t};\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Time\",\r\n\t\t\t\taccessor: \"TransactionTime\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transcation Source\",\r\n\t\t\t\taccessor: \"TranscationSource\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Token Number\",\r\n\t\t\t\taccessor: \"CardTokenNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reference Number\",\r\n\t\t\t\taccessor: \"ReferenceNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Identifier\",\r\n\t\t\t\taccessor: \"TransactionIdentifier\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Mti\",\r\n\t\t\t\taccessor: \"Mti\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"CustomerName\"\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"Customer Number\",\r\n\t\t\t\taccessor: \"CustomerNumber\"\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"F43 Name\",\r\n\t\t\t\taccessor: \"F43Name\"\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"Authorization Amount\",\r\n\t\t\t\taccessor: \"AuthorizationAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"Settlement Amount\",\r\n\t\t\t\taccessor: \"SettlementAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"Balance\",\r\n\t\t\t\taccessor: \"Balance\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t];\r\n\r\n\t\tthis.state = {\r\n\t\t\tlist: [],\r\n\t\t\tvModel: {},\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tfilterModel: {},\r\n\t\t\tisLoading: false,\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\r\n\t\tif (this.props.MenuCode == MenuCodes.CallCenter_CardTransaction) {\r\n\t\t\tthis.props.setAppLeftTitle(\"Potential Chargeback\");\r\n\t\t\tthis.props.setAppCenterTitle(\"CALL CENTER\");\r\n\t\t} else {\r\n\t\t\tthis.props.setAppLeftTitle(\"Potential Chargeback\");\r\n\t\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t\t}\r\n\t}\r\n\r\n\r\n\thandleChange = (name, newValue) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tconst initialModel = { ...this.initialModel };\r\n\t\tif (name === \"ValidFrom\") {\r\n\t\t\tmodel.ValidFrom = newValue;\r\n\t\t} else if (name === \"ValidTo\") {\r\n\t\t\tmodel.ValidTo = newValue;\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tfilterModel: {},\r\n\t\t\tselected: null,\r\n\t\t\tlist: []\r\n\t\t});\r\n\t};\r\n\r\n\tHandleSearch = () => {\r\n\r\n\r\n\t\tconst model = { ...this.state.model };\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tvar request = {\r\n\t\t\tCriteria: 0,\r\n\t\t\tFromDate: model.ValidFrom,\r\n\t\t\tToDate: model.ValidTo,\r\n\t\t}\r\n\t\tProxy.ExecuteGeneral(\r\n\t\t\tthis, \"POST\",\r\n\t\t\t\"/prepaidapi/v1.0/Wallet/GetOverLimitCardList\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tmodel,\r\n\t\t\t\t\tlist: responseData.Item\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, isLoading, vModel } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t 0,\r\n\t\t\t\t\t\t\tModelFunction: () => model,\r\n\t\t\t\t\t\t\tFillDataFromModel: model => this.setState({ model }),\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{ Code: \"Clear\", OnClick: this.HandleClear, Disabled: Disabled }\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After}\r\n\t\t\t\t/>\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nOverlimitCardList.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(OverlimitCardList, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTitle, GenericNumberInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\n\r\n\r\nclass CardSwitchTransaction extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t\tIsMainCard: true,\r\n\t\t\tProgramCode: \"\",\r\n\t\t\tStartDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tEndDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tvModel: {},\r\n\t\t\ttrxGridToken: false\r\n\t\t};\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.maxLength6 = { maxLength: 6 };\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : undefined\r\n\t\t};\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\t\tthis.renderItemCard = {};\r\n\t\tthis.parameterProduct = {};\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Create Date\",\r\n\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Application NetWork\",\r\n\t\t\t\taccessor: \"ApplicationNetWork\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reference Number\",\r\n\t\t\t\taccessor: \"ReferenceNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"External Reference Number\",\r\n\t\t\t\taccessor: \"ExternalReferenceNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Number\",\r\n\t\t\t\taccessor: \"CardTokenNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Code\",\r\n\t\t\t\taccessor: \"TransactionCodeDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Available Balance\",\r\n\t\t\t\taccessor: \"AvailableBalance\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"BillingAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Entry Type\",\r\n\t\t\t\taccessor: \"TransactionEntryTypeDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Merchant Clearing Amount\",\r\n\t\t\t\taccessor: \"SettlementAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Type\",\r\n\t\t\t\taccessor: \"TransactionTypeDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Merchant\",\r\n\t\t\t\taccessor: \"Merchant\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Mti\",\r\n\t\t\t\taccessor: \"Mti\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Processing Code\",\r\n\t\t\t\taccessor: \"ProcessingCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"City\",\r\n\t\t\t\taccessor: \"City\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Fee\",\r\n\t\t\t\taccessor: \"TransactionFee\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Description\",\r\n\t\t\t\taccessor: \"TransactionDescription\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Response Code\",\r\n\t\t\t\taccessor: \"ResponseCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Response\",\r\n\t\t\t\taccessor: \"ResponseDescription\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Error Code\",\r\n\t\t\t\taccessor: \"ErrorCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Error Description\",\r\n\t\t\t\taccessor: \"ErrorDescription\"\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Pos Country\",\r\n\t\t\t\taccessor: \"PosCountry\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Merchant Clearing Date\",\r\n\t\t\t\taccessor: \"SwitchSettlemntDate\"\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Mcc\",\r\n\t\t\t\taccessor: \"Mcc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"NetTraceId\",\r\n\t\t\t\taccessor: \"NetTraceId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Authorzation Code\",\r\n\t\t\t\taccessor: \"AuthorzationCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Orginal Amount\",\r\n\t\t\t\taccessor: \"OrginalAmount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Currency\",\r\n\t\t\t\taccessor: \"TransactionCurrency\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Billing Currency\",\r\n\t\t\t\taccessor: \"BillingCurrency\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"CustomerName\"\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Emboss Name\",\r\n\t\t\t\taccessor: \"EmbossName1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Usage Limit\",\r\n\t\t\t\taccessor: \"CardUsageLimit\",\r\n\t\t\t\ttype: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Has Online Pin\",\r\n\t\t\t\taccessor: \"HasOnlinePin\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value == true ? \"Yes\" : \"No\"}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Has Cvv\",\r\n\t\t\t\taccessor: \"HasCvv\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value == true ? \"Yes\" : \"No\"}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Has Cvv2\",\r\n\t\t\t\taccessor: \"HasCvv2\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value == true ? \"Yes\" : \"No\"}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Sent To Provision\",\r\n\t\t\t\taccessor: \"IsSentToProvision\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value == true ? \"Yes\" : \"No\"}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Succeded\",\r\n\t\t\t\taccessor: \"IsSucceded\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value == true ? \"Yes\" : \"No\"}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Financial\",\r\n\t\t\t\taccessor: \"IsFinancialTransaction\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value == true ? \"Yes\" : \"No\"}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Network AVS Address\",\r\n\t\t\t\taccessor: \"NetworkAVSAddress\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Type Id\",\r\n\t\t\t\taccessor: \"TransactionTypeId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Provision Transaction Type Id\",\r\n\t\t\t\taccessor: \"ProvisionTransactionTypeId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Reversed\",\r\n\t\t\t\taccessor: \"IsReversed\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value == true ? \"Yes\" : \"No\"}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reversed Date\",\r\n\t\t\t\taccessor: \"ReversedDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reversal Type\",\r\n\t\t\t\taccessor: \"ReversalType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"System Settlement Status\",\r\n\t\t\t\taccessor: \"SettlementStatusId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Cvv Check Result Id\",\r\n\t\t\t\taccessor: \"CvvCheckResultId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Cvv2 Check Result Id\",\r\n\t\t\t\taccessor: \"Cvv2CheckResultId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Pin Check Result Id\",\r\n\t\t\t\taccessor: \"PinCheckResultId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Cavv Check Result Id\",\r\n\t\t\t\taccessor: \"CavvCheckResultId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Clearing Match Status Id\",\r\n\t\t\t\taccessor: \"ClearingMatchStatusId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Currency Rate\",\r\n\t\t\t\taccessor: \"CurrencyRate\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Mobile Wallet Type\",\r\n\t\t\t\taccessor: \"MobileWalletType\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.Url = \"/prepaidapi/v1.0/Card/CardSwitchTransactions\";\r\n\r\n\t\tthis.sortParamValue = { Member: \"ParameterValue\" };\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Card Settlement Transaction Search\");\r\n\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif (name === \"Customer\") {\r\n\t\t\tif (newValue) {\r\n\t\t\t\tmodel.ClientCustomerId = newValue.Id;\r\n\t\t\t\tmodel.CustomerNumber = newValue.CustomerNumber;\r\n\t\t\t} else {\r\n\t\t\t\tdelete model.ClientCustomerId;\r\n\t\t\t\tdelete model.CustomerNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (name === \"UniqueClientId\") {\r\n\t\t\tdelete model.ClientCustomerId;\r\n\t\t\tdelete model.CustomerNumber;\r\n\t\t}\r\n\t\tif (name === \"CardId\" && data) {\r\n\t\t\tmodel.EmbossName = data.CardEmbossName;\r\n\t\t}\r\n\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, isEdit: false, index: -1 });\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel.ProgramCode = this.ProgramCode;\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Card/CardSwitchTransactions\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\r\n\t}\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\r\n\t\tvar errorList = [];\r\n\r\n\t\tif (!model.IsHasCustomer) {\r\n\t\t\tvModel.StartDate = !model.StartDate;\r\n\t\t\tif (vModel.StartDate)\r\n\t\t\t\terrorList.push(\"StartDate cannot be empty!\");\r\n\r\n\t\t\tvModel.EndDate = !model.EndDate;\r\n\t\t\tif (vModel.EndDate)\r\n\t\t\t\terrorList.push(\"EndDate cannot be empty!\");\r\n\t\t}\r\n\t\telse if (model.IsHasCustomer) {\r\n\t\t\tvModel.UniqueClientId = !model.UniqueClientId;\r\n\t\t\tif (vModel.UniqueClientId) {\r\n\t\t\t\terrorList.push(\"Select the Client to continue.\");\r\n\t\t\t}\r\n\t\t\tvModel.ClientCustomerId = !model.ClientCustomerId;\r\n\t\t\tif (vModel.ClientCustomerId) {\r\n\t\t\t\terrorList.push(\"Select the Customer to continue.\");\r\n\t\t\t}\r\n\t\t\tvModel.CardId = !model.CardId;\r\n\t\t\tif (vModel.CardId) {\r\n\t\t\t\terrorList.push(\"Select the Card to continue.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (errorList.length > 0) {\r\n\t\t\tshowValidationErrors(errorList);\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\tRenderItemCard = (d) => {\r\n\t\tthis.renderItemCard = `${d.MaskedCardNumber} - ${d.CardEmbossName}`;\r\n\t\treturn this.renderItemCard;\r\n\t}\r\n\r\n\r\n\r\n\r\n\r\n\tGetModel = () => { return this.state.model; }\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, vModel, list, isLoading } = this.state;\r\n\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCardSwitchTransaction.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(CardSwitchTransaction, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport {\r\n GenericExpansionPanel,\r\n GenericGrid,\r\n GenericSelectInput,\r\n GenericTextInput,\r\n GenericTitle,\r\n GenericDateInput,\r\n GenericNumberInput,\r\n} from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass UnprocessedPaymentList extends Component {\r\n constructor(props) {\r\n super(props);\r\n\r\n this.initialModel = {\r\n UniqueClientId: ClientHelper.IsClient()\r\n ? ClientHelper.GetClientRowId()\r\n : undefined,\r\n FromDate: \"\",\r\n ToDate: \"\",\r\n ReferenceNumber: \"\",\r\n AccountNumber: \"\",\r\n CardTokenNumber: \"\",\r\n };\r\n\r\n this.state = {\r\n model: this.initialModel,\r\n vModel: {},\r\n list: [],\r\n isLoading: false,\r\n };\r\n\r\n this.parameterUniqueClientId = {\r\n UniqueClientId: ClientHelper.IsClient()\r\n ? ClientHelper.GetClientId()\r\n : undefined,\r\n };\r\n this.maxLength16 = { maxLength: 16 };\r\n this.emptyObject = {};\r\n this.Columns = [\r\n {\r\n Header: \"Client\",\r\n accessor: \"ClientName\",\r\n },\r\n {\r\n Header: \"Reference Number\",\r\n accessor: \"ReferenceNumber\",\r\n },\r\n {\r\n Header: \"Transaction Source\",\r\n accessor: \"TransactionSource\",\r\n },\r\n {\r\n Header: \"Wallet Account Number\",\r\n accessor: \"WalletAccountNumber\",\r\n },\r\n {\r\n Header: \"Amount\",\r\n accessor: \"Amount\",\r\n type: GridColumnType.Money,\r\n },\r\n {\r\n Header: \"Card Token Number\",\r\n accessor: \"CardTokenNumber\",\r\n },\r\n {\r\n Header: \"Insert Date Time\",\r\n accessor: \"InsertDateTime\",\r\n type: GridColumnType.Date,\r\n },\r\n ];\r\n }\r\n\r\n componentDidMount() {\r\n this.props.setAppLeftTitle(\"Unprocessed Payment Transaction List\");\r\n this.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n }\r\n\r\n HandleChange = (name, newValue, data) => {\r\n const model = { ...this.state.model };\r\n model[name] = newValue;\r\n this.setState({ model });\r\n };\r\n\r\n HandleClear = () => {\r\n this.setState({\r\n model: { ...this.initialModel },\r\n vModel: {},\r\n isEdit: false,\r\n index: -1,\r\n });\r\n };\r\n\r\n HandleSearch = () => {\r\n this.setState({ isLoading: true });\r\n Proxy.POST(\r\n \"/prepaidapi/v1.0/Card/GetUnprocessedPaymentTransactionList\",\r\n this.state.model,\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n if (!responseData.IsSucceeded) {\r\n this.props.showMessage(\r\n \"error\",\r\n \"Error\",\r\n responseData.ErrorDescription\r\n );\r\n return;\r\n }\r\n if (responseData.Item !== null) {\r\n this.setState({ list: responseData.Item });\r\n }\r\n },\r\n (error) => {\r\n this.setState({ isLoading: false });\r\n this.props.showMessage(\"error\", \"Error\", error);\r\n }\r\n );\r\n };\r\n\r\n RowSelected = (index) => {\r\n let { list } = this.state;\r\n const tempModel = list[index];\r\n if (list[index].CardRequestId) {\r\n tempModel.Id = list[index].Id;\r\n }\r\n this.setState({ isEdit: true, model: tempModel, index });\r\n };\r\n\r\n render() {\r\n const { Disabled } = this.props;\r\n const { alert, model, list, isLoading, index, vModel } = this.state;\r\n var IsClient = ClientHelper.IsClient();\r\n\r\n return (\r\n
\r\n \r\n\r\n {alert}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n `${d.UniqueClientId} - ${d.Name}`\r\n }\r\n TextValueMember=\"Name\"\r\n Value={model.UniqueClientId}\r\n ValueChanged={this.HandleChange}\r\n CanClear\r\n All\r\n Required\r\n DefaultIndex={IsClient ? 0 : -1}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\nUnprocessedPaymentList.propTypes = {\r\n classes: PropTypes.object.isRequired,\r\n Disabled: PropTypes.bool,\r\n};\r\n\r\nexport default withArtifex(UnprocessedPaymentList, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent\";\r\nimport { GenericAlert, GenericDateInput, GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { ProgramCodes, TransactionType, GridColumnType, MenuCodes } from \"views/Constants/Constant.js\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport moment from \"moment\";\r\n\r\nclass WalletTransaction extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: null,\r\n\t\t\tCustomer: null,\r\n\t\t\tAccountNumber: null,\r\n\t\t\tValidFrom: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tValidTo: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tMinAmount: null,\r\n\t\t\tMaxAmount: null,\r\n\t\t\tReferenceNumber: null,\r\n\t\t\tIsUniqueDataSearch: null\r\n\t\t};\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tstyle: this.RenderStyle()\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Received / Sent\",\r\n\t\t\t\taccessor: \"TransactionType\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Unique Client Id\",\r\n\t\t\t\taccessor: \"ClientUniqueClientId\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Currency\",\r\n\t\t\t\taccessor: \"CurrencyCode\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t)\r\n\t\t\t}\r\n\t\t\t,\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Original Billing Amount\",\r\n\t\t\t\taccessor: \"OriginalBillingAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money,\r\n\t\t\t\tstyle: this.RenderStyle()\r\n\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"Amount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money,\r\n\t\t\t\tstyle: this.RenderStyle()\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Fee Amount\",\r\n\t\t\t\taccessor: \"FeeAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money,\r\n\t\t\t\tstyle: this.RenderStyle()\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Remaining Balance\",\r\n\t\t\t\taccessor: \"RemainingBalance\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tstyle: this.BalanceRenderStyle(),\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Masked Number \",\r\n\t\t\t\taccessor: \"MaskedCardNumber\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Name\",\r\n\t\t\t\taccessor: \"AccountName\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Explanation\",\r\n\t\t\t\taccessor: \"Description\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Number\",\r\n\t\t\t\taccessor: \"AccountNumber\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t)\r\n\t\t\t}\r\n\t\t\t, {\r\n\t\t\t\tHeader: \"Reference Number\",\r\n\t\t\t\taccessor: \"ReferenceNumber\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t)\r\n\t\t\t}\r\n\t\t\t, {\r\n\t\t\t\tHeader: \"Mcc\",\r\n\t\t\t\taccessor: \"Mcc\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t)\r\n\t\t\t}\r\n\t\t\t, {\r\n\t\t\t\tHeader: \"Settlement Status\",\r\n\t\t\t\taccessor: \"SettlementStatus\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t)\r\n\t\t\t}\r\n\r\n\t\t];\r\n\r\n\t\tthis.state = {\r\n\t\t\tlist: [],\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tfilterModel: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tLimitToken: false,\r\n\t\t\tLimitBalanceData: {\r\n\t\t\t\tAvailableCreditLimit: 0,\r\n\t\t\t\tAvailableDebitLimit: 0,\r\n\t\t\t\tAvailableBalance: 0\r\n\t\t\t},\r\n\t\t\tkModel: {}\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tif (this.props.MenuCode == MenuCodes.CallCenter_WalletTransaction) {\r\n\t\t\tthis.props.setAppLeftTitle(\"Wallet Transaction Search\");\r\n\t\t\tthis.props.setAppCenterTitle(\"CALL CENTER\");\r\n\t\t} else {\r\n\t\t\tthis.props.setAppLeftTitle(\"Wallet Transaction Search\");\r\n\t\t\tthis.props.setAppCenterTitle(\"PREPAID CARD MANAGEMENT\");\r\n\t\t}\r\n\t}\r\n\r\n\tRefreshToolBar = () => {\r\n\t\tthis.setState({ LimitToken: !this.state.LimitToken });\r\n\t};\r\n\r\n\tLimitDataLoad = data => {\r\n\t\tthis.setState({ LimitBalanceData: data, isLoading: false });\r\n\t};\r\n\r\n\thandleChange = (name, newValue) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tconst initialModel = { ...this.initialModel };\r\n\t\tif (name === \"Customer\") {\r\n\t\t\tif (newValue != null) {\r\n\t\t\t\tmodel.Customer = newValue;\r\n\t\t\t\tif (newValue.Accounts != null && newValue.Accounts.length > 0) {\r\n\t\t\t\t\tmodel.AccountNumber = newValue.Accounts[0].AccountNumber;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmodel.AccountNumber = null;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tmodel.Customer = initialModel.Customer;\r\n\t\t\t}\r\n\t\t} else if (name === \"UniqueClientId\") {\r\n\t\t\tif (\r\n\t\t\t\tClientHelper.IsClient() &&\r\n\t\t\t\tinitialModel.UniqueClientId == null &&\r\n\t\t\t\tnewValue != null\r\n\t\t\t) {\r\n\t\t\t\tthis.initialModel.UniqueClientId = newValue;\r\n\t\t\t}\r\n\t\t\tmodel.UniqueClientId = newValue;\r\n\t\t} else if (name === \"ValidFrom\") {\r\n\t\t\tmodel.ValidFrom = newValue;\r\n\t\t} else if (name === \"ValidTo\") {\r\n\t\t\tmodel.ValidTo = newValue;\r\n\t\t} else if (name === \"AccountNumber\") {\r\n\t\t\tmodel.AccountNumber = newValue;\r\n\t\t} else if (name === \"MinAmount\") {\r\n\t\t\tmodel.MinAmount = newValue;\r\n\t\t} else if (name === \"MaxAmount\") {\r\n\t\t\tmodel.MaxAmount = newValue;\r\n\t\t} else if (name === \"ReferenceNumber\") {\r\n\t\t\tmodel.ReferenceNumber = newValue;\r\n\t\t\tmodel.IsUniqueDataSearch = newValue?.length > 0;\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tfilterModel: {},\r\n\t\t\tselected: null,\r\n\t\t\tlist: [],\r\n\t\t\tkmodel: {}\r\n\t\t});\r\n\t};\r\n\r\n\taddDays = (date, days) => {\r\n\t\tvar returnDate = new Date();\r\n\t\treturnDate.setDate(date.getDate() + days);\r\n\t\treturn returnDate;\r\n\t};\r\n\tIsValid = () => {\r\n\t\tvar vmodel = { ...this.state.model };\r\n\t\tconst kModel = { ...this.state.vModel };\r\n\r\n\t\tif (!vmodel.IsUniqueDataSearch && vmodel.ValidFrom == null || vmodel.ValidFrom == \"\") {\r\n\t\t\tkModel.ValidFrom = true;\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Select From Date to continue!\");\r\n\t\t\tthis.setState({\r\n\t\t\t\tkModel: kModel\r\n\t\t\t});\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tkModel.ValidFrom = false;\r\n\t\t}\r\n\t\tif (!vmodel.IsUniqueDataSearch && vmodel.ValidTo == null || vmodel.ValidTo == \"\") {\r\n\t\t\tkModel.ValidTo = true;\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Select To Date to continue!\");\r\n\t\t\tthis.setState({\r\n\t\t\t\tkModel: kModel\r\n\t\t\t});\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tkModel.ValidTo = false;\r\n\t\t}\r\n\r\n\t\tif (!vmodel.IsUniqueDataSearch && typeof vmodel.ValidFrom != \"object\" && vmodel.ValidFrom != \"\" && vmodel.ValidFrom != null) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Select From Date to continue!\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!vmodel.IsUniqueDataSearch && typeof vmodel.ValidTo != \"object\" && vmodel.ValidTo != \"\" && vmodel.ValidTo != null) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Select To Date to continue!\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!vmodel.IsUniqueDataSearch && (typeof vmodel.ValidFrom == \"object\" && typeof vmodel.ValidTo == \"object\") && vmodel.ValidTo < vmodel.ValidFrom) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"From Date cannot be greater than To Date!\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!vmodel.IsUniqueDataSearch && (typeof vmodel.ValidFrom == \"object\" && typeof vmodel.ValidTo == \"object\")) {\r\n\t\t\tvar interval = moment.duration(vmodel.ValidTo.diff(vmodel.ValidFrom)).asDays();\r\n\t\t\tif (interval > 30) {\r\n\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Between two dates cannot be longer than 30 days!\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.setState({\r\n\t\t\tkModel: kModel\r\n\t\t});\r\n\t\treturn true;\r\n\t}\r\n\tHandleSearch = () => {\r\n\r\n\t\tif (!this.IsValid())\r\n\t\t\treturn;\r\n\r\n\t\tconst model = { ...this.state.model };\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst request = {\r\n\t\t\tFromDate: model.ValidFrom,\r\n\t\t\tToDate: model.ValidTo,\r\n\t\t\tClientCustomerId: model.Customer != null ? model.Customer.Id : null,\r\n\t\t\tUniqueClientId: model.UniqueClientId,\r\n\t\t\tMinAmount: model.MinAmount,\r\n\t\t\tMaxAmount: model.MaxAmount,\r\n\t\t\tAccountNumber: model.AccountNumber,\r\n\t\t\tReferenceNumber: model.ReferenceNumber,\r\n\t\t};\r\n\t\tProxy.ExecuteGeneral(\r\n\t\t\tthis, \"POST\",\r\n\t\t\t\"/prepaidapi/v1.0/TransactionData/SearchWalletTransactionSummary\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tmodel,\r\n\t\t\t\t\tlist: responseData.Item,\r\n\t\t\t\t\tisLoading: false\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t\tOnConfirm={onConfirm}\r\n\t\t\t\t/>\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n\tRenderStyle = () => {\r\n\t\treturn {\r\n\t\t\tcolumn: \"TransactionType\",\r\n\t\t\tcondition: \"Received\",\r\n\t\t\tstyle: { fontWeight: \"600\" },\r\n\t\t\tprefix: [\"+\", \"-\"]\r\n\t\t};\r\n\t}\r\n\tBalanceRenderStyle = () => {\r\n\t\treturn {\r\n\t\t\tcolumn: \"TransactionType\",\r\n\t\t\tcondition: \"Received\",\r\n\t\t\tstyle: { fontWeight: \"600\" },\r\n\t\t\tprefix: [\"\", \"\"]\r\n\t\t};\r\n\t}\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, isLoading, kModel } = this.state;\r\n\t\tvar endDate = (model.ValidFrom instanceof moment) ? model.ValidFrom.clone() : \"\";\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t 0,\r\n\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{ Code: \"Clear\", OnClick: this.HandleClear, Disabled: Disabled }\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After}\r\n\t\t\t\t/>\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={ClientHelper.IsClient()}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDefaultIndex={ClientHelper.IsClient() ? 0 : -1} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tthis.handleChange(\"Customer\", customer);\r\n\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\tPrograms={[ProgramCodes.Prepaid]} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nWalletTransaction.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(WalletTransaction, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport {\r\n GenericExpansionPanel,\r\n GenericGrid,\r\n GenericSelectInput,\r\n GenericTitle,\r\n GenericNumberInput,\r\n GenericCheckInput,\r\n} from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport { GridColumnType } from \"views/Constants/Constant.js\";\r\n\r\nclass ClientHighApiProfileDefinition extends Component {\r\n constructor(props) {\r\n super(props);\r\n\r\n this.initialModel = {\r\n Id: 0,\r\n UniqueClientId: null,\r\n };\r\n\r\n this.state = {\r\n model: this.initialModel,\r\n vModel: {},\r\n list: [],\r\n isLoading: false,\r\n };\r\n\r\n this.emptyObject = {};\r\n\r\n this.columns = [\r\n {\r\n Header: \"Is Active\",\r\n accessor: \"IsActive\",\r\n type: GridColumnType.YesNo,\r\n ColumnType: GridColumnType.YesNo,\r\n },\r\n {\r\n Header: \"Client Name\",\r\n accessor: \"ClientName\",\r\n },\r\n {\r\n Header: \"Real Time Interval In Minute\",\r\n accessor: \"RealTimeIntervalInMinute\",\r\n },\r\n {\r\n Header: \"Priority Interval In Minute\",\r\n accessor: \"PriorityIntervalInMinute\",\r\n },\r\n {\r\n Header: \"Last Real Time Run Date\",\r\n accessor: \"LastRealTimeRunDate\",\r\n type: GridColumnType.DateTime,\r\n ColumnType: GridColumnType.DateTime,\r\n },\r\n {\r\n Header: \"Last Priority Run Date\",\r\n accessor: \"LastPriorityRunDate\",\r\n type: GridColumnType.DateTime,\r\n ColumnType: GridColumnType.DateTime,\r\n },\r\n {\r\n Header: \"Insert DateTime\",\r\n accessor: \"InsertDateTime\",\r\n type: GridColumnType.DateTime,\r\n ColumnType: GridColumnType.DateTime,\r\n },\r\n {\r\n Header: \"Insert User\",\r\n accessor: \"InsertUser\",\r\n },\r\n {\r\n Header: \"Update DateTime\",\r\n accessor: \"UpdateDateTime\",\r\n type: GridColumnType.DateTime,\r\n ColumnType: GridColumnType.DateTime,\r\n },\r\n {\r\n Header: \"Update User\",\r\n accessor: \"UpdateUser\",\r\n },\r\n ];\r\n }\r\n\r\n componentDidMount() {\r\n this.props.setAppLeftTitle(\"Client High Api Profile Definition\");\r\n this.props.setAppCenterTitle(\"SYSTEM ADMIN\");\r\n }\r\n\r\n HandleChange = (name, newValue, data) => {\r\n const model = { ...this.state.model };\r\n model[name] = newValue;\r\n this.setState({ model });\r\n };\r\n\r\n HandleClear = () => {\r\n this.setState({\r\n model: { ...this.initialModel },\r\n vModel: {},\r\n isEdit: false,\r\n index: -1,\r\n });\r\n };\r\n\r\n HandleSearch = () => {\r\n this.setState({ isLoading: true });\r\n Proxy.POST(\r\n \"/bankapi/v1.0/Bank/GetClientHighApiProfileList\",\r\n this.state.model,\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n if (!responseData.IsSucceeded) {\r\n this.props.showMessage(\r\n \"error\",\r\n \"Error\",\r\n responseData.ErrorDescription\r\n );\r\n return;\r\n }\r\n if (responseData.Item !== null) {\r\n this.setState({ list: responseData.Item });\r\n }\r\n },\r\n (error) => {\r\n this.setState({ isLoading: false });\r\n this.props.showMessage(\"error\", \"Error\", error);\r\n }\r\n );\r\n };\r\n\r\n HandleInsertOrUpdate = (operationType) => {\r\n if (!this.IsValid(operationType)) return;\r\n\r\n const model = { ...this.state.model };\r\n model.OperationType = operationType;\r\n this.setState({ isLoading: true });\r\n Proxy.POST(\r\n \"/bankapi/v1.0/Bank/InsertOrUpdateClientHighApiProfile\",\r\n model,\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n if (!responseData.IsSucceeded) {\r\n this.props.showMessage(\r\n \"error\",\r\n \"Error\",\r\n responseData.ErrorDescription\r\n );\r\n return;\r\n }\r\n this.props.showMessage(\r\n \"success\",\r\n \"Succeeded\",\r\n \"Operation is successfully!\"\r\n );\r\n this.setState({\r\n model: { ...this.initialModel },\r\n isLoading: false,\r\n index: -1,\r\n });\r\n this.HandleClear();\r\n this.HandleSearch();\r\n },\r\n (error) => {\r\n this.setState({ isLoading: false });\r\n this.props.showMessage(\"error\", \"Error\", error);\r\n }\r\n );\r\n };\r\n\r\n IsValid = (operationType) => {\r\n const { model, vModel } = this.state;\r\n var errorList = [];\r\n const { showValidationErrors } = this.props;\r\n\r\n vModel.UniqueClientId =\r\n model.UniqueClientId == null ||\r\n model.UniqueClientId == \"\" ||\r\n model.UniqueClientId == undefined ||\r\n model.UniqueClientId <= 0;\r\n if (vModel.UniqueClientId) {\r\n errorList.push(\"Client cannot be empty.\");\r\n }\r\n\r\n vModel.RealTimeIntervalInMinute =\r\n model.RealTimeIntervalInMinute == null ||\r\n model.RealTimeIntervalInMinute == undefined ||\r\n model.RealTimeIntervalInMinute <= 0;\r\n if (vModel.RealTimeIntervalInMinute) {\r\n errorList.push(\"Real Time Interval In Minute cannot be empty.\");\r\n }\r\n\r\n vModel.PriorityIntervalInMinute =\r\n model.PriorityIntervalInMinute == null ||\r\n model.PriorityIntervalInMinute == undefined ||\r\n model.PriorityIntervalInMinute <= 0;\r\n if (vModel.PriorityIntervalInMinute) {\r\n errorList.push(\"Priority Interval In Minute cannot be empty.\");\r\n }\r\n\r\n if (errorList.length > 0) {\r\n showValidationErrors(errorList);\r\n return false;\r\n }\r\n return true;\r\n };\r\n\r\n RowSelected = (index) => {\r\n let { list } = this.state;\r\n const tempModel = list[index];\r\n if (list[index].CardRequestId) {\r\n tempModel.Id = list[index].Id;\r\n }\r\n this.setState({ isEdit: true, model: tempModel, index });\r\n };\r\n\r\n render() {\r\n const { Disabled, showConfirmMessageInDelete, ExecuteApiPost } = this.props;\r\n const { alert, model, list, isLoading, index, vModel } = this.state;\r\n\r\n return (\r\n
\r\n \r\n\r\n {alert}\r\n 0,\r\n OnClick: () => this.HandleInsertOrUpdate(\"Insert\"),\r\n },\r\n {\r\n Code: \"Update\",\r\n Disabled: Disabled || model.Id === 0,\r\n OnClick: () => this.HandleInsertOrUpdate(\"Update\"),\r\n },\r\n {\r\n Code: \"Delete\",\r\n Disabled: Disabled || model.Id === 0,\r\n OnClick: () =>\r\n showConfirmMessageInDelete(() =>\r\n ExecuteApiPost(\r\n \"/bankapi/v1.0/Bank/InsertOrUpdateClientHighApiProfile\",\r\n { Id: model.Id, OperationType: \"Delete\" },\r\n null,\r\n null,\r\n null,\r\n [this.HandleClear, this.HandleSearch],\r\n true\r\n )\r\n ),\r\n },\r\n ]}\r\n menuId={this.props.menuId}\r\n ApprovalData={this.props.ApprovalData}\r\n After={this.props.After}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n `${d.UniqueClientId} - ${d.Name}`}\r\n Value={model.UniqueClientId || \"\"}\r\n ValueChanged={this.HandleChange}\r\n CanClear\r\n All\r\n Disabled={ClientHelper.IsClient()}\r\n DefaultIndex={ClientHelper.IsClient() ? 0 : -1}\r\n IsInvalid={vModel.UniqueClientId}\r\n Required\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\nClientHighApiProfileDefinition.propTypes = {\r\n classes: PropTypes.object.isRequired,\r\n Disabled: PropTypes.bool,\r\n};\r\n\r\nexport default withArtifex(ClientHighApiProfileDefinition, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTextInput, GenericCheckInput, GenericMultipleSelectInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { ProgramCodes, GridColumnType } from \"views/Constants/Constant.js\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\n\r\nclass ClientWebhookProfileDefinition extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: null\r\n\t\t};\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Active\",\r\n\t\t\t\taccessor: \"IsActive\",\r\n\t\t\t\ttype: GridColumnType.YesNo,\r\n\t\t\t\tColumnType: GridColumnType.YesNo\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Webhook Type\",\r\n\t\t\t\taccessor: \"WebHookType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Webhook Url\",\r\n\t\t\t\taccessor: \"WebHookUrl\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Webhook Api Path\",\r\n\t\t\t\taccessor: \"WebHookApiPath\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Api Key\",\r\n\t\t\t\taccessor: \"EncryptedApiKey\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Api Key Name\",\r\n\t\t\t\taccessor: \"ApiKeyName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Redis Active\",\r\n\t\t\t\taccessor: \"IsRedisActive\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{row.original.IsRedisActive ? \"Yes\" : \"No\"}\r\n\t\t\t\t\t
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Insert DateTime\",\r\n\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tColumnType: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Insert User\",\r\n\t\t\t\taccessor: \"InsertUser\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Update DateTime\",\r\n\t\t\t\taccessor: \"UpdateDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tColumnType: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Update User\",\r\n\t\t\t\taccessor: \"UpdateUser\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.state = {\r\n\t\t\tlist: [],\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tisLoading: false,\r\n\t\t\tvModel: {},\r\n\t\t\tIsInsertOp: false,\r\n\t\t\tGroupTypeList: []\r\n\t\t};\r\n\r\n\t\tthis.maxLength1 = { maxLength: 1 };\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Generate Client Webhook Profile\");\r\n\t\tthis.props.setAppCenterTitle(\"SYSTEM ADMIN\");\r\n\t}\r\n\r\n\tparameterSearch = async (groupTypeCode, groupDetailTypeCode) => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tthis.handleChange(\"GroupDetailTypeId\",{},{});\r\n\t\tthis.setState({GroupTypes: []});\r\n\t\tvar responseData = await ExecuteApiPost(\"/coreapi/v1.0/Parameter/GetWebHookGroupParameterList\",\r\n\t\t { GroupTypeCode: groupTypeCode, GroupDetailTypeCode: groupDetailTypeCode });\r\n\r\n\t\tthis.setState({ GroupTypes: responseData, GroupTypeList: [] });\r\n\t}\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\t\r\n\t\tmodel[name] = newValue;\r\n\t\tif(name === \"WebHookTypeId\"){\r\n\t\t\tif(data.ParameterValue2 === \"Y\"){\r\n\t\t\t\tmodel[\"IsGroupTypeActive\"] = true;\r\n\t\t\t\tthis.parameterSearch(data.ParameterValue3, data.ParameterValue4);\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tmodel[\"IsGroupTypeActive\"] = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(name===\"GroupDetailTypeId\"){\r\n\t\t\tlet groupList = [];\r\n\t\t\tif(data.action == \"select-option\"){\r\n\t\t\t\tthis.state.GroupTypeList.push(data.option.value);\r\n\t\t\t\tgroupList = this.state.GroupTypeList;\r\n\t\t\t}\r\n\t\t\telse if(data.action == \"set-value\"){\r\n\t\t\t\tgroupList = newValue.map((x) => x.value);\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tif(data.length > 0){\r\n\t\t\t\t groupList = this.state.GroupTypeList.filter(item => item !== data.option.value);\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tgroupList = [];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tthis.setState({ GroupTypeList: groupList });\r\n\t\t\tmodel[name] = groupList;\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\thandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, vModel: {}, index: -1, IsInsertOp: false });\r\n\t};\r\n\r\n\tIsValid = (operationType) => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tvar errorList = [];\r\n\t\tconst { showValidationErrors } = this.props;\r\n\r\n\t\tvModel.UniqueClientId = model.UniqueClientId == null || model.UniqueClientId == \"\";\r\n\t\tif (vModel.UniqueClientId) {\r\n\t\t\terrorList.push(\"Client cannot be empty.\");\r\n\t\t}\r\n\r\n\t\tvModel.WebHookTypeId = model.WebHookTypeId == null || model.WebHookTypeId == \"\";\r\n\t\tif (vModel.WebHookTypeId) {\r\n\t\t\terrorList.push(\"Webhook Type cannot be empty.\");\r\n\t\t}\r\n\r\n\t\tvModel.WebHookUrl = model.WebHookUrl == null || model.WebHookUrl == \"\";\r\n\t\tif (!model.WebHookUrl) {\r\n\t\t\terrorList.push(\"Webhook Url cannot be empty.\");\r\n\t\t}\r\n\r\n\t\tvModel.WebHookApiPath = model.WebHookApiPath == null || model.WebHookApiPath == \"\";\r\n\t\tif (vModel.WebHookApiPath) {\r\n\t\t\terrorList.push(\"Webhook Api Path cannot be empty.\");\r\n\t\t}\r\n\r\n\t\tvModel.EncryptedApiKey = (model.EncryptedApiKey == null || model.EncryptedApiKey == \"\") && operationType != \"Insert\";\r\n\t\tif (vModel.EncryptedApiKey) {\r\n\t\t\terrorList.push(\"Api Key cannot be empty.\");\r\n\t\t}\r\n\r\n\t\tif (errorList.length > 0) {\r\n\t\t\tshowValidationErrors(errorList);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\r\n\t\tconst model = { ...this.state.model };\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Bank/GetAllClientWebHookProfile\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tmodel,\r\n\t\t\t\t\t\tlist: responseData.Item,\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\tHandleInsertOrUpdate = (operationType) => {\r\n\r\n\t\tif (!this.IsValid(operationType))\r\n\t\t\treturn;\r\n\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel.OperationType = operationType;\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Bank/InsertOrUpdateClientWebHookProfile\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Succeeded\", \"Operation is successfully!\");\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tmodel: { ...this.initialModel },\r\n\t\t\t\t\tisLoading: false,\r\n\t\t\t\t\tindex: -1\r\n\t\t\t\t});\r\n\t\t\t\tthis.handleClear();\r\n\t\t\t\tthis.HandleSearch();\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\tRowSelected = (index) => {\r\n\t\tlet { model, list } = this.state;\r\n\t\tmodel = list[index];\r\n\r\n\t\tif(model.GroupTypeCode != null && model.GroupTypeDetailCode != null){\r\n\t\t\tthis.parameterSearch(model.GroupTypeCode,model.GroupTypeDetailCode);\r\n\t\t}\r\n\t\t\r\n\t\tthis.setState({ model, index, IsInsertOp: true});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled, showConfirmMessageInDelete, ExecuteApiPost } = this.props;\r\n\t\tconst { alert, model, list, isLoading, index, vModel, IsInsertOp } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t 0,\r\n\t\t\t\t\t\t\tOnClick: this.HandleSearch\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Submit\",\r\n\t\t\t\t\t\t\tDisabled: Disabled || model.Id > 0,\r\n\t\t\t\t\t\t\tOnClick: () => this.HandleInsertOrUpdate(\"Insert\")\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Update\",\r\n\t\t\t\t\t\t\tDisabled: Disabled || model.Id === 0,\r\n\t\t\t\t\t\t\tOnClick: () => this.HandleInsertOrUpdate(\"Update\")\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Delete\",\r\n\t\t\t\t\t\t\tDisabled: Disabled || model.Id === 0,\r\n\t\t\t\t\t\t\tOnClick: () => showConfirmMessageInDelete(() => ExecuteApiPost(\"/bankapi/v1.0/Bank/InsertOrUpdateClientWebHookProfile\", { Id: model.Id, OperationType: \"Delete\" }, null, null, null, [this.handleClear, this.HandleSearch], true))\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Clear\",\r\n\t\t\t\t\t\t\tDisabled: Disabled,\r\n\t\t\t\t\t\t\tOnClick: this.handleClear\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After}\r\n\t\t\t\t/>\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={ClientHelper.IsClient()}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDefaultIndex={ClientHelper.IsClient() ? 0 : -1}\r\n\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.UniqueClientId}\r\n\t\t\t\t\t\t\t\t\t\t\t\tRequired />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{IsInsertOp &&\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{model.IsGroupTypeActive &&\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t `${d.ParameterDesc}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHandleChange={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tStaticData={this.state.GroupTypes}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nClientWebhookProfileDefinition.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(ClientWebhookProfileDefinition, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTextInput, GenericCheckInput, GenericCardMedia } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { ProgramCodes, GridColumnType, CrudType, FileCode, FileType } from \"views/Constants/Constant.js\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport ImageHelper from \"core/ImageHelper\";\r\nimport FileHelper from \"core/FileHelper\";\r\nimport { withStyles } from \"@material-ui/core\";\r\nimport iframeKeyDefinitionStyle from \"assets/jss/material-dashboard-pro-react/views/iframeKeyDefinitionStyle.jsx\";\r\n\r\n\r\nconst LogoHere = require(\"assets/img/logo.png\");\r\nclass IframeKeyDefinition extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: null,\r\n\t\t\tphotoBase64: null,\r\n\t\t};\r\n\r\n\t\tthis.fileInputRef1 = React.createRef();\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Active\",\r\n\t\t\t\taccessor: \"IsActive\",\r\n\t\t\t\ttype: GridColumnType.YesNo,\r\n\t\t\t\tColumnType: GridColumnType.YesNo\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Tracking Id\",\r\n\t\t\t\taccessor: \"EncryptedApiKey\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Insert DateTime\",\r\n\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tColumnType: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Insert User\",\r\n\t\t\t\taccessor: \"InsertUser\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Update DateTime\",\r\n\t\t\t\taccessor: \"UpdateDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tColumnType: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Update User\",\r\n\t\t\t\taccessor: \"UpdateUser\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.state = {\r\n\t\t\tlist: [],\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tisLoading: false,\r\n\t\t\tvModel: {},\r\n\t\t\tIsInsertOp: false\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Iframe Key Definition\");\r\n\t\tthis.props.setAppCenterTitle(\"SYSTEM ADMIN\");\r\n\t}\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\thandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, vModel: {}, index: -1, IsInsertOp: false, photoBase64: null });\r\n\t};\r\n\r\n\tIsValid = (operationType) => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tvar errorList = [];\r\n\t\tconst { showValidationErrors } = this.props;\r\n\r\n\t\tvModel.UniqueClientId = model.UniqueClientId == null || model.UniqueClientId == \"\";\r\n\t\tif (vModel.UniqueClientId) {\r\n\t\t\terrorList.push(\"Client cannot be empty.\");\r\n\t\t}\r\n\r\n\t\tvModel.EncryptedApiKey = (model.EncryptedApiKey == null || model.EncryptedApiKey == \"\") && operationType != \"Insert\";\r\n\t\tif (vModel.EncryptedApiKey) {\r\n\t\t\terrorList.push(\"Api Key cannot be empty.\");\r\n\t\t}\r\n\r\n\t\tif (errorList.length > 0) {\r\n\t\t\tshowValidationErrors(errorList);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\r\n\t\tconst model = { ...this.state.model };\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/VisaDirect/SearchIframeApiKeyList\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tmodel,\r\n\t\t\t\t\t\tlist: responseData.Item,\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\tHandleInsertOrUpdate = (operationType) => {\r\n\r\n\t\tif (!this.IsValid(operationType))\r\n\t\t\treturn;\r\n\r\n\t\tconst { photoBase64 } = this.state;\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tmodel.OperationType = operationType;\r\n\t\tmodel.Base64Logo = photoBase64;\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/VisaDirect/InsertOrUpdateIframeApiKey\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Succeeded\", \"Operation is successfully!\");\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tmodel: { ...this.initialModel },\r\n\t\t\t\t\tisLoading: false,\r\n\t\t\t\t\tindex: -1\r\n\t\t\t\t});\r\n\t\t\t\tthis.handleClear();\r\n\t\t\t\tthis.HandleSearch();\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\tRowSelected = (index) => {\r\n\t\tlet { model, list, photoBase64 } = this.state;\r\n\t\tmodel = list[index];\r\n\t\tphotoBase64 = model.Base64Logo;\r\n\r\n\t\tthis.setState({ model, index, IsInsertOp: true, photoBase64 });\r\n\t}\r\n\r\n\tOpenFileSelectDialog = () => {\r\n\t\tthis.fileInputRef1.current.click();\r\n\t}\r\n\r\n\tHandleFileSelect = async (e) => {\r\n\r\n\t\tconst { model } = this.state;\r\n\t\te.preventDefault();\r\n\t\tvar file1 = e.target.files[0];\r\n\t\tif (!file1) return;\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconsole.log(file1);\r\n\r\n\t\tif (((file1.size || 0) / 1024 / 1024) > 10) {\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Photo file size cannot be larger than 10mb\");\r\n\t\t\tthis.setState({ isLoading: false });\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar blob = await ImageHelper.CompressImage(file1);//Start Compression if over 500kb\r\n\t\tvar compressedBase64 = await FileHelper.BlobToBase64(blob);\r\n\t\tvar compressedFile = FileHelper.DataURLtoFile(compressedBase64, file1.name);\r\n\r\n\t\tmodel.TempFileId = model.UserPhotoId || 0;\r\n\t\tmodel.File = compressedFile;\r\n\t\tmodel.FileName = file1.name;\r\n\t\tmodel.FileSelect = true;\r\n\r\n\t\tthis.setState({ photoBase64: compressedBase64, isLoading: false });\r\n\t}\r\n\r\n\thandleRotateImage = async () => {\r\n\t\tconst { photoBase64, model } = this.state;\r\n\t\tif (!photoBase64) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tvar imageBase64 = ImageHelper.GenerateImageFromRawBase64(photoBase64);\r\n\t\tvar rotatedBase64 = await ImageHelper.Rotate(imageBase64, 90);\r\n\t\tvar rotatedFile = FileHelper.DataURLtoFile(rotatedBase64, model.FileName);\r\n\t\tmodel.File = rotatedFile;\r\n\t\tthis.setState({ photoBase64: rotatedBase64, model, isLoading: false });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled, showConfirmMessageInDelete, ExecuteApiPost, classes } = this.props;\r\n\t\tconst { alert, model, list, isLoading, index, vModel, IsInsertOp, photoBase64 } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t 0,\r\n\t\t\t\t\t\t\tOnClick: this.HandleSearch\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Submit\",\r\n\t\t\t\t\t\t\tDisabled: Disabled || model.Id > 0,\r\n\t\t\t\t\t\t\tOnClick: () => this.HandleInsertOrUpdate(\"Insert\")\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Update\",\r\n\t\t\t\t\t\t\tDisabled: Disabled || model.Id === 0,\r\n\t\t\t\t\t\t\tOnClick: () => this.HandleInsertOrUpdate(\"Update\")\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Delete\",\r\n\t\t\t\t\t\t\tDisabled: Disabled || model.Id === 0,\r\n\t\t\t\t\t\t\tOnClick: () => this.HandleInsertOrUpdate(\"Delete\")\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Clear\",\r\n\t\t\t\t\t\t\tDisabled: Disabled,\r\n\t\t\t\t\t\t\tOnClick: this.handleClear\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After}\r\n\t\t\t\t/>\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={ClientHelper.IsClient()}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tDefaultIndex={ClientHelper.IsClient() ? 0 : -1}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.UniqueClientId}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tRequired />\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tSelect Photo\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nIframeKeyDefinition.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withStyles(iframeKeyDefinitionStyle)(IframeKeyDefinition);","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericDateInput, GenericTitle, GenericCheckInput, GenericSelectInput } from \"views/Components/Generic\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport moment from \"moment\";\r\nimport { ProgramCodes, BankingAccountTypes, ClientType, MenuCodes } from \"views/Constants/Constant.js\";\r\nimport { Proxy } from \"core\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Formatter from \"core/Formatter\";\r\n\r\nclass AccountActivityReport extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\taccessor: \"SendDate\",\r\n\t\t\t\twidth: 200,\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Receiver Address\",\r\n\t\t\t\taccessor: \"PayeeEmail\",\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reference Number\",\r\n\t\t\t\taccessor: \"ReferenceNumber\",\r\n\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"ACX SYS Ref Num\",\r\n\t\t\t\taccessor: \"TransferReferenceNumber\",\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"Amount\",\r\n\t\t\t}\r\n\t\t];\r\n\t\tthis.columns1 = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\twidth: 200,\r\n\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"Received / Sent\",\r\n\t\t\t\taccessor: \"TransactionType\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Number\",\r\n\t\t\t\taccessor: \"AccountNumber\",\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reference Number\",\r\n\t\t\t\taccessor: \"ReferenceNumber\",\r\n\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"ACX SYS Ref Num\",\r\n\t\t\t\taccessor: \"TransferReferenceNumber\",\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"Amount\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer/Contact Name\",\r\n\t\t\t\taccessor: \"CustomerContactName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"SenderName\",\r\n\t\t\t\taccessor: \"SenderName\",\r\n\t\t\t}\r\n\t\t];\r\n\t\tthis.state = { model: {}, isLoading: false, checkedAccounts: [], ClientTypeParameter: {} };\r\n\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"BANKING\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle && this.props.MenuCode === MenuCodes.Menu_MyAccountActivityReport) {\r\n\t\t\tsetAppLeftTitle(\"My Account Activity Report\");\r\n\t\t} else {\r\n\t\t\tif (setAppLeftTitle) setAppLeftTitle(\"e-Transfer Activity Report\");\r\n\r\n\t\t}\r\n\r\n\t\tthis.GetCustomerBankAccounts();\r\n\t\tthis.GetClientType();\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\r\n\t\tif (name == \"CheckAllAccounts\" && value == true) {\r\n\t\t\tconst list = this.state.customerAccountList;\r\n\t\t\tthis.setState({ checkedAccounts: list });\r\n\t\t} else if (name == \"CheckAllAccounts\" && value == false) {\r\n\t\t\tthis.setState({ checkedAccounts: [] });\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\t}\r\n\tHandleCheckCustomerAccounts = (e, x) => {\r\n\r\n\t\tconst { checkedAccounts } = this.state;\r\n\t\tvar temp = true;\r\n\r\n\t\tconst items = checkedAccounts.map((item, key) => {\r\n\t\t\tif (item.Id == x.Id) {\r\n\t\t\t\tcheckedAccounts.splice(key, 1);\r\n\t\t\t\ttemp = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t);\r\n\r\n\t\tif (checkedAccounts.length == 0 && temp) { checkedAccounts.push(x); }\r\n\t\telse if (temp) { checkedAccounts.push(x); }\r\n\r\n\t\tthis.setState({ checkedAccounts });\r\n\r\n\t}\r\n\tGetCustomerBankAccounts = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Account/CustomerAccountsForBankingPortal\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error !\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ customerAccountList: responseData.Item || [] });\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tRenderAccountTypeParameter = (data) => {\r\n\t\tconst parameter = { ...this.state.ClientTypeParameter };\r\n\t\tif (data == null) {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t\tif (data.AccountCode == null || data.AccountCode == \"\") {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\t\tif (data.AccountCode != BankingAccountTypes.PrimaryAccount) {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\t\tif (data.ProgramCode == null || data.ProgramCode == \"\") {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\t\tif (data.ProgramCode != ProgramCodes.Bank_Programs_Bank_Account) {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\r\n\t\tif (parameter.ParameterValue == ClientType.Corporate || parameter.ParameterValue == ClientType.SalesAgentCorporate) {\r\n\t\t\treturn \"Corporate Account\";\r\n\t\t} else if (parameter.ParameterValue == ClientType.Personal || parameter.ParameterValue == ClientType.SalesAgentPersonal) {\r\n\t\t\treturn \"Individual Account\";\r\n\t\t} else {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\r\n\t}\r\n\tGetClientType = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/BankCustomer/GetClientType\",\r\n\t\t\t{},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ ClientTypeParameter: responseData.Item });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tSearch = async () => {\r\n\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tconst model = { ...this.state.model };\r\n\t\tvar ids = [];\r\n\t\tthis.state.checkedAccounts.forEach(element => {\r\n\t\t\tids.push(element.Id);\r\n\t\t\tif (element.SubAccountList != null) {\r\n\t\t\t\telement.SubAccountList.forEach(x => {\r\n\t\t\t\t\tids.push(x);\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t});\r\n\t\tmodel.AccountIds = ids;\r\n\r\n\t\tif (this.props.MenuCode === MenuCodes.Menu_MyAccountActivityReport) {\r\n\t\t\tvar result = await ExecuteApiPost(\"/bankapi/v1.0/Reporting/MyAccountTrxReportList\", model, null, null, null);\r\n\t\t\tif (result != null) {\r\n\t\t\t\tthis.setState({ list: result.MyAccountTrxResponseReportList || [] });\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tvar result1 = await ExecuteApiPost(\"/bankapi/v1.0/Reporting/AccountActivityReportList\", model, null, null, null);\r\n\t\t\tif (result1 != null) {\r\n\t\t\t\tthis.setState({ list: result1.AccountActivityResponseReportList || [] });\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, list: [], selected: null, checkedAccounts: [] });\r\n\t}\r\n\r\n\tPrint = () => {\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst temp = { ...this.state.model };\r\n\r\n\t\tvar ids = [];\r\n\t\tthis.state.checkedAccounts.forEach(element => {\r\n\t\t\tids.push(element.Id);\r\n\t\t\tif (element.SubAccountList != null) {\r\n\t\t\t\telement.SubAccountList.forEach(x => {\r\n\t\t\t\t\tids.push(x);\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t});\r\n\t\ttemp.AccountIds = ids;\r\n\t\tvar tempurl = \"\";\r\n\t\tif (this.props.MenuCode === MenuCodes.Menu_MyAccountActivityReport) tempurl = \"/bankapi/v1.0/Reporting/MyAccountTrxReportPdf\";\r\n\t\telse tempurl = \"/bankapi/v1.0/Reporting/AccountActivityReportPdf\";\r\n\r\n\t\tProxy.DownloadGeneratedFile(\r\n\t\t\ttempurl,\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t},\r\n\t\t\tthis.props.showMessage\r\n\t\t);\r\n\t}\r\n\tValidate = () => {\r\n\t\tvar { model, checkedAccounts } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errors = [];\r\n\r\n\r\n\t\tif (!model.MonthlyFilter && typeof model.FromDate != \"object\" && model.FromDate != \"\" && !model.FromDate) {\r\n\t\t\terrors.push(\"From Date is invalid\");\r\n\t\t}\r\n\r\n\t\tif (!model.MonthlyFilter && typeof model.ToDate != \"object\" && model.ToDate != \"\" && !model.ToDate) {\r\n\t\t\terrors.push(\"To Date is invalid\");\r\n\t\t}\r\n\r\n\t\tif (!model.MonthlyFilter && (typeof model.FromDate == \"object\" && typeof model.ToDate == \"object\") && model.ToDate < model.FromDate) {\r\n\t\t\terrors.push(\"From Date cannot be greater than To Date!\");\r\n\t\t}\r\n\r\n\t\tif (!model.MonthlyFilter && (typeof model.FromDate == \"object\" && typeof model.ToDate == \"object\") && model.ToDate < model.FromDate) {\r\n\t\t\terrors.push(\"From Date cannot be bigger than To Date\");\r\n\t\t}\r\n\r\n\t\tif (checkedAccounts.length == 0 || checkedAccounts.length > 1) {\r\n\t\t\terrors.push(\"There must be only one selected account.\");\r\n\t\t}\r\n\r\n\t\tif (!model.MonthlyFilter && (typeof model.FromDate == \"object\" && typeof model.ToDate == \"object\")) {\r\n\t\t\tvar interval = moment.duration(model.ToDate.diff(model.FromDate)).asDays();\r\n\t\t\tif (interval > 30) {\r\n\t\t\t\terrors.push(\"Between two dates cannot be longer than 30 days!\");\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (model.MonthlyFilter) {\r\n\t\t\tif (model.MonthlyFilterMonth == undefined || model.MonthlyFilterMonth == null) {\r\n\t\t\t\terrors.push(\"Month must be select!\");\r\n\t\t\t}\r\n\t\t\tif (model.MonthlyFilterYear == undefined || model.MonthlyFilterYear == null) {\r\n\t\t\t\terrors.push(\"Year must be select!\");\r\n\t\t\t}\r\n\t\t\tmodel[\"IsMonthlyFilterMonth\"] = !model.MonthlyFilterMonth;\r\n\t\t\tmodel[\"IsMonthlyFilterYear\"] = !model.MonthlyFilterMonth;\r\n\t\t} else {\r\n\r\n\t\t\tmodel[\"IsToDate\"] = !model.ToDate;\r\n\t\t\tmodel[\"IsFromDate\"] = !model.FromDate;\r\n\t\t}\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\trender() {\r\n\t\tconst { model, list, checkedAccounts, customerAccountList } = this.state;\r\n\t\tconst { Disabled, } = this.props;\r\n\t\tlet IsMyAccountTrxReportList = this.props.MenuCode === MenuCodes.Menu_MyAccountActivityReport;\r\n\r\n\t\tvar endDate = (model.FromDate instanceof moment) ? model.FromDate.clone() : \"\";\r\n\t\tvar GridDataAccounts = customerAccountList == null ? [] : customerAccountList.map(d => {\r\n\t\t\treturn {\r\n\t\t\t\tAP: (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t c.Id == d.Id).length > 0}\r\n\t\t\t\t\t\t\tValueChanged={(e) => {\r\n\t\t\t\t\t\t\t\tthis.HandleCheckCustomerAccounts(e, d);\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tId: d.Id,\r\n\t\t\t\tProgramId: d.ProgramId,\r\n\t\t\t\tCustomerBankAccountId: d.CustomerBankAccountId,\r\n\t\t\t\tAccountShortName: d.AccountShortName,\r\n\t\t\t\tBankAccountId: d.BankAccountId,\r\n\t\t\t\tUniqueClientId: d.UniqueClientId,\r\n\t\t\t\tBalance: d.Balance,\r\n\t\t\t\tAccountName: d.AccountName,\r\n\t\t\t\tPendingBalance: d.PendingBalance,\r\n\t\t\t\tAccountNumber: d.AccountNumber,\r\n\t\t\t\tAccountNumberStr: d.AccountNumberStr,\r\n\t\t\t\tBranchNumber: d.BranchNumber,\r\n\t\t\t\tBankNumber: d.BankNumber,\r\n\t\t\t\tAccountTypeId: d.AccountTypeId,\r\n\t\t\t\tAccountType: d.AccountType,\r\n\t\t\t\tAccountType4: d.AccountType4,\r\n\t\t\t\tAccountType6: d.AccountType6,\r\n\t\t\t\tAccountCode: d.AccountCode,\r\n\t\t\t\tProgramCode: d.ProgramCode,\r\n\t\t\t\tProgramName: d.ProgramName,\r\n\t\t\t\tCurrencyCode: d.CurrencyCode,\r\n\t\t\t\tCurrencyDesc: d.CurrencyDesc,\r\n\t\t\t\tCurrencySymbol: d.CurrencySymbol,\r\n\t\t\t\tAmountDisplay: d.AmountDisplay\r\n\t\t\t};\r\n\t\t});\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t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r\n\t\t\t\t\t\t\t\t\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tTotal{\" \"} {customerAccountList == null ? 0 : customerAccountList.length}{\" \"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Program Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ProgramName\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Account Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"AccountNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Currency\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"CurrencyCode\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Balance\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Balance\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{Formatter.FormatMoneySpecial(row.original.CurrencySymbol, row.value)}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Pending Balance\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"PendingBalance\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{Formatter.FormatMoneySpecial(row.original.CurrencySymbol, row.value)}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_Bank_Account} />\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nAccountActivityReport.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default AccountActivityReport;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericDateInput, GenericTitle, GenericCheckInput, GenericSelectInput } from \"views/Components/Generic\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport moment from \"moment\";\r\nimport { ProgramCodes, BankingAccountTypes, ClientType, MenuCodes } from \"views/Constants/Constant.js\";\r\nimport { Proxy } from \"core\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Formatter from \"core/Formatter\";\r\n\r\nclass AccountStatementReport extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\taccessor: \"TransactionDate\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reference Number\",\r\n\t\t\t\taccessor: \"ReferenceNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Type\",\r\n\t\t\t\taccessor: \"TransactionType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Channel Name\",\r\n\t\t\t\taccessor: \"ChannelName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"Amount\"\r\n\t\t\t}, \r\n\t\t\t{\r\n\t\t\t\tHeader: \"Balance\",\r\n\t\t\t\taccessor: \"RemainingBalance\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Name\",\r\n\t\t\t\taccessor: \"SenderName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"CA Ref. No.\",\r\n\t\t\t\taccessor: \"CARefNo\"\r\n\t\t\t}\r\n\t\t];\r\n\t\tthis.state = { model: {}, isLoading: false, checkedAccounts: [], ClientTypeParameter: {} };\r\n\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tsetAppCenterTitle(\"BANKING\");\r\n\t\tsetAppLeftTitle(\"Account Statement Report\");\r\n\r\n\t\tthis.GetCustomerBankAccounts();\r\n\t\tthis.GetClientType();\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\r\n\t\tif (name == \"CheckAllAccounts\" && value == true) {\r\n\t\t\tconst list = this.state.customerAccountList;\r\n\t\t\tthis.setState({ checkedAccounts: list });\r\n\t\t} else if (name == \"CheckAllAccounts\" && value == false) {\r\n\t\t\tthis.setState({ checkedAccounts: [] });\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\t}\r\n\tHandleCheckCustomerAccounts = (e, x) => {\r\n\r\n\t\tconst { checkedAccounts } = this.state;\r\n\t\tvar temp = true;\r\n\r\n\t\tconst items = checkedAccounts.map((item, key) => {\r\n\t\t\tif (item.Id == x.Id) {\r\n\t\t\t\tcheckedAccounts.splice(key, 1);\r\n\t\t\t\ttemp = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t);\r\n\r\n\t\tif (checkedAccounts.length == 0 && temp) { checkedAccounts.push(x); }\r\n\t\telse if (temp) { checkedAccounts.push(x); }\r\n\r\n\t\tthis.setState({ checkedAccounts });\r\n\r\n\t}\r\n\tGetCustomerBankAccounts = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Account/CustomerAccountsForBankingPortal\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error !\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ customerAccountList: responseData.Item || [] });\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tRenderAccountTypeParameter = (data) => {\r\n\t\tconst parameter = { ...this.state.ClientTypeParameter };\r\n\t\tif (data == null) {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t\tif (data.AccountCode == null || data.AccountCode == \"\") {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\t\tif (data.AccountCode != BankingAccountTypes.PrimaryAccount) {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\t\tif (data.ProgramCode == null || data.ProgramCode == \"\") {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\t\tif (data.ProgramCode != ProgramCodes.Bank_Programs_Bank_Account) {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\r\n\t\tif (parameter.ParameterValue == ClientType.Corporate || parameter.ParameterValue == ClientType.SalesAgentCorporate) {\r\n\t\t\treturn \"Corporate Account\";\r\n\t\t} else if (parameter.ParameterValue == ClientType.Personal || parameter.ParameterValue == ClientType.SalesAgentPersonal) {\r\n\t\t\treturn \"Individual Account\";\r\n\t\t} else {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\r\n\t}\r\n\tGetClientType = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/BankCustomer/GetClientType\",\r\n\t\t\t{},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ ClientTypeParameter: responseData.Item });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tSearch = async () => {\r\n\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tconst model = { ...this.state.model };\r\n\t\tvar ids = [];\r\n\t\tthis.state.checkedAccounts.forEach(element => {\r\n\t\t\tids.push(element.Id);\r\n\t\t\tif (element.SubAccountList != null) {\r\n\t\t\t\telement.SubAccountList.forEach(x => {\r\n\t\t\t\t\tids.push(x);\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t});\r\n\t\tmodel.AccountIds = ids;\r\n\r\n\t\tvar result = await ExecuteApiPost(\"/bankapi/v1.0/Reporting/StatementAccountTrxReportList\", model, null, null, null);\r\n\t\tif (result != null) {\r\n\t\t\tthis.setState({ list: result.StatementAccountTrxResponseReportList || [] });\r\n\t\t}\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, list: [], selected: null, checkedAccounts: [] });\r\n\t}\r\n\r\n\tPrint = () => {\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst temp = { ...this.state.model };\r\n\r\n\t\tvar ids = [];\r\n\t\tthis.state.checkedAccounts.forEach(element => {\r\n\t\t\tids.push(element.Id);\r\n\t\t\tif (element.SubAccountList != null) {\r\n\t\t\t\telement.SubAccountList.forEach(x => {\r\n\t\t\t\t\tids.push(x);\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t});\r\n\t\ttemp.AccountIds = ids;\r\n\t\tvar tempurl = \"/bankapi/v1.0/Reporting/StatementAccountTrxReportPdf\";\r\n\r\n\t\tProxy.DownloadGeneratedFile(\r\n\t\t\ttempurl,\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t},\r\n\t\t\tthis.props.showMessage\r\n\t\t);\r\n\t}\r\n\tValidate = () => {\r\n\t\tvar { model, checkedAccounts } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errors = [];\r\n\r\n\r\n\t\tif (!model.MonthlyFilter && typeof model.FromDate != \"object\" && model.FromDate != \"\" && !model.FromDate) {\r\n\t\t\terrors.push(\"From Date is invalid\");\r\n\t\t}\r\n\r\n\t\tif (!model.MonthlyFilter && typeof model.ToDate != \"object\" && model.ToDate != \"\" && !model.ToDate) {\r\n\t\t\terrors.push(\"To Date is invalid\");\r\n\t\t}\r\n\r\n\t\tif (!model.MonthlyFilter && (typeof model.FromDate == \"object\" && typeof model.ToDate == \"object\") && model.ToDate < model.FromDate) {\r\n\t\t\terrors.push(\"From Date cannot be greater than To Date!\");\r\n\t\t}\r\n\r\n\t\tif (!model.MonthlyFilter && (typeof model.FromDate == \"object\" && typeof model.ToDate == \"object\") && model.ToDate < model.FromDate) {\r\n\t\t\terrors.push(\"From Date cannot be bigger than To Date\");\r\n\t\t}\r\n\r\n\t\tif (checkedAccounts.length == 0 || checkedAccounts.length > 1) {\r\n\t\t\terrors.push(\"There must be only one selected account.\");\r\n\t\t}\r\n\r\n\t\tif (!model.MonthlyFilter && (typeof model.FromDate == \"object\" && typeof model.ToDate == \"object\")) {\r\n\t\t\tvar interval = moment.duration(model.ToDate.diff(model.FromDate)).asDays();\r\n\t\t\tif (interval > 30) {\r\n\t\t\t\terrors.push(\"Between two dates cannot be longer than 30 days!\");\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (model.MonthlyFilter) {\r\n\t\t\tif (model.MonthlyFilterMonth == undefined || model.MonthlyFilterMonth == null) {\r\n\t\t\t\terrors.push(\"Month must be select!\");\r\n\t\t\t}\r\n\t\t\tif (model.MonthlyFilterYear == undefined || model.MonthlyFilterYear == null) {\r\n\t\t\t\terrors.push(\"Year must be select!\");\r\n\t\t\t}\r\n\t\t\tmodel[\"IsMonthlyFilterMonth\"] = !model.MonthlyFilterMonth;\r\n\t\t\tmodel[\"IsMonthlyFilterYear\"] = !model.MonthlyFilterMonth;\r\n\t\t} else {\r\n\r\n\t\t\tmodel[\"IsToDate\"] = !model.ToDate;\r\n\t\t\tmodel[\"IsFromDate\"] = !model.FromDate;\r\n\t\t}\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\trender() {\r\n\t\tconst { model, list, checkedAccounts, customerAccountList } = this.state;\r\n\t\tconst { Disabled, } = this.props;\r\n\r\n\t\tvar endDate = (model.FromDate instanceof moment) ? model.FromDate.clone() : \"\";\r\n\t\tvar GridDataAccounts = customerAccountList == null ? [] : customerAccountList.map(d => {\r\n\t\t\treturn {\r\n\t\t\t\tAP: (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t c.Id == d.Id).length > 0}\r\n\t\t\t\t\t\t\tValueChanged={(e) => {\r\n\t\t\t\t\t\t\t\tthis.HandleCheckCustomerAccounts(e, d);\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tId: d.Id,\r\n\t\t\t\tProgramId: d.ProgramId,\r\n\t\t\t\tCustomerBankAccountId: d.CustomerBankAccountId,\r\n\t\t\t\tAccountShortName: d.AccountShortName,\r\n\t\t\t\tBankAccountId: d.BankAccountId,\r\n\t\t\t\tUniqueClientId: d.UniqueClientId,\r\n\t\t\t\tBalance: d.Balance,\r\n\t\t\t\tAccountName: d.AccountName,\r\n\t\t\t\tPendingBalance: d.PendingBalance,\r\n\t\t\t\tAccountNumber: d.AccountNumber,\r\n\t\t\t\tAccountNumberStr: d.AccountNumberStr,\r\n\t\t\t\tBranchNumber: d.BranchNumber,\r\n\t\t\t\tBankNumber: d.BankNumber,\r\n\t\t\t\tAccountTypeId: d.AccountTypeId,\r\n\t\t\t\tAccountType: d.AccountType,\r\n\t\t\t\tAccountType4: d.AccountType4,\r\n\t\t\t\tAccountType6: d.AccountType6,\r\n\t\t\t\tAccountCode: d.AccountCode,\r\n\t\t\t\tProgramCode: d.ProgramCode,\r\n\t\t\t\tProgramName: d.ProgramName,\r\n\t\t\t\tCurrencyCode: d.CurrencyCode,\r\n\t\t\t\tCurrencyDesc: d.CurrencyDesc,\r\n\t\t\t\tCurrencySymbol: d.CurrencySymbol,\r\n\t\t\t\tAmountDisplay: d.AmountDisplay\r\n\t\t\t};\r\n\t\t});\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t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ell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{this.RenderAccountTypeParameter(row.original)}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tTotal{\" \"} {customerAccountList == null ? 0 : customerAccountList.length}{\" \"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Program Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ProgramName\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Account Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"AccountNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Currency\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"CurrencyCode\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Balance\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Balance\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{Formatter.FormatMoneySpecial(row.original.CurrencySymbol, row.value)}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Pending Balance\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"PendingBalance\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{Formatter.FormatMoneySpecial(row.original.CurrencySymbol, row.value)}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_Bank_Account} />\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nAccountStatementReport.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default AccountStatementReport;","import withStyles from \"@material-ui/core/styles/withStyles\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ReactTable from \"react-table\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericExpansionPanel, GenericSelectInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nconst styles = ({\r\n});\r\n\r\nclass BankActivity extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {};\r\n\r\n\t\tthis.state = {\r\n\t\t\tlist: [],\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tvModel: {},\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Bank Account Summary Report\");\r\n\t\tthis.props.setAppCenterTitle(\"REPORTS\");\r\n\t}\r\n\r\n\tHandleChange = (name, value) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: this.initialModel, selected: null });\r\n\t}\r\n\r\n\tHandleGetList = () => {\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Reporting/SearchBankActivity\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tconst { model } = this.state;\r\n\t\t\t\t\tmodel.BeginDate = responseData.Item.BeginDate;\r\n\t\t\t\t\tmodel.EndDate = responseData.Item.EndDate;\r\n\t\t\t\t\tthis.setState({ model, list: responseData.Item.TransactionList });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tGetElementValue(obj, path) {\r\n\t\tif (obj == null || path == null)\r\n\t\t\treturn \"\";\r\n\t\treturn [obj].concat(path.split(\".\")).reduce((c, n) => {\r\n\t\t\tif (c) {\r\n\t\t\t\tif (n.toString().includes(\"Percent\")) {\r\n\t\t\t\t\treturn `${c[n].toFixed(1)}%`;\r\n\t\t\t\t} else if (n.toString().includes(\"Amount\")) {\r\n\t\t\t\t\treturn `$${c[n].toFixed(2)}`;\r\n\t\t\t\t}\r\n\t\t\t\treturn c[n];\r\n\t\t\t}\r\n\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tPrint = () => {\r\n\t\tconst { activeIndex, model, list } = this.state;\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tvar keyvalueList = [];\r\n\t\tvar columns = this.GetColumns();\r\n\r\n\t\tif (list.length == 0)\r\n\t\t\treturn;\r\n\r\n\t\tlist.forEach(function (listElement) {\r\n\t\t\tvar keyValueObject = {};\r\n\t\t\tcolumns.forEach(function (gridColumnElement) {\r\n\t\t\t\tvar valueItem = this.GetElementValue(listElement, gridColumnElement.accessor);\r\n\t\t\t\tkeyValueObject[gridColumnElement.accessor] = { value: valueItem, title: gridColumnElement.Header };\r\n\t\t\t}, this);\r\n\t\t\tkeyvalueList.push(keyValueObject);\r\n\t\t}, this);\r\n\r\n\t\tvar format = \"PDF\";\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/report/CreateFileFromData\",\r\n\t\t\t{\r\n\t\t\t\tjsonFile: {\r\n\t\t\t\t\ttitle: \"Bank Activity Report\",\r\n\t\t\t\t\ttable: keyvalueList,\r\n\t\t\t\t\tformat: format,\r\n\t\t\t\t\tmodel: {\r\n\t\t\t\t\t\tDateFilter: { BeginDate: this.state.model.BeginDate, EndDate: this.state.model.EndDate }\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tlet a = document.createElement(\"a\");\r\n\t\t\t\ta.style = \"display: none\";\r\n\t\t\t\tdocument.body.appendChild(a);\r\n\t\t\t\ta.href = \"data:application/octet-stream;base64,\" + responseData.Item.value;\r\n\t\t\t\ta.download = \"BankActivityReport.pdf\";\r\n\t\t\t\ta.click();\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model, activeIndex, vModel } = this.state;\r\n\t\tvar messages = [];\r\n\r\n\t\tif (!model.Top) {\r\n\t\t\tvModel.Top = true;\r\n\t\t\tmessages.push(\"Top Filter must be select\");\r\n\t\t} else {\r\n\t\t\tvModel.Top = false;\r\n\t\t}\r\n\r\n\t\tif (!model.FromDate) {\r\n\t\t\tvModel.FromDate = true;\r\n\t\t\tmessages.push(\"From Date must be select\");\r\n\t\t} else {\r\n\t\t\tvModel.FromDate = false;\r\n\t\t}\r\n\r\n\t\tif (!model.ToDate) {\r\n\t\t\tvModel.ToDate = true;\r\n\t\t\tmessages.push(\"To Date must be select\");\r\n\t\t} else {\r\n\t\t\tvModel.ToDate = false;\r\n\t\t}\r\n\r\n\t\tif (activeIndex == 1 && !model.UniqueClientId) {\r\n\t\t\tvModel.UniqueClientId = true;\r\n\t\t\tmessages.push(\"Client must be select\");\r\n\t\t} else {\r\n\t\t\tvModel.UniqueClientId = false;\r\n\t\t}\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.setState({ vModel });\r\n\t\treturn true;\r\n\t}\r\n\r\n\tSumValues = (...arr) => {\r\n\t\treturn arr.length > 0 ? arr[0].reduce((a, b) => a + b, 0) : 0;\r\n\t}\r\n\r\n\tGetColumns = () => {\r\n\t\tconst { list } = this.state;\r\n\r\n\t\tconst columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Program\",\r\n\t\t\t\taccessor: \"ProgramName\",\r\n\t\t\t\tFooter: (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tTotal Transactions\r\n\t\t\t\t\t\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Debit\",\r\n\t\t\t\taccessor: \"DebitCount\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{Formatter.FormatNumber(row.value)}
\r\n\t\t\t\t),\r\n\t\t\t\tFooter: (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{Formatter.FormatNumber(this.SumValues(list.map(d => d.DebitCount)))}\r\n\t\t\t\t\t\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Credit\",\r\n\t\t\t\taccessor: \"CreditCount\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{Formatter.FormatNumber(row.value)}
\r\n\t\t\t\t),\r\n\t\t\t\tFooter: (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{Formatter.FormatNumber(this.SumValues(list.map(d => d.CreditCount)))}\r\n\t\t\t\t\t\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total\",\r\n\t\t\t\taccessor: \"TotalAmount\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{Formatter.FormatMoney(row.value)}
\r\n\t\t\t\t),\r\n\t\t\t\tFooter: (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{Formatter.FormatMoney(this.SumValues(list.map(d => d.TotalAmount)))}\r\n\t\t\t\t\t\r\n\t\t\t\t)\r\n\t\t\t}\r\n\t\t];\r\n\t\treturn columns;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes, Disabled } = this.props;\r\n\t\tconst { alert, activeIndex, isLoading, model, vModel, list } = this.state;\r\n\t\treturn (\r\n\t\t\t<>\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.UniqueClientId} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nBankActivity.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default withStyles(styles)(BankActivity);","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericDateInput, GenericTitle, GenericCheckInput, GenericSelectInput } from \"views/Components/Generic\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport moment from \"moment\";\r\nimport { ProgramCodes, BankingAccountTypes, ClientType, MenuCodes } from \"views/Constants/Constant.js\";\r\nimport { Proxy } from \"core\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { GridColumnType } from \"views/Constants/Constant.js\";\r\n\r\nclass EftMontlyVolumeReport extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.emptyObject = {};\r\n\t\tthis.sortedName = { Member: \"Name\" };\r\n\r\n\t\tthis.columnsEft = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"UniqueClientId\",\r\n\t\t\t\taccessor: \"UniqueClientId\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Unique Client Name\",\r\n\t\t\t\taccessor: \"UniqueClientName\",\r\n\t\t\t\twidth: 200,\r\n\t\t\t},\t\t\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Regular Transactions\",\r\n\t\t\t\taccessor: \"TotalRegularTransactions\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\t\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Regular Transactions Fee\",\r\n\t\t\t\taccessor: \"TotalRegularTransactionsFee\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\t\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Regular Transactions Count\",\r\n\t\t\t\taccessor: \"TotalRegularTransactionsCount\",\r\n\t\t\t},\t\t\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Priority Transactions\",\r\n\t\t\t\taccessor: \"TotalPriorityTransactions\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Priority Transactions Fee\",\r\n\t\t\t\taccessor: \"TotalPriorityTransactionsFee\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Priority Transactions Count\",\r\n\t\t\t\taccessor: \"PriorityTransactionsCount\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Cancelled Transactions\",\r\n\t\t\t\taccessor: \"TotalCancelledTransactions\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Cancelled Transactions Fee\",\r\n\t\t\t\taccessor: \"TotalCancelledTransactionsFee\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Cancelled Transactions Count\",\r\n\t\t\t\taccessor: \"CancelledTransactionsCount\",\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Rejected Transactions\",\r\n\t\t\t\taccessor: \"TotalRejectedTransactions\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Rejected Transactions Fee\",\r\n\t\t\t\taccessor: \"TotalRejectedTransactionsFee\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Rejected Transactions Count\",\r\n\t\t\t\taccessor: \"RejectedTransactionsCount\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Returned Transactions\",\r\n\t\t\t\taccessor: \"TotalReturnedTransactions\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Returned Transactions Fee\",\r\n\t\t\t\taccessor: \"TotalReturnedTransactionsFee\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Returned Transactions Count\",\r\n\t\t\t\taccessor: \"ReturnedTransactionsCount\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Regular Files Submitted\",\r\n\t\t\t\taccessor: \"TotalRegularFilesSubmitted\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Regular Files Submitted Fee\",\r\n\t\t\t\taccessor: \"TotalRegularFilesSubmittedFee\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Regular Files Submitted Count\",\r\n\t\t\t\taccessor: \"RegularFilesSubmittedCount\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Priority Files Submitted\",\r\n\t\t\t\taccessor: \"TotalPriorityFilesSubmitted\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Priority Files Submitted Fee\",\r\n\t\t\t\taccessor: \"TotalPriorityFilesSubmittedFee\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Priority FilesSubmitted Count\",\r\n\t\t\t\taccessor: \"PriorityFilesSubmittedCount\",\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.columnsBill = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"UniqueClientId\",\r\n\t\t\t\taccessor: \"UniqueClientId\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Unique Client Name\",\r\n\t\t\t\taccessor: \"UniqueClientName\",\r\n\t\t\t\twidth: 200,\r\n\t\t\t},\t\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Transactions\",\r\n\t\t\t\taccessor: \"TotalTransactions\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Transactions Fee\",\r\n\t\t\t\taccessor: \"TotalTransactionsFee\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transactions Count\",\r\n\t\t\t\taccessor: \"TransactionsCount\",\r\n\t\t\t},\t\t\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Canceled Transactions\",\r\n\t\t\t\taccessor: \"TotalCanceledTransactions\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Canceled Transactions Fee\",\r\n\t\t\t\taccessor: \"TotalCanceledTransactionsFee\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Canceled Transactions Count\",\r\n\t\t\t\taccessor: \"CanceledTransactionsCount\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Sent Transactions\",\r\n\t\t\t\taccessor: \"TotalSentTransactions\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Sent Transactions Fee\",\r\n\t\t\t\taccessor: \"TotalSentTransactionsFee\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sent Transactions Count\",\r\n\t\t\t\taccessor: \"SentTransactionsCount\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Files Submitted\",\r\n\t\t\t\taccessor: \"TotalFilesSubmitted\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Files Submitted Fee\",\r\n\t\t\t\taccessor: \"TotalFilesSubmittedFee\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Files Submitted Count\",\r\n\t\t\t\taccessor: \"FilesSubmittedCount\",\r\n\t\t\t}\r\n\t\t]\r\n\r\n\t\tthis.columnsEtr = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"UniqueClientId\",\r\n\t\t\t\taccessor: \"UniqueClientId\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Unique Client Name\",\r\n\t\t\t\taccessor: \"UniqueClientName\",\r\n\t\t\t\twidth: 200,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Bulk Regular Transactions\",\r\n\t\t\t\taccessor: \"TotalBulkRegularTransactions\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Bulk Regular Transactions Fee\",\r\n\t\t\t\taccessor: \"TotalBulkRegularTransactionsFee\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Bulk Regular Transactions Count\",\r\n\t\t\t\taccessor: \"BulkRegularTransactionsCount\",\r\n\t\t\t},\t\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Bulk Priority Transactions\",\r\n\t\t\t\taccessor: \"TotalBulkPriorityTransactions\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\t\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Bulk Priority Transactions Fee\",\r\n\t\t\t\taccessor: \"TotalBulkPriorityTransactionsFee\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\t\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Bulk Priority Transactions Count\",\r\n\t\t\t\taccessor: \"BulkPriorityTransactionsCount\",\r\n\t\t\t},\t\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Real Time Transactions\",\r\n\t\t\t\taccessor: \"TotalRealTimeTransactions\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Real Time Transactions Fee\",\r\n\t\t\t\taccessor: \"TotalRealTimeTransactionsFee\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\t\t\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Real Time Transactions Count\",\r\n\t\t\t\taccessor: \"RealTimeTransactionsCount\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Cancelled Transactions\",\r\n\t\t\t\taccessor: \"TotalCancelledTransactions\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Cancelled Transactions Fee\",\r\n\t\t\t\taccessor: \"TotalCancelledTransactionsFee\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Cancelled Transactions Count\",\r\n\t\t\t\taccessor: \"CancelledTransactionsCount\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Inbound Transactions\",\r\n\t\t\t\taccessor: \"TotalInboundTransactions\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Inbound Transactions Fee\",\r\n\t\t\t\taccessor: \"TotalInboundTransactionsFee\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Inbound Transactions Count\",\r\n\t\t\t\taccessor: \"InboundTransactionsCount\",\r\n\t\t\t},\t\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Files Submitted\",\r\n\t\t\t\taccessor: \"TotalFilesSubmitted\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Files Submitted Fee\",\r\n\t\t\t\taccessor: \"TotalFilesSubmittedFee\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Files Submitted Count\",\r\n\t\t\t\taccessor: \"FilesSubmittedCount\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Number of Stores\",\r\n\t\t\t\taccessor: \"TotalNumberofStores\",\r\n\t\t\t}\r\n\t\t]\r\n\r\n\t\tthis.state = { model: {}, isLoading: false, checkedAccounts: [], ClientTypeParameter: {} };\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"REPORTS\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle && this.props.MenuCode === \"EFTVLR\") {\r\n\t\t\tsetAppLeftTitle(\"Eft Montly Volume Report\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle && this.props.MenuCode === \"BLLVLR\") {\r\n\t\t\tsetAppLeftTitle(\"Bill Montly Volume Report\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle && this.props.MenuCode === \"ETRVLR\") {\r\n\t\t\tsetAppLeftTitle(\"E-Transfer Montly Volume Report\");\r\n\t\t}\r\n\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\r\n\t\tthis.setState({ model });\r\n\t}\r\n\tSearch = async () => {\r\n\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tvar result = null;\r\n\t\tif (this.props.MenuCode === \"EFTVLR\") {\r\n\t\t\tresult = await ExecuteApiPost(\"/bankapi/v1.0/Reporting/EftMontlyVolumeReportList\", model, null, null, null);\r\n\t\t}\r\n\t\tif (this.props.MenuCode === \"BLLVLR\") {\r\n\t\t\tresult = await ExecuteApiPost(\"/bankapi/v1.0/Reporting/BillMontlyVolumeReportList\", model, null, null, null);\r\n\t\t}\r\n\t\tif (this.props.MenuCode === \"ETRVLR\") {\r\n\t\t\tresult = await ExecuteApiPost(\"/bankapi/v1.0/Reporting/ETransferMontlyVolumeReportList\", model, null, null, null);\r\n\t\t}\r\n\t\tif (result != null) {\r\n\t\t\tthis.setState({ list: result || [] });\r\n\t\t}\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, list: [], selected: null, checkedAccounts: [] });\r\n\t}\r\n\r\n\r\n\tValidate = () => {\r\n\t\tvar { model } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errors = [];\r\n\r\n\r\n\t\tif (model.MonthlyFilterMonth == undefined || model.MonthlyFilterMonth == null) {\r\n\t\t\terrors.push(\"Month must be select!\");\r\n\t\t}\r\n\t\tif (model.MonthlyFilterYear == undefined || model.MonthlyFilterYear == null) {\r\n\t\t\terrors.push(\"Year must be select!\");\r\n\t\t}\r\n\t\tmodel[\"IsMonthlyFilterMonth\"] = !model.MonthlyFilterMonth;\r\n\t\tmodel[\"IsMonthlyFilterYear\"] = !model.MonthlyFilterMonth;\r\n\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tGetRenderItemUniqueClient = (x) => {\r\n\t\tthis.renderItemUniqueClient = `${x.Name} - ${x.UniqueClientId}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, list } = this.state;\r\n\t\tconst { Disabled, } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tswitch (this.props.MenuCode) {\r\n\t\t\t\t\t\t\t\t\t\t\tcase \"EFTVLR\": return \"Eft Montly Volume Report\";\r\n\t\t\t\t\t\t\t\t\t\t\tcase \"BLLVLR\": return \"Bill Montly Volume Report\";\r\n\t\t\t\t\t\t\t\t\t\t\tcase \"ETRVLR\": return \"E-Transfer Montly Volume Report\";\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t})()\r\n\t\t\t\t\t\t\t\t}>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch (this.props.MenuCode) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcase \"EFTVLR\": return this.columnsEft;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcase \"BLLVLR\": return this.columnsBill;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcase \"ETRVLR\": return this.columnsEtr;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t})()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tShowPagination={true}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tPageSize={100}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tIsSorted={false}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nEftMontlyVolumeReport.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\nexport default EftMontlyVolumeReport;","import withStyles from \"@material-ui/core/styles/withStyles\";\r\nimport { chartColors } from \"assets/jss/material-dashboard-pro-react.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericExpansionPanel, GenericSelectInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport TabsComponent from \"views/Components/TabsComponent\";\r\nimport ExecutiveSummaryTab from \"./ExecutiveSummaryTab\";\r\n\r\nconst styles = ({\r\n});\r\n\r\nclass ExecutiveSummary extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {};\r\n\r\n\t\tthis.txnCountChartData = {\r\n\t\t\tlabels: [\"Transactions\"],\r\n\t\t\tdatasets: [{\r\n\t\t\t\tdata: [100],\r\n\t\t\t\tbackgroundColor: chartColors.red,\r\n\t\t\t\thoverBackgroundColor: chartColors.red\r\n\t\t\t}],\r\n\t\t\ttext: \"0\"\r\n\t\t};\r\n\r\n\t\tthis.txnTypeChartData = {\r\n\t\t\tlabels: [\"Credit & Debit\"],\r\n\t\t\tdatasets: [{\r\n\t\t\t\tdata: [100],\r\n\t\t\t\tbackgroundColor: \"rgb(255, 159, 64)\",\r\n\t\t\t\thoverBackgroundColor: \"rgb(255, 159, 64)\"\r\n\t\t\t}],\r\n\t\t\ttext: \"0\"\r\n\t\t};\r\n\r\n\t\tthis.feeChartData = {\r\n\t\t\tlabels: [\"Total Fees\"],\r\n\t\t\tdatasets: [{\r\n\t\t\t\tdata: [100],\r\n\t\t\t\tbackgroundColor: \"rgb(54, 162, 235)\",\r\n\t\t\t\thoverBackgroundColor: \"rgb(54, 162, 235)\"\r\n\t\t\t}],\r\n\t\t\ttext: \"0\"\r\n\t\t};\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\r\n\t\tthis.state = {\r\n\t\t\tprogramList: [],\r\n\t\t\tmerchantList: [],\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tvModel: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tactiveIndex: 0,\r\n\t\t\ttxnCountChartData1: JSON.parse(JSON.stringify(this.txnCountChartData)),\r\n\t\t\ttxnCountChartData2: JSON.parse(JSON.stringify(this.txnCountChartData)),\r\n\t\t\ttxnTypeChartData1: JSON.parse(JSON.stringify(this.txnTypeChartData)),\r\n\t\t\ttxnTypeChartData2: JSON.parse(JSON.stringify(this.txnTypeChartData)),\r\n\t\t\tfeeChartData1: JSON.parse(JSON.stringify(this.feeChartData)),\r\n\t\t\tfeeChartData2: JSON.parse(JSON.stringify(this.feeChartData))\r\n\t\t};\r\n\t\t// preserve the initial state in a new object\r\n\t\tthis.baseState = this.state;\r\n\r\n\t\t// this.chartColors = {\r\n\t\t// \tred: \"rgb(255, 99, 132)\",\r\n\t\t// \torange: \"rgb(255, 159, 64)\",\r\n\t\t// \tyellow: \"rgb(255, 205, 86)\",\r\n\t\t// \tgreen: \"rgb(75, 192, 192)\",\r\n\t\t// \tblue: \"rgb(54, 162, 235)\",\r\n\t\t// \tpurple: \"rgb(153, 102, 255)\",\r\n\t\t// \tgrey: \"rgb(201, 203, 207)\"\r\n\t\t// };\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Executive Summary\");\r\n\t\tthis.props.setAppCenterTitle(\"REPORTS\");\r\n\t}\r\n\r\n\tHandleChange = (name, value) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState(function (state) {\r\n\t\t\tstate = this.baseState;\r\n\t\t\treturn state;\r\n\t\t});\r\n\t}\r\n\r\n\tHandleGetList = () => {\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\t\tconst { model } = { ...this.state };\r\n\t\tif (this.state.activeIndex == 0) {\r\n\t\t\tmodel.UniqueClientId = 0\r\n\t\t};\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Reporting/SearchExecutiveSummary\",\r\n\t\t\tthis.state.model,\r\n\t\t\tthis.SuccessListCallback,\r\n\t\t\tthis.ErrorListCallback\r\n\t\t);\r\n\t}\r\n\r\n\tSuccessListCallback = (responseData) => {\r\n\t\tconst { model, activeIndex } = this.state;\r\n\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar arrayData = [];\r\n\t\tvar arrayLabel = [];\r\n\t\tvar arrayColor = [];\r\n\t\tif (responseData.Item !== null) {\r\n\t\t\tvar colorNames = Object.keys(chartColors);\r\n\t\t\tvar i = 0;\r\n\t\t\tfor (var item of responseData.Item.TransactionChartData) {\r\n\t\t\t\tvar colorName = colorNames[i % colorNames.length];\r\n\t\t\t\tvar newColor = chartColors[colorName];\r\n\t\t\t\tarrayColor.push(newColor);\r\n\t\t\t\tarrayData.push(item[\"TransactionCount\"]);\r\n\t\t\t\tarrayLabel.push(item[\"ProgramName\"]);\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\tvar txnCountChartObj = {\r\n\t\t\t\tlabels: arrayLabel,\r\n\t\t\t\tdatasets: [{\r\n\t\t\t\t\tdata: arrayData,\r\n\t\t\t\t\thoverBackgroundColor: arrayColor,\r\n\t\t\t\t\tbackgroundColor: arrayColor\r\n\t\t\t\t}],\r\n\t\t\t\ttext: this.SumValues(arrayData)\r\n\t\t\t};\r\n\r\n\t\t\tarrayColor = [];\r\n\t\t\tarrayData = [];\r\n\t\t\tarrayLabel = [];\r\n\t\t\tvar j = 0;\r\n\t\t\tfor (var item of responseData.Item.CreditDebitChartData) {\r\n\t\t\t\tvar colorName = colorNames[j % colorNames.length];\r\n\t\t\t\tvar newColor = chartColors[colorName];\r\n\t\t\t\tarrayColor.push(newColor);\r\n\t\t\t\tarrayData.push(item[\"TransactionAmount\"]);\r\n\t\t\t\tarrayLabel.push(item[\"TransactionType\"]);\r\n\t\t\t\tj++;\r\n\t\t\t}\r\n\t\t\tvar txnTypeChartObj = {\r\n\t\t\t\tlabels: arrayLabel,\r\n\t\t\t\tdatasets: [{\r\n\t\t\t\t\tdata: arrayData,\r\n\t\t\t\t\thoverBackgroundColor: arrayColor,\r\n\t\t\t\t\tbackgroundColor: arrayColor\r\n\t\t\t\t}],\r\n\t\t\t\ttext: `$${this.GetChartText(this.SumValues(arrayData).toFixed(2))}`\r\n\t\t\t};\r\n\r\n\t\t\tarrayColor = [];\r\n\t\t\tarrayData = [];\r\n\t\t\tarrayLabel = [];\r\n\t\t\tvar k = 0;\r\n\t\t\tfor (var item of responseData.Item.TotalFeeChartData) {\r\n\t\t\t\tvar colorName = colorNames[k % colorNames.length];\r\n\t\t\t\tvar newColor = chartColors[colorName];\r\n\t\t\t\tarrayColor.push(newColor);\r\n\t\t\t\tarrayData.push(item[\"TransactionAmount\"]);\r\n\t\t\t\tarrayLabel.push(item[\"ProgramName\"]);\r\n\t\t\t\tk++;\r\n\t\t\t}\r\n\t\t\tvar feeChartObj = {\r\n\t\t\t\tlabels: arrayLabel,\r\n\t\t\t\tdatasets: [{\r\n\t\t\t\t\tdata: arrayData,\r\n\t\t\t\t\thoverBackgroundColor: arrayColor,\r\n\t\t\t\t\tbackgroundColor: arrayColor\r\n\t\t\t\t}],\r\n\t\t\t\ttext: `$${this.GetChartText(this.SumValues(arrayData).toFixed(2))}`\r\n\t\t\t};\r\n\r\n\t\t\tmodel.BeginDate = responseData.Item.BeginDate;\r\n\t\t\tmodel.EndDate = responseData.Item.EndDate;\r\n\r\n\t\t\tthis.setState({\r\n\t\t\t\tmodel,\r\n\t\t\t\tprogramList: activeIndex == 0 ? responseData.Item.ProgramTransactionList : [],\r\n\t\t\t\tmerchantList: activeIndex == 1 ? responseData.Item.MerchantTransactionList : [],\r\n\t\t\t\ttxnCountChartData1: JSON.parse(JSON.stringify(activeIndex == 0 ? txnCountChartObj : this.txnCountChartData)),\r\n\t\t\t\ttxnCountChartData2: JSON.parse(JSON.stringify(activeIndex == 1 ? txnCountChartObj : this.txnCountChartData)),\r\n\t\t\t\ttxnTypeChartData1: JSON.parse(JSON.stringify(activeIndex == 0 ? txnTypeChartObj : this.txnTypeChartData)),\r\n\t\t\t\ttxnTypeChartData2: JSON.parse(JSON.stringify(activeIndex == 1 ? txnTypeChartObj : this.txnTypeChartData)),\r\n\t\t\t\tfeeChartData1: JSON.parse(JSON.stringify(activeIndex == 0 ? feeChartObj : this.feeChartData)),\r\n\t\t\t\tfeeChartData2: JSON.parse(JSON.stringify(activeIndex == 1 ? feeChartObj : this.feeChartData))\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\r\n\tErrorListCallback = (error) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t}\r\n\r\n\tGetElementValue = (obj, path) => {\r\n\t\tif (obj == null || path == null)\r\n\t\t\treturn \"\";\r\n\t\treturn [obj].concat(path.split(\".\")).reduce((c, n) => {\r\n\t\t\tif (c) {\r\n\t\t\t\tif (n.toString().includes(\"Percent\")) {\r\n\t\t\t\t\treturn `${c[n].toFixed(1)}%`;\r\n\t\t\t\t} else if (n.toString().includes(\"Amount\")) {\r\n\t\t\t\t\treturn `$${c[n].toFixed(2)}`;\r\n\t\t\t\t}\r\n\t\t\t\treturn c[n];\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tPrint = () => {\r\n\t\tconst { activeIndex, model, programList, merchantList } = this.state;\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tvar keyvalueList = [];\r\n\t\tvar list = activeIndex == 0 ? programList : merchantList;\r\n\t\tvar columns = activeIndex == 0 ? this.GetColumns(programList, \"Programs\", \"ProgramName\") : this.GetColumns(merchantList, \"Client\", \"FullName\");\r\n\r\n\t\tif (list.length == 0)\r\n\t\t\treturn;\r\n\r\n\t\tlist.forEach(function (listElement) {\r\n\t\t\tvar keyValueObject = {};\r\n\t\t\tcolumns.forEach(function (gridColumnElement) {\r\n\t\t\t\tvar valueItem = this.GetElementValue(listElement, gridColumnElement.accessor);\r\n\t\t\t\tkeyValueObject[gridColumnElement.accessor] = { value: valueItem, title: gridColumnElement.Header };\r\n\t\t\t}, this);\r\n\t\t\tkeyvalueList.push(keyValueObject);\r\n\t\t}, this);\r\n\r\n\t\tvar format = \"PDF\";\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/report/CreateFileFromData\",\r\n\t\t\t{\r\n\t\t\t\tjsonFile: {\r\n\t\t\t\t\ttitle: \"Executive Summary Report\",\r\n\t\t\t\t\ttable: keyvalueList,\r\n\t\t\t\t\tformat: format,\r\n\t\t\t\t\tmodel: {\r\n\t\t\t\t\t\tDateFilter: { BeginDate: this.state.model.BeginDate, EndDate: this.state.model.EndDate }\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tlet a = document.createElement(\"a\");\r\n\t\t\t\ta.style = \"display: none\";\r\n\t\t\t\tdocument.body.appendChild(a);\r\n\t\t\t\ta.href = \"data:application/octet-stream;base64,\" + responseData.Item.value;\r\n\t\t\t\ta.download = \"ExecutiveSummaryReport.pdf\";\r\n\t\t\t\ta.click();\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tTabIndexChanged = (activeIndex) => {\r\n\t\tthis.setState({ activeIndex });\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model, activeIndex, vModel } = this.state;\r\n\t\tvar messages = [];\r\n\r\n\t\tif (!model.Top) {\r\n\t\t\tvModel.Top = true;\r\n\t\t\tmessages.push(\"Top Filter must be select\");\r\n\t\t} else {\r\n\t\t\tvModel.Top = false;\r\n\t\t}\r\n\r\n\t\tif (!model.FromDate) {\r\n\t\t\tvModel.FromDate = true;\r\n\t\t\tmessages.push(\"From Date must be select\");\r\n\t\t} else {\r\n\t\t\tvModel.FromDate = false;\r\n\t\t}\r\n\r\n\t\tif (!model.ToDate) {\r\n\t\t\tvModel.ToDate = true;\r\n\t\t\tmessages.push(\"To Date must be select\");\r\n\t\t} else {\r\n\t\t\tvModel.ToDate = false;\r\n\t\t}\r\n\r\n\t\tif (model.ToDate < model.FromDate) {\r\n\t\t\tmessages.push(\"To Date must be bigger than From Date\");\r\n\t\t}\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.setState({ vModel });\r\n\t\treturn true;\r\n\t}\r\n\r\n\tSumValues = (...arr) => {\r\n\t\treturn arr.length > 0 ? arr[0].reduce((a, b) => a + b, 0) : 0;\r\n\t}\r\n\r\n\tGetColumns = (list, header, accessor) => {\r\n\t\tconst columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: header,\r\n\t\t\t\taccessor: accessor,\r\n\t\t\t\tFooter: (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tTotal Transactions\r\n\t\t\t\t\t\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transactions\",\r\n\t\t\t\taccessor: \"TransactionCount\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{Formatter.FormatNumber(row.value)}
\r\n\t\t\t\t),\r\n\t\t\t\tFooter: (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{Formatter.FormatNumber(this.SumValues(list.map(d => d.TransactionCount)))}\r\n\t\t\t\t\t\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"% of Transaction Errors\",\r\n\t\t\t\taccessor: \"TransactionErrorCountPercent\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{Formatter.FormatPercent(row.value)}
\r\n\t\t\t\t),\r\n\t\t\t\tFooter: (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{Formatter.FormatPercent(this.SumValues(list.map(d => d.TransactionErrorCountPercent)))}\r\n\t\t\t\t\t\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Debit\",\r\n\t\t\t\taccessor: \"DebitCount\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{Formatter.FormatNumber(row.value)}
\r\n\t\t\t\t),\r\n\t\t\t\tFooter: (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{Formatter.FormatNumber(this.SumValues(list.map(d => d.DebitCount)))}\r\n\t\t\t\t\t\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"% of Debit Errors\",\r\n\t\t\t\taccessor: \"DebitErrorCountPercent\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{Formatter.FormatPercent(row.value)}
\r\n\t\t\t\t),\r\n\t\t\t\tFooter: (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{Formatter.FormatPercent(this.SumValues(list.map(d => d.DebitErrorCountPercent)))}\r\n\t\t\t\t\t\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Credit\",\r\n\t\t\t\taccessor: \"CreditCount\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{Formatter.FormatNumber(row.value)}
\r\n\t\t\t\t),\r\n\t\t\t\tFooter: (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{Formatter.FormatNumber(this.SumValues(list.map(d => d.CreditCount)))}\r\n\t\t\t\t\t\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"% of Credit Errors\",\r\n\t\t\t\taccessor: \"CreditErrorCountPercent\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{Formatter.FormatPercent(row.value)}
\r\n\t\t\t\t),\r\n\t\t\t\tFooter: (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{Formatter.FormatPercent(this.SumValues(list.map(d => d.CreditErrorCountPercent)))}\r\n\t\t\t\t\t\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total\",\r\n\t\t\t\taccessor: \"TotalAmount\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{Formatter.FormatMoney(row.value)}
\r\n\t\t\t\t),\r\n\t\t\t\tFooter: (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{Formatter.FormatMoney(this.SumValues(list.map(d => d.TotalAmount)))}\r\n\t\t\t\t\t\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Fee\",\r\n\t\t\t\taccessor: \"TotalFeeAmount\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{Formatter.FormatMoney(row.value)}
\r\n\t\t\t\t),\r\n\t\t\t\tFooter: (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{Formatter.FormatMoney(this.SumValues(list.map(d => d.TotalFeeAmount)))}\r\n\t\t\t\t\t\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Per Transaction Fee\",\r\n\t\t\t\taccessor: \"PerTransactionFee\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{Formatter.FormatPercentFee(row.value)}
\r\n\t\t\t\t)\r\n\t\t\t}\r\n\t\t];\r\n\t\treturn columns;\r\n\t}\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\t\r\n\tGetChartText = (txt) => {\r\n\t\treturn txt.toString().replace(/(\\d)(?=(\\d{3})+(?!\\d))/g, \"$1,\");\r\n\t}\r\n\r\n\trender() {\r\n\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, activeIndex, isLoading, model, vModel, programList, merchantList } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t<>\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t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ummary);","import withStyles from \"@material-ui/core/styles/withStyles\";\r\nimport { primaryColor } from \"assets/jss/material-dashboard-pro-react.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ReactTable from \"react-table\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericCheckInput, GenericDateInput, GenericExpansionPanel, GenericSelectInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nconst styles = ({\r\n\tgrayRatingStyle: {\r\n\t\tbackground: \"gray\",\r\n\t\tpadding: 10,\r\n\t\tborder: \"1px solid black\",\r\n\t\ttextAlign: \"center\"\r\n\t},\r\n\torangeRatingStyle: {\r\n\t\tbackground: primaryColor,\r\n\t\tpadding: 10,\r\n\t\tcolor: \"white\",\r\n\t\tborderRadius: \"5px\"\r\n\t}\r\n});\r\n\r\nclass FundsMovement extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {};\r\n\r\n\t\tthis.state = {\r\n\t\t\tlist: [],\r\n\t\t\tcashPercentList: [\r\n\t\t\t\t{\r\n\t\t\t\t\tCashIn: 100,\r\n\t\t\t\t\tCashOut: 100,\r\n\t\t\t\t\tTotalCashVolume: 100,\r\n\t\t\t\t\tOnhold: 100,\r\n\t\t\t\t\tFees: 100\r\n\t\t\t\t}\r\n\t\t\t],\r\n\t\t\tcashTotalList: [\r\n\t\t\t\t{\r\n\t\t\t\t\tCashIn: 0,\r\n\t\t\t\t\tCashOut: 0,\r\n\t\t\t\t\tTotalCashVolume: 0,\r\n\t\t\t\t\tOnhold: 0,\r\n\t\t\t\t\tFees: 0\r\n\t\t\t\t}\r\n\t\t\t],\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tvModel: {},\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Funds Movement\");\r\n\t\tthis.props.setAppCenterTitle(\"REPORTS\");\r\n\t}\r\n\r\n\tHandleChange = (name, value, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tif (name == \"MonthlyFilterYear\" && data)\r\n\t\t\tthis.setState({ MonthlyFilterYear: parseInt(data.ParameterValue) });\r\n\t\tif (name == \"MonthlyFilterMonth\" && data)\r\n\t\t\tthis.setState({ MonthlyFilterMonth: parseInt(data.ParameterValue2) });\r\n\t\tif (name == \"AnnualFilterFromYear\" && data)\r\n\t\t\tthis.setState({ AnnualFilterFromYear: parseInt(data.ParameterValue) });\r\n\t\tif (name == \"AnnualFilterFromMonth\" && data)\r\n\t\t\tthis.setState({ AnnualFilterFromMonth: parseInt(data.ParameterValue2) });\r\n\t\tif (name == \"AnnualFilterToYear\" && data)\r\n\t\t\tthis.setState({ AnnualFilterToYear: parseInt(data.ParameterValue) });\r\n\t\tif (name == \"AnnualFilterToMonth\" && data)\r\n\t\t\tthis.setState({ AnnualFilterToMonth: parseInt(data.ParameterValue2) });\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: this.initialModel, selected: null,list:[] });\r\n\t}\r\n\r\n\tHandleGetList = () => {\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Reporting/SearchFundsMovement\",\r\n\t\t\tthis.state.model,\r\n\t\t\tthis.SuccessListCallback,\r\n\t\t\tthis.ErrorListCallback\r\n\t\t);\r\n\t}\r\n\r\n\tSuccessListCallback = (responseData) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (responseData.Item !== null) {\r\n\t\t\tconst { model } = this.state;\r\n\t\t\tmodel.BeginDate = responseData.Item.BeginDate;\r\n\t\t\tmodel.EndDate = responseData.Item.EndDate;\r\n\t\t\tif (responseData.Item.List.length > 0) {\r\n\t\t\t\tthis.setState(\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmodel,\r\n\t\t\t\t\t\tlist: responseData.Item.List,\r\n\t\t\t\t\t\tcashPercentList: responseData.Item.CashMovementPercentList,\r\n\t\t\t\t\t\tcashTotalList: responseData.Item.CashMovementTotalList\r\n\t\t\t\t\t}\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tErrorListCallback = (error) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t}\r\n\r\n\tSumValues = (...arr) => {\r\n\t\treturn arr.length > 0 ? arr[0].reduce((a, b) => a + b, 0) : 0;\r\n\t}\r\n\r\n\tGetElementPercentValue = (obj, path) => {\r\n\t\tif (obj == null || path == null)\r\n\t\t\treturn \"\";\r\n\t\treturn [obj].concat(path.split(\".\")).reduce((c, n) => {\r\n\t\t\tif (c) {\r\n\t\t\t\tif (typeof c[n] === \"number\")\r\n\t\t\t\t\treturn `${c[n].toFixed(1)}%`;\r\n\t\t\t\treturn c[n];\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tGetElementAmountValue = (obj, path) => {\r\n\t\tif (obj == null || path == null)\r\n\t\t\treturn \"\";\r\n\t\treturn [obj].concat(path.split(\".\")).reduce((c, n) => {\r\n\t\t\tif (c) {\r\n\t\t\t\tif (typeof c[n] === \"number\")\r\n\t\t\t\t\treturn `$${c[n].toFixed(2)}`;\r\n\t\t\t\treturn c[n];\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tPrint = () => {\r\n\t\tif (this.state.list.length > 0)\r\n\t\t\tthis.PrintFundMovementList();\r\n\t}\r\n\r\n\tPrintFundMovementList = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tvar keyvalueList = [];\r\n\t\tthis.state.list.forEach(function (listElement) {\r\n\t\t\tvar keyValueObject = {};\r\n\t\t\t[\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\t\taccessor: \"MerchantName\"\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Closing Balance\",\r\n\t\t\t\t\taccessor: \"ClosingBalance\"\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Cash In\",\r\n\t\t\t\t\taccessor: \"CashIn\"\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Cash Out\",\r\n\t\t\t\t\taccessor: \"CashOut\"\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Total Cash Volume\",\r\n\t\t\t\t\taccessor: \"TotalCashVolume\"\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Onhold\",\r\n\t\t\t\t\taccessor: \"Onhold\"\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Fees\",\r\n\t\t\t\t\taccessor: \"Fees\"\r\n\t\t\t\t},\r\n\t\t\t].forEach(function (gridColumnElement) {\r\n\t\t\t\tvar valueItem = this.GetElementAmountValue(listElement, gridColumnElement.accessor);\r\n\t\t\t\tkeyValueObject[gridColumnElement.accessor] = { value: valueItem, title: gridColumnElement.Header };\r\n\t\t\t}, this);\r\n\t\t\tkeyvalueList.push(keyValueObject);\r\n\t\t}, this);\r\n\r\n\t\tvar format = \"PDF\";\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/report/CreateFileFromData\",\r\n\t\t\t{\r\n\t\t\t\tjsonFile: {\r\n\t\t\t\t\ttitle: \"Funds Movement Report\",\r\n\t\t\t\t\ttable: keyvalueList,\r\n\t\t\t\t\tformat: format,\r\n\t\t\t\t\tmodel: {\r\n\t\t\t\t\t\tDateFilter: { BeginDate: this.state.model.BeginDate, EndDate: this.state.model.EndDate }\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tlet a = document.createElement(\"a\");\r\n\t\t\t\ta.style = \"display: none\";\r\n\t\t\t\tdocument.body.appendChild(a);\r\n\t\t\t\ta.href = \"data:application/octet-stream;base64,\" + responseData.Item.value;\r\n\t\t\t\ta.download = \"FundMovementReport.pdf\";\r\n\t\t\t\ta.click();\r\n\t\t\t\tif (this.state.cashPercentList.length > 0)\r\n\t\t\t\t\tthis.PrintCashPercentList();\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tPrintCashPercentList = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tvar keyvalueList = [];\r\n\t\tthis.state.cashPercentList.forEach(function (listElement) {\r\n\t\t\tvar keyValueObject = {};\r\n\t\t\t[\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Cash In\",\r\n\t\t\t\t\taccessor: \"CashIn\"\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Cash Out\",\r\n\t\t\t\t\taccessor: \"CashOut\"\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Total Cash Volume\",\r\n\t\t\t\t\taccessor: \"TotalCashVolume\"\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Onhold\",\r\n\t\t\t\t\taccessor: \"Onhold\"\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Fees\",\r\n\t\t\t\t\taccessor: \"Fees\"\r\n\t\t\t\t},\r\n\t\t\t].forEach(function (gridColumnElement) {\r\n\t\t\t\tvar valueItem = this.GetElementPercentValue(listElement, gridColumnElement.accessor);\r\n\t\t\t\tkeyValueObject[gridColumnElement.accessor] = { value: valueItem, title: gridColumnElement.Header };\r\n\t\t\t}, this);\r\n\t\t\tkeyvalueList.push(keyValueObject);\r\n\t\t}, this);\r\n\r\n\t\tvar format = \"PDF\";\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/report/CreateFileFromData\",\r\n\t\t\t{\r\n\t\t\t\tjsonFile: {\r\n\t\t\t\t\ttitle: \"Funds Movement Cash Percent Report\",\r\n\t\t\t\t\ttable: keyvalueList,\r\n\t\t\t\t\tformat: format,\r\n\t\t\t\t\tmodel: {\r\n\t\t\t\t\t\tDateFilter: { BeginDate: this.state.model.BeginDate, EndDate: this.state.model.EndDate }\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tlet a = document.createElement(\"a\");\r\n\t\t\t\ta.style = \"display: none\";\r\n\t\t\t\tdocument.body.appendChild(a);\r\n\t\t\t\ta.href = \"data:application/octet-stream;base64,\" + responseData.Item.value;\r\n\t\t\t\ta.download = \"FundMovementCashPercentReport.pdf\";\r\n\t\t\t\ta.click();\r\n\t\t\t\tif (this.state.cashTotalList.length > 0)\r\n\t\t\t\t\tthis.PrintCashTotalList();\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tPrintCashTotalList = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tvar keyvalueList = [];\r\n\t\tthis.state.cashTotalList.forEach(function (listElement) {\r\n\t\t\tvar keyValueObject = {};\r\n\t\t\t[\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Cash In\",\r\n\t\t\t\t\taccessor: \"CashIn\"\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Cash Out\",\r\n\t\t\t\t\taccessor: \"CashOut\"\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Total Cash Volume\",\r\n\t\t\t\t\taccessor: \"TotalCashVolume\"\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Onhold\",\r\n\t\t\t\t\taccessor: \"Onhold\"\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Fees\",\r\n\t\t\t\t\taccessor: \"Fees\"\r\n\t\t\t\t},\r\n\t\t\t].forEach(function (gridColumnElement) {\r\n\t\t\t\tvar valueItem = this.GetElementAmountValue(listElement, gridColumnElement.accessor);\r\n\t\t\t\tkeyValueObject[gridColumnElement.accessor] = { value: valueItem, title: gridColumnElement.Header };\r\n\t\t\t}, this);\r\n\t\t\tkeyvalueList.push(keyValueObject);\r\n\t\t}, this);\r\n\r\n\t\tvar format = \"PDF\";\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/report/CreateFileFromData\",\r\n\t\t\t{\r\n\t\t\t\tjsonFile: {\r\n\t\t\t\t\ttitle: \"Funds Movement Cash Total Report\",\r\n\t\t\t\t\ttable: keyvalueList,\r\n\t\t\t\t\tformat: format,\r\n\t\t\t\t\tmodel: {\r\n\t\t\t\t\t\tDateFilter: { BeginDate: this.state.model.BeginDate, EndDate: this.state.model.EndDate }\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tlet a = document.createElement(\"a\");\r\n\t\t\t\ta.style = \"display: none\";\r\n\t\t\t\tdocument.body.appendChild(a);\r\n\t\t\t\ta.href = \"data:application/octet-stream;base64,\" + responseData.Item.value;\r\n\t\t\t\ta.download = \"FundMovementCashTotalReport.pdf\";\r\n\t\t\t\ta.click();\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tvar messages = [];\r\n\r\n\t\tif (!model.DateFilter && !model.MonthlyFilter && !model.AnnualFilter) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"No filter not selected\", \"Select any filter to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!model.Top) {\r\n\t\t\tvModel.Top = true;\r\n\t\t\tmessages.push(\"Top Filter must be select\");\r\n\t\t} else {\r\n\t\t\tvModel.Top = false;\r\n\t\t}\r\n\r\n\t\tif (model.DateFilter) {\r\n\t\t\tif (!model.FromDate) {\r\n\t\t\t\tvModel.FromDate = true;\r\n\t\t\t\tmessages.push(\"From Date must be select\");\r\n\t\t\t} else {\r\n\t\t\t\tvModel.FromDate = false;\r\n\t\t\t}\r\n\t\t\tif (!model.ToDate) {\r\n\t\t\t\tvModel.ToDate = true;\r\n\t\t\t\tmessages.push(\"To Date must be select\");\r\n\t\t\t} else {\r\n\t\t\t\tvModel.ToDate = false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (model.MonthlyFilter) {\r\n\t\t\tif (!model.MonthlyFilterMonth) {\r\n\t\t\t\tvModel.Month = true;\r\n\t\t\t\tmessages.push(\"Month must be select\");\r\n\t\t\t} else {\r\n\t\t\t\tvModel.Month = false;\r\n\t\t\t}\r\n\t\t\tif (!model.MonthlyFilterYear) {\r\n\t\t\t\tvModel.Year = true;\r\n\t\t\t\tmessages.push(\"Year must be select\");\r\n\t\t\t} else {\r\n\t\t\t\tvModel.Year = false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (model.AnnualFilter) {\r\n\t\t\tif (!model.AnnualFilterFromMonth) {\r\n\t\t\t\tvModel.FromMonth = true;\r\n\t\t\t\tmessages.push(\"From Month must be select\");\r\n\t\t\t} else {\r\n\t\t\t\tvModel.FromMonth = false;\r\n\t\t\t}\r\n\t\t\tif (!model.AnnualFilterFromYear) {\r\n\t\t\t\tvModel.FromYear = true;\r\n\t\t\t\tmessages.push(\"From Year must be select\");\r\n\t\t\t} else {\r\n\t\t\t\tvModel.FromYear = false;\r\n\t\t\t}\r\n\t\t\tif (!model.AnnualFilterToMonth) {\r\n\t\t\t\tvModel.ToMonth = true;\r\n\t\t\t\tmessages.push(\"To Month must be select\");\r\n\t\t\t} else {\r\n\t\t\t\tvModel.ToMonth = false;\r\n\t\t\t}\r\n\t\t\tif (!model.AnnualFilterToYear) {\r\n\t\t\t\tvModel.ToYear = true;\r\n\t\t\t\tmessages.push(\"To Year must be select\");\r\n\t\t\t} else {\r\n\t\t\t\tvModel.ToYear = false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.setState({ vModel });\r\n\t\treturn true;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes, Disabled } = this.props;\r\n\t\tconst { alert, isLoading, model, vModel, list, cashPercentList, cashTotalList } = this.state;\r\n\t\treturn (\r\n\t\t\t<>\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\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t\t\t\taccessor: \"ClosingBalance\",\r\n\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{Formatter.FormatMoney(row.value)}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{Formatter.FormatMoney(this.SumValues(list.map(d => d.ClosingBalance)))}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Cash In\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"CashIn\",\r\n\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{Formatter.FormatMoney(row.value)}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{Formatter.FormatMoney(this.SumValues(list.map(d => d.CashIn)))}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Cash Out\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"CashOut\",\r\n\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{Formatter.FormatMoney(row.value)}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{Formatter.FormatMoney(this.SumValues(list.map(d => d.CashOut)))}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Total Cash Volume\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"TotalCashVolume\",\r\n\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{Formatter.FormatMoney(row.value)}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{Formatter.FormatMoney(this.SumValues(list.map(d => d.TotalCashVolume)))}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Onhold\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"Onhold\",\r\n\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{Formatter.FormatMoney(row.value)}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{Formatter.FormatMoney(this.SumValues(list.map(d => d.Onhold)))}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Fees\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"Fees\",\r\n\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{Formatter.FormatMoney(row.value)}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{Formatter.FormatMoney(this.SumValues(list.map(d => d.Fees)))}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\tshowPaginationTop={false}\r\n\t\t\t\t\t\t\tshowPaginationBottom={false}\r\n\t\t\t\t\t\t\tminRows={1}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{\"% of Cash Movement related selected number of Accounts\"}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\taccessor: \"CashIn\",\r\n\t\t\t\t\t\t\t\t\tsortable: false,\r\n\t\t\t\t\t\t\t\t\tfilterable: false,\r\n\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{Formatter.FormatPercent(row.value)}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\taccessor: \"CashOut\",\r\n\t\t\t\t\t\t\t\t\tsortable: false,\r\n\t\t\t\t\t\t\t\t\tfilterable: false,\r\n\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{Formatter.FormatPercent(row.value)}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\taccessor: \"TotalCashVolume\",\r\n\t\t\t\t\t\t\t\t\tsortable: false,\r\n\t\t\t\t\t\t\t\t\tfilterable: false,\r\n\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{Formatter.FormatPercent(row.value)}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\taccessor: \"Onhold\",\r\n\t\t\t\t\t\t\t\t\tsortable: false,\r\n\t\t\t\t\t\t\t\t\tfilterable: false,\r\n\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{Formatter.FormatPercent(row.value)}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\taccessor: \"Fees\",\r\n\t\t\t\t\t\t\t\t\tsortable: false,\r\n\t\t\t\t\t\t\t\t\tfilterable: false,\r\n\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{Formatter.FormatPercent(row.value)}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\tshowPaginationTop={false}\r\n\t\t\t\t\t\t\tshowPaginationBottom={false}\r\n\t\t\t\t\t\t\tminRows={1}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{\"Total Cash Movement for All Account\"}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\taccessor: \"CashIn\",\r\n\t\t\t\t\t\t\t\t\tsortable: false,\r\n\t\t\t\t\t\t\t\t\tfilterable: false,\r\n\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{Formatter.FormatMoney(row.value)}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\taccessor: \"CashOut\",\r\n\t\t\t\t\t\t\t\t\tsortable: false,\r\n\t\t\t\t\t\t\t\t\tfilterable: false,\r\n\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{Formatter.FormatMoney(row.value)}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\taccessor: \"TotalCashVolume\",\r\n\t\t\t\t\t\t\t\t\tsortable: false,\r\n\t\t\t\t\t\t\t\t\tfilterable: false,\r\n\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{Formatter.FormatMoney(row.value)}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\taccessor: \"Onhold\",\r\n\t\t\t\t\t\t\t\t\tsortable: false,\r\n\t\t\t\t\t\t\t\t\tfilterable: false,\r\n\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{Formatter.FormatMoney(row.value)}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\taccessor: \"Fees\",\r\n\t\t\t\t\t\t\t\t\tsortable: false,\r\n\t\t\t\t\t\t\t\t\tfilterable: false,\r\n\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{Formatter.FormatMoney(row.value)}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\tshowPaginationTop={false}\r\n\t\t\t\t\t\t\tshowPaginationBottom={false}\r\n\t\t\t\t\t\t\tminRows={1}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nFundsMovement.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default withStyles(styles)(FundsMovement);","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericCheckInput, GenericDateInput, GenericGrid, GenericNumberInput, GenericTextInput, GenericExpansionPanel, GenericDateFilterInput, GenericTitle, GenericDialog, GenericLabel, GenericRadioInput, GenericDialogActions } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent.jsx\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\nimport Select from \"react-select\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nclass IvrCallerHistory extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tPhoneNumber : null,\r\n\t\t\tFromDate : null,\r\n\t\t\tToDate : null,\r\n\t\t};\r\n\r\n\t\tthis.initialState = {\r\n\t\t\tmodel : this.initialModel,\r\n\t\t\tisLoading : false,\r\n\t\t\tExportReportType: null,\r\n\t\t\tGridKeyValueList : []\r\n\t\t};\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Unique Client Id\",\r\n\t\t\t\taccessor: \"IvrUniqueClientId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Phone Number\",\r\n\t\t\t\taccessor: \"PhoneNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Call Date\",\r\n\t\t\t\taccessor: \"CallDate\",\r\n\t\t\t\ttype: GridColumnType.DateTimeUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Session Id\",\r\n\t\t\t\taccessor: \"SessionId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Caller Request Type\",\r\n\t\t\t\taccessor: \"CallerRequestType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Last Four Digit\",\r\n\t\t\t\taccessor: \"LastFourDigits\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Api Type\",\r\n\t\t\t\taccessor: \"ApiType\"\r\n\t\t\t}\r\n\t\t];\r\n\t\tthis.state = this.initialState;\r\n\t\tthis.trxTable = React.createRef();\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Ivr Caller History List\");\r\n\t\tthis.props.setAppCenterTitle(\"CALL CENTER\");\r\n\t\tthis.setState({\r\n\t\t\tloadingCompleted: true\r\n\t\t});\r\n\t}\r\n\r\n\thandleChange = (name, newValue) => {\r\n\t\tif(name == \"ExportReportType\"){\r\n\t\t\tthis.setState({\r\n\t\t\t\tExportReportType: newValue\r\n\t\t\t})\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tshowLoading = () => { this.setState({ isLoading: true }); }\r\n\thideLoading = () => { this.setState({ isLoading: false }); }\r\n\r\n\thandleSearch = () =>{\r\n\t\tthis.setState(state => ({ trxGridToken: !state.trxGridToken }));\r\n\t}\r\n\r\n\thandleClear = () =>{\r\n\t\tthis.setState({\r\n\t\t\tmodel : this.initialState\r\n\t\t})\r\n\t}\r\n\r\n\r\n\tExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.accessor != \"Actions\" && c.accessor != \"ED\" && (c.show == undefined || c.show)) {\r\n\t\t\t\ttrxColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: trxColumns, ExportSelectedColumns: trxColumns });\r\n\t}\r\n\r\n\tExcelDownload = () => {\t\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tconst temp = { ...this.state.model };\r\n\r\n\t\tvar jsonColList = [];\r\n\r\n\t\tvar trxColumns = {};\r\n\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\ttrxColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t});\r\n\t\tjsonColList.push(trxColumns);\r\n\r\n\t\tvar mytitle = \"Ivr Caller History List\";\r\n\r\n\t\ttemp.jsonFile = {\r\n\t\t\tcolmns: jsonColList,\r\n\t\t\tformat: this.state.ExportReportType,\r\n\t\t\ttitle: mytitle\r\n\t\t};\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\"/bankapi/v1.0/IvrCallerHistory/CallerHistoryExportDownload\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t},\r\n\t\t\tthis.props.showMessage\r\n\t\t);\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, isLoading } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t { return model; }}\r\n\t\t\t\t\t\t\t\t\t\t\tPageSize={10}\r\n\t\t\t\t\t\t\t\t\t\t\tShowPagination={true}\r\n\t\t\t\t\t\t\t\t\t\t\tIsSorted={false}\r\n\t\t\t\t\t\t\t\t\t\t\tLoadAtStartup={this.state.loadingCompleted}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nIvrCallerHistory.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool,\r\n\tValueChanged: PropTypes.func,\r\n\tmodel: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(IvrCallerHistory, {});","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericCheckInput, GenericDateInput, GenericGrid, GenericNumberInput, GenericTextInput, GenericExpansionPanel, GenericDateFilterInput, GenericTitle, GenericDialog, GenericLabel, GenericRadioInput, GenericDialogActions } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent.jsx\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\nimport Select from \"react-select\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nclass IvrCardActivationReport extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\t\r\n\t\tthis.initialModel = {\r\n\t\t\tPhoneNumber : null,\r\n\t\t\tFromDate : null,\r\n\t\t\tToDate : null\r\n\t\t};\r\n\r\n\t\tthis.initialState = {\r\n\t\t\tmodel : {...this.initialModel},\r\n\t\t\tisLoading : false,\r\n\t\t\tExportReportType: null\r\n\t\t};\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Activation Date\",\r\n\t\t\t\taccessor: \"ActivationDate\",\r\n\t\t\t\ttype: GridColumnType.DateTimeUtc,\r\n\t\t\t ColumnType: GridColumnType.DateTimeUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Last 4 Digit\",\r\n\t\t\t\taccessor: \"Last4Digit\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Phone Number\",\r\n\t\t\t\taccessor: \"PhoneNumber\"\r\n\t\t\t},\r\n\t\t];\r\n\t\tthis.state = this.initialState;\r\n\t\tthis.trxTable = React.createRef();\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Ivr Card Activation List\");\r\n\t\tthis.props.setAppCenterTitle(\"CALL CENTER\");\r\n\t\tthis.setState({\r\n\t\t\tloadingCompleted: true\r\n\t\t});\r\n\t}\r\n\r\n\thandleChange = (name, newValue) => {\r\n\t\tif(name == \"ExportReportType\"){\r\n\t\t\tthis.setState({\r\n\t\t\t\tExportReportType: newValue\r\n\t\t\t})\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tshowLoading = () => { this.setState({ isLoading: true }); }\r\n\thideLoading = () => { this.setState({ isLoading: false }); }\r\n\r\n\thandleSearch = async () => {\r\n\t\tthis.setState(state => ({ trxGridToken: !state.trxGridToken }));\r\n\t}\r\n\r\n\thandleClear = () =>{\r\n\t\tthis.setState({\r\n\t\t\tmodel : { ...this.initialModel}\r\n\t\t})\r\n\t}\r\n\r\n\tExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.accessor != \"Actions\" && c.accessor != \"ED\" && (c.show == undefined || c.show)) {\r\n\t\t\t\ttrxColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: trxColumns, ExportSelectedColumns: trxColumns });\r\n\t}\r\n\r\n\tExcelDownload = () => {\t\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tconst temp = { ...this.state.model };\r\n\r\n\t\tvar jsonColList = [];\r\n\r\n\t\tvar trxColumns = {};\r\n\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\ttrxColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t});\r\n\t\tjsonColList.push(trxColumns);\r\n\r\n\t\tvar mytitle = \"Ivr Card Activation List\";\r\n\r\n\t\ttemp.jsonFile = {\r\n\t\t\tcolmns: jsonColList,\r\n\t\t\tformat: this.state.ExportReportType,\r\n\t\t\ttitle: mytitle\r\n\t\t};\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\"/bankapi/v1.0/IvrCardActivation/CardActivationsExportDownload\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t},\r\n\t\t\tthis.props.showMessage\r\n\t\t);\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, isLoading } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t { return model; }}\r\n\t\t\t\t\t\t\t\t\t\t\tPageSize={10}\r\n\t\t\t\t\t\t\t\t\t\t\tShowPagination={true}\r\n\t\t\t\t\t\t\t\t\t\t\tIsSorted={false}\r\n\t\t\t\t\t\t\t\t\t\t\tLoadAtStartup={this.state.loadingCompleted}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nIvrCardActivationReport.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool,\r\n\tValueChanged: PropTypes.func,\r\n\tmodel: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(IvrCardActivationReport, {});","import withStyles from \"@material-ui/core/styles/withStyles\";\r\nimport { primaryColor } from \"assets/jss/material-dashboard-pro-react.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ReactTable from \"react-table\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericCheckInput, GenericDateInput, GenericExpansionPanel, GenericSelectInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nconst styles = ({\r\n\tgrayRatingStyle: {\r\n\t\tbackground: \"gray\",\r\n\t\tpadding: 10,\r\n\t\tborder: \"1px solid black\",\r\n\t\ttextAlign: \"center\"\r\n\t},\r\n\torangeRatingStyle: {\r\n\t\tbackground: primaryColor,\r\n\t\tpadding: 10,\r\n\t\tcolor: \"white\",\r\n\t\tborderRadius: \"5px\"\r\n\t}\r\n});\r\n\r\nclass RiskRating extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {};\r\n\r\n\t\tthis.state = {\r\n\t\t\tperAccList: [],\r\n\t\t\tcorpAccList: [],\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tvModel: {},\r\n\t\t\tisLoading: false,\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Risk Rating Summary\");\r\n\t\tthis.props.setAppCenterTitle(\"REPORTS\");\r\n\t}\r\n\r\n\tHandleChange = (name, value) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleBooleanChange = (name, value) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = JSON.parse(value);\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: this.initialModel, selected: null });\r\n\t}\r\n\r\n\tHandleGetList = () => {\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Reporting/SearchRiskRating\",\r\n\t\t\tthis.state.model,\r\n\t\t\tthis.SuccessListCallback,\r\n\t\t\tthis.ErrorListCallback\r\n\t\t);\r\n\t}\r\n\r\n\tSuccessListCallback = (responseData) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (responseData.Item !== null) {\r\n\t\t\tconst { model } = this.state;\r\n\t\t\tmodel.BeginDate = responseData.Item.BeginDate;\r\n\t\t\tmodel.EndDate = responseData.Item.EndDate;\r\n\t\t\tthis.setState({\r\n\t\t\t\tmodel,\r\n\t\t\t\tperAccList: responseData.Item.PersonalAccountList,\r\n\t\t\t\tcorpAccList: responseData.Item.CorporateAccountList\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\r\n\tErrorListCallback = (error) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t}\r\n\r\n\tGetElementValue = (obj, path) => {\r\n\t\tif (obj == null || path == null)\r\n\t\t\treturn \"\";\r\n\t\treturn [obj].concat(path.split(\".\")).reduce((c, n) => {\r\n\t\t\tif (c) {\r\n\t\t\t\tif (n.toString().includes(\"Percent\")) {\r\n\t\t\t\t\treturn `${c[n].toFixed(1)}%`;\r\n\t\t\t\t}\r\n\t\t\t\treturn c[n];\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tPrint = () => {\r\n\t\tif (this.state.perAccList.length > 0)\r\n\t\t\tthis.PrintPersonalAccountList();\r\n\t}\r\n\r\n\tPrintPersonalAccountList = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tvar keyvalueList = [];\r\n\t\tthis.state.perAccList.forEach(function (listElement) {\r\n\t\t\tvar keyValueObject = {};\r\n\t\t\tthis.GetPersonalColumns().forEach(function (gridColumnElement) {\r\n\t\t\t\tvar valueItem = this.GetElementValue(listElement, gridColumnElement.accessor);\r\n\t\t\t\tkeyValueObject[gridColumnElement.accessor] = { value: valueItem, title: gridColumnElement.Header };\r\n\t\t\t}, this);\r\n\t\t\tkeyvalueList.push(keyValueObject);\r\n\t\t}, this);\r\n\r\n\t\tvar format = \"PDF\";\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/report/CreateFileFromData\",\r\n\t\t\t{\r\n\t\t\t\tjsonFile: {\r\n\t\t\t\t\ttitle: \"Risk Rating Personal Accounts Report\",\r\n\t\t\t\t\ttable: keyvalueList,\r\n\t\t\t\t\tformat: format,\r\n\t\t\t\t\tmodel: {\r\n\t\t\t\t\t\tDateFilter: { BeginDate: this.state.model.BeginDate, EndDate: this.state.model.EndDate }\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tlet a = document.createElement(\"a\");\r\n\t\t\t\ta.style = \"display: none\";\r\n\t\t\t\tdocument.body.appendChild(a);\r\n\t\t\t\ta.href = \"data:application/octet-stream;base64,\" + responseData.Item.value;\r\n\t\t\t\ta.download = \"RiskRatingPersonalAccountsReport.pdf\";\r\n\t\t\t\ta.click();\r\n\t\t\t\tif (this.state.corpAccList.length > 0)\r\n\t\t\t\t\tthis.PrintCorporateAccountList();\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tPrintCorporateAccountList = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tvar keyvalueList = [];\r\n\t\tthis.state.corpAccList.forEach(function (listElement) {\r\n\t\t\tvar keyValueObject = {};\r\n\t\t\tthis.GetCorporateColumns().forEach(function (gridColumnElement) {\r\n\t\t\t\tvar valueItem = this.GetElementValue(listElement, gridColumnElement.accessor);\r\n\t\t\t\tkeyValueObject[gridColumnElement.accessor] = { value: valueItem, title: gridColumnElement.Header };\r\n\t\t\t}, this);\r\n\t\t\tkeyvalueList.push(keyValueObject);\r\n\t\t}, this);\r\n\r\n\t\tvar format = \"PDF\";\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/report/CreateFileFromData\",\r\n\t\t\t{\r\n\t\t\t\tjsonFile: {\r\n\t\t\t\t\ttitle: \"Risk Rating Corporate Accounts Report\",\r\n\t\t\t\t\ttable: keyvalueList,\r\n\t\t\t\t\tformat: format,\r\n\t\t\t\t\tmodel: {\r\n\t\t\t\t\t\tDateFilter: { BeginDate: this.state.model.BeginDate, EndDate: this.state.model.EndDate }\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tlet a = document.createElement(\"a\");\r\n\t\t\t\ta.style = \"display: none\";\r\n\t\t\t\tdocument.body.appendChild(a);\r\n\t\t\t\ta.href = \"data:application/octet-stream;base64,\" + responseData.Item.value;\r\n\t\t\t\ta.download = \"RiskRatingCorporateAccountsReport.pdf\";\r\n\t\t\t\ta.click();\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tvar messages = [];\r\n\r\n\t\tif (model.QuarterFilter) {\r\n\t\t\tif (!model.Year) {\r\n\t\t\t\tvModel.Year = true;\r\n\t\t\t\tmessages.push(\"Year must be select\");\r\n\t\t\t} else {\r\n\t\t\t\tvModel.Year = false;\r\n\t\t\t}\r\n\r\n\t\t\tif (!model.Quarter1 && !model.Quarter2 && !model.Quarter3 && !model.Quarter4) {\r\n\t\t\t\tvModel.Quarter = true;\r\n\t\t\t\tmessages.push(\"Quarter must be select\");\r\n\t\t\t} else {\r\n\t\t\t\tvModel.Quarter = false;\r\n\t\t\t}\r\n\t\t} else if (model.DateFilter) {\r\n\t\t\tif (!model.FromDate) {\r\n\t\t\t\tvModel.FromDate = true;\r\n\t\t\t\tmessages.push(\"From Date must be select\");\r\n\t\t\t} else {\r\n\t\t\t\tvModel.FromDate = false;\r\n\t\t\t}\r\n\r\n\t\t\tif (!model.ToDate) {\r\n\t\t\t\tvModel.ToDate = true;\r\n\t\t\t\tmessages.push(\"To Date must be select\");\r\n\t\t\t} else {\r\n\t\t\t\tvModel.ToDate = false;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tthis.ShowMessage(\"warning\", \"No filter not selected\", \"Select any filter to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.setState({ vModel });\r\n\t\treturn true;\r\n\t}\r\n\r\n\tSumValues = (...arr) => {\r\n\t\treturn arr.length > 0 ? arr[0].reduce((a, b) => a + b, 0) : 0;\r\n\t}\r\n\r\n\tGetPersonalColumns = () => {\r\n\t\tconst { model, perAccList } = this.state;\r\n\r\n\t\tconst columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Individual Accounts\",\r\n\t\t\t\taccessor: \"RiskGroup\",\r\n\t\t\t\tFooter: (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tTotal Individual Accounts\r\n\t\t\t\t\t\r\n\t\t\t\t)\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tif (model.Quarter1) {\r\n\t\t\tcolumns.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Q1\",\r\n\t\t\t\t\taccessor: \"Q1RatingCount\",\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{this.SumValues(perAccList.map(d => d.Q1RatingCount))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Q1%\",\r\n\t\t\t\t\taccessor: \"Q1RatingCountPercent\",\r\n\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Formatter.FormatPercent(row.value)}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t),\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Formatter.FormatPercent(this.SumValues(perAccList.map(d => d.Q1RatingCountPercent)))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\tif (model.Quarter2) {\r\n\t\t\tcolumns.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Q2\",\r\n\t\t\t\t\taccessor: \"Q2RatingCount\",\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{this.SumValues(perAccList.map(d => d.Q2RatingCount))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\tif (model.CumulativeQuarter2) {\r\n\t\t\tcolumns.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"CQ2\",\r\n\t\t\t\t\taccessor: \"CQ2RatingCount\",\r\n\t\t\t\t\tCell: (row =>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{row.original.Q1RatingCount + row.original.Q2RatingCount}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t),\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{this.SumValues(perAccList.map(d => d.Q1RatingCount)) + this.SumValues(perAccList.map(d => d.Q2RatingCount))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\tif (model.Quarter2) {\r\n\t\t\tcolumns.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Q2%\",\r\n\t\t\t\t\taccessor: \"Q2RatingCountPercent\",\r\n\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Formatter.FormatPercent(row.value)}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t),\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Formatter.FormatPercent(this.SumValues(perAccList.map(d => d.Q2RatingCountPercent)))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\tif (model.Quarter3) {\r\n\t\t\tcolumns.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Q3\",\r\n\t\t\t\t\taccessor: \"Q3RatingCount\",\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{this.SumValues(perAccList.map(d => d.Q3RatingCount))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\tif (model.CumulativeQuarter3) {\r\n\t\t\tcolumns.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"CQ3\",\r\n\t\t\t\t\taccessor: \"CQ3RatingCount\",\r\n\t\t\t\t\tCell: (row =>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{row.original.Q1RatingCount + row.original.Q2RatingCount + row.original.Q3RatingCount}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t),\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{this.SumValues(perAccList.map(d => d.Q1RatingCount)) + this.SumValues(perAccList.map(d => d.Q2RatingCount)) + this.SumValues(perAccList.map(d => d.Q3RatingCount))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\tif (model.Quarter3) {\r\n\t\t\tcolumns.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Q3%\",\r\n\t\t\t\t\taccessor: \"Q3RatingCountPercent\",\r\n\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Formatter.FormatPercent(row.value)}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t),\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Formatter.FormatPercent(this.SumValues(perAccList.map(d => d.Q3RatingCountPercent)))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\tif (model.Quarter4) {\r\n\t\t\tcolumns.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Q4\",\r\n\t\t\t\t\taccessor: \"Q4RatingCount\",\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{this.SumValues(perAccList.map(d => d.Q4RatingCount))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\tif (model.CumulativeQuarter4) {\r\n\t\t\tcolumns.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"CQ4\",\r\n\t\t\t\t\taccessor: \"CQ4RatingCount\",\r\n\t\t\t\t\tCell: (row =>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{row.original.Q1RatingCount + row.original.Q2RatingCount + row.original.Q3RatingCount + row.original.Q4RatingCount}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t),\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{this.SumValues(perAccList.map(d => d.Q1RatingCount)) + this.SumValues(perAccList.map(d => d.Q2RatingCount)) + this.SumValues(perAccList.map(d => d.Q3RatingCount)) + this.SumValues(perAccList.map(d => d.Q4RatingCount))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\tif (model.Quarter4) {\r\n\t\t\tcolumns.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Q4%\",\r\n\t\t\t\t\taccessor: \"Q4RatingCountPercent\",\r\n\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Formatter.FormatPercent(row.value)}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t),\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Formatter.FormatPercent(this.SumValues(perAccList.map(d => d.Q4RatingCountPercent)))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\tif (model.DateFilter) {\r\n\t\t\tcolumns.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Between Date\",\r\n\t\t\t\t\taccessor: \"RatingCount\",\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{this.SumValues(perAccList.map(d => d.RatingCount))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Between Date%\",\r\n\t\t\t\t\taccessor: \"RatingCountPercent\",\r\n\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Formatter.FormatPercent(row.value)}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t),\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Formatter.FormatPercent(this.SumValues(perAccList.map(d => d.RatingCountPercent)))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\treturn columns;\r\n\t}\r\n\r\n\tGetCorporateColumns = () => {\r\n\t\tconst { model, corpAccList } = this.state;\r\n\r\n\t\tconst columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Corporate Accounts\",\r\n\t\t\t\taccessor: \"RiskGroup\",\r\n\t\t\t\tFooter: (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tTotal Corporate Accounts\r\n\t\t\t\t\t\r\n\t\t\t\t)\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tif (model.Quarter1) {\r\n\t\t\tcolumns.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Q1\",\r\n\t\t\t\t\taccessor: \"Q1RatingCount\",\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{this.SumValues(corpAccList.map(d => d.Q1RatingCount))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Q1%\",\r\n\t\t\t\t\taccessor: \"Q1RatingCountPercent\",\r\n\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Formatter.FormatPercent(row.value)}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t),\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Formatter.FormatPercent(this.SumValues(corpAccList.map(d => d.Q1RatingCountPercent)))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\tif (model.Quarter2) {\r\n\t\t\tcolumns.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Q2\",\r\n\t\t\t\t\taccessor: \"Q2RatingCount\",\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{this.SumValues(corpAccList.map(d => d.Q2RatingCount))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\tif (model.CumulativeQuarter2) {\r\n\t\t\tcolumns.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"CQ2\",\r\n\t\t\t\t\taccessor: \"CQ2RatingCount\",\r\n\t\t\t\t\tCell: (row =>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{row.original.Q1RatingCount + row.original.Q2RatingCount}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t),\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{this.SumValues(corpAccList.map(d => d.Q1RatingCount)) + this.SumValues(corpAccList.map(d => d.Q2RatingCount))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\tif (model.Quarter2) {\r\n\t\t\tcolumns.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Q2%\",\r\n\t\t\t\t\taccessor: \"Q2RatingCountPercent\",\r\n\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Formatter.FormatPercent(row.value)}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t),\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Formatter.FormatPercent(this.SumValues(corpAccList.map(d => d.Q2RatingCountPercent)))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\tif (model.Quarter3) {\r\n\t\t\tcolumns.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Q3\",\r\n\t\t\t\t\taccessor: \"Q3RatingCount\",\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{this.SumValues(corpAccList.map(d => d.Q3RatingCount))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\tif (model.CumulativeQuarter3) {\r\n\t\t\tcolumns.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"CQ3\",\r\n\t\t\t\t\taccessor: \"CQ3RatingCount\",\r\n\t\t\t\t\tCell: (row =>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{row.original.Q1RatingCount + row.original.Q2RatingCount + row.original.Q3RatingCount}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t),\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{this.SumValues(corpAccList.map(d => d.Q1RatingCount)) + this.SumValues(corpAccList.map(d => d.Q2RatingCount)) + this.SumValues(corpAccList.map(d => d.Q3RatingCount))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\tif (model.Quarter3) {\r\n\t\t\tcolumns.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Q3%\",\r\n\t\t\t\t\taccessor: \"Q3RatingCountPercent\",\r\n\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Formatter.FormatPercent(row.value)}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t),\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Formatter.FormatPercent(this.SumValues(corpAccList.map(d => d.Q3RatingCountPercent)))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\tif (model.Quarter4) {\r\n\t\t\tcolumns.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Q4\",\r\n\t\t\t\t\taccessor: \"Q4RatingCount\",\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{this.SumValues(corpAccList.map(d => d.Q4RatingCount))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\tif (model.CumulativeQuarter4) {\r\n\t\t\tcolumns.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"CQ4\",\r\n\t\t\t\t\taccessor: \"CQ4RatingCount\",\r\n\t\t\t\t\tCell: (row =>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{row.original.Q1RatingCount + row.original.Q2RatingCount + row.original.Q3RatingCount + row.original.Q4RatingCount}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t),\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{this.SumValues(corpAccList.map(d => d.Q1RatingCount)) + this.SumValues(corpAccList.map(d => d.Q2RatingCount)) + this.SumValues(corpAccList.map(d => d.Q3RatingCount)) + this.SumValues(corpAccList.map(d => d.Q4RatingCount))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\tif (model.Quarter4) {\r\n\t\t\tcolumns.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Q4%\",\r\n\t\t\t\t\taccessor: \"Q4RatingCountPercent\",\r\n\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Formatter.FormatPercent(row.value)}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t),\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Formatter.FormatPercent(this.SumValues(corpAccList.map(d => d.Q4RatingCountPercent)))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\tif (model.DateFilter) {\r\n\t\t\tcolumns.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Between Date\",\r\n\t\t\t\t\taccessor: \"RatingCount\",\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{this.SumValues(corpAccList.map(d => d.RatingCount))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Between Date%\",\r\n\t\t\t\t\taccessor: \"RatingCountPercent\",\r\n\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Formatter.FormatPercent(row.value)}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t),\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Formatter.FormatPercent(this.SumValues(corpAccList.map(d => d.RatingCountPercent)))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\treturn columns;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes, Disabled } = this.props;\r\n\t\tconst { alert, isLoading, model, vModel, perAccList, corpAccList } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t<>\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\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\t\t\tgetTfootTrProps={() => {\r\n\t\t\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\t\t\tstyle: {\r\n\t\t\t\t\t\t\t\t\t\tbackground: \"#f8ab72\"\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nRiskRating.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default withStyles(styles)(RiskRating);","import withStyles from \"@material-ui/core/styles/withStyles\";\r\nimport { primaryColor } from \"assets/jss/material-dashboard-pro-react.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ReactTable from \"react-table\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericCheckInput, GenericDateInput, GenericExpansionPanel, GenericSelectInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nconst styles = ({\r\n\tgrayRatingStyle: {\r\n\t\tbackground: \"gray\",\r\n\t\tpadding: \"10px\",\r\n\t\tborder: \"1px solid black\",\r\n\t\ttextAlign: \"center\"\r\n\t},\r\n\torangeRatingStyle: {\r\n\t\tbackground: primaryColor,\r\n\t\tpadding: \"10px\",\r\n\t\tcolor: \"white\",\r\n\t\tborderRadius: \"5px\"\r\n\t}\r\n});\r\n\r\nclass VolumeAnalysis extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {};\r\n\r\n\t\tthis.state = {\r\n\t\t\ttransactionList: [],\r\n\t\t\trevenueList: [],\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tvModel: {},\r\n\t\t\tisLoading: false,\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Volume Analysis\");\r\n\t\tthis.props.setAppCenterTitle(\"REPORTS\");\r\n\t}\r\n\r\n\tHandleChange = (name, value, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tif (name == \"Year1\")\r\n\t\t\tif (data) {\r\n\t\t\t\tmodel.Year1Desc = data.ParameterDesc;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tdelete model.Year1;\r\n\t\t\t\tdelete model.Y1Quarter1; delete model.Y1Quarter2; delete model.Y1Quarter3; delete model.Y1Quarter4;\r\n\t\t\t}\r\n\t\tif (name == \"Year2\")\r\n\t\t\tif (data) {\r\n\t\t\t\tmodel.Year2Desc = data.ParameterDesc;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tdelete model.Year2;\r\n\t\t\t\tdelete model.Y2Quarter1; delete model.Y2Quarter2; delete model.Y2Quarter3; delete model.Y2Quarter4;\r\n\t\t\t}\r\n\t\tif (name == \"Year3\")\r\n\t\t\tif (data) {\r\n\t\t\t\tmodel.Year3Desc = data.ParameterDesc;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tdelete model.Year3;\r\n\t\t\t\tdelete model.Y3Quarter1; delete model.Y3Quarter2; delete model.Y3Quarter3; delete model.Y3Quarter4;\r\n\t\t\t}\r\n\t\tthis.setState({ model });\r\n\r\n\t\tif (name == \"QuarterFilter\") {\r\n\t\t\tdelete model.FromDate;\r\n\t\t\tdelete model.ToDate;\r\n\t\t}\r\n\t\tif (name == \"DateFilter\") {\r\n\t\t\tdelete model.Year1;\r\n\t\t\tdelete model.Year2;\r\n\t\t\tdelete model.Year3;\r\n\t\t\tdelete model.Y1Quarter1; delete model.Y1Quarter2; delete model.Y1Quarter3; delete model.Y1Quarter4;\r\n\t\t\tdelete model.Y2Quarter1; delete model.Y2Quarter2; delete model.Y2Quarter3; delete model.Y2Quarter4;\r\n\t\t\tdelete model.Y3Quarter1; delete model.Y3Quarter2; delete model.Y3Quarter3; delete model.Y3Quarter4;\r\n\t\t}\r\n\t}\r\n\r\n\tHandleBooleanChange = (name, value) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = JSON.parse(value);\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: this.initialModel, selected: null });\r\n\t}\r\n\r\n\tHandleGetList = () => {\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Reporting/SearchVolumeAnalysis\",\r\n\t\t\tthis.state.model,\r\n\t\t\tthis.SuccessListCallback,\r\n\t\t\tthis.ErrorListCallback\r\n\t\t);\r\n\t}\r\n\r\n\tSuccessListCallback = (responseData) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (responseData.Item !== null) {\r\n\t\t\tconst { model } = this.state;\r\n\t\t\tmodel.BeginDate = responseData.Item.BeginDate;\r\n\t\t\tmodel.EndDate = responseData.Item.EndDate;\r\n\t\t\tthis.setState({\r\n\t\t\t\tmodel,\r\n\t\t\t\ttransactionList: responseData.Item.TransactionList,\r\n\t\t\t\trevenueList: responseData.Item.RevenueList\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\r\n\tErrorListCallback = (error) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t}\r\n\r\n\tGetElementValue = (obj, path) => {\r\n\t\tif (obj == null || path == null)\r\n\t\t\treturn \"\";\r\n\t\treturn [obj].concat(path.split(\".\")).reduce((c, n) => c && c[n]);\r\n\t}\r\n\r\n\tGetElementAmountValue = (obj, path) => {\r\n\t\tif (obj == null || path == null)\r\n\t\t\treturn \"\";\r\n\t\treturn [obj].concat(path.split(\".\")).reduce((c, n) => {\r\n\t\t\tif (c) {\r\n\t\t\t\tif (typeof c[n] === \"number\")\r\n\t\t\t\t\treturn `$${c[n].toFixed(2)}`;\r\n\t\t\t\treturn c[n];\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tPrint = () => {\r\n\t\tif (this.state.transactionList.length > 0)\r\n\t\t\tthis.PrintTransactionList();\r\n\t}\r\n\r\n\tPrintTransactionList = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tvar keyvalueList = [];\r\n\t\tthis.state.transactionList.forEach(function (listElement) {\r\n\t\t\tvar keyValueObject = {};\r\n\t\t\tvar isExist = false;\r\n\t\t\tthis.GetTransactionColumns().forEach(function (gridColumnElement) {\r\n\t\t\t\tif (gridColumnElement.Header == \"Transactions\") {\r\n\t\t\t\t\tvar valueItem = this.GetElementValue(listElement, gridColumnElement.accessor);\r\n\t\t\t\t\tkeyValueObject[gridColumnElement.accessor] = { value: valueItem, title: gridColumnElement.Header };\r\n\t\t\t\t\tkeyvalueList.map(x => {\r\n\t\t\t\t\t\tif (x == keyValueObject)\r\n\t\t\t\t\t\t\tisExist = true;\r\n\t\t\t\t\t});\r\n\t\t\t\t\tif (!isExist)\r\n\t\t\t\t\t\tkeyvalueList.push(keyValueObject);\r\n\t\t\t\t}\r\n\t\t\t\tif (gridColumnElement.columns) {\r\n\t\t\t\t\tgridColumnElement.columns.forEach(element => {\r\n\t\t\t\t\t\tvar valueItem = this.GetElementValue(listElement, element.accessor);\r\n\t\t\t\t\t\tkeyValueObject[element.accessor] = { value: valueItem, title: `${gridColumnElement.Header} ${element.Header}` };\r\n\t\t\t\t\t\tkeyvalueList.map(x => {\r\n\t\t\t\t\t\t\tif (x == keyValueObject)\r\n\t\t\t\t\t\t\t\tisExist = true;\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\tif (!isExist)\r\n\t\t\t\t\t\t\tkeyvalueList.push(keyValueObject);\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t}, this);\r\n\t\t}, this);\r\n\r\n\t\tvar format = \"PDF\";\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/report/CreateFileFromData\",\r\n\t\t\t{\r\n\t\t\t\tjsonFile: {\r\n\t\t\t\t\ttitle: \"Volume Analysis Transactions Report\",\r\n\t\t\t\t\ttable: keyvalueList,\r\n\t\t\t\t\tformat: format,\r\n\t\t\t\t\tmodel: {\r\n\t\t\t\t\t\tDateFilter: { BeginDate: this.state.model.BeginDate, EndDate: this.state.model.EndDate }\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tlet a = document.createElement(\"a\");\r\n\t\t\t\ta.style = \"display: none\";\r\n\t\t\t\tdocument.body.appendChild(a);\r\n\t\t\t\ta.href = \"data:application/octet-stream;base64,\" + responseData.Item.value;\r\n\t\t\t\ta.download = \"VolumeAnalysisTransactionsReport.pdf\";\r\n\t\t\t\ta.click();\r\n\t\t\t\tif (this.state.revenueList)\r\n\t\t\t\t\tthis.PrintRevenueList();\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tPrintRevenueList = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tvar keyvalueList = [];\r\n\t\tthis.state.revenueList.forEach(function (listElement) {\r\n\t\t\tvar keyValueObject = {};\r\n\t\t\tvar isExist = false;\r\n\t\t\tthis.GetRevenueColumns().forEach(function (gridColumnElement) {\r\n\t\t\t\tif (gridColumnElement.Header == \"Revenue\") {\r\n\t\t\t\t\tvar valueItem = this.GetElementAmountValue(listElement, gridColumnElement.accessor);\r\n\t\t\t\t\tkeyValueObject[gridColumnElement.accessor] = { value: valueItem, title: gridColumnElement.Header };\r\n\t\t\t\t\tkeyvalueList.map(x => {\r\n\t\t\t\t\t\tif (x == keyValueObject)\r\n\t\t\t\t\t\t\tisExist = true;\r\n\t\t\t\t\t});\r\n\t\t\t\t\tif (!isExist)\r\n\t\t\t\t\t\tkeyvalueList.push(keyValueObject);\r\n\t\t\t\t}\r\n\t\t\t\tif (gridColumnElement.columns) {\r\n\t\t\t\t\tgridColumnElement.columns.forEach(element => {\r\n\t\t\t\t\t\tvar valueItem = this.GetElementAmountValue(listElement, element.accessor);\r\n\t\t\t\t\t\tkeyValueObject[element.accessor] = { value: valueItem, title: `${gridColumnElement.Header} ${element.Header}` };\r\n\t\t\t\t\t\tkeyvalueList.map(x => {\r\n\t\t\t\t\t\t\tif (x == keyValueObject)\r\n\t\t\t\t\t\t\t\tisExist = true;\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\tif (!isExist)\r\n\t\t\t\t\t\t\tkeyvalueList.push(keyValueObject);\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t}, this);\r\n\t\t}, this);\r\n\r\n\t\tvar format = \"PDF\";\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/report/CreateFileFromData\",\r\n\t\t\t{\r\n\t\t\t\tjsonFile: {\r\n\t\t\t\t\ttitle: \"Volume Analysis Revenue Report\",\r\n\t\t\t\t\ttable: keyvalueList,\r\n\t\t\t\t\tformat: format,\r\n\t\t\t\t\tmodel: {\r\n\t\t\t\t\t\tDateFilter: { BeginDate: this.state.model.BeginDate, EndDate: this.state.model.EndDate }\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tlet a = document.createElement(\"a\");\r\n\t\t\t\ta.style = \"display: none\";\r\n\t\t\t\tdocument.body.appendChild(a);\r\n\t\t\t\ta.href = \"data:application/octet-stream;base64,\" + responseData.Item.value;\r\n\t\t\t\ta.download = \"VolumeAnalysisRevenuesReport.pdf\";\r\n\t\t\t\ta.click();\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tvar messages = [];\r\n\r\n\t\tif (model.QuarterFilter) {\r\n\t\t\tif (!model.Year1) {\r\n\t\t\t\tvModel.Year1 = true;\r\n\t\t\t\tmessages.push(\"First Year must be select\");\r\n\t\t\t} else {\r\n\t\t\t\tvModel.Year1 = false;\r\n\t\t\t}\r\n\r\n\t\t\tif (!model.Y1Quarter1 && !model.Y1Quarter2 && !model.Y1Quarter3 && !model.Y1Quarter4) {\r\n\t\t\t\tvModel.Y1Quarter = true;\r\n\t\t\t\tmessages.push(\"Quarter of first year must be select\");\r\n\t\t\t} else {\r\n\t\t\t\tvModel.Y1Quarter = false;\r\n\t\t\t}\r\n\r\n\t\t\tif (!model.Year2) {\r\n\t\t\t\tvModel.Year2 = true;\r\n\t\t\t\tmessages.push(\"Second Year must be select\");\r\n\t\t\t} else {\r\n\t\t\t\tvModel.Year2 = false;\r\n\t\t\t}\r\n\r\n\t\t\tif (!model.Y2Quarter1 && !model.Y2Quarter2 && !model.Y2Quarter3 && !model.Y2Quarter4) {\r\n\t\t\t\tvModel.Y2Quarter = true;\r\n\t\t\t\tmessages.push(\"Quarter of second year must be select\");\r\n\t\t\t} else {\r\n\t\t\t\tvModel.Y2Quarter = false;\r\n\t\t\t}\r\n\r\n\t\t\tif (parseInt(model.Year1Desc) > parseInt(model.Year2Desc) || parseInt(model.Year1Desc) > parseInt(model.Year3Desc) || parseInt(model.Year2Desc) > parseInt(model.Year3Desc)) {\r\n\t\t\t\tthis.ShowMessage(\"warning\", \"Dates are not valid!\", \"Select the small date first.\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\tif (model.Year3) {\r\n\t\t\t\tif (!model.Y3Quarter1 && !model.Y3Quarter2 && !model.Y3Quarter3 && !model.Y3Quarter4) {\r\n\t\t\t\t\tvModel.Y3Quarter = true;\r\n\t\t\t\t\tmessages.push(\"Quarter of third year must be select\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tvModel.Y3Quarter = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else if (model.DateFilter) {\r\n\t\t\tif (!model.FromDate) {\r\n\t\t\t\tvModel.FromDate = true;\r\n\t\t\t\tmessages.push(\"From Date must be select\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tvModel.FromDate = false;\r\n\t\t\t}\r\n\r\n\t\t\tif (!model.ToDate) {\r\n\t\t\t\tvModel.ToDate = true;\r\n\t\t\t\tmessages.push(\"To Date must be select\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tvModel.ToDate = false;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tthis.ShowMessage(\"warning\", \"No filter not selected\", \"Select any filter to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.setState({ vModel });\r\n\t\treturn true;\r\n\t}\r\n\r\n\tSumValues = (...arr) => {\r\n\t\treturn arr.length > 0 ? arr[0].reduce((a, b) => a + b, 0) : 0;\r\n\t}\r\n\r\n\tGetTransactionColumns = () => {\r\n\t\tconst { model, transactionList } = this.state;\r\n\r\n\t\tconst columnHeaders = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transactions\",\r\n\t\t\t\taccessor: \"Transactions\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{row.value}\r\n\t\t\t\t\t\r\n\t\t\t\t),\r\n\t\t\t\tFooter: (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tTotal Transactions\r\n\t\t\t\t\t\r\n\t\t\t\t)\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tconst columnsY1 = [];\r\n\t\tconst columnsY2 = [];\r\n\t\tconst columnsY3 = [];\r\n\r\n\t\tif (model.Year1) {\r\n\t\t\tcolumnHeaders.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: model.Year1Desc,\r\n\t\t\t\t\tcolumns: columnsY1\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\tif (model.Year2) {\r\n\t\t\tcolumnHeaders.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: model.Year2Desc,\r\n\t\t\t\t\tcolumns: columnsY2\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\tif (model.Year3) {\r\n\t\t\tcolumnHeaders.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: model.Year3Desc,\r\n\t\t\t\t\tcolumns: columnsY3\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\tif (model.Y1Quarter1) {\r\n\t\t\tcolumnsY1.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Q1\",\r\n\t\t\t\t\taccessor: \"Y1Q1TransactionCount\",\r\n\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t
{Formatter.FormatNumber(row.value)}
\r\n\t\t\t\t\t),\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Formatter.FormatNumber(this.SumValues(transactionList.filter(d => d.Y1Q1IsTransaction).map(d => d.Y1Q1TransactionCount)))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\tif (model.Y2Quarter1) {\r\n\t\t\tcolumnsY2.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Q1\",\r\n\t\t\t\t\taccessor: \"Y2Q1TransactionCount\",\r\n\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t
{Formatter.FormatNumber(row.value)}
\r\n\t\t\t\t\t),\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Formatter.FormatNumber(this.SumValues(transactionList.filter(d => d.Y2Q1IsTransaction).map(d => d.Y2Q1TransactionCount)))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\tif (model.Y3Quarter1) {\r\n\t\t\tcolumnsY3.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Q1\",\r\n\t\t\t\t\taccessor: \"Y3Q1TransactionCount\",\r\n\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t
{Formatter.FormatNumber(row.value)}
\r\n\t\t\t\t\t),\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Formatter.FormatNumber(this.SumValues(transactionList.filter(d => d.Y3Q1IsTransaction).map(d => d.Y3Q1TransactionCount)))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\tif (model.Y1Quarter2) {\r\n\t\t\tcolumnsY1.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Q2\",\r\n\t\t\t\t\taccessor: \"Y1Q2TransactionCount\",\r\n\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t
{Formatter.FormatNumber(row.value)}
\r\n\t\t\t\t\t),\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Formatter.FormatNumber(this.SumValues(transactionList.filter(d => d.Y1Q2IsTransaction).map(d => d.Y1Q2TransactionCount)))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\tif (model.Y2Quarter2) {\r\n\t\t\tcolumnsY2.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Q2\",\r\n\t\t\t\t\taccessor: \"Y2Q2TransactionCount\",\r\n\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t
{Formatter.FormatNumber(row.value)}
\r\n\t\t\t\t\t),\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Formatter.FormatNumber(this.SumValues(transactionList.filter(d => d.Y2Q2IsTransaction).map(d => d.Y2Q2TransactionCount)))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\tif (model.Y3Quarter2) {\r\n\t\t\tcolumnsY3.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Q2\",\r\n\t\t\t\t\taccessor: \"Y3Q2TransactionCount\",\r\n\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t
{Formatter.FormatNumber(row.value)}
\r\n\t\t\t\t\t),\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Formatter.FormatNumber(this.SumValues(transactionList.filter(d => d.Y3Q2IsTransaction).map(d => d.Y3Q2TransactionCount)))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\tif (model.Y1Quarter3) {\r\n\t\t\tcolumnsY1.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Q3\",\r\n\t\t\t\t\taccessor: \"Y1Q3TransactionCount\",\r\n\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t
{Formatter.FormatNumber(row.value)}
\r\n\t\t\t\t\t),\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Formatter.FormatNumber(this.SumValues(transactionList.filter(d => d.Y1Q3IsTransaction).map(d => d.Y1Q3TransactionCount)))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\tif (model.Y2Quarter3) {\r\n\t\t\tcolumnsY2.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Q3\",\r\n\t\t\t\t\taccessor: \"Y2Q3TransactionCount\",\r\n\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t
{Formatter.FormatNumber(row.value)}
\r\n\t\t\t\t\t),\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Formatter.FormatNumber(this.SumValues(transactionList.filter(d => d.Y2Q3IsTransaction).map(d => d.Y2Q3TransactionCount)))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\tif (model.Y3Quarter3) {\r\n\t\t\tcolumnsY3.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Q3\",\r\n\t\t\t\t\taccessor: \"Y3Q3TransactionCount\",\r\n\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t
{Formatter.FormatNumber(row.value)}
\r\n\t\t\t\t\t),\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Formatter.FormatNumber(this.SumValues(transactionList.filter(d => d.Y3Q3IsTransaction).map(d => d.Y3Q3TransactionCount)))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\tif (model.Y1Quarter4) {\r\n\t\t\tcolumnsY1.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Q4\",\r\n\t\t\t\t\taccessor: \"Y1Q4TransactionCount\",\r\n\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t
{Formatter.FormatNumber(row.value)}
\r\n\t\t\t\t\t),\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Formatter.FormatNumber(this.SumValues(transactionList.filter(d => d.Y1Q4IsTransaction).map(d => d.Y1Q4TransactionCount)))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\tif (model.Y2Quarter4) {\r\n\t\t\tcolumnsY2.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Q4\",\r\n\t\t\t\t\taccessor: \"Y2Q4TransactionCount\",\r\n\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t
{Formatter.FormatNumber(row.value)}
\r\n\t\t\t\t\t),\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Formatter.FormatNumber(this.SumValues(transactionList.filter(d => d.Y2Q4IsTransaction).map(d => d.Y2Q4TransactionCount)))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\tif (model.Y3Quarter4) {\r\n\t\t\tcolumnsY3.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Q4\",\r\n\t\t\t\t\taccessor: \"Y3Q4TransactionCount\",\r\n\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t
{Formatter.FormatNumber(row.value)}
\r\n\t\t\t\t\t),\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Formatter.FormatNumber(this.SumValues(transactionList.filter(d => d.Y3Q4IsTransaction).map(d => d.Y3Q4TransactionCount)))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\tif (model.DateFilter) {\r\n\t\t\tcolumnHeaders.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"\",\r\n\t\t\t\t\taccessor: \"TransactionCount\",\r\n\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t
{Formatter.FormatNumber(row.value)}
\r\n\t\t\t\t\t),\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Formatter.FormatNumber(this.SumValues(transactionList.filter(d => d.IsTransaction).map(d => d.TransactionCount)))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\treturn columnHeaders;\r\n\t}\r\n\r\n\tGetRevenueColumns = () => {\r\n\t\tconst { model, revenueList } = this.state;\r\n\r\n\t\tconst columnHeaders = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Revenue\",\r\n\t\t\t\taccessor: \"Transactions\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{row.value}\r\n\t\t\t\t\t\r\n\t\t\t\t),\r\n\t\t\t\tFooter: (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tTotal Transactions\r\n\t\t\t\t\t\r\n\t\t\t\t)\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tconst columnsY1 = [];\r\n\t\tconst columnsY2 = [];\r\n\t\tconst columnsY3 = [];\r\n\r\n\t\tif (model.Year1) {\r\n\t\t\tcolumnHeaders.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: model.Year1Desc,\r\n\t\t\t\t\tcolumns: columnsY1\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\tif (model.Year2) {\r\n\t\t\tcolumnHeaders.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: model.Year2Desc,\r\n\t\t\t\t\tcolumns: columnsY2\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\tif (model.Year3) {\r\n\t\t\tcolumnHeaders.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: model.Year3Desc,\r\n\t\t\t\t\tcolumns: columnsY3\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\tif (model.Y1Quarter1) {\r\n\t\t\tcolumnsY1.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Q1\",\r\n\t\t\t\t\taccessor: \"Y1Q1TransactionCount\",\r\n\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t
{Formatter.FormatMoney(row.value)}
\r\n\t\t\t\t\t),\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Formatter.FormatMoney(this.SumValues(revenueList.filter(d => d.Y1Q1IsTransaction).map(d => d.Y1Q1TransactionCount)))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\tif (model.Y2Quarter1) {\r\n\t\t\tcolumnsY2.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Q1\",\r\n\t\t\t\t\taccessor: \"Y2Q1TransactionCount\",\r\n\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t
{Formatter.FormatMoney(row.value)}
\r\n\t\t\t\t\t),\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Formatter.FormatMoney(this.SumValues(revenueList.filter(d => d.Y2Q1IsTransaction).map(d => d.Y2Q1TransactionCount)))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\tif (model.Y3Quarter1) {\r\n\t\t\tcolumnsY3.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Q1\",\r\n\t\t\t\t\taccessor: \"Y3Q1TransactionCount\",\r\n\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t
{Formatter.FormatMoney(row.value)}
\r\n\t\t\t\t\t),\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Formatter.FormatMoney(this.SumValues(revenueList.filter(d => d.Y3Q1IsTransaction).map(d => d.Y3Q1TransactionCount)))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\tif (model.Y1Quarter2) {\r\n\t\t\tcolumnsY1.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Q2\",\r\n\t\t\t\t\taccessor: \"Y1Q2TransactionCount\",\r\n\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t
{Formatter.FormatMoney(row.value)}
\r\n\t\t\t\t\t),\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Formatter.FormatMoney(this.SumValues(revenueList.filter(d => d.Y1Q2IsTransaction).map(d => d.Y1Q2TransactionCount)))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\tif (model.Y2Quarter2) {\r\n\t\t\tcolumnsY2.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Q2\",\r\n\t\t\t\t\taccessor: \"Y2Q2TransactionCount\",\r\n\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t
{Formatter.FormatMoney(row.value)}
\r\n\t\t\t\t\t),\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Formatter.FormatMoney(this.SumValues(revenueList.filter(d => d.Y2Q2IsTransaction).map(d => d.Y2Q2TransactionCount)))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\tif (model.Y3Quarter2) {\r\n\t\t\tcolumnsY3.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Q2\",\r\n\t\t\t\t\taccessor: \"Y3Q2TransactionCount\",\r\n\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t
{Formatter.FormatMoney(row.value)}
\r\n\t\t\t\t\t),\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Formatter.FormatMoney(this.SumValues(revenueList.filter(d => d.Y3Q2IsTransaction).map(d => d.Y3Q2TransactionCount)))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\tif (model.Y1Quarter3) {\r\n\t\t\tcolumnsY1.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Q3\",\r\n\t\t\t\t\taccessor: \"Y1Q3TransactionCount\",\r\n\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t
{Formatter.FormatMoney(row.value)}
\r\n\t\t\t\t\t),\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Formatter.FormatMoney(this.SumValues(revenueList.filter(d => d.Y1Q3IsTransaction).map(d => d.Y1Q3TransactionCount)))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\tif (model.Y2Quarter3) {\r\n\t\t\tcolumnsY2.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Q3\",\r\n\t\t\t\t\taccessor: \"Y2Q3TransactionCount\",\r\n\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t
{Formatter.FormatMoney(row.value)}
\r\n\t\t\t\t\t),\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Formatter.FormatMoney(this.SumValues(revenueList.filter(d => d.Y2Q3IsTransaction).map(d => d.Y2Q3TransactionCount)))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\tif (model.Y3Quarter3) {\r\n\t\t\tcolumnsY3.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Q3\",\r\n\t\t\t\t\taccessor: \"Y3Q3TransactionCount\",\r\n\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t
{Formatter.FormatMoney(row.value)}
\r\n\t\t\t\t\t),\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Formatter.FormatMoney(this.SumValues(revenueList.filter(d => d.Y3Q3IsTransaction).map(d => d.Y3Q3TransactionCount)))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\tif (model.Y1Quarter4) {\r\n\t\t\tcolumnsY1.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Q4\",\r\n\t\t\t\t\taccessor: \"Y1Q4TransactionCount\",\r\n\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t
{Formatter.FormatMoney(row.value)}
\r\n\t\t\t\t\t),\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Formatter.FormatMoney(this.SumValues(revenueList.filter(d => d.Y1Q4IsTransaction).map(d => d.Y1Q4TransactionCount)))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\tif (model.Y2Quarter4) {\r\n\t\t\tcolumnsY2.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Q4\",\r\n\t\t\t\t\taccessor: \"Y2Q4TransactionCount\",\r\n\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t
{Formatter.FormatMoney(row.value)}
\r\n\t\t\t\t\t),\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Formatter.FormatMoney(this.SumValues(revenueList.filter(d => d.Y2Q4IsTransaction).map(d => d.Y2Q4TransactionCount)))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\tif (model.Y3Quarter4) {\r\n\t\t\tcolumnsY3.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"Q4\",\r\n\t\t\t\t\taccessor: \"Y3Q4TransactionCount\",\r\n\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t
{Formatter.FormatMoney(row.value)}
\r\n\t\t\t\t\t),\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Formatter.FormatMoney(this.SumValues(revenueList.filter(d => d.Y3Q4IsTransaction).map(d => d.Y3Q4TransactionCount)))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\tif (model.DateFilter) {\r\n\t\t\tcolumnHeaders.push(\r\n\t\t\t\t{\r\n\t\t\t\t\tHeader: \"\",\r\n\t\t\t\t\taccessor: \"TransactionCount\",\r\n\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t
{Formatter.FormatMoney(row.value)}
\r\n\t\t\t\t\t),\r\n\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Formatter.FormatMoney(this.SumValues(revenueList.filter(d => d.IsTransaction).map(d => d.TransactionCount)))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\treturn columnHeaders;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes, Disabled } = this.props;\r\n\t\tconst { alert, isLoading, model, vModel, transactionList, revenueList } = this.state;\r\n\t\treturn (\r\n\t\t\t<>\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t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\r\n\t\t\t\t\t\t\t\t\tstyle: {\r\n\t\t\t\t\t\t\t\t\t\tbackground: \"#f8ab72\",\r\n\t\t\t\t\t\t\t\t\t\tborderBottom: \"1px solid black\"\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\tgetTheadTrProps={() => {\r\n\t\t\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\t\t\tstyle: {\r\n\t\t\t\t\t\t\t\t\t\tbackground: \"#f8ab72\"\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\tgetTfootTrProps={() => {\r\n\t\t\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\t\t\tstyle: {\r\n\t\t\t\t\t\t\t\t\t\tbackground: \"#f8ab72\"\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nVolumeAnalysis.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default withStyles(styles)(VolumeAnalysis);","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericCheckInput, GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTitle, GenericLabel, GenericRadioInput } from \"views/Components/Generic\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport moment from \"moment\";\r\nimport { ProgramCodes, BankingAccountTypes, ClientType, GridColumnType } from \"views/Constants/Constant.js\";\r\nimport { Proxy } from \"core\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport Select from \"react-select\";\r\n\r\nclass WalletStatement extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc,\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Name\",\r\n\t\t\t\taccessor: \"AccountName\",\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Number\",\r\n\t\t\t\taccessor: \"AccountNumber\",\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Source\",\r\n\t\t\t\taccessor: \"TransactionSource\",\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Program\",\r\n\t\t\t\taccessor: \"ProgramName\",\r\n\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"Transaction Type\",\r\n\t\t\t\taccessor: \"TransactionType\",\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Status\",\r\n\t\t\t\taccessor: \"TransactionStatus\",\r\n\t\t\t}\r\n\t\t\t,\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"Amount\", type: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"End of Balance\",\r\n\t\t\t\taccessor: \"EndofBalance\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money,\r\n\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.state = { model: {}, isLoading: false, checkedAccounts: [], ClientTypeParameter: {} };\r\n\t\tthis.trxTable = React.createRef();\r\n\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"BANKING\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Wallet Statement\");\r\n\t\t}\r\n\r\n\t\tthis.GetCustomerBankAccounts();\r\n\t\tthis.GetClientType();\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\r\n\t\tif (name == \"CheckAllAccounts\" && value == true) {\r\n\t\t\tconst list = this.state.customerAccountList;\r\n\t\t\tthis.setState({ checkedAccounts: list });\r\n\t\t} else if (name == \"CheckAllAccounts\" && value == false) {\r\n\t\t\tthis.setState({ checkedAccounts: [] });\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\t}\r\n\tHandleCheckCustomerAccounts = (e, x) => {\r\n\r\n\t\tconst { checkedAccounts } = this.state;\r\n\t\tvar temp = true;\r\n\r\n\t\tconst items = checkedAccounts.map((item, key) => {\r\n\t\t\tif (item.Id == x.Id) {\r\n\t\t\t\tcheckedAccounts.splice(key, 1);\r\n\t\t\t\ttemp = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t);\r\n\r\n\t\tif (checkedAccounts.length == 0 && temp) { checkedAccounts.push(x); }\r\n\t\telse if (temp) { checkedAccounts.push(x); }\r\n\r\n\t\tthis.setState({ checkedAccounts });\r\n\r\n\t}\r\n\tGetCustomerBankAccounts = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Account/CustomerAccountsForBankingPortal\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error !\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ customerAccountList: responseData.Item || [] });\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tRenderAccountTypeParameter = (data) => {\r\n\t\tconst parameter = { ...this.state.ClientTypeParameter };\r\n\t\tif (data == null) {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t\tif (data.AccountCode == null || data.AccountCode == \"\") {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\t\tif (data.AccountCode != BankingAccountTypes.PrimaryAccount) {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\t\tif (data.ProgramCode == null || data.ProgramCode == \"\") {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\t\tif (data.ProgramCode != ProgramCodes.Bank_Programs_Bank_Account) {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\r\n\t\tif (parameter.ParameterValue == ClientType.Corporate || parameter.ParameterValue == ClientType.SalesAgentCorporate) {\r\n\t\t\treturn \"Corporate Account\";\r\n\t\t} else if (parameter.ParameterValue == ClientType.Personal || parameter.ParameterValue == ClientType.SalesAgentPersonal) {\r\n\t\t\treturn \"Individual Account\";\r\n\t\t} else {\r\n\t\t\treturn data.AccountType;\r\n\t\t}\r\n\r\n\t}\r\n\tGetClientType = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/BankCustomer/GetClientType\",\r\n\t\t\t{},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ ClientTypeParameter: responseData.Item });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tSearch = async () => {\r\n\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tconst model = { ...this.state.model };\r\n\t\tvar ids = [];\r\n\t\tthis.state.checkedAccounts.forEach(element => {\r\n\t\t\tids.push(element.Id);\r\n\t\t});\r\n\t\tmodel.AccountIds = ids;\r\n\r\n\t\tvar result = await ExecuteApiPost(\"/bankapi/v1.0/Reporting/WalletStatementList\", model, null, null, null);\r\n\t\tif (result != null) {\r\n\t\t\tthis.setState({ list: result || [] });\r\n\t\t}\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, list: [], selected: null, checkedAccounts: [] });\r\n\t}\r\n\r\n\tExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.accessor != \"Actions\" && c.accessor != \"ED\" && (c.show == undefined || c.show)) {\r\n\t\t\t\ttrxColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: trxColumns, ExportSelectedColumns: trxColumns });\r\n\t}\r\n\t \r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tthis.props.showConfirmMessage(\"question\", \"Long Process Warning\", \"This process may take a while. Continue ?\", () => {\r\n\t\t\tthis.hideAlert();\r\n\r\n\t\t\tconst { model, checkedAccounts } = this.state;\r\n\r\n\t\t\t// Add checkedAccounts\r\n\t\t\tif (checkedAccounts && checkedAccounts.length > 0) {\r\n\t\t\t\tmodel[\"AccountIds\"] = checkedAccounts.map(o => o.Id);\r\n\t\t\t\tcheckedAccounts.forEach(element => {\r\n\t\t\t\t\tif (element.SubAccountList != null) {\r\n\t\t\t\t\t\telement.SubAccountList.forEach(x => {\r\n\t\t\t\t\t\t\tmodel[\"AccountIds\"].push(x);\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}\r\n\r\n\t\t\t// Add jsonFile\r\n\t\t\tvar jsonColList = [];\r\n\r\n\t\t\tvar trxColumns = {};\r\n\t\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\t\ttrxColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t\t});\r\n\t\t\tjsonColList.push(trxColumns);\r\n\r\n\t\t\tmodel[\"jsonFile\"] = {\r\n\t\t\t\tcolmns: jsonColList,\r\n\t\t\t\tformat: this.state.ExportReportType,\r\n\t\t\t\ttitle: \"Wallet Statement\"\r\n\t\t\t};\r\n\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\t\"/bankapi/v1.0/Reporting/WalletStatementExportList\",\r\n\t\t\t\tmodel,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terrorMessage => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t\t},\r\n\t\t\t\tthis.props.showMessage\r\n\t\t\t);\r\n\t\t});\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tvar { model, checkedAccounts } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errors = [];\r\n\r\n\r\n\t\tif (!model.MonthlyFilter && typeof model.FromDate != \"object\" && model.FromDate != \"\" && !model.FromDate) {\r\n\t\t\terrors.push(\"From Date is invalid\");\r\n\t\t}\r\n\r\n\t\tif (!model.MonthlyFilter && typeof model.ToDate != \"object\" && model.ToDate != \"\" && !model.ToDate) {\r\n\t\t\terrors.push(\"To Date is invalid\");\r\n\t\t}\r\n\r\n\t\tif (!model.MonthlyFilter && (typeof model.FromDate == \"object\" && typeof model.ToDate == \"object\") && model.ToDate < model.FromDate) {\r\n\t\t\terrors.push(\"From Date cannot be greater than To Date!\");\r\n\t\t}\r\n\r\n\t\tif (!model.MonthlyFilter && (typeof model.FromDate == \"object\" && typeof model.ToDate == \"object\") && model.ToDate < model.FromDate) {\r\n\t\t\terrors.push(\"From Date cannot be bigger than To Date\");\r\n\t\t}\r\n\r\n\t\tif (checkedAccounts.length == 0 || checkedAccounts.length > 1) {\r\n\t\t\terrors.push(\"There must be only one selected account.\");\r\n\t\t}\r\n\r\n\t\tif (!model.MonthlyFilter && (typeof model.FromDate == \"object\" && typeof model.ToDate == \"object\")) {\r\n\t\t\tvar interval = moment.duration(model.ToDate.diff(model.FromDate)).asDays();\r\n\t\t\tif (interval > 30) {\r\n\t\t\t\terrors.push(\"Between two dates cannot be longer than 30 days!\");\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (model.MonthlyFilter) {\r\n\t\t\tif (model.MonthlyFilterMonth == undefined || model.MonthlyFilterMonth == null) {\r\n\t\t\t\terrors.push(\"Month must be select!\");\r\n\t\t\t}\r\n\t\t\tif (model.MonthlyFilterYear == undefined || model.MonthlyFilterYear == null) {\r\n\t\t\t\terrors.push(\"Year must be select!\");\r\n\t\t\t}\r\n\t\t\tmodel[\"IsMonthlyFilterMonth\"] = !model.MonthlyFilterMonth;\r\n\t\t\tmodel[\"IsMonthlyFilterYear\"] = !model.MonthlyFilterMonth;\r\n\t\t} else {\r\n\r\n\t\t\tmodel[\"IsToDate\"] = !model.ToDate;\r\n\t\t\tmodel[\"IsFromDate\"] = !model.FromDate;\r\n\t\t}\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\tValueChangedRadio = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\trender() {\r\n\t\tconst { model, list, checkedAccounts, customerAccountList } = this.state;\r\n\t\tconst { Disabled, } = this.props;\r\n\t\tvar endDate = (model.FromDate instanceof moment) ? model.FromDate.clone() : \"\";\r\n\t\tvar GridDataAccounts = customerAccountList == null ? [] : customerAccountList.map(d => {\r\n\t\t\treturn {\r\n\t\t\t\tAP: (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t c.Id == d.Id).length > 0}\r\n\t\t\t\t\t\t\tValueChanged={(e) => {\r\n\t\t\t\t\t\t\t\tthis.HandleCheckCustomerAccounts(e, d);\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tId: d.Id,\r\n\t\t\t\tProgramId: d.ProgramId,\r\n\t\t\t\tCustomerBankAccountId: d.CustomerBankAccountId,\r\n\t\t\t\tAccountShortName: d.AccountShortName,\r\n\t\t\t\tBankAccountId: d.BankAccountId,\r\n\t\t\t\tUniqueClientId: d.UniqueClientId,\r\n\t\t\t\tBalance: d.Balance,\r\n\t\t\t\tAccountName: d.AccountName,\r\n\t\t\t\tPendingBalance: d.PendingBalance,\r\n\t\t\t\tAccountNumber: d.AccountNumber,\r\n\t\t\t\tAccountNumberStr: d.AccountNumberStr,\r\n\t\t\t\tBranchNumber: d.BranchNumber,\r\n\t\t\t\tBankNumber: d.BankNumber,\r\n\t\t\t\tAccountTypeId: d.AccountTypeId,\r\n\t\t\t\tAccountType: d.AccountType,\r\n\t\t\t\tAccountType4: d.AccountType4,\r\n\t\t\t\tAccountType6: d.AccountType6,\r\n\t\t\t\tAccountCode: d.AccountCode,\r\n\t\t\t\tProgramCode: d.ProgramCode,\r\n\t\t\t\tProgramName: d.ProgramName,\r\n\t\t\t\tCurrencyCode: d.CurrencyCode,\r\n\t\t\t\tCurrencyDesc: d.CurrencyDesc,\r\n\t\t\t\tCurrencySymbol: d.CurrencySymbol,\r\n\t\t\t\tAmountDisplay: d.AmountDisplay\r\n\t\t\t};\r\n\t\t});\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t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\t\t\t\tAll Accounts{\" \"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Account Type\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"AccountType\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{this.RenderAccountTypeParameter(row.original)}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tTotal{\" \"} {customerAccountList == null ? 0 : customerAccountList.length}{\" \"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Program Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ProgramName\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Account Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"AccountNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Currency\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"CurrencyCode\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Balance\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Balance\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{Formatter.FormatMoneySpecial(row.original.CurrencySymbol, row.value)}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Pending Balance\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"PendingBalance\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{Formatter.FormatMoneySpecial(row.original.CurrencySymbol, row.value)}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_Bank_Account} />\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nWalletStatement.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default WalletStatement;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericSelectInput } from \"views/Components/Generic\";\r\nimport { CrudType, FileCode, FileType } from \"views/Constants/Constant\";\r\nimport { ParameterEmptyObject } from \"views/Constants/Constant.Parameter\";\r\n\r\nclass FeeManage extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.fileInputRef = React.createRef();\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Program\",\r\n\t\t\t\taccessor: \"ProgramDescription\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {}\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"SUPPORT\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Fee Manager\");\r\n\t\t}\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tconst { list } = this.state;\r\n\r\n\t\tthis.setState({ model: list[index], selected: index });\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\t\tvar { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/bankapi/v1.0/FeeManage/Search\", model);\r\n\r\n\t\tmodel.IsProgramId = false;\r\n\r\n\t\tthis.setState({ list: result || [] });\r\n\t}\r\n\r\n\tSubmit = async () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst { model, isFileChanged } = this.state;\r\n\t\tconst { ExecuteApiPost, ExecuteApiFileUpload } = this.props;\r\n\r\n\t\tif (isFileChanged) {\r\n\t\t\tvar formData = new FormData();\r\n\t\t\tformData.append(\"file\", model.File, model.FileName);\r\n\t\t\tformData.append(\"fileId\", model.TempFileId || 0);\r\n\t\t\tformData.append(\"fileCode\", FileCode.FeeManage);\r\n\t\t\tformData.append(\"isBinaryOrBase64\", FileType.Binary);\r\n\t\t\tformData.append(\"isInsertOrUpdate\", model.Id == null ? CrudType.Insert : CrudType.Update);\r\n\r\n\t\t\tvar result = await ExecuteApiFileUpload(\"/coreapi/v1.0/File/Uploadfile\", formData);\r\n\r\n\t\t\tif (result != null) {\r\n\t\t\t\tExecuteApiPost(`/bankapi/v1.0/FeeManage/${model.Id == null ? \"Insert\" : \"Update\"}`,\r\n\t\t\t\t\t{ Id: model.Id, ProgramId: model.ProgramId, FileId: result }, null, null, null, [this.Clear, this.Search], true);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tExecuteApiPost(\"/bankapi/v1.0/FeeManage/Update\", model, null, null, null, [this.Clear, this.Search], true);\r\n\t\t}\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, list: [], selected: null, isFileChanged: false });\r\n\t}\r\n\r\n\tUpload = () => {\r\n\t\tthis.fileInputRef.current.click();\r\n\t}\r\n\r\n\tFileSelect = (e) => {\r\n\t\te.preventDefault();\r\n\r\n\t\tvar file = e.target.files[0];\r\n\t\tif (!file) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar { model } = this.state;\r\n\t\tmodel.TempFileId = model.FileId || 0;\r\n\t\tmodel.File = file;\r\n\t\tmodel.FileName = file.name;\r\n\t\tmodel.FileSelect = true;\r\n\r\n\t\tthis.setState({ model, isFileChanged: true });\r\n\t}\r\n\r\n\tValidate() {\r\n\t\tvar { model } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errors = [];\r\n\r\n\t\tif (!model.ProgramId) {\r\n\t\t\terrors.push(\"Program can not be null.\");\r\n\t\t}\r\n\r\n\t\tif (model.FileName == null\r\n\t\t\t&& model.File == null) {\r\n\t\t\terrors.push(\"Fee manage file can not be null.\");\r\n\t\t}\r\n\r\n\t\tmodel[\"IsProgramId\"] = !model.ProgramId;\r\n\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, list, selected } = this.state;\r\n\t\tconst { Disabled, ExecuteApiPost, ExecuteApiFileDownloadWithGenericResponse, showConfirmMessageInDelete } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t showConfirmMessageInDelete(() => ExecuteApiPost(\"/bankapi/v1.0/FeeManage/Delete\", { Id: model.Id }, null, null, null, [this.Clear, this.Search], true))\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Upload\",\r\n\t\t\t\t\t\t\tDisabled: Disabled,\r\n\t\t\t\t\t\t\tOnClick: this.Upload\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"View\",\r\n\t\t\t\t\t\t\tDisabled: Disabled || selected == null,\r\n\t\t\t\t\t\t\tOnClick: () => ExecuteApiFileDownloadWithGenericResponse(\"/coreapi/v1.0/File/DownloadFileFromBinary\", { FileId: model.FileId }, model.FileName, model.FileExtension)\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Clear\",\r\n\t\t\t\t\t\t\tDisabled: Disabled,\r\n\t\t\t\t\t\t\tOnClick: this.Clear\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nFeeManage.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tExecuteApiFileUpload: PropTypes.func,\r\n\tExecuteApiFileDownload: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default FeeManage;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport { MaxLength500 } from \"views/Constants/Constant.MaxLength\";\r\n\r\nclass FrequentlyAskedQuestionManage extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Program\",\r\n\t\t\t\taccessor: \"ProgramDescription\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Question\",\r\n\t\t\t\taccessor: \"Question\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Answer\",\r\n\t\t\t\taccessor: \"Answer\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.validateProperties = [{ \"ProgramId\": \"Program\" }, { \"Question\": \"Question\" }, { \"Answer\": \"Answer\" }];\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {}\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"Support\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"FAQ Manager\");\r\n\t\t}\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tconst { list } = this.state;\r\n\r\n\t\tthis.setState({ model: list[index], selected: index });\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\t\tvar { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/bankapi/v1.0/FrequentlyAskedQuestion/Search\", model);\r\n\r\n\t\tmodel.IsProgramId = false;\r\n\t\tmodel.IsQuestion = false;\r\n\t\tmodel.IsAnswer = false;\r\n\r\n\t\tthis.setState({ list: result || [] });\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, list: [], selected: null });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, list, selected } = this.state;\r\n\t\tconst { Disabled, ExecuteApiPost, showConfirmMessageInDelete } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t ExecuteApiPost(\"/bankapi/v1.0/FrequentlyAskedQuestion/Insert\", model, model, this.validateProperties, null, [this.Clear, this.Search], true)\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Update\",\r\n\t\t\t\t\t\t\tDisabled: Disabled || selected == null,\r\n\t\t\t\t\t\t\tOnClick: () => ExecuteApiPost(\"/bankapi/v1.0/FrequentlyAskedQuestion/Update\", model, model, this.validateProperties, null, [this.Clear, this.Search], true)\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Delete\",\r\n\t\t\t\t\t\t\tDisabled: Disabled || selected == null,\r\n\t\t\t\t\t\t\tOnClick: () => showConfirmMessageInDelete(() => ExecuteApiPost(\"/bankapi/v1.0/FrequentlyAskedQuestion/Delete\", { Id: model.Id }, null, null, null, [this.Clear, this.Search], true))\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Clear\",\r\n\t\t\t\t\t\t\tDisabled: Disabled,\r\n\t\t\t\t\t\t\tOnClick: this.Clear\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nFrequentlyAskedQuestionManage.propTypes = {\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default FrequentlyAskedQuestionManage;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport { GenericExpansionPanel, GenericLabel, GenericSelectInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nclass FrequentlyAskedQuestionView extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {}\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"Support\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"FAQ\");\r\n\t\t}\r\n\t}\r\n\r\n\tProgramChanged = (name, value) => {\r\n\t\tthis.Search(value);\r\n\t}\r\n\r\n\tSearch = async (programId) => {\r\n\t\tvar { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\r\n\t\tthis.setState({ list: [] });\r\n\r\n\t\tvar result = await ExecuteApiPost(\"/bankapi/v1.0/FrequentlyAskedQuestion/Search\", { ProgramId: programId });\r\n\t\tvar list = [], key = 0;\r\n\t\tmodel.ProgramId = programId;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tif (result != null) {\r\n\t\t\tresult.map(x => {\r\n\t\t\t\tlist.push(\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t);\r\n\t\t\t\tkey++;\r\n\r\n\t\t\t\treturn null;\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tthis.setState({ model, list, isLoading: false });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, list, isLoading } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tlist\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nFrequentlyAskedQuestionView.propTypes = {\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func\r\n};\r\n\r\nexport default FrequentlyAskedQuestionView;","import DateHelper from \"core/DateHelper\";\r\nimport moment from \"moment\";\r\nimport React from \"react\";\r\nimport NumberFormat from \"react-number-format\";\r\n\r\n/**\r\n * @param {number} number\r\n */\r\nfunction FormatNumber(number) {\r\n\tif (number == null) return \"-\";\r\n\tif (typeof number != \"number\") return number;\r\n\treturn ;\r\n}\r\n\r\n/**\r\n * @param {number} number\r\n */\r\nfunction FormatDecimal(number) {\r\n\tif (number == null) return \"-\";\r\n\tif (typeof number != \"number\") return number;\r\n\treturn ;\r\n}\r\n\r\n/**\r\n * @param {number} number\r\n */\r\nfunction FormatMoney(number) {\r\n\treturn FormatMoneySpecial(\"$\", number);\r\n}\r\n\r\n/**\r\n * @param {string} symbol\r\n * @param {number} number\r\n */\r\nfunction FormatMoneySpecial(symbol, number) {\r\n\tif (number == null) return \"-\";\r\n\tif (typeof number != \"number\") return number;\r\n\treturn ;\r\n}\r\n\r\n/**\r\n * @param {moment.MomentInput} date\r\n */\r\nfunction FormatDate(date) {\r\n\tif (date == null) return \"-\";\r\n\treturn FormatDateUtcLocal(date, \"DD/MMM/YY\");\r\n}\r\n\r\n/**\r\n * @param {number} date\r\n */\r\nfunction FormatTxnDate(date) {\r\n\tif (date == null) return \"-\";\r\n\tvar parsedDate = moment(String(date), \"YYYYMMDD\");\r\n\treturn parsedDate.format(\"DD/MMM/YY\");\r\n}\r\n\r\n/**\r\n * @param {moment.MomentInput} date\r\n */\r\nfunction FormatDateTime(date) {\r\n\tif (date == null) return \"-\";\r\n\treturn FormatDateUtcLocal(date, \"DD/MMM/YY hh:mm:ss A\");\r\n}\r\n\r\n/**\r\n * @param {moment.MomentInput} date\r\n */\r\nfunction FormatDateTimeUtc(date) {\r\n\tif (date == null) return \"-\";\r\n\treturn DateHelper.ToMoment(date).format(\"DD/MMM/YY hh:mm:ss A\");\r\n\t\r\n}\r\n\r\n/**\r\n * @param {moment.MomentInput} date\r\n */\r\nfunction FormatTime(date) {\r\n\tif (date == null) return \"-\";\r\n\treturn FormatDateUtcLocal(date, \"hh:mm:ss A\");\r\n}\r\n\r\nfunction FormatTimeUtc(date) {\r\n\tif (date == null) return \"-\";\r\n\treturn FormatDateUtc(date, \"hh:mm:ss A\");\r\n}\r\n\r\n/**\r\n * @param {string|number} value\r\n * @param {number} padNumber\r\n * @param {string} padItem\r\n */\r\nfunction PadLeft(value, padNumber, padItem) {\r\n\tif (value == null || value == \"\") return \"\";\r\n\tif (typeof (value) == \"string\" || typeof (value) == \"number\") {\r\n\t\tvar v = String(value);\r\n\t\treturn v.padStart(padNumber, padItem);\r\n\t}\r\n\telse {\r\n\t\treturn \"Value type is undefined.\";\r\n\t}\r\n}\r\n\r\n/**\r\n * @param {string|number} value\r\n * @param {number} padNumber\r\n * @param {string} padItem\r\n */\r\nfunction PadRight(value, padNumber, padItem) {\r\n\tif (value == null || value == \"\") return \"\";\r\n\tif (typeof (value) == \"string\" || typeof (value) == \"number\") {\r\n\t\tvar v = String(value);\r\n\t\treturn v.padEnd(padNumber, padItem);\r\n\t}\r\n\telse {\r\n\t\treturn \"Value type is undefined.\";\r\n\t}\r\n}\r\n\r\n/**\r\n * @param {number} number\r\n */\r\nfunction FormatPercent(number) {\r\n\tif (number == null) return \"-\";\r\n\tif (typeof number != \"number\") return number;\r\n\treturn ;\r\n}\r\n\r\n/**\r\n * @param {number} number\r\n */\r\nfunction FormatPercentFee(number) {\r\n\tif (number == null) return \"-\";\r\n\tif (typeof number != \"number\") return number;\r\n\treturn ;\r\n}\r\n\r\n/**\r\n * @param {moment.MomentInput} date\r\n * @param {string} format\r\n */\r\nfunction FormatDateUtcLocal(date, format) {\r\n\treturn DateHelper.ToMoment(date).local().format(format);\r\n}\r\n\r\n/**\r\n * @param {moment.MomentInput} date\r\n * @param {string} format\r\n */\r\nfunction FormatDateUtc(date, format = \"DD/MMM/YY\") {\r\n\treturn DateHelper.ToMoment(date).format(format);\r\n}\r\n\r\n/**\r\n * @param {boolean} value\r\n */\r\nfunction FormatYesNo(value) {\r\n\treturn value == true\r\n\t\t? \"Yes\"\r\n\t\t: \"No\";\r\n}\r\n\r\nfunction FormatEstToUtc(date) {\r\n\tmoment(date, \"MM/DD/YYYY HH:mm\").utc().format(\"MM/DD/YYYY HH:mm\");\r\n}\r\n\r\nfunction FormatDateTimeEst(date) {\r\n\tif (date == null) return \"-\";\r\n\treturn DateHelper.ToMoment(date).tz(\"America/New_York\").format(\"DD/MMM/YY hh:mm:ss A\");\r\n\t\r\n}\r\n\r\nconst Formatter = {\r\n\tFormatNumber,\r\n\tFormatDecimal,\r\n\tFormatMoney,\r\n\tFormatMoneySpecial,\r\n\tFormatDate,\r\n\tFormatTxnDate,\r\n\tFormatDateTime,\r\n\tFormatTime,\r\n\tFormatTimeUtc,\r\n\tPadLeft,\r\n\tPadRight,\r\n\tFormatPercent,\r\n\tFormatDateUtcLocal,\r\n\tFormatDateUtc,\r\n\tFormatDateTimeUtc,\r\n\tFormatPercentFee,\r\n\tFormatYesNo,\r\n\tFormatEstToUtc,\r\n\tFormatDateTimeEst\r\n};\r\n\r\nexport default Formatter;","import React from \"react\";\r\n// nodejs library that concatenates classes\r\nimport classNames from \"classnames\";\r\n// nodejs library to set properties for components\r\nimport PropTypes from \"prop-types\";\r\n// @material-ui/core components\r\nimport withStyles from \"@material-ui/core/styles/withStyles\";\r\n// @material-ui/icons\r\n\r\n// core components\r\nimport cardFooterStyle from \"assets/jss/material-dashboard-pro-react/components/cardFooterStyle.jsx\";\r\n\r\nfunction CardFooter({ ...props }) {\r\n const {\r\n classes,\r\n className,\r\n children,\r\n plain,\r\n profile,\r\n pricing,\r\n testimonial,\r\n stats,\r\n chart,\r\n product,\r\n ...rest\r\n } = props;\r\n const cardFooterClasses = classNames({\r\n [classes.cardFooter]: true,\r\n [classes.cardFooterPlain]: plain,\r\n [classes.cardFooterProfile]: profile || testimonial,\r\n [classes.cardFooterPricing]: pricing,\r\n [classes.cardFooterTestimonial]: testimonial,\r\n [classes.cardFooterStats]: stats,\r\n [classes.cardFooterChart]: chart || product,\r\n [className]: className !== undefined\r\n });\r\n return (\r\n
\r\n {children}\r\n
\r\n );\r\n}\r\n\r\nCardFooter.propTypes = {\r\n classes: PropTypes.object.isRequired,\r\n className: PropTypes.string,\r\n plain: PropTypes.bool,\r\n profile: PropTypes.bool,\r\n pricing: PropTypes.bool,\r\n testimonial: PropTypes.bool,\r\n stats: PropTypes.bool,\r\n chart: PropTypes.bool,\r\n product: PropTypes.bool\r\n};\r\n\r\nexport default withStyles(cardFooterStyle)(CardFooter);\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid } from \"views/Components/Generic\";\r\nimport { CrudType, FileCode, FileType } from \"views/Constants/Constant\";\r\n\r\nclass LegalManage extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.fileInputRef = React.createRef();\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"File Name\",\r\n\t\t\t\taccessor: \"FileName\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {}\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"SUPPORT\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Legal Manage\");\r\n\t\t}\r\n\r\n\t\tthis.Search();\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tconst { list } = this.state;\r\n\r\n\t\tthis.setState({ model: list[index], selected: index });\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/File/Search\", { FileCode: FileCode.Legal });\r\n\r\n\t\tthis.setState({ list: result || [] });\r\n\t}\r\n\r\n\tSubmit = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst { model } = this.state;\r\n\t\tconst { ExecuteApiFileUpload } = this.props;\r\n\t\tvar formData = new FormData();\r\n\t\tformData.append(\"file\", model.File, model.FileName);\r\n\t\tformData.append(\"fileId\", model.TempFileId || 0);\r\n\t\tformData.append(\"fileCode\", FileCode.Legal);\r\n\t\tformData.append(\"isBinaryOrBase64\", FileType.Binary);\r\n\t\tformData.append(\"isInsertOrUpdate\", CrudType.Insert);\r\n\r\n\t\tExecuteApiFileUpload(\"/coreapi/v1.0/File/Uploadfile\", formData, [this.Search], true);\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, list: [], selected: null });\r\n\t}\r\n\r\n\tUpload = () => {\r\n\t\tthis.fileInputRef.current.click();\r\n\t}\r\n\r\n\tFileSelect = (e) => {\r\n\t\te.preventDefault();\r\n\r\n\t\tvar file = e.target.files[0];\r\n\t\tif (!file) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar { model } = this.state;\r\n\r\n\t\tmodel.File = file;\r\n\t\tmodel.FileName = file.name;\r\n\r\n\t\tthis.setState({ model });\r\n\t\tthis.Submit();\r\n\t}\r\n\r\n\tValidate() {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errors = [];\r\n\r\n\t\tif (model.FileName == null\r\n\t\t\t&& model.File == null) {\r\n\t\t\terrors.push(\"Legal file can not be null.\");\r\n\t\t}\r\n\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, list, selected } = this.state;\r\n\t\tconst { Disabled, ExecuteApiPost, ExecuteApiFileDownloadWithGenericResponse, showConfirmMessageInDelete } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t showConfirmMessageInDelete(() => ExecuteApiPost(\"/coreapi/v1.0/File/Delete\", { Id: model.FileId }, null, null, null, [this.Clear, this.Search], true))\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Upload\",\r\n\t\t\t\t\t\t\tDisabled: Disabled,\r\n\t\t\t\t\t\t\tOnClick: this.Upload\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"View\",\r\n\t\t\t\t\t\t\tDisabled: Disabled || selected == null,\r\n\t\t\t\t\t\t\tOnClick: () => ExecuteApiFileDownloadWithGenericResponse(\"/coreapi/v1.0/File/DownloadFileFromBinary\", { FileId: model.FileId }, model.FileName, model.FileExtension)\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Clear\",\r\n\t\t\t\t\t\t\tDisabled: Disabled,\r\n\t\t\t\t\t\t\tOnClick: this.Clear\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nLegalManage.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tExecuteApiFileUpload: PropTypes.func,\r\n\tExecuteApiFileDownloadWithGenericResponse: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default LegalManage;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericEmailInput, GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent.jsx\";\r\nimport { MaxLength150, MaxLength500 } from \"views/Constants/Constant.MaxLength\";\r\nimport { ParameterEmptyObject } from \"views/Constants/Constant.Parameter\";\r\nimport { SortedName, SortedOrderIndex, SortedStoreName } from \"views/Constants/Constant.Sorted\";\r\n\r\nclass OnlineSupport extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"CustomerName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Store\",\r\n\t\t\t\taccessor: \"CustomerStoreStoreName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Problem Group\",\r\n\t\t\t\taccessor: \"ProblemGroupParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Priority\",\r\n\t\t\t\taccessor: \"PriorityParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"E-Mail\",\r\n\t\t\t\taccessor: \"MailAddress\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Office Phone Country Code\",\r\n\t\t\t\taccessor: \"OfficePhonePhoneCountryCodeName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Office Phone Number\",\r\n\t\t\t\taccessor: \"OfficePhonePhoneNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Mobile Country Code\",\r\n\t\t\t\taccessor: \"MobilePhonePhoneCountryCodeName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Mobile Number\",\r\n\t\t\t\taccessor: \"MobilePhonePhoneNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Problem Description\",\r\n\t\t\t\taccessor: \"ProblemDescription\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Insert User\",\r\n\t\t\t\taccessor: \"InsertUser\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.customerUniqueClientId = ClientHelper.IsBackOffice() ? -2 : ClientHelper.GetClientRowId();\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tCustomerUniqueClientId: this.customerUniqueClientId\r\n\t\t\t}\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"Support\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Online Support\");\r\n\t\t}\r\n\t}\r\n\r\n\tValueChanged = (name, value, data) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\tif (name == \"MailAddress\") {\r\n\t\t\t\tmodel[\"MailAddressIsValid\"] = data.IsValid;\r\n\t\t\t}\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tconst { list } = this.state;\r\n\t\tvar model = list[index];\r\n\t\tmodel.MailAddressIsValid = true;\r\n\r\n\t\tthis.setState({ model, selected: index });\r\n\t}\r\n\r\n\tGetParameterCustomerStore = () => {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tvar result = {\r\n\t\t\tId: model.CustomerUniqueClientId\r\n\t\t};\r\n\r\n\t\treturn result;\r\n\t}\r\n\r\n\tGetRenderItemClient = (x) => {\r\n\t\tvar result = `${x.Name} - ${x.UniqueClientId}`;\r\n\r\n\t\treturn result;\r\n\t}\r\n\r\n\tGetRenderItemOfficePhone = (x) => {\r\n\t\tvar result = \"+\" + x.Code + \" (\" + x.Name + \")\";\r\n\r\n\t\treturn result;\r\n\t}\r\n\r\n\tGetRenderItemMobilePhone = (x) => {\r\n\t\tvar result = \"+\" + x.Code + \" (\" + x.Name + \")\";\r\n\r\n\t\treturn result;\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\t\tvar { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/OnlineSupport/Search\", model);\r\n\r\n\t\tmodel.IsProblemGroupId = false;\r\n\t\tmodel.IsPriorityId = false;\r\n\t\tmodel.IsMailAddress = false;\r\n\t\tmodel.IsOfficePhoneCountryCodeId = false;\r\n\t\tmodel.IsOfficePhonePhoneNumber = false;\r\n\t\tmodel.IsMobilePhoneCountryCodeId = false;\r\n\t\tmodel.IsMobilePhonePhoneNumber = false;\r\n\t\tmodel.IsProblemDescription = false;\r\n\r\n\t\tthis.setState({ model, list: result || [] });\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: { CustomerUniqueClientId: this.customerUniqueClientId }, list: [], selected: null });\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tvar { model } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errors = [];\r\n\r\n\t\tif (model.CustomerUniqueClientId == -2) {\r\n\t\t\terrors.push(\"Client cannot be null.\");\r\n\t\t}\r\n\t\tif (!model.ProblemGroupId) {\r\n\t\t\terrors.push(\"Problem group cannot be null\");\r\n\t\t}\r\n\t\tif (!model.PriorityId) {\r\n\t\t\terrors.push(\"Priority cannot be null\");\r\n\t\t}\r\n\t\tif (!model.MailAddress) {\r\n\t\t\terrors.push(\"Mail address cannot be null\");\r\n\t\t}\r\n\t\tif (!model.MailAddressIsValid || model.MailAddressIsValid == false) {\r\n\t\t\terrors.push(\"Mail address is not a correct.\");\r\n\t\t}\r\n\t\tif (!model.OfficePhoneCountryCodeId) {\r\n\t\t\terrors.push(\"Office phone country code cannot be null\");\r\n\t\t}\r\n\t\tif (!model.OfficePhonePhoneNumber) {\r\n\t\t\terrors.push(\"Office phone phone number cannot be null\");\r\n\t\t}\r\n\t\tif (!model.MobilePhoneCountryCodeId) {\r\n\t\t\terrors.push(\"Mobile phone country code cannot be null\");\r\n\t\t}\r\n\t\tif (!model.MobilePhonePhoneNumber) {\r\n\t\t\terrors.push(\"Mobile phone number cannot be null\");\r\n\t\t}\r\n\t\tif (!model.ProblemDescription) {\r\n\t\t\terrors.push(\"Problem description cannot be null\");\r\n\t\t}\r\n\r\n\t\tmodel[\"IsCustomerUniqueClientId\"] = model.CustomerUniqueClientId == -2;\r\n\t\tmodel[\"IsProblemGroupId\"] = !model.ProblemGroupId;\r\n\t\tmodel[\"IsPriorityId\"] = !model.PriorityId;\r\n\t\tmodel[\"IsMailAddress\"] = !model.MailAddress;\r\n\t\tmodel[\"IsOfficePhoneCountryCodeId\"] = !model.OfficePhoneCountryCodeId;\r\n\t\tmodel[\"IsOfficePhonePhoneNumber\"] = !model.OfficePhonePhoneNumber;\r\n\t\tmodel[\"IsMobilePhoneCountryCodeId\"] = !model.MobilePhoneCountryCodeId;\r\n\t\tmodel[\"IsMobilePhonePhoneNumber\"] = !model.MobilePhonePhoneNumber;\r\n\t\tmodel[\"IsProblemDescription\"] = !model.ProblemDescription;\r\n\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, list, selected } = this.state;\r\n\t\tconst { Disabled, ExecuteApiPost, showConfirmMessageInDelete } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t ExecuteApiPost(\"/coreapi/v1.0/OnlineSupport/Insert\", model, null, null, this.Validate, [this.Clear, this.Search], true)\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Update\",\r\n\t\t\t\t\t\t\tDisabled: Disabled || selected == null,\r\n\t\t\t\t\t\t\tOnClick: () => ExecuteApiPost(\"/coreapi/v1.0/OnlineSupport/Update\", model, null, null, this.Validate, [this.Clear, this.Search], true)\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Delete\",\r\n\t\t\t\t\t\t\tDisabled: Disabled || selected == null,\r\n\t\t\t\t\t\t\tOnClick: () => showConfirmMessageInDelete(() => ExecuteApiPost(\"/coreapi/v1.0/OnlineSupport/Delete\", { Id: model.Id }, null, null, null, [this.Clear, this.Search], true))\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Clear\",\r\n\t\t\t\t\t\t\tDisabled: Disabled,\r\n\t\t\t\t\t\t\tOnClick: this.Clear\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t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es.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default OnlineSupport;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericTextInput } from \"views/Components/Generic\";\r\nimport { CrudType, FileCode, FileType } from \"views/Constants/Constant\";\r\nimport { MaxLength50 } from \"views/Constants/Constant.MaxLength\";\r\n\r\nclass UserGuideManage extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.fileInputRef = React.createRef();\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Header\",\r\n\t\t\t\taccessor: \"Header\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {}\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"Support\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Download Manager\");\r\n\t\t}\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tconst { list } = this.state;\r\n\r\n\t\tthis.setState({ model: list[index], selected: index });\r\n\t}\r\n\r\n\tIsFileChangedToFalse = () => {\r\n\t\tthis.setState({ isFileChanged: false });\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\t\tvar { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/UserGuide/Search\", model);\r\n\r\n\t\tmodel[\"IsHeader\"] = false;\r\n\r\n\t\tthis.setState({ model, list: result || [] });\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, list: [], selected: null, isFileChanged: false });\r\n\t}\r\n\r\n\tSubmit = async () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst { model, isFileChanged } = this.state;\r\n\t\tconst { ExecuteApiPost, ExecuteApiFileUpload } = this.props;\r\n\r\n\t\tif (isFileChanged) {\r\n\t\t\tvar formData = new FormData();\r\n\t\t\tformData.append(\"file\", model.File, model.FileName);\r\n\t\t\tformData.append(\"fileId\", model.TempFileId || 0);\r\n\t\t\tformData.append(\"fileCode\", FileCode.UserGuide);\r\n\t\t\tformData.append(\"isBinaryOrBase64\", FileType.Binary);\r\n\t\t\tformData.append(\"isInsertOrUpdate\", model.Id == null ? CrudType.Insert : CrudType.Update);\r\n\r\n\t\t\tvar result = await ExecuteApiFileUpload(\"/coreapi/v1.0/File/UploadFile\", formData);\r\n\r\n\t\t\tif (result != null) {\r\n\t\t\t\tExecuteApiPost(`/coreapi/v1.0/UserGuide/${model.Id == null ? \"Insert\" : \"Update\"}`,\r\n\t\t\t\t\t{ Id: model.Id, Header: model.Header, FileId: result }, null, null, null, [this.IsFileChangedToFalse, this.Clear, this.Search], true);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tExecuteApiPost(\"/coreapi/v1.0/UserGuide/Update\", model, null, null, null, [this.Clear, this.Search], true);\r\n\t\t}\r\n\t}\r\n\r\n\tUpload = () => {\r\n\t\tthis.fileInputRef.current.click();\r\n\t}\r\n\r\n\tFileSelect = (e) => {\r\n\t\te.preventDefault();\r\n\r\n\t\tvar file = e.target.files[0];\r\n\t\tif (!file) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar { model } = this.state;\r\n\t\tmodel.TempFileId = model.FileId || 0;\r\n\t\tmodel.File = file;\r\n\t\tmodel.FileName = file.name;\r\n\t\tmodel.FileSelect = true;\r\n\r\n\t\tthis.setState({ model, isFileChanged: true });\r\n\t}\r\n\r\n\tValidate() {\r\n\t\tvar { model } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errors = [];\r\n\r\n\t\tif (!model.Header) {\r\n\t\t\terrors.push(\"Header cannot be empty.\");\r\n\t\t}\r\n\r\n\t\tif (model.FileName == null\r\n\t\t\t&& model.File == null) {\r\n\t\t\terrors.push(\"User guide file cannot be empty.\");\r\n\t\t}\r\n\r\n\t\tmodel[\"IsHeader\"] = !model.Header;\r\n\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, list, selected } = this.state;\r\n\t\tconst { Disabled, ExecuteApiPost, ExecuteApiFileDownloadWithGenericResponse, showConfirmMessageInDelete } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t showConfirmMessageInDelete(() => ExecuteApiPost(\"/coreapi/v1.0/UserGuide/Delete\", { Id: model.Id }, null, null, null, [this.Clear, this.Search], true))\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Upload\",\r\n\t\t\t\t\t\t\tDisabled: Disabled,\r\n\t\t\t\t\t\t\tOnClick: this.Upload\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"View\",\r\n\t\t\t\t\t\t\tDisabled: Disabled || model.FileId == undefined || model.FileSelect,\r\n\t\t\t\t\t\t\tOnClick: () => ExecuteApiFileDownloadWithGenericResponse(\"/coreapi/v1.0/UserGuide/Download\", { Id: model.Id, FileId: model.FileId }, model.Header, model.FileExtension)\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Clear\",\r\n\t\t\t\t\t\t\tDisabled: Disabled,\r\n\t\t\t\t\t\t\tOnClick: this.Clear\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nUserGuideManage.propTypes = {\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tExecuteApiFileUpload: PropTypes.func,\r\n\tExecuteApiFileDownloadWithGenericResponse: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default UserGuideManage;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport DownloadButton from \"views/Components/DownloadButton.jsx\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nclass UserGuideView extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"Support\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Downloads\");\r\n\t\t}\r\n\r\n\t\tthis.List();\r\n\t}\r\n\r\n\tClicked = (index) => {\r\n\t\tconst { result } = this.state;\r\n\t\tconst { ExecuteApiFileDownloadWithGenericResponse } = this.props;\r\n\r\n\t\tExecuteApiFileDownloadWithGenericResponse(\"/coreapi/v1.0/UserGuide/Download\", { Id: result[index].Id, FileId: result[index].FileId }, result[index].Header, result[index].FileExtension);\r\n\t}\r\n\r\n\tList = async () => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/UserGuide/List\", {});\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tvar list = [];\r\n\r\n\t\tif (result != null) {\r\n\t\t\tfor (var i = 0; i < result.length; i += 3) {\r\n\t\t\t\tlist.push(\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\ti + 1 < result.length\r\n\t\t\t\t\t\t\t\t?\r\n\t\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\ti + 2 < result.length\r\n\t\t\t\t\t\t\t\t?\r\n\t\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.setState({ result: result || [], list, isLoading: false });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { list, isLoading } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tlist\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nUserGuideView.propTypes = {\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tExecuteApiFileDownloadWithGenericResponse: PropTypes.func\r\n};\r\n\r\nexport default UserGuideView;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTextInput, GenericCheckInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { ProgramCodes, GridColumnType ,ReportTypeForWalletAccounts} from \"views/Constants/Constant.js\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { Grid } from \"@material-ui/core\";\r\n\r\n\r\nclass AccountReportType extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: null\r\n\t\t};\r\n\t\tthis.parameterAccountType = {\r\n\t\t\tParameterCode: \"AccountReportType\",\r\n\t\t\t//ParameterValue2: \"IsClientCustomer\"\r\n\t\t};\r\n\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Active\",\r\n\t\t\t\taccessor: \"IsActive\",\r\n\t\t\t\ttype: GridColumnType.YesNo,\r\n\t\t\t\tColumnType: GridColumnType.YesNo\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t}, \r\n\t\t\t{\r\n\t\t\t\tHeader: \"Insert DateTime\",\r\n\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tColumnType: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Insert User\",\r\n\t\t\t\taccessor: \"InsertUser\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Update DateTime\",\r\n\t\t\t\taccessor: \"UpdateDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tColumnType: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Update User\",\r\n\t\t\t\taccessor: \"UpdateUser\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.state = {\r\n\t\t\tlist: [],\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tisLoading: false,\r\n\t\t\tvModel: {},\r\n\t\t\tIsInsertOp: false\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Generate Account Report Type\");\r\n\t\tthis.props.setAppCenterTitle(\"SYSTEM ADMIN\");\r\n\t}\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\thandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, vModel: {}, index: -1, IsInsertOp: false });\r\n\t};\r\n\r\n\tIsValid = (operationType) => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tvar errorList = [];\r\n\t\tconst { showValidationErrors } = this.props;\r\n\r\n\t\tvModel.UniqueClientId = model.UniqueClientId == null || model.UniqueClientId == \"\";\r\n\t\tif (vModel.UniqueClientId) {\r\n\t\t\terrorList.push(\"Client cannot be empty.\");\r\n\t\t}\r\n\r\n\t\t// vModel.ReportType = model.ReportType == null || model.ReportType == \"\";\r\n\t\t// if (vModel.ReportType) {\r\n\t\t// \terrorList.push(\"Webhook Type cannot be empty.\");\r\n\t\t// }\r\n\r\n\t\tif (errorList.length > 0) {\r\n\t\t\tshowValidationErrors(errorList);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\r\n\t\tconst model = { ...this.state.model };\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Bank/GetAllAccountReportType\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tmodel,\r\n\t\t\t\t\t\tlist: responseData.Item,\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\tHandleInsertOrUpdate = (operationType) => {\r\n\r\n\t\tif (!this.IsValid(operationType))\r\n\t\t\treturn;\r\n\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel.OperationType = operationType;\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Bank/InsertOrUpdateAccountReportType\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Succeeded\", \"Operation is successfully!\");\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tmodel : { ...this.initialModel },\r\n\t\t\t\t\tisLoading: false,\r\n\t\t\t\t\tindex: -1 \r\n\t\t\t\t});\r\n\t\t\t\tthis.handleClear();\r\n\t\t\t\tthis.HandleSearch();\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\tRowSelected = (index) => {\r\n\t\tlet { model, list } = this.state;\r\n\t\tmodel = list[index];\r\n\r\n\t\tthis.setState({ model, index, IsInsertOp: true });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled, showConfirmMessageInDelete, ExecuteApiPost } = this.props;\r\n\t\tconst { alert, model, list, isLoading, index, vModel, IsInsertOp } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t 0,\r\n\t\t\t\t\t\t\tOnClick: this.HandleSearch\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Submit\",\r\n\t\t\t\t\t\t\tDisabled: Disabled || model.Id > 0,\r\n\t\t\t\t\t\t\tOnClick: () => this.HandleInsertOrUpdate(\"Insert\")\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Update\",\r\n\t\t\t\t\t\t\tDisabled: Disabled || model.Id === 0,\r\n\t\t\t\t\t\t\tOnClick: () => this.HandleInsertOrUpdate(\"Update\")\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Delete\",\r\n\t\t\t\t\t\t\tDisabled: Disabled || model.Id === 0,\r\n\t\t\t\t\t\t\tOnClick: () => showConfirmMessageInDelete(() => ExecuteApiPost(\"/bankapi/v1.0/Bank/InsertOrUpdateAccountReportType\", { Id: model.Id, OperationType: \"Delete\" }, null, null, null, [this.handleClear, this.HandleSearch], true))\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Clear\",\r\n\t\t\t\t\t\t\tDisabled: Disabled,\r\n\t\t\t\t\t\t\tOnClick: this.handleClear\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After}\r\n\t\t\t\t/>\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={ClientHelper.IsClient()}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDefaultIndex={ClientHelper.IsClient() ? 0 : -1} \r\n\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.UniqueClientId}\r\n\t\t\t\t\t\t\t\t\t\t\t\tRequired />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nAccountReportType.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(AccountReportType, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericGrid, GenericLabel } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { CrudType } from \"views/Constants/Constant\";\r\n\r\nclass UploadCfifFile extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t\tisFileChanged: false,\r\n\t\t\tFinancialInstitutionList: [],\r\n\t\t\tFinancialInstitutionBranchList: [],\r\n\t\t\tProcessedItemCount: 0\r\n\t\t};\r\n\r\n\t\tthis.fileInputRef = React.createRef();\r\n\r\n\t\tthis.ColumnsDataInst = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Operation Type\",\r\n\t\t\t\taccessor: \"CrudType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Financial Institution Id\",\r\n\t\t\t\taccessor: \"FinancialInstitutionId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Bank Name\",\r\n\t\t\t\taccessor: \"Description\"\r\n\t\t\t}\r\n\t\t];\r\n\t\tthis.ColumnsDataInstBranch = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Operation Type\",\r\n\t\t\t\taccessor: \"CrudType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Branch Name\",\r\n\t\t\t\taccessor: \"Description\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"City\",\r\n\t\t\t\taccessor: \"CityName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Address\",\r\n\t\t\t\taccessor: \"Address1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Zip Code\",\r\n\t\t\t\taccessor: \"ZipCode\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\tif (this.props.setAppCenterTitle) {\r\n\t\t\tthis.props.setAppCenterTitle(\"SYSTEM ADMIN\");\r\n\t\t}\r\n\r\n\t\tif (this.props.setAppLeftTitle)\r\n\t\t\tthis.props.setAppLeftTitle(\"CFIF File Upload\");\r\n\r\n\t}\r\n\r\n\tOperationCheck = () => {\r\n\t\tvar ErrorList = [];\r\n\t\tvar data = { ...this.state.model.File };\r\n\r\n\t\tif\t(data.File == null || data.FileName == null || data.FileName == \"\"){\r\n\t\t\tErrorList.push(\"Select the CFIF File\");\r\n\t\t}\t\r\n\r\n\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.props.showMessageNode(\"warning\", \"Please fill required fields!\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.FileUpload();\r\n\t}\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar temp = state.model || {};\r\n\t\t\ttemp[name] = newValue;\r\n\t\t\treturn { model: temp };\r\n\t\t});\r\n\t}\r\n\r\n\r\n\tFileUpload = () => {\r\n\t\tvar formData = new FormData();\r\n\t\tvar model = { ...this.state.model.File };\r\n\t\tformData.append(\"file\", model.File, model.FileName);\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.FileUpload(\r\n\t\t\t\"/bankapi/v1.0/BankUtility/UploadCfifFile\",\r\n\t\t\tformData,\r\n\t\t\tresponseData => {\r\n\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.setState({ ProcessedItemCount: responseData.Item.ProcessedItemCount });\r\n\t\t\t\t\tif (responseData.Item.ModifiedInstitution != null) {\r\n\t\t\t\t\t\tresponseData.Item.ModifiedInstitution.forEach(element => element.CrudType = CrudType.Update);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item.AddedInstitution != null) {\r\n\t\t\t\t\t\tresponseData.Item.AddedInstitution.forEach(element => element.CrudType = CrudType.Insert);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item.ModifiedInstitutionBranch != null) {\r\n\t\t\t\t\t\tresponseData.Item.ModifiedInstitutionBranch.forEach(element => element.CrudType = CrudType.Update);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item.AddedInstitutionBranch != null) {\r\n\t\t\t\t\t\tresponseData.Item.AddedInstitutionBranch.forEach(element => element.CrudType = CrudType.Insert);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tvar inst = responseData.Item.ModifiedInstitution.concat(responseData.Item.AddedInstitution);\r\n\t\t\t\t\tvar brach = responseData.Item.ModifiedInstitutionBranch.concat(responseData.Item.AddedInstitutionBranch);\r\n\t\t\t\t\tthis.setState({ FinancialInstitutionList: inst });\r\n\t\t\t\t\tthis.setState({ FinancialInstitutionBranchList: brach });\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Success\", \"File Processed Successfully\");\r\n\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tFileSelect = (e) => {\r\n\t\te.preventDefault();\r\n\r\n\t\tvar file = e.target.files[0];\r\n\t\tif (!file) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar cf = this.state.model.File;\r\n\t\tif (cf == null) {\r\n\t\t\tvar temp = {\r\n\t\t\t\tTempFileId: 0,\r\n\t\t\t\tFile: file,\r\n\t\t\t\tFileName: file.name\r\n\t\t\t};\r\n\t\t\tthis.handleChange(\"File\", temp);\r\n\t\t} else {\r\n\t\t\tcf.TempFileId = cf.Id;\r\n\t\t\tcf.File = file;\r\n\t\t\tcf.FileName = file.name;\r\n\r\n\t\t\tthis.handleChange(\"File\", cf);\r\n\t\t}\r\n\t\tthis.setState({ isFileChanged: true });\r\n\t}\r\n\r\n\tClearData = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {},\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t\tisFileChanged: false,\r\n\t\t\tFinancialInstitutionList: [],\r\n\t\t\tFinancialInstitutionBranchList: [],\r\n\t\t\tProcessedItemCount: 0\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, FinancialInstitutionList, FinancialInstitutionBranchList } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t

Upload CFIF File

\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t 0 ? `Processed Item Count: ${this.state.ProcessedItemCount}` : \"\"}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t 0 ? `Modified Institution Count: ${this.state.FinancialInstitutionList.length}` : \"\"}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t 0 ? `Modified Institution Branch Count: ${this.state.FinancialInstitutionBranchList.length}` : \"\"}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t

Modified Institutions

\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t

Modified Institution Branches

\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nUploadCfifFile.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(UploadCfifFile, {});","import Card from \"components/Card/Card\";\r\nimport CardBody from \"components/Card/CardBody\";\r\nimport GridContainer from \"components/Grid/GridContainer\";\r\nimport GridItem from \"components/Grid/GridItem\";\r\nimport { Proxy } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport ResourceHelper from \"core/ResourceHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericDateInput, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericDialog, GenericLabel, GenericDialogActions, GenericRadioInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Select from \"react-select\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nclass ClientAuditLog extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.isBackOffice = ClientHelper.IsBackOffice();\r\n\t\tthis.clientId = ClientHelper.GetClientRowId();\r\n\r\n\t\tthis.defaultModel = {\r\n\t\t\tUniqueClientId: this.isBackOffice ? undefined : this.clientId,\r\n\t\t\tisLoading: false,\r\n\t\t\tUser: undefined,\r\n\t\t\tMenu: undefined,\r\n\t\t\tAction: undefined,\r\n\t\t\tStartDate: undefined,\r\n\t\t\tEndDate: undefined,\r\n\t\t\tjsonFile: undefined\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: { ...this.defaultModel },\r\n\t\t\tvModel: {}\r\n\t\t};\r\n\r\n\t\tthis.Validate = this.Validate.bind(this);\r\n\t\tthis.SearchClick = this.SearchClick.bind(this);\r\n\t\tthis.ClearClick = this.ClearClick.bind(this);\r\n\t\tthis.ValueChanged = this.ValueChanged.bind(this);\r\n\t\tthis.calogTable = React.createRef();\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\r\n\t\tif (setAppLeftTitle)\r\n\t\t\tsetAppLeftTitle(\"Client Audit Log\");\r\n\t\tif (setAppCenterTitle)\r\n\t\t\tsetAppCenterTitle(\"User Admin\");\r\n\t}\r\n\r\n\tValidate() {\r\n\t\tconst { model, vModel } = this.state;\r\n\r\n\t\tvar messages = [];\r\n\r\n\t\tvModel.StartDate = model.StartDate == null;\r\n\t\tif (vModel.StartDate) messages.push(\"Start Date cannot be null.\");\r\n\t\telse {\r\n\t\t\tvModel.StartDate = typeof model.StartDate != \"object\";\r\n\t\t\tif (vModel.StartDate) messages.push(\"Start Date is invalid.\");\r\n\t\t}\r\n\r\n\t\tvModel.EndDate = model.EndDate == null;\r\n\t\tif (vModel.EndDate) messages.push(\"End Date cannot be null.\");\r\n\t\telse {\r\n\t\t\tvModel.EndDate = typeof model.EndDate != \"object\";\r\n\t\t\tif (vModel.EndDate) messages.push(\"End Date is invalid.\");\r\n\t\t}\r\n\r\n\t\tif (vModel.StartDate == false && vModel.EndDate == false) {\r\n\t\t\tif (model.StartDate > model.EndDate) messages.push(\"Start Date cannot be after End Date.\");\r\n\t\t\telse if (model.EndDate.diff(model.StartDate, \"days\") > 15) messages.push(\"End date cannot exceed 15 days from Start date.\");\r\n\t\t}\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t\tthis.setState({ vModel });\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tSearchClick() {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tvar request = {\r\n\t\t\tUniqueClientId: model.UniqueClientId,\r\n\t\t\tMenuId: model.Menu,\r\n\t\t\tActionId: model.Action,\r\n\t\t\tUserId: model.User,\r\n\t\t\tInsertStartDate: model.StartDate,\r\n\t\t\tInsertEndDate: model.EndDate\r\n\t\t};\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/ClientAuditLog/SearchClientAuditLog\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvar data = responseData.Item || {};\r\n\t\t\t\tthis.setState({ Data: data });\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tClearClick() {\r\n\t\tthis.setState({ model: { ...this.defaultModel } });\r\n\t}\r\n\r\n\tValueChanged(name, value, data) {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\tif (name == \"UniqueClientId\") {\r\n\t\t\t\tmodel.User = \"\";\r\n\t\t\t}\r\n\r\n\t\t\tif (name == \"Menu\") {\r\n\t\t\t\tmodel.Action = \"\";\r\n\t\t\t}\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\tValueChangedForReportType = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\tExportClick = () => {\r\n\t\tvar calogColumns = [];\r\n\t\tthis.calogTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.show == undefined || c.show) {\r\n\t\t\t\tcalogColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: calogColumns, ExportSelectedColumns: calogColumns });\r\n\t}\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\r\n\t\tconst temp = { ...this.state.model };\r\n\r\n\r\n\t\tvar jsonColList = [];\r\n\r\n\t\tvar calogColumns = {};\r\n\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\tcalogColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t});\r\n\t\tjsonColList.push(calogColumns);\r\n\r\n\t\tvar mytitle = \"Client Audit Log\";\r\n\r\n\t\ttemp.jsonFile = {\r\n\t\t\tcolmns: jsonColList,\r\n\t\t\tformat: this.state.ExportReportType,\r\n\t\t\ttitle: mytitle\r\n\t\t};\r\n\r\n\t\tvar request = {\r\n\t\t\t UniqueClientId: temp.UniqueClientId,\r\n\t\t\t\tMenuId:temp.Menu,\r\n\t\t\t\tActionId: temp.Action,\r\n\t\t\t\tUserId : temp.User,\r\n\t\t\t\tInsertStartDate:temp.StartDate,\r\n\t\t\t\tInsertEndDate:temp.EndDate,\r\n\t\t\t\tjsonFile: temp.jsonFile\r\n\t\t};\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\"/coreapi/v1.0/ClientAuditLog/GetClientAuditLogExportDownload\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t},\r\n\t\t\tthis.props.showMessage\r\n\t\t);\r\n\t}\r\n\r\n\tshowLoading = () => { this.setState({ isLoading: true }); }\r\n\thideLoading = () => { this.setState({ isLoading: false }); }\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, vModel, Data, isLoading, alert } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t `${x.UniqueClientId} - ${x.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.ValueChanged}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={Disabled || !this.isBackOffice}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t `${x.FirstName} - ${x.LastName}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={model.User}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.ValueChanged}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={Disabled}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t `${ResourceHelper.GetForMenu(x.MainParentMenuName)} -> ${ResourceHelper.GetForMenu(x.MenuName)}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\tSorted={{ Member: \"Name\" }}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={model.Menu}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.ValueChanged}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t `${x.Action.Code} - ${x.Action.Description}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\tSorted={{ Member: \"Code\" }}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={model.Action}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.ValueChanged}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t `${ResourceHelper.GetForMenu(row.original.MainParentMenuName)} -> ${ResourceHelper.GetForMenu(row.value)}` },\r\n\t\t\t\t\t\t\t\t\t\t\t{ Header: \"Action Name\", accessor: \"ActionName\" },\r\n\t\t\t\t\t\t\t\t\t\t\t{ Header: \"Status\", accessor: \"Status\" },\r\n\t\t\t\t\t\t\t\t\t\t\t{ Header: \"Date\", accessor: \"InsertDateTime\", type: GridColumnType.DateTime }\r\n\t\t\t\t\t\t\t\t\t\t]\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tSorted={[{ id: \"Date\", desc: true }]}\r\n\t\t\t\t\t\t\t\t\tPageSize={10}\r\n\t\t\t\t\t\t\t\t\tShowPagination={true}\r\n\t\t\t\t\t\t\t\t\tref={this.calogTable}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nClientAuditLog.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default ClientAuditLog;","import createReportStyle from \"assets/jss/material-dashboard-pro-react/views/createReportStyle.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { TaskPool } from \"core/TaskPool\";\r\n// used for making the prop types of this component\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport DualListBox from \"react-dual-listbox\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\n// generic components\r\nimport { GenericAlert, GenericDateInput, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass ClientUserAuthorization extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUserIds: []\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tvModel: {},\r\n\t\t\tlist: [],\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tcolumnListBoxOption: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tselected: null,\r\n\t\t\tisFromWorkflow: false\r\n\t\t};\r\n\r\n\t\tthis.loadTaskPool = new TaskPool(this.HandleLoadTaskPoolAppend, this.HandleLoadTaskPoolCompleted);\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\r\n\t\tif (setAppLeftTitle)\r\n\t\t\tsetAppLeftTitle(\"Client User Authorization\");\r\n\t\tif (setAppCenterTitle)\r\n\t\t\tsetAppCenterTitle(\"SYSTEM ADMIN\");\r\n\r\n\t\tthis.HandleClientList();\r\n\t}\r\n\r\n\tHandleLoadTaskPoolCompleted = () => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\tHandleLoadTaskPoolAppend = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t}\r\n\r\n\tColumnListBoxOnChange = (selected) => {\r\n\t\tconst { model } = this.state;\r\n\t\tmodel.UserIds = selected;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, list: [], vModel: {} });\r\n\t}\r\n\r\n\tHandleChange = (name, value) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleSelectModel = (model, index) => {\r\n\t\tthis.setState({ model: model, selected: index });\r\n\t\tthis.HandleGetList({ BackofficeUserId: model.BackofficeUserId, ExpiryDate: model.ExpiryDate });\r\n\t}\r\n\r\n\tHandleGetList = (selected) => {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tthis.loadTaskPool.AppendTask(\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/coreapi/v1.0/ClientUserAuthorization/Search\",\r\n\t\t\t\tselected ? selected : model,\r\n\t\t\t\t(responseData) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\t\tif (selected) {\r\n\t\t\t\t\t\t\tmodel.BackofficeUserId = selected.BackofficeUserId;\r\n\t\t\t\t\t\t\tmodel.ExpiryDate = selected.ExpiryDate;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tmodel.UserIds = [];\r\n\t\t\t\t\t\tresponseData.Item.filter(x => x.BackofficeUserId === model.BackofficeUserId).forEach(x => {\r\n\t\t\t\t\t\t\tmodel.UserIds.push(x.ClientUserId.toString());\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\tthis.setState({ list: responseData.Item, model });\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.setState({ list: [] });\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t(error) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t)\r\n\t\t);\r\n\t}\r\n\r\n\tHandleClientList = () => {\r\n\t\tthis.loadTaskPool.AppendTask(\r\n\t\t\tProxy.GET(\r\n\t\t\t\t\"/coreapi/v1.0/User/GetAllClient\",\r\n\t\t\t\t(responseData) => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\t\tthis.setState({ columnListBoxOption: responseData.Item });\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.setState({ columnListBoxOption: [] });\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t(error) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t)\r\n\t\t);\r\n\t}\r\n\r\n\tHandleSubmit = (workflowId, after) => {\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/ClientUserAuthorization/InsertOrUpdate\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (after) after();\r\n\t\t\t\tthis.HandleGetList();\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t},\r\n\t\t\tworkflowId\r\n\t\t);\r\n\t}\r\n\r\n\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\r\n\t\tif (!model.BackofficeUserId) {\r\n\t\t\tvModel.BackofficeUserId = true;\r\n\t\t\tthis.ShowMessage(\"warning\", \"Backoffice User not selected\", \"Select Backoffice User to continue.\");\r\n\t\t\treturn false;\r\n\t\t} else { vModel.BackofficeUserId = false; }\r\n\r\n\t\tif (!model.ExpiryDate) {\r\n\t\t\tvModel.ExpiryDate = true;\r\n\t\t\tthis.ShowMessage(\"warning\", \"Expiry Date not selected\", \"Select Expiry Date to continue.\");\r\n\t\t\treturn false;\r\n\t\t} else { vModel.ExpiryDate = false; }\r\n\r\n\t\tif (model.UserIds.length < 1) {\r\n\t\t\tvModel.UserIds = true;\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", \"Select at least one client user\");\r\n\t\t\treturn;\r\n\t\t} else { vModel.UserIds = false; }\r\n\t\tthis.setState({ vModel });\r\n\t\treturn true;\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tGetModel = () => {\r\n\t\tconst { model } = this.state;\r\n\t\treturn model;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes, Disabled } = this.props;\r\n\t\tconst { alert, columnListBoxOption, isLoading, model, list, isFromWorkflow, vModel } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t 0, ModelFunction: () => model, FillDataFromModel: model => this.setState({ model, isFromWorkflow: true }), ValidationFunction: this.Validate },\r\n\t\t\t\t\t{ Code: \"Update\", OnClick: this.HandleSubmit, Disabled: Disabled || model.Id === 0, ModelFunction: () => model, FillDataFromModel: model => this.setState({ model, isFromWorkflow: true }), ValidationFunction: this.Validate },\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"value\": i.Id.toString(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"label\": i.UserEmail\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\t\tselected={model.UserIds}\r\n\t\t\t\t\t\t\t\t\t\t\t\tonChange={(selected) => this.ColumnListBoxOnChange(selected)}\r\n\t\t\t\t\t\t\t\t\t\t\t\tdisabled={Disabled}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t{!isFromWorkflow &&\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tconst model = list[index];\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.HandleSelectModel(model, index);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tSelectedIndex={this.state.selected}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nClientUserAuthorization.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(ClientUserAuthorization, createReportStyle);\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericTextInput, GenericNumberInput } from \"views/Components/Generic\";\r\n\r\nclass FinancialInstitution extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Financial Institutio Id\",\r\n\t\t\t\taccessor: \"FinancialInstitutionId\",\r\n\t\t\t\twidth:200\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Description\",\r\n\t\t\t\taccessor: \"Description\",\r\n\r\n\t\t\t},\r\n\r\n\t\t];\r\n\r\n\t\tthis.state = { model: {} };\r\n\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"SYSTEM ADMIN\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Canada Financial Institutions List\");\r\n\t\t}\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tconst { list } = this.state;\r\n\r\n\t\tthis.setState({ model: list[index], selected: index });\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\t\tconst { ExecuteApiGet } = this.props;\r\n\t\tvar result = await ExecuteApiGet(\"/bankapi/v1.0/FinancialInstitution/GetAll\", null, null, null, null);\r\n\r\n\t\tthis.setState({ list: result || [] });\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, list: [], selected: null });\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tvar { model } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errors = [];\r\n\r\n\t\tif (!model.FinancialInstitutionId) {\r\n\t\t\terrors.push(\"Financial Institution Id can not be null.\");\r\n\t\t}\r\n\t\tif (!model.Description) {\r\n\t\t\terrors.push(\"Description can not be null.\");\r\n\t\t}\r\n\r\n\t\tmodel[\"IsFinancialInstitutionId\"] = !model.FinancialInstitutionId;\r\n\t\tmodel[\"IsDescription\"] = !model.Description;\r\n\t \r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\trender() {\r\n\t\tconst { model, list, selected } = this.state;\r\n\t\tconst { Disabled, ExecuteApiPost, showConfirmMessageInDelete } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t ExecuteApiPost(\"/bankapi/v1.0/FinancialInstitution/Insert\", model, null, null, this.Validate, [this.Clear], true)\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Update\",\r\n\t\t\t\t\t\t\tDisabled: Disabled || selected == null,\r\n\t\t\t\t\t\t\tOnClick: () => ExecuteApiPost(\"/bankapi/v1.0/FinancialInstitution/Update\", model, null, null, this.Validate, [this.Clear], true)\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Delete\",\r\n\t\t\t\t\t\t\tDisabled: Disabled || selected == null,\r\n\t\t\t\t\t\t\tOnClick: () => showConfirmMessageInDelete(() => ExecuteApiPost(\"/bankapi/v1.0/FinancialInstitution/DeleteFinancialInstitution\", { Id: model.Id }, null, null, null, [this.Clear,this.Search], true))\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Clear\",\r\n\t\t\t\t\t\t\tDisabled: Disabled,\r\n\t\t\t\t\t\t\tOnClick: this.Clear\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t \t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nFinancialInstitution.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default FinancialInstitution;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTextInput, GenericNumberInput } from \"views/Components/Generic\";\r\nimport Tooltip from \"react-tooltip-lite\";\r\nimport { blackColor } from \"assets/jss/material-dashboard-pro-react.jsx\";\r\n\r\nclass FinancialInstitutionBranchList extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.getappCenterTitle = \"Empty\";\r\n\t\tthis.getappLeftTitle = \"Empty\";\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Financial Institution\",\r\n\t\t\t\taccessor: \"FinancialInstitution\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{this.GetRenderFinancialInstitution(row.original)}
\r\n\t\t\t\t),\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Routing Number\",\r\n\t\t\t\taccessor: \"RoutingNumber\",\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transit Number\",\r\n\t\t\t\taccessor: \"TransitNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Branch\",\r\n\t\t\t\taccessor: \"Description\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Province\",\r\n\t\t\t\taccessor: \"StateCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"City\",\r\n\t\t\t\taccessor: \"CityName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Address1\",\r\n\t\t\t\taccessor: \"Address1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Address2\",\r\n\t\t\t\taccessor: \"Address2\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Postal Code\",\r\n\t\t\t\taccessor: \"ZipCode\"\r\n\t\t\t}\r\n\t\t];\r\n\t\tthis.zIndex10 = { zIndex: 10 }\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"SYSTEM ADMIN\");\tthis.getappCenterTitle = \"SYSTEM ADMIN\";\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Financial Institutions Branch List\");\tthis.getappLeftTitle = \"Financial Institutions Branch List\";\r\n\t\t}\r\n\t\tthis.LoadCanadaPost();\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tconst { list } = this.state;\r\n\r\n\t\tthis.setState({ model: list[index], selected: index });\r\n\t}\r\n\r\n\tGetRenderItemAction = (x) => {\r\n\t\tvar render = `${x.FinancialInstitutionId} - ${x.Description}`;\r\n\t\treturn render;\r\n\t}\r\n\tGetRenderFinancialInstitution = (x) => {\r\n\t\tvar render = `${x.FinancialInstitution.FinancialInstitutionId} - ${x.FinancialInstitution.Description}`;\r\n\t\treturn render;\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/bankapi/v1.0/Bank/GetAllFinancialInstitutionBranch\", model, null, null, null);\r\n\r\n\t\tthis.setState({ list: result || [] });\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, list: [], selected: null });\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tvar { model } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errors = [];\r\n\r\n\t\tif (!model.FinancialInstitutionId) {\r\n\t\t\terrors.push(\"Financial Institution can not be null.\");\r\n\t\t}\r\n\t\tif (!model.TransitNumber) {\r\n\t\t\terrors.push(\"Transit Number can not be null.\");\r\n\t\t}\r\n\t\tif (!model.Description) {\r\n\t\t\terrors.push(\"Description can not be null.\");\r\n\t\t}\r\n\t\tif (!model.CityName) {\r\n\t\t\terrors.push(\"City can not be null.\");\r\n\t\t}\r\n\t\t \r\n\t\tif (!model.ZipCode) {\r\n\t\t\terrors.push(\"Postal Code can not be null.\");\r\n\t\t}\r\n\t\tif (!model.Address1) {\r\n\t\t\terrors.push(\"Address 1 can not be null.\");\r\n\t\t}\r\n\r\n\t\tmodel[\"IsFinancialInstitutionId\"] = !model.FinancialInstitutionId;\r\n\t\tmodel[\"IsTransitNumber\"] = !model.TransitNumber;\r\n\t\tmodel[\"IsDescription\"] = !model.Description;\r\n\t\tmodel[\"IsCityName\"] = !model.CityName;\r\n\t\tmodel[\"IsZipCode\"] = !model.ZipCode;\r\n\t\tmodel[\"IsAddress1\"] = !model.Address1;\r\n\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tLoadCanadaPost = async () => {\r\n\r\n\t\tvar parent = this;\r\n\t\tvar result = await this.props.ExecuteApiPost(\"/coreapi/v1.0/Parameter/Search\", {\r\n\t\t\tParameterCode: \"CanadaPostApiKey\",\r\n\t\t\tParameterValue: \"CP\"\r\n\t\t});\r\n\t\tif (result?.length > 0) {\r\n\t\t\tvar apikey = result[0].ParameterDesc;\r\n\t\t\tconsole.log(\"KEY CP \", apikey);\r\n\r\n\r\n\t\t\tvar url = window.CanadaPostAddressCompleteUrl;\r\n\t\t\tvar path = url + apikey;\r\n\t\t\tvar CanadaPostRequest=this.SubmitCanadaPostRequest;\r\n\r\n\t\t\tvar pca;\r\n\t\t\tconst script = document.createElement(\"script\");\r\n\t\t\tscript.src = path;\r\n\t\t\tscript.async = false;\r\n\t\t\tdocument.head.appendChild(script);\r\n\t\t\tscript.onload = function () {\r\n\t\t\t\tpca = window.pca;\r\n\t\t\t\tif (pca != null) {\r\n\t\t\t\t\tvar fields =\r\n\t\t\t\t\t\t[\r\n\t\t\t\t\t\t\t{ element: \"street-address\", field: \"Line1\", mode: pca.fieldMode.SEARCH },\r\n\t\t\t\t\t\t\t{ element: \"street-address2\", field: \"Line2\", mode: pca.fieldMode.POPULATE },\r\n\t\t\t\t\t\t\t{ element: \"postcode\", field: \"PostalCode\", mode: pca.fieldMode.SEARCH },\r\n\t\t\t\t\t\t],\r\n\t\t\t\t\t\toptions = {\r\n\t\t\t\t\t\t\tkey: apikey\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\tcontrol = new pca.Address(fields, options);\r\n\t\t\t\t\t\tCanadaPostRequest();\r\n\r\n\t\t\t\t\tcontrol.listen(\"populate\", function (address) {\r\n\t\t\t\t\t\tparent.setState(state => {\r\n\t\t\t\t\t\t\tstate.model.Address1 = address.Line1;\r\n\t\t\t\t\t\t\tstate.model.Address2 = address.Line2;\r\n\t\t\t\t\t\t\tstate.model.ZipCode = address.PostalCode;\r\n\t\t\t\t\t\t\tstate.model.StateCode = address.ProvinceCode;\r\n\t\t\t\t\t\t\tstate.model.CityName = address.City;\r\n\t\t\t\t\t\t\treturn state;\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t};\r\n\r\n\t\t}\r\n\r\n\t}\r\n\tSubmitCanadaPostRequest = async () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tvar requestdata = { \r\n\r\n\t\t\tUniqueClientId: null,\r\n\t\t\tMenuCode:this.props.getMenuCode,\r\n\t\t\tAppCenterTitle:this.getappCenterTitle,\r\n\t\t\tAppLeftTitle:this.getappLeftTitle\r\n\t\t};\r\n\t\t// Proxy.POST(\r\n\t\t// \t\"/bankapi/v1.0/Reporting/CanadaPostRequestReportInsert\",\r\n\t\t// \trequestdata,\r\n\t\t// \tresponseData => {\r\n\t\t// \t\tif (responseData.Item != null ) {\r\n\t\t\t\t\t \r\n\t\t// \t\t}\r\n\t\t// \t},\r\n \t\t// );\r\n\t\t var result = await this.props.ExecuteApiPost(\"/bankapi/v1.0/Reporting/CanadaPostRequestReportInsert\", requestdata);\r\n\t}\r\n\trender() {\r\n\t\tconst { model, list, selected } = this.state;\r\n\t\tconst { Disabled, ExecuteApiPost, showConfirmMessageInDelete } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t ExecuteApiPost(\"/bankapi/v1.0/Bank/InsertFinancialInstitutionBranch\", model, null, null, this.Validate, [this.Clear], true)\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Update\",\r\n\t\t\t\t\t\t\tDisabled: Disabled || selected == null,\r\n\t\t\t\t\t\t\tOnClick: () => ExecuteApiPost(\"/bankapi/v1.0/Bank/InsertFinancialInstitutionBranch\", model, null, null, this.Validate, [this.Clear], true)\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Delete\",\r\n\t\t\t\t\t\t\tDisabled: Disabled || selected == null,\r\n\t\t\t\t\t\t\tOnClick: () => showConfirmMessageInDelete(() => ExecuteApiPost(\"/bankapi/v1.0/Bank/DeleteFinancialInstitutionBranch\", { Id: model.Id }, null, null, null, [this.Clear], true))\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Clear\",\r\n\t\t\t\t\t\t\tDisabled: Disabled,\r\n\t\t\t\t\t\t\tOnClick: this.Clear\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nFinancialInstitutionBranchList.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default FinancialInstitutionBranchList;","import customSelectStyle from \"assets/jss/material-dashboard-pro-react/customSelectStyle.jsx\";\r\nimport customCheckboxRadioSwitch from \"assets/jss/material-dashboard-pro-react/customCheckboxRadioSwitch.jsx\";\r\nimport dualListBoxStyle from 'react-dual-listbox/lib/react-dual-listbox.css';\r\nconst createReportStyle = theme => ({\r\n\troot: {\r\n\t\tfontSize: 12\r\n\t},\r\n\t...customSelectStyle,\r\n\t...customCheckboxRadioSwitch,\r\n\t...dualListBoxStyle\r\n\r\n});\r\n\r\nexport default createReportStyle;\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass ManageInteracCustomIntegrationUrls extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t\tlist: []\r\n\t\t};\r\n\r\n\t\tthis.EmptyParameter = {};\r\n\r\n\t\tthis.ColumnsData = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"UniqueClient.ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Unique Client ID\",\r\n\t\t\t\taccessor: \"UniqueClient.UniqueClientId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Parent User Name\",\r\n\t\t\t\taccessor: \"ParentUser.UserName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Parent User Email\",\r\n\t\t\t\taccessor: \"ParentUser.UserEmail\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"API User Name\",\r\n\t\t\t\taccessor: \"ApiUser.UserName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Session Time In Minutes\",\r\n\t\t\t\taccessor: \"SessionTimeInMinutes\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Description\",\r\n\t\t\t\taccessor: \"Description\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date\",\r\n\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t}\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tif (this.props.setAppCenterTitle) {\r\n\t\t\tthis.props.setAppCenterTitle(\"SYSTEM ADMIN\");\r\n\t\t}\r\n\r\n\t\tif (this.props.setAppLeftTitle)\r\n\t\t\tthis.props.setAppLeftTitle(\"Generate API Token\");\r\n\r\n\t}\r\n\r\n\tOperationCheck = () => {\r\n\t\tvar ErrorList = [];\r\n\t\tvar data = { ...this.state.model };\r\n\r\n\t\tif (data.ParentUserId == null || data.ParentUserId == \"\") {\r\n\t\t\tErrorList.push(\"Parent User must be defined !.\");\r\n\t\t}\r\n\t\tif (data.UniqueClientId == null || data.UniqueClientId == \"\") {\r\n\t\t\tErrorList.push(\"Client must be defined !.\");\r\n\t\t}\r\n\t\tif (data.ApiUserId == null || data.ApiUserId == \"\") {\r\n\t\t\tErrorList.push(\"Api User must be defined !.\");\r\n\t\t}\r\n\t\tif (data.SessionTimeInMinutes == null || data.SessionTimeInMinutes == \"\") {\r\n\t\t\tErrorList.push(\"Session Time In Minutes must be defined !.\");\r\n\t\t}\r\n\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.props.showMessageNode(\"warning\", \"Please fill required fields!\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.Submit();\r\n\t}\r\n\tSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/ApiUser/GetApiTokens\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.setState({ list: responseData.Item || [] });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tSubmit = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/ApiUser/SaveApiToken\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Success\", \"Token Success\");\r\n\t\t\t\tthis.setState({ model: responseData.Item || {} });\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar temp = state.model || {};\r\n\t\t\ttemp[name] = newValue;\r\n\t\t\treturn { model: temp };\r\n\t\t});\r\n\t}\r\n\tRenderClientNameSelect = (d) => {\r\n\t\treturn d.Name + \" - \" + d.UniqueClientId;\r\n\t}\r\n\tParentUserParameter = () => {\r\n\t\treturn { UniqueClientId: this.state.model.UniqueClientId };\r\n\t}\r\n\tApiUserParameter = () => {\r\n\t\treturn { UniqueClientId: this.state.model.UniqueClientId, ParentUserId: this.state.model.ParentUserId };\r\n\t}\r\n\tRenderUserNameSelect = (d) => {\r\n\t\treturn d.FirstName + \" \" + d.LastName + \" (\" + d.UserName + \")\";\r\n\t}\r\n\tRenderApiUserNameSelect = (d) => {\r\n\t\treturn d.UserName + \" (\" + d.User.UserName + \")\";\r\n\t}\r\n\tSelectedRowChange = (e, index) => {\r\n\t\tconst model = this.state.list[index];\r\n\t\tthis.setState({ model: model || {} });\r\n\t}\r\n\tClearData = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {},\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t\tlist: []\r\n\t\t});\r\n\t}\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, list } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t

Generate Api Token

\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t

Generated Tokens

\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tthis.SelectedRowChange(0, index);\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\r\n\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nManageInteracCustomIntegrationUrls.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(ManageInteracCustomIntegrationUrls, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { ProgramCodes, GridColumnType } from \"views/Constants/Constant.js\";\r\n\r\nclass PrepaidStatementCallNumber extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: null\r\n\t\t};\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Call Number\",\r\n\t\t\t\taccessor: \"CallNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Insert DateTime\",\r\n\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tColumnType: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Insert User\",\r\n\t\t\t\taccessor: \"InsertUser\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Update DateTime\",\r\n\t\t\t\taccessor: \"UpdateDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tColumnType: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Update User\",\r\n\t\t\t\taccessor: \"UpdateUser\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.state = {\r\n\t\t\tlist: [],\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tisLoading: false,\r\n\t\t\tvModel: {},\r\n\t\t\tIsInsertOp: false\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Prepaid Statement Call Number\");\r\n\t\tthis.props.setAppCenterTitle(\"SYSTEM ADMIN\");\r\n\t}\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\thandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, vModel: {}, index: -1, IsInsertOp: false });\r\n\t};\r\n\r\n\tIsValid = (operationType) => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tvar errorList = [];\r\n\t\tconst { showValidationErrors } = this.props;\r\n\r\n\t\tvModel.UniqueClientId = model.UniqueClientId == null || model.UniqueClientId == \"\";\r\n\t\tif (vModel.UniqueClientId) {\r\n\t\t\terrorList.push(\"Client cannot be empty.\");\r\n\t\t}\r\n\r\n\t\tif (errorList.length > 0) {\r\n\t\t\tshowValidationErrors(errorList);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\r\n\t\tconst model = { ...this.state.model };\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Prepaid/GetAllPrepaidStatementCallNumber\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tmodel,\r\n\t\t\t\t\t\tlist: responseData.Item,\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\tHandleInsertOrUpdate = (operationType) => {\r\n\r\n\t\tif (!this.IsValid(operationType))\r\n\t\t\treturn;\r\n\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel.OperationType = operationType;\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Prepaid/InsertOrUpdatePrepaidStatementCallNumber\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Succeeded\", \"Operation is successfully!\");\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tmodel : { ...this.initialModel },\r\n\t\t\t\t\tisLoading: false,\r\n\t\t\t\t\tindex: -1\r\n\t\t\t\t});\r\n\t\t\t\tthis.handleClear();\r\n\t\t\t\tthis.HandleSearch();\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\tRowSelected = (index) => {\r\n\t\tlet { model, list } = this.state;\r\n\t\tmodel = list[index];\r\n\r\n\t\tthis.setState({ model, index, IsInsertOp: true });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled, showConfirmMessageInDelete, ExecuteApiPost } = this.props;\r\n\t\tconst { alert, model, list, isLoading, index, vModel, IsInsertOp } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t this.HandleInsertOrUpdate(\"Insert\")\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Update\",\r\n\t\t\t\t\t\t\tDisabled: Disabled,\r\n\t\t\t\t\t\t\tOnClick: () => this.HandleInsertOrUpdate(\"Update\")\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Delete\",\r\n\t\t\t\t\t\t\tDisabled: Disabled || model.Id === 0,\r\n\t\t\t\t\t\t\tOnClick: () => showConfirmMessageInDelete(() => ExecuteApiPost(\"/prepaidapi/v1.0/Prepaid/InsertOrUpdatePrepaidStatementCallNumber\", { Id: model.Id, OperationType: \"Delete\" }, null, null, null, [this.handleClear, this.HandleSearch], true))\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Clear\",\r\n\t\t\t\t\t\t\tDisabled: Disabled,\r\n\t\t\t\t\t\t\tOnClick: this.handleClear\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After}\r\n\t\t\t\t/>\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={ClientHelper.IsClient()}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDefaultIndex={ClientHelper.IsClient() ? 0 : -1}\r\n\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.UniqueClientId}\r\n\t\t\t\t\t\t\t\t\t\t\t\tRequired />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nPrepaidStatementCallNumber.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(PrepaidStatementCallNumber, {});\r\n","import { DialogContent, Slide } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { DetailIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericTextInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nfunction Transition(props) {\r\n\treturn ;\r\n}\r\n\r\nclass SchedulerHistory extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t this.JobHistoryDialogOpen(row.original.SchedulerInfoId)} />\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\twidth: 50\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Name\",\r\n\t\t\t\taccessor: \"Name\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Description\",\r\n\t\t\t\taccessor: \"Description\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Full Class Name\",\r\n\t\t\t\taccessor: \"FullClassName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Manner of Work\",\r\n\t\t\t\taccessor: \"MannerOfWork\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Last Run Date\",\r\n\t\t\t\taccessor: \"LastRunDate\",\r\n\t\t\t\ttype: GridColumnType.DateTimeUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Last Run Status\",\r\n\t\t\t\taccessor: \"LastRunStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Send Email After Failed\",\r\n\t\t\t\taccessor: \"SendEmailAfterFailed\",\r\n\t\t\t\ttype: GridColumnType.YesNo\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.columnsJobHistory = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Success\",\r\n\t\t\t\taccessor: \"IsSuccess\",\r\n\t\t\t\tCell: row => (
{row.value != null ? Formatter.FormatYesNo(row.value) : \"\"}
)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Queue Date Time\",\r\n\t\t\t\taccessor: \"QueueDateTime\",\r\n\t\t\t\tCell: row => (
{Formatter.FormatDateTimeUtc(row.value)}
)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Run Status\",\r\n\t\t\t\taccessor: \"RunStatus\",\r\n\t\t\t\tCell: row => (
{row.value}
)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Result Message\",\r\n\t\t\t\taccessor: \"ResultMessage\",\r\n\t\t\t\tCell: row => (
{row.value}
)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Summary\",\r\n\t\t\t\taccessor: \"Summary\",\r\n\t\t\t\tCell: row => (
{row.value}
)\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.columnsRowStyleColor = {};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\tisJobHistoryDialogOpen: false\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"SYSTEM ADMIN\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Scheduler History\");\r\n\t\t}\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tJobHistoryDialogOpen = async (schedulerInfoId) => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/Scheduler/QueueSearch\", { SchedulerInfoId: schedulerInfoId });\r\n\r\n\t\tthis.setState({ listJobHistory: result || [], isJobHistoryDialogOpen: true });\r\n\t}\r\n\r\n\tJobHistoryDialogClose = () => {\r\n\t\tthis.setState({ isJobHistoryDialogOpen: false });\r\n\t}\r\n\r\n\tGetColumnsRowStyleColor(isSuccess) {\r\n\t\tthis.columnsRowStyleColor = {\r\n\t\t\tcolor: isSuccess == true\r\n\t\t\t\t? \"#3CB371\"\r\n\t\t\t\t: isSuccess == false\r\n\t\t\t\t\t? \"#FB3005\"\r\n\t\t\t\t\t: \"\"\r\n\t\t};\r\n\r\n\t\treturn this.columnsRowStyleColor;\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\t\tvar { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/Scheduler/Search\", model);\r\n\r\n\t\tthis.setState({ list: result || [] });\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, list: [], listJobHistory: [] });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, list, listJobHistory, isJobHistoryDialogOpen } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nSchedulerHistory.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default SchedulerHistory;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport StringHelper from '../../core/StringHelper';\r\n\r\nclass SecurityQuestion extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t\tProgramId: null,\r\n\t\t\tSecurityQuestion: \"\",\r\n\t\t\tSecurityQuestionAnswer: \"\"\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tlist: [],\r\n\t\t\tisEdit: false,\r\n\t\t\tisLoading: false,\r\n\t\t\tindex: -1\r\n\t\t};\r\n\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : undefined,\r\n\t\t};\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\r\n\t\tthis.maxLength40 = { maxLength: 40 };\r\n\t\tthis.maxLength25 = { maxLength: 25 };\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"UniqueClient.ClientName\",\r\n\t\t\t\tshow: !ClientHelper.IsClient()\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Program\",\r\n\t\t\t\taccessor: \"Program.Description\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Security Question\",\r\n\t\t\t\taccessor: \"SecurityQuestion\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Security Question Answer\",\r\n\t\t\t\taccessor: \"SecurityQuestionAnswer\"\r\n\t\t\t},\r\n\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Security Question\");\r\n\t\tthis.props.setAppCenterTitle(\"NOTIFICATIONS\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tif (name == \"SecurityQuestionAnswer\") {\r\n\t\t\tmodel[name] = newValue.replace(/\\s/g, \"\");\r\n\t\t}\r\n\t\telse\r\n\t\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = (keepUniqueClientId) => {\r\n\t\tvar emptyModel = { ...this.initialModel };\r\n\t\tif (keepUniqueClientId === true) {\r\n\t\t\temptyModel.UniqueClientId = this.state.model?.UniqueClientId;\r\n\t\t}\r\n\t\tthis.setState({ model: emptyModel, isEdit: false, index: -1 });\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tif (!this.Validate(true)) return;\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/CustomerSecurityQuestion/Search\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ list: responseData.Item || [] });\r\n\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleUpdate = (workflowId, after) => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar model = { ...this.state.model };\r\n\r\n\t\tmodel.SecurityQuestion = (model.SecurityQuestion || \"\").trim();\r\n\t\tmodel.SecurityQuestionAnswer = (model.SecurityQuestionAnswer || \"\").trim();\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/bankapi/v1.0/CustomerSecurityQuestion/InsertOrUpdate\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (after) after();\r\n\t\t\t\tthis.HandleClear(true);\r\n\t\t\t\tthis.HandleSearch();\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Updated successfully!\");\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t},\r\n\t\t\tworkflowId\r\n\t\t);\r\n\t}\r\n\r\n\tHandleDelete = () => {\r\n\t\tthis.ShowConfirmMessage(\"warning\", \"Delete\", \"Are you sure to delete this record?\", () => {\r\n\t\t\tthis.setState({ isLoading: true, alert: \"\" });\r\n\t\t\tProxy.POST(\"/bankapi/v1.0/CustomerSecurityQuestion/Delete\",\r\n\t\t\t\t{ Id: this.state.model.Id },\r\n\t\t\t\t(responseData) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.HandleClear(true);\r\n\t\t\t\t\tthis.HandleSearch();\r\n\t\t\t\t\tthis.ShowMessage(\"success\", \"Deleted successfully!\");\r\n\t\t\t\t},\r\n\t\t\t\t(error) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t});\r\n\t}\r\n\r\n\tHandleSubmit = (workflowId, after) => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tvar model = { ...this.state.model };\r\n\r\n\t\tmodel.SecurityQuestion = (model.SecurityQuestion || \"\").trim();\r\n\t\tmodel.SecurityQuestionAnswer = (model.SecurityQuestionAnswer || \"\").trim();\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/bankapi/v1.0/CustomerSecurityQuestion/InsertOrUpdate\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (after) after();\r\n\t\t\t\tthis.HandleClear(true);\r\n\t\t\t\tthis.HandleSearch();\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Added successfully!\");\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t},\r\n\t\t\tworkflowId\r\n\t\t);\r\n\t}\r\n\r\n\tonlyLetterAndDigit = (str) => {\r\n\t\treturn StringHelper.VerifiyDigitAndLetter(str);\r\n\t}\r\n\r\n\tValidate = (forSearch) => {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tvar validKeys = [\"http:\", \"https:\", \"www.\", \"javascript\", \"function\", \"return\"];\r\n\t\tvar Messages = [];\r\n\r\n\r\n\t\tif (!model.UniqueClientId) {\r\n\t\t\tMessages.push(\"Client cannot be empty.\");\r\n\t\t\tmodel.vUniqueClientId = true;\r\n\t\t} else {\r\n\t\t\tmodel.vUniqueClientId = false;\r\n\t\t}\r\n\r\n\t\tif (!forSearch) {\r\n\t\t\tif (!model.ProgramId) {\r\n\t\t\t\tMessages.push(\"Program cannot be empty.\");\r\n\t\t\t\tmodel.vProgramId = true;\r\n\t\t\t}\r\n\r\n\t\t\tif (!model.SecurityQuestion) {\r\n\t\t\t\tMessages.push(\"Security Question cannot be empty\");\r\n\t\t\t\tmodel.vSecurityQuestion = true;\r\n\t\t\t}\r\n\t\t\tif (model.SecurityQuestion.length > 40) {\r\n\t\t\t\tMessages.push(\"Security Question cannot be bigger then 40 character\");\r\n\t\t\t\tmodel.vSecurityQuestion = true;\r\n\t\t\t}\r\n\t\t\tif (model.SecurityQuestion)\r\n\t\t\t\tvalidKeys.map(x => {\r\n\t\t\t\t\tif (model.SecurityQuestion.toLowerCase().includes(x) && !Messages.includes(\"Security Question contains invalid character.\")) {\r\n\t\t\t\t\t\tMessages.push(\"Security Question contains invalid character.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\r\n\t\t\tif (model.SecurityQuestionAnswer && model.SecurityQuestionAnswer.length > 25) {\r\n\t\t\t\tMessages.push(\"Security Question Answer cannot be bigger then 25 character\");\r\n\t\t\t}\r\n\r\n\t\t\tif (model.SecurityQuestionAnswer) {\r\n\t\t\t\tif (model.SecurityQuestionAnswer.length < 3) {\r\n\t\t\t\t\tMessages.push(\"Security Question Answer cannot be smaller then 3 character\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (model.SecurityQuestionAnswer) {\r\n\t\t\t\tvar check = this.onlyLetterAndDigit(model.SecurityQuestionAnswer);\r\n\t\t\t\tif (check == true)\r\n\t\t\t\t\tMessages.push(\"Security Question Answer contains invalid character.\");\r\n\t\t\t\telse\r\n\t\t\t\t\tvalidKeys.map(x => {\r\n\t\t\t\t\t\tif (model.SecurityQuestionAnswer.toLowerCase().includes(x) && Messages.includes(\"Security Question Answer contains invalid character.\")) {\r\n\t\t\t\t\t\t\tMessages.push(\"Security Question Answer contains invalid character.\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (Messages.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", Messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn true;\r\n\t}\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tvar tempModel = { ...this.state.list[index] };\r\n\t\ttempModel.SecurityQuestionAnswer = null;\r\n\t\tthis.setState({ isEdit: true, model: tempModel, index });\r\n\t}\r\n\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: null })} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, isLoading, index } = this.state;\r\n\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nSecurityQuestion.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(SecurityQuestion, {});\r\n","import {\r\n\tDialog,\r\n\tDialogActions,\r\n\tDialogContent,\r\n\tDialogTitle,\r\n\tIconButton\r\n} from \"@material-ui/core\";\r\nimport { primaryColor } from \"assets/jss/material-dashboard-pro-react.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport { ProfileIcon, EditIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport {\r\n\tGenericAlert,\r\n\t\r\n\tGenericIcon,\r\n\tGenericExpansionPanel,\r\n\tGenericGrid,\r\n\tGenericNumberInput,\r\n\tGenericSelectInput,\r\n\tGenericTextInput\r\n} from \"views/Components/Generic\";\r\nimport { ProgramCodes } from \"views/Constants/Constant.js\";\r\nimport AccountComponent from \"views/Components/AccountComponent\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport ToolbarButton from \"views/Components/ToolbarButton\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nclass TransactionCodeMap extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.emptyModel = {\r\n\t\t\tId : null,\r\n\t\t\tIsRecordValid : null,\r\n\t\t\tNetwork : null,\r\n\t\t\tNetworkId : null,\r\n\t\t\tMti : null,\r\n\t\t\tProcessingCode : null,\r\n\t\t\tTransaction : null,\r\n\t\t\tTransactionId : null,\r\n\t\t};\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t { this.handleSelect(row.original, row.index); }}>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\tresizable: false,\r\n\t\t\t\twidth: 80\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Network\",\r\n\t\t\t\taccessor: \"Network.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"MTI\",\r\n\t\t\t\taccessor: \"Mti\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Processing Code\",\r\n\t\t\t\taccessor: \"ProcessingCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Code\",\r\n\t\t\t\taccessor: \"Transaction.TxnCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Name\",\r\n\t\t\t\taccessor: \"Transaction.TxnName\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.state = {\r\n\t\t\talert : null,\r\n\t\t\tlist: [],\r\n\t\t\tmodel: this.emptyModel,\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Switch Transaction Code Map\");\r\n\t\tthis.props.setAppCenterTitle(\"System Admin\");\r\n\t}\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tconst initialModel = { ...this.emptyModel };\r\n\t\tif (name === \"Network\") {\r\n\t\t\tmodel.Network = data;\r\n\t\t\tmodel.NetworkId = newValue;\r\n\t\t} else if (name === \"Mti\") {\r\n\t\t\tmodel.Mti = newValue;\r\n\t\t} else if (name === \"ProcessingCode\") {\r\n\t\t\tmodel.ProcessingCode = newValue;\r\n\t\t} else if (name === \"Transaction\") {\r\n\t\t\tmodel.Transaction = data;\r\n\t\t\tmodel.TransactionId = newValue;\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\thandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: this.emptyModel,\r\n\t\t\talert : null,\r\n\t\t\tlist: []\r\n\t\t});\r\n\t};\r\n\r\n\thandleSearch = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst request = {\r\n\t\t\tNetworkId : model.Network == null ? model.NetworkId : model.Network.Id,\r\n\t\t\tMti: model.Mti,\r\n\t\t\tProcessingCode: model.ProcessingCode,\r\n\t\t\tTransactionId : model.Transaction == null ? model.TransactionId : model.Transaction.Id\r\n\t\t};\r\n\t\tProxy.ExecuteGeneral(\r\n\t\t\tthis, \"POST\",\r\n\t\t\t\"/prepaidapi/v1.0/TransactionCodeMap/Search\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tlist: responseData.Item\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\thandleSubmit = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst request = {\r\n\t\t\tIsRecordValid : true,\r\n\t\t\tId : model.Id == null ? 0 : model.Id,\r\n\t\t\tNetworkId : model.Network == null ? 0 : model.Network.Id,\r\n\t\t\tMti: model.Mti == null ? null : model.Mti,\r\n\t\t\tProcessingCode: model.ProcessingCode == null ? null : model.ProcessingCode,\r\n\t\t\tTransactionId : model.Transaction == null ? 0 : model.Transaction.Id\r\n\t\t};\r\n\r\n\t\tProxy.ExecuteGeneral(\r\n\t\t\tthis, \"POST\",\r\n\t\t\t\"/prepaidapi/v1.0/TransactionCodeMap/\" + (model.Id == null ? \"Insert\" : \"Update\"),\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tmodel : this.emptyModel\r\n\t\t\t\t}, this.handleSearch);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\thandleDelete = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst request = {\r\n\t\t\tIsRecordValid : false,\r\n\t\t\tId : model.Id == null ? 0 : model.Id,\r\n\t\t\tNetworkId : model.Network == null ? 0 : model.Network.Id,\r\n\t\t\tMti: model.Mti == null ? null : model.Mti,\r\n\t\t\tProcessingCode: model.ProcessingCode == null ? null : model.ProcessingCode,\r\n\t\t\tTransactionId : model.Transaction == null ? 0 : model.Transaction.Id\r\n\t\t};\r\n\r\n\t\tProxy.ExecuteGeneral(\r\n\t\t\tthis, \"POST\",\r\n\t\t\t\"/prepaidapi/v1.0/TransactionCodeMap/Update\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tmodel : this.emptyModel\r\n\t\t\t\t}, this.handleSearch);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\thandleSelect = (data, index) => {\r\n\t\tvar clonedData = Object.assign({}, data);\r\n\t\tthis.setState({ model : clonedData});\r\n\t};\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, alert, list, isLoading } = this.state;\r\n\t\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t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t\tOnConfirm={onConfirm}\r\n\t\t\t\t/>\r\n\t\t\t)\r\n\t\t});\r\n\t};\r\n}\r\n\r\nTransactionCodeMap.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\thandleChange: PropTypes.func,\r\n\tmenuId: PropTypes.number,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default withArtifex(TransactionCodeMap, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { DeleteIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass GenerateApiToken extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tvModel: {},\r\n\t\t\tmodel: {},\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t\tlist: []\r\n\t\t};\r\n\r\n\t\tthis.sortName = { Member: \"Name\" };\r\n\t\tthis.EmptyParameter = {};\r\n\t\tthis.ParameterChannel = { ParameterCode: \"Channel\", ParameterValue2: \"T\" };\r\n\r\n\t\tthis.ColumnsData = [\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Status\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t { } : () => { this.HandleChangeActiveStatus(row.original); }} />\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Channel\",\r\n\t\t\t\taccessor: \"Channel.ParameterValue6\"\t\t\t\t\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date\",\r\n\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Status\",\r\n\t\t\t\taccessor: \"Status\",\r\n\t\t\t\tCell: row => {\r\n\t\t\t\t\treturn (row.value == 1 ? \"Active\" : row.value == 2 ? \"Expired\" : row.value == 3 ? \"In Black List\" : \"\");\r\n\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"UniqueClient.ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"User Name\",\r\n\t\t\t\taccessor: \"ParentUser.UserName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"User Email\",\r\n\t\t\t\taccessor: \"ParentUser.UserEmail\"\r\n\t\t\t},\t\t\t\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Session Time In Minutes\",\r\n\t\t\t\taccessor: \"SessionTimeInMinutes\"\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Token Expiry Date\",\r\n\t\t\t\taccessor: \"SessionExpiredDate\",\r\n\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Description\",\r\n\t\t\t\taccessor: \"Description\"\r\n\t\t\t}\r\n\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tif (this.props.setAppCenterTitle) {\r\n\t\t\tthis.props.setAppCenterTitle(\"SYSTEM ADMIN\");\r\n\t\t}\r\n\r\n\t\tif (this.props.setAppLeftTitle)\r\n\t\t\tthis.props.setAppLeftTitle(\"Generate API Token\");\r\n\r\n\t}\r\n\tShowConfirmMessage = (type, title, message, onConfirm, showCancel = true) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: null })} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\tHandleChangeActiveStatus = (model) => {\r\n\t\tthis.ShowConfirmMessage(\"warning\", \"Warning\",\r\n\t\t\t\"Are you sure you want to add to the Black List?\", () => {\r\n\t\t\t\tthis.setState({ alert: null, isLoading: true });\r\n\t\t\t\tProxy.POST(\r\n\t\t\t\t\t\"/coreapi/v1.0/JwtTokenBlackList/SaveBlackListToken\", this.state.model,\r\n\t\t\t\t\tresponseData => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\t\tthis.props.showMessage(\"error\", responseData.Code, responseData.ErrorDescription);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (responseData.Item) {\r\n\t\t\t\t\t\t\tthis.ClearData();\r\n\t\t\t\t\t\t\tthis.Search();\r\n\t\t\t\t\t\t\tthis.props.showMessage(\"success\", \"Success\", \"Success\");\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", \"There was an error adding to the blacklist\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t);\r\n\t\t\t});\r\n\t}\r\n\r\n\tOperationCheck = () => {\r\n\t\tvar ErrorList = [];\r\n\t\tvar data = { ...this.state.model };\r\n\t\tconst vModel = this.state.vModel;\r\n\r\n\t\tif (data.ParentUserId == null || data.ParentUserId == \"\") {\r\n\t\t\tvModel.ParentUserId = true;\r\n\t\t\tErrorList.push(\"User Name must be defined!\");\r\n\t\t} else { vModel.ParentUserId = false; }\r\n\t\tif (data.UniqueClientId == null || data.UniqueClientId == \"\") {\r\n\t\t\tvModel.UniqueClientId = true;\r\n\t\t\tErrorList.push(\"Client Name must be defined!\");\r\n\t\t} else { vModel.UniqueClientId = false; }\r\n\r\n\t\tif (data.ChannelType == \"2\") {\r\n\t\t\tif (data.ApiUserId == null || data.ApiUserId == \"\") {\r\n\t\t\t\tvModel.ApiUserId = true;\r\n\t\t\t\tErrorList.push(\"Api User Name must be defined!\");\r\n\t\t\t} else { vModel.ApiUserId = false; }\r\n\t\t}\r\n\r\n\t\tif (data.SessionTimeInMinutes == null || data.SessionTimeInMinutes == \"\") {\r\n\t\t\tvModel.SessionTimeInMinutes = true;\r\n\t\t\tErrorList.push(\"Session Time In Minutes must be defined!\");\r\n\t\t} else { vModel.SessionTimeInMinutes = false; }\r\n\t\tif (parseInt(data.SessionTimeInMinutes) > 4500000) {\r\n\t\t\tErrorList.push(\"Session Time In Minutes cannot be greater than 4500000!\");\r\n\t\t}\r\n\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.props.showMessageNode(\"warning\", \"Please fill required fields!\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tthis.setState({ vModel });\r\n\t\tthis.Submit();\r\n\t}\r\n\tSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tvar temp = { ...this.state.model };\r\n\t\ttemp.SessionTimeInMinutes = 0;\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/ApiUser/GetApiTokens\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.setState({ list: responseData.Item || [] });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tSubmit = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/ApiUser/SaveApiToken\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Success\", \"The Operation Completed Successfully.\");\r\n\t\t\t\tthis.Search();\r\n\t\t\t\tvar temp = responseData.Item || {};\r\n\t\t\t\ttemp.ChannelType = temp?.Channel?.ParameterValue;\r\n\t\t\t\tthis.setState({ model: temp});\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar temp = state.model || {};\r\n\t\t\tif (name == \"ChannelId\") {\r\n\t\t\t\ttemp.ChannelType = data?.ParameterValue || \"\";\r\n\t\t\t\ttemp.UniqueClientId = 0;\r\n\t\t\t\ttemp.ClientCustomerId = 0;\r\n\t\t\t\ttemp.ParentUserId = 0;\r\n\t\t\t\ttemp.ApiUserId = 0;\r\n\t\t\t}\r\n\t\t\tif (name == \"UniqueClientId\") {\r\n\t\t\t\ttemp.ClientCustomerId = 0;\r\n\t\t\t\ttemp.ParentUserId = 0;\r\n\t\t\t\ttemp.ApiUserId = 0;\r\n\t\t\t}\r\n\t\t\tif (name == \"ParentUserId\") {\r\n\t\t\t\ttemp.ApiUserId = 0;\r\n\t\t\t\ttemp.ClientCustomerId = data?.ClientCustomerId || 0;\r\n\t\t\t}\r\n\t\t\tif(name ==\"ApiUserId\"){\r\n\t\t\t\ttemp.ParentUserId = data?.ParentUserId || 0;\r\n\t\t\t}\r\n\t\t\ttemp[name] = newValue;\r\n\t\t\treturn { model: temp };\r\n\t\t});\r\n\t}\r\n\tRenderClientNameSelect = (d) => {\r\n\t\treturn d.Name + \" - \" + d.UniqueClientId;\r\n\t}\r\n\tGetUserParameterUniqueClientId = () => {\r\n\t\treturn { UniqueClientId: this.state.model.UniqueClientId };\r\n\t}\r\n\tGetCustomerParameterUniqueClientId = () => {\r\n\t\treturn { UniqueClientId: this.state.model.UniqueClientId, ClientCustomerId: this.state.model.ClientCustomerId };\r\n\t}\r\n\tApiUserParameter = () => {\r\n\t\treturn { UniqueClientId: this.state.model.UniqueClientId, ParentUserId: this.state.model.ParentUserId };\r\n\t}\r\n\tRenderUserNameSelect = (d) => {\r\n\t\treturn d.FirstName + \" \" + d.LastName + \" (\" + d.UserName + \")\";\r\n\t}\r\n\tRenderApiUserNameSelect = (d) => {\r\n\t\treturn d.UserName + \" (\" + d.User.UserName + \")\";\r\n\t}\r\n\tSelectedRowChange = (e, index) => {\r\n\t\tconst model = this.state.list[index];\r\n\t\tmodel.ChannelType = model?.Channel?.ParameterValue;\r\n\t\tthis.setState({ model: model || {} });\r\n\t}\r\n\tClearData = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {},\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t\tlist: []\r\n\t\t});\r\n\t}\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, list, vModel } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t

Generate Api Token

\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{model.ChannelType == \"2\" && (\r\n\t\t\t\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t{model.ChannelType == \"4\" && (\r\n\t\t\t\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t)}\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t

Generated Tokens

\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tthis.SelectedRowChange(0, index);\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\r\n\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nGenerateApiToken.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(GenerateApiToken, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport StringHelper from '../../core/StringHelper';\r\n\r\nclass TransferDescription extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.isBackoffice = ClientHelper.IsBackOffice();\r\n\t\tthis.clientRowId = ClientHelper.GetClientRowId();\r\n\t\tthis.clientId = ClientHelper.GetClientId();\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: this.isBackoffice ? undefined : this.clientRowId,\r\n\t\t\tNoteTypeId: null,\r\n\t\t\tNote: \"\"\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tlist: [],\r\n\t\t\tindex: -1\r\n\t\t};\r\n\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: this.isBackoffice ? undefined : this.clientId\r\n\t\t};\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\r\n\t\tthis.maxLength400 = { maxLength: 400 };\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"ClientName\",\r\n\t\t\t\tshow: this.isBackoffice\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Note Type\",\r\n\t\t\t\taccessor: \"NoteTypeParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Note\",\r\n\t\t\t\taccessor: \"Note\"\r\n\t\t\t}\r\n\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Transfer Description\");\r\n\t\tthis.props.setAppCenterTitle(\"NOTIFICATIONS\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = (softClear) => {\r\n\t\tvar newModel = { ...this.initialModel };\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tif (softClear) {\r\n\t\t\tnewModel.NoteTypeId = model.NoteTypeId;\r\n\t\t\tnewModel.UniqueClientId = model.UniqueClientId;\r\n\t\t}\r\n\t\tthis.setState({ model: newModel, index: - 1 });\r\n\t}\r\n\r\n\tHandleSearch = async () => {\r\n\t\tvar result = await this.props.ExecuteApiPost(\"/bankapi/v1.0/CustomerNote/Search\", this.state.model);\r\n\t\tthis.setState({ list: result || [] });\r\n\t}\r\n\r\n\r\n\r\n\tHandleDelete = async () => {\r\n\t\tif (!await this.props.showConfirmMessage(\"warning\", \"Delete\", \"Are you sure to delete this record?\")) return;\r\n\t\tvar result = await this.props.ExecuteApiPost(\"/bankapi/v1.0/CustomerNote/Delete\", { Id: this.state.model.Id });\r\n\t\tif (result) {\r\n\r\n\t\t\tthis.HandleClear(true);\r\n\t\t\tthis.HandleSearch();\r\n\t\t\tthis.props.showMessage(\"success\", \"Success\", \"Deleted successfully!\");\r\n\t\t}\r\n\r\n\t}\r\n\r\n\tHandleSubmitOrUpdate = async (workflowId, after) => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tvar isUpdate = this.state.model.Id > 0;\r\n\t\tvar result = await this.props.ExecuteApiPost(\"/bankapi/v1.0/CustomerNote/InsertOrUpdate\", this.state.model, null, null, null, null, null, workflowId);\r\n\r\n\t\tif (result) {\r\n\t\t\tif (after) after();\r\n\t\t\tthis.HandleClear(true);\r\n\t\t\tthis.HandleSearch();\r\n\t\t\tthis.props.showMessage(\"success\", \"Success\", (isUpdate ? \"Update\" : \"Added\") + \" successfully!\");\r\n\t\t}\r\n\t}\r\n\r\n\tonlyLetterAndDigit = (str) => {\r\n\t\treturn StringHelper.VerifiyDigitAndLetter(str);\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tvar validKeys = [\"http:\", \"https:\", \"www.\", \"javascript\", \"function\", \"return\"];\r\n\t\tvar Messages = [];\r\n\r\n\t\tif (!model.UniqueClientId) {\r\n\t\t\tMessages.push(\"Client cannot be empty.\");\r\n\t\t\tmodel.vUniqueClientId = true;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tmodel.vUniqueClientId = false;\r\n\t\t}\r\n\r\n\t\tif (!model.NoteTypeId) {\r\n\t\t\tMessages.push(\"Note Type cannot be empty.\");\r\n\t\t\tmodel.vNoteTypeId = true;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tmodel.vNoteTypeId = false;\r\n\t\t}\r\n\r\n\t\tif (!model.Note) {\r\n\t\t\tMessages.push(\"Note cannot be empty\");\r\n\t\t\tmodel.vNote = true;\r\n\t\t}\r\n\t\telse if (model.Note && model.Note.length < 3) {\r\n\t\t\tMessages.push(\"Note cannot be smaller than 3 character\");\r\n\t\t}\r\n\t\telse if (model.Note) {\r\n\t\t\tmodel.vNote = false;\r\n\t\t\tvalidKeys.forEach(x => {\r\n\t\t\t\tif (model.Note.toLowerCase().includes(x) && !Messages.includes(\"Note contains invalid character.\")) {\r\n\t\t\t\t\tMessages.push(\"Note contains invalid character.\");\r\n\t\t\t\t\tmodel.vNote = true;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\telse {\r\n\t\t\tmodel.vNote = false;\r\n\t\t}\r\n\r\n\r\n\r\n\r\n\t\tif (Messages.length > 0) {\r\n\t\t\tthis.props.showValidationErrors(Messages);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn true;\r\n\t}\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tvar tempModel = this.state.list[index];\r\n\t\tthis.setState({ model: tempModel, index });\r\n\t}\r\n\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, index } = this.state;\r\n\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nTransferDescription.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(TransferDescription, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTextInput, GenericCheckInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { ProgramCodes, GridColumnType ,ReportTypeForWalletAccounts} from \"views/Constants/Constant.js\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { Grid } from \"@material-ui/core\";\r\n\r\n\r\nclass TransferToClientAccountDismiss extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: null\r\n\t\t};\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Active\",\r\n\t\t\t\taccessor: \"IsActive\",\r\n\t\t\t\ttype: GridColumnType.YesNo,\r\n\t\t\t\tColumnType: GridColumnType.YesNo\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t}, \r\n\t\t\t{\r\n\t\t\t\tHeader: \"Insert DateTime\",\r\n\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tColumnType: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Insert User\",\r\n\t\t\t\taccessor: \"InsertUser\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Update DateTime\",\r\n\t\t\t\taccessor: \"UpdateDateTime\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tColumnType: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Update User\",\r\n\t\t\t\taccessor: \"UpdateUser\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.state = {\r\n\t\t\tlist: [],\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tisLoading: false,\r\n\t\t\tvModel: {},\r\n\t\t\tIsInsertOp: false\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Transfer To Client Account Dismiss\");\r\n\t\tthis.props.setAppCenterTitle(\"SYSTEM ADMIN\");\r\n\t}\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\thandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, vModel: {}, index: -1, IsInsertOp: false });\r\n\t};\r\n\r\n\tIsValid = (operationType) => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tvar errorList = [];\r\n\t\tconst { showValidationErrors } = this.props;\r\n\r\n\t\tvModel.UniqueClientId = model.UniqueClientId == null || model.UniqueClientId == \"\";\r\n\t\tif (vModel.UniqueClientId) {\r\n\t\t\terrorList.push(\"Client cannot be empty.\");\r\n\t\t}\r\n\r\n\t\t// vModel.ReportType = model.ReportType == null || model.ReportType == \"\";\r\n\t\t// if (vModel.ReportType) {\r\n\t\t// \terrorList.push(\"Webhook Type cannot be empty.\");\r\n\t\t// }\r\n\r\n\t\tif (errorList.length > 0) {\r\n\t\t\tshowValidationErrors(errorList);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\r\n\t\tconst model = { ...this.state.model };\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Bank/GetAllTransfetToClientAccoutDismiss\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tmodel,\r\n\t\t\t\t\t\tlist: responseData.Item,\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\tHandleInsertOrUpdate = (operationType) => {\r\n\r\n\t\tif (!this.IsValid(operationType))\r\n\t\t\treturn;\r\n\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel.OperationType = operationType;\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Bank/InsertOrUpdateTransfetToClientAccoutDismiss\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Succeeded\", \"Operation is successfully!\");\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tmodel : { ...this.initialModel },\r\n\t\t\t\t\tisLoading: false,\r\n\t\t\t\t\tindex: -1 \r\n\t\t\t\t});\r\n\t\t\t\tthis.handleClear();\r\n\t\t\t\tthis.HandleSearch();\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\tRowSelected = (index) => {\r\n\t\tlet { model, list } = this.state;\r\n\t\tmodel = list[index];\r\n\r\n\t\tthis.setState({ model, index, IsInsertOp: true });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled, showConfirmMessageInDelete, ExecuteApiPost } = this.props;\r\n\t\tconst { alert, model, list, isLoading, index, vModel, IsInsertOp } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t 0,\r\n\t\t\t\t\t\t\tOnClick: this.HandleSearch\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Submit\",\r\n\t\t\t\t\t\t\tDisabled: Disabled || model.Id > 0,\r\n\t\t\t\t\t\t\tOnClick: () => this.HandleInsertOrUpdate(\"Insert\")\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Update\",\r\n\t\t\t\t\t\t\tDisabled: Disabled || model.Id === 0,\r\n\t\t\t\t\t\t\tOnClick: () => this.HandleInsertOrUpdate(\"Update\")\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Delete\",\r\n\t\t\t\t\t\t\tDisabled: Disabled || model.Id === 0,\r\n\t\t\t\t\t\t\tOnClick: () => showConfirmMessageInDelete(() => ExecuteApiPost(\"/bankapi/v1.0/Bank/InsertOrUpdateTransfetToClientAccoutDismiss\", { Id: model.Id, OperationType: \"Delete\" }, null, null, null, [this.handleClear, this.HandleSearch], true))\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Clear\",\r\n\t\t\t\t\t\t\tDisabled: Disabled,\r\n\t\t\t\t\t\t\tOnClick: this.handleClear\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After}\r\n\t\t\t\t/>\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={ClientHelper.IsClient()}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDefaultIndex={ClientHelper.IsClient() ? 0 : -1} \r\n\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.UniqueClientId}\r\n\t\t\t\t\t\t\t\t\t\t\t\tRequired />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nTransferToClientAccountDismiss.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(TransferToClientAccountDismiss, {});\r\n","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { DeleteIcon, UploadIcon } from \"core/Icons\";\r\nimport PropTypes, { bool, func } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport AccountLimitToolbar from \"views/Components/AccountLimitToolbar\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle, GenericLabel, GenericRadioInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport {MdesRequestTypeDefinition, Direction , GridColumnType, ProgramCodes } from \"views/Constants/Constant.js\";\r\nimport Select from \"react-select\";\r\n\r\nclass TspRequest extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tSearchEndInsertDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tSearchStartInsertDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tSearchStartUpdateDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tSearchEndUpdateDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tClientId: 0,\r\n\t\t\tIsBankingScreen: false,\r\n\t\t\tsearchIsNotSpecific: true\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tvModel: {},\r\n\t\t\ttempModel: {},\r\n\t\t\tgetDataList: [],\r\n\t\t\tsummaryModel: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tisBackOffice: false,\r\n\t\t\tselectList: [],\r\n\t\t\tcheckedValues: [],\r\n\t\t\tcancelRequestModel: {\r\n\t\t\t\tSelectedETransfer: {},\r\n\t\t\t\tcancellationReason: null\r\n\t\t\t},\r\n\t\t\tcancelDialog: false,\r\n\t\t\tvIndividualModel: {},\r\n\t\t\tLimitToken: false,\r\n\t\t\tremindModel: {},\r\n\t\t\tremindDialog: false\r\n\t\t};\r\n\r\n\t\tthis.sortedByDate = [{ id: \"TransactionDate\", desc: true }];\r\n\t\tthis.maxLength400 = { maxLength: 400 };\r\n\t\tthis.isClient = ClientHelper.IsClient();\r\n\t\tthis.GetData = this.GetData.bind(this);\r\n\t\tthis.errorCallback = this.errorCallback.bind(this);\r\n\t\tthis.hideAlert = this.hideAlert.bind(this);\r\n\t\tthis.showErrorMessage = this.showErrorMessage.bind(this);\r\n\t\tthis.successSummaryCallback = this.successSummaryCallback.bind(this);\r\n\t\tthis.isBackOffice = ClientHelper.IsBackOffice();\r\n\t\tthis.isBankingScreen = this.props.MenuCode == \"BETOUT\";\r\n\t\tthis.trxTable = React.createRef();\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Tsp / Mdes Requests\");\r\n\r\n\t\tvar model = { ...this.state.model };\r\n\t\tvar initialModel = this.initialModel;\r\n\r\n\t\tmodel.IsBankingScreen = this.props.MenuCode == \"BETOUT\";\r\n\t\tvar isBackOffice = ClientHelper.IsBackOffice();\r\n\t\tif (!isBackOffice) {\r\n\t\t\tmodel.ClientId = ClientHelper.GetClientRowId();\r\n\t\t\tinitialModel.ClientId = model.ClientId;\r\n\t\t\tthis.props.setAppCenterTitle(model.IsBankingScreen ? \"BANKING\" : \"Mdes Requests\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.props.setAppCenterTitle(\"Mdes Requests\");\r\n\t\t}\r\n\t\tthis.RefreshToolBar();\r\n\t\tthis.setState({ model, isBackOffice, loadingCompleted: true });\r\n\t}\r\n\r\n\tRefreshToolBar = () => {\r\n\t\tthis.setState({ LimitToken: !this.state.LimitToken });\r\n\t}\r\n\r\n\thandleChange = (name, newValue) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\thandleChangeCancelModel = (name, newValue) => {\r\n\t\tconst cancelRequestModel = { ...this.state.cancelRequestModel };\r\n\t\tcancelRequestModel.cancellationReason = newValue;\r\n\t\tthis.setState({ cancelRequestModel });\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\r\n\tGetData() { this.setState(state => ({ trxGridToken: !state.trxGridToken })); this.GetSummaryData(); }\r\n\r\n\tGetSummaryData = () => {\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/tspapi/v1.0/MdesRequests/GetRequestByParameter\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ summaryModel: responseData.Item });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\r\n\t\tvar searchIsNotSpecific = (model.ClientId == undefined )\r\n\t\t\t\r\n\t\tmodel[\"searchIsNotSpecific\"] = searchIsNotSpecific;\r\n\r\n\t\tvar validateStatus = true;\r\n\r\n\t\tif (searchIsNotSpecific) {\r\n\r\n\t\t\tif (!model.ClientId) {\r\n\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Select Client to continue\");\r\n\t\t\t\tvModel[\"ClientId\"] = true;\r\n\t\t\t\tvalidateStatus = false;\r\n\t\t\t}\r\n\r\n\t\t\tif (typeof model.SearchStartDate != \"object\" && model.SearchStartDate != \"\" && model.SearchStartDate != null) {\r\n\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Start Date is invalid\");\r\n\t\t\t\tvalidateStatus = false;\r\n\t\t\t}\r\n\t\t\tif (typeof model.SearchEndDate != \"object\" && model.SearchEndDate != \"\" && model.SearchEndDate != null) {\r\n\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"End Date is invalid\");\r\n\t\t\t\tvalidateStatus = false;\r\n\t\t\t}\r\n\t\t\tif ((typeof model.SearchStartDate == \"object\" && typeof model.SearchEndDate == \"object\") &&\r\n\t\t\t\tDateHelper.ToMoment(model.SearchEndDate) < DateHelper.ToMoment(model.SearchStartDate)) {\r\n\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Start Date cannot be bigger than End Date\");\r\n\t\t\t\tvalidateStatus = false;\r\n\t\t\t}\r\n\r\n\t\t\tif (typeof model.SearchStartUpdateDate != \"object\" && model.SearchStartUpdateDate != \"\" && model.SearchStartUpdateDate != null) {\r\n\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Start Date is invalid\");\r\n\t\t\t\tvalidateStatus = false;\r\n\t\t\t}\r\n\t\t\tif (typeof model.SearchEndUpdateDate != \"object\" && model.SearchEndUpdateDate != \"\" && model.SearchEndUpdateDate != null) {\r\n\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"End Date is invalid\");\r\n\t\t\t\tvalidateStatus = false;\r\n\t\t\t}\r\n\t\t\tif ((typeof model.SearchStartUpdateDate == \"object\" && typeof model.SearchEndUpdateDate == \"object\") &&\r\n\t\t\t\tDateHelper.ToMoment(model.SearchEndUpdateDate) < DateHelper.ToMoment(model.SearchStartUpdateDate)) {\r\n\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Start Date cannot be bigger than End Date\");\r\n\t\t\t\tvalidateStatus = false;\r\n\t\t\t}\r\n\r\n\t\t\tthis.setState({ model, vModel });\r\n\t\t\tif (!validateStatus)\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvModel[\"ClientId\"] = false;\r\n\t\t\tthis.setState({ model, vModel });\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\tsuccessSummaryCallback(responseData) {\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.showErrorMessage(responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (responseData.Item == null || responseData.Item.TransactionList == null || responseData.Item.TransactionList.length < 1) {\r\n\t\t\tthis.setState({ summaryModel: {}, cancelRequestModel: null, getDataList: [], isLoading: false });\r\n\t\t} else {\r\n\t\t\tthis.setState({\r\n\t\t\t\tcancelRequestModel: { SelectedETransfer: {}, cancellationReason: null },\r\n\t\t\t\tgetDataList: responseData.Item.TransactionList == null ? [] : responseData.Item.TransactionList, isLoading: false\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\r\n\terrorCallback(error) {\r\n\t\tthis.showErrorMessage(\"An error occurred during the api visit\" + error);\r\n\t}\r\n\r\n\tshowErrorMessage(message) {\r\n\t\tthis.setState({\r\n\t\t\tisLoading: false,\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\tisLoading: false, cancelDialog: false, remindDialog: false,\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\r\n\thandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tgetDataList: [],\r\n\t\t\tsummaryModel: {}\r\n\t\t});\r\n\t}\r\n\r\n\thideAlert() { this.setState({ alert: null }); }\r\n\tshowLoading = () => { this.setState({ alert: null, isLoading: true }); }\r\n\thideLoading = () => { this.setState({ alert: null, isLoading: false }); }\r\n\thideDialog = () => { this.setState({ cancelDialog: false, remindDialog: false }); }\r\n\r\n\tExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.accessor != \"Actions\" && c.accessor != \"ED\" && (c.show == undefined || c.show)) {\r\n\t\t\t\ttrxColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: trxColumns, ExportSelectedColumns: trxColumns });\r\n\t}\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tconst temp = { ...this.state.model };\r\n\r\n\t\tvar jsonColList = [];\r\n\r\n\t\tvar trxColumns = {};\r\n\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\ttrxColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t});\r\n\t\tjsonColList.push(trxColumns);\r\n\r\n\t\tvar mytitle = \"Tsp / Token List\";\r\n\r\n\t\ttemp.jsonFile = {\r\n\t\t\tcolmns: jsonColList,\r\n\t\t\tformat: this.state.ExportReportType,\r\n\t\t\ttitle: mytitle\r\n\t\t};\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\"/bankapi/v1.0/ClearingSettlement/GetETransferOutgoingTransfersExportDownload\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t},\r\n\t\t\tthis.props.showMessage\r\n\t\t);\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, summaryModel, isLoading, isBackOffice, cancelDialog, cancelRequestModel, LimitToken, remindModel, remindDialog, vModel } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\tValue={model.ClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\tDisabled={!isBackOffice}\r\n\t\t\t\t\t\t\t\t\t\tRequired={model.searchIsNotSpecific == true}\r\n\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.ClientId} />\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t { return this.state.model; }}\r\n\t\t\t\t\t\t\t\t\tRequestUrl=\"/tspapi/v1.0/MdesRequests/GetRequestByParameter\"\r\n\t\t\t\t\t\t\t\t\tRequestMethod=\"POST\" />\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nTspRequest.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\thandleOperationType: PropTypes.func,\r\n\tSelectedRowChange: PropTypes.func,\r\n\tshowQuestionMessage: func,\r\n\tsetAppLeftTitle: func,\r\n\tsetAppCenterTitle: func,\r\n\tDisabled: bool\r\n};\r\n\r\nexport default withArtifex(TspRequest, {});","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes, { bool, func } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTitle, GenericLabel, GenericRadioInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport {GridColumnType, ProgramCodes } from \"views/Constants/Constant.js\";\r\nimport Select from \"react-select\";\r\n\r\nclass TspTokenPage extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tSearchEndDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tSearchStartDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tClientId: 0,\r\n\t\t\tIsBankingScreen: false,\r\n\t\t\tsearchIsNotSpecific: true\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tvModel: {},\r\n\t\t\ttempModel: {},\r\n\t\t\tgetDataList: [],\r\n\t\t\tsummaryModel: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tisBackOffice: false,\r\n\t\t\tselectList: [],\r\n\t\t\tcheckedValues: [],\r\n\t\t\tcancelRequestModel: {\r\n\t\t\t\tSelectedETransfer: {},\r\n\t\t\t\tcancellationReason: null\r\n\t\t\t},\r\n\t\t\tcancelDialog: false,\r\n\t\t\tvIndividualModel: {},\r\n\t\t\tLimitToken: false,\r\n\t\t\tremindModel: {},\r\n\t\t\tremindDialog: false\r\n\t\t};\r\n\r\n\t\tthis.sortedByDate = [{ id: \"TransactionDate\", desc: true }];\r\n\t\tthis.maxLength400 = { maxLength: 400 };\r\n\t\tthis.isClient = ClientHelper.IsClient();\r\n\t\tthis.GetData = this.GetData.bind(this);\r\n\t\tthis.errorCallback = this.errorCallback.bind(this);\r\n\t\tthis.hideAlert = this.hideAlert.bind(this);\r\n\t\tthis.showErrorMessage = this.showErrorMessage.bind(this);\r\n\t\tthis.successSummaryCallback = this.successSummaryCallback.bind(this);\r\n\t\tthis.isBackOffice = ClientHelper.IsBackOffice();\r\n\t\tthis.isBankingScreen = this.props.MenuCode == \"BETOUT\";\r\n\t\tthis.trxTable = React.createRef();\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Tsp / Mdes Tokens\");\r\n\r\n\t\tvar model = { ...this.state.model };\r\n\t\tvar initialModel = this.initialModel;\r\n\r\n\t\tmodel.IsBankingScreen = this.props.MenuCode == \"BETOUT\";\r\n\t\tvar isBackOffice = ClientHelper.IsBackOffice();\r\n\t\tif (!isBackOffice) {\r\n\t\t\tmodel.ClientId = ClientHelper.GetClientRowId();\r\n\t\t\tinitialModel.ClientId = model.ClientId;\r\n\t\t\tthis.props.setAppCenterTitle(model.IsBankingScreen ? \"BANKING\" : \"Mdes Token\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.props.setAppCenterTitle(\"Mdes Token\");\r\n\t\t}\r\n\t\tthis.RefreshToolBar();\r\n\t\tthis.setState({ model, isBackOffice, loadingCompleted: true });\r\n\t}\r\n\r\n\tRefreshToolBar = () => {\r\n\t\tthis.setState({ LimitToken: !this.state.LimitToken });\r\n\t}\r\n\r\n\thandleChange = (name, newValue) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\thandleChangeCancelModel = (name, newValue) => {\r\n\t\tconst cancelRequestModel = { ...this.state.cancelRequestModel };\r\n\t\tcancelRequestModel.cancellationReason = newValue;\r\n\t\tthis.setState({ cancelRequestModel });\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\r\n\tGetData() { this.setState(state => ({ trxGridToken: !state.trxGridToken })); this.GetSummaryData(); }\r\n\r\n\tGetSummaryData = () => {\r\n\t\t/*if (!this.Validate())\r\n\t\t\treturn;\r\n*/\r\n\t\tProxy.POST(\r\n\t\t\t\"/tspapi/v1.0/MdesToken/GetAllTokenByCliendIdWithParameters\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ summaryModel: responseData.Item });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\r\n\t\tvar searchIsNotSpecific = (model.ClientId == undefined )\r\n\t\t\t\r\n\t\tmodel[\"searchIsNotSpecific\"] = searchIsNotSpecific;\r\n\r\n\t\tvar validateStatus = true;\r\n\r\n\t\tif (searchIsNotSpecific) {\r\n\r\n\t\t\tif (!model.ClientId) {\r\n\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Select Client to continue\");\r\n\t\t\t\tvModel[\"ClientId\"] = true;\r\n\t\t\t\tvalidateStatus = false;\r\n\t\t\t}\r\n\r\n\t\t\tif (typeof model.SearchStartDate != \"object\" && model.SearchStartDate != \"\" && model.SearchStartDate != null) {\r\n\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Start Date is invalid\");\r\n\t\t\t\tvalidateStatus = false;\r\n\t\t\t}\r\n\t\t\tif (typeof model.SearchEndDate != \"object\" && model.SearchEndDate != \"\" && model.SearchEndDate != null) {\r\n\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"End Date is invalid\");\r\n\t\t\t\tvalidateStatus = false;\r\n\t\t\t}\r\n\t\t\tif ((typeof model.SearchStartDate == \"object\" && typeof model.SearchEndDate == \"object\") &&\r\n\t\t\t\tDateHelper.ToMoment(model.SearchEndDate) < DateHelper.ToMoment(model.SearchStartDate)) {\r\n\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Start Date cannot be bigger than End Date\");\r\n\t\t\t\tvalidateStatus = false;\r\n\t\t\t}\r\n\r\n\t\t\tthis.setState({ model, vModel });\r\n\t\t\tif (!validateStatus)\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvModel[\"ClientId\"] = false;\r\n\t\t\tthis.setState({ model, vModel });\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\tsuccessSummaryCallback(responseData) {\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.showErrorMessage(responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (responseData.Item == null || responseData.Item.TransactionList == null || responseData.Item.TransactionList.length < 1) {\r\n\t\t\tthis.setState({ summaryModel: {}, cancelRequestModel: null, getDataList: [], isLoading: false });\r\n\t\t} else {\r\n\t\t\tthis.setState({\r\n\t\t\t\tcancelRequestModel: { SelectedETransfer: {}, cancellationReason: null },\r\n\t\t\t\tgetDataList: responseData.Item.TransactionList == null ? [] : responseData.Item.TransactionList, isLoading: false\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\r\n\terrorCallback(error) {\r\n\t\tthis.showErrorMessage(\"An error occurred during the api visit\" + error);\r\n\t}\r\n\r\n\tshowErrorMessage(message) {\r\n\t\tthis.setState({\r\n\t\t\tisLoading: false,\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\tisLoading: false, cancelDialog: false, remindDialog: false,\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\r\n\thandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tgetDataList: [],\r\n\t\t\tsummaryModel: {}\r\n\t\t});\r\n\t}\r\n\r\n\thideAlert() { this.setState({ alert: null }); }\r\n\tshowLoading = () => { this.setState({ alert: null, isLoading: true }); }\r\n\thideLoading = () => { this.setState({ alert: null, isLoading: false }); }\r\n\thideDialog = () => { this.setState({ cancelDialog: false, remindDialog: false }); }\r\n\r\n\tExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.accessor != \"Actions\" && c.accessor != \"ED\" && (c.show == undefined || c.show)) {\r\n\t\t\t\ttrxColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: trxColumns, ExportSelectedColumns: trxColumns });\r\n\t}\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tconst temp = { ...this.state.model };\r\n\r\n\t\tvar jsonColList = [];\r\n\r\n\t\tvar trxColumns = {};\r\n\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\ttrxColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t});\r\n\t\tjsonColList.push(trxColumns);\r\n\r\n\t\tvar mytitle = \"Tsp / Token List\";\r\n\r\n\t\ttemp.jsonFile = {\r\n\t\t\tcolmns: jsonColList,\r\n\t\t\tformat: this.state.ExportReportType,\r\n\t\t\ttitle: mytitle\r\n\t\t};\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\"/tspapi/v1.0/ClearingSettlement/GetETransferOutgoingTransfersExportDownload\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t},\r\n\t\t\tthis.props.showMessage\r\n\t\t);\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, isLoading, vModel } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\t\tDisabled={ClientHelper.IsClient()}\r\n\t\t\t\t\t\t\t\t\t\tDefaultIndex={ClientHelper.IsClient() ? 0 : -1}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t { return this.state.model; }}\r\n\t\t\t\t\t\t\t\t\tRequestUrl=\"/tspapi/v1.0/MdesToken/GetTokenWithParameter\"\r\n\t\t\t\t\t\t\t\t\tRequestMethod=\"POST\" />\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nTspTokenPage.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\thandleOperationType: PropTypes.func,\r\n\tSelectedRowChange: PropTypes.func,\r\n\tshowQuestionMessage: func,\r\n\tsetAppLeftTitle: func,\r\n\tsetAppCenterTitle: func,\r\n\tDisabled: bool\r\n};\r\n\r\nexport default withArtifex(TspTokenPage, {});","import { DialogContent, DialogTitle, Slide } from \"@material-ui/core\";\r\nimport withStyles from \"@material-ui/core/styles/withStyles\";\r\nimport createEFTIndividualStyle from \"assets/jss/material-dashboard-pro-react/views/createEFTIndividualStyle.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport { GenericCheckInput, GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericLabel, GenericNumberInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent.jsx\";\r\nimport { EFTEntryType, ProgramCodes } from \"views/Constants/Constant.js\";\r\nimport AddNewCustomerEFT from \"views/EFT/AddNewCustomerEFT.jsx\";\r\n\r\nfunction Transition(props) {\r\n\treturn ;\r\n}\r\n\r\nclass CreateEFTIndividual extends Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = { customerToken: \"0\" };\r\n\r\n\t\tthis.isClient = ClientHelper.IsClient();\r\n\r\n\t\tthis.sortName = { Member: \"Name\" };\r\n\t\tthis.sortAccountName = { Member: \"AccountName\" };\r\n\t\tthis.sortParamDesc = { Member: \"ParameterDesc\" };\r\n\t\tthis.sortParamValue = { Member: \"ParameterValue\" };\r\n\t\tthis.ClientParamObj = { ProgramCode: ProgramCodes.Bank_Programs_EFT, UniqueClientId: null };\r\n\r\n\t\tthis.ValueChanged = this.ValueChanged.bind(this);\r\n\t\tthis.addCustomerDialogClose = this.addCustomerDialogClose.bind(this);\r\n\t\tthis.addCustomerSaved = this.addCustomerSaved.bind(this);\r\n\t\tthis.GetClientParamObj = this.GetClientParamObj.bind(this);\r\n\t}\r\n\r\n\tValueChanged(name, newValue, data) {\r\n\t\tthis.props.onModelChange(model => {\r\n\t\t\tmodel[name] = newValue;\r\n\r\n\t\t\tif (name == \"PayeeId\") {\r\n\t\t\t\tmodel.PayeeName = data ? data.Name : \"\";\r\n\t\t\t\tmodel.BeneficiaryId = \"\";\r\n\t\t\t}\r\n\r\n\t\t\tif (name == \"NewClient\" && newValue) {\r\n\t\t\t\tmodel.IsCustomerPopupOpen = true;\r\n\t\t\t\tthis.setState({ isCustomerAdded: false });\r\n\t\t\t}\r\n\t\t\tif (name == \"TransferMemoId\") {\r\n\t\t\t\tmodel.TransferMemo = data ? data.Memo : \"\";\r\n\t\t\t}\r\n\t\t\tif (name == \"IsHaveMemo\") {\r\n\t\t\t\tif (newValue) model.TransferMemo = \"\";\r\n\t\t\t\tmodel.TransferMemoId = \"\";\r\n\t\t\t}\r\n\t\t\tif (name == \"TransactionType\")\r\n\t\t\t\tmodel.TransactionTypeCode = data ? data.ParameterValue : \"\";\r\n\r\n\t\t\treturn model;\r\n\t\t});\r\n\t}\r\n\r\n\taddCustomerDialogClose() {\r\n\t\tthis.ValueChanged(\"IsCustomerPopupOpen\", false);\r\n\t}\r\n\r\n\taddCustomerSaved(customerData) {\r\n\t\tif (customerData != null) {\r\n\t\t\tthis.props.onModelChange(model => {\r\n\t\t\t\tmodel.PayeeId = customerData.Id;\r\n\t\t\t\tmodel.PayeeName = customerData.CustomerName;\r\n\t\t\t\tmodel.BeneficiaryId = \"\";\r\n\r\n\t\t\t\treturn model;\r\n\t\t\t});\r\n\r\n\t\t\tvar newCustomerToken = this.state.customerToken == \"1\" ? \"0\" : \"1\";\r\n\t\t\tthis.setState({ customerToken: newCustomerToken });\r\n\t\t}\r\n\r\n\t\tthis.addCustomerDialogClose();\r\n\t}\r\n\r\n\tGetClientParamObj() {\r\n\t\tconst { parentModel } = this.props;\r\n\t\tthis.ClientParamObj.UniqueClientId = parentModel.UniqueClientId;\r\n\t\treturn this.ClientParamObj;\r\n\t}\r\n\r\n\tRenderBeneficiarySelect(d) {\r\n\t\treturn `${d.FinancialInstitution.Description} - ${d.AccountNumber}`;\r\n\t}\r\n\r\n\tRenderAccountSelect(d) {\r\n\t\tconst accountNumber = d.Account && d.Account.AccountNumber;\r\n\t\tconst accountName = d.Account && d.Account.AccountName;\r\n\t\tconst storeCode = d.CustomerStore && d.CustomerStore.StoreCode;\r\n\t\tconst storeName = d.CustomerStore && d.CustomerStore.StoreName;\r\n\r\n\t\treturn `${storeName}(${storeCode}) - ${accountName}(${accountNumber})`;\r\n\t}\r\n\r\n\tRenderTransactionCode(d) {\r\n\t\tconst transactionCode = d.ParameterValue;\r\n\t\tconst transactionCodeDescription = d.ParameterDesc;\r\n\r\n\t\treturn `${transactionCode} - ${transactionCodeDescription}`;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, vModel, Disabled: DisabledProp, parentModel, CustomerStoreList } = this.props;\r\n\r\n\t\tconst Selected = parentModel.EntryCode == EFTEntryType.Individual;\r\n\t\tconst Disabled = DisabledProp || !Selected;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{CustomerStoreList != null && CustomerStoreList.length > 0 &&\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{this.isClient && !parentModel.IsUpdate && }\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{model.IsHaveMemo ?\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCreateEFTIndividual.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tmodel: PropTypes.object,\r\n\tvModel: PropTypes.object,\r\n\tparentModel: PropTypes.object,\r\n\tonModelChange: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\taddNewCustomerMenuId: PropTypes.number,\r\n\tCustomerStoreList: PropTypes.array\r\n};\r\n\r\nexport default withStyles(createEFTIndividualStyle)(CreateEFTIndividual);","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { DeleteIcon, UploadIcon } from \"core/Icons\";\r\nimport PropTypes, { bool, func } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport AccountLimitToolbar from \"views/Components/AccountLimitToolbar\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle, GenericLabel, GenericRadioInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport {MdesTokenRequestorDefinition, Direction , GridColumnType, ProgramCodes, MdesWalletDefinition } from \"views/Constants/Constant.js\";\r\nimport Select from \"react-select\";\r\n\r\nclass TspTokenRequestor extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tSearchEndDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tSearchStartDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tClientId: 0,\r\n\t\t\tIsBankingScreen: false,\r\n\t\t\tsearchIsNotSpecific: true\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tinitialModel : {},\r\n\t\t\tvModel: {},\r\n\t\t\ttempModel: {},\r\n\t\t\tgetDataList: [],\r\n\t\t\tsummaryModel: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tisBackOffice: false,\r\n\t\t\tselectList: [],\r\n\t\t\tcheckedValues: [],\r\n\t\t\tcancelRequestModel: {\r\n\t\t\t\tSelectedETransfer: {},\r\n\t\t\t\tcancellationReason: null\r\n\t\t\t},\r\n\t\t\tcancelDialog: false,\r\n\t\t\tvIndividualModel: {},\r\n\t\t\tLimitToken: false,\r\n\t\t\tremindModel: {},\r\n\t\t\tremindDialog: false\r\n\t\t};\r\n\r\n\t\tthis.sortedByDate = [{ id: \"TransactionDate\", desc: true }];\r\n\t\tthis.maxLength400 = { maxLength: 400 };\r\n\t\tthis.isClient = ClientHelper.IsClient();\r\n\t\tthis.GetData = this.GetData.bind(this);\r\n\t\tthis.errorCallback = this.errorCallback.bind(this);\r\n\t\tthis.hideAlert = this.hideAlert.bind(this);\r\n\t\tthis.showErrorMessage = this.showErrorMessage.bind(this);\r\n\t\tthis.successSummaryCallback = this.successSummaryCallback.bind(this);\r\n\t\tthis.isBackOffice = ClientHelper.IsBackOffice();\r\n\t\tthis.isBankingScreen = this.props.MenuCode == \"BETOUT\";\r\n\t\tthis.trxTable = React.createRef();\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Tsp / Mdes Token Requestor\");\r\n\r\n\t\tvar model = { ...this.state.model };\r\n\t\tvar initialModel = this.initialModel;\r\n\r\n\t\tmodel.IsBankingScreen = this.props.MenuCode == \"BETOUT\";\r\n\t\tvar isBackOffice = ClientHelper.IsBackOffice();\r\n\t\tif (!isBackOffice) {\r\n\t\t\tmodel.ClientId = ClientHelper.GetClientRowId();\r\n\t\t\tinitialModel.ClientId = model.ClientId;\r\n\t\t\tthis.props.setAppCenterTitle(model.IsBankingScreen ? \"BANKING\" : \"Mdes Token Requestor\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.props.setAppCenterTitle(\"Mdes Token Requestor\");\r\n\t\t}\r\n\t\tthis.RefreshToolBar();\r\n\t\tthis.setState({ model, isBackOffice, loadingCompleted: true });\r\n\t}\r\n\r\n\tRefreshToolBar = () => {\r\n\t\tthis.setState({ LimitToken: !this.state.LimitToken });\r\n\t}\r\n\r\n\thandleChange = (name, newValue) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\thandleChangeCancelModel = (name, newValue) => {\r\n\t\tconst cancelRequestModel = { ...this.state.cancelRequestModel };\r\n\t\tcancelRequestModel.cancellationReason = newValue;\r\n\t\tthis.setState({ cancelRequestModel });\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\r\n\tGetData() { this.setState(state => ({ trxGridToken: !state.trxGridToken })); this.GetSummaryData(); }\r\n\r\n\tGetSummaryData = () => {\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/tspapi/v1.0/MdesTokenRequestor/GelAllTokenRequestorByParamater\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => { \r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}else{}\r\n\t\t\t\tthis.setState({ summaryModel: responseData.Item});\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\r\n\t\tvar searchIsNotSpecific = (model.ClientId == undefined )\r\n\t\t\t\r\n\t\tmodel[\"searchIsNotSpecific\"] = searchIsNotSpecific;\r\n\r\n\t\tvar validateStatus = true;\r\n\r\n\t\tif (searchIsNotSpecific) {\r\n\r\n\t\t\tif (typeof model.SearchStartDate != \"object\" && model.SearchStartDate != \"\" && model.SearchStartDate != null) {\r\n\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Start Date is invalid\");\r\n\t\t\t\tvalidateStatus = false;\r\n\t\t\t}\r\n\t\t\tif (typeof model.SearchEndDate != \"object\" && model.SearchEndDate != \"\" && model.SearchEndDate != null) {\r\n\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"End Date is invalid\");\r\n\t\t\t\tvalidateStatus = false;\r\n\t\t\t}\r\n\t\t\tif ((typeof model.SearchStartDate == \"object\" && typeof model.SearchEndDate == \"object\") &&\r\n\t\t\t\tDateHelper.ToMoment(model.SearchEndDate) < DateHelper.ToMoment(model.SearchStartDate)) {\r\n\t\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"Start Date cannot be bigger than End Date\");\r\n\t\t\t\tvalidateStatus = false;\r\n\t\t\t}\r\n\r\n\t\t\tthis.setState({ model, vModel });\r\n\t\t\tif (!validateStatus)\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvModel[\"ClientId\"] = false;\r\n\t\t\tthis.setState({ model, vModel });\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\tsuccessSummaryCallback(responseData) {\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.showErrorMessage(responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (responseData.Item == null || responseData.Item.TransactionList == null || responseData.Item.TransactionList.length < 1) {\r\n\t\t\tthis.setState({ summaryModel: {}, cancelRequestModel: null, getDataList: [], isLoading: false });\r\n\t\t} else {\r\n\t\t\tthis.setState({\r\n\t\t\t\tcancelRequestModel: { SelectedETransfer: {}, cancellationReason: null },\r\n\t\t\t\tgetDataList: responseData.Item.TransactionList == null ? [] : responseData.Item.TransactionList, isLoading: false\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\r\n\terrorCallback(error) {\r\n\t\tthis.showErrorMessage(\"An error occurred during the api visit\" + error);\r\n\t}\r\n\r\n\tshowErrorMessage(message) {\r\n\t\tthis.setState({\r\n\t\t\tisLoading: false,\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\tisLoading: false, cancelDialog: false, remindDialog: false,\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\r\n\thandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tgetDataList: [],\r\n\t\t\tsummaryModel: {}\r\n\t\t});\r\n\t}\r\n\r\n\thideAlert() { this.setState({ alert: null }); }\r\n\tshowLoading = () => { this.setState({ alert: null, isLoading: true }); }\r\n\thideLoading = () => { this.setState({ alert: null, isLoading: false }); }\r\n\thideDialog = () => { this.setState({ cancelDialog: false, remindDialog: false }); }\r\n\r\n\tExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.accessor != \"Actions\" && c.accessor != \"ED\" && (c.show == undefined || c.show)) {\r\n\t\t\t\ttrxColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: trxColumns, ExportSelectedColumns: trxColumns });\r\n\t}\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tconst temp = { ...this.state.model };\r\n\r\n\t\tvar jsonColList = [];\r\n\r\n\t\tvar trxColumns = {};\r\n\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\ttrxColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t});\r\n\t\tjsonColList.push(trxColumns);\r\n\r\n\t\tvar mytitle = \"Tsp / Token List\";\r\n\r\n\t\ttemp.jsonFile = {\r\n\t\t\tcolmns: jsonColList,\r\n\t\t\tformat: this.state.ExportReportType,\r\n\t\t\ttitle: mytitle\r\n\t\t};\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\"/bankapi/v1.0/ClearingSettlement/GetETransferOutgoingTransfersExportDownload\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t},\r\n\t\t\tthis.props.showMessage\r\n\t\t);\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, summaryModel, isLoading, isBackOffice, cancelDialog, cancelRequestModel, LimitToken, remindModel, remindDialog, vModel } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\tValue={model.ClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\tDisabled={!isBackOffice}\r\n\t\t\t\t\t\t\t\t\t\tRequired={model.searchIsNotSpecific == true}\r\n\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.ClientId} />\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t { return this.state.model; }}\r\n\t\t\t\t\t\t\t\t\tRequestUrl=\"/tspapi/v1.0/MdesTokenRequestor/GelAllTokenRequestorByParamaterPaged\"\r\n\t\t\t\t\t\t\t\t\tRequestMethod=\"POST\"/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nTspTokenRequestor.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\thandleOperationType: PropTypes.func,\r\n\tSelectedRowChange: PropTypes.func,\r\n\tshowQuestionMessage: func,\r\n\tsetAppLeftTitle: func,\r\n\tsetAppCenterTitle: func,\r\n\tDisabled: bool\r\n};\r\n\r\nexport default withArtifex(TspTokenRequestor, {});","import { FormControlLabel, Radio } from \"@material-ui/core\";\r\nimport genericRadioInputStyle from \"assets/jss/generic/genericRadioInputStyle.jsx\";\r\nimport Card from \"components/Card/Card\";\r\nimport CardBody from \"components/Card/CardBody\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer\";\r\nimport GridItem from \"components/Grid/GridItem\";\r\nimport Black from \"components/Typography/Black\";\r\nimport { Proxy, withRedux } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport { UserConstants } from \"store\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericAlert, GenericNumberInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { AuthenticationMethod } from \"views/Constants/Constant\";\r\n\r\nconst changePasswordStyle = theme => ({\r\n\t...genericRadioInputStyle\r\n});\r\n\r\nclass ChangeOrResetPassword extends React.Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tOtp: \"\",\r\n\t\t\tOtpId: 0,\r\n\t\t\tNewPassword: \"\",\r\n\t\t\tConfirmNewPassword: \"\",\r\n\t\t\tAuthenticationMethod: \"\"\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\r\n\t\tthis.maxLength6 = { maxLength: 6 };\r\n\t\tthis.AuthMethodDivStyle = { width: \"50%\", marginRight: \"auto\", marginLeft: \"auto\" };\r\n\t\tthis.googleImageStyle = { height: 50 };\r\n\t\tthis.twilioImageStyle = { height: 50 };\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Change Password\");\r\n\t\tthis.props.setAppCenterTitle(\"User Admin\");\r\n\r\n\t\tvar model = { ...this.state.model };\r\n\t\tconst userJson = ClientHelper.GetUser();\r\n\t\tmodel.Email = userJson[\"UserEmail\"];\r\n\t\tmodel.UserRole = userJson[\"Role\"][\"RoleName\"];\r\n\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleChange = (name, value) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleChangeAuthMethod = event => {\r\n\t\tconst { model } = this.state;\r\n\t\tif (!this.ValidateEmail())\r\n\t\t\treturn;\r\n\r\n\t\tif (event.target.value == AuthenticationMethod.Google) {\r\n\t\t\t// this.GetQRCode();\r\n\t\t} else {\r\n\t\t\tthis.SendSMSOTP();\r\n\t\t}\r\n\t\tmodel.AuthenticationMethod = event.target.value;\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel } });\r\n\t}\r\n\r\n\tHandleSubmit = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tif (!this.Validate()) {\r\n\t\t\tthis.setState({ isLoading: false });\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tProxy.POST(\"/coreapi/v1.0/User/ChangePassword\",\r\n\t\t\tthis.state.model,\r\n\t\t\tthis.ChangePasswordCallback,\r\n\t\t\tthis.ChangePasswordErrorCallback\r\n\t\t);\r\n\t}\r\n\r\n\tValidateEmail = () => {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tif (!model.Email) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"E-Mail Is Empty\", \"Enter E-Mail for us to send the verification SMS!\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tif (!model.OldPassword || model.OldPassword.trim() === \"\") {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Old Password Is Empty\", \"Enter old password to change password.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (!model.NewPassword || model.NewPassword.trim() === \"\") {\r\n\t\t\tthis.ShowMessage(\"warning\", \"New Password Is Empty\", \"Enter new password to change password.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (!model.ConfirmNewPassword || model.ConfirmNewPassword.trim() === \"\") {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Confirm New Password Is Empty\", \"Enter confirm new password to change password.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (model.NewPassword != model.ConfirmNewPassword) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"The new password and the confirm new password do not match.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tSendSMSOTP = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/TwoFactorAuth/SendSmsOtpForPasswordChange\",\r\n\t\t\t{\r\n\t\t\t\tEmail: this.state.model.Email,\r\n\t\t\t\tOrganizationUniqueId: window.OrganizationUniqueId\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tmodel.OtpId = responseData.OtpId;\r\n\t\t\t\tthis.setState({ model });\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", \"An error occurred during the send sms otp \" + error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tChangePasswordCallback = (responseData) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.ShowMessage(\"success\", \"Successful\", \"The password has been successfully change.\");\r\n\r\n\t\tconst { dispatch } = this.props;\r\n\t\tsetTimeout(function () {\r\n\t\t\tlocalStorage.removeItem(\"user\");\r\n\t\t\tdispatch({ type: UserConstants.LOGOUT });\r\n\t\t}, 2000);\r\n\t}\r\n\r\n\tChangePasswordErrorCallback = (error) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"Error\", \"An error occurred during the change password \" + error);\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })}\r\n\t\t\t/>\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes, Disabled } = this.props;\r\n\t\tconst { alert, isLoading, model } = this.state;\r\n\r\n\t\tconst googleLogo = require(\"assets/img/\" + window.OtpGoogleLogo);\r\n\t\tconst twilioLogo = require(\"assets/img/\" + window.OtpTwilio);\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\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t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nChangeOrResetPassword.propTypes = {\r\n\tclasses: PropTypes.object.isRequired\r\n};\r\n\r\nexport default withRedux(ChangeOrResetPassword, changePasswordStyle);","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericGrid, GenericInput, GenericLabel, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { BankProgramType, ExpressionType, PropertyType } from \"views/Constants/Constant\";\r\nimport { MaxLength500 } from \"views/Constants/Constant.MaxLength\";\r\nimport { SortedParameterValue, SortedPropertyName } from \"views/Constants/Constant.Sorted\";\r\n\r\nclass EftRoutingRule extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Code\",\r\n\t\t\t\taccessor: \"Code\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Description\",\r\n\t\t\t\taccessor: \"Description\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Program\",\r\n\t\t\t\taccessor: \"ProgramDescription\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Class Definition\",\r\n\t\t\t\taccessor: \"ClassDefinitionDescription\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"EFT Processor\",\r\n\t\t\t\taccessor: \"EftProcessorParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Priority Order\",\r\n\t\t\t\taccessor: \"PriorityOrder\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.callerModuleEftCoreId = null;\r\n\t\tthis.programEftId = null;\r\n\r\n\t\tthis.parameterProgramCodeEft = { ProgramCode: BankProgramType.EFT };\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tVerificationList: []\r\n\t\t\t},\r\n\t\t\tlist: [],\r\n\t\t\tcriteriaList: []\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"SYSTEM ADMIN\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"EFT Routing Rule\");\r\n\t\t}\r\n\r\n\t\tthis.GetCallerModuleEftCore();\r\n\t\tthis.GetExpressionType();\r\n\t\tthis.GetProgramEftId();\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\tif (name == \"ProgramId\") {\r\n\t\t\t\tmodel.ProgramId = value || 0;\r\n\t\t\t\tmodel.ClassDefinitionId = undefined;\r\n\t\t\t} else if (name == \"ClassDefinitionId\") {\r\n\t\t\t\tif (value != null) {\r\n\t\t\t\t\tthis.GetPropertyDefinition();\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\treturn { model, criteriaList: [] };\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tValueChangedDeleteButton = (index) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar criteriaList = state.criteriaList;\r\n\r\n\t\t\tcriteriaList.splice(index, 1);\r\n\r\n\t\t\treturn { criteriaList };\r\n\t\t});\r\n\t}\r\n\r\n\tValueChangedCriteria = (name, value, data, index) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar criteriaList = state.criteriaList;\r\n\t\t\tvar item = criteriaList[index], i;\r\n\r\n\t\t\tif (name == \"PropertyDefinitionId\") {\r\n\t\t\t\tif (value == null) {\r\n\t\t\t\t\tcriteriaList.splice(index, 1);\r\n\r\n\t\t\t\t\treturn { criteriaList };\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (data != null && item != null && data.PropertyType != null) {\r\n\t\t\t\t\tconst { showMessage } = this.props;\r\n\r\n\t\t\t\t\tif (data.PropertyDependencyId != null && criteriaList.filter(x => x.PropertyDefinitionId == data.PropertyDependencyId).length == 0) {\r\n\t\t\t\t\t\tshowMessage(\"warning\", \"Warning\", `You cannot select this property. You must before add ${data.PropertyDependency.Description} which is dependency property.`);\r\n\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (state.propertyDefinitionList.filter(x => x.PropertyDependencyId == data.PropertyDefinitionId) != 0) {\r\n\t\t\t\t\t\tfor (i = 0; i < criteriaList.length; i++) {\r\n\t\t\t\t\t\t\tif (i != index && criteriaList[i].PropertyDefinitionId == data.PropertyDefinitionId) {\r\n\t\t\t\t\t\t\t\tshowMessage(\"warning\", \"Warning\", \"You cannot select this property. It's dependency property and added before.\");\r\n\r\n\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (criteriaList.filter(x => x.PropertyDefinitionId == data.PropertyDefinitionId) != 0 && data.PropertyDependencyId != null) {\r\n\t\t\t\t\t\tshowMessage(\"warning\", \"Warning\", \"You cannot select this property. It has a dependency property and added before.\");\r\n\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\titem.DataModelProperty = {\r\n\t\t\t\t\t\tPropertyType: data.PropertyType\r\n\t\t\t\t\t};\r\n\t\t\t\t\titem.ViewData = this.GenerateViewData(data);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (!item) {\r\n\t\t\t\t\titem = {};\r\n\t\t\t\t}\r\n\r\n\t\t\t\titem.Value = null;\r\n\t\t\t\titem.ExpressionTypeId = undefined;\r\n\t\t\t\titem.PropertyName = data.PropertyName;\r\n\t\t\t\titem.PropertyDependencyId = data.PropertyDependencyId;\r\n\t\t\t} else if (name == \"Value\") {\r\n\t\t\t\tif (value == null) {\r\n\t\t\t\t\titem[name] = null;\r\n\r\n\t\t\t\t\treturn { criteriaList };\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfor (i = 0; i < criteriaList.length; i++) {\r\n\t\t\t\t\tif (i != index && criteriaList[i].PropertyDependencyId == criteriaList[index].PropertyDefinitionId) {\r\n\t\t\t\t\t\tcriteriaList[i].ViewData.Key = data.Id;\r\n\r\n\t\t\t\t\t\tvar propertyName = criteriaList[index].PropertyName;\r\n\t\t\t\t\t\tvar parameter = {};\r\n\t\t\t\t\t\tparameter[propertyName] = data.Id;\r\n\t\t\t\t\t\tcriteriaList[i].ViewData[\"Parameter\"] = parameter;\r\n\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\titem[name] = value;\r\n\r\n\t\t\treturn { criteriaList };\r\n\t\t});\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tconst { list } = this.state;\r\n\t\tvar model = {}, criteriaList = [], listItem = list[index];\r\n\r\n\t\tmodel.ClassDefinitionId = listItem.ClassDefinitionId;\r\n\r\n\t\tthis.setState({ model });\r\n\r\n\t\tmodel.Id = listItem.EftRoutingRuleId;\r\n\t\tmodel.ProgramId = listItem.ProgramId;\r\n\t\tmodel.EftProcessorId = listItem.EftProcessorId;\r\n\t\tmodel.PriorityOrder = listItem.PriorityOrder;\r\n\t\tmodel.Description = listItem.Description;\r\n\r\n\t\tthis.GetPropertyDefinition(listItem.ClassDefinitionId);\r\n\r\n\t\tlistItem.CriteriaList.map(x => {\r\n\t\t\tcriteriaList.push({\r\n\t\t\t\tId: x.EftRoutingRuleCriteriaId,\r\n\t\t\t\tPropertyDefinitionId: x.PropertyDefinitionId,\r\n\t\t\t\tExpressionTypeId: x.ExpressionTypeId,\r\n\t\t\t\tValue: x.Value,\r\n\t\t\t\tDataModelProperty: {\r\n\t\t\t\t\tPropertyType: x.PropertyType\r\n\t\t\t\t},\r\n\t\t\t\tViewData: this.GenerateViewData(x, listItem.CriteriaList)\r\n\t\t\t});\r\n\r\n\t\t\treturn null;\r\n\t\t});\r\n\r\n\t\tthis.setState({ model, criteriaList, selected: index });\r\n\t}\r\n\r\n\tGetRenderItemPropertyDefinition = (x) => {\r\n\t\tvar render = `${x.Description}`;\r\n\r\n\t\tif (x.PropertyPath != null) {\r\n\t\t\trender += ` - ${x.PropertyPath}`;\r\n\t\t}\r\n\r\n\t\treturn render;\r\n\t}\r\n\r\n\tGetParameterProgramIdAndCallerModuleId = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tvar result = {\r\n\t\t\tProgramId: model.ProgramId,\r\n\t\t\tCallerModuleId: this.callerModuleEftCoreId\r\n\t\t};\r\n\r\n\t\treturn result;\r\n\t}\r\n\r\n\tGetParameterClassDefinitionId = () => {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tvar result = {\r\n\t\t\tId: model.ClassDefinitionId\r\n\t\t};\r\n\r\n\t\treturn result;\r\n\t}\r\n\r\n\tGetCriteriaIndex = (index) => {\r\n\t\tindex = index + 1;\r\n\r\n\t\treturn index;\r\n\t}\r\n\r\n\tGenerateViewData = (data, criteriaListFromApi = null) => {\r\n\t\tvar propertyType = data.PropertyType.ParameterValue;\r\n\t\tvar propertyData = data.PropertyData;\r\n\r\n\t\tif (propertyType == PropertyType.Select) {\r\n\t\t\tvar temp = JSON.parse(propertyData);\r\n\t\t\tif (temp == null) {\r\n\t\t\t\ttemp = {};\r\n\t\t\t} else if (data.PropertyDependencyId != null) {\r\n\t\t\t\tvar { criteriaList } = this.state;\r\n\r\n\t\t\t\tif (criteriaListFromApi != null) {\r\n\t\t\t\t\tcriteriaList = criteriaListFromApi;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvar dependencyProperty = null;\r\n\r\n\t\t\t\tfor (var index = 0; index < criteriaList.length; index++) {\r\n\t\t\t\t\tif (criteriaList[index].PropertyDefinitionId == data.PropertyDependencyId) {\r\n\t\t\t\t\t\tdependencyProperty = criteriaList[index];\r\n\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (dependencyProperty == null) {\r\n\t\t\t\t\treturn {};\r\n\t\t\t\t}\r\n\r\n\t\t\t\ttemp.key = data.Id || dependencyProperty.Value;\r\n\r\n\t\t\t\tvar propertyName = dependencyProperty.PropertyName;\r\n\t\t\t\tvar parameter = {};\r\n\t\t\t\tparameter[propertyName] = data.Id || dependencyProperty.Value || 0;\r\n\t\t\t\ttemp[\"Parameter\"] = parameter;\r\n\t\t\t}\r\n\r\n\t\t\ttemp.Name = \"Value\";\r\n\t\t\ttemp.InputType = PropertyType.Select;\r\n\t\t\ttemp.CanClear = false;\r\n\r\n\t\t\treturn temp;\r\n\t\t}\r\n\r\n\t\tif (propertyType == PropertyType.Decimal) {\r\n\t\t\treturn {\r\n\t\t\t\tName: \"Value\",\r\n\t\t\t\tInputType: PropertyType.Decimal,\r\n\t\t\t\tPrefix: \"$ \",\r\n\t\t\t\tMaxLength: 7\r\n\t\t\t};\r\n\t\t}\r\n\r\n\t\tif (propertyType == PropertyType.Date) {\r\n\t\t\treturn {\r\n\t\t\t\tName: \"Value\",\r\n\t\t\t\tInputType: PropertyType.Date,\r\n\t\t\t\tIncludeTime: false,\r\n\t\t\t\tUtc: true,\r\n\t\t\t\tIsFormatDate: true\r\n\t\t\t};\r\n\t\t}\r\n\r\n\t\tif (propertyType == PropertyType.Int) {\r\n\t\t\treturn {\r\n\t\t\t\tName: \"Value\",\r\n\t\t\t\tInputType: PropertyType.Number,\r\n\t\t\t\tNoFormatting: true\r\n\t\t\t};\r\n\t\t}\r\n\r\n\t\treturn {\r\n\t\t\tName: \"Value\",\r\n\t\t\tInputType: propertyType\r\n\t\t};\r\n\t}\r\n\r\n\tGetCallerModuleEftCore = async () => {\r\n\t\tvar { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/Parameter/Search\", { ParameterCode: \"CallerModule\", ParameterValue: \"EftCore\" });\r\n\r\n\t\tif (result != null) {\r\n\t\t\tthis.callerModuleEftCoreId = result[0].Id;\r\n\t\t\tmodel.CallerModuleId = result[0].Id;\r\n\r\n\t\t\tthis.setState({ model });\r\n\t\t}\r\n\t}\r\n\r\n\tGetPropertyDefinition = async (classDefinitonId) => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/PropertyDefinition/SearchByClassDefinitionId\", { Id: model.ClassDefinitionId || classDefinitonId });\r\n\r\n\t\tthis.setState({ propertyDefinitionList: result || [] });\r\n\t}\r\n\r\n\tGetExpressionType = async () => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/Parameter/Search\", { ParameterCode: \"ExpressionType\" });\r\n\t\tvar expressionTypeList = [], expressionTypeEqualList = [];\r\n\r\n\t\tif (result != null) {\r\n\t\t\tresult\r\n\t\t\t\t.filter(x => x.ParameterValue == ExpressionType.Equal)\r\n\t\t\t\t.map(x => {\r\n\t\t\t\t\texpressionTypeEqualList.push(x);\r\n\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t});\r\n\t\t\tresult\r\n\t\t\t\t.filter(x => x.ParameterValue != ExpressionType.Like)\r\n\t\t\t\t.map(x => {\r\n\t\t\t\t\texpressionTypeList.push(x);\r\n\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t});\r\n\t\t}\r\n\r\n\t\tthis.setState({ expressionTypeList, expressionTypeEqualList });\r\n\t}\r\n\r\n\tGetProgramEftId = async () => {\r\n\t\tvar { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/ClassDefinitionProgramMap/SearchProgram\", { ProgramCode: BankProgramType.EFT });\r\n\r\n\t\tif (result != null && result.length == 1) {\r\n\t\t\tmodel.ProgramId = result[0].Id;\r\n\t\t\tthis.programEftId = result[0].Id;\r\n\t\t}\r\n\r\n\t\tthis.setState({ model, listProgram: result || [] });\r\n\t}\r\n\r\n\tAddCriteria = () => {\r\n\t\tvar { criteriaList } = this.state;\r\n\r\n\t\tcriteriaList.push({\r\n\t\t\tId: 0,\r\n\t\t\tExpressionTypeId: 0,\r\n\t\t\tViewData: null\r\n\t\t});\r\n\r\n\t\tthis.setState({ criteriaList });\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\t\tvar { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/bankapi/v1.0/EftRoutingRule/Search\", model);\r\n\r\n\t\tmodel.IsClassDefinitionId = false;\r\n\t\tmodel.IsEftProcessorId = false;\r\n\t\tmodel.IsPriorityOrder = false;\r\n\t\tmodel.IsDescription = false;\r\n\r\n\t\tthis.setState({ model, list: result || [] });\r\n\t}\r\n\r\n\tSubmitOrUpdate(actionName) {\r\n\t\tconst { model, criteriaList } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar request = {\r\n\t\t\tEftRoutingRuleId: model.Id,\r\n\t\t\tProgramId: model.ProgramId,\r\n\t\t\tClassDefinitionId: model.ClassDefinitionId,\r\n\t\t\tEftProcessorId: model.EftProcessorId,\r\n\t\t\tPriorityOrder: model.PriorityOrder,\r\n\t\t\tDescription: model.Description,\r\n\t\t\tCriteriaList: criteriaList.map(x => {\r\n\t\t\t\treturn {\r\n\t\t\t\t\tEftRoutingRuleCriteriaId: x.Id,\r\n\t\t\t\t\tPropertyDefinitionId: x.PropertyDefinitionId,\r\n\t\t\t\t\tExpressionTypeId: x.ExpressionTypeId,\r\n\t\t\t\t\tValue: x.Value\r\n\t\t\t\t};\r\n\t\t\t})\r\n\t\t};\r\n\r\n\t\tExecuteApiPost(`/bankapi/v1.0/EftRoutingRule/${actionName}`, request, null, null, this.Validate, [this.Clear, this.Search], true);\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tvar model = {};\r\n\r\n\t\tmodel.CallerModuleId = this.callerModuleEftCoreId;\r\n\t\tmodel.ProgramId = this.programEftId;\r\n\r\n\t\tthis.setState({ model, list: [], criteriaList: [], selected: null });\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model, criteriaList } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errors = [];\r\n\r\n\t\tif (!model.ClassDefinitionId) {\r\n\t\t\terrors.push(\"Class definition cannot be null.\");\r\n\t\t}\r\n\t\tif (!model.EftProcessorId) {\r\n\t\t\terrors.push(\"EFT processor cannot be null.\");\r\n\t\t}\r\n\t\tif (!model.PriorityOrder) {\r\n\t\t\terrors.push(\"Priority order cannot be null.\");\r\n\t\t}\r\n\t\tif (!model.Description) {\r\n\t\t\terrors.push(\"Description cannot be null.\");\r\n\t\t}\r\n\t\tif (criteriaList.length == 0\r\n\t\t\t|| criteriaList.filter(x => x.PropertyDefinitionId == null || x.ExpressionTypeId == null || x.Value == null).length != 0) {\r\n\t\t\terrors.push(\"Criteria can not be null.\");\r\n\t\t}\r\n\r\n\t\tmodel[\"IsClassDefinitionId\"] = !model.ClassDefinitionId;\r\n\t\tmodel[\"IsEftProcessorId\"] = !model.EftProcessorId;\r\n\t\tmodel[\"IsPriorityOrder\"] = !model.PriorityOrder;\r\n\t\tmodel[\"IsDescription\"] = !model.Description;\r\n\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, list, listProgram, expressionTypeList, expressionTypeEqualList, criteriaList, selected } = this.state;\r\n\t\tconst { Disabled, ExecuteApiPost, showConfirmMessageInDelete } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t this.SubmitOrUpdate(\"Insert\")\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Update\",\r\n\t\t\t\t\t\t\tDisabled: Disabled || selected == null,\r\n\t\t\t\t\t\t\tOnClick: () => this.SubmitOrUpdate(\"Update\")\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Delete\",\r\n\t\t\t\t\t\t\tDisabled: Disabled || selected == null,\r\n\t\t\t\t\t\t\tOnClick: () => showConfirmMessageInDelete(() => ExecuteApiPost(\"/bankapi/v1.0/EftRoutingRule/Delete\", { Id: model.Id }, null, null, null, [this.Clear, this.Search], true))\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Clear\",\r\n\t\t\t\t\t\t\tDisabled: Disabled,\r\n\t\t\t\t\t\t\tOnClick: () => this.Clear()\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ Criteria\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tcriteriaList && criteriaList.map((item, index) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.ValueChangedDeleteButton(index)}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDelete\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.ValueChangedCriteria(name, value, data, index)} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.ValueChangedCriteria(name, value, data, index)} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.ValueChangedCriteria(name, value, data, index)} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.ValueChangedCriteria(name, value, data, index)} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nEftRoutingRule.propTypes = {\r\n\tExecuteApiPost: PropTypes.func,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default EftRoutingRule;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport { MaxLength20 } from \"views/Constants/Constant.MaxLength\";\r\n\r\nclass Action extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Action Code\",\r\n\t\t\t\taccessor: \"Code\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Action Description\",\r\n\t\t\t\taccessor: \"Description\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Action Order\",\r\n\t\t\t\taccessor: \"Order\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.validateProperties = [{ \"Code\": \"Code\" }, { \"Description\": \"Description\" }, { \"Order\": \"Order\" }];\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {}\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"USER ADMIN\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Action\");\r\n\t\t}\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tconst { list } = this.state;\r\n\r\n\t\tthis.setState({ model: list[index], selected: index });\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\t\tvar { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/Action/Search\", model);\r\n\r\n\t\tmodel.IsCode = false;\r\n\t\tmodel.IsDescription = false;\r\n\t\tmodel.IsOrder = false;\r\n\r\n\t\tthis.setState({ model, list: result || [] });\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, list: [], selected: null });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, list, selected } = this.state;\r\n\t\tconst { Disabled, ExecuteApiPost, showConfirmMessageInDelete } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t ExecuteApiPost(\"/coreapi/v1.0/Action/Insert\", model, model, this.validateProperties, null, [this.Clear, this.Search], true)\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Update\",\r\n\t\t\t\t\t\t\tDisabled: Disabled || selected == null,\r\n\t\t\t\t\t\t\tOnClick: () => ExecuteApiPost(\"/coreapi/v1.0/Action/Update\", model, model, this.validateProperties, null, [this.Clear, this.Search], true)\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Delete\",\r\n\t\t\t\t\t\t\tDisabled: Disabled || selected == null,\r\n\t\t\t\t\t\t\tOnClick: () => showConfirmMessageInDelete(() => ExecuteApiPost(\"/coreapi/v1.0/Action/Delete\", { Id: model.Id }, null, null, null, [this.Clear, this.Search], true))\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Clear\",\r\n\t\t\t\t\t\t\tDisabled: Disabled,\r\n\t\t\t\t\t\t\tOnClick: this.Clear\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nAction.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default Action;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport ArrayHelper from \"core/ArrayHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericCheckInput, GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport { MaxLength500, MaxLength6 } from \"views/Constants/Constant.MaxLength\";\r\nimport { ParameterEmptyObject } from \"views/Constants/Constant.Parameter\";\r\n\r\nclass Menu extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Parent\",\r\n\t\t\t\taccessor: \"ParentName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Code\",\r\n\t\t\t\taccessor: \"Code\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Name\",\r\n\t\t\t\taccessor: \"Name\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Name After Translate\",\r\n\t\t\t\taccessor: \"NameAfterTranslate\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Path\",\r\n\t\t\t\taccessor: \"Path\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Url\",\r\n\t\t\t\taccessor: \"Url\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Icon\",\r\n\t\t\t\taccessor: \"Icon\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Order\",\r\n\t\t\t\taccessor: \"Order\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Screen\",\r\n\t\t\t\taccessor: \"ScreenCode\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.styleCheckInput = { marginTop: 7, marginLeft: -10 };\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {}\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"USER ADMIN\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Menu\");\r\n\t\t}\r\n\r\n\t\tthis.GetMenuListForParentMenu();\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\tif (name === \"IsBaseMenu\" && value) {\r\n\t\t\t\tmodel.ParentId = null;\r\n\t\t\t\tmodel.Path = \"\";\r\n\t\t\t\tmodel.Url = \"\";\r\n\t\t\t\tmodel.IsProgramMenu = null;\r\n\t\t\t} else if (name === \"IsBaseMenu\" && !value) {\r\n\t\t\t\tmodel.IsProgramMenu = null;\r\n\t\t\t} else if (name === \"IsGenericScreen\" && value) {\r\n\t\t\t\tmodel.Path = \"\";\r\n\t\t\t} else if (name === \"IsGenericScreen\" && !value) {\r\n\t\t\t\tmodel.ScreenId = null;\r\n\t\t\t}\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tconst { list } = this.state;\r\n\r\n\t\tvar model = list[index];\r\n\t\tmodel.MenuId = list[index].ParentId;\r\n\r\n\t\tthis.setState({ model, selected: index });\r\n\t}\r\n\r\n\tGetMenuListForParentMenu = async () => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/Menu/GetMenuListForMenu\", {});\r\n\t\tvar menuList = [];\r\n\r\n\t\tif (result != null) {\r\n\t\t\tresult.map(x => {\r\n\t\t\t\tmenuList.push({\r\n\t\t\t\t\t\"MenuId\": x.Id,\r\n\t\t\t\t\t\"FullPath\": x.FullPath\r\n\t\t\t\t});\r\n\r\n\t\t\t\treturn null;\r\n\t\t\t});\r\n\r\n\t\t\tArrayHelper.SortArray(menuList, \"FullPath\");\r\n\t\t}\r\n\r\n\t\tthis.setState({ menuList });\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\t\tvar { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/Menu/Search\", model);\r\n\r\n\t\tmodel[\"IsParentId\"] = false;\r\n\t\tmodel[\"IsScreenId\"] = false;\r\n\t\tmodel[\"IsCode\"] = false;\r\n\t\tmodel[\"IsName\"] = false;\r\n\t\tmodel[\"IsIcon\"] = false;\r\n\t\tmodel[\"IsOrder\"] = false;\r\n\r\n\t\tthis.setState({ list: result || [] });\r\n\t}\r\n\r\n\tUpdate = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar request = {\r\n\t\t\tId: model.Id,\r\n\t\t\tParentId: model.ParentId,\r\n\t\t\tCode: model.Code,\r\n\t\t\tName: model.Name,\r\n\t\t\tPath: model.Path,\r\n\t\t\tUrl: model.Url,\r\n\t\t\tIcon: model.Icon,\r\n\t\t\tOrder: model.Order,\r\n\t\t\tScreenId: model.ScreenId,\r\n\t\t\tShowInMenu: model.ShowInMenu,\r\n\t\t\tIsProgramMenu: model.IsProgramMenu\r\n\t\t};\r\n\r\n\t\tExecuteApiPost(\"/coreapi/v1.0/Menu/Update\", request, null, null, this.Validate, [this.GetMenuListForParentMenu, this.Clear, this.Search], true);\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, list: [], selected: null });\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tvar { model } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errors = [];\r\n\r\n\t\tif (!model.IsBaseMenu && model.ParentId == null) {\r\n\t\t\terrors.push(\"Parent can not be null.\");\r\n\t\t}\r\n\r\n\t\tif (model.Id != null && model.Id == model.ParentId) {\r\n\t\t\terrors.push(\"Parent menu must not equal itself.\");\r\n\t\t}\r\n\r\n\t\tif (model.IsGenericScreen && model.ScreenId == null) {\r\n\t\t\terrors.push(\"Screen can not be null.\");\r\n\t\t}\r\n\r\n\t\tif (!model.Code) {\r\n\t\t\terrors.push(\"Code can not be null.\");\r\n\t\t} else if (model.Code.length !== 6) {\r\n\t\t\terrors.push(\"Code length must be 6.\");\r\n\t\t}\r\n\r\n\t\tif (model.Name == null || model.Name === \"\") {\r\n\t\t\terrors.push(\"Name can not be null.\");\r\n\t\t}\r\n\r\n\t\tif (model.Icon == null || model.Icon === \"\") {\r\n\t\t\terrors.push(\"Icon can not be null.\");\r\n\t\t}\r\n\r\n\t\tif (model.Order == null || model.Order === \"\") {\r\n\t\t\terrors.push(\"Order can not be null.\");\r\n\t\t}\r\n\r\n\t\tmodel[\"IsParentId\"] = !model.IsBaseMenu && model.ParentId == null;\r\n\t\tmodel[\"IsScreenId\"] = model.IsGenericScreen && model.ScreenId == null;\r\n\t\tmodel[\"IsCode\"] = !model.Code;\r\n\t\tmodel[\"IsName\"] = !model.Name;\r\n\t\tmodel[\"IsIcon\"] = !model.Icon;\r\n\t\tmodel[\"IsOrder\"] = !model.Order;\r\n\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, list, menuList, selected } = this.state;\r\n\t\tconst { Disabled, ExecuteApiPost, showConfirmMessageInDelete } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t ExecuteApiPost(\"/coreapi/v1.0/Menu/Insert\", model, null, null, this.Validate, [this.GetMenuListForParentMenu, this.Clear, this.Search], true)\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Update\",\r\n\t\t\t\t\t\t\tDisabled: Disabled || selected == null,\r\n\t\t\t\t\t\t\tOnClick: this.Update\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Delete\",\r\n\t\t\t\t\t\t\tDisabled: Disabled || selected == null,\r\n\t\t\t\t\t\t\tOnClick: () => showConfirmMessageInDelete(() => ExecuteApiPost(\"/coreapi/v1.0/Menu/Delete\", { Id: model.Id }, null, null, null, [this.GetMenuListForParentMenu, this.Clear, this.Search], true))\r\n\t\t\t\t\t\t},\r\n\t\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\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nMenu.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default Menu;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport ResourceHelper from \"core/ResourceHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericCheckInput, GenericExpansionPanel, GenericGrid, GenericSelectInput } from \"views/Components/Generic\";\r\nimport { ParameterEmptyObject } from \"views/Constants/Constant.Parameter\";\r\nimport { SortedName } from \"views/Constants/Constant.Sorted\";\r\n\r\nclass MenuAction extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columns = [];\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tParentMenuId: -2\r\n\t\t\t},\r\n\t\t\tactionList: [],\r\n\t\t\tactionDetails: []\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"System Admin\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Menu Action\");\r\n\t\t}\r\n\r\n\t\tthis.GetActionList();\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\tif (name == \"ParentMenuId\") {\r\n\t\t\t\tmodel[\"SubMenuId\"] = null;\r\n\t\t\t}\r\n\r\n\t\t\treturn { model, actionDetails: [] };\r\n\t\t});\r\n\t}\r\n\r\n\tCellValueChanged = (name, value, index, isAction) => {\r\n\t\tvar { actionDetails } = this.state;\r\n\r\n\t\tif (isAction) {\r\n\t\t\tactionDetails[index].Action = value;\r\n\t\t} else {\r\n\t\t\tactionDetails[index].WorkflowAction = value;\r\n\t\t}\r\n\r\n\t\tthis.setState({ actionDetails });\r\n\t\tthis.GetColumns(actionDetails);\r\n\t}\r\n\r\n\tGetParameterSubMenu = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tvar result = {\r\n\t\t\tId: model.ParentMenuId\r\n\t\t};\r\n\r\n\t\treturn result;\r\n\t}\r\n\r\n\tGetActionList = async () => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/Action/List\", {});\r\n\r\n\t\tthis.setState({ actionList: result || [] });\r\n\t}\r\n\r\n\tGetMenuName(menu) {\r\n\t\tvar menuName = ResourceHelper.GetForMenu(menu.Name);\r\n\t\tvar menuNameAndCode = `${!menuName ? \"! \" + menu.Name : menuName} - ${menu.Code}`;\r\n\r\n\t\treturn menuNameAndCode;\r\n\t}\r\n\r\n\tGetColumns = (actionDetails) => {\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Action Code\",\r\n\t\t\t\taccessor: \"ActionCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Action Description\",\r\n\t\t\t\taccessor: \"ActionDescription\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Action\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t this.CellValueChanged(name, value, row.index, true)}\r\n\t\t\t\t\t/>\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Workflow Action\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t this.CellValueChanged(name, value, row.index, false)}\r\n\t\t\t\t\t/>\r\n\t\t\t\t)\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.forceUpdate();\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\t\tvar { model, actionList } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/MenuAction/GetByMenuId\", model.SubMenuId, null, null, () => this.Validate(false));\r\n\t\tvar actionDetails = [];\r\n\r\n\t\tif (result != null) {\r\n\t\t\tactionList.map(x => {\r\n\t\t\t\tvar action = false, workflowAction = false;\r\n\r\n\t\t\t\tresult\r\n\t\t\t\t\t.filter(y => y.ActionId === x.Id)\r\n\t\t\t\t\t.map(y => {\r\n\t\t\t\t\t\taction = true;\r\n\t\t\t\t\t\tworkflowAction = y.IsWorkflowAction;\r\n\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\tactionDetails.push({\r\n\t\t\t\t\t\"ActionId\": x.Id,\r\n\t\t\t\t\t\"ActionCode\": x.Code,\r\n\t\t\t\t\t\"ActionDescription\": x.Description,\r\n\t\t\t\t\t\"Action\": action,\r\n\t\t\t\t\t\"WorkflowAction\": workflowAction\r\n\t\t\t\t});\r\n\r\n\t\t\t\treturn null;\r\n\t\t\t});\r\n\r\n\t\t\tmodel[\"IsParentId\"] = false;\r\n\t\t\tmodel[\"IsSubMenuId\"] = false;\r\n\r\n\t\t\tthis.setState({ model, actionDetails });\r\n\t\t\tthis.GetColumns(actionDetails);\r\n\t\t}\r\n\t}\r\n\r\n\tSubmit = () => {\r\n\t\tconst { model, actionDetails } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar menuActionList = [];\r\n\r\n\t\tactionDetails.map(x => {\r\n\t\t\tmenuActionList.push({\r\n\t\t\t\t\"ActionId\": x.ActionId,\r\n\t\t\t\t\"Action\": x.Action,\r\n\t\t\t\t\"WorkflowAction\": x.WorkflowAction\r\n\t\t\t});\r\n\r\n\t\t\treturn null;\r\n\t\t});\r\n\r\n\t\tExecuteApiPost(\"/coreapi/v1.0/MenuAction/Submit\", { MenuId: model.SubMenuId, MenuActionList: menuActionList }, null, null, () => this.Validate(true), null, true);\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: { ParentMenuId: -2 }, actionDetails: [] });\r\n\t}\r\n\r\n\tValidate = (isSubmit) => {\r\n\t\tvar { model, actionDetails } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errors = [];\r\n\r\n\t\tif (!model.ParentMenuId || model.ParentMenuId == -2) {\r\n\t\t\terrors.push(\"Parent menu can not be null.\");\r\n\t\t}\r\n\t\tif (!model.SubMenuId) {\r\n\t\t\terrors.push(\"Sub menu can not be null.\");\r\n\t\t}\r\n\t\tif (isSubmit && actionDetails.length == 0) {\r\n\t\t\terrors.push(\"Action list can not be null.\");\r\n\t\t}\r\n\r\n\t\tmodel[\"IsParentId\"] = !model.ParentMenuId || model.ParentMenuId == -2;\r\n\t\tmodel[\"IsSubMenuId\"] = !model.SubMenuId;\r\n\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, actionDetails } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nMenuAction.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default MenuAction;","import { DialogContent, DialogTitle, Slide } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport ResourceHelper from \"core/ResourceHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericCheckInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericSelectInput } from \"views/Components/Generic\";\r\nimport { RoleLevel } from \"views/Constants/Constant\";\r\nimport { ParameterEmptyObject } from \"views/Constants/Constant.Parameter\";\r\nimport { SortedCode, SortedFullPath, SortedName } from \"views/Constants/Constant.Sorted\";\r\n\r\nfunction Transition(props) {\r\n\treturn ;\r\n}\r\n\r\nclass MenuActionRight extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columns = [];\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tParentMenuId: -2\r\n\t\t\t},\r\n\t\t\troleDetails: []\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"USER ADMIN\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Menu Action Right\");\r\n\t\t}\r\n\r\n\t\tvar user = ClientHelper.GetUser();\r\n\r\n\t\tif (user.Role.RoleLevel.ParameterValue == RoleLevel.ClientStandardUser) {\r\n\t\t\tthis.setState({ isClientStandardUserOpen: true });\r\n\t\t}\r\n\r\n\t\tthis.GetRoleList();\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\tif (name == \"ParentMenuId\") {\r\n\t\t\t\tmodel[\"SubMenuId\"] = null;\r\n\t\t\t\tmodel[\"ActionId\"] = null;\r\n\t\t\t} else if (name == \"SubMenuId\") {\r\n\t\t\t\tmodel[\"ActionId\"] = null;\r\n\t\t\t}\r\n\r\n\t\t\treturn { model, roleDetails: [] };\r\n\t\t});\r\n\t}\r\n\r\n\tCellValueChanged = (name, value, index, isRole) => {\r\n\t\tvar { roleDetails } = this.state;\r\n\r\n\t\tif (isRole) {\r\n\t\t\troleDetails[index].RoleRight = value;\r\n\t\t} else {\r\n\t\t\troleDetails[index].WorkflowRoleRight = value;\r\n\t\t}\r\n\r\n\t\tthis.setState({ roleDetails });\r\n\t\tthis.GetColumns(roleDetails);\r\n\t}\r\n\r\n\tGetColumns = (roleDetails) => {\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Role Name\",\r\n\t\t\t\taccessor: \"RoleName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Role Level\",\r\n\t\t\t\taccessor: \"RoleGroupAndRoleLevel\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Role Right\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t this.CellValueChanged(name, value, row.index, true)}\r\n\t\t\t\t\t/>\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Workflow Role Right\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\troleDetails[row.index].IsWorkflowAction &&\r\n\t\t\t\t\t this.CellValueChanged(name, value, row.index, false)}\r\n\t\t\t\t\t/>\r\n\t\t\t\t)\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.forceUpdate();\r\n\t}\r\n\r\n\tGetSubMenuParameter = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tvar result = {\r\n\t\t\tId: model.ParentMenuId\r\n\t\t};\r\n\r\n\t\treturn result;\r\n\t}\r\n\r\n\tGetRenderItemAction = (x) => {\r\n\t\tvar render = `${x.Action.Code} - ${x.Action.Description}`;\r\n\r\n\t\treturn render;\r\n\t}\r\n\r\n\tGetRoleList = async () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar user = ClientHelper.GetUser();\r\n\t\tvar result = await ExecuteApiPost(`/coreapi/v1.0/Role/${user.Role.RoleLevel.ParameterValue != RoleLevel.ClientAdmin ? \"Search\" : \"ListForClientAdmin\"}`, model);\r\n\r\n\t\tthis.setState({ roleList: result || [] });\r\n\t}\r\n\r\n\tGetMenuName(menu) {\r\n\t\tvar menuName = ResourceHelper.GetForMenu(menu.Name);\r\n\t\tvar menuNameAndCode = `${!menuName ? \"! \" + menu.Name : menuName} - ${menu.Code}`;\r\n\r\n\t\treturn menuNameAndCode;\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\t\tvar { model, roleList } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/MenuActionRight/GetByMenuIdAndActionId\", { MenuId: model.SubMenuId, ActionId: model.ActionId }, null, null, () => this.Validate(false));\r\n\t\tvar roleDetails = [];\r\n\r\n\t\tif (result != null) {\r\n\t\t\troleList\r\n\t\t\t\t.map(x => {\r\n\t\t\t\t\tvar roleRight = false, workflowRoleRight = false;\r\n\r\n\t\t\t\t\tresult.RoleIds\r\n\t\t\t\t\t\t.filter(y => y === x.Id)\r\n\t\t\t\t\t\t.map(() => {\r\n\t\t\t\t\t\t\troleRight = true;\r\n\r\n\t\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\tif (result.IsWorkflowAction) {\r\n\t\t\t\t\t\tresult.WorkflowRoleIds\r\n\t\t\t\t\t\t\t.filter(y => y === x.Id)\r\n\t\t\t\t\t\t\t.map(() => {\r\n\t\t\t\t\t\t\t\tworkflowRoleRight = true;\r\n\r\n\t\t\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\troleDetails.push({\r\n\t\t\t\t\t\t\"RoleId\": x.Id,\r\n\t\t\t\t\t\t\"RoleName\": x.RoleName,\r\n\t\t\t\t\t\t\"RoleGroupAndRoleLevel\": `${x.RoleGroupParameterDesc} - ${x.RoleLevelParameterDesc}`,\r\n\t\t\t\t\t\t\"IsWorkflowAction\": result.IsWorkflowAction,\r\n\t\t\t\t\t\t\"RoleRight\": roleRight,\r\n\t\t\t\t\t\t\"WorkflowRoleRight\": workflowRoleRight\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t});\r\n\r\n\t\t\tmodel[\"IsParentMenuId\"] = false;\r\n\t\t\tmodel[\"IsSubMenuId\"] = false;\r\n\t\t\tmodel[\"IsActionId\"] = false;\r\n\r\n\t\t\tthis.setState({ roleDetails });\r\n\t\t\tthis.GetColumns(roleDetails);\r\n\t\t}\r\n\t}\r\n\r\n\tSubmit = () => {\r\n\t\tconst { model, roleDetails } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\r\n\t\tExecuteApiPost(\"/coreapi/v1.0/MenuActionRight/Submit\", {\r\n\t\t\tMenuId: model.SubMenuId, ActionId: model.ActionId,\r\n\t\t\tWorkflowAndMenuActionRightList: roleDetails.map(x => { return { RoleId: x.RoleId, RoleRight: x.RoleRight, WorkflowRoleRight: x.WorkflowRoleRight }; })\r\n\t\t}, null, null, () => this.Validate(true), null, true);\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: { ParentMenuId: -2 }, roleDetails: [] });\r\n\t}\r\n\r\n\tValidate = (isSubmit) => {\r\n\t\tvar { model, roleDetails } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errors = [];\r\n\r\n\t\tif (!model.ParentMenuId || model.ParentMenuId == -2) {\r\n\t\t\terrors.push(\"Parent menu can not be null.\");\r\n\t\t}\r\n\t\tif (!model.SubMenuId) {\r\n\t\t\terrors.push(\"Sub menu can not be null.\");\r\n\t\t}\r\n\t\tif (!model.ActionId) {\r\n\t\t\terrors.push(\"Action can not be null.\");\r\n\t\t}\r\n\t\tif (isSubmit && roleDetails.length == 0) {\r\n\t\t\terrors.push(\"Role list can not be null.\");\r\n\t\t}\r\n\r\n\t\tmodel[\"IsParentMenuId\"] = !model.ParentMenuId || model.ParentMenuId == -2;\r\n\t\tmodel[\"IsSubMenuId\"] = !model.SubMenuId;\r\n\t\tmodel[\"IsActionId\"] = !model.ActionId;\r\n\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, roleDetails, isClientStandardUserOpen } = this.state;\r\n\t\tconst { history, Disabled } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nMenuActionRight.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default MenuActionRight;","import { DialogContent, DialogTitle, Slide } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport ResourceHelper from \"core/ResourceHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericCheckInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericSelectInput } from \"views/Components/Generic\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { RoleLevel } from \"views/Constants/Constant\";\r\nimport { ParameterEmptyObject } from \"views/Constants/Constant.Parameter\";\r\nimport { SortedFullPath, SortedName } from \"views/Constants/Constant.Sorted\";\r\n\r\nfunction Transition(props) {\r\n\treturn ;\r\n}\r\n\r\nclass MenuAuthorityRight extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columns = [];\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tParentMenuId: -2,\r\n\t\t\t\tMenuId: -2,\r\n\t\t\t\tTypeId: -2\r\n\t\t\t},\r\n\t\t\troleDetails: []\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"USER ADMIN\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Menu Authority Right\");\r\n\t\t}\r\n\r\n\t\tvar user = ClientHelper.GetUser();\r\n\r\n\t\tif (user.Role.RoleLevel.ParameterValue == RoleLevel.ClientStandardUser) {\r\n\t\t\tthis.setState({ isClientStandardUserOpen: true });\r\n\t\t}\r\n\r\n\t\tthis.GetRoleList();\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\tif (name == \"ParentMenuId\") {\r\n\t\t\t\tmodel[\"MenuId\"] = null;\r\n\t\t\t\tmodel[\"MenuAuthorityDefinitionId\"] = null;\r\n\t\t\t} else if (name == \"MenuId\") {\r\n\t\t\t\tmodel[\"MenuAuthorityDefinition\"] = null;\r\n\t\t\t} else if (name == \"TypeId\") {\r\n\t\t\t\tmodel[\"MenuAuthorityDefinition\"] = null;\r\n\t\t\t}\r\n\r\n\t\t\treturn { model, roleDetails: [] };\r\n\t\t});\r\n\t}\r\n\r\n\tCellValueChanged = (name, value, index, isRole) => {\r\n\t\tvar { roleDetails } = this.state;\r\n\r\n\t\tif (isRole) {\r\n\t\t\troleDetails[index].RoleRight = value;\r\n\t\t}\r\n\r\n\t\tthis.setState({ roleDetails });\r\n\t\tthis.GetColumns(roleDetails);\r\n\t}\r\n\r\n\tGetColumns = (roleDetails) => {\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Role Name\",\r\n\t\t\t\taccessor: \"RoleName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Role Level\",\r\n\t\t\t\taccessor: \"RoleGroupAndRoleLevel\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Role Right\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t this.CellValueChanged(name, value, row.index, true)} />\r\n\t\t\t\t)\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.forceUpdate();\r\n\t}\r\n\r\n\tGetSubMenuParameter = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tvar result = {\r\n\t\t\tId: model.ParentMenuId\r\n\t\t};\r\n\r\n\t\treturn result;\r\n\t}\r\n\r\n\tGetMenuAuthorityDefinitionParameter = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tthis.parameterMenuAuthorityDefinition = {\r\n\t\t\tMenuId: model.MenuId,\r\n\t\t\tTypeId: model.TypeId\r\n\t\t};\r\n\r\n\t\treturn this.parameterMenuAuthorityDefinition;\r\n\t}\r\n\r\n\tGetRenderItemAction = (x) => {\r\n\t\tvar result = `${x.Action.Code} - ${x.Action.Description}`;\r\n\r\n\t\treturn result;\r\n\t}\r\n\r\n\tGetRoleList = async () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar user = ClientHelper.GetUser();\r\n\t\tvar result = await ExecuteApiPost(`/coreapi/v1.0/Role/${user.Role.RoleLevel.ParameterValue != RoleLevel.ClientAdmin ? \"Search\" : \"ListForClientAdmin\"}`, model);\r\n\r\n\t\tthis.setState({ roleList: result || [] });\r\n\t}\r\n\r\n\tGetMenuName(menu) {\r\n\t\tvar menuName = ResourceHelper.GetForMenu(menu.Name);\r\n\t\tvar menuNameAndCode = `${!menuName ? \"! \" + menu.Name : menuName} - ${menu.Code}`;\r\n\r\n\t\treturn menuNameAndCode;\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\t\tvar { model, roleList } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/MenuAuthorityRight/ListRoleById\", { MenuAuthorityDefinitionId: model.MenuAuthorityDefinitionId }, null, null, () => this.Validate(false));\r\n\t\tvar roleDetails = [];\r\n\r\n\t\tif (result != null) {\r\n\t\t\troleList\r\n\t\t\t\t.map(x => {\r\n\t\t\t\t\tvar roleRight = false;\r\n\r\n\t\t\t\t\tresult.RoleIds\r\n\t\t\t\t\t\t.filter(y => y === x.Id)\r\n\t\t\t\t\t\t.map(() => {\r\n\t\t\t\t\t\t\troleRight = true;\r\n\r\n\t\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\troleDetails.push({\r\n\t\t\t\t\t\t\"RoleId\": x.Id,\r\n\t\t\t\t\t\t\"RoleName\": x.RoleName,\r\n\t\t\t\t\t\t\"RoleGroupAndRoleLevel\": `${x.RoleGroupParameterDesc} - ${x.RoleLevelParameterDesc}`,\r\n\t\t\t\t\t\t\"RoleRight\": roleRight\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t});\r\n\r\n\t\t\tmodel[\"IsParentMenuId\"] = false;\r\n\t\t\tmodel[\"IsMenuId\"] = false;\r\n\t\t\tmodel[\"IsTypeId\"] = false;\r\n\t\t\tmodel[\"IsMenuAuthorityDefinitionId\"] = false;\r\n\r\n\t\t\tthis.setState({ roleDetails });\r\n\t\t\tthis.GetColumns(roleDetails);\r\n\t\t}\r\n\t}\r\n\r\n\tSubmit = () => {\r\n\t\tconst { model, roleDetails } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\r\n\t\tExecuteApiPost(\"/coreapi/v1.0/MenuAuthorityRight/Submit\", {\r\n\t\t\tMenuAuthorityDefinitionId: model.MenuAuthorityDefinitionId,\r\n\t\t\tMenuAuthorityRightList: roleDetails.map(x => { return { RoleId: x.RoleId, RoleRight: x.RoleRight }; })\r\n\t\t}, null, null, () => this.Validate(true), null, true);\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: { ParentMenuId: -2, MenuId: -2, TypeId: -2 }, roleDetails: [] });\r\n\t}\r\n\r\n\tValidate = (isSubmit) => {\r\n\t\tvar { model, roleDetails } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errors = [];\r\n\r\n\t\tif (!model.ParentMenuId || model.ParentMenuId == -2) {\r\n\t\t\terrors.push(\"Parent menu cannot be empty.\");\r\n\t\t}\r\n\t\tif (!model.MenuId || model.MenuId == -2) {\r\n\t\t\terrors.push(\"Menu cannot be empty.\");\r\n\t\t}\r\n\t\tif (!model.TypeId || model.TypeId == -2) {\r\n\t\t\terrors.push(\"Type cannot be empty.\");\r\n\t\t}\r\n\t\tif (!model.MenuAuthorityDefinitionId) {\r\n\t\t\terrors.push(\"Description cannot be empty.\");\r\n\t\t}\r\n\t\tif (isSubmit && roleDetails.length == 0) {\r\n\t\t\terrors.push(\"Role list cannot be empty.\");\r\n\t\t}\r\n\r\n\t\tmodel[\"IsParentMenuId\"] = !model.ParentMenuId || model.ParentMenuId == -2;\r\n\t\tmodel[\"IsMenuId\"] = !model.MenuId || model.MenuId == -2;\r\n\t\tmodel[\"IsTypeId\"] = !model.TypeId || model.TypeId == -2;\r\n\t\tmodel[\"IsMenuAuthorityDefinitionId\"] = !model.MenuAuthorityDefinitionId;\r\n\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, roleDetails, isClientStandardUserOpen } = this.state;\r\n\t\tconst { history, Disabled } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nMenuAuthorityRight.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default MenuAuthorityRight;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport ArrayHelper from \"core/ArrayHelper\";\r\nimport ResourceHelper from \"core/ResourceHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericCheckInput, GenericExpansionPanel, GenericGrid, GenericSelectInput } from \"views/Components/Generic\";\r\nimport { SortedDescription } from \"views/Constants/Constant.Sorted\";\r\n\r\nclass MenuProgramMap extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columns = [];\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\tmenuDetails: []\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"USER ADMIN\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Menu Program Map\");\r\n\t\t}\r\n\r\n\t\tthis.GetMenuList();\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\treturn { model, menuDetails: [] };\r\n\t\t});\r\n\t}\r\n\r\n\tCellValueChanged = (name, value, index) => {\r\n\t\tvar { menuDetails } = this.state;\r\n\r\n\t\tmenuDetails[index].IsSelected = value;\r\n\r\n\t\tthis.setState({ menuDetails });\r\n\t\tthis.GetColumns(menuDetails);\r\n\t}\r\n\r\n\tGetMenuList = async () => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/Menu/GetForProgramMenu\", {});\r\n\t\tvar menuList = result || [];\r\n\r\n\t\tArrayHelper.SortArray(menuList, \"MenuName\");\r\n\r\n\t\tthis.setState({ menuList });\r\n\t}\r\n\r\n\tGetColumns = (menuDetails) => {\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Menu Code\",\r\n\t\t\t\taccessor: \"MenuCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Menu Name\",\r\n\t\t\t\taccessor: \"MenuName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Select\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t this.CellValueChanged(name, value, row.index)}\r\n\t\t\t\t\t/>\r\n\t\t\t\t)\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.forceUpdate();\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\t\tvar { model, menuList } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/MenuProgramMap/GetByProgramId\", { Id: model.ProgramId }, null, null, () => this.Validate(false));\r\n\t\tvar menuDetails = [];\r\n\r\n\t\tif (result != null) {\r\n\t\t\tmenuList.map(x => {\r\n\t\t\t\tvar isSelected = false;\r\n\r\n\t\t\t\tresult\r\n\t\t\t\t\t.filter(y => y.MenuId == x.Id)\r\n\t\t\t\t\t.map(y => {\r\n\t\t\t\t\t\tisSelected = true;\r\n\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\tvar menuName = ResourceHelper.GetForMenu(x.MenuName);\r\n\t\t\t\tmenuName = `${!menuName ? \"! \" + x.MenuName : menuName} - ${x.MenuCode}`;\r\n\r\n\t\t\t\tmenuDetails.push({\r\n\t\t\t\t\t\"MenuId\": x.Id,\r\n\t\t\t\t\t\"MenuCode\": x.MenuCode,\r\n\t\t\t\t\t\"MenuName\": menuName,\r\n\t\t\t\t\t\"IsSelected\": isSelected\r\n\t\t\t\t});\r\n\r\n\r\n\t\t\t\treturn null;\r\n\t\t\t});\r\n\r\n\t\t\tmodel[\"IsProgramId\"] = false;\r\n\r\n\t\t\tthis.setState({ menuDetails });\r\n\t\t\tthis.GetColumns(menuDetails);\r\n\t\t}\r\n\t}\r\n\r\n\tSubmit = () => {\r\n\t\tconst { model, menuDetails } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\r\n\t\tExecuteApiPost(\"/coreapi/v1.0/MenuProgramMap/Submit\", {\r\n\t\t\tProgramId: model.ProgramId, \"MenuList\": menuDetails.map(x => { return { MenuId: x.MenuId, IsSelected: x.IsSelected }; })\r\n\t\t}, null, null, () => this.Validate(true), null, true);\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, menuDetails: [] });\r\n\t}\r\n\r\n\tValidate(isSubmit) {\r\n\t\tvar { model, menuDetails } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errors = [];\r\n\r\n\t\tif (!model.ProgramId) {\r\n\t\t\terrors.push(\"Program can not be null.\");\r\n\t\t}\r\n\t\tif (isSubmit && menuDetails.length == 0) {\r\n\t\t\terrors.push(\"Menu list can not be null.\");\r\n\t\t}\r\n\r\n\t\tmodel[\"IsProgramId\"] = !model.ProgramId;\r\n\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, menuDetails } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nMenuProgramMap.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default MenuProgramMap;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport ResourceHelper from \"core/ResourceHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTitle } from \"views/Components/Generic\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { SortedMenuName } from \"views/Constants/Constant.Sorted\";\r\n\r\nclass RoleLevelMenuMap extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Role Group\",\r\n\t\t\t\taccessor: \"RoleGroup\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Role Level\",\r\n\t\t\t\taccessor: \"RoleLevel\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Menu Name\",\r\n\t\t\t\taccessor: \"MenuName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Order\",\r\n\t\t\t\taccessor: \"Order\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.validateProperties = [{ \"RoleGroupId\": \"Role group\" }, { \"RoleLevelId\": \"Role level\" }, { \"MenuId\": \"Menu\" }, { \"Order\": \"Order\" }];\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {}\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"USER ADMIN\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Role Level Menu Map\");\r\n\t\t}\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tvar listRoleLevel = state.listRoleLevel;\r\n\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\tif (name == \"RoleGroupId\") {\r\n\t\t\t\tif (value != null) {\r\n\t\t\t\t\tthis.GetRoleLevel(value);\r\n\r\n\t\t\t\t\tmodel[\"RoleLevelId\"] = null;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tlistRoleLevel = [];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn { model, listRoleLevel };\r\n\t\t});\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tconst { list } = this.state;\r\n\r\n\t\tthis.GetRoleLevel(list[index].RoleGroupId);\r\n\r\n\t\tthis.setState({ model: list[index], selected: index });\r\n\t}\r\n\r\n\tGetRenderItemMenu = (x) => {\r\n\t\tvar render = ResourceHelper.GetForMenu(x.MenuName);\r\n\t\trender = `${!render ? \"! \" + x.MenuName : render}`;\r\n\r\n\t\treturn render;\r\n\t}\r\n\r\n\tGetRoleLevel = async (roleGroupId) => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/Role/SearchRoleLevel\", { \"RoleGroupId\": roleGroupId });\r\n\r\n\t\tthis.setState({ listRoleLevel: result || [] });\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\t\tvar { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/RoleLevelMenuMap/Search\", model);\r\n\t\tvar list = result || [];\r\n\r\n\t\tif (result != null) {\r\n\t\t\tlist.map(x => {\r\n\t\t\t\tvar menuName = ResourceHelper.GetForMenu(x.MenuName);\r\n\t\t\t\tmenuName = `${!menuName ? \"! \" + x.MenuName : menuName} - ${x.MenuCode}`;\r\n\r\n\t\t\t\tx.MenuName = menuName;\r\n\r\n\t\t\t\treturn null;\r\n\t\t\t});\r\n\r\n\t\t\tmodel[\"IsRoleGroupId\"] = false;\r\n\t\t\tmodel[\"IsRoleLevelId\"] = false;\r\n\t\t\tmodel[\"IsMenuId\"] = false;\r\n\t\t\tmodel[\"IsOrder\"] = false;\r\n\t\t}\r\n\r\n\t\tthis.setState({ list });\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tthis.setState({ model: {}, list: [], listRoleLevel: [], selected: null });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, list, listRoleLevel, selected } = this.state;\r\n\t\tconst { Disabled, ExecuteApiPost, showConfirmMessageInDelete } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t ExecuteApiPost(\"/coreapi/v1.0/RoleLevelMenuMap/Insert\", model, model, this.validateProperties, null, [this.Clear, this.Search], true)\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Update\",\r\n\t\t\t\t\t\t\tDisabled: Disabled || selected == null,\r\n\t\t\t\t\t\t\tOnClick: () => ExecuteApiPost(\"/coreapi/v1.0/RoleLevelMenuMap/Update\", { Id: model.Id, RoleLevelId: model.RoleLevelId, MenuId: model.MenuId, Order: model.Order }, model, this.validateProperties, null, [this.Clear, this.Search], true)\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Delete\",\r\n\t\t\t\t\t\t\tDisabled: Disabled || selected == null,\r\n\t\t\t\t\t\t\tOnClick: () => showConfirmMessageInDelete(() => ExecuteApiPost(\"/coreapi/v1.0/RoleLevelMenuMap/Delete\", { Id: model.Id }, null, null, null, [this.Clear, this.Search], true))\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Clear\",\r\n\t\t\t\t\t\t\tDisabled: Disabled,\r\n\t\t\t\t\t\t\tOnClick: this.Clear\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t]}\r\n\t\t\t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}\r\n\r\nRoleLevelMenuMap.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default RoleLevelMenuMap;","import { DialogContent, DialogTitle, Slide } from \"@material-ui/core\";\r\nimport withStyles from \"@material-ui/core/styles/withStyles\";\r\nimport createEtransferIndividualStyle from \"assets/jss/material-dashboard-pro-react/views/createEtransferIndividualStyle.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport { GenericCheckInput, GenericDateInput, GenericDialog, GenericDialogActions, GenericEmailInput, GenericExpansionPanel, GenericLabel, GenericNumberInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport { EtransferEntryType, EtransferTransactionTypes, ETransactionTypesSource, ProgramCodes, DcbETransferType } from \"views/Constants/Constant.js\";\r\nimport AddNewCustomereTransfer from \"views/InteraceTransfer/AddNewCustomereTransfer.jsx\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\n\r\nfunction Transition(props) {\r\n\treturn ;\r\n}\r\n\r\nconst sortName = { Member: \"Name\" };\r\nconst sortMemo = { Member: \"Memo\" };\r\n\r\nconst ClientParamObj = {\r\n\tProgramCode: ProgramCodes.Bank_Programs_e_Transfer,\r\n\tUniqueClientId: undefined\r\n};\r\nconst lengthSecurityAnswer = { maxLength: 25 };\r\nconst ParameterMaxLength400 = { maxLength: 400 };\r\nconst ParameterMaxLengthSecurityQuestion = { maxLength: 40 };\r\n\r\nclass CreateEtransferIndividual extends Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tcustomerToken: \"0\",\r\n\t\t\tmaxExpDate: DateHelper.GetDateLocal().add(this.props.model.maxExpireDate, \"d\")\r\n\t\t};\r\n\r\n\t\tthis.isClient = ClientHelper.IsClient();\r\n\r\n\t\tthis.ValueChanged = this.ValueChanged.bind(this);\r\n\t\tthis.addCustomerDialogClose = this.addCustomerDialogClose.bind(this);\r\n\t\tthis.addCustomerSaved = this.addCustomerSaved.bind(this);\r\n\t\tthis.RenderClientSelect = this.RenderClientSelect.bind(this);\r\n\t\tthis.GetClientParamObj = this.GetClientParamObj.bind(this);\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tvar model = { ...this.props.model };\r\n\t\tif (model != null && model.Id != null && model.Id > 0) {\r\n\t\t\tthis.IsUpdate();\r\n\t\t}\r\n\t}\r\n\r\n\tIsNullOrEmpty(value) {\r\n\t\treturn (value == null || value === \"\" || value === ''\r\n\t\t\t|| value === '\"\"' || value === '\"\"');\r\n\t}\r\n\r\n\tIsUpdate = () => {\r\n\t\tvar model = { ...this.props.model };\r\n\t\tvar serviceType = null;\r\n\t\tif (model.NotificationType == null || model.NotificationType.ParameterValue3 == null || model.NotificationType.ParameterValue3 == \"\") {\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Customer Notification Type cannot found !\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tserviceType = model.NotificationType.ParameterValue3;\r\n\t\t}\r\n\r\n\t\tif (serviceType == 0 && (model.PayeeEmail == null || model.PayeeEmail == undefined)) {\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Customer Email cannot found !\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (serviceType == 1 && (model.PhoneNumber == null || model.PhoneNumber == undefined)) {\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Customer Phone cannot found !\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.FetchInteracGetTransferOptions(model.PayeeEmail, model.PhoneNumber, serviceType);\r\n\t}\r\n\r\n\tFetchInteracGetTransferOptions = (eMail, phoneNumber, serviceType) => {\r\n\t\tvar request = {};\r\n\r\n\t\tif (serviceType == 0 && (eMail == null || eMail == \"\")) {\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Customer Email cannot be null !\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (serviceType == 1 && (phoneNumber == null || phoneNumber == \"\")) {\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Customer Phone Number cannot be null !\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif(serviceType == 2){\r\n\t\t\tif (this.IsNullOrEmpty(phoneNumber)) {\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Customer Phone Number cannot be null !\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (this.IsNullOrEmpty(eMail)) {\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Customer Email cannot be null !\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\trequest.UniqueClientId = this.props.parentModel.UniqueClientId;\r\n\t\trequest.DirectDepositHandle = serviceType == 0 ? eMail : phoneNumber;\r\n\t\trequest.ServiceType = serviceType;\r\n\t\tProxy.POST(\"/bankapi/v1.0/BankInteracETransfer/GetTransferOptions\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", \"An error occurred while request \" + responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ InteracCustomerTrsnaferOprion: responseData.Item });\r\n\t\t\t\tthis.props.onModelChange(model => {\r\n\t\t\t\t\tmodel.HasDDR = responseData.Item;\r\n\t\t\t\t\treturn model;\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\te => {\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", \"An error occurred while inserting data \");\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tFetchInteracGetTransferTypes= (payeeId) => {\r\n\t\tProxy.GET(`/bankapi/v1.0/BankInteracETransfer/GetTransferTypes/${payeeId}`,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", \"An error occurred while request \" + responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tconst transferMethod = responseData.Item?.find(tt => tt.TransferType === DcbETransferType.Default)?.TransferMethod;\r\n\r\n\t\t\t\tthis.props.onModelChange(model => {\r\n\t\t\t\t\tmodel.TransferMethod = transferMethod;\r\n\t\t\t\t\treturn model;\r\n\t\t\t\t});\r\n\t\t\t\tthis.setState({ TransferTypes: responseData.Item });\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tValueChanged(name, newValue, data) {\r\n\t\tthis.props.onModelChange(model => {\r\n\t\t\tmodel[name] = newValue;\r\n\r\n\t\t\tif (name == \"PayeeId\") {\r\n\t\t\t\tmodel.PayeeName = data == null ? \"\" : data.Name;\r\n\t\t\t\tmodel.PayeeEmail = data == null ? null : data.PayeeEmail;\r\n\t\t\t\t//model.HasDDR = data == null ? null : data.HasDDR;\r\n\t\t\t\tmodel.PhoneNumber = data == null ? null : data.PhoneNumber;\r\n\t\t\t\t\r\n\t\t\t\tif(model.PayeeEmail === null){\r\n\t\t\t\t\tmodel.IsDcbRequestMoney = false;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (model.PayeeId != null && model.TransactionTypeCode == EtransferTransactionTypes.Credit && model.NotificationTypeId != null && model.NotificationTypeId != 0){\r\n\t\t\t\t\tthis.FetchInteracGetTransferOptions(model.PayeeEmail, model.PhoneNumber, model.ServiceType);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (model.PayeeId != null){\r\n\t\t\t\t\tthis.FetchInteracGetTransferTypes(model.PayeeId);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (name == \"NewClient\") {\r\n\t\t\t\tif (newValue) {\r\n\t\t\t\t\tmodel.IsCustomerPopupOpen = true;\r\n\t\t\t\t\tthis.setState({ isCustomerAdded: false });\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (name == \"IsHaveQuestion\") {\r\n\t\t\t\tif (newValue == true)\r\n\t\t\t\t\tmodel.SecurityQuestionText = \"\";\r\n\t\t\t\telse\r\n\t\t\t\t\tmodel.SecurityQuestion = 0;\r\n\t\t\t}\r\n\t\t\tif (name == \"SecurityQuestionAnswer\") {\r\n\t\t\t\tmodel[name] = newValue.replace(/\\s/g, \"\");\r\n\t\t\t}\r\n\t\t\tif (name == \"TransferMemoId\" && data != null) {\r\n\t\t\t\tmodel.TransferMemo = data.Memo;\r\n\t\t\t}\r\n\t\t\tif (name == \"IsHaveMemo\") {\r\n\t\t\t\tif (newValue) model.TransferMemo = \"\";\r\n\t\t\t\tmodel.TransferMemoId = \"\";\r\n\t\t\t}\r\n\t\t\tif (name == \"TransactionType\") {\r\n\t\t\t\tif (data != null) {\r\n\t\t\t\t\tmodel.TransactionType = data.Id;\r\n\t\t\t\t}\r\n\t\t\t\tmodel.TransactionTypeCode = data != null ? data.ParameterValue : null;\r\n\t\t\t\tif (model.TransactionTypeCode == EtransferTransactionTypes.Debit) {\r\n\t\t\t\t\tif (model.SecurityQuestionAnswer != null)\r\n\t\t\t\t\t\tmodel.SecurityQuestionAnswer = null;\r\n\t\t\t\t\tif (model.SecurityQuestionText != null)\r\n\t\t\t\t\t\tmodel.SecurityQuestionText = null;\r\n\t\t\t\t\tif (model.SecurityQuestion != null)\r\n\t\t\t\t\t\tmodel.SecurityQuestion = null;\r\n\t\t\t\t}\r\n\t\t\t\tif(data != null && data.ParameterValue6 == EtransferTransactionTypes.DCRM)\r\n\t\t\t\t{\r\n\t\t\t\t\tmodel.IsDcbRequestMoney = true;\r\n\t\t\t\t\tmodel.ServiceType = 0;\r\n\t\t\t\t\tmodel.NotificationTypeId =16370; //set NotificationType to E-Mail\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tmodel.IsDcbRequestMoney = false;\r\n\t\t\t\t\t// model.NotificationTypeId = null;\r\n\r\n\t\t\t\t}\r\n\t\t\t\tif (model.PayeeId != null && model.TransactionTypeCode == EtransferTransactionTypes.Credit && model.NotificationTypeId != null && model.NotificationTypeId != 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tthis.FetchInteracGetTransferOptions(model.PayeeEmail, model.PhoneNumber, model.ServiceType);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (name == \"TransferMethod\") {\r\n\t\t\t\tvar transferType = this.state.TransferTypes.find(tt => tt.TransferMethod === model.TransferMethod);\r\n\r\n\t\t\t\tmodel.TransferType = transferType.TransferType;\r\n\t\t\t\tmodel.BenficiaryId = transferType.BenficiaryId;\r\n\t\t\t}\r\n\r\n\t\t\tif (name == \"DateOfFunds\") {\r\n\t\t\t\tmodel.MoneyReqExpDate = DateHelper.ToMoment(newValue).add((this.props.model.maxExpireDate - 1), \"d\");\r\n\t\t\t\tthis.setState({ maxExpDate: DateHelper.ToMoment(newValue).add(this.props.model.maxExpireDate, \"d\") });\r\n\t\t\t}\r\n\t\t\tif (name == \"NotificationTypeId\" && data != null) {\r\n\t\t\t\tmodel.ServiceType = data.ParameterValue3;\r\n\r\n\t\t\t\tif (model.PayeeId != null && model.TransactionTypeCode == EtransferTransactionTypes.Credit && model.NotificationTypeId != null && model.NotificationTypeId != 0)\r\n\t\t\t\t\tthis.FetchInteracGetTransferOptions(model.PayeeEmail, model.PhoneNumber, model.ServiceType);\r\n\t\t\t}\r\n\r\n\t\t\treturn model;\r\n\t\t});\r\n\r\n\r\n\t}\r\n\r\n\taddCustomerDialogClose() {\r\n\t\tthis.ValueChanged(\"IsCustomerPopupOpen\", false);\r\n\t}\r\n\r\n\taddCustomerSaved(customerData) {\r\n\t\tif (customerData != null) {\r\n\t\t\tthis.props.onModelChange(model => {\r\n\t\t\t\tmodel.PayeeId = customerData.PayeeId;\r\n\t\t\t\tmodel.PayeeEmail = customerData.PayeeEmail;\r\n\t\t\t\treturn model;\r\n\t\t\t});\r\n\r\n\t\t\tvar newCustomerToken = this.state.customerToken == \"1\" ? \"0\" : \"1\";\r\n\t\t\tthis.setState({ customerToken: newCustomerToken });\r\n\t\t}\r\n\r\n\t\tthis.addCustomerDialogClose();\r\n\t}\r\n\r\n\tRenderClientSelect(d) {\r\n\t\treturn d.Name;\r\n\t}\r\n\tRenderAccountSelect(d) {\r\n\t\tconst accountNumber = d.Account && d.Account.AccountNumber;\r\n\t\tconst accountName = d.Account && d.Account.AccountName;\r\n\t\tconst storeCode = d.CustomerStore && d.CustomerStore.StoreCode;\r\n\t\tconst storeName = d.CustomerStore && d.CustomerStore.StoreName;\r\n\r\n\t\treturn `${storeName}(${storeCode}) - ${accountName}(${accountNumber})`;\r\n\t}\r\n\tGetClientParamObj() {\r\n\t\tconst { parentModel } = this.props;\r\n\t\tClientParamObj.ProgramCode = ProgramCodes.Bank_Programs_e_Transfer;\r\n\t\tClientParamObj.UniqueClientId = parentModel.UniqueClientId;\r\n\t\treturn ClientParamObj;\r\n\t}\r\n\tRenderTransferMethod(model) {\r\n\t\tlet transferTypeDescription = model.TransferTypeDescription;\r\n\r\n\t\tif (model.TransferType == DcbETransferType.AccountDeposit) {\r\n\t\t\ttransferTypeDescription += ` - ${model.TransferMethod}`;\r\n\t\t}\r\n\r\n\t\tif (model.TransferType == DcbETransferType.Default) {\r\n\t\t\ttransferTypeDescription += ` - SMS/Email`;\r\n\t\t}\r\n\t\t\r\n\t\treturn transferTypeDescription;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, vModel, Disabled: DisabledProp, parentModel, isBanking, CustomerStoreList } = this.props;\r\n\t\tconst { maxExpDate } = this.state;\r\n\r\n\t\tconst Selected = !parentModel.IsUpdate ? parentModel.EntryCode == EtransferEntryType.Individual : true;\r\n\t\tconst Disabled = DisabledProp || !Selected;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{CustomerStoreList != null && CustomerStoreList.length > 0 &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{isBanking == true ?\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{this.isClient && !parentModel.IsUpdate &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{model.ServiceType == 0 &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t{model.ServiceType == 1 &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t {model.ServiceType == 2 &&\r\n \t\t\t\t\t\t\t\t\t\t\t<>\r\n \t\t\t\t\t\t\t\t\t\t \r\n \r\n \r\n }\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif(model.PayeeEmail === null && t?.uId === '60211'){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn t;\r\n\t\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"uId\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tTextValueMember=\"ParameterValue6\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={model.IsDcbRequestMoney? model.TransactionType + \"1\": model.TransactionType}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.ValueChanged}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={Disabled || parentModel.IsUpdate}\r\n\t\t\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.TransactionType} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t{(model.TransactionType == 6020) && \r\n\t\t\t\t\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t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\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCreateEtransferIndividual.defaultProps = {\r\n\tisBanking: false\r\n};\r\n\r\nCreateEtransferIndividual.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tmodel: PropTypes.object,\r\n\tvModel: PropTypes.object,\r\n\tparentModel: PropTypes.object,\r\n\tonModelChange: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\taddNewCustomerMenuId: PropTypes.number,\r\n\tshowMessage: PropTypes.func,\r\n\tisBanking: PropTypes.bool,\r\n\tCustomerStoreList: PropTypes.array\r\n};\r\n\r\nexport default withStyles(createEtransferIndividualStyle)(CreateEtransferIndividual);","import { DialogContent, DialogTitle, Slide } from \"@material-ui/core\";\r\nimport { Close, Lock, LockOpen, Search } from \"@material-ui/icons\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport ResourceHelper from \"core/ResourceHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericLabel, GenericSelectInput } from \"views/Components/Generic\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport TabsComponent from \"views/Components/TabsComponent\";\r\nimport { RoleGroup, RoleLevel } from \"views/Constants/Constant\";\r\nimport UserAuthorityDefinitionTreeAndDataTable from \"./UserAuthorityDefinitionTreeAndDataTable\";\r\n\r\nfunction Transition(props) {\r\n\treturn ;\r\n}\r\n\r\nclass UserAuthorityDefinition extends React.Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.isClient = ClientHelper.IsClient();\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\tlistRoleLevel: [],\r\n\t\t\tlistRole: [],\r\n\t\t\tisClientStandardUserOpen: false\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"USER ADMIN\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"User Authority Definitions\");\r\n\t\t}\r\n\r\n\t\tvar user = ClientHelper.GetUser();\r\n\r\n\t\tif (user.Role.RoleLevel.ParameterValue == RoleLevel.ClientStandardUser) {\r\n\t\t\tthis.setState({ isClientStandardUserOpen: true });\r\n\t\t}\r\n\r\n\t\tif (this.isClient) {\r\n\t\t\tthis.GetRoleGroupClientId();\r\n\t\t}\r\n\t}\r\n\r\n\tValueChanged = (name, value, data) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\tvar listRole = state.listRole;\r\n\t\t\tvar listRoleLevel = state.listRoleLevel;\r\n\r\n\t\t\tif (name == \"RoleGroupId\") {\r\n\t\t\t\tmodel[\"RoleLevelId\"] = undefined;\r\n\t\t\t\tmodel[\"RoleId\"] = undefined;\r\n\r\n\t\t\t\tif (value) {\r\n\t\t\t\t\tthis.GetRoleLevel(value);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tlistRoleLevel = [];\r\n\t\t\t\t\tlistRole = [];\r\n\t\t\t\t}\r\n\t\t\t} else if (name == \"RoleLevelId\") {\r\n\t\t\t\tmodel[\"RoleLevelDesc\"] = data && data.RoleLevel;\r\n\t\t\t\tmodel[\"RoleId\"] = undefined;\r\n\r\n\t\t\t\tif (value) {\r\n\t\t\t\t\tthis.GetRole(value);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tlistRole = [];\r\n\t\t\t\t}\r\n\t\t\t} else if (name == \"RoleId\") {\r\n\t\t\t\tmodel[\"ParentMenuList\"] = [];\r\n\t\t\t\tmodel[\"SubMenuList\"] = [];\r\n\t\t\t\tmodel[\"tabList\"] = undefined;\r\n\t\t\t}\r\n\r\n\t\t\treturn { model, listRole, listRoleLevel };\r\n\t\t});\r\n\t}\r\n\r\n\tGetParameterRole = () => {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tvar result = {\r\n\t\t\tRoleGroupId: model.RoleGroupId\r\n\t\t};\r\n\r\n\t\treturn result;\r\n\t}\r\n\r\n\tGetRoleGroupClientId = async () => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/Parameter/Search\", { ParameterCode: \"RoleGroup\", ParameterValue: RoleGroup.Client });\r\n\t\tvar roleGroupId = undefined;\r\n\r\n\t\tif (result != null && result.length == 1) {\r\n\t\t\troleGroupId = result[0].Id;\r\n\t\t}\r\n\r\n\t\tthis.setState({ model: { RoleGroupId: roleGroupId } });\r\n\t\tthis.ValueChanged(\"RoleGroupId\", roleGroupId);\r\n\t}\r\n\r\n\tGetMenuList = async () => {\r\n\t\tconst { RoleLevelId } = this.state.model;\r\n\t\tconst { ExecuteApiPost, showMessage } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/Menu/GetMenuListForAuthorityTabAndDetail\", { RoleLevelId: RoleLevelId });\r\n\t\tvar { model } = this.state;\r\n\t\tmodel.tabList = [];\r\n\r\n\t\tif (result != null && result.MenuList != null\r\n\t\t\t&& result.MenuList.length != 0) {\r\n\t\t\tmodel.ParentMenuList = result.MenuList;\r\n\t\t\tmodel.SubMenuList = result.FlatRoutes;\r\n\t\t\tthis.setState({ model });\r\n\t\t\tthis.GetMenuRightList(model);\r\n\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ model });\r\n\t\tshowMessage(\"warning\", \"Warning\", model.RoleLevelDesc + \" role level base menu did not found.\");\r\n\t}\r\n\r\n\tGetMenuRightList = async (model) => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/MenuRight/GetMenuRightList\", { RoleId: model.RoleId });\r\n\t\tvar tabList = [];\r\n\r\n\t\tif (result != null) {\r\n\t\t\tvar parentMenuList = model.ParentMenuList,\r\n\t\t\t\tsubMenuList = model.SubMenuList,\r\n\t\t\t\tmenuRightList = result;\r\n\r\n\t\t\tfor (var i = 0; i < parentMenuList.length; i++) {\r\n\t\t\t\tvar modelForTreeAndDataTable = {},\r\n\t\t\t\t\tlist = [],\r\n\t\t\t\t\topenCloseIcons = [],\r\n\t\t\t\t\tviewDeniedIcons = [],\r\n\t\t\t\t\tsubMenusFiltered = this\r\n\t\t\t\t\t\t.GetMenusFilteredByParentId(\r\n\t\t\t\t\t\t\t[{ Id: parentMenuList[i].Id }],\r\n\t\t\t\t\t\t\t0,\r\n\t\t\t\t\t\t\t[],\r\n\t\t\t\t\t\t\tsubMenuList),\r\n\t\t\t\t\tsubMenusForTree = this\r\n\t\t\t\t\t\t.GetMenusForTree(\r\n\t\t\t\t\t\t\tsubMenusFiltered,\r\n\t\t\t\t\t\t\t0),\r\n\t\t\t\t\tmenusOrderFromTree = this\r\n\t\t\t\t\t\t.GetMenusOrderFromTree(subMenusFiltered);\r\n\r\n\t\t\t\tfor (var index in menusOrderFromTree) {\r\n\t\t\t\t\tif (menusOrderFromTree[index] == null) {\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tlist.push({\r\n\t\t\t\t\t\tOC: \"OC\",\r\n\t\t\t\t\t\tVM: \"VM\"\r\n\t\t\t\t\t});\r\n\t\t\t\t\tvar menuId = menusOrderFromTree[index].Id.Id,\r\n\t\t\t\t\t\tisAdded = false;\r\n\t\t\t\t\tfor (var indexForMenuRight in menuRightList) {\r\n\t\t\t\t\t\tvar menuRight = menuRightList[indexForMenuRight];\r\n\t\t\t\t\t\tif (menuRight.MenuId === menuId) {\r\n\t\t\t\t\t\t\tif (menuRight.HasAuthority) {\r\n\t\t\t\t\t\t\t\topenCloseIcons.push({\r\n\t\t\t\t\t\t\t\t\ticon: ,\r\n\t\t\t\t\t\t\t\t\tname: \"lockOpen\",\r\n\t\t\t\t\t\t\t\t\tmenuId: menuId\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\topenCloseIcons.push(this.GetDefaultOpenCloseIcon(menuId));\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tif (menuRight.HasRead) {\r\n\t\t\t\t\t\t\t\tviewDeniedIcons.push({\r\n\t\t\t\t\t\t\t\t\ticon: ,\r\n\t\t\t\t\t\t\t\t\tname: \"search\",\r\n\t\t\t\t\t\t\t\t\tmenuId: menuId\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tviewDeniedIcons.push(this.GetDefaultViewDeniedIcon(menuId));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tisAdded = true;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (!isAdded) {\r\n\t\t\t\t\t\topenCloseIcons.push(this.GetDefaultOpenCloseIcon(menuId));\r\n\t\t\t\t\t\tviewDeniedIcons.push(this.GetDefaultViewDeniedIcon(menuId));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tmodelForTreeAndDataTable.list = list;\r\n\t\t\t\tmodelForTreeAndDataTable.openCloseIcons = openCloseIcons;\r\n\t\t\t\tmodelForTreeAndDataTable.viewDeniedIcons = viewDeniedIcons;\r\n\t\t\t\tmodelForTreeAndDataTable.subMenus = subMenusForTree;\r\n\t\t\t\tmodelForTreeAndDataTable.selectedParentMenuId = parentMenuList[i].Id;\r\n\t\t\t\tmodelForTreeAndDataTable.selectedRoleLevelId = model.RoleLevelId;\r\n\t\t\t\tmodelForTreeAndDataTable.selectedRoleId = model.RoleId;\r\n\t\t\t\tmodelForTreeAndDataTable.menusOrderFromTree = menusOrderFromTree;\r\n\r\n\t\t\t\ttabList.push({\r\n\t\t\t\t\ttabButton: ResourceHelper.GetForMenu(parentMenuList[i].Name) || \"! \" + parentMenuList[i].Name,\r\n\t\t\t\t\ttabContent: (\r\n\t\t\t\t\t\t (this.child = ref)}\r\n\t\t\t\t\t\t\tmodel={modelForTreeAndDataTable} />\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tmodel.tabList = tabList;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tGetRoleLevel = async (roleGroupId) => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/Role/SearchRoleLevel\", { RoleGroupId: roleGroupId });\r\n\r\n\t\tthis.setState({ listRoleLevel: result || [] });\r\n\t}\r\n\r\n\tGetRole = async (roleLevelId) => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/Role/GetRoleListByRoleLevelId\", { RoleLevelId: roleLevelId });\r\n\r\n\t\tthis.setState({ listRole: result || [] });\r\n\t}\r\n\r\n\tSearch = () => {\r\n\t\tif (!this.ValidateSearch()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.GetMenuList();\r\n\t}\r\n\r\n\r\n\tSubmit = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\r\n\t\tExecuteApiPost(\"/coreapi/v1.0/MenuRight/Submit\", this.child.GetAuthories(), null, null, null, [this.GetMenuList], true);\r\n\t}\r\n\r\n\tGetMenusForTree(menuList, parentId) {\r\n\t\treturn menuList\r\n\t\t\t.filter(x => x.ParentId === parentId)\r\n\t\t\t.map(x => {\r\n\t\t\t\treturn {\r\n\t\t\t\t\tname: x.Name,\r\n\t\t\t\t\tid: x.Id.Id,\r\n\t\t\t\t\ttoggled: true,\r\n\t\t\t\t\tchildren: this.GetMenusForTree(menuList, x.Id.Id)\r\n\t\t\t\t};\r\n\t\t\t});\r\n\t}\r\n\r\n\tGetMenusFilteredByParentId(menuIds, menuIndex, menuList, allMenu) {\r\n\t\tif (menuIds.length > menuIndex) {\r\n\t\t\tvar menuId = menuIds[menuIndex],\r\n\t\t\t\tresultFilterByParentId = allMenu.filter(x => x.ParentId == menuId.Id),\r\n\t\t\t\tindex;\r\n\r\n\t\t\tfor (index in allMenu) {\r\n\t\t\t\tif (allMenu[index].Id == menuId.Id) {\r\n\t\t\t\t\tmenuList.push({\r\n\t\t\t\t\t\tId: menuId,\r\n\t\t\t\t\t\tName: ResourceHelper.GetForMenu(allMenu[index].Name) || \"! \" + allMenu[index].Name,\r\n\t\t\t\t\t\tParentId: allMenu[index].ParentId\r\n\t\t\t\t\t});\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (index in resultFilterByParentId) {\r\n\t\t\t\tmenuIds.push({\r\n\t\t\t\t\tId: resultFilterByParentId[index].Id\r\n\t\t\t\t});\r\n\t\t\t}\r\n\r\n\t\t\tmenuIndex += 1;\r\n\t\t\tthis.GetMenusFilteredByParentId(menuIds, menuIndex, menuList, allMenu);\r\n\t\t}\r\n\r\n\t\treturn menuList;\r\n\t}\r\n\r\n\tGetMenusOrderFromTree(menuList) {\r\n\t\tvar orderedLikeTree = [];\r\n\t\torderedLikeTree.push(menuList[0]);\r\n\r\n\t\tfor (var i = 0; i < orderedLikeTree.length; i++) {\r\n\t\t\tif (i === 0) {\r\n\t\t\t\tmenuList\r\n\t\t\t\t\t.filter(x => x.ParentId === menuList[i].Id.Id)\r\n\t\t\t\t\t.map(x => orderedLikeTree.push(x));\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tvar temp = [],\r\n\t\t\t\t\tj = 0;\r\n\r\n\t\t\t\tfor (; j <= i; j++) {\r\n\t\t\t\t\ttemp.push(orderedLikeTree[j]);\r\n\t\t\t\t}\r\n\t\t\t\tfor (var t = 0; t < menuList.length; t++) {\r\n\t\t\t\t\tif (menuList[t].ParentId === orderedLikeTree[i].Id.Id) {\r\n\t\t\t\t\t\ttemp.push(menuList[t]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tfor (; j < orderedLikeTree.length; j++) {\r\n\t\t\t\t\ttemp.push(orderedLikeTree[j]);\r\n\t\t\t\t}\r\n\t\t\t\torderedLikeTree = temp;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn orderedLikeTree;\r\n\t}\r\n\r\n\tGetDefaultOpenCloseIcon(menuId) {\r\n\t\treturn {\r\n\t\t\ticon: ,\r\n\t\t\tname: \"lock\",\r\n\t\t\tmenuId: menuId\r\n\t\t};\r\n\t}\r\n\r\n\tGetDefaultViewDeniedIcon(menuId) {\r\n\t\treturn {\r\n\t\t\ticon: ,\r\n\t\t\tname: \"close\",\r\n\t\t\tmenuId: menuId\r\n\t\t};\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tvar { model, listRoleLevel } = this.state;\r\n\r\n\t\tif (this.isClient) {\r\n\t\t\tvar roleGroupId = model.RoleGroupId;\r\n\t\t\tmodel = {\r\n\t\t\t\tRoleGroupId: roleGroupId\r\n\t\t\t};\r\n\t\t} else {\r\n\t\t\tmodel = {};\r\n\t\t\tlistRoleLevel = [];\r\n\t\t}\r\n\r\n\t\tthis.setState({ model, listRoleLevel, listRole: [] });\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errors = [];\r\n\r\n\t\tif (!model.RoleId) {\r\n\t\t\terrors.push(\"Role can not be null.\");\r\n\t\t}\r\n\t\tif (!model.tabList || model.tabList.length == 0) {\r\n\t\t\terrors.push(\"Menu list is empty\");\r\n\t\t}\r\n\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tValidateSearch() {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errors = [];\r\n\r\n\t\tif (!model.RoleGroupId) {\r\n\t\t\terrors.push(\"Role group can not be null.\");\r\n\t\t}\r\n\t\tif (!model.RoleLevelId) {\r\n\t\t\terrors.push(\"Role level can not be null.\");\r\n\t\t}\r\n\t\tif (!model.RoleId) {\r\n\t\t\terrors.push(\"Role can not be null.\");\r\n\t\t}\r\n\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, listRoleLevel, listRole, isClientStandardUserOpen } = this.state;\r\n\t\tconst { history, Disabled } = this.props;\r\n\r\n\t\tvar tabList = [];\r\n\t\tfor (var index in model.tabList) {\r\n\t\t\ttabList.push({\r\n\t\t\t\ttabButton: model.tabList[index].tabButton,\r\n\t\t\t\ttabContent: model.tabList[index].tabContent\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nUserAuthorityDefinition.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default UserAuthorityDefinition;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericExpansionPanel, GenericSelectInput } from \"views/Components/Generic\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { RoleGroup, RoleLevel } from \"views/Constants/Constant\";\r\n\r\nclass UserRoleCopy extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.isClient = ClientHelper.IsClient();\r\n\r\n\t\tthis.validateProperties = [{ \"RoleGroupId\": \"Role group\" }, { \"SourceRoleLevelId\": \"Source role level\" }, { \"DestinationRoleLevelId\": \"Destination role level\" },\r\n\t\t{ \"SourceRoleId\": \"Source role\" }, { \"DestinationRoleId\": \"Destination role\" }];\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {}\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"USER ADMIN\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"User Role Copy\");\r\n\t\t}\r\n\r\n\t\tvar user = ClientHelper.GetUser();\r\n\r\n\t\tif (user.Role.RoleLevel.ParameterValue == RoleLevel.ClientStandardUser) {\r\n\t\t\tthis.setState({ isClientStandardUserOpen: true });\r\n\t\t}\r\n\r\n\t\tif (this.isClient) {\r\n\t\t\tthis.GetRoleGroupClientId();\r\n\t\t}\r\n\t}\r\n\r\n\tValueChanged = (name, value, data) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\tif (name == \"RoleGroupId\") {\r\n\t\t\t\tmodel[\"RoleGroupParameterValue\"] = data.ParameterValue;\r\n\t\t\t\tmodel[\"SourceRoleLevelId\"] = undefined;\r\n\t\t\t\tmodel[\"SourceRoleId\"] = undefined;\r\n\t\t\t\tmodel[\"DestinationRoleLevelId\"] = undefined;\r\n\t\t\t\tmodel[\"DestinationRoleId\"] = undefined;\r\n\t\t\t\tmodel[\"IsSourceRoleLevel\"] = undefined;\r\n\t\t\t\tmodel[\"IsDestinationRoleLevel\"] = undefined;\r\n\r\n\t\t\t\tthis.GetRoleLevel(value);\r\n\t\t\t\tthis.setState({ listSourceRole: [], listDestinationRole: [] });\r\n\t\t\t} else if (name == \"SourceRoleLevelId\") {\r\n\t\t\t\tmodel[\"SourceRoleLevelDesc\"] = data.RoleLevel;\r\n\t\t\t\tmodel[\"SourceRoleId\"] = undefined;\r\n\t\t\t\tmodel[\"IsSourceRoleId\"] = undefined;\r\n\r\n\t\t\t\tthis.GetRole(value, true);\r\n\r\n\t\t\t\tif (model.RoleGroupParameterValue == RoleGroup.Backoffice) {\r\n\t\t\t\t\tmodel[\"DestinationRoleLevelId\"] = value;\r\n\t\t\t\t\tmodel[\"DestinationRoleLevelDesc\"] = data.RoleLevel;\r\n\t\t\t\t\tmodel[\"DestinationRoleId\"] = undefined;\r\n\r\n\t\t\t\t\tthis.GetRole(value, false);\r\n\t\t\t\t}\r\n\r\n\t\t\t} else if (name == \"DestinationRoleLevelId\") {\r\n\t\t\t\tmodel[\"DestinationRoleLevelDesc\"] = data.RoleLevel;\r\n\t\t\t\tmodel[\"DestinationRoleId\"] = undefined;\r\n\r\n\t\t\t\tthis.GetRole(value, false);\r\n\t\t\t}\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tGetRoleGroupClientId = async () => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/Parameter/Search\", { ParameterCode: \"RoleGroup\", ParameterValue: RoleGroup.Client });\r\n\t\tvar roleGroup = undefined;\r\n\r\n\t\tif (result != null && result.length == 1) {\r\n\t\t\troleGroup = result[0];\r\n\t\t}\r\n\r\n\t\tthis.setState({ model: { RoleGroupId: roleGroup && roleGroup.Id } });\r\n\t\tthis.ValueChanged(\"RoleGroupId\", roleGroup && roleGroup.Id, roleGroup);\r\n\t}\r\n\r\n\tGetRoleLevel = async (roleGroupId) => {\r\n\t\tconst { MenuCode, ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/Role/SearchRoleLevel\", { RoleGroupId: roleGroupId, MenuCode });\r\n\r\n\t\tthis.setState({ listSourceRoleLevel: result || [], listDestinationRoleLevel: result || [] });\r\n\t}\r\n\r\n\tGetRole = async (roleLevelId, isSource) => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/Role/GetRoleListByRoleLevelId\", { RoleLevelId: roleLevelId });\r\n\r\n\t\tif (isSource) {\r\n\t\t\tthis.setState({ listSourceRole: result || [] });\r\n\t\t} else {\r\n\t\t\tthis.setState({ listDestinationRole: result || [] });\r\n\t\t}\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tvar { model } = this.state;\r\n\r\n\t\tif (!this.isClient) {\r\n\t\t\tmodel.RoleGroupId = undefined;\r\n\t\t\tthis.setState({ model, listSourceRoleLevel: [], listDestinationRoleLevel: [], listSourceRole: [], listDestinationRole: [] });\r\n\t\t} else {\r\n\t\t\tmodel.SourceRoleLevelId = undefined;\r\n\t\t\tmodel.DestinationRoleLevelId = undefined;\r\n\r\n\t\t\tthis.setState({ model, listSourceRole: [], listDestinationRole: [] });\r\n\t\t}\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, listSourceRoleLevel, listDestinationRoleLevel, listSourceRole, listDestinationRole } = this.state;\r\n\t\tconst { Disabled, ExecuteApiPost } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t ExecuteApiPost(\"/coreapi/v1.0/Role/Copy\", model, model, this.validateProperties, null, null, true)\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Clear\",\r\n\t\t\t\t\t\t\tDisabled: Disabled,\r\n\t\t\t\t\t\t\tOnClick: this.Clear\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nUserRoleCopy.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default UserRoleCopy;","import { DialogContent, DialogTitle, Slide } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { RoleLevel } from \"views/Constants/Constant\";\r\nimport { MaxLength128 } from \"views/Constants/Constant.MaxLength\";\r\n\r\nfunction Transition(props) {\r\n\treturn ;\r\n}\r\nconst emptyObject = {};\r\nclass UserRoleDefinition extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Parent\",\r\n\t\t\t\taccessor: \"ParentRoleName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Role Name\",\r\n\t\t\t\taccessor: \"RoleName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Role Group\",\r\n\t\t\t\taccessor: \"RoleGroupParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Role Level\",\r\n\t\t\t\taccessor: \"RoleLevelParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"OrganizationUniqueId\",\r\n\t\t\t\taccessor: \"OrganizationUniqueId\",\r\n\t\t\t\tshow: window.OrganizationUniqueId != 5000?false:true\r\n\t\t\t},\r\n\r\n\t\t];\r\n\r\n\t\tthis.isClient = ClientHelper.IsClient();\r\n\r\n\t\tthis.validateProperties = [{ \"RoleName\": \"Role Name\" }, { \"RoleGroupId\": \"Role Group\" }, { \"RoleLevelId\": \"Role Level\" }, { \"OrganizationUniqueId\": \"OrganizationUniqueId\" }];\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\tisClientStandardUserOpen: false\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"USER ADMIN\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"User Role Definition\");\r\n\t\t}\r\n\r\n\t\tvar user = ClientHelper.GetUser();\r\n\r\n\t\tif (user.Role.RoleLevel.ParameterValue == RoleLevel.ClientStandardUser) {\r\n\t\t\tthis.setState({ isClientStandardUserOpen: true });\r\n\t\t}\r\n\r\n\t\tthis.GetRoleGroupClientRoleLevel();\r\n\t}\r\n\r\n\tValueChanged = (name, value) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tvar list = state.list;\r\n\t\t\tvar listRoleLevel = state.listRoleLevel;\r\n\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\tif (name == \"RoleGroupId\") {\r\n\t\t\t\tif (value) {\r\n\t\t\t\t\tthis.GetRoleListByRoleGroupId(value);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tmodel[\"RoleLevelId\"] = null;\r\n\t\t\t\t\tlist = [];\r\n\t\t\t\t\tlistRoleLevel = [];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if (name == \"RoleLevelId\") {\r\n\t\t\t\tmodel[\"ParentId\"] = null;\r\n\t\t\t}\r\n\r\n\t\t\treturn { model, list, listRoleLevel };\r\n\t\t});\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tconst { list } = this.state;\r\n\r\n\t\tthis.GetRoleListByRoleGroupId(list[index].RoleGroupId);\r\n\r\n\t\tthis.setState({ model: list[index], selected: index });\r\n\t}\r\n\r\n\tGetRoleGroupClientRoleLevel = async () => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/Parameter/Search\", { ParameterCode: \"RoleLevel\" });\r\n\r\n\t\tif (result != null) {\r\n\t\t\tvar roleLevelBackofficeSuperAdminId = result.filter(x => x.ParameterValue == RoleLevel.BackofficeSuperAdmin)[0].Id;\r\n\t\t\tvar roleLevelClientAdminId = result.filter(x => x.ParameterValue == RoleLevel.ClientAdmin)[0].Id;\r\n\t\t\tvar roleLevelClientStandartUserId = result.filter(x => x.ParameterValue == RoleLevel.ClientStandardUser)[0].Id;\r\n\t\t\tvar user = ClientHelper.GetUser();\r\n\t\t\tvar isBackofficeSuperAdmin = user.Role.RoleLevelId == roleLevelBackofficeSuperAdminId;\r\n\t\t\tvar isClientAdmin = user.Role.RoleLevelId == roleLevelClientAdminId;\r\n\r\n\t\t\tif (isBackofficeSuperAdmin) {\r\n\t\t\t\tthis.GetRoleClientAdmin(roleLevelClientAdminId);\r\n\t\t\t} else if (isClientAdmin) {\r\n\t\t\t\tvar model = {\r\n\t\t\t\t\tRoleGroupId: user.Role.RoleGroupId,\r\n\t\t\t\t\tRoleLevelId: roleLevelClientStandartUserId\r\n\t\t\t\t};\r\n\r\n\t\t\t\tthis.GetRoleListByRoleGroupId(model.RoleGroupId);\r\n\r\n\t\t\t\tthis.setState({ model });\r\n\t\t\t}\r\n\r\n\t\t\tthis.setState({ roleLevelBackofficeSuperAdminId, roleLevelClientAdminId, roleLevelClientStandartUserId, isBackofficeSuperAdmin, isClientAdmin });\r\n\t\t}\r\n\t}\r\n\r\n\tGetRoleClientAdmin = async (roleLevelClientAdminId) => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/Role/Search\", { RoleLevelId: roleLevelClientAdminId });\r\n\r\n\t\tthis.setState({ listRoleLevelClientAdmin: result || [] });\r\n\t}\r\n\r\n\tGetRoleListByRoleGroupId = async (roleGroupId) => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/Role/SearchRoleLevel\", { RoleGroupId: roleGroupId });\r\n\r\n\t\tthis.setState({ listRoleLevel: result || [] });\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\t\tvar { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/Role/Search\", model);\r\n\r\n\t\tmodel.IsParentId = false;\r\n\t\tmodel.IsRoleName = false;\r\n\t\tmodel.IsRoleGroupId = false;\r\n\t\tmodel.IsRoleLevelId = false;\r\n model.IsOrganizationUniqueId=false;\r\n\t\tthis.setState({ model, list: result || [] });\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tvar { model, } = this.state;\r\n\r\n\t\tif (this.isClient) {\r\n\t\t\tvar roleGroupId = model.RoleGroupId;\r\n\t\t\tvar roleLevelId = model.RoleLevelId;\r\n\r\n\t\t\tmodel = {\r\n\t\t\t\tRoleGroupId: roleGroupId,\r\n\t\t\t\tRoleLevelId: roleLevelId\r\n\t\t\t};\r\n\t\t} else {\r\n\t\t\tmodel = {};\r\n\t\t}\r\n\r\n\t\tthis.setState({ model, list: [], selected: null });\r\n\t}\r\n\r\n\tValidateParentForBackofficeSuperAdmin = () => {\r\n\t\tvar { model, roleLevelClientStandartUserId, isBackofficeSuperAdmin } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\r\n\t\tif (isBackofficeSuperAdmin && model.RoleLevelId == roleLevelClientStandartUserId && model.ParentId == null) {\r\n\t\t\tmodel[\"IsParentId\"] = true;\r\n\r\n\t\t\tshowValidationErrors([\"Parent cannot be null.\"]);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tmodel[\"IsParentId\"] = false;\r\n\r\n\t\treturn true;\r\n\t}\r\n\tRenderOrganizationUniqueIdSelect = (d) => {\r\n\t\tif (window.OrganizationUniqueId != 5000) {\r\n\t\t const model = { ...this.state.model };\r\n\t\t model[\"OrganizationUniqueId\"] = d.OrganizationUniqueId;\r\n\t\t this.setState({ model: model });\r\n\t\t}\r\n \r\n\t\treturn d.OrganizationUniqueId + \"-\" + d.OrganizationName;\r\n\t };\r\n\trender() {\r\n\t\tconst { model, list, listRoleLevel, listRoleLevelClientAdmin, selected, roleLevelClientStandartUserId, isBackofficeSuperAdmin, isClientStandardUserOpen } = this.state;\r\n\t\tconst { history, Disabled, ExecuteApiPost, showConfirmMessageInDelete } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t ExecuteApiPost(\"/coreapi/v1.0/Role/Insert\", model, model, this.validateProperties, this.ValidateParentForBackofficeSuperAdmin, [this.Clear, this.Search], true)\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Update\",\r\n\t\t\t\t\t\t\tDisabled: Disabled || selected == null || (this.isClient && model.ParentId == -1),\r\n\t\t\t\t\t\t\tOnClick: () => ExecuteApiPost(\"/coreapi/v1.0/Role/Update\", model, model, this.validateProperties, this.ValidateParentForBackofficeSuperAdmin, [this.Clear, this.Search], true)\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Delete\",\r\n\t\t\t\t\t\t\tDisabled: Disabled || selected == null || (this.isClient && model.ParentId == -1),\r\n\t\t\t\t\t\t\tOnClick: () => showConfirmMessageInDelete(() => ExecuteApiPost(\"/coreapi/v1.0/Role/Delete\", { Id: model.Id }, null, null, null, [this.Clear, this.Search], true))\r\n\t\t\t\t\t\t},\r\n\t\t\t\t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t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nUserRoleDefinition.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default UserRoleDefinition;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport AlertHelper from \"core/AlertHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericCheckInput, GenericDateInput, GenericExpansionPanel, GenericGrid, GenericLabel, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass Scheduler extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tSchedulerId: 0,\r\n\t\t\tOrderId: 1,\r\n\t\t\tLastRunDate: null,\r\n\t\t\tLastRunStatus: 0,\r\n\t\t\trecurringHourList: []\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tvModel: {},\r\n\t\t\tlist: [],\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tisLoading: false,\r\n\t\t\tselected: null,\r\n\t\t\tDays: [\r\n\t\t\t\t{\r\n\t\t\t\t\tId: 1,\r\n\t\t\t\t\tText: \"Sun\",\r\n\t\t\t\t\tStatus: false,\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tId: 2,\r\n\t\t\t\t\tText: \"Mon\",\r\n\t\t\t\t\tStatus: false,\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tId: 3,\r\n\t\t\t\t\tText: \"Tues\",\r\n\t\t\t\t\tStatus: false,\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tId: 4,\r\n\t\t\t\t\tText: \"Wed\",\r\n\t\t\t\t\tStatus: false,\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tId: 5,\r\n\t\t\t\t\tText: \"Thurs\",\r\n\t\t\t\t\tStatus: false,\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tId: 6,\r\n\t\t\t\t\tText: \"Fri\",\r\n\t\t\t\t\tStatus: false,\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tId: 7,\r\n\t\t\t\t\tText: \"Sat\",\r\n\t\t\t\t\tStatus: false,\r\n\t\t\t\t},\r\n\t\t\t]\r\n\t\t};\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Scheduler\");\r\n\t\tthis.props.setAppCenterTitle(\"System Admin\");\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tvar ErrorList = [];\r\n\t\tconst data = this.state.model;\r\n\t\tconst vModel = this.state.vModel;\r\n\t\t//todo bad translates\r\n\t\tif (data == null) {\r\n\t\t\tErrorList.push(\"You must select a Scheduler or create new one to add Scheduler .\");\r\n\t\t}\r\n\t\tif (data != null && (data.ApplicationPath == undefined || data.ApplicationPath == \"\")) {\r\n\t\t\tvModel.ApplicationPath = true;\r\n\t\t\tErrorList.push(\"Application Path must be defined !.\");\r\n\t\t} else { vModel.ApplicationPath = false }\r\n\t\tif (data != null && (data.ApplicationName == undefined || data.ApplicationName == \"\")) {\r\n\t\t\tvModel.ApplicationName = true;\r\n\t\t\tErrorList.push(\"Application Name must be defined !.\");\r\n\t\t} else { vModel.ApplicationName = false; }\r\n\t\tif (data != null && (data.Description == undefined || data.Description == \"\")) {\r\n\t\t\tvModel.Description = true;\r\n\t\t\tErrorList.push(\"Description must be defined !.\");\r\n\t\t} else { vModel.Description = false; }\r\n\t\tif (data != null && (data.FullClassName == undefined || data.FullClassName == \"\")) {\r\n\t\t\tvModel.FullClassName = true;\r\n\t\t\tErrorList.push(\"Full Class Name must be defined !.\");\r\n\t\t} else { vModel.FullClassName = false }\r\n\t\tif (data != null && (data.MethodName == undefined || data.MethodName == \"\")) {\r\n\t\t\tvModel.MethodName = true;\r\n\t\t\tErrorList.push(\"Method Name must be defined !.\");\r\n\t\t} else { vModel.MethodName = false; }\r\n\t\tif (data != null && (data.RecurringWeekDays == undefined || data.RecurringWeekDays == \"\" || /[23456789]/.test(data.RecurringWeekDays) || data.RecurringWeekDays.toString().length != 7)) {\r\n\t\t\tvModel.RecurringWeekDays = true;\r\n\t\t\tErrorList.push(\"Recurring Week Days must be defined !.\");\r\n\t\t} else { vModel.RecurringWeekDays = false; }\r\n\t\tif (data != null && (data.SchedulerType < 0 || data.SchedulerType == undefined)) {\r\n\t\t\tvModel.SchedulerType = true;\r\n\t\t\tErrorList.push(\"Scheduler Type must be defined !.\");\r\n\t\t} else { vModel.SchedulerType = false; }\r\n\t\tif (data != null && (data.StartDateTime == undefined || data.StartDateTime == \"\")) {\r\n\t\t\tvModel.StartDateTime = true;\r\n\t\t\tErrorList.push(\"Start Date must be defined !.\");\r\n\t\t} else { vModel.StartDateTime = false; }\r\n\t\tif (data != null && (data.EndDateTime == undefined || data.EndDateTime == \"\")) {\r\n\t\t\tvModel.EndDateTime = true;\r\n\t\t\tErrorList.push(\"End Date Time must be defined !.\");\r\n\t\t} else { vModel.EndDateTime = false; }\r\n\t\tif (data != null && (data.RecurringType < 0 || data.RecurringType == undefined)) {\r\n\t\t\tvModel.RecurringType = true;\r\n\t\t\tErrorList.push(\"Recurring Type must be defined !.\");\r\n\t\t} else { vModel.RecurringType = false; }\r\n\t\tif (data != null && (data.RecurringEvery < 0 || data.RecurringEvery == undefined)) {\r\n\t\t\tvModel.RecurringEvery = true;\r\n\t\t\tErrorList.push(\"Recurring Every must be defined !.\");\r\n\t\t} else { vModel.RecurringEvery = false; }\r\n\t\tif (data != null && (data.RecurringLevel < 0 || data.RecurringLevel == undefined)) {\r\n\t\t\tvModel.RecurringLevel = true;\r\n\t\t\tErrorList.push(\"Recurring Level must be defined !.\");\r\n\t\t} else { vModel.RecurringLevel = false; }\r\n\t\tthis.setState({ vModel })\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Please fill required fields!\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\thandleChange = (name, value, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tvar { recurringHourList } = this.state.model;\r\n\t\tmodel[name] = value;\r\n\t\tif (name == \"RecurringEvery\") {\r\n\t\t\trecurringHourList = [];\r\n\t\t\tfor (let index = 0; index < data.Id; index++) {\r\n\t\t\t\trecurringHourList.push({\r\n\t\t\t\t\tId: index,\r\n\t\t\t\t\tRecurringHour: null,\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t}\r\n\t\tmodel.recurringHourList = recurringHourList;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tvalueChangedRecurringHour = (name, value, data, index) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar { model } = state;\r\n\t\t\tvar recurringHourList = model.recurringHourList;\r\n\t\t\tvar item = recurringHourList[index];\r\n\t\t\titem[name] = value;\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\thandleChangeCheck = (name, value) => {\r\n\t\tlet { Days } = this.state;\r\n\t\tDays.map(x => (\r\n\t\t\tx.Status = (x.Text == name ? !x.Status : x.Status)\r\n\t\t));\r\n\t\tthis.setState({ Days });\r\n\t}\r\n\r\n\thandleSelectModel = (model, index) => {\r\n\t\tlet { Days } = this.state;\r\n\t\tvar i = 0;\r\n\t\tDays.map(x => {\r\n\t\t\tx.Status = model.RecurringWeekDays[i] == \"1\";\r\n\t\t\ti += 1;\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t);\r\n\t\tthis.setState({ Days, model, selected: index });\r\n\t}\r\n\r\n\thandleClear = () => {\r\n\t\tlet { Days } = this.state;\r\n\t\tDays.map(x => (x.Status = false));\r\n\t\tthis.setState({ model: this.initialModel, Days, vModel: {} });\r\n\t}\r\n\r\n\thandleGetList = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Scheduler/GetAll\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.setState({ list: [] });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\thandleSubmit = () => {\r\n\t\tlet { model, Days } = this.state;\r\n\t\tvar recurringHourList = model.recurringHourList;\r\n\t\tvar control = false;\r\n\r\n\t\tif (recurringHourList.length != null && recurringHourList.length > 0)\r\n\t\t\trecurringHourList.forEach(element => {\r\n\t\t\t\tif (element.RecurringHour == null) {\r\n\t\t\t\t\tcontrol = true;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\tif (control) {\r\n\t\t\tthis.ShowMessage(\"info\", \"Null Control\", \"Recuring hour list element not be null !!!\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (recurringHourList.length != null && recurringHourList.length > 0)\r\n\t\t\t\trecurringHourList.forEach(element => {\r\n\t\t\t\t\tif (recurringHourList.find(k => k.Id != element.Id && k.RecurringHour != null && k.RecurringHour.isSame(element.RecurringHour)) != null)\r\n\t\t\t\t\t\tcontrol = true;\r\n\t\t\t\t});\r\n\r\n\t\t\tif (control) {\r\n\t\t\t\tthis.ShowMessage(\"info\", \"Exist Time\", \"Recuring hour list two element not be same !!!\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tlet RecurringWeekDays = \"\";\r\n\t\t\t\tDays.map(x => (\r\n\t\t\t\t\tRecurringWeekDays += (x.Status == true ? \"1\" : \"0\")\r\n\t\t\t\t));\r\n\t\t\t\tmodel.RecurringWeekDays = RecurringWeekDays;\r\n\t\t\t\tthis.setState({ model });\r\n\t\t\t\tif (!this.Validate())\r\n\t\t\t\t\treturn;\r\n\t\t\t\tthis.setState({ isLoading: true });\r\n\t\t\t\tProxy.POST(\r\n\t\t\t\t\t\"/coreapi/v1.0/Scheduler/InsertOrUpdate\",\r\n\t\t\t\t\tmodel,\r\n\t\t\t\t\t(responseData) => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tthis.handleGetList();\r\n\t\t\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Operation is successfully!\");\r\n\t\t\t\t\t},\r\n\t\t\t\t\t(error) => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t\t\t}\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\thandleDelete = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Scheduler/Delete\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.handleGetList();\r\n\t\t\t\tthis.handleClear();\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Operation is successfully!\");\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: AlertHelper.CreateAlert(title, message, type, () => this.setState({ alert: \"\" }))\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { Days, alert, model, list, isLoading, vModel } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t model, FillDataFromModel: model => this.setState({ model }), ValidationFunction: this.Validate },\r\n\t\t\t\t\t{ Code: \"Submit\", OnClick: this.handleSubmit, Disabled: Disabled || model === this.initialModel, ModelFunction: () => model, FillDataFromModel: model => this.setState({ model }), ValidationFunction: this.Validate },\r\n\t\t\t\t\t{ Code: \"Delete\", OnClick: this.handleDelete, Disabled: Disabled || model.Id == 0 }\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{Days.map(x => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.handleChangeCheck(name, value)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t{model.recurringHourList && model.recurringHourList.map((item, index) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t this.valueChangedRecurringHour(name, value, data, index)} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t})}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t
0 ? \"0.4\" : \"1\" }}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
0 ? \"0.4\" : \"1\" }}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\trow.value == 0 ? \"Exe\" : row.value == 1 ? \"Code\" : row.value == 2 ? \"Procedure\" : row.value == 3 ? \"DotNetCoreApp\" : \"\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Description\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Description\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Application Path\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ApplicationPath\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Application Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ApplicationName\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Application Parameter\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ApplicationParameter\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Full Class Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"FullClassName\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Method Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"MethodName\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Name\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Start DateTime\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"StartDateTime\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"End DateTime\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"EndDateTime\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Recurring Type\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"RecurringType\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\trow.value == 0 ? \"Once\" : row.value == 1 ? \"Recurring\" : \"\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Recurring Level\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"RecurringLevel\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\trow.value == 0 ? \"Second\" : row.value == 1 ? \"Minute\" : row.value == 2 ? \"Daily\" : row.value == 3 ? \"Weekly\" : row.value == 4 ? \"Monthly\" : row.value == 5 ? \"Constant\" : \"\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Recurring Every\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"RecurringEvery\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Recurring Week Days\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"RecurringWeekDays\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Last Run Date\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"LastRunDate\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Last Run Status\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"LastRunStatus\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\trow.value == 0 ? \"Waiting\" : row.value == 1 ? \"Success\" : row.value == 2 ? \"Error\" : row.value == 3 ? \"Retry Exceeded\" : row.value == 4 ? \"In Progress\" : row.value == 5 ? \"Not Supported\" : row.value == 6 ? \"Finished With Exit Code1\" : \"\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\t\t\tRowSelected={index => {\r\n\t\t\t\t\t\t\t\t\t\t\t\tthis.handleSelectModel(list[index], index);\r\n\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\tSelectedIndex={this.state.rowIndex}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nScheduler.propTypes = {\r\n\tclasses: PropTypes.object.isRequired\r\n};\r\n\r\nexport default withArtifex(Scheduler, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { PropTypes } from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass SchedulerQueue extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tStartDateTime: DateHelper.GetDateTime().startOf(\"day\"),\r\n\t\t\tEndDateTime: DateHelper.GetDateTime().endOf(\"day\")\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tvModel: {},\r\n\t\t\tlist: [],\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tisLoading: false,\r\n\t\t\tDays: [\r\n\t\t\t\t{\r\n\t\t\t\t\tId: 1,\r\n\t\t\t\t\tText: \"Sun\",\r\n\t\t\t\t\tStatus: false,\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tId: 2,\r\n\t\t\t\t\tText: \"Mon\",\r\n\t\t\t\t\tStatus: false,\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tId: 3,\r\n\t\t\t\t\tText: \"Tues\",\r\n\t\t\t\t\tStatus: false,\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tId: 4,\r\n\t\t\t\t\tText: \"Wed\",\r\n\t\t\t\t\tStatus: false,\r\n\t\t\t\t}, ,\r\n\t\t\t\t{\r\n\t\t\t\t\tId: 5,\r\n\t\t\t\t\tText: \"Thurs\",\r\n\t\t\t\t\tStatus: false,\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tId: 6,\r\n\t\t\t\t\tText: \"Fri\",\r\n\t\t\t\t\tStatus: false,\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tId: 7,\r\n\t\t\t\t\tText: \"Sat\",\r\n\t\t\t\t\tStatus: false,\r\n\t\t\t\t},\r\n\t\t\t]\r\n\t\t};\r\n\r\n\t\tthis.emptyObject = {};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Scheduler Queue List\");\r\n\t\tthis.props.setAppCenterTitle(\"System Admin\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue || 0;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleGetList = () => {\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Scheduler/GetQueue\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.setState({ list: [] });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tif (!model.StartDateTime) {\r\n\t\t\tvModel.StartDateTime = true;\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Start Date Time can not be empty!\");\r\n\t\t\treturn;\r\n\t\t} else { vModel.StartDateTime = false; }\r\n\t\tif (!model.EndDateTime) {\r\n\t\t\tvModel.EndDateTime = true;\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"End Date Time can not be empty!\");\r\n\t\t\treturn;\r\n\t\t} else { vModel.EndDateTime = false; }\r\n\t\tthis.setState({ vModel })\r\n\t\treturn true;\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, vModel: {} });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes, Disabled } = this.props;\r\n\t\tconst { Days, alert, model, list, isLoading, staticSelectSchedulerType, vModel } = this.state;\r\n\t\treturn (\r\n\t\t\t<>\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\trow.value == 0 ? \"Exe\" : row.value == 1 ? \"Code\" : row.value == 2 ? \"Procedure\" : row.value == 3 ? \"DotNetCoreApp\" : \"\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Description\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Description\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Application Path\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ApplicationPath\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Application Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ApplicationName\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Application Parameter\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ApplicationParameter\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Full Class Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"FullClassName\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Method Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"MethodName\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Start DateTime\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"StartDateTime\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"End DateTime\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"EndDateTime\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Queue DateTime\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"QueueDateTime\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Result Message\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ResultMessage\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Retry Count\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"RetryCount\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Recurring Type\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"RecurringType\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\trow.value == 0 ? \"Once\" : row.value == 1 ? \"Recurring\" : \"\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Run Status\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"RunStatus\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\trow.value == 0 ? \"Waiting\" : row.value == 1 ? \"Success\" : row.value == 2 ? \"Error\" : row.value == 3 ? \"Retry Exceeded\" : row.value == 4 ? \"In Progress\" : row.value == 5 ? \"Not Supported\" : row.value == 6 ? \"Finished With Exit Code1\" : \"\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nSchedulerQueue.propTypes = {\r\n\tclasses: PropTypes.object.isRequired\r\n};\r\n\r\nexport default withArtifex(SchedulerQueue, {});\r\n","import { DialogContent, DialogTitle, Slide } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport { EditIcon, SubmitOrSendIcon } from \"core/Icons\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { GridColumnType, RoleGroup, RoleLevel } from \"views/Constants/Constant\";\r\n\r\nfunction Transition(props) {\r\n\treturn ;\r\n}\r\n\r\nclass UserDetail extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t this.CellEditButtonClick(row.original.Id)} />\r\n\r\n\t\t\t\t\t\t this.ResetPasswordConfirm(row.original.Id)} />\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\twidth: 100,\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"User Name\",\r\n\t\t\t\taccessor: \"UserName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"User Role\",\r\n\t\t\t\taccessor: \"RoleRoleName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Name\",\r\n\t\t\t\taccessor: \"FirstName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Last Name\",\r\n\t\t\t\taccessor: \"LastName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"ID Type\",\r\n\t\t\t\taccessor: \"IdTypeParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"ID Number\",\r\n\t\t\t\taccessor: \"IdNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Exp. Date of ID\",\r\n\t\t\t\taccessor: \"ExpDateOfId\",\r\n\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"User Exp. Date\",\r\n\t\t\t\taccessor: \"UserExpDate\",\r\n\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"User Status\",\r\n\t\t\t\taccessor: \"UserStatusParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n Header: \"OrganizationUniqueId\",\r\n accessor: \"OrganizationUniqueId\",\r\n show: window.OrganizationUniqueId != 5000 ? false : true,\r\n }\r\n\t\t];\r\n\r\n\t\tthis.isBackOffice = ClientHelper.IsBackOffice();\r\n\t\tthis.uniqueClientId = ClientHelper.GetClientId();\r\n\r\n\t\tthis.emptyObject = {};\r\n\t\tthis.parameterRole = {};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tUniqueClientId: this.isBackOffice ? undefined : this.uniqueClientId\r\n\t\t\t},\r\n\t\t\troleLevelIdClientAdmin: null,\r\n\t\t\tisClientStandardUserOpen: false\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"User\");\r\n\t\t}\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"User Admin\");\r\n\t\t}\r\n\r\n\t\tvar user = ClientHelper.GetUser();\r\n\r\n\t\tif (user.Role.RoleLevel.ParameterValue == RoleLevel.ClientStandardUser) {\r\n\t\t\tthis.setState({ isClientStandardUserOpen: true });\r\n\t\t} else if (user.Role.RoleLevel.ParameterValue == RoleLevel.ClientAdmin) {\r\n\t\t\tthis.GetRoleLevelClientAdmin();\r\n\t\t}\r\n\t}\r\n\r\n\tValueChanged = (name, value, data) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = value;\r\n\r\n\t\t\tif (name == \"RoleGroupId\" && data != null) {\r\n\t\t\t\tmodel[\"IsRoleGroupBackoffice\"] = data.ParameterValue == RoleGroup.Backoffice;\r\n\r\n\t\t\t\tif (data.ParameterValue == RoleGroup.Backoffice) {\r\n\t\t\t\t\tmodel.UniqueClientId = null;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tGetParameterRole = () => {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tthis.parameterRole.RoleGroupId = model.RoleGroupId || null;\r\n\r\n\t\treturn this.parameterRole;\r\n\t}\r\n\r\n\tGetRenderItemClientSelect(d) {\r\n\t\treturn `${d.UniqueClientId} - ${d.Name}`;\r\n\t}\r\n\r\n\tCellEditButtonClick = (userId) => {\r\n\t\tconst { history } = this.props;\r\n\r\n\t\tRouteHelper.Push(history, \"/NewUserDefinition\", \"NewUserDefinition_Id\", userId);\r\n\t}\r\n\r\n\tResetPasswordConfirm = (userId) => {\r\n\t\tconst { ExecuteApiPost, showConfirmMessage } = this.props;\r\n\r\n\t\tshowConfirmMessage(\"warning\", \"Warning\", \"Are you sure you want to resend login information? This process will reset the previous password of the user!\",\r\n\t\t\t() => ExecuteApiPost(\"/coreapi/v1.0/User/ResetPasswordCredential\", { Id: userId }, null, null, null, null, true));\r\n\t}\r\n\r\n\tGetRoleLevelClientAdmin = async () => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/Parameter/Search\", { ParameterCode: \"RoleLevel\", ParameterValue: \"ClientStandardUser\" });\r\n\t\tvar roleLevelIdClientAdmin = -1;\r\n\r\n\t\tif (result != null && result.length == 1) {\r\n\t\t\troleLevelIdClientAdmin = result[0].Id;\r\n\t\t}\r\n\r\n\t\tthis.setState({ roleLevelIdClientAdmin });\r\n\t}\r\n\r\n\tSearch = async () => {\r\n\t\tconst { model, roleLevelIdClientAdmin } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar request = model;\r\n\r\n\t\trequest.RoleGroupId = request.RoleGroupId != -1\r\n\t\t\t? request.RoleGroupId\r\n\t\t\t: null;\r\n\t\trequest.RoleLevelId = roleLevelIdClientAdmin;\r\n\t\trequest.RoleId = request.RoleId != -1\r\n\t\t\t? request.RoleId\r\n\t\t\t: null;\r\n\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/User/Search\", request);\r\n\r\n\t\tthis.setState({ list: result || [] });\r\n\t}\r\n\r\n\tClear = () => {\r\n\t\tconst { RoleGroupId } = this.state.model;\r\n\t\tvar model = {};\r\n\r\n\t\tmodel.UniqueClientId = this.isBackOffice ? undefined : this.uniqueClientId;\r\n\r\n\t\tif (!ClientHelper.IsBackOffice()) {\r\n\t\t\tmodel.RoleGroupId = RoleGroupId;\r\n\t\t}\r\n\r\n\t\tthis.setState({ model, list: [] });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, list, isClientStandardUserOpen } = this.state;\r\n\t\tconst { history, Disabled } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nUserDetail.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tExecuteApiPost: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any\r\n};\r\n\r\nexport default UserDetail;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n//import StringHelper from '../../core/StringHelper';\r\n\r\nclass CardTransferMemoDefinition extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t\tProgramId: null,\r\n\t\t\tCardTransferMemoDefinition: \"\",\r\n\t\t\tCardTransferMemoDefinitionAnswer: \"\"\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tlist: [],\r\n\t\t\tisEdit: false,\r\n\t\t\tisLoading: false,\r\n\t\t\tindex: -1\r\n\t\t};\r\n\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : undefined,\r\n\t\t};\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\r\n\t\tthis.maxLength40 = { maxLength: 40 };\r\n\t\tthis.maxLength25 = { maxLength: 25 };\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Note\",\r\n\t\t\t\taccessor: \"Memo\"\r\n\t\t\t}\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Card Transfer Memo Definition\");\r\n\t\tthis.props.setAppCenterTitle(\"NOTIFICATIONS\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = (keepUniqueClientId) => {\r\n\t\tvar emptyModel = { ...this.initialModel };\r\n\t\tif (keepUniqueClientId === true) {\r\n\t\t\temptyModel.UniqueClientId = this.state.model?.UniqueClientId;\r\n\t\t}\r\n\t\tthis.setState({ model: emptyModel, isEdit: false, index: -1 });\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/VisaDirect/GetMemosByClientId\",\r\n\t\t\tthis.initialModel.UniqueClientId,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ list: responseData.Item || [] });\r\n\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleSubmit = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tvar model = { ...this.state.model };\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/bankapi/v1.0/VisaDirect/CreateMemo\",\r\n\t\t\t{ Memo: model.TransactionDescription },\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.HandleClear(true);\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Added successfully!\");\r\n\t\t\t\tthis.HandleSearch();\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tValidate = (forSearch) => {\r\n\t\tconst { model } = this.state;\r\n\t\tvar Messages = [];\r\n\r\n\t\tif (!model.UniqueClientId) {\r\n\t\t\tMessages.push(\"Client cannot be empty.\");\r\n\t\t\tmodel.vUniqueClientId = true;\r\n\t\t} else {\r\n\t\t\tmodel.vUniqueClientId = false;\r\n\t\t}\r\n\r\n\t\tif (model.TransactionDescription == null || model.TransactionDescription == \"\") {\r\n\t\t\tmodel.vTransactionDescription = true;\r\n\t\t\tMessages.push(\"Note must be defined !\");\r\n\t\t} else { model.vTransactionDescription = false; }\r\n\r\n\r\n\t\tif (Messages.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", Messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn true;\r\n\t}\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tvar tempModel = { ...this.state.list[index] };\r\n\t\ttempModel.CardTransferMemoDefinitionAnswer = null;\r\n\t\tthis.setState({ isEdit: true, model: tempModel, index });\r\n\t}\r\n\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: null })} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, isLoading, index } = this.state;\r\n\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCardTransferMemoDefinition.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(CardTransferMemoDefinition, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent.jsx\";\r\nimport { GenericCheckInput, GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant.js\";\r\n\r\nclass ClientApiKeyDefinition extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t\tIsMainCard: true\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tvModel: {},\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.maxLength21 = { maxLength: 21 };\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientId() : undefined\r\n\t\t};\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Url Key\",\r\n\t\t\t\taccessor: \"UrlKey\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"User Key\",\r\n\t\t\t\taccessor: \"UserKey\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Password Key\",\r\n\t\t\t\taccessor: \"PasswordKey\"\r\n\t\t\t}\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Client Api Key Definition\");\r\n\t\tthis.props.setAppCenterTitle(\"CARD TRANSFER\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tGetClientKeys = async (ClientId) => {\r\n\t\tvar clientId = parseInt(ClientId);\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/bankapi/v1.0/VisaDirect/GetAllApiKey\", {\r\n\t\t\tUniqueClientId: clientId\r\n\t\t});\r\n\r\n\t\tif (result != null) {\r\n\t\t\tthis.setState({ cardList: result || [] });\r\n\t\t}\r\n\r\n\t}\r\n\r\n\tSelectedRowChange = (e, index) => {\r\n\t\tconst keys = this.state.list[index];\r\n\t\tconst model = { ...this.state.model };\r\n\t\tthis.setState({ model: keys });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, isEdit: false, index: -1 });\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/VisaDirect/GetAllApiKey\",\r\n\t\t\t{\r\n\t\t\t\t//IsMainCard: model.IsMainCard,\r\n\t\t\t\t//UniqueClientId: model.UniqueClientId || 0,\r\n\t\t\t\t//ClientCustomerId: model.ClientCustomerId,\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleSubmit = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/VisaDirect/AddApiKeyByClient\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ model: { ...this.initialModel }, index: -1 });\r\n\t\t\t\t\tthis.props.showMessage(\"success\", \"Succeeded\", \"Operation is successfully!\");\r\n\t\t\t\t\tthis.HandleSearch();\r\n\t\t\t\t\tthis.HandleClear();\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleUpdate = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/VisaDirect/UpdateApiKeyByClientOp\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tthis.HandleSearch();\r\n\t\t\t\t\tthis.HandleClear();\r\n\t\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\t\tthis.setState({ model: { ...this.initialModel }, index: -1 });\r\n\t\t\t\t\t\tthis.props.showMessage(\"success\", \"Succeeded\", \"Operation is successfully!\");\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\t\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleDelete = () => {\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/VisaDirect/DeleteApiKeyByClientOp\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tthis.HandleSearch();\r\n\t\t\t\t\tthis.HandleClear();\r\n\t\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\t\tthis.setState({ model: { ...this.initialModel }, index: -1 });\r\n\t\t\t\t\t\tthis.props.showMessage(\"success\", \"Succeeded\", \"Operation is successfully!\");\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\t\t\t\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tvar messages = [];\r\n\r\n\t\tvModel.UniqueClientId = model.UniqueClientId == null;\r\n\t\tif (vModel.UniqueClientId) messages.push(\"Client must be select.\");\r\n\r\n\t\tvModel.UrlKey = model.UrlKey == null;\r\n\t\tif (vModel.UniqueClientId) messages.push(\"Url Key must be defined.\");\r\n\r\n\t\tvModel.UserKey = model.UserKey == null;\r\n\t\tif (vModel.UniqueClientId) messages.push(\"User Key must be defined.\");\r\n\r\n\t\tvModel.PasswordKey = model.PasswordKey == null;\r\n\t\tif (vModel.UniqueClientId) messages.push(\"Password Key must be defined.\");\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.props.showMessageNode(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.setState({ vModel });\r\n\t\treturn true;\r\n\t}\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, vModel, list, isLoading, index } = this.state;\r\n\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\r\n\t\treturn (\r\n\t\t\t<>\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\tthis.SelectedRowChange(0, index);\r\n\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\tSelectedIndex={this.state.rowIndex}\r\n\t\t\t\t\t\t\t\t\t\t\tProgramCode={ProgramCodes.Prepaid} />\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nClientApiKeyDefinition.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(ClientApiKeyDefinition, {});","import React, { Component } from 'react'\r\nimport { withArtifex } from 'core';\r\nimport GridContainer from 'components/Grid/GridContainer';\r\nimport GridItem from 'components/Grid/GridItem';\r\nimport Card from 'components/Card/Card';\r\nimport CardBody from 'components/Card/CardBody';\r\nimport { GenericExpansionPanel, GenericNumberInput, GenericTextInput, GenericDialog, GenericDialogActions, GenericLabel, GenericSelectInput, GenericDateInput, GenericCheckInput, GenericTitle, GenericGrid } from 'views/Components/Generic';\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport { ProgramCodes, GridColumnType, EFTTransactionTypes, CardTransferTypes } from \"views/Constants/Constant.js\";\r\nimport LoadingComponent from 'views/Components/LoadingComponent';\r\nimport ButtonToolbar from 'views/Components/ButtonToolbar';\r\nimport ParameterComponent from 'views/Components/ParameterComponent';\r\nimport DateHelper from 'core/DateHelper';\r\nimport Formatter from 'core/Formatter';\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nclass CreateCardTransfer extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.uniqueClientId = ClientHelper.GetClientRowId();\r\n\t\tthis.cardTransferType = CardTransferTypes.VisaDirect;\r\n\t\tthis.state = {\r\n\t\t\tisFileDialogOpen: false,\r\n\t\t\tvModel: {},\r\n\t\t\ttransfer: {},\r\n\t\t\ttrxResponse: {},\r\n\t\t\tcardList: [],\r\n\t\t\tisLoading: false,\r\n\t\t};\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Name\",\r\n\t\t\t\taccessor: \"ClientCustomerName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Source Account\",\r\n\t\t\t\taccessor: \"SourceAccount\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Destination Account\",\r\n\t\t\t\taccessor: \"DestinationAccount\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Currency\",\r\n\t\t\t\taccessor: \"Currency\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t// {\r\n\t\t\t// \tHeader: \"Transfer Reason\",\r\n\t\t\t// \taccessor: \"TransferReason\",\r\n\t\t\t// },\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"TransactionAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t// {\r\n\t\t\t// \tHeader: \"Status\",\r\n\t\t\t// \taccessor: \"Status\",\r\n\t\t\t// },\r\n\t\t\t// {\r\n\t\t\t// \tHeader: \"Error Code\",\r\n\t\t\t// \taccessor: \"ErrorCode\",\r\n\t\t\t// }\r\n\t\t\t{\r\n\t\t\t\tHeader: \"State\",\r\n\t\t\t\taccessor: \"TransactionState\"\r\n\t\t\t}\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\r\n\t\tif (setAppLeftTitle)\r\n\t\t\tsetAppLeftTitle(\"Create Card Transfer\");\r\n\t\tif (setAppCenterTitle)\r\n\t\t\tsetAppCenterTitle(\"CARD TRANSFER\");\r\n\r\n\t\tthis.setState({ loadingCompleted: true });\r\n\t}\r\n\thandleSearch = async () => {\r\n\t\tthis.setState(state => ({ trxGridToken: !state.trxGridToken }));\r\n\t}\r\n\tClear = async () => {\r\n\t\tconst { transfer } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/bankapi/v1.0/VisaDirect/CreateMemo\", { Memo: transfer.TransactionDescription });\r\n\t\tthis.setState({ transfer: { NewEndUser: true }, vModel: {}, isFileDialogOpen: false });\r\n\t}\r\n\r\n\tCloseFile = () => {\r\n\t\tthis.setState({ isFileDialogOpen: false });\r\n\t}\r\n\tValidate = () => {\r\n\t\tconst { transfer, vModel } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tvar errors = [];\r\n\r\n\t\tif (transfer.CustomerNumber == null || transfer.CustomerNumber == \"\") {\r\n\t\t\tvModel.CustomerNumber = true;\r\n\t\t\terrors.push(\"Customer Number must be defined !\");\r\n\t\t} else { vModel.CustomerNumber = false; }\r\n\r\n\t\tif (transfer.AccountId == null || transfer.AccountId == \"\") {\r\n\t\t\tvModel.AccountId = true;\r\n\t\t\terrors.push(\"From Account must be defined !\");\r\n\t\t} else { vModel.AccountId = false; }\r\n\r\n\t\tif (transfer.CardId == null || transfer.CardId == \"\") {\r\n\t\t\tvModel.CardId = true;\r\n\t\t\terrors.push(\"Card Number must be defined !\");\r\n\t\t} else { vModel.CardId = false; }\r\n\r\n\t\tif (transfer.CurrencyId == null || transfer.CurrencyId == \"\") {\r\n\t\t\tvModel.CurrencyId = true;\r\n\t\t\terrors.push(\"Currency must be defined !\");\r\n\t\t} else { vModel.CurrencyId = false; }\r\n\r\n\t\tif (transfer.TransactionDescription == null || transfer.TransactionDescription == \"\") {\r\n\t\t\tvModel.TransactionDescription = true;\r\n\t\t\terrors.push(\"Transaction Description must be defined !\");\r\n\t\t} else { vModel.TransactionDescription = false; }\r\n\r\n\t\tif (transfer.Amount == null || transfer.Amount == \"\") {\r\n\t\t\tvModel.Amount = true;\r\n\t\t\terrors.push(\"Amount must be defined !\");\r\n\t\t} else { vModel.Amount = false; }\r\n\r\n\t\tif (transfer.TransactionTypeId == null || transfer.TransactionTypeId == \"\" || transfer.TransactionTypeId < 0) {\r\n\t\t\tvModel.TransactionTypeId = true;\r\n\t\t\terrors.push(\"Transaction Type must be defined !\");\r\n\t\t} else { vModel.TransactionTypeId = false; }\r\n\r\n\t\tif (errors.length > 0) {\r\n\t\t\tshowValidationErrors(errors);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tthis.setState({ isFileDialogOpen: true });\r\n\t\treturn true;\r\n\t}\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst transfer = { ...this.state.transfer };\r\n\t\ttransfer[name] = newValue;\r\n\t\tthis.setState({ transfer });\r\n\t\tif (name == \"NewEndUser\" && newValue == true) {\r\n\t\t\tthis.Clear();\r\n\t\t}\r\n\r\n\t\tif (name == \"TransactionTypeId\" && data?.ParameterValue == EFTTransactionTypes.Debit) {\r\n\t\t\tthis.setState({ Url: \"/bankapi/v1.0/VisaDirect/PullFromCard\" });\r\n\t\t}\r\n\t\tif (name == \"TransactionTypeId\" && data?.ParameterValue == EFTTransactionTypes.Credit) {\r\n\t\t\tthis.setState({ Url: \"/bankapi/v1.0/VisaDirect/CreatePayoutTransaction\" });\r\n\t\t}\r\n\t}\r\n\r\n\tSelectedCardRowChange = (e, index) => {\r\n\t\tconst model = this.state.cardList[index];\r\n\t\tthis.setState({ transfer: model });\r\n\t}\r\n\tGetRenderItemAccount = (x) => {\r\n\t\tthis.renderItemAccount = `${x.AccountNumber} - ${x.AccountName}`;\r\n\t\treturn this.renderItemAccount;\r\n\t}\r\n\tRenderCurrencySelect = (d) => {\r\n\t\treturn d.Code + \" - \" + d.Description;\r\n\t}\r\n\r\n\tRenderTransactionTypeSelect = (d) => {\r\n\t\treturn d.ParameterDesc == \"Debit\" ? \"Pull From Card\" : \"Push To Card\";\r\n\t}\r\n\r\n\tHandleSubmit = async(url)=>{\r\n\t\tconst transfer = { ...this.state.transfer };\r\n\t\tvar result = await this.props.ExecuteApiPost(url, transfer, null, null, this.Validate, [this.Clear], true);\r\n\t\tconsole.log(result);\r\n\t\tthis.CloseFile();\r\n\t\tthis.setState({ trxResponse: result, vModel: {}, transfer: { NewEndUser: true }});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { transfer, alert, isLoading, vModel, isFileDialogOpen, trxResponse } = this.state;\r\n\t\tconst { ExecuteApiPost, Disabled } = this.props;\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t{alert}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t this.Validate()\r\n\t\t\t\t\t\t\t\t//OnClick: () => ExecuteApiPost(this.state.Url, transfer, null, null, this.Validate, null, true)\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t `${d.CardEmbossName} - ${d.MaskedCardNumber}`}\r\n\t\t\t\t\t\t\t\t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
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t// \tthis.SelectedCardRowChange(0, index);\r\n\t\t\t\t\t\t\t\t\t\t\t// }}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t
\r\n\r\n\t\t);\r\n\t}\r\n}\r\n\r\nexport default withArtifex(CreateCardTransfer, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { Proxy } from \"core\";\r\nimport { ProgramCodes } from \"views/Constants/Constant\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent\";\r\nimport {\r\n GenericEmailInput,\r\n GenericExpansionPanel,\r\n GenericGrid,\r\n GenericSelectInput,\r\n} from \"views/Components/Generic\";\r\nclass InstrumentList extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n\r\n this.initialModel = {\r\n Id: 0,\r\n Customer: null,\r\n DefaultAccount: null,\r\n CardId: null,\r\n Email: \"\",\r\n IsEmailValid: true,\r\n UniqueClientId: ClientHelper.IsClient()\r\n ? ClientHelper.GetClientRowId()\r\n : undefined,\r\n };\r\n\r\n this.columnsList = [\r\n {\r\n Header: \"Client Customer Name\",\r\n accessor: \"ClientCustomerName\",\r\n },\r\n {\r\n Header: \"First Name\",\r\n accessor: \"FirstName\",\r\n },\r\n {\r\n Header: \"Middle Name\",\r\n accessor: \"MiddleName\",\r\n },\r\n {\r\n Header: \"Last Name\",\r\n accessor: \"LastName\",\r\n },\r\n\t\t{\r\n\t\t\tHeader: \"Nick Name\",\r\n\t\t\taccessor: \"Nickname\",\r\n\t\t },\r\n {\r\n Header: \"Email\",\r\n accessor: \"EMail\",\r\n },\r\n {\r\n Header: \"Account Name\",\r\n accessor: \"AccountName\",\r\n },\r\n {\r\n Header: \"Account Number\",\r\n accessor: \"AccountNumber\",\r\n },\r\n {\r\n Header: \"Account Owner Name\",\r\n accessor: \"AccountOwnerName\",\r\n },\r\n {\r\n Header: \"Identity Type\",\r\n accessor: \"IdType\",\r\n },\r\n {\r\n Header: \"Identity Number\",\r\n accessor: \"IdNumber\",\r\n },\r\n {\r\n Header: \"Expiration Year\",\r\n accessor: \"ExpirationYear\",\r\n },\r\n {\r\n Header: \"Expiration Month\",\r\n accessor: \"ExpirationMonth\",\r\n },\r\n {\r\n Header: \"Card Token Number\",\r\n accessor: \"CardTokenNumber\",\r\n },\r\n {\r\n Header: \"Masked Card Number\",\r\n accessor: \"MaskedCardNumber\",\r\n },\r\n {\r\n Header: \"Payment Instrument Id\",\r\n accessor: \"PaymentInstrumentId\",\r\n },\r\n {\r\n Header: \"Bin\",\r\n accessor: \"Bin\",\r\n },\r\n {\r\n Header: \"Last Four\",\r\n accessor: \"LastFour\",\r\n },\r\n {\r\n Header: \"Brand\",\r\n accessor: \"Brand\",\r\n },\r\n {\r\n Header: \"ClientRegistredId\",\r\n accessor: \"ClientRegistredId\",\r\n },\r\n {\r\n Header: \"Currency\",\r\n accessor: \"Currency\",\r\n },\r\n {\r\n Header: \"Country\",\r\n accessor: \"Country\",\r\n },\r\n ];\r\n\r\n this.parameterUniqueClientId = {\r\n UniqueClientId: ClientHelper.IsClient()\r\n ? ClientHelper.GetClientId()\r\n : undefined,\r\n };\r\n\r\n this.emptyObject = {};\r\n this.renderItemUniqueClient = {};\r\n\r\n this.state = {\r\n vModel: {},\r\n model: this.initialModel,\r\n isLoading: false,\r\n list: [],\r\n };\r\n }\r\n\r\n componentDidMount() {\r\n const { setAppCenterTitle, setAppLeftTitle } = this.props;\r\n\r\n if (setAppCenterTitle) {\r\n setAppCenterTitle(\"CARD TRANSFER\");\r\n }\r\n if (setAppLeftTitle) {\r\n setAppLeftTitle(\"Instrument List\");\r\n }\r\n }\r\n\r\n Search = async () => {\r\n const { showMessage } = this.props;\r\n\t const model = { ...this.state.model };\r\n this.setState({ isLoading: true });\r\n\t var request = {\r\n\t\tCustomerNumber: model.Customer == null ? null : model.Customer.CustomerNumber,\r\n\t\tUniqueClientId: model.UniqueClientId == null ? null : model.UniqueClientId,\r\n\t\tEmail: model.Email\r\n\t};\r\n Proxy.POST(\r\n \"/bankapi/v1.0/VisaDirect/RegisteredClientsSearchAccount\",\r\n request,\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n\r\n if (!responseData.IsSucceeded) {\r\n showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n return;\r\n }\r\n\r\n this.setState({ list: responseData.Item ?? [] });\r\n },\r\n (error) => {\r\n this.setState({ isLoading: false });\r\n showMessage(\"error\", \"Error\", error);\r\n }\r\n );\r\n };\r\n\r\n Clear = () => {\r\n this.setState({\r\n model: this.initialModel,\r\n list: []\r\n });\r\n };\r\n\r\n HandleChange = (name, newValue, data) => {\r\n const model = { ...this.state.model };\r\n if (name === \"Customer\") {\r\n if (newValue != null) {\r\n model.Customer = newValue;\r\n if (newValue.Accounts != null && newValue.Accounts.length > 0) {\r\n model.DefaultAccount = newValue.Accounts[0];\r\n }\r\n } else {\r\n model.Customer = this.initialModel.Customer;\r\n model.DefaultAccount = this.initialModel.DefaultAccount;\r\n }\r\n }\r\n model[name] = newValue;\r\n this.setState({ model });\r\n };\r\n\r\n RenderItemUniqueClient = (d) => {\r\n this.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n return this.renderItemUniqueClient;\r\n };\r\n\r\n SelectedRowChange = (index) => {\r\n const { list } = this.state;\r\n const model = list[index];\r\n };\r\n\r\n render() {\r\n const { isLoading, model, vModel, list } = this.state;\r\n const { Disabled, IsPopUp } = this.props;\r\n var IsClient = ClientHelper.IsClient();\r\n return (\r\n
\r\n \r\n {!IsPopUp && (\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\t\t\t\t\t\t \r\n \r\n {\r\n this.HandleChange(\"Customer\", customer);\r\n }}\r\n Programs={[ProgramCodes.BANK_PROGRAMS_Card_Transfers]}\r\n />\r\n \r\n\t\t\t\t\t\t \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\nInstrumentList.propTypes = {\r\n ExecuteApiPost: PropTypes.func,\r\n ExecuteApiFileDownload: PropTypes.func,\r\n setAppLeftTitle: PropTypes.func,\r\n setAppCenterTitle: PropTypes.func,\r\n Disabled: PropTypes.bool,\r\n menuId: PropTypes.any,\r\n ApprovalData: PropTypes.any,\r\n After: PropTypes.any,\r\n IsPopUp: PropTypes.bool,\r\n};\r\n\r\nexport default InstrumentList;","// @ts-nocheck\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport { blackColor } from \"assets/jss/material-dashboard-pro-react.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport Tooltip from \"react-tooltip-lite\";\r\nimport { GenericAlert, GenericCheckInput, GenericDateInput, GenericDialog, GenericDialogActions, GenericGrid, GenericLabel, GenericNumberInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\n\r\nclass MastercardClearingDetail extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tdialog: {\r\n\t\t\t\tisOpen: false,\r\n\t\t\t\tdialogData: []\r\n\t\t\t},\r\n\t\t\tselected: -1,\r\n\t\t\tisLoading: false,\r\n\t\t\tPdsData: [],\r\n\t\t\tChipData: [],\r\n\t\t\tisPdsDialogOpen: false,\r\n\t\t\tisChipDialogOpen: false\r\n\t\t};\r\n\r\n\t\tthis.maxLength1 = { maxLength: 1 };\r\n\t\tthis.maxLength19 = { maxLength: 19 };\r\n\t\tthis.maxLength6 = { maxLength: 6 };\r\n\t\tthis.maxLength17 = { maxLength: 17 };\r\n\t\tthis.maxLength4 = { maxLength: 3 };\r\n\t\tthis.maxLength3 = { maxLength: 3 };\r\n\t\tthis.maxLength22 = { maxLength: 22 };\r\n\t\tthis.maxLength16 = { maxLength: 16 };\r\n\t\tthis.maxLength45 = { maxLength: 45 };\r\n\t\tthis.maxLength13 = { maxLength: 13 };\r\n\t\tthis.maxLength10 = { maxLength: 10 };\r\n\t\tthis.maxLength256 = { maxLength: 256 };\r\n\t\tthis.maxLength11 = { maxLength: 11 };\r\n\t\tthis.maxLength999 = { maxLength: 999 };\r\n\t\tthis.maxLength12 = { maxLength: 12 };\r\n\t\tthis.maxLength15 = { maxLength: 15 };\r\n\t\tthis.maxLength8 = { maxLength: 8 };\r\n\t\tthis.ColumnsPds = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Pds Tag\",\r\n\t\t\t\taccessor: \"PdsTag\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Pds Value\",\r\n\t\t\t\taccessor: \"PdsValue\"\r\n\t\t\t},\r\n\t\t];\r\n\r\n\r\n\t\tthis.ColumnsIpt = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Data Tag\",\r\n\t\t\t\taccessor: \"DataTag\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Data Value\",\r\n\t\t\t\taccessor: \"DataValue\"\r\n\t\t\t},\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tif (this.props.KnownCustomer)\r\n\t\t\tthis.HandleClickByKeyPressed();\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tthis.props.onModelChange(model => {\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\treturn model;\r\n\t\t});\r\n\t}\r\n\r\n\r\n\r\n\tHandleKeyPress = (e) => {\r\n\t\tif (e.key == \"Enter\") {\r\n\t\t\tthis.HandleClickByKeyPressed();\r\n\t\t}\r\n\t}\r\n\r\n\tHandleClickByKeyPressed = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/bankapi/v1.0/ClientCustomer/SearchForComponent\",\r\n\t\t\t{\r\n\t\t\t\tCustomerNumber: this.props.CustomerNumber,\r\n\t\t\t\tPrograms: this.props.Programs,\r\n\t\t\t\tUniqueClientId: this.props.UniqueClientId\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tdialog: {\r\n\t\t\t\t\t\t\tisOpen: true,\r\n\t\t\t\t\t\t\tdialogData: responseData.Item\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t\tif (responseData.Item.length === 1) {\r\n\t\t\t\t\t\tthis.HandleSelectModel(responseData.Item[0], 0);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ dialogData: [] });\r\n\t\t\t\t}\r\n\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t});\r\n\t}\r\n\r\n\tHandleClick = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/bankapi/v1.0/ClientCustomer/SearchForComponent\",\r\n\t\t\t{\r\n\t\t\t\tCustomerNumber: this.props.CustomerNumber,\r\n\t\t\t\tPrograms: this.props.Programs,\r\n\t\t\t\tUniqueClientId: this.props.UniqueClientId\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tdialog: {\r\n\t\t\t\t\t\t\tisOpen: true,\r\n\t\t\t\t\t\t\tdialogData: responseData.Item\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ dialogData: [] });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t});\r\n\t}\r\n\r\n\tHandleClearClick = () => {\r\n\t\tthis.setState({\r\n\t\t\tdialog: {\r\n\t\t\t\tisOpen: false,\r\n\t\t\t\tdialogData: []\r\n\t\t\t},\r\n\t\t\tmodel: {},\r\n\t\t\tselected: -1\r\n\t\t}, () => {\r\n\t\t\tthis.props.FillCallback(null);\r\n\t\t});\r\n\t}\r\n\r\n\r\n\tHandleSelectModel = (model, index) => {\r\n\t\tthis.setState({ selected: index });\r\n\t\tthis.props.FillCallback(model); this.setState({\r\n\t\t\tdialog: {\r\n\t\t\t\tisOpen: false,\r\n\t\t\t\tdialogData: []\r\n\t\t\t},\r\n\t\t\tselected: -1\r\n\t\t});\r\n\t};\r\n\r\n\tHandleChip = () => {\r\n\t\tthis.setState({ isLoading: true, isChipDialogOpen: true });\r\n\t\tProxy.POST(\"/prepaidapi/v1.0/MastercardClearing/GetAllMastercardChipData\",\r\n\t\t\t{\r\n\t\t\t\tId: this.props.model.Id,\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tChipData: responseData.Item, isLoading: false\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ ChipData: [], isLoading: false });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t});\r\n\r\n\t}\r\n\tHandlePds = () => {\r\n\r\n\t\tthis.setState({ isLoading: true, isPdsDialogOpen: true });\r\n\t\tProxy.POST(\"/prepaidapi/v1.0/MastercardClearing/GetAllMastercardPdsData\",\r\n\t\t\t{\r\n\t\t\t\tId: this.props.model.Id,\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tPdsData: responseData.Item, isLoading: false\r\n\t\t\t\t\t});\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ PdsData: [], isLoading: false });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t});\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tconst model = this.state.dialog.dialogData[index];\r\n\t\tthis.HandleSelectModel(model, index);\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: null })} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\tCloseSelectCallback = () => {\r\n\t\tthis.setState({ isChipDialogOpen: false, isPdsDialogOpen: false });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model } = this.props;\r\n\t\tconst { isLoading, ChipData, PdsData } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t<>\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t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\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nMastercardClearingDetail.propTypes = {\r\n\tinitialModel: PropTypes.any,\r\n\tHandleChange: PropTypes.func,\r\n\tFillCallback: PropTypes.func,\r\n\tLabelMd: PropTypes.number,\r\n\tDisabled: PropTypes.bool,\r\n\tIsDialogOpen: PropTypes.any,\r\n\tclasses: PropTypes.object.isRequired,\r\n};\r\n\r\nexport default withArtifex(MastercardClearingDetail, {});","import React, { Component } from \"react\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport GridContainer from \"components/Grid/GridContainer\";\r\nimport GridItem from \"components/Grid/GridItem\";\r\nimport { Card } from \"@material-ui/core\";\r\nimport CardBody from \"components/Card/CardBody\";\r\nimport {\r\n GenericExpansionPanel,\r\n GenericTextInput,\r\n GenericGrid,\r\n GenericAlert,\r\n} from \"views/Components/Generic\";\r\nimport TabsComponent from \"views/Components/TabsComponent\";\r\nimport { withArtifex } from \"core\";\r\nimport { Proxy } from \"core\";\r\nimport PaymentCard from \"views/VisaDirect/ClientPortal/PaymentCard\";\r\nimport AddNewCustomer from \"views/VisaDirect/ClientPortal/AddNewCustomer\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { TaskPool } from \"core/TaskPool\";\r\nclass VisaDirect extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.getappCenterTitle = \"Empty\";\r\n this.getappLeftTitle = \"Empty\";\r\n this.state = {\r\n ParentTabIndex: 0,\r\n alert: null,\r\n model: {},\r\n vModel: {},\r\n customerModel: {},\r\n list: [],\r\n isLoading: false,\r\n cardModel: {},\r\n cardList: [],\r\n cardTransferType: null,\r\n isPersonal: null,\r\n isCorporate: null,\r\n VerificationStatus: null,\r\n };\r\n this.loadTaskPool = new TaskPool(\r\n this.handleLoadTaskPoolAppend,\r\n this.handleLoadTaskPoolCompleted\r\n );\r\n this.ColumnsCardData = [\r\n {\r\n Header: \"Name Of The Card\",\r\n accessor: \"CardEmbossName\",\r\n },\r\n {\r\n Header: \"Card Id\",\r\n accessor: \"CardId\",\r\n },\r\n {\r\n Header: \"Last Four\",\r\n accessor: \"LastFour\",\r\n },\r\n {\r\n Header: \"Masked Card Number\",\r\n accessor: \"MaskedCardNumber\",\r\n },\r\n {\r\n Header: \"Expiration Month\",\r\n accessor: \"ExpirationMonth\",\r\n },\r\n {\r\n Header: \"Expiration Year\",\r\n accessor: \"ExpirationYear\",\r\n },\r\n {\r\n Header: \"Card Name\",\r\n accessor: \"CardClientCustomer\",\r\n },\r\n ];\r\n\r\n this.ColumnsData = [\r\n {\r\n Header: \"Card Transfer Type\",\r\n accessor: \"CardTransferType\",\r\n },\r\n {\r\n Header: \"Dc Bank Customer Number\",\r\n accessor: \"ClientCustomerNumber\",\r\n },\r\n {\r\n Header: \"Client Customer Number\",\r\n accessor: \"CustomerNumber\",\r\n },\r\n {\r\n Header: \"Customer Name\",\r\n accessor: \"ClientCustomerName\",\r\n },\r\n {\r\n Header: \"Client Type\",\r\n accessor: \"ClientType\",\r\n },\r\n\t\t{\r\n\t\t\tHeader: \"BirthDateValue\",\r\n\t\t\taccessor: \"BirthDateValue\",\r\n\t\t\ttype:GridColumnType.Date,\r\n\t\t },\r\n {\r\n Header: \"Business Name\",\r\n accessor: \"BusinessName\",\r\n },\r\n {\r\n Header: \"Company Legal Name\",\r\n accessor: \"CompanyLegalName\",\r\n },\r\n\r\n {\r\n Header: \"Email\",\r\n accessor: \"EMail\",\r\n },\r\n {\r\n Header: \"Date Of Birth\",\r\n accessor: \"BirthDateValue\",\r\n type: GridColumnType.DateUtc,\r\n },\r\n {\r\n Header: \"Postal Code\",\r\n accessor: \"PostalCode\",\r\n },\r\n {\r\n Header: \"City\",\r\n accessor: \"City\",\r\n },\r\n {\r\n Header: \"Province\",\r\n accessor: \"Province\",\r\n },\r\n {\r\n Header: \"Country\",\r\n accessor: \"Country\",\r\n },\r\n {\r\n Header: \"Address1\",\r\n accessor: \"AddressLine1\",\r\n },\r\n {\r\n Header: \"Address2\",\r\n accessor: \"AddressLine2\",\r\n },\r\n {\r\n Header: \"Phone Number\",\r\n accessor: \"PhoneNumber\",\r\n Cell: (row) => (\r\n
\r\n {row.original.PhoneCountryCode > -1\r\n ? \"+\" +\r\n row.original.PhoneCountryCode +\r\n \" \" +\r\n row.original.PhoneNumber\r\n : \"\"}\r\n
\r\n ),\r\n },\r\n ];\r\n }\r\n\r\n componentDidMount() {\r\n const { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n this.LoadCanadaPost();\r\n if (setAppLeftTitle) {\r\n setAppLeftTitle(\"Add New Customer\");\r\n this.getappLeftTitle = \"Add New Customer\";\r\n }\r\n if (setAppCenterTitle) {\r\n setAppCenterTitle(\"CARD TRANSFER\");\r\n this.getappCenterTitle = \"CARD TRANSFER\";\r\n }\r\n this.setState({ loadingCompleted: true });\r\n }\r\n Validate() {\r\n var ErrorList = [];\r\n var customerModel = this.state.customerModel;\r\n var vModel = this.state.vModel;\r\n\r\n if (this.isCorporate == false) {\r\n if (customerModel.FirstName == null || customerModel.FirstName == \"\") {\r\n vModel.FirstName = true;\r\n ErrorList.push(\"FirstName must be filled\");\r\n } else {\r\n vModel.FirstName = false;\r\n }\r\n if (customerModel.LastName == null || customerModel.LastName == \"\") {\r\n vModel.LastName = true;\r\n ErrorList.push(\"LastName must be filled\");\r\n } else {\r\n vModel.LastName = false;\r\n }\r\n }\r\n\r\n var interval = DateHelper.GetDate().diff(\r\n customerModel.BirthDateValue,\r\n \"years\"\r\n );\r\n if (interval < 18 && customerModel.BirthDateValue != null) {\r\n ErrorList.push(\"Date Of Birth must be bigger than 18 !\");\r\n }\r\n\r\n if (\r\n customerModel.AddressLine1 == null ||\r\n customerModel.AddressLine1 == \"\"\r\n ) {\r\n vModel.AddressLine1 = true;\r\n ErrorList.push(\"AddressLine1 must be filled\");\r\n } else {\r\n vModel.AddressLine1 = false;\r\n }\r\n if (\r\n customerModel.PhoneCountryCode == null ||\r\n customerModel.PhoneCountryCode == \"\"\r\n ) {\r\n vModel.PhoneCountryCode = true;\r\n ErrorList.push(\"PhoneCountryCode must be filled\");\r\n } else {\r\n vModel.PhoneCountryCode = false;\r\n }\r\n if (customerModel.AddressLine1?.length > 40) {\r\n ErrorList.push(\"AddressLine1 length cannot exceed 40 characters\");\r\n }\r\n // if (\r\n // customerModel.PhoneCountryCode == null ||\r\n // customerModel.PhoneCountryCode == \"\"\r\n // ) {\r\n // vModel.PhoneCountryCode = true;\r\n // ErrorList.push(\"PhoneCountryCode must be filled\");\r\n // } else {\r\n // vModel.PhoneCountryCode = false;\r\n // }\r\n\r\n // if (customerModel.PhoneNumber == null || customerModel.PhoneNumber == \"\") {\r\n // vModel.PhoneNumber = true;\r\n // ErrorList.push(\"PhoneNumber must be filled\");\r\n // } else {\r\n // vModel.PhoneNumber = false;\r\n // }\r\n if (\r\n customerModel.AddressLine1 == null ||\r\n customerModel.AddressLine1 == \"\"\r\n ) {\r\n vModel.AddressLine1 = true;\r\n ErrorList.push(\"AddressLine1 must be filled\");\r\n } else {\r\n vModel.AddressLine1 = false;\r\n }\r\n\r\n if (customerModel.AddressLine1?.length > 40) {\r\n ErrorList.push(\"AddressLine1 length cannot exceed 40 characters\");\r\n }\r\n if (customerModel.EMail == null || customerModel.EMail == \"\") {\r\n vModel.EMail = true;\r\n ErrorList.push(\"EMail must be filled\");\r\n } else {\r\n vModel.EMail = false;\r\n }\r\n\r\n // if (customerModel.IdNumber == null || customerModel.IdNumber == \"\") {\r\n // \tvModel.IdNumber = true;\r\n // \tErrorList.push(\"IdNumber must be filled\");\r\n // } else { vModel.IdNumber = false; }\r\n\r\n if (customerModel.EMail?.length > 40) {\r\n ErrorList.push(\"E-mail length cannot exceed 40 characters\");\r\n }\r\n // if (customerModel.PostalCode == null || customerModel.PostalCode == \"\") {\r\n // vModel.PostalCode = true;\r\n // ErrorList.push(\"PostalCode must be filled\");\r\n // } else {\r\n // vModel.PostalCode = false;\r\n // }\r\n\r\n // if (customerModel.PostalCode?.length < 5) {\r\n // ErrorList.push(\"Postal Code length must be 5 or 6 characters\");\r\n // }\r\n if (customerModel.CountryId == null || customerModel.CountryId == \"\") {\r\n vModel.CountryId = true;\r\n ErrorList.push(\"Country must be filled\");\r\n } else {\r\n vModel.CountryId = false;\r\n }\r\n if (customerModel.ProvinceId == null || customerModel.ProvinceId == \"\") {\r\n vModel.ProvinceId = true;\r\n ErrorList.push(\"Province must be filled\");\r\n } else {\r\n vModel.ProvinceId = false;\r\n }\r\n if (customerModel.CityId == null || customerModel.CityId == \"\") {\r\n vModel.CityId = true;\r\n ErrorList.push(\"City must be filled\");\r\n } else {\r\n vModel.CityId = false;\r\n }\r\n if (\r\n customerModel.AddressLine1 == null ||\r\n customerModel.AddressLine1 == \"\" ||\r\n customerModel.AddressLine1 == undefined\r\n ) {\r\n vModel.AddressLine1 = true;\r\n ErrorList.push(\"Address Line 1 must be filled\");\r\n }\r\n if (\r\n customerModel.CardTransferTypeId == null ||\r\n customerModel.CardTransferTypeId == undefined ||\r\n customerModel.CardTransferTypeId == \"\"\r\n ) {\r\n vModel.CardTransferTypeId = true;\r\n ErrorList.push(\"Card Transafer Type must be filled\");\r\n }\r\n if (\r\n customerModel.CountryId == null ||\r\n customerModel.CountryId == undefined ||\r\n customerModel.CountryId == \"\"\r\n ) {\r\n vModel.CountryId = true;\r\n ErrorList.push(\"Country must be filled\");\r\n }\r\n if (\r\n customerModel.CityId == null ||\r\n customerModel.CityId == undefined ||\r\n customerModel.CityId == \"\"\r\n ) {\r\n vModel.CityId = true;\r\n ErrorList.push(\"City must be filled\");\r\n }\r\n\r\n if (ErrorList.length > 0) {\r\n this.props.showMessageNode(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n ErrorList.slice(0, 10).map((x, i) =>
{x}
)\r\n );\r\n return false;\r\n }\r\n\r\n return true;\r\n }\r\n\r\n ValidateCard = () => {\r\n var ErrorList = [];\r\n var customerModel = this.state.customerModel;\r\n var cardModel = this.state.cardModel;\r\n var vModel = this.state.vModel;\r\n\r\n if (\r\n customerModel.CustomerNumber == null ||\r\n customerModel.CustomerNumber == \"\"\r\n ) {\r\n ErrorList.push(\"Which Customer belongs to the card is not selected\");\r\n }\r\n if (cardModel.CardEmbossName == null || cardModel.CardEmbossName == \"\") {\r\n vModel.CardEmbossName = true;\r\n ErrorList.push(\"NameOnTheCard must be filled\");\r\n } else {\r\n vModel.CardEmbossName = false;\r\n }\r\n\r\n if (cardModel.CardTokenNumber == null || cardModel.CardTokenNumber == \"\") {\r\n vModel.CardTokenNumber = true;\r\n ErrorList.push(\"CardNumber must be filled\");\r\n } else {\r\n vModel.CardTokenNumber = false;\r\n }\r\n\r\n if (cardModel.CurrencyCode == null || cardModel.CurrencyCode == \"\") {\r\n vModel.CurrencyCode = true;\r\n ErrorList.push(\"CurrencyCode must be filled\");\r\n } else {\r\n vModel.CurrencyCode = false;\r\n }\r\n\r\n if (cardModel.ExpirationMonth == null || cardModel.ExpirationMonth == \"\") {\r\n vModel.ExpirationMonth = true;\r\n ErrorList.push(\"ExpirationMonth must be filled\");\r\n } else {\r\n vModel.ExpirationMonth = false;\r\n }\r\n\r\n if (cardModel.ExpirationYear == null || cardModel.ExpirationYear == \"\") {\r\n vModel.ExpirationYear = true;\r\n ErrorList.push(\"ExpirationYear must be filled\");\r\n } else {\r\n vModel.ExpirationYear = false;\r\n }\r\n\r\n if (cardModel.SecurityCode == null || cardModel.SecurityCode == \"\") {\r\n vModel.SecurityCode = true;\r\n ErrorList.push(\"Security Code must be filled\");\r\n } else {\r\n vModel.SecurityCode = false;\r\n }\r\n\r\n if (\r\n (cardModel.BankCode == null || cardModel.BankCode == \"\") &&\r\n this.state.cardTransferType == \"Mastercard Send\"\r\n ) {\r\n vModel.BankCode = true;\r\n ErrorList.push(\"Bank Code must be filled\");\r\n } else {\r\n vModel.BankCode = false;\r\n }\r\n\r\n if (ErrorList.length > 0) {\r\n this.props.showMessageNode(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n ErrorList.slice(0, 10).map((x, i) =>
{x}
)\r\n );\r\n return false;\r\n }\r\n\r\n return true;\r\n };\r\n\r\n handlePaginationData = (data) => {\r\n this.setState({ list: data });\r\n };\r\n\r\n ShowConfirmMessage = (type, title, message, onConfirm, showCancel = true) => {\r\n this.setState({\r\n alert: (\r\n this.setState({ alert: null })}\r\n OnConfirm={onConfirm}\r\n />\r\n ),\r\n });\r\n };\r\n DeleteCustomer = (model) => {\r\n this.ShowConfirmMessage(\r\n \"warning\",\r\n \"Warning\",\r\n \"Are you sure you want to delete to customer?\",\r\n () => {\r\n this.setState({ alert: null, isLoading: true });\r\n Proxy.POST(\r\n \"/coreapi/v1.0//SaveBlackListToken\",\r\n this.state.model,\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n if (!responseData.IsSucceeded) {\r\n this.props.showMessage(\r\n \"error\",\r\n responseData.Code,\r\n responseData.ErrorDescription\r\n );\r\n return;\r\n }\r\n if (responseData.Item) {\r\n this.props.showMessage(\"success\", \"Success\", \"Success\");\r\n } else {\r\n this.props.showMessage(\r\n \"error\",\r\n \"Error\",\r\n \"There was an error adding to the blacklist\"\r\n );\r\n }\r\n }\r\n );\r\n }\r\n );\r\n };\r\n\r\n InsertCustomer = async () => {\r\n if (!this.Validate()) {\r\n return;\r\n }\r\n const customerModel = this.state.customerModel;\r\n this.setState({ isLoading: true });\r\n Proxy.POST(\r\n this.state.cardTransferType == \"Visa Direct\"\r\n ? \"/bankapi/v1.0/VisaDirect/CreateCustomer\"\r\n : \"/bankapi/v1.0/MastercardXBorder/CreateCustomer\",\r\n {\r\n CardTransferTypeId: customerModel.CardTransferTypeId,\r\n ClientTypeId: customerModel.ClientTypeId,\r\n FirstName: customerModel.FirstName,\r\n CustomerNumber: customerModel.CustomerNumber,\r\n MiddleName: customerModel.MiddleName,\r\n LastName: customerModel.LastName,\r\n BirthDateValue: customerModel.BirthDateValue,\r\n IdType: customerModel.IdType,\r\n IdNumber: customerModel.IdNumber,\r\n IdExpireDateValue: customerModel.IdExpireDateValue,\r\n PhoneCountryCode: customerModel.PhoneCountryCode,\r\n PhoneNumber: customerModel.PhoneNumber,\r\n EMail: customerModel.EMail,\r\n AddressLine1: customerModel.AddressLine1,\r\n AddressLine2: customerModel.AddressLine2,\r\n PostalCode: customerModel.PostalCode,\r\n CountryId: customerModel.CountryId,\r\n ProvinceId: customerModel.ProvinceId,\r\n CityId: customerModel.CityId,\r\n BusinessName: customerModel.BusinessName,\r\n CompanyLegalName: customerModel.CompanyLegalName\r\n },\r\n (responseData) => {\r\n if (responseData == null) {\r\n this.props.showMessage(\"error\", \"Error\", \"An error occurred!S\");\r\n return;\r\n }\r\n\t\t console.log(responseData);\r\n this.GetVerfy(responseData.Item[\"CustomerId\"]);\r\n },\r\n (error) => {\r\n this.props.showMessage(\"error\", \"Error\", \"An error occurred!\");\r\n this.SearchCustomer();\r\n }\r\n );\r\n };\r\n\r\n GetVerfy = (customerId) => {\r\n const customerModel = { ...this.state.customerModel };\r\n Proxy.POST(\r\n \"/amlkycapi/v1.0/FinScanSearchLog/CustomerWatchListCheck\",\r\n\t\t{\"ClientCustomerId\": customerId}\r\n ,\r\n (responseData) => {\r\n this.setState({ isLoading: false });\r\n if (responseData == null) {\r\n this.props.showMessage(\"error\", \"Error\", \"An error occurred!S\");\r\n return;\r\n }\r\n this.props.showMessage(\r\n \"success\",\r\n \"success\",\r\n \"Customer Has Been Created Successfully\"\r\n );\r\n customerModel[\"WatchListVerificationResult\"] =\r\n responseData.Item[\"WatchListStatusDescription\"];\r\n this.setState({ customerModel });\r\n },\r\n (error) => {\r\n this.props.showMessage(\"error\", \"Error\", \"An error occurred!\");\r\n this.SearchCustomer();\r\n }\r\n );\r\n };\r\n\r\n UpdateCustomer = async () => {\r\n if (!this.Validate()) {\r\n return;\r\n }\r\n var customerModel = this.state.customerModel;\r\n const { ExecuteApiPost } = this.props;\r\n var result = await ExecuteApiPost(\r\n this.state.cardTransferType == \"Visa Direct\"\r\n ? \"/bankapi/v1.0/VisaDirect/UpdateCustomer\"\r\n : \"/bankapi/v1.0/MastercardXBorder/UpdateCustomer\",\r\n {\r\n FirstName: customerModel.FirstName,\r\n CustomerNumber: customerModel.CustomerNumber,\r\n MiddleName: customerModel.MiddleName,\r\n LastName: customerModel.LastName,\r\n BirthDateValue: customerModel.BirthDateValue,\r\n IdType: customerModel.IdType,\r\n IdNumber: customerModel.IdNumber,\r\n IdExpireDateValue: customerModel.IdExpireDateValue,\r\n PhoneCountryCode: customerModel.PhoneCountryCode,\r\n PhoneNumber: customerModel.PhoneNumber,\r\n EMail: customerModel.EMail,\r\n AddressLine1: customerModel.AddressLine1,\r\n AddressLine2: customerModel.AddressLine2,\r\n PostalCode: customerModel.PostalCode,\r\n CountryId: customerModel.CountryId,\r\n ProvinceId: customerModel.ProvinceId,\r\n CityId: customerModel.CityId,\r\n CardTransferTypeId: customerModel.CardTransferTypeId,\r\n BusinessName: customerModel.BusinessName,\r\n CompanyLegalName: customerModel.CompanyLegalName,\r\n ClientTypeId: customerModel.ClientTypeId,\r\n WatchListVerificationResult: customerModel.WatchListVerificationResult,\r\n },\r\n );\r\n if (result != null) {\r\n this.Clear();\r\n this.SearchCustomer();\r\n }\r\n };\r\n\r\n SearchCustomer = async () => {\r\n this.setState((state) => ({ trxGridToken: !state.trxGridToken }));\r\n };\r\n HandleChangeCard = (name, newValue, data) => {\r\n const cardModel = { ...this.state.cardModel };\r\n cardModel[name] = newValue;\r\n\r\n this.setState({ cardModel });\r\n };\r\n\r\n SelectedCardRowChange = (e, index) => {\r\n const model = this.state.cardList[index];\r\n this.setState({ cardModel: model });\r\n };\r\n InsertCard = async () => {\r\n if (!this.ValidateCard()) {\r\n return;\r\n }\r\n var customerModel = this.state.customerModel;\r\n var cardModel = this.state.cardModel;\r\n const { ExecuteApiPost } = this.props;\r\n var result = await ExecuteApiPost(\r\n this.state.cardTransferType == \"Visa Direct\"\r\n ? \"/bankapi/v1.0/VisaDirect/AddPaymentInstrument\"\r\n : \"/bankapi/v1.0/MastercardXBorder/AddPaymentMethod\",\r\n {\r\n CustomerNumber: customerModel.CustomerNumber,\r\n EncryptedPan: cardModel.CardTokenNumber,\r\n Name: cardModel.CardEmbossName,\r\n ExpirationMonth: cardModel.ExpirationMonth,\r\n ExpirationYear: cardModel.ExpirationYear,\r\n EncryptedVerificationCode: cardModel.SecurityCode,\r\n CurrenyId: cardModel.CurrencyCode,\r\n CardTransferTypeId: customerModel.CardTransferTypeId,\r\n }\r\n );\r\n if (result != null) {\r\n this.props.showMessage(\r\n \"success\",\r\n \"success\",\r\n \"Payment Card Has Been Created Successfully\"\r\n );\r\n this.ClearCard();\r\n this.GetCard(customerModel.Id);\r\n }\r\n };\r\n UpdateCard = async () => {\r\n if (!this.ValidateCard()) {\r\n return;\r\n }\r\n var customerModel = this.state.customerModel;\r\n var cardModel = this.state.cardModel;\r\n const { ExecuteApiPost } = this.props;\r\n var result = await ExecuteApiPost(\r\n this.state.cardTransferType == \"Visa Direct\"\r\n ? \"/bankapi/v1.0/VisaDirect/UpdatePaymentInstrument\"\r\n : \"/bankapi/v1.0/MastercardXBorder/UpdatePaymentMethod\",\r\n {\r\n CustomerId: customerModel.Id,\r\n CustomerNumber: customerModel.CustomerNumber,\r\n EncryptedPan: cardModel.CardTokenNumber,\r\n Name: cardModel.CardEmbossName,\r\n ExpirationMonth: cardModel.ExpirationMonth,\r\n ExpirationYear: cardModel.ExpirationYear,\r\n EncryptedVerificationCode: cardModel.SecurityCode,\r\n CurrenyId: cardModel.CurrencyCode,\r\n }\r\n );\r\n if (result != null) {\r\n this.props.showMessage(\r\n \"success\",\r\n \"success\",\r\n \"Payment Card Has Been Updated Successfully\"\r\n );\r\n this.ClearCard();\r\n this.GetCard(customerModel.Id);\r\n }\r\n };\r\n\r\n GetCard = async (CustomerId) => {\r\n var CustomerId = parseInt(CustomerId);\r\n const { ExecuteApiPost } = this.props;\r\n var result = await ExecuteApiPost(\r\n \"/bankapi/v1.0/VisaDirect/GetCustomerCard\",\r\n {\r\n CustomerId: CustomerId,\r\n }\r\n );\r\n\r\n if (result != null) {\r\n this.setState({ cardList: result || [] });\r\n }\r\n };\r\n\r\n Clear = () => {\r\n this.setState({\r\n customerModel: {},\r\n model: {},\r\n list: [],\r\n cardModel: {},\r\n vModel: {},\r\n cardList: [],\r\n });\r\n };\r\n\r\n ClearCustomer = () => {\r\n this.setState({ customerModel: {} });\r\n };\r\n\r\n ClearCard = () => {\r\n this.setState({ cardModel: {} });\r\n };\r\n\r\n SelectedRowChange = (e, index) => {\r\n const customerModel = this.state.list[index];\r\n if (customerModel.ClientType == \"Corporate\") {\r\n customerModel[\"FirstName\"] = null;\r\n customerModel[\"LastName\"] = null;\r\n customerModel[\"MiddleName\"] = null;\r\n\t\tcustomerModel[\"BirthDateValue\"] = null;\r\n this.setState({ isCorporate: true });\r\n }\r\n\r\n if (customerModel.ClientType == \"Individual\") {\r\n customerModel[\"CompanyLegalName\"] = null;\r\n customerModel[\"BusinessName\"] = null;\r\n this.setState({ isCorporate: false });\r\n }\r\n this.setState({ customerModel: customerModel });\r\n this.setState({ cardTransferType: customerModel.CardTransferType });\r\n this.setState({ ClientType: customerModel.ClientTypeId });\r\n this.GetCard(customerModel.Id);\r\n };\r\n\r\n HandleChange = (name, newValue, data) => {\r\n const model = { ...this.state.model };\r\n model[name] = newValue;\r\n this.setState({ model });\r\n };\r\n\r\n RegExpression = (value) => {\r\n var reg = new RegExp(\"^[a-zA-Z0-9]*\");\r\n if (reg.test(value)) {\r\n return true;\r\n }\r\n return false;\r\n };\r\n\r\n handleLoadTaskPoolAppend = () => {\r\n this.setState({ isLoading: true });\r\n };\r\n\r\n handleLoadTaskPoolCompleted = () => {\r\n this.setState({ isLoading: false });\r\n };\r\n\r\n HandleChangeCustomer = (name, newValue, data) => {\r\n const customerModel = { ...this.state.customerModel };\r\n customerModel[name] = newValue;\r\n\r\n if (name === \"CardTransferTypeId\") {\r\n this.Clear();\r\n customerModel[name] = newValue;\r\n customerModel[\"FirstName\"] = null;\r\n customerModel[\"LastName\"] = null;\r\n customerModel[\"MiddleName\"] = null;\r\n customerModel[\"CompanyLegalName\"] = null;\r\n customerModel[\"BusinessName\"] = null;\r\n this.setState({ cardTransferType: data.ParameterDesc });\r\n }\r\n if (name === \"ClientTypeId\" && data.ParameterDesc == \"Corporate\") {\r\n customerModel[\"FirstName\"] = null;\r\n customerModel[\"LastName\"] = null;\r\n customerModel[\"MiddleName\"] = null;\r\n this.setState({ isCorporate: true });\r\n }\r\n\r\n if (name === \"ClientTypeId\" && data.ParameterDesc == \"Individual\") {\r\n customerModel[\"CompanyLegalName\"] = null;\r\n customerModel[\"BusinessName\"] = null;\r\n this.setState({ isCorporate: false });\r\n }\r\n this.setState({ customerModel });\r\n };\r\n LoadCanadaPost() {\r\n var parent = this;\r\n this.loadTaskPool.AppendTask(\r\n Proxy.POST(\r\n \"/coreapi/v1.0/Parameter/Search\",\r\n {\r\n ParameterCode: \"CanadaPostApiKey\",\r\n ParameterValue: \"CP\",\r\n },\r\n (responseData) => {\r\n if (!responseData.IsSucceeded) {\r\n console.log(\"Canada Post Api key not fetched !\");\r\n return;\r\n }\r\n if (responseData.Item == null) {\r\n console.log(\"Canada Post Api key not fetched !\");\r\n return;\r\n }\r\n if (responseData.Item[0] == null) {\r\n console.log(\"Canada Post Api key not fetched !\");\r\n return;\r\n }\r\n var apikey = responseData.Item[0].ParameterDesc;\r\n\r\n // @ts-ignore\r\n var url = window.CanadaPostAddressCompleteUrl;\r\n var path = url + apikey;\r\n\r\n var pca;\r\n var CanadaPostRequest = this.SubmitCanadaPostRequest;\r\n var CanadaPostSubmit = this.SubmitCanadaPostAddressModel;\r\n const script = document.createElement(\"script\");\r\n script.src = path;\r\n script.async = false;\r\n document.head.appendChild(script);\r\n script.onload = function () {\r\n // @ts-ignore\r\n pca = window.pca;\r\n if (pca != null) {\r\n var fields = [\r\n {\r\n element: \"street-address\",\r\n field: \"Line1\",\r\n mode: pca.fieldMode.SEARCH,\r\n },\r\n {\r\n element: \"street-address2\",\r\n field: \"Line2\",\r\n mode: pca.fieldMode.POPULATE,\r\n },\r\n {\r\n element: \"postcode\",\r\n field: \"PostalCode\",\r\n mode: pca.fieldMode.SEARCH,\r\n },\r\n ],\r\n options = {\r\n key: apikey,\r\n },\r\n control = new pca.Address(fields, options);\r\n CanadaPostRequest();\r\n\r\n control.listen(\"populate\", function (address) {\r\n CanadaPostSubmit(address);\r\n parent.setState((state) => {\r\n state.customerModel.AddressLine1 = address.Line1;\r\n state.customerModel.AddressLine2 = address.Line2;\r\n state.customerModel.PostalCode = address.PostalCode;\r\n return state;\r\n });\r\n });\r\n }\r\n };\r\n },\r\n (e) => {\r\n console.log(\"Canada Post Api key not fetched !\");\r\n }\r\n )\r\n );\r\n }\r\n\r\n SubmitCanadaPostAddressModel = (model) => {\r\n this.loadTaskPool.AppendTask(\r\n Proxy.POST(\r\n \"/coreapi/v1.0/Country/CanadaPost\",\r\n model,\r\n (responseData) => {\r\n if (!responseData.IsSucceeded) {\r\n this.props.showMessage(\r\n \"error\",\r\n \"Error\",\r\n responseData.ErrorDescription\r\n );\r\n return;\r\n }\r\n var address = {\r\n ...this.state.customerModel,\r\n };\r\n if (responseData.Item != null) {\r\n address.CountryId = responseData.Item.CountryId;\r\n address.ProvinceId = responseData.Item.ProvinceId;\r\n address.CityId = responseData.Item.CityId;\r\n } else {\r\n address.CountryId = 0;\r\n address.ProvinceId = 0;\r\n address.CityId = 0;\r\n }\r\n this.setState({ customerModel: address });\r\n },\r\n (error) => {\r\n this.props.showMessage(\"error\", \"Error\", error);\r\n }\r\n )\r\n );\r\n };\r\n\r\n SubmitCanadaPostRequest = async () => {\r\n const model = { ...this.state.customerModel };\r\n var requestdata = {\r\n UniqueClientId: null,\r\n MenuCode: this.props.Menucode,\r\n AppCenterTitle: this.getappCenterTitle,\r\n AppLeftTitle: this.getappLeftTitle,\r\n };\r\n Proxy.POST(\r\n \"/bankapi/v1.0/Reporting/CanadaPostRequestReportInsert\",\r\n requestdata,\r\n (responseData) => {\r\n if (responseData.Item != null) {\r\n }\r\n }\r\n );\r\n };\r\n\r\n handleChangeParentTab(tab) {}\r\n\r\n render() {\r\n const { model, alert, isLoading } = this.state;\r\n return (\r\n \r\n {alert}\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n
\r\n \r\n \r\n ),\r\n Hidden: false,\r\n },\r\n this.state.cardTransferType == \"Visa Direct\" && {\r\n tabButton: \"Payment Card\",\r\n tabContent: (\r\n \r\n ),\r\n Hidden: false,\r\n },\r\n ]}\r\n />\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {\r\n return model;\r\n }}\r\n PageSize={10}\r\n ShowPagination={true}\r\n LoadAtStartup={this.state.loadingCompleted}\r\n Columns={this.ColumnsData}\r\n SelectedIndex={this.state.rowIndex}\r\n IsSorted={false}\r\n RowSelected={(index) => {\r\n this.SelectedRowChange(0, index);\r\n }}\r\n PaginationFetchDataCallback={\r\n this.handlePaginationData\r\n }\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n );\r\n }\r\n}\r\n\r\nexport default withArtifex(VisaDirect, {});\r\n","import React, { Component } from \"react\";\r\nimport { withArtifex } from \"core\";\r\nimport GridItem from \"components/Grid/GridItem\";\r\nimport { Card } from \"@material-ui/core\";\r\nimport CardBody from \"components/Card/CardBody\";\r\nimport { GenericTextInput, GenericNumberInput, GenericSelectInput } from \"views/Components/Generic\";\r\nimport GridContainer from \"components/Grid/GridContainer\";\r\nimport Button from \"components/CustomButtons/Button\";\r\n\r\nclass VisaDirectThirdPartyAddNewCustomer extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {};\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { vModel, customerModel, appSettings } = this.props; //Bunlar yollanacak\r\n\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t `+${d.Code} (${d.Name})`}\r\n\t\t\t\t\t\t\t\tRequired\r\n\r\n\t\t\t\t\t\t\t\tValue={customerModel.CountryId || \"\"}\r\n\t\t\t\t\t\t\t\tValueChanged={this.HandleChangeCustomerModel}\r\n\t\t\t\t\t\t\t\tDisabled={!appSettings.IsModifyAllowed}\r\n\t\t\t\t\t\t\t\tIsInvalid={vModel.CountryId}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nexport default withArtifex(VisaDirectThirdPartyAddNewCustomer, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport React, { Component } from 'react';\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ButtonToolbar from 'views/Components/ButtonToolbar';\r\nimport { GenericDateInput, GenericExpansionPanel, GenericRadioInput, GenericTextInput, GenericGrid, GenericDialog, GenericSelectInput, GenericAlert, GenericDialogActions, GenericLabel, GenericTitle, GenericNumberInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from 'views/Components/LoadingComponent';\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Select from \"react-select\";\r\n\r\nclass VisaDirectTransactionSearch extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props)\r\n\t\tthis.isBackOffice = ClientHelper.IsBackOffice();\r\n\t\tthis.sortParamDesc = { Member: \"ParameterDesc\" };\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tFromDate: DateHelper.GetDate(),\r\n\t\t\t\tToDate: DateHelper.GetDate()\r\n\t\t\t},\r\n\t\t\tgetDataList: [],\r\n\t\t\tisLoading: false,\r\n\t\t};\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Status\",\r\n\t\t\t\taccessor: \"TransactionState\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Settlement Date\",\r\n\t\t\t\taccessor: \"SettlementDate\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t// {\r\n\t\t\t// \tHeader: \"End Date\",\r\n\t\t\t// \taccessor: \"EodDate\",\r\n\t\t\t// \ttype: GridColumnType.DateUtc\r\n\t\t\t// },\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Name\",\r\n\t\t\t\taccessor: \"ClientCustomerName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Middle Name\",\r\n\t\t\t\taccessor: \"MiddleName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Last Name\",\r\n\t\t\t\taccessor: \"SurName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Type\",\r\n\t\t\t\taccessor: \"TransactionType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Currency\",\r\n\t\t\t\taccessor: \"Currency\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"TransactionAmount\",\r\n\t\t\t\ttype: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Buying Rate Of Exchange Amount\",\r\n\t\t\t\taccessor: \"BuyingRateOfExchangeAmount\",\r\n\t\t\t\ttype: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Conversion Amount\",\r\n\t\t\t\taccessor: \"ConversionAmount\",\r\n\t\t\t\ttype: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Last 4\",\r\n\t\t\t\taccessor: \"LastFour\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Customer Number\",\r\n\t\t\t\taccessor: \"ClientCustomerNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Description\",\r\n\t\t\t\taccessor: \"Description\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"TransactionReferenceNumber\",\r\n\t\t\t\taccessor: \"TransactionReferenceNumber\"\r\n\t\t\t},\r\n\t\t\t// {\r\n\t\t\t// \tHeader: \"Transaction Balance\",\r\n\t\t\t// \taccessor: \"TransactionBalance\",\r\n\t\t\t// \ttype: GridColumnType.Money\r\n\t\t\t// },\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reference Number\",\r\n\t\t\t\taccessor: \"ReferenceNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Application\",\r\n\t\t\t\taccessor: \"Application\"\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Destination\",\r\n\t\t\t\taccessor: \"Destination\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Ready To Settle At\",\r\n\t\t\t\taccessor: \"ReadyToSettleAt\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Created At\",\r\n\t\t\t\taccessor: \"CreatedAt\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Updated At\",\r\n\t\t\t\taccessor: \"UpdatedAt\",\r\n\t\t\t\ttype: GridColumnType.DateUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Finix Transaction ID\",\r\n\t\t\t\taccessor: \"TransactionResponseId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Merchant Identity\",\r\n\t\t\t\taccessor: \"MerchantIdentity\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Unique Client Id\",\r\n\t\t\t\taccessor: \"ClientUniqueClientId\",\r\n\t\t\t\tshow: this.isBackOffice\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Unique Client Name\",\r\n\t\t\t\taccessor: \"UniqueClientName\",\r\n\t\t\t\tshow: this.isBackOffice\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Email\",\r\n\t\t\t\taccessor: \"Email\"\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Source\",\r\n\t\t\t\taccessor: \"TransactionSource\"\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Number\",\r\n\t\t\t\taccessor: \"AccountNumber\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Name\",\r\n\t\t\t\taccessor: \"AccountName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"AccountOwnerName\",\r\n\t\t\t\taccessor: \"AccountOwnerName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Direction\",\r\n\t\t\t\taccessor: \"Direction\",\r\n\t\t\t},\r\n\t\t\t// {\r\n\t\t\t// \tHeader: \"Transaction Code\",\r\n\t\t\t// \taccessor: \"TransactionCode\",\r\n\t\t\t// },\r\n\r\n\t\t\t// {\r\n\t\t\t// \tHeader: \"Provision Response Id\",\r\n\t\t\t// \taccessor: \"ProvisionResponseId\",\r\n\t\t\t// },\r\n\t\t\t// {\r\n\t\t\t// \tHeader: \"Processor\",\r\n\t\t\t// \taccessor: \"Processor\",\r\n\t\t\t// },\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Payment Instrument Id\",\r\n\t\t\t\taccessor: \"TransactionPaymentInstrumentId\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Trace Id\",\r\n\t\t\t\taccessor: \"TraceId\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Bin Number\",\r\n\t\t\t\taccessor: \"Bin\",\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Brand\",\r\n\t\t\t\taccessor: \"Brand\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Emboss Name\",\r\n\t\t\t\taccessor: \"CardEmbossName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Id\",\r\n\t\t\t\taccessor: \"CardId\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Adjustment Record\",\r\n\t\t\t\taccessor: \"IsAdjustmentRecord\",\r\n\t\t\t\tCell: row => (\r\n\r\n\t\t\t\t\t
{row.value == true ? \"Yes\" : row.value == false ? \"No\" : \"-\"}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Edit Table\",\r\n\t\t\t\taccessor: \"IsEditable\",\r\n\t\t\t\tCell: row => (\r\n\r\n\t\t\t\t\t
{row.value == true ? \"Yes\" : row.value == false ? \"No\" : \"-\"}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Recurring\",\r\n\t\t\t\taccessor: \"IsRecurring\",\r\n\t\t\t\tCell: row => (\r\n\r\n\t\t\t\t\t
{row.value == true ? \"Yes\" : row.value == false ? \"No\" : \"-\"}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Deferred\",\r\n\t\t\t\taccessor: \"IsDeferred\",\r\n\t\t\t\tCell: row => (\r\n\r\n\t\t\t\t\t
{row.value == true ? \"Yes\" : row.value == false ? \"No\" : \"-\"}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Settled\",\r\n\t\t\t\taccessor: \"IsSettled\",\r\n\t\t\t\tCell: row => (\r\n\r\n\t\t\t\t\t
{row.value == true ? \"Yes\" : row.value == false ? \"No\" : \"-\"}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Free Charge\",\r\n\t\t\t\taccessor: \"IsFreeCharge\",\r\n\t\t\t\tCell: row => (\r\n\r\n\t\t\t\t\t
{row.value == true ? \"Yes\" : row.value == false ? \"No\" : \"-\"}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Card Transaction\",\r\n\t\t\t\taccessor: \"IsCardTransaction\",\r\n\t\t\t\tCell: row => (\r\n\r\n\t\t\t\t\t
{row.value == true ? \"Yes\" : row.value == false ? \"No\" : \"-\"}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t// {\r\n\t\t\t// \tHeader: \"Application Id\",\r\n\t\t\t// \taccessor: \"ApplicationId\"\r\n\t\t\t// },\r\n\t\t\t// {\r\n\t\t\t// \tHeader: \"Adjusment Type\",\r\n\t\t\t// \taccessor: \"AdjusmentType\"\r\n\t\t\t// },\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Reference Number\",\r\n\t\t\t\taccessor: \"ClientReferenceNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Fee Amount\",\r\n\t\t\t\taccessor: \"FeeAmount\",\r\n\t\t\t\ttype: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Unique Operation Code\",\r\n\t\t\t\taccessor: \"UniqueOperationCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Edit Count\",\r\n\t\t\t\taccessor: \"EditCount\"\r\n\t\t\t},\r\n\t\t\t// {\r\n\t\t\t// \tHeader: \"File Name\",\r\n\t\t\t// \taccessor: \"FileName\"\r\n\t\t\t// },\r\n\t\t\t// {\r\n\t\t\t// \tHeader: \"Store Name\",\r\n\t\t\t// \taccessor: \"StoreName\"\r\n\t\t\t// },\r\n\t\t\t// {\r\n\t\t\t// \tHeader: \"Identity Type\",\r\n\t\t\t// \taccessor: \"IdentityType\"\r\n\t\t\t// },\r\n\t\t\t// {\r\n\t\t\t// \tHeader: \"Identity Number\",\r\n\t\t\t// \taccessor: \"IdentityNumber\"\r\n\t\t\t// },\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Registred\",\r\n\t\t\t\taccessor: \"ClientRegistredId\"\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Expiration Year\",\r\n\t\t\t\taccessor: \"ExpirationYear\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Expiration Moth\",\r\n\t\t\t\taccessor: \"ExpirationMonth\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Token Number\",\r\n\t\t\t\taccessor: \"CardTokenNumber\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Masked Card Number\",\r\n\t\t\t\taccessor: \"MaskedCardNumber\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Payment Instrument\",\r\n\t\t\t\taccessor: \"PaymentInstrumentId\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Issuer Country\",\r\n\t\t\t\taccessor: \"IssuerCountry\",\r\n\t\t\t}\r\n\t\t];\r\n\t\tthis.trxTable = React.createRef();\r\n\r\n\t\tthis.emptyObject = {};\r\n\t\tthis.sortedCustomerName = { Member: \"Name\" };\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Transaction Search\");\r\n\t\t}\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"CARD TRANSFER\");\r\n\t\t}\r\n\t\tthis.setState({ loadingCompleted: true });\r\n\t}\r\n\r\n\thandleSearch = async () => {\r\n\t\tthis.setState(state => ({ trxGridToken: !state.trxGridToken }));\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar model = { ...this.state.model };\r\n\t\tvar responseData = await ExecuteApiPost(\"/bankapi/v1.0/VisaDirect/VisaDirectTransactionSearch\", model, null, null, null, null, null);\r\n\t\tif (responseData != null) {\r\n\t\t\tthis.setState({\r\n\t\t\t\tgetDataList: responseData.length < 1 ? [] : responseData, isLoading: false\r\n\t\t\t});\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.setState({ isLoading: false });\r\n\t\t}\r\n\t}\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\tValueChangedForExport = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\thandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: {\r\n\t\t\t\tFromDate: DateHelper.GetDate(), ToDate: DateHelper.GetDate(),\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.accessor != \"Actions\" && c.accessor != \"ED\" && (c.show == undefined || c.show)) {\r\n\t\t\t\ttrxColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\t\tconsole.log(\"deneme\");\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: trxColumns, ExportSelectedColumns: trxColumns });\r\n\t}\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tthis.props.showConfirmMessage(\"question\", \"Long Process Warning\", \"This process may take a while. Continue ?\", () => {\r\n\t\t\tthis.hideAlert();\r\n\t\t\tconst { model } = this.state;\r\n\t\t\tmodel.IsClientBalanceScreen = true;\r\n\r\n\t\t\t// Add jsonFile\r\n\t\t\tvar jsonColList = [];\r\n\r\n\t\t\tvar trxColumns = {};\r\n\t\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\t\ttrxColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t\t});\r\n\t\t\tjsonColList.push(trxColumns);\r\n\r\n\t\t\tmodel[\"jsonFile\"] = {\r\n\t\t\t\tcolmns: jsonColList,\r\n\t\t\t\tformat: this.state.ExportReportType,\r\n\t\t\t\ttitle: \"Visa Direct Transaction Search\"\r\n\t\t\t};\r\n\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\t\"/bankapi/v1.0/VisaDirect/VisaDirectTransactionSearchReportExportDownload\",\r\n\t\t\t\tmodel,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terrorMessage => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t\t},\r\n\t\t\t\tthis.props.showMessage\r\n\t\t\t);\r\n\t\t});\r\n\t}\r\n\r\n\topenExportDialog = () => {\r\n\t\tthis.setState({\r\n\t\t\tisDownloadDialogOpen: true,\r\n\t\t});\r\n\t};\r\n\r\n\tcloseExportDialog = () => {\r\n\t\tthis.setState({\r\n\t\t\tisDownloadDialogOpen: false,\r\n\t\t});\r\n\t};\r\n\r\n\trender() {\r\n\t\tconst { Disabled, classes } = this.props;\r\n\t\tconst { model, isLoading, getDataList } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\t\t\t\t this.ExportClick(), Disabled: Disabled }\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t{ClientHelper.IsBackOffice() &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t< GenericSelectInput\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tName=\"UniqueClientId\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tLabelText=\"Client\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tUrl=\"/bankapi/v1.0/BankCustomer/Search\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tMethod=\"POST\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tParameter={this.emptyObject}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"Id\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tTextValueMember=\"Name\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tSorted={this.sortedCustomerName}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange} />}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{/* */}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\t\t\tname=\"Columns\"\r\n\t\t\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t

Transaction List

\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t { return model; }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tref = {this.trxTable}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tPageSize={10}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tShowPagination={true}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tLoadAtStartup={this.state.loadingCompleted}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tData={getDataList}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tColumns={this.Columns}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\t\t\t
\r\n\t\t)\r\n\t}\r\n}\r\n\r\nexport default withArtifex(VisaDirectTransactionSearch, {});","import GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { withArtifex } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant.js\";\r\nimport City from \"views/WireTransfer/Address/City\";\r\nimport Country from \"views/WireTransfer/Address/Country\";\r\nimport Province from \"views/WireTransfer/Address/Province\";\r\n\r\nclass CityReport extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tProvinceId: null,\r\n\t\t\tCountryId: null,\r\n\t\t\tCityId: null\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tvModel: {},\r\n\t\t\tlist: [],\r\n\t\t\tisEdit: false,\r\n\t\t\tisLoading: false,\r\n\t\t\tindex: -1\r\n\t\t};\r\n\r\n\t\tthis.emptyObject = {};\r\n\t\tthis.renderItemUniqueClient = {};\r\n\t\tthis.maxLength40 = { maxLength: 40 };\r\n\t\tthis.maxLength25 = { maxLength: 25 };\r\n\t\tthis.maxLength3 = { maxLength: 3 };\r\n\t\tthis.maxLength128 = { maxLength: 128 };\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Country\",\r\n\t\t\t\taccessor: \"Country.Name\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Province\",\r\n\t\t\t\taccessor: \"Province.Name\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"City\",\r\n\t\t\t\taccessor: \"Name\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t}\r\n\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppCenterTitle(\"WIRE TRANSFER\");\r\n\t\tthis.props.setAppLeftTitle(\"City Report\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, isEdit: false, index: -1 });\r\n\t}\r\n\r\n\tHandleSearch = async () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/bankapi/v1.0/WireCity/Search\", this.state.model);\r\n\t\tthis.setState({ isLoading: false });\r\n\r\n\t\tif (result != null) {\r\n\t\t\tthis.setState({ list: result || [] });\r\n\t\t}\r\n\t}\r\n\r\n\tHandleSubmit = async () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/bankapi/v1.0/WireCity/Insert\", this.state.model);\r\n\r\n\t\tif (result != null) {\r\n\t\t\tthis.HandleSearch();\r\n\t\t}\r\n\t}\r\n\r\n\tOnModelChange = (control, Id) => {\r\n\t\tconst { model } = { ...this.state };\r\n\t\tif (control == \"Country\")\r\n\t\t\tmodel.CountryId = Id;\r\n\t\telse if (control == \"Province\")\r\n\t\t\tmodel.ProvinceId = Id;\r\n\t\telse if (control == \"City\")\r\n\t\t\tmodel.CityId = Id;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\tHandleUpdate = async () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/bankapi/v1.0/WireCity/Updtae\", this.state.model);\r\n\r\n\t\tif (result != null) {\r\n\t\t\tthis.HandleSearch();\r\n\t\t}\r\n\t}\r\n\r\n\tHandleDelete = () => {\r\n\t\tconst { ExecuteApiPost, showConfirmMessage } = this.props;\r\n\t\tshowConfirmMessage(\"warning\", \"Warning\", \"Are you sure want to delete ?\", () => ExecuteApiPost(\"/bankapi/v1.0/WireCity/Delete\", { Id: this.state.model.Id }, null, null, null, [this.HandleSearch], true));\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { showValidationErrors } = this.props;\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tvar Messages = [];\r\n\t\tvModel.CountryId = !model.CountryId;\r\n\t\tif (vModel.ProfileName) Messages.push(\"Country cannot be empty.\");\r\n\r\n\t\tvModel.CityId = model.CityId < 0 || model.CityId == null;\r\n\t\tif (vModel.MinimumAmount) Messages.push(\"City cannot be empty\");\r\n\r\n\t\tvModel.Name = !model.Name || model.Name == null;\r\n\t\tif (vModel.UniqueClientId) Messages.push(\"Name cannot be empty\");\r\n\r\n\t\tif (Messages.length > 0) {\r\n\t\t\tshowValidationErrors(Messages);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn true;\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tvar tempModel = this.state.list[index];\r\n\t\tthis.setState({ isEdit: true, model: tempModel, index });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { alert, model, isLoading } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCityReport.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(CityReport, {});\r\n","import Card from \"components/Card/Card\";\r\nimport CardBody from \"components/Card/CardBody\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer\";\r\nimport GridItem from \"components/Grid/GridItem\";\r\nimport { withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericDateInput, GenericPage, GenericGrid, GenericSelectInput, GenericNumberInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\n\r\nclass WireTransferBeneficiaryReport extends GenericPage {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.isBackOffice = ClientHelper.IsBackOffice();\r\n\t\tthis.clientId = ClientHelper.GetClientId();\r\n\r\n\t\tthis.defaultModel = {\r\n\t\t\tUniqueClientId: this.isBackOffice ? undefined : this.clientId,\r\n\t\t\tDate: DateHelper.GetDate(),\r\n\t\t\tTrxDirection: undefined,\r\n\t\t\tMessageType: undefined,\r\n\t\t\tFromAmount: undefined,\r\n\t\t\tToAmount: undefined,\r\n\t\t\tBeneficiaryName: undefined\r\n\t\t};\r\n\r\n\t\tthis.defaultSummary = {\r\n\t\t\tTotalOutgoingTransactionAmount: 0,\r\n\t\t\tTotalIncomingTransactionAmount: 0,\r\n\t\t\tTotalTransactionFee: 0\r\n\t\t};\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Direction\",\r\n\t\t\t\taccessor: \"TransactionDirection\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Beneficiary\",\r\n\t\t\t\tCell: row => ({row.original.BeneficiaryCompanyName != \"\" ? row.original.BeneficiaryCompanyName : row.original.BeneficiaryName})\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Message Type\",\r\n\t\t\t\taccessor: \"MessageType\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total No. of Transaction\",\r\n\t\t\t\taccessor: \"TotalTrxCount\",\r\n\t\t\t\tCell: row => ({Formatter.FormatNumber(row.value)})\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Amount of Trx.\",\r\n\t\t\t\taccessor: \"TotalTrxAmount\",\r\n\t\t\t\tCell: row => ({Formatter.FormatDecimal(row.value)})\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Currency\",\r\n\t\t\t\taccessor: \"Currency\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Amount Fee\",\r\n\t\t\t\taccessor: \"TotalFeeAmount\",\r\n\t\t\t\tCell: row => ({Formatter.FormatDecimal(row.value)})\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tif (this.isBackOffice) {\r\n\t\t\tconst clientColumn = {\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t};\r\n\t\t\tthis.columns.unshift(clientColumn);\r\n\t\t}\r\n\r\n\t\tthis.state = {\r\n\t\t\tisLoading: false,\r\n\t\t\tmodel: { ...this.defaultModel },\r\n\t\t\tsummary: { ...this.defaultSummary }\r\n\t\t};\r\n\r\n\t\tthis.EmptyObject = {};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tsuper.componentDidMount();\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\r\n\t\tif (setAppLeftTitle)\r\n\t\t\tsetAppLeftTitle(\"Beneficiary Report\");\r\n\t\tif (setAppCenterTitle)\r\n\t\t\tsetAppCenterTitle(\"WIRE TRANSFER\");\r\n\t}\r\n\r\n\tSearchClick() {\r\n\t\tconst { model, summary } = this.state;\r\n\r\n\t\tthis.ExecutePostRequest(\"/bankapi/v1.0/WireTransfer/SearchBeneficiaryBasedReport\",\r\n\t\t\tmodel,\r\n\t\t\tresponseData => {\r\n\t\t\t\tsummary.TotalIncomingTransactionAmount = responseData.TotalIncomingTransactionAmount;\r\n\t\t\t\tsummary.TotalOutgoingTransactionAmount = responseData.TotalOutgoingTransactionAmount;\r\n\t\t\t\tsummary.TotalTransactionFee = responseData.TotalTransactionFee;\r\n\t\t\t\tthis.setState({ data: responseData.Item, summary });\r\n\t\t\t});\r\n\t}\r\n\r\n\tClearClick() {\r\n\t\tthis.setState({ model: { ...this.defaultModel } });\r\n\t}\r\n\r\n\tValueChanged(name, newValue) {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model || {};\r\n\t\t\tmodel[name] = newValue;\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, data, summary } = this.state;\r\n\t\tconst { IsLoading, Alert } = this.state;\r\n\r\n\r\n\t\treturn (\r\n\t\t\t<>\r\n\t\t\t\t{Alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n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\tAfter: PropTypes.func,\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool,\r\n\tValueChanged: PropTypes.func,\r\n\tModel: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(WireTransferBeneficiaryReport, {});","import GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { withArtifex } from \"core\";\r\n import ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport { GenericTitle, GenericPage, GenericGrid, GenericDateInput, GenericSelectInput } from \"views/Components/Generic\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport Formatter from \"core/Formatter\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport ChequeManagementStyle from \"../../../assets/jss/material-dashboard-pro-react/views/ChequeManagementStyle.jsx\";\r\nimport TabsComponent from \"views/Components/TabsComponentPagination\";\r\nimport DateHelper from \"core/DateHelper.js\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass ChequeWireIncoming extends GenericPage {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\r\n\t\t\tmodel: {},\r\n\t\t\tlist: [],\r\n\t\t\tselected: null,\r\n\t\t\tisBackOffice: false,\r\n\t\t\topenDialog: false,\r\n\t\t\ttotalchqinfomodel: {},\r\n\t\t\tParentTabIndex: 0,\r\n\t\t\tCheckNewClient: false\r\n\r\n\t\t};\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Number\",\r\n\t\t\t\taccessor: \"BankAccountNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Status\",\r\n\t\t\t\taccessor: \"Status\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date\",\r\n\t\t\t\taccessor: \"ChequeDate\",\r\n\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reference Number\",\r\n\t\t\t\taccessor: \"ReferenceNumber\"\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"Amount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sender Name\",\r\n\t\t\t\taccessor: \"SenderName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sender Adress\",\r\n\t\t\t\taccessor: \"SenderAdress\",\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reference\",\r\n\t\t\t\taccessor: \"Reference\",\r\n\r\n\t\t\t}\r\n\t\t];\r\n\r\n\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\tsuper.componentDidMount();\r\n\t\tthis.Bind(this);\r\n\t\t// var tempuniq = Formatter.PadLeft(ClientHelper.GetClientRowId(), 3, \"0\");\r\n\t\tif (this.props.setAppLeftTitle) this.props.setAppLeftTitle(\"Wire Incoming File Details\");\r\n\t\tif (this.props.setAppCenterTitle) {\r\n\t\t\tthis.props.setAppCenterTitle(\"WIRE TRANSFER\");\r\n\t\t}\r\n\t\tthis.setState({ openDialog: false });\r\n\r\n\r\n\t\tvar { isBackOffice } = this.state;\r\n\r\n\t\tisBackOffice = ClientHelper.IsBackOffice();\r\n\r\n\r\n\t\tthis.setState({ isBackOffice });\r\n\r\n\t}\r\n\r\n\tHandleChangeParentTab(active, tab) {\r\n\t\tif (!tab || !this.state.CheckNewClient) {\r\n\t\t\tthis.setState({ ParentTabIndex: active });\r\n\t\t}\r\n\t}\r\n\r\n\tHandleChange(name, value) {\r\n\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tif (name === \"Name\") model[\"UniqueClientId\"] = value;\r\n\t\tif (name === \"UniqueClientId\") model[\"Name\"] = value;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tSearch() {\r\n\r\n\r\n\r\n\r\n\t}\r\n\r\n\tClear() {\r\n\t\tthis.setState({ model: {} });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes } = this.props;\r\n\t\tconst { model, list, selected, isBackOffice } = this.state;\r\n\t\tconst { IsLoading, Alert } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{Alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.HandleChangeParentTab(a, true)}\r\n\t\t\t\t\t\t\t\ttabList={[\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\ttabButton: \"Files\",\r\n\t\t\t\t\t\t\t\t\t\ttabContent: (\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.setState({ model: list[index], selected: index });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}} />\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\ttabButton: \"File Details\",\r\n\t\t\t\t\t\t\t\t\t\ttabContent: (\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.setState({ model: list[index], selected: index });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}} />\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t/>\r\n\r\n\r\n\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n\r\n}\r\n\r\nChequeWireIncoming.propTypes =\r\n\t{\r\n\t\tsetAppLeftTitle: PropTypes.func,\r\n\t\tsetAppCenterTitle: PropTypes.func,\r\n\t\tclasses: PropTypes.object.isRequired,\r\n\t\tDisabled: PropTypes.bool,\r\n\t\tValueChanged: PropTypes.func,\r\n\t\tModel: PropTypes.object,\r\n\t\tmenuId: PropTypes.any,\r\n\t\tApprovalData: PropTypes.any,\r\n\t\tAfter: PropTypes.any\r\n\r\n\t};\r\nexport default withArtifex(ChequeWireIncoming, { ChequeManagementStyle });","import React from \"react\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { withArtifex } from \"core\"; import ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport { GenericTitle, GenericPage, GenericGrid, GenericDateInput, GenericSelectInput } from \"views/Components/Generic\";\r\nimport PropTypes from \"prop-types\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport Formatter from \"core/Formatter\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport ChequeManagementStyle from \"../../../assets/jss/material-dashboard-pro-react/views/ChequeManagementStyle.jsx\";\r\nimport TabsComponent from \"views/Components/TabsComponentPagination\";\r\nimport DateHelper from \"core/DateHelper.js\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass ChequeWireOutgoing extends GenericPage {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\r\n\t\t\tmodel: {},\r\n\t\t\tlist: [],\r\n\t\t\tselected: null,\r\n\t\t\tisBackOffice: false,\r\n\t\t\topenDialog: false,\r\n\t\t\ttotalchqinfomodel: {},\r\n\t\t\tParentTabIndex: 0,\r\n\t\t\tCheckNewClient: false\r\n\r\n\t\t};\r\n\r\n\t\tthis.columns = [\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Status\",\r\n\t\t\t\taccessor: \"Status\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date\",\r\n\t\t\t\taccessor: \"ChequeDate\",\r\n\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reference Number\",\r\n\t\t\t\taccessor: \"ReferenceNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Number\",\r\n\t\t\t\taccessor: \"BankAccountNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"Amount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Beneficiary Name\",\r\n\t\t\t\taccessor: \"Beneficiary.Name\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Beneficiary Adress\",\r\n\t\t\t\taccessor: \"Beneficiary.Adress\",\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Beneficiary Bank SWIFT\",\r\n\t\t\t\taccessor: \"Beneficiary.SWIFT\",\r\n\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Beneficiary Bank SWIFT\",\r\n\t\t\t\taccessor: \"Beneficiary.SWIFT\",\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Beneficiary Bank Adress\",\r\n\t\t\t\taccessor: \"Beneficiary.BankAdress\",\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Purpose Of Wire\",\r\n\t\t\t\taccessor: \"PurposeOfWire\",\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Swift Response Code\",\r\n\t\t\t\taccessor: \"SwiftResponseCode\",\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"File Type\",\r\n\t\t\t\taccessor: \"FileType\"\r\n\t\t\t},\r\n\r\n\r\n\t\t];\r\n\r\n\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\tsuper.componentDidMount();\r\n\t\tthis.Bind(this);\r\n\t\t// var tempuniq = Formatter.PadLeft(ClientHelper.GetClientRowId(), 3, \"0\");\r\n\t\tif (this.props.setAppLeftTitle) this.props.setAppLeftTitle(\"Wire Outgoing File Details\");\r\n\t\tif (this.props.setAppCenterTitle) {\r\n\t\t\tthis.props.setAppCenterTitle(\"WIRE TRANSFER\");\r\n\t\t}\r\n\t\tthis.setState({ openDialog: false });\r\n\r\n\r\n\t\tvar { isBackOffice } = this.state;\r\n\r\n\t\tisBackOffice = ClientHelper.IsBackOffice();\r\n\r\n\r\n\t\tthis.setState({ isBackOffice });\r\n\r\n\t}\r\n\tHandleChangeParentTab(active, tab) {\r\n\t\tif (!tab || !this.state.CheckNewClient) {\r\n\t\t\tthis.setState({ ParentTabIndex: active });\r\n\t\t}\r\n\t}\r\n\tHandleChange(name, value) {\r\n\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tif (name === \"Name\") model[\"UniqueClientId\"] = value;\r\n\t\tif (name === \"UniqueClientId\") model[\"Name\"] = value;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tSearch() {\r\n\r\n\r\n\r\n\r\n\t}\r\n\r\n\r\n\tClear(){\r\n\t\tthis.setState({ model: {} });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes } = this.props;\r\n\t\tconst { model, list, selected, isBackOffice } = this.state;\r\n\r\n\t\tconst { IsLoading, Alert } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{Alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\r\n\r\n\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.HandleChangeParentTab(a, true)}\r\n\t\t\t\t\t\t\t\ttabList={[\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\ttabButton: \"Files\",\r\n\t\t\t\t\t\t\t\t\t\ttabContent: (\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.setState({ model: list[index], selected: index });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}} />\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\ttabButton: \"File Details\",\r\n\t\t\t\t\t\t\t\t\t\ttabContent: (\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.setState({ model: list[index], selected: index });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}} />\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t/>\r\n\r\n\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{/* \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t

Amount

\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tTOTAL\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{totalchqinfomodel == null || undefined ? 0 : totalchqinfomodel.Amount == null || undefined ? 0 : typeof totalchqinfomodel.Amount == \"number\" ? Formatter.FormatNumber(totalchqinfomodel.Amount) : totalchqinfomodel.Amount}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t($)\r\n\t\t\t\t\t\t\t\t{totalchqinfomodel == null || undefined ? 0 : totalchqinfomodel.TotalPrice == null || undefined ? 0 : typeof totalchqinfomodel.TotalPrice == \"number\" ? Formatter.FormatNumber(totalchqinfomodel.TotalPrice) : totalchqinfomodel.TotalPrice}\r\n\t\t\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
*/}\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\r\n\r\n\r\n\t\t);\r\n\t}\r\n\r\n\r\n\r\n}\r\n\r\nChequeWireOutgoing.propTypes =\r\n\t{\r\n\t\tclasses: PropTypes.object.isRequired,\r\n\t\tDisabled: PropTypes.bool,\r\n\t\tValueChanged: PropTypes.func,\r\n\t\tModel: PropTypes.object,\r\n\t\tsetAppLeftTitle: PropTypes.func,\r\n\t\tsetAppCenterTitle: PropTypes.func,\r\n\t\tmenuId: PropTypes.any,\r\n\t\tApprovalData: PropTypes.any,\r\n\t\tAfter: PropTypes.any\r\n\t};\r\nexport default withArtifex(ChequeWireOutgoing, { ChequeManagementStyle });","import sweetAlertStyle from \"assets/jss/material-dashboard-pro-react/views/sweetAlertStyle.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericPage, GenericDateInput, GenericSelectInput, GenericTitle } from \"views/Components/Generic\";\r\nimport ChequeWireTransactionsDataTable from \"./ChequeWireTransactionsDataTable\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nconst styles = ({\r\n\t...sweetAlertStyle\r\n});\r\nclass ChequeWireTransactions extends GenericPage {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tvar user = ClientHelper.GetUser();\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tClientTypeId: (user.UniqueClient && user.UniqueClient.ClientTypeId) || null,\r\n\t\t\tisBackOffice: false\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tlist: [],\r\n\t\t\ttotalresult: {},\r\n\t\t\tcheckedValues: [],\r\n\t\t\tselected: null,\r\n\t\t\tisLoading: false,\r\n\t\t\talert: \"\",\r\n\t\t\tisBackOffice: false\r\n\t\t};\r\n\r\n\t\tthis.HandleCheck = this.HandleCheck.bind(this);\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tsuper.componentDidMount();\r\n\t\tthis.Bind(this);\r\n\t\tthis.props.setAppLeftTitle(\"Wire Transactions\");\r\n\t\tthis.props.setAppCenterTitle(\"WIRE TRANSFER\");\r\n\r\n\t\tvar { isBackOffice } = this.state.isBackOffice;\r\n\t\tvar model = { ...this.state.model };\r\n\r\n\t\tisBackOffice = ClientHelper.IsBackOffice();\r\n\t\tif (!isBackOffice) {\r\n\t\t\tmodel.UniqueClientId = ClientHelper.GetClientRowId();\r\n\t\t\tmodel.Name = model.UniqueClientId;\r\n\t\t}\r\n\t\tthis.setState({ model, isBackOffice });\r\n\t}\r\n\r\n\tValueChanged(name, value, data) {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tif (name === \"Name\") model[\"UniqueClientId\"] = value;\r\n\t\tif (name === \"UniqueClientId\") model[\"Name\"] = value;\r\n\r\n\t\tthis.setState({ model });\r\n\t}\r\n\tHandleCheck(e, x) {\r\n\r\n\t\tthis.setState(state => ({\r\n\t\t\tcheckedValues: state.checkedValues.includes(x)\r\n\t\t\t\t? state.checkedValues.filter(c => c !== x)\r\n\t\t\t\t: [...state.checkedValues, x]\r\n\t\t}));\r\n\t}\r\n\tSubmit() {\r\n\t\t// \"/bankapi/v1.0/Cheque/ChequeOrderAll\", ////bu printer icin\r\n\t\tthis.ExecutePostRequest(\"/bankapi/v1.0/WireTransfer/WireTransferSend\",\r\n\t\t\tthis.state.checkedValues,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tvar listItems = [];\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tlistItems = responseData.Item.map((number) =>\r\n\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t{number.ApprovedDate == null ?\r\n\t\t\t\t\t\t\t\tnumber.UniqueClientId + \"==>\" + number.Name + \"==>\" + Formatter.FormatDate(number.Date) + \"==>Error\"\r\n\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\tnumber.UniqueClientId + \"==>\" + number.Name + \"==>\" + Formatter.FormatDate(number.Date) + \"==>Succeses\"\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.ShowGenericMessage(\"warning\", \"Wire Transactions Send List Successfully \", listItems);\r\n\t\t\t\tthis.Clear();\r\n\t\t\t\tthis.Search();\r\n\t\t\t});\r\n\t}\r\n\r\n\r\n\r\n\tErrorSendCallback(error) {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowGenericMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t}\r\n\r\n\r\n\tSearch() {\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tconst { model } = this.state;\r\n\t\tif (!this.state.isBackOffice) {\r\n\t\t\tmodel.UniqueClientId = ClientHelper.GetClientRowId();\r\n\t\t}\r\n\r\n\t\tthis.ExecutePostRequest(\"/bankapi/v1.0/WireTransfer/WireTransferList\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tlist: responseData.Item.WireTransactionsList || [],\r\n\t\t\t\t\t\ttotalresult: responseData.Item.WireTransactionsDetailInfo\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t}\r\n\tClear() {\r\n\t\tthis.setState({\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tlist: [],\r\n\t\t\tselected: null, checkedValues: [],\r\n\t\t\ttotalresult: {}\r\n\t\t});\r\n\t}\r\n\tValidate() {\r\n\t\tconst { model, list } = this.state;\r\n\r\n\t\tif (!model.Code) {\r\n\t\t\tthis.ShowGenericMessage(\"warning\", \"Action code not entered\", \"Enter action code to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!model.Description) {\r\n\t\t\tthis.ShowGenericMessage(\"warning\", \"Action description not entered\", \"Enter action description to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!model.Order) {\r\n\t\t\tthis.ShowGenericMessage(\"warning\", \"Action order not entered\", \"Enter action order to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tvar isActionCodeUnique = true;\r\n\t\tlist\r\n\t\t\t.filter(x => x.Code === model.Code)\r\n\t\t\t.map(() => {\r\n\t\t\t\tisActionCodeUnique = false;\r\n\t\t\t});\r\n\t\tif (!isActionCodeUnique) {\r\n\t\t\tthis.ShowGenericMessage(\"warning\", \"Action code must be unique\", \"Action code has already been inserted.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tvar isActionOrderUnique = true;\r\n\t\tlist\r\n\t\t\t.filter(x => x.Order == model.Order)\r\n\t\t\t.map(() => {\r\n\t\t\t\tisActionOrderUnique = false;\r\n\t\t\t});\r\n\t\tif (!isActionOrderUnique) {\r\n\t\t\tthis.ShowGenericMessage(\"warning\", \"Action order must be unique\", \"Action order has already been inserted.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, list, selected, isBackOffice } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { IsLoading, Alert } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{Alert}\r\n\t\t\t\t\r\n\t\t\t\t this.ShowGenericMessage(\"warning\", \"Warning\", \"Are you sure want to Send ?\", true, this.Submit),\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCode: \"Clear\",\r\n\t\t\t\t\t\t\tOnClick: this.Clear\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After}\r\n\t\t\t\t/>\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n\r\n\r\n}\r\nChequeWireTransactions.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any,\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool,\r\n\tValueChanged: PropTypes.func,\r\n\tModel: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(ChequeWireTransactions, styles);","import Card from \"components/Card/Card\";\r\nimport CardBody from \"components/Card/CardBody\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer\";\r\nimport GridItem from \"components/Grid/GridItem\";\r\nimport { withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericPage, GenericDateInput, GenericGrid, GenericSelectInput, GenericNumberInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\n\r\nclass WireTransferClientReport extends GenericPage {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.isBackOffice = ClientHelper.IsBackOffice();\r\n\t\tthis.clientId = ClientHelper.GetClientId();\r\n\r\n\t\tthis.defaultModel = {\r\n\t\t\tUniqueClientId: this.isBackOffice ? undefined : this.clientId,\r\n\t\t\tDate: DateHelper.GetDate(),\r\n\t\t\tTrxDirection: null,\r\n\t\t\tMessageType: null\r\n\t\t};\r\n\r\n\t\tthis.defaultSummary = {\r\n\t\t\tTotalOutgoingTransactionAmount: 0,\r\n\t\t\tTotalIncomingTransactionAmount: 0,\r\n\t\t\tTotalTransactionFee: 0\r\n\t\t};\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Direction\",\r\n\t\t\t\taccessor: \"TransactionDirection\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Message Type\",\r\n\t\t\t\taccessor: \"MessageType\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total No. of Transaction\",\r\n\t\t\t\taccessor: \"TotalTrxCount\",\r\n\t\t\t\tCell: row => ({Formatter.FormatNumber(row.value)})\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Amount of Trx.\",\r\n\t\t\t\taccessor: \"TotalTrxAmount\",\r\n\t\t\t\tCell: row => ({Formatter.FormatDecimal(row.value)})\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Currency\",\r\n\t\t\t\taccessor: \"Currency\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Amount Fee\",\r\n\t\t\t\taccessor: \"TotalFeeAmount\",\r\n\t\t\t\tCell: row => ({Formatter.FormatDecimal(row.value)})\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tif (this.isBackOffice) {\r\n\t\t\tconst clientColumn = {\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t};\r\n\t\t\tthis.columns.unshift(clientColumn);\r\n\t\t}\r\n\r\n\t\tthis.state = {\r\n\t\t\tisLoading: false,\r\n\t\t\tmodel: { ...this.defaultModel },\r\n\t\t\tdata: [],\r\n\t\t\tsummary: { ... this.defaultSummary }\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tsuper.componentDidMount();\r\n\t\tthis.Bind(this);\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\r\n\t\tif (setAppLeftTitle)\r\n\t\t\tsetAppLeftTitle(\"Client Report\");\r\n\t\tif (setAppCenterTitle)\r\n\t\t\tsetAppCenterTitle(\"WIRE TRANSFER\");\r\n\t}\r\n\r\n\tSearchClick() {\r\n\t\tconst { model, summary } = this.state;\r\n\t\tthis.ExecutePostRequest(\"/bankapi/v1.0/WireTransfer/SearchClientBasedReport\",\r\n\t\t\tmodel,\r\n\t\t\tresponseData => {\r\n\t\t\t\tsummary.TotalIncomingTransactionAmount = responseData.TotalIncomingTransactionAmount;\r\n\t\t\t\tsummary.TotalOutgoingTransactionAmount = responseData.TotalOutgoingTransactionAmount;\r\n\t\t\t\tsummary.TotalTransactionFee = responseData.TotalTransactionFee;\r\n\t\t\t\tthis.setState({ data: responseData.Item, summary });\r\n\t\t\t});\r\n\t}\r\n\r\n\tClearClick() {\r\n\t\tthis.setState({\r\n\t\t\tmodel: { ...this.defaultModel },\r\n\t\t\tsummary: { ... this.defaultSummary }\r\n\t\t});\r\n\t}\r\n\r\n\tValueChanged(name, newValue) {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model || {};\r\n\t\t\tmodel[name] = newValue;\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, data, summary } = this.state;\r\n\t\tconst { IsLoading, Alert } = this.state;\r\n\r\n\t\treturn (<>\r\n\t\t\t{Alert}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nWireTransferClientReport.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tmenuId: PropTypes.number.isRequired,\r\n\tApprovalData: PropTypes.object,\r\n\tAfter: PropTypes.func,\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool,\r\n\tValueChanged: PropTypes.func,\r\n\tModel: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(WireTransferClientReport, {});","import Card from \"components/Card/Card\";\r\nimport CardBody from \"components/Card/CardBody\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer\";\r\nimport GridItem from \"components/Grid/GridItem\";\r\nimport { withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericDateInput, GenericPage, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\n\r\nclass WireTransferCountryReport extends GenericPage {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.isBackOffice = ClientHelper.IsBackOffice();\r\n\t\tthis.clientId = ClientHelper.GetClientId();\r\n\r\n\t\tthis.defaultModel = {\r\n\t\t\tUniqueClientId: this.isBackOffice ? undefined : this.clientId,\r\n\t\t\tDate: DateHelper.GetDate(),\r\n\t\t\tTrxDirection: null,\r\n\t\t\tMessageType: null\r\n\t\t};\r\n\r\n\r\n\t\tthis.defaultSummary = {\r\n\t\t\tTotalOutgoingTransactionAmount: 0,\r\n\t\t\tTotalIncomingTransactionAmount: 0,\r\n\t\t\tTotalTransactionFee: 0\r\n\t\t};\r\n\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Direction\",\r\n\t\t\t\taccessor: \"TransactionDirection\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Country\",\r\n\t\t\t\taccessor: \"Country\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Message Type\",\r\n\t\t\t\taccessor: \"MessageType\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total No. of Transaction\",\r\n\t\t\t\taccessor: \"TotalTrxCount\",\r\n\t\t\t\tCell: row => ({Formatter.FormatNumber(row.value)})\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Amount of Trx.\",\r\n\t\t\t\taccessor: \"TotalTrxAmount\",\r\n\t\t\t\tCell: row => ({Formatter.FormatDecimal(row.value)})\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Currency\",\r\n\t\t\t\taccessor: \"Currency\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Amount Fee\",\r\n\t\t\t\taccessor: \"TotalFeeAmount\",\r\n\t\t\t\tCell: row => ({Formatter.FormatDecimal(row.value)})\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tif (this.isBackOffice) {\r\n\t\t\tconst clientColumn = {\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t};\r\n\t\t\tthis.columns.unshift(clientColumn);\r\n\t\t}\r\n\r\n\t\tthis.state = {\r\n\t\t\tisLoading: false,\r\n\t\t\tmodel: { ...this.defaultModel },\r\n\t\t\tdata: [],\r\n\t\t\tsummary: { ... this.defaultSummary }\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tsuper.componentDidMount();\r\n\t\tthis.Bind(this);\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\r\n\t\tif (setAppLeftTitle)\r\n\t\t\tsetAppLeftTitle(\"Country Report\");\r\n\t\tif (setAppCenterTitle)\r\n\t\t\tsetAppCenterTitle(\"WIRE TRANSFER\");\r\n\t}\r\n\r\n\tSearchClick() {\r\n\t\tconst { model, summary } = this.state;\r\n\t\tthis.ExecutePostRequest(\"/bankapi/v1.0/WireTransfer/SearchCountryBasedReport\",\r\n\t\t\tmodel,\r\n\t\t\tresponseData => {\r\n\t\t\t\tsummary.TotalIncomingTransactionAmount = responseData.TotalIncomingTransactionAmount;\r\n\t\t\t\tsummary.TotalOutgoingTransactionAmount = responseData.TotalOutgoingTransactionAmount;\r\n\t\t\t\tsummary.TotalTransactionFee = responseData.TotalTransactionFee;\r\n\t\t\t\tthis.setState({ data: responseData.Item, summary });\r\n\t\t\t});\r\n\t}\r\n\r\n\tClearClick() {\r\n\t\tthis.setState({\r\n\t\t\tmodel: { ...this.defaultModel },\r\n\t\t\tsummary: { ... this.defaultSummary }\r\n\t\t});\r\n\t}\r\n\r\n\tValueChanged(name, newValue) {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model || {};\r\n\t\t\tmodel[name] = newValue;\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, data, summary } = this.state;\r\n\t\tconst { IsLoading, Alert } = this.state;\r\n\r\n\t\treturn (<>\r\n\t\t\t{Alert}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nWireTransferCountryReport.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tmenuId: PropTypes.number.isRequired,\r\n\tApprovalData: PropTypes.object,\r\n\tAfter: PropTypes.func,\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool,\r\n\tValueChanged: PropTypes.func,\r\n\tModel: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(WireTransferCountryReport, {});","// @ts-ignore\r\nimport Card from \"components/Card/Card.jsx\";\r\n// @ts-ignore\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\n// @ts-ignore\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\n// @ts-ignore\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\n// @ts-ignore\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\n// @ts-ignore\r\nimport { Proxy, withArtifex } from \"core\";\r\n// @ts-ignore\r\nimport ClientHelper from \"core/ClientHelper\";\r\n// @ts-ignore\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes, { array } from \"prop-types\";\r\nimport React from \"react\";\r\n// @ts-ignore\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\n// @ts-ignore\r\nimport {\r\n GenericAlert,\r\n GenericPage,\r\n GenericCheckInput,\r\n GenericExpansionPanel,\r\n GenericTextInput,\r\n GenericSelectInput,\r\n} from \"views/Components/Generic\";\r\n// @ts-ignore\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n// @ts-ignore\r\nimport { Portals, ProgramCodes } from \"views/Constants/Constant\";\r\nimport OrderingAmountDetail from \"./CreateIncomingWireTransfer/OrderingAmountDetail.jsx\";\r\nimport OrderingClientDetail from \"./CreateIncomingWireTransfer/OrderingClientDetail.jsx\";\r\nimport StringHelper from \"core/StringHelper.js\";\r\n\r\nclass CreateIncomingWireTransfer extends GenericPage {\r\n constructor(props) {\r\n super(props);\r\n this.getappCenterTitle = \"Empty\";\r\n this.getappLeftTitle = \"Empty\";\r\n this.defaultBeneficiaryModel = {\r\n IsCorporate: false,\r\n LegalName: \"\",\r\n AddressLine1: \"\",\r\n AddressLine2: \"\",\r\n ZipCode: \"\",\r\n CityName: \"\",\r\n ProvinceName: \"\",\r\n CountryName: \"\",\r\n Accounts: [],\r\n };\r\n\r\n this.defaultModel = {\r\n AccountNumber: null,\r\n Amount: 0,\r\n CurrencyId: null,\r\n WireTransactionDate: DateHelper.GetDateTime(),\r\n WirePurpose: null,\r\n WireReferenceNumber: null,\r\n WireIncomingBeneficiaryId: null,\r\n OrderingClientName: null,\r\n OrderingCountryId: null,\r\n OrderingProvinceId: null,\r\n OrderingCityId: null,\r\n OrderingAddressLine1: null,\r\n OrderingAddressLine2: null,\r\n OrderingZipCode: null,\r\n OrderingSourceAccountNumber: null,\r\n InternationalBankCountryId: null,\r\n SendingFI: null,\r\n SendingFISwiftCode: null,\r\n SendingFICountryId: null,\r\n SendingFIAddress: null,\r\n IsDomestic: false,\r\n };\r\n\r\n this.MaxLen = { maxLength: 30 };\r\n this.SortedCountry = { Member: \"OrderIndex\" };\r\n\r\n this.defaultReceiverModel = {\r\n Name: null,\r\n Address1: null,\r\n Address2: null,\r\n City: null,\r\n Province: null,\r\n Country: null,\r\n PostalCode: null,\r\n AccountNumber: null,\r\n SWIFT: null,\r\n FI: null,\r\n FITransitNum: null,\r\n FIAddress1: null,\r\n FIAddress2: null,\r\n FICity: null,\r\n FIProvince: null,\r\n FICountry: null,\r\n FIPostalCode: null,\r\n };\r\n\r\n this.defaultStatusModel = {\r\n IsClearDialogOpen: false,\r\n SaveConfirmDialog: false,\r\n IsSubmitTemplate: false,\r\n Alert: null,\r\n AcceptTerms: false,\r\n AmountPrefix: \"$\",\r\n };\r\n\r\n this.AcceptTermText =\r\n \"I do confirm my rights to bind the company and have the authority to perform the transaction on behalf of the company.\";\r\n\r\n this.state = {\r\n Model: { ...this.defaultModel },\r\n StatusModel: { ...this.defaultStatusModel },\r\n BeneficiaryInfo: { ...this.defaultBeneficiaryModel },\r\n ReceiverModel: { ...this.defaultReceiverModel },\r\n ReceiverInfo: [],\r\n isLoading: false,\r\n };\r\n }\r\n\r\n async componentDidMount() {\r\n try {\r\n super.componentDidMount();\r\n const { setAppLeftTitle, setAppCenterTitle, setPortal } = this.props;\r\n\r\n if (setAppLeftTitle) {\r\n setAppLeftTitle(\"Create Incoming Wire Transfer\");\r\n this.getappLeftTitle = \"Create Incoming Wire Transfer\";\r\n }\r\n if (setAppCenterTitle) {\r\n setAppCenterTitle(\"WIRE TRANSFER\");\r\n this.getappCenterTitle = \"WIRE TRANSFER\";\r\n }\r\n if (setPortal) {\r\n setPortal(Portals.WireTransfer);\r\n }\r\n\r\n var isClient = ClientHelper.IsClient();\r\n if (isClient) {\r\n await this.BeneficiaryInfo();\r\n await this.ReceiverInfo();\r\n }\r\n } catch (error) {\r\n console.error(\"Error in componentDidMount:\", error);\r\n }\r\n }\r\n\r\n async BeneficiaryInfo(continueWith = null) {\r\n this.ExecutePostRequest(\r\n \"/bankapi/v1.0/WireTransfer/SearchIncomingWireBeneficiaryAccounts\",\r\n {},\r\n (responseData) => {\r\n this.setState({ BeneficiaryInfo: responseData.Item }, continueWith);\r\n }\r\n );\r\n }\r\n\r\n async ReceiverInfo(continueWith = null) {\r\n this.ExecutePostRequest(\"/bankapi/v1.0/WireTransfer/SearchIncomingWireReceiverInfo\", {}, (responseData) => {\r\n this.setState({ ReceiverInfo: responseData.Item }, continueWith);\r\n });\r\n }\r\n\r\n GetRenderItemAccount = (x) => {\r\n this.renderItemAccount = `${x.AccountNumber} - ${x.AccountName}`;\r\n return this.renderItemAccount;\r\n };\r\n\r\n OnlyLetterAndDigit = (str) => StringHelper.VerifiyDigitAndLetterForWire(str);\r\n\r\n VerifiyLine = (str) => StringHelper.VerifiyWireLine(str);\r\n\r\n ValueChanged(name, newValue, data) {\r\n this.setState((prevState) => {\r\n const updatedModel = { ...prevState.Model, [name]: newValue };\r\n const updatedOrderingModel = { ...prevState.OrderingModel, [name]: newValue };\r\n const updatedStatusModel = { ...prevState.StatusModel, [name]: newValue };\r\n let updatedReceiverModel = { ...prevState.ReceiverModel };\r\n\r\n if (name === \"WireIncomingBeneficiaryId\" && data != null) {\r\n updatedReceiverModel = {\r\n ...updatedReceiverModel,\r\n Name: data.ReceiverName,\r\n Address1: data.ReceiverAddress1,\r\n Address2: data.ReceiverAddress2,\r\n City: data.ReceiverCity,\r\n Province: data.ReceiverProvince,\r\n Country: data.ReceiverCountry,\r\n PostalCode: data.ReceiverPostalCode,\r\n AccountNumber: data.ReceiverAccountNumber,\r\n SWIFT: data.ReceiverSWIFT,\r\n FI: data.ReceiverFI,\r\n FITransitNum: data.ReceiverFITransitNumber,\r\n FIAddress1: data.ReceiverFIAddress1,\r\n FIAddress2: data.ReceiverFIAddress2,\r\n FICity: data.ReceiverFICity,\r\n FIProvince: data.ReceiverFIProvince,\r\n FICountry: data.ReceiverFICountry,\r\n FIPostalCode: data.ReceiverFIPostalCode,\r\n };\r\n }\r\n\r\n if (name === \"CurrencyId\" && this.defaultModel.CurrencyId == null) {\r\n updatedModel.CurrencyId = newValue;\r\n }\r\n\r\n const validationFields = [\"SendingFISwiftCode\"];\r\n if (validationFields.includes(name) && newValue) {\r\n const isValid =\r\n name === \"SendingFISwiftCode\" ? this.OnlyLetterAndDigit(newValue) : this.VerifiyLine(newValue);\r\n if (isValid) {\r\n return true;\r\n }\r\n }\r\n\r\n if (name === \"OrderingCountryId\") {\r\n updatedModel.OrderingProvinceId = null;\r\n updatedModel.OrderingCityId = null;\r\n }\r\n\r\n if (name == \"SendingFICountryId\" && data?.ISO2 == \"CA\") {\r\n updatedModel.IsDomestic = true;\r\n }\r\n\t\t\telse{\r\n\t\t\t\tupdatedModel.IsDomestic = false;\r\n\t\t\t}\r\n\r\n return {\r\n Model: updatedModel,\r\n StatusModel: updatedStatusModel,\r\n ReceiverModel: updatedReceiverModel,\r\n OrderingModel: updatedOrderingModel,\r\n };\r\n });\r\n }\r\n\r\n HandleCreateOrUpdate() {\r\n const { Model } = this.state;\r\n\r\n this.setState({ isLoading: true });\r\n\r\n const request = { ...Model };\r\n\r\n Proxy.POST(\r\n \"/bankapi/v1.0/WireTransfer/CreateOrUpdateWireTransferIncomingDetail\",\r\n request,\r\n (createResponseData) => {\r\n this.setState({ isLoading: false });\r\n\r\n if (!createResponseData.IsSucceeded) {\r\n this.ShowGenericMessage(\"error\", \"Error\", createResponseData.ErrorDescription);\r\n return;\r\n }\r\n\r\n if (createResponseData.ErrorCode != \"0\") {\r\n this.ShowGenericMessage(\"error\", \"Rejected\", createResponseData.ErrorDescription);\r\n return;\r\n }\r\n\r\n this.ShowGenericMessage(\"success\", \"Create\", \"Created successfully.\");\r\n\r\n this.ClearScreen();\r\n }\r\n );\r\n }\r\n\r\n ShowConfirmMessage() {\r\n if (!this.Validate()) return;\r\n\r\n this.setState({\r\n Alert: (\r\n this.HideAlert()}\r\n OnConfirm={() => this.HandleCreateOrUpdate()}\r\n />\r\n ),\r\n });\r\n }\r\n\r\n ShowClearMessage() {\r\n this.setState({\r\n Alert: (\r\n \r\n ),\r\n });\r\n }\r\n\r\n HandleClearConfirm() {\r\n this.ClearScreen();\r\n this.HideAlert();\r\n }\r\n\r\n ClearScreen() {\r\n const { StatusModel } = this.state;\r\n StatusModel.IsClearDialogOpen = false;\r\n this.setState({\r\n Model: { ...this.defaultModel },\r\n StatusModel: { ...this.defaultStatusModel },\r\n ReceiverModel: { ...this.defaultReceiverModel },\r\n });\r\n }\r\n\r\n Validate() {\r\n const { Model, StatusModel } = this.state;\r\n var messages = [];\r\n console.log(Model);\r\n console.log(StatusModel);\r\n if (StatusModel.AcceptTerms == false) {\r\n console.log(\"AcceptTerms is false\");\r\n this.ShowGenericMessage(\"warning\", \"Warning\", \"Please accept the confirmation message and then try again.\");\r\n return false;\r\n }\r\n if (!Model.WireTransactionDate) messages.push(\"Date Request cannot be null.\");\r\n if (!Model.Amount || Model.Amount <= 0) messages.push(\"Amount cannot be equal to 0 or less.\");\r\n if (!Model.WirePurpose) messages.push(\"Purpose of Wire cannot be null.\");\r\n if (!Model.AccountNumber || Model.AccountNumber < 1) messages.push(\"Beneficiary Account Number cannot be empty!\");\r\n if (!Model.OrderingClientName) messages.push(\"Ordering Client Name cannot be null.\");\r\n if (!Model.OrderingCountryId) messages.push(\"Ordering Country cannot be null.\");\r\n if (!Model.OrderingProvinceId) messages.push(\"Ordering Province cannot be null.\");\r\n if (!Model.OrderingCityId) messages.push(\"Ordering City cannot be null.\");\r\n if (!Model.OrderingAddressLine1) messages.push(\"Address Line 1 cannot be null.\");\r\n if (!Model.OrderingZipCode) messages.push(\"Postal Code cannot be null.\");\r\n if (!Model.OrderingSourceAccountNumber) messages.push(\"Ordering Source Account Number cannot be null.\");\r\n if (!Model.InternationalBankCountryId) messages.push(\"International Bank Country cannot be null.\");\r\n if (!Model.SendingFI) messages.push(\"Sending Financial Institution cannot be null.\");\r\n if (!Model.SendingFISwiftCode) messages.push(\"Sending FI Swift Code cannot be null.\");\r\n if (!Model.SendingFICountryId) messages.push(\"Sending FI Country cannot be null.\");\r\n if (!Model.SendingFIAddress) messages.push(\"Sending FI Address cannot be null.\");\r\n\r\n if (messages.length > 0) {\r\n this.ShowGenericMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n messages.map((x, i) =>
{x}
)\r\n );\r\n return false;\r\n }\r\n\r\n return true;\r\n }\r\n\r\n render() {\r\n const { Disabled } = this.props;\r\n const { Alert, isLoading, IsLoading } = this.state;\r\n const { Model, StatusModel, BeneficiaryInfo, ReceiverInfo, ReceiverModel, OrderingModel, TemplateList } =\r\n this.state;\r\n return (\r\n
\r\n {Alert}\r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n

\r\n Beneficiary Information\r\n

\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n

\r\n Receiver Information\r\n

\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n );\r\n }\r\n}\r\n\r\nCreateIncomingWireTransfer.propTypes = {\r\n classes: PropTypes.object.isRequired,\r\n Disabled: PropTypes.bool,\r\n ValueChanged: PropTypes.func,\r\n Model: PropTypes.object,\r\n ExecuteApiFileDownloadWithGenericResponse: PropTypes.func,\r\n};\r\n\r\nexport default withArtifex(CreateIncomingWireTransfer, {});\r\n","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\n// @ts-ignore\r\nimport Card from \"components/Card/Card.jsx\";\r\n// @ts-ignore\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\n// @ts-ignore\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\n// @ts-ignore\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\n// @ts-ignore\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\n// @ts-ignore\r\nimport { Proxy, withArtifex } from \"core\";\r\n// @ts-ignore\r\nimport ClientHelper from \"core/ClientHelper\";\r\n// @ts-ignore\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\n// @ts-ignore\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\n// @ts-ignore\r\nimport { GenericPage, GenericCheckInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericTextInput, GenericSelectInput } from \"views/Components/Generic\";\r\n// @ts-ignore\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport FileUpload from \"views/Components/FileUpload\";\r\n// @ts-ignore\r\nimport { Portals, ProgramCodes } from \"views/Constants/Constant\";\r\nimport BeneficiaryAmountDetail from \"./CreateWireTransfer/BeneficiaryAmountDetail.jsx\";\r\nimport BeneficiaryDetail from \"./CreateWireTransfer/BeneficiaryDetail.jsx\";\r\nimport SaveConfirmDialog from \"./CreateWireTransfer/SaveConfirmDialog.jsx\";\r\nimport FileResultDialog from \"./CreateWireTransfer/FileResultDialog.jsx\";\r\nimport AccountLimitToolbar from \"views/Components/AccountLimitToolbar.jsx\";\r\nimport StringHelper from \"core/StringHelper.js\";\r\nclass CreateWireTransfer extends GenericPage {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.getappCenterTitle = \"Empty\";\r\n\t\tthis.getappLeftTitle = \"Empty\";\r\n\t\tthis.defaultClientModel = {\r\n\t\t\tIsCorporate: false,\r\n\t\t\tLegalName: \"\",\r\n\t\t\tName: \"\",\r\n\t\t\tMiddleName: \"\",\r\n\t\t\tLastName: \"\",\r\n\t\t\tAddressLine1: \"\",\r\n\t\t\tAddressLine2: \"\",\r\n\t\t\tZipCode: \"\",\r\n\t\t\tCityName: \"\",\r\n\t\t\tProvinceName: \"\",\r\n\t\t\tCountryName: \"\"\r\n\t\t};\r\n\r\n\t\tthis.defaultTemplateModel = {\r\n\t\t\tId: 0,\r\n\t\t\tIsRecordValid: true,\r\n\t\t\tIsTemplate: false,\r\n\t\t\tAlias: null,\r\n\t\t\tTemplateName: null,\r\n\t\t\tUniqueClientId: 0,\r\n\t\t\tUniqueClient: null,\r\n\t\t\tCompanyName: null,\r\n\t\t\tName: null,\r\n\t\t\tMiddleName: null,\r\n\t\t\tLastName: null,\r\n\t\t\tAddressLine1: null,\r\n\t\t\tAddressLine2: null,\r\n\t\t\tZipCode: null,\r\n\t\t\tCityName: null,\r\n\t\t\tProvinceName: null,\r\n\t\t\tCityId: null,\r\n\t\t\tCity: null,\r\n\t\t\tProvinceId: null,\r\n\t\t\tProvince: null,\r\n\t\t\tCountryId: null,\r\n\t\t\tCountry: null,\r\n\t\t\tCurrencyId: null,\r\n\t\t\tCurrency: null,\r\n\t\t\tBankName: null,\r\n\t\t\tBankInstitution: null,\r\n\t\t\tBankTransitNumber: null,\r\n\t\t\tBankBranchName: null,\r\n\t\t\tBankFinInsId: null,\r\n\t\t\tBankFinIns: null,\r\n\t\t\tBankBranchId: null,\r\n\t\t\tBankBranch: null,\r\n\t\t\tAccountNumber: null,\r\n\t\t\tBankSwiftCode: null,\r\n\t\t\tBankAddressLine1: null,\r\n\t\t\tBankAddressLine2: null,\r\n\t\t\tBankZipCode: null,\r\n\t\t\tBankCityId: null,\r\n\t\t\tBankCity: null,\r\n\t\t\tBankProvinceId: null,\r\n\t\t\tBankProvince: null,\r\n\t\t\tBankCountryId: null,\r\n\t\t\tBankCountry: null,\r\n\t\t\tBankCityName: null,\r\n\t\t\tBankProvinceName: null,\r\n\t\t\tIsDomestic: null,\r\n\t\t\tHasChange: false,\r\n\t\t\tPhoneNumber : null\r\n\t\t};\r\n\r\n\t\tthis.MaxLen = { maxLength: 30 };\r\n\t\tthis.ParameterCountrySortOrderIndex = { Member: \"OrderIndex\" };\r\n\t\tthis.SortedCountry = { Member: \"OrderIndex\" };\r\n\t\tthis.SortedCityProvince = { Member: \"ParameterDesc\" };\r\n\r\n\t\tthis.defaultModel = {\r\n\t\t\t// status\r\n\t\t\tSendReceiptPDF: false,\r\n\t\t\tDownloadReceiptPDF: false,\r\n\t\t\tAcceptTerms: false,\r\n\r\n\t\t\t// Detail\r\n\t\t\tDateRequest: DateHelper.GetDateTime(),\r\n\t\t\tValueEffective: DateHelper.GetDateTime(),\r\n\t\t\tTotalAmount: 0,\r\n\t\t\tAmount: 0,\r\n\t\t\tCurrencyId: null,\r\n\t\t\tPurposeOfWire: \"\",\r\n\t\t\tAccountId: null,\r\n\t\t\tHasSubSender: false,\r\n\t\t\tFileId: null,\r\n\t\t\tSendEmailAddress: \"\",\r\n\t\t\tIsSendEmailAddressValid: false,\r\n\t\t\tAmountPrefix: \"$\"\r\n\t\t};\r\n\r\n\t\tthis.defaultStateModel = {\r\n\t\t\tIsClearDialogOpen: false,\r\n\t\t\tSaveConfirmDialog: false,\r\n\t\t\tIsSubmitTemplate: false,\r\n\t\t\tFileResultDialog: false,\r\n\t\t\tAlert: null,\r\n\t\t\tIsMsbClient: false,\r\n\r\n\t\t};\r\n\r\n\t\tthis.defaultFileModel = {\r\n\t\t\tFile: null,\r\n\t\t\tFileName: \"\"\r\n\t\t};\r\n\r\n\t\tthis.AcceptTermText = \"I do confirm my rights to bind the company and have the authority to perform the transaction on behalf of the company.\";\r\n\t\tthis.TemplateColumns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Template Name\",\r\n\t\t\t\taccessor: \"TemplateName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Company Name\",\r\n\t\t\t\taccessor: \"CompanyName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Name\",\r\n\t\t\t\taccessor: \"Name\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Middle Name\",\r\n\t\t\t\taccessor: \"MiddleName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Last Name\",\r\n\t\t\t\taccessor: \"LastName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Address Line 1\",\r\n\t\t\t\taccessor: \"AddressLine1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"AddressLine2\",\r\n\t\t\t\taccessor: \"AddressLine2\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Zip Code\",\r\n\t\t\t\taccessor: \"ZipCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"City\",\r\n\t\t\t\taccessor: \"City.Name\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Province\",\r\n\t\t\t\taccessor: \"Province.Name\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Country\",\r\n\t\t\t\taccessor: \"Country.Name\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Beneficiary Bank\",\r\n\t\t\t\tCell: row => ({row.original.BankFinIns != null ? row.original.BankFinIns.Description : row.original.BankName})\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transit Number\",\r\n\t\t\t\tCell: row => ({row.original.BankBranch != null ? row.original.BankBranch.TransitNumber : row.original.BankTransitNumber})\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"FIID\",\r\n\t\t\t\tCell: row => ({row.original.BankFinIns != null ? row.original.BankFinIns.FinIns : \"\"})\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Number\",\r\n\t\t\t\taccessor: \"AccountNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Bank Swift Code\",\r\n\t\t\t\taccessor: \"BankSwiftCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Address Line 1\",\r\n\t\t\t\taccessor: \"BankAddressLine1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Bank Address Line 2\",\r\n\t\t\t\taccessor: \"BankAddressLine2\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Zip Code\",\r\n\t\t\t\taccessor: \"BankZipCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"City\",\r\n\t\t\t\taccessor: \"BankCity.Name\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Province\",\r\n\t\t\t\taccessor: \"BankProvince.Name\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Bank Country\",\r\n\t\t\t\taccessor: \"BankCountry.Name\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.state = {\r\n\t\t\tModel: { ...this.defaultModel },\r\n\t\t\tStateModel: { ...this.defaultStateModel },\r\n\t\t\tFileModel: { ...this.defaultFileModel },\r\n\t\t\tClientInfo: { ...this.defaultClientModel },\r\n\t\t\tTemplate: { ...this.defaultTemplateModel },\r\n\t\t\tisLoading: false,\r\n\t\t\tTemplateList: [],\r\n\t\t\tLimitToken: false,\r\n\t\t\treadOnlyData: {},\r\n\t\t\tLimitBalanceData: {\r\n\t\t\t\tAvailableCreditLimit: 0,\r\n\t\t\t\tAvailableDebitLimit: 0,\r\n\t\t\t\tAvailableBalance: 0\r\n\t\t\t},\r\n\t\t\tIsAsianCountry : false,\r\n\t\t\tIsRestrictedClient: false\r\n\t\t};\r\n\t}\r\n\r\n\tasync componentDidMount() {\r\n\t\tsuper.componentDidMount();\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle, setPortal } = this.props;\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Create Wire Transfer\");this.getappLeftTitle = \"Create Wire Transfer\";\r\n\t\t}\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tsetAppCenterTitle(\"WIRE TRANSFER\");this.getappCenterTitle = \"WIRE TRANSFER\";\r\n\t\t}\r\n\t\tif (setPortal) {\r\n\t\t\tsetPortal(Portals.WireTransfer);\r\n\t\t}\r\n\r\n\t\tvar isClient = ClientHelper.IsClient();\r\n\t\tthis.LoadTemplateList(() => {\r\n\t\t\tif (isClient) {\r\n\t\t\t\tthis.LoadClientInfo(this.LoadCustomerContract);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tawait this.GetClientInternationalRestriction();\r\n\t\tthis.FetchCanadaPost(this.props,this.state);\r\n\t}\r\n\r\n\r\n\tFetchCanadaPost(newProps,state) {\r\n\t\tconst asianCountries = [\"Malaysia\",\"India\",\"Indonesia\",\"Thailand\",\"Myanmar\",\"South Korea\",\"China\",\r\n\t\t\"Philippines\",\"Vietnam\",\"Nepal\",\"Cambodia\",\"Japan\",\"Pakistan\",\"Bangladesh\",\"Brunei\",\"Singapore\",\r\n\t\t\"Laos\",\"Sri Lanka\",\"Bhutan\",\"Taiwan\",\"Mongolia\",\"Kazakhstan\",\"Iran\",\"Maldives\"];\r\n\r\n\t\tvar parent = this;\r\n\r\n\t\tthis.ExecutePostRequest(\"/coreapi/v1.0/Parameter/Search\",\r\n\t\t\t{\r\n\t\t\t\tParameterCode: \"CanadaPostApiKey\",\r\n\t\t\t\tParameterValue: \"CP\"\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (responseData.Item == null) {\r\n\t\t\t\t\tconsole.log(\"Canada Post Api key not fetched !\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item[0] == null) {\r\n\t\t\t\t\tconsole.log(\"Canada Post Api key not fetched !\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvar apikey = responseData.Item[0].ParameterDesc;\r\n\t\t\t\tconsole.log(\"KEY CP \", apikey);\r\n\t\t\t\tvar FillBankAddressFields = this.FillBankAddressFields;\r\n\t\t\t\tvar FillBeneficiaryAddressFields = this.FillBeneficiaryAddressFields;\r\n\t\t\t\tvar RemoveAddressLineFields = this.RemoveAddressLineFields;\r\n\t\t\t\t var SetAsianCountries = this.SetAsianCountries;\r\n\t\t\t\t// @ts-ignore\r\n\t\t\t\tvar url = window.CanadaPostAddressCompleteUrl;\r\n\t\t\t\tvar path = url + apikey;\r\n\t\t\t\tvar CanadaPostRequest=this.SubmitCanadaPostRequest;\r\n\r\n\t\t\t\tvar pca;\r\n\t\t\t\tconst script = document.createElement(\"script\");\r\n\t\t\t\tscript.src = path;\r\n\t\t\t\tscript.async = false;\r\n\t\t\t\tdocument.head.appendChild(script);\r\n\t\t\t\tscript.onload = function () {\r\n\t\t\t\t\t// @ts-ignore\r\n\t\t\t\t\tpca = window.pca;\r\n\t\t\t\t\tif (pca != null) {\r\n\t\t\t\t\t\tvar fields = [\r\n\t\t\t\t\t\t\t{ element: \"bank-street-address\", field: \"Line1\", mode: pca.fieldMode.SEARCH },\r\n\t\t\t\t\t\t\t{ element: \"bank-street-address2\", field: \"Line2\", mode: pca.fieldMode.POPULATE },\r\n\t\t\t\t\t\t\t{ element: \"bank-postcode\", field: \"PostalCode\", mode: pca.fieldMode.SEARCH }\r\n\t\t\t\t\t\t];\r\n\t\t\t\t\t\tvar options = {\r\n\t\t\t\t\t\t\tkey: apikey\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t\tvar control = new pca.Address(fields, options);\r\n\r\n\t\t\t\t\t\tcontrol.listen(\"populate\", function (address) {\r\n\t\t\t\t\t\t\tif (address.CountryName != \"Canada\" && state.IsRestrictedClient) {\r\n\t\t\t\t\t\t\t\tRemoveAddressLineFields(false);\r\n\t\t\t\t\t\t\t\tnewProps.showMessage(\"error\", \"Error\", \"Sorry country not supported except Canada!\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tFillBankAddressFields(address);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tif(asianCountries.includes(address.CountryName)){\r\n\t\t\t\t\t\t\t\tSetAsianCountries(true);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\tSetAsianCountries(false);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\tvar fields2 = [\r\n\t\t\t\t\t\t\t{ element: \"beneficiary-street-address\", field: \"Line1\", mode: pca.fieldMode.SEARCH },\r\n\t\t\t\t\t\t\t{ element: \"beneficiary-street-address2\", field: \"Line2\", mode: pca.fieldMode.POPULATE },\r\n\t\t\t\t\t\t\t{ element: \"beneficiary-postcode\", field: \"PostalCode\", mode: pca.fieldMode.SEARCH }\r\n\t\t\t\t\t\t];\r\n\t\t\t\t\t\tCanadaPostRequest();\r\n\r\n\t\t\t\t\t\tvar control2 = new pca.Address(fields2, options);\r\n\r\n\t\t\t\t\t\tcontrol2.listen(\"populate\", function (address) {\r\n\t\t\t\t\t\t\t\tFillBeneficiaryAddressFields(address);\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t});\r\n\t}\r\n\r\n\tRemoveAddressLineFields = (isBeneficiaryInformation) => {\r\n\t\tconst { Template } = this.state;\r\n\r\n\t\tif (isBeneficiaryInformation) {\r\n\t\t\tTemplate.AddressLine1 = null;\r\n\t\t\tTemplate.AddressLine2 = \"\";\r\n\t\t}\r\n\t\telse {\r\n\t\t\tTemplate.BankAddressLine1 = null;\r\n\t\t\tTemplate.BankAddressLine2 = \"\";\r\n\t\t}\r\n\t\tthis.setState({ Template });\r\n\t}\r\n\r\n\tasync GetClientInternationalRestriction() {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tvar result = await this.props.ExecuteApiPost(\"/bankapi/v1.0/WireTransfer/GetClientInternationalRestriction\");\r\n\t\tthis.setState({ IsRestrictedClient: result?.IsRestricted });\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\t\tSetAsianCountries(isAsian) {\r\n\t\tvar { IsAsianCountry } = this.state;\r\n\t\tconst { Template } = this.state;\r\n\t\tif(isAsian == true)\r\n\t\t{\r\n\t\t\tIsAsianCountry = true;\r\n\t\t}\r\n\t\telse{\r\n\t\t\tIsAsianCountry = false;\r\n\t\t\tTemplate.PhoneNumber = null;\r\n\t\t}\r\n\t\tthis.setState({ IsAsianCountry });\r\n\t}\r\n\r\n\tSubmitCanadaPostRequest = async () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tvar requestdata = {\r\n\r\n\t\t\tUniqueClientId: null,\r\n\t\t\tMenuCode:this.props.MenuCode,\r\n\t\t\tAppCenterTitle:this.getappCenterTitle,\r\n\t\t\tAppLeftTitle:this.getappLeftTitle\r\n\t\t};\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Reporting/CanadaPostRequestReportInsert\",\r\n\t\t\trequestdata,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (responseData.Item != null ) {\r\n\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t);\r\n\t\t// var result = await this.props.ExecuteApiPost(\"/bankapi/v1.0/Reporting/CanadaPostRequestReportInsert\", requestdata);\r\n\t}\r\n\tFillBankAddressFields(model, continueWith = null) {\r\n\t\tthis.ExecutePostRequest(\"/bankapi/v1.0/WireCountry/CanadaPost\",\r\n\t\t\tmodel,\r\n\t\t\tresponseData => {\r\n\t\t\t\tconst { Template } = this.state;\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tTemplate.BankCountryId = responseData.Item.CountryId;\r\n\t\t\t\t\tTemplate.BankProvinceId = responseData.Item.ProvinceId;\r\n\t\t\t\t\tTemplate.BankCityId = responseData.Item.CityId;\r\n\t\t\t\t\tTemplate.IsDomestic = model.CountryIso2 == \"CA\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\tTemplate.BankCountryId = 0;\r\n\t\t\t\t\tTemplate.BankProvinceId = 0;\r\n\t\t\t\t\tTemplate.BankCityId = 0;\r\n\t\t\t\t}\r\n\t\t\t\tTemplate.BankAddressLine1 = model.Line1;\r\n\t\t\t\tTemplate.BankAddressLine2 = model.Line2;\r\n\t\t\t\tTemplate.BankZipCode = model.PostalCode;\r\n\t\t\t\tthis.setState({ Template }, continueWith);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tFillBeneficiaryAddressFields(model, continueWith = null) {\r\n\t\tthis.ExecutePostRequest(\"/bankapi/v1.0/WireCountry/CanadaPost\",\r\n\t\t\tmodel,\r\n\t\t\tresponseData => {\r\n\t\t\t\tconst { Template } = this.state;\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tTemplate.CountryId = responseData.Item.CountryId;\r\n\t\t\t\t\tTemplate.ProvinceId = responseData.Item.ProvinceId;\r\n\t\t\t\t\tTemplate.CityId = responseData.Item.CityId;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tTemplate.CountryId = 0;\r\n\t\t\t\t\tTemplate.ProvinceId = 0;\r\n\t\t\t\t\tTemplate.CityId = 0;\r\n\t\t\t\t}\r\n\t\t\t\tTemplate.AddressLine1 = model.Line1;\r\n\t\t\t\tTemplate.AddressLine2 = model.Line2;\r\n\t\t\t\tTemplate.ZipCode = model.PostalCode;\r\n\t\t\t\tthis.setState({ Template }, continueWith);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tLoadTemplateList(continueWith = null) {\r\n\t\tthis.ExecutePostRequest(\"/bankapi/v1.0/WireBeneficiaryTemplate/Search\", {},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ TemplateList: responseData.Item || [] }, continueWith);\r\n\t\t\t});\r\n\t}\r\n\r\n\tLoadClientInfo(continueWith = null) {\r\n\t\tthis.ExecutePostRequest(\"/bankapi/v1.0/WireTransferSender/GetSenderInfo\", {},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ ClientInfo: responseData.Item }, continueWith);\r\n\t\t\t});\r\n\t}\r\n\r\n\tLoadCustomerContract(continueWith = null) {\r\n\t\tthis.ExecuteGetRequest(\"/bankapi/v1.0/CustomerContract/GetByCustomerId/Id?Id=\",\r\n\t\t\t(responseData) => {\r\n\t\t\t\tconst { StateModel } = this.state;\r\n\t\t\t\tvar isSmbClient = false;\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tresponseData.Item.forEach(element => {\r\n\t\t\t\t\t\tif (element.Program != null && element.Program.ProgramCode == ProgramCodes.Bank_Programs_Bank_Account) {\r\n\t\t\t\t\t\t\tisSmbClient = element.IsMsbClient == true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\tStateModel.IsMsbClient = isSmbClient;\r\n\t\t\t\tthis.setState({ StateModel }, continueWith);\r\n\t\t\t});\r\n\t}\r\n\r\n\tValueChanged(name, newValue, data) {\r\n\t\tconst { FileModel } = this.state;\r\n\t\tconst { Model } = this.state;\r\n\t\tModel[name] = newValue;\r\n\r\n\t\tif (name == \"AccountId\" && data != null) {\r\n\t\t\tModel.CurrencyId = data.CurrencyId;\r\n\t\t\t//Model.AmountPrefix = data.Currency.Symbol;\r\n\t\t}\r\n\t\tif (name == \"SendEmailAddress\" && data != null)\r\n\t\t\tModel[\"IsSendEmailAddressValid\"] = data.IsValid;\r\n\t\tif (name == \"SendReceiptPDF\" && !newValue)\r\n\t\t\tModel[\"SendEmailAddress\"] = \"\";\r\n\t\tif (name == \"Model.HasSubSender\" && !newValue) {\r\n\t\t\tFileModel.File = null;\r\n\t\t\tFileModel.FileName = \"\";\r\n\t\t}\r\n\t\tthis.setState({ Model, FileModel });\r\n\t}\r\n\tonlyLetterAndDigit = (str) => {\r\n\t\treturn StringHelper.VerifiyDigitAndLetterForWire(str);\r\n\t}\r\n\tVerifiyLine = (str) => {\r\n\t\treturn StringHelper.VerifiyWireLine(str);\r\n\t}\r\n\r\n\tTemplateValueChanged(name, newValue, data) {\r\n\t\tconst { Template } = this.state;\r\n\r\n\t\tvar isTemplate = Template.Id != 0;\r\n\t\tif (Template[name] != newValue && isTemplate) {\r\n\t\t\tTemplate.HasChange = true;\r\n\t\t}\r\n\r\n\t\tif (name == \"CurrencyId\" && this.defaultTemplateModel.CurrencyId == null) {\r\n\t\t\tthis.defaultTemplateModel.CurrencyId = newValue;\r\n\t\t}\r\n\r\n\t\tif (name == \"Alias\" && newValue != null) {\r\n\t\t\tvar check = this.onlyLetterAndDigit(newValue);\r\n\t\t\tif (check == true)\r\n\t\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\tif (name == \"AddressLine1\" && newValue != null) {\r\n\t\t\tvar checkAddressLine1 = this.VerifiyLine(newValue);\r\n\t\t\tif (checkAddressLine1 == true)\r\n\t\t\t\treturn true;\r\n\t\t}\r\n\t\tif (name == \"AddressLine2\" && newValue != null) {\r\n\t\t\tvar checkAddressLine2 = this.VerifiyLine(newValue);\r\n\t\t\tif (checkAddressLine2 == true)\r\n\t\t\t\treturn true;\r\n\t\t}\r\n\t\tif (name == \"BankInstitution\" && newValue != null) {\r\n\t\t\tvar checkBankInstitution = this.VerifiyLine(newValue);\r\n\t\t\tif (checkBankInstitution == true)\r\n\t\t\t\treturn true;\r\n\t\t}\r\n\t\tif (name == \"BankSwiftCode\" && newValue != null) {\r\n\t\t\tvar checkBankSwiftCode = this.VerifiyLine(newValue);\r\n\t\t\tif (checkBankSwiftCode == true)\r\n\t\t\t\treturn true;\r\n\t\t}\r\n\t\tif (name == \"BankAddressLine1\" && newValue != null) {\r\n\t\t\tvar checkBankAddressLine1 = this.VerifiyLine(newValue);\r\n\t\t\tif (checkBankAddressLine1 == true)\r\n\t\t\t\treturn true;\r\n\t\t}\r\n\t\tif (name == \"BankAddressLine2\" && newValue != null) {\r\n\t\t\tvar checkBankAddressLine2 = this.VerifiyLine(newValue);\r\n\t\t\tif (checkBankAddressLine2 == true)\r\n\t\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\tTemplate[name] = newValue;\r\n\r\n\t\tif (name == \"BankCountryId\" && data != null) {\r\n\t\t\tTemplate.IsDomestic = data.ISO2 == \"CA\";\r\n\t\t\tTemplate.BankCityId = null;\r\n\t\t\tTemplate.BankProvinceId = null;\r\n\t\t}\r\n\t\tif (name == \"BankCountryId\" && newValue == null) {\r\n\t\t\tTemplate.BankCityId = null;\r\n\t\t\tTemplate.BankProvinceId = null;\r\n\t\t}\r\n\t\tif (name == \"CountryId\") {\r\n\t\t\tTemplate.CityId = null;\r\n\t\t\tTemplate.ProvinceId = null;\r\n\t\t}\r\n\t\t// if (name == \"AccountId\") {\r\n\t\t// \tTemplate.CurrencyId = data.CurrencyId;\r\n\t\t// \tAmountPrefix = data.Currency.Symbol;\r\n\t\t// }\r\n\t\tif (name == \"SendEmailAddress\" && data != null)\r\n\t\t\tTemplate[\"IsSendEmailAddressValid\"] = data.IsValid;\r\n\t\tif (name == \"SendReceiptPDF\" && !newValue)\r\n\t\t\tTemplate[\"SendEmailAddress\"] = \"\";\r\n\t\tthis.setState({ Template });\r\n\t\t//Template\r\n\t}\r\n\r\n\tHandleSubmit() {\r\n\t\tconst { StateModel, FileModel, Template, Model } = this.state;\r\n\t\t// if (Template.HasChange) {\r\n\t\t// \tthis.ShowGenericMessage(\"warning\", \"Update Template\", \"Please update the selected Template with changes\", true, this.HideAlert);\r\n\t\t// \treturn;\r\n\t\t// }\r\n\r\n\t\tif (!this.Validate(false))\r\n\t\t\treturn;\r\n\r\n\r\n\t\tif (StateModel.IsMsbClient == true && FileModel.File != null && Model.FileId == null) {\r\n\t\t\tthis.SubmitFileClick();\r\n\t\t} else {\r\n\t\t\tStateModel.SaveConfirmDialog = true;\r\n\t\t\tthis.setState({ StateModel, Template });\r\n\t\t}\r\n\t}\r\n\r\n\tHandleConfirm() {\r\n\t\tconst { Model, Template } = this.state;\r\n\t\tif ((Model.SendReceiptPDF && Model.SendReceiptPDF == true && Model.SendEmailAddress == \"\") ||\r\n\t\t\t(Model.SendReceiptPDF && Model.SendReceiptPDF == true && !Model.IsSendEmailAddressValid)) {\r\n\t\t\tthis.ShowGenericMessage(\"warning\", \"Error\", \"Email address is not a correct.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.CloseSaveConfirmDialog();\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst request = {\r\n\t\t\tSendReceiptPDF: Model.SendReceiptPDF,\r\n\t\t\tDownloadReceiptPDF: Model.DownloadReceiptPDF,\r\n\t\t\tDateRequest: Model.DateRequest,\r\n\t\t\tValueEffective: Model.ValueEffective,\r\n\t\t\tAmount: Model.Amount,\r\n\t\t\tPurposeOfWire: Model.PurposeOfWire,\r\n\t\t\tAccountId: Model.AccountId,\r\n\t\t\tFileId: Model.FileId,\r\n\t\t\tBeneficiaryTemplate: Template,\r\n\t\t\tUniqueClientId: ClientHelper.GetClientRowId(),\r\n\t\t\tIsDomestic: Template.IsDomestic\r\n\t\t};\r\n\r\n\t\tProxy.POST(\"/bankapi/v1.0/WireTransfer/ValidateCreateWireTransfer\", request,\r\n\t\t\tvalidateResponseData => {\r\n\t\t\t\tif (!validateResponseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", validateResponseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tProxy.POST(\"/bankapi/v1.0/WireTransfer/CreateOutgoingWireTransfer\", request,\r\n\t\t\t\t\tcreateResponseData => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tif (!createResponseData.IsSucceeded) {\r\n\t\t\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", createResponseData.ErrorDescription);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (createResponseData.ErrorCode != \"0\") {\r\n\t\t\t\t\t\t\tthis.ShowGenericMessage(\"error\", \"Rejected\", createResponseData.ErrorDescription);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (Model.DownloadReceiptPDF != null && Model.DownloadReceiptPDF == true) {\r\n\t\t\t\t\t\t\tthis.DownloadPdf(createResponseData.Item.Id != null ? createResponseData.Item.Id : 0);\r\n\t\t\t\t\t\t\tthis.ClearScreen();\r\n\t\t\t\t\t\t\tthis.RefreshToolBar();\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tif (!request.FileId)\r\n\t\t\t\t\t\t\t\tthis.ShowGenericMessage(\"success\", \"Create\", \"Created successfully.\");\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\tthis.ShowGenericMessage(\"success\", \"Create\", \"The file is being process.\");\r\n\r\n\t\t\t\t\t\t\tthis.ClearScreen();\r\n\t\t\t\t\t\t\tthis.RefreshToolBar();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t});\r\n\t}\r\n\r\n\tHandleCancel() {\r\n\t\tconst { StateModel } = this.state;\r\n\t\tStateModel.SaveConfirmDialog = false;\r\n\t\tthis.setState({ StateModel });\r\n\t}\r\n\r\n\tHandleFileConfirm() {\r\n\t\tconst { StateModel } = this.state;\r\n\t\tStateModel.SaveConfirmDialog = true;\r\n\t\tStateModel.FileResultDialog = false;\r\n\t\tthis.setState({ StateModel });\r\n\t}\r\n\r\n\tHandleFileCancel() {\r\n\t\tconst { StateModel } = this.state;\r\n\t\tStateModel.FileResultDialog = false;\r\n\t\tthis.setState({ StateModel });\r\n\t}\r\n\r\n\tDownloadPdf(transactionSwiftId) {\r\n\t\tconst { ExecuteApiFileDownloadWithGenericResponse } = this.props;\r\n\t\tExecuteApiFileDownloadWithGenericResponse(\"/bankapi/v1.0/WireTransfer/WireTransferReceipDownloadFile\",\r\n\t\t\t{ \"Id\": transactionSwiftId },\r\n\t\t\t\"WireReceipt\" + \"-\" + Math.floor(Math.random() * Math.floor(999999)),\r\n\t\t\t\"pdf\",\r\n\t\t\t() => {\r\n\t\t\t\tthis.ShowGenericMessage(\"success\", \"Create & Download\", \"Created and downloaded receipt successfully !!!\");\r\n\t\t\t});\r\n\t}\r\n\r\n\tSelectedRowChange(index) {\r\n\t\tconst { TemplateList } = this.state;\r\n\t\tvar tempModel = { ...TemplateList[index] };\r\n\t\ttempModel.IsDomestic = tempModel.BankCountry != null && tempModel.BankCountry.ISO2 == \"CA\";\r\n\t\tif (tempModel.IsDomestic) {\r\n\t\t\ttempModel.BankName = null;\r\n\t\t\ttempModel.BankBranchName = null;\r\n\t\t} else {\r\n\t\t\ttempModel.BankFinIns = null;\r\n\t\t\ttempModel.BankBranchId = null;\r\n\t\t}\r\n\t\ttempModel.HasChange = tempModel.CurrencyId != this.defaultTemplateModel.CurrencyId;\r\n\t\ttempModel.CurrencyId = this.defaultTemplateModel.CurrencyId;\r\n\t\ttempModel.AccountNumberInputId = null;\r\n\r\n\t\tthis.setState({ Template: { ...tempModel } });\r\n\t}\r\n\r\n\tCloseSaveConfirmDialog() {\r\n\t\tconst { StateModel } = this.state;\r\n\t\tStateModel.SaveConfirmDialog = false;\r\n\t\tthis.setState({ isLoading: false, StateModel });\r\n\t}\r\n\tGetRenderItemAccount = (x) => {\r\n\t\tthis.renderItemAccount = `${x.AccountNumber} - ${x.AccountName}`;\r\n\t\treturn this.renderItemAccount;\r\n\t}\r\n\r\n\tSubmitFileClick() {\r\n\t\tconst { FileModel } = this.state;\r\n\t\tvar formData = new FormData();\r\n\t\tformData.append(\"file\", FileModel.File, FileModel.FileName);\r\n\t\tthis.ExecuteUploadRequest(\"/bankapi/v1.0/WireTransferSubSender/UploadSubSenderFile\", formData,\r\n\t\t\tresponseData => {\r\n\t\t\t\tvar fileUploadResponse = responseData.Item ? responseData.Item.FileUploadResponse : null;\r\n\t\t\t\tvar wireSubSenderFileRecords = responseData.Item ? responseData.Item.WireSubSenderFileRecords : [];\r\n\r\n\t\t\t\tconst { Model, StateModel } = this.state;\r\n\t\t\t\tModel.TotalAmount = responseData.Item ? responseData.Item.TotalAmount : \"\";\r\n\t\t\t\tStateModel.FileResultDialog = true;\r\n\t\t\t\tif (fileUploadResponse != null) {\r\n\t\t\t\t\tif (fileUploadResponse.RejectedItemCount > 0) {\r\n\t\t\t\t\t\tModel.FileId = null;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tModel.FileId = fileUploadResponse.FileId;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ Model, StateModel, FileResultList: wireSubSenderFileRecords });\r\n\t\t\t});\r\n\t}\r\n\r\n\tSubmitTemplate() {\r\n\t\tconst { StateModel } = this.state;\r\n\t\tStateModel.IsSubmitTemplate = true;\r\n\t\tthis.setState({ StateModel });\r\n\t}\r\n\r\n\tHandleTemplateConfirm() {\r\n\t\tif (!this.Validate(true))\r\n\t\t\treturn;\r\n\r\n\t\tconst { StateModel, Template } = this.state;\r\n\t\tTemplate.IsTemplate = true;\r\n\t\tthis.ExecutePostRequest(\"/bankapi/v1.0/WireBeneficiaryTemplate/InsertOrUpdate\",\r\n\t\t\tTemplate,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tTemplate.Id = responseData.Item.Id;\r\n\t\t\t\t\tTemplate.HasChange = false;\r\n\t\t\t\t}\r\n\t\t\t\tStateModel.IsSubmitTemplate = false;\r\n\t\t\t\tthis.ShowGenericMessage(\"success\", \"Template\", \"Template Submitted.\", false, this.LoadTemplateList(this.HideAlert));\r\n\t\t\t\tthis.setState({ StateModel, Template });\r\n\t\t\t});\r\n\t}\r\n\r\n\tHandleTemplateCancel() {\r\n\t\tconst { StateModel } = this.state;\r\n\t\tStateModel.IsSubmitTemplate = false;\r\n\t\tthis.setState({ StateModel });\r\n\t}\r\n\r\n\tClearClick() {\r\n\t\tconst { StateModel } = this.state;\r\n\t\tStateModel.IsClearDialogOpen = true;\r\n\t\tthis.setState({ StateModel });\r\n\t}\r\n\r\n\tFileSelect(e) {\r\n\t\tconst { FileModel } = this.state;\r\n\r\n\t\te.preventDefault();\r\n\t\tlet reader = new FileReader();\r\n\t\tvar file = e.target.files[0];\r\n\t\tif (!file) return;\r\n\r\n\t\treader.onloadend = () => {\r\n\t\t\tFileModel.File = file;\r\n\t\t\tFileModel.FileName = file.name;\r\n\t\t\tthis.setState(FileModel);\r\n\t\t};\r\n\t\treader.readAsDataURL(file);\r\n\t}\r\n\r\n\tHandleClearConfirm() {\r\n\t\tthis.ClearScreen();\r\n\t}\r\n\r\n\tHandleClearCancel() {\r\n\t\tconst { StateModel } = this.state;\r\n\t\tStateModel.IsClearDialogOpen = false;\r\n\t\tthis.setState({ StateModel });\r\n\t}\r\n\r\n\tHandleConfirmDelete() {\r\n\t\tconst { Template } = this.state;\r\n\t\tProxy.POST(\"/bankapi/v1.0/WireBeneficiaryTemplate/Delete\",\r\n\t\t\t{ Id: Template.Id },\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowGenericMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.ClearScreen();\r\n\t\t\t\tthis.ShowGenericMessage(\"success\", \"Success\", \"Template deleted successfully !!!\");\r\n\t\t\t\tthis.LoadTemplateList(() => { });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.ShowGenericMessage(\"error\", \"Error\", error);\r\n\t\t\t});\r\n\t}\r\n\r\n\tClearScreen() {\r\n\t\tconst { StateModel } = this.state;\r\n\t\tStateModel.IsClearDialogOpen = false;\r\n\t\tthis.setState({\r\n\t\t\tModel: { ...this.defaultModel },\r\n\t\t\tStateModel,\r\n\t\t\tFileModel: { ...this.defaultFileModel },\r\n\t\t\tTemplate: { ...this.defaultTemplateModel }\r\n\t\t});\r\n\t}\r\n\r\n\tValidate(isTemplateCreate) {\r\n\t\tconst { Template, Model } = this.state;\r\n\r\n\t\tvar messages = [];\r\n\r\n\t\tif (!isTemplateCreate) {\r\n\t\t\tif (Model.AcceptTerms == null || Model.AcceptTerms == false) {\r\n\t\t\t\tthis.ShowGenericMessage(\"warning\", \"Warning\", \"Please accept the confirmation message and then try again.\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tif (Model.DateRequest == null) messages.push(\"Date Request can not be null.\");\r\n\t\t\tif (Model.ValueEffective == null) messages.push(\"Value Effective can not be null.\");\r\n\t\t\tif (Model.Amount == null || Model.Amount <= 0) messages.push(\"Amount can not be null.\");\r\n\t\t\t// if (Model.DateRequest == null || Model.DateRequest == \"\") messages.push(\"Date Request can not be null.\");\r\n\t\t\t// if (Model.ValueEffective == null || Model.ValueEffective == \"\") messages.push(\"Value Effective can not be null.\");\r\n\t\t\t// if (Model.Amount == null || Model.Amount == \"\" || Model.Amount < 1) messages.push(\"Amount can not be null.\");\r\n\t\t\tif (Model.PurposeOfWire == null || Model.PurposeOfWire == \"\") messages.push(\"Purpose of Wire can not be null.\");\r\n\t\t}\r\n\r\n\t\tif (Model.AccountId == null || Model.AccountId < 1) messages.push(\"From Account cannot be empty!\");\r\n\r\n\t\tconst isIndividual = Template.CompanyName == null || Template.CompanyName == \"\";\r\n\t\tif (isIndividual) {\r\n\t\t\tif (Template.Name == null || Template.Name == \"\") messages.push(\"Name can not be null.\");\r\n\t\t\tif (Template.LastName == null || Template.LastName == \"\") messages.push(\"LastName can not be null.\");\r\n\t\t}\r\n\t\tif (Template.AddressLine1 == null || Template.AddressLine1 == \"\") messages.push(\"Address Line 1 can not be null.\");\r\n\t\t// if (Template.AddressLine2 == null || Template.AddressLine2 == \"\") messages.push(\"Address Line 2 can not be null.\");\r\n\t\tif (Template.ZipCode == null || Template.ZipCode == \"\") messages.push(\"ZipCode can not be null.\");\r\n\t\tif (Template.CityId == null) messages.push(\"City can not be null.\");\r\n\t\tif (Template.CountryId == null || Template.CountryId == \"\") messages.push(\"Country can not be null.\");\r\n\r\n\t\tif (Template.BankCountryId == null || Template.BankCountryId < 1) messages.push(\"Bank Country can not be null.\");\r\n\t\tvar accountIsEmpty = Template.AccountNumber == null || Template.AccountNumber == \"\";\r\n\t\tvar ibanIsEmpty = Template.BankInstitution == null || Template.BankInstitution == \"\";\r\n\t\tif (accountIsEmpty && ibanIsEmpty) {\r\n\t\t\tmessages.push(\"Account Number or IBAN can not be null. Please fill Account Number or IBAN field.\");\r\n\t\t}\r\n\r\n\t\tif (Template.BankZipCode == null || Template.BankZipCode == \"\") messages.push(\"Bank ZipCode can not be null.\");\r\n\t\tif (Template.IsDomestic && !accountIsEmpty) {\r\n\t\t\tif (Template.BankFinInsId == null || Template.BankFinInsId < 1) messages.push(\"FIID can not be null.\");\r\n\t\t\tif (Template.BankBranchId == null || Template.BankBranchId < 1) messages.push(\"Branch can not be null.\");\r\n\r\n\t\t} else if (!accountIsEmpty) {\r\n\t\t\tif (Template.BankName == null || Template.BankName == \"\") messages.push(\"Bank Name can not be null.\");\r\n\t\t\t//if (Template.BankTransitNumber == null || Template.BankTransitNumber == \"\") messages.push(\"Bank Transit Number can not be null.\");\r\n\t\t}\r\n\r\n\t\tif (Template.BankSwiftCode == null || Template.BankSwiftCode == \"\") messages.push(\"Swift Code can not be null.\");\r\n\r\n\t\tif (Template.Alias) {\r\n\t\t\tvar check = this.onlyLetterAndDigit(Template.Alias);\r\n\t\t\tif (check == true)\r\n\t\t\t\tmessages.push(\"Remittance Information contains invalid character!\");\r\n\t\t}\r\n\r\n\t\t// if (Template.AddressLine1) {\r\n\t\t// \tvar check3 = this.onlyLetterAndDigit(Template.AddressLine1);\r\n\t\t// \tif (check3 == true)\r\n\t\t// \t\tmessages.push(\"AddressLine1 contains invalid character!\");\r\n\t\t// }\r\n\r\n\t\tif (Template.BankInstitution) {\r\n\t\t\tvar check2 = this.onlyLetterAndDigit(Template.BankInstitution);\r\n\t\t\tif (check2 == true)\r\n\t\t\t\tmessages.push(\"BankInstitution contains invalid character!\");\r\n\t\t}\r\n\t\t// if (Template.IsDomestic) {\r\n\t\t// \tif (Template.BankTransitNumber == null || Template.BankTransitNumber == \"\") messages.push(\"Bank Transit Number can not be null.\");\r\n\r\n\t\t// }\r\n\t\tif (Template.BankCityId == null || Template.BankCityId == 0) messages.push(\"Bank City can not be null.\");\r\n\t\tif (Template.BankAddressLine1 == null || Template.BankAddressLine1 == \"\") messages.push(\"Bank Address Line 1 can not be null.\");\r\n\t\t// if (Template.BankAddressLine2 == null || Template.BankAddressLine2 == \"\") messages.push(\"Bank Address Line 2 can not be null.\");\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.ShowGenericMessage(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif(this.state.IsAsianCountry == true){\r\n\t\t\tmessages.push(\"Phone Number cannot be empty!\");\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tHandleDelete() {\r\n\t\tthis.ShowGenericMessage(\"info\", \"Info\", \"Are you sure delete this template ?\", true, this.HandleConfirmDelete);\r\n\t}\r\n\tRefreshToolBar() {\r\n\t\tthis.setState({ LimitToken: !this.state.LimitToken });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { isLoading, Alert, IsLoading } = this.state;\r\n\t\tconst { Model, StateModel, FileModel, ClientInfo, Template, TemplateList, FileResultList, LimitToken } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{Alert}\r\n\t\t\t\t { this.setState({ LimitBalanceData: data, isLoading: false }); }} />\r\n\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t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\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t{StateModel.SaveConfirmDialog && \r\n\t\t\t\t}\r\n\t\t\t\t{StateModel.FileResultDialog && \r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t
\t{Template.Id == 0 ? \"Create \" : \"Update \"} Template\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCreateWireTransfer.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool,\r\n\tValueChanged: PropTypes.func,\r\n\tModel: PropTypes.object,\r\n\tExecuteApiFileDownloadWithGenericResponse: PropTypes.func\r\n};\r\n\r\nexport default withArtifex(CreateWireTransfer, {});","import { DialogContent } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper.js\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { EditIcon } from \"core/Icons\";\r\nimport PropTypes, { bool, func } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\nimport BeneficiaryDetail from \"views/WireTransfer/CreateWireTransfer/BeneficiaryDetail\";\r\n\r\nclass MsbFileList extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"File Name\",\r\n\t\t\t\taccessor: \"FileName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Status\",\r\n\t\t\t\taccessor: \"MsbStatusDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Main Status\",\r\n\t\t\t\taccessor: \"SubStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Tranaction Id\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.RefNo\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Message Type\",\r\n\t\t\t\taccessor: \"MessageType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\",\r\n\t\t\t\tshow: !this.IsClient\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date of Request\",\r\n\t\t\t\taccessor: \"DateOfRequest\",\r\n\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Value Effective\",\r\n\t\t\t\taccessor: \"ValueEffective\",\r\n\t\t\t\ttype: GridColumnType.DateTime\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sender Name\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.SenderName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"BeneficiaryName\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.BeneficiaryName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.Amount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Currency\",\r\n\t\t\t\taccessor: \"Currency\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sending Country\",\r\n\t\t\t\taccessor: \"SendingCountry\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Destination Country\",\r\n\t\t\t\taccessor: \"DestinationCountry\"\r\n\t\t\t},\r\n\r\n\t\t];\r\n\r\n\t\tthis.detailColumns = [\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Settlement Direction\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.Direction\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Payment Amount\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.OriginalAmount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Settlement Amount\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.SettlementAmount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Settlement Route\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.SettlementRoute\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Settlement Transit\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.SettlementTransit\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"OrderingInstIdentifier\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.OrderingInstIdentifier\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Originator Route\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.OriginatorRoute\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Originator Transit\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.OriginatorTransit\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Settlement Transit\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.SettlementTransit\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Ordering Inst. Name\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.OrderingInstName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Ordering Institution Addr1\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.OrderingInstitutionAddr1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Ordering Institution Addr2\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.OrderingInstitutionAddr2\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Ordering Institution Addr3\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.OrderingInstitutionAddr3\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Contact Name\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.ContactName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Deliver To\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.DeliverTo\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Receiver BIC\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.ReceiverBIC\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Dest Branch Identifier\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.DestBranchIdentifier\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Destination Route\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.DestinationRoute\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Contact Name\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.ContactName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Deliver To\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.DeliverTo\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Receiver BIC\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.ReceiverBIC\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Dest Branch Identifier\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.DestBranchIdentifier\"\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Destination Route\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.DestinationRoute\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Destination Transit\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.DestinationTransit\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Dest. Branch Name\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.DestBranchName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Dest. Branch Addr1\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.DestBranchAddr1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Dest. Branch Addr2\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.DestBranchAddr2\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Dest. Branch Addr3\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.DestBranchAddr3\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Dest Country\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.DestCountry\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Rec Corresondent Name\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.RecCorresondentName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Rec Corresondent Identifier\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.RecCorresondentIdentifier\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Rec Corresondent Addr1\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.RecCorresondentAddr1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Rec Corresondent Addr2\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.RecCorresondentAddr2\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Rec Corresondent Addr3\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.RecCorresondentAddr3\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Intermediary Name\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.IntermediaryName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Intermediary Addr1\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.IntermediaryAddr1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Intermediary Addr2\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.IntermediaryAddr2\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"IntermediaryAddr3\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.IntermediaryAddr3\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Branch Buy\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.BranchBuy\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Rate Special Rate\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.RateSpecialRate\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Exchange Rate Date\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.ExchangeRateDate\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Payment Method\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.PaymentMethod\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Rate Special Rate\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.RateSpecialRate\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Exchange Rate Date\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.ExchangeRateDate\"\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Branch Sell Rate\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.BranchSellRate\"\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Payment Method\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.PaymentMethod\"\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sender Type\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.SenderType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sender Addr1\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.SenderAddr1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sender Addr2\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.SenderAddr2\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sender Addr3\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.SenderAddr3\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Id Country\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.IdCountry\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Id Type\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.IdSender\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Id Issuer\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.IdIssuer\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sender Phone No\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.SenderPhoneNo\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Principle Natureof Business\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.PrincipleNatureofBusiness\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sender Birth Date\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.SenderBirthDate\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Company Representative\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.CompanyRepresentative\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reason For Transfer\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.ReasonForTransfer\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Additional Sender Info\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.AdditionalSenderInfo\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Beneficiary Addr1\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.BeneficiaryAddr1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Beneficiary Addr2\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.BeneficiaryAddr2\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Beneficiary Addr3\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.BeneficiaryAddr3\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Recipient Information\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.RecipientInformation\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Special Instructions\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.SpecialInstructions\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Internal Notes\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.InternalNotes\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Additional SWIFT Information\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.AdditionalSWIFTInformation\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Member Service Charge\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.MemberServiceCharge\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Billing Code\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.BillingCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Billing System\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.BillingSystem\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"NON Negotiable\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.NONNegotiable\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Created By\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.CreatedBy\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Created Date\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.CreatedDate\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date Last Modified\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.DateLastModified\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Last Modified By\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.LastModifiedBy\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"WireStatus\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.WireStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Beneficiary Birth Date\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.BeneficiaryBirthDate\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Receiving Institution\",\r\n\t\t\t\taccessor: \"WireTransferMSBFileDetail.ReceivingInstitution\"\r\n\t\t\t}\r\n\r\n\t\t];\r\n\r\n\t\tthis.renderColumns = [{\r\n\t\t\tHeader: \"Actions\",\r\n\t\t\tsortable: false,\r\n\t\t\tfilterable: false,\r\n\t\t\twidth: 80,\r\n\t\t\tCell: row => (\r\n\t\t\t\t
\r\n\r\n\t\t\t\t\t this.HandleOpenEdit(row.index)}\r\n\t\t\t\t\t\tIcon={EditIcon}\r\n\t\t\t\t\t/>\r\n\t\t\t\t
\r\n\t\t\t)\r\n\t\t},\r\n\r\n\t\t... this.columns,\r\n\t\t...this.detailColumns];\r\n\r\n\t\tthis.defaultHeader = { TotalTransactionAmount: null, SubTransactionsTotal: null, MainTransactionAmount: null };\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined,\r\n\r\n\t\t};\r\n\t\tthis.IsClient = ClientHelper.IsClient();\r\n\t\tthis.state = {\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\theaderModel: { ... this.defaultHeader },\r\n\t\t\tsubStatusList: [],\r\n\t\t\ttempSubStatusList: [],\r\n\t\t\ttransactionList: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tShowFileDetail: false,\r\n\t\t\tFileDetail: [],\r\n\t\t\tapprovalTransactionList: [],\r\n\t\t\tapprovalDialog: false,\r\n\t\t\tdetailDialog: false,\r\n\t\t\tApprovalModel: {},\r\n\t\t\ttemplateDetailModel: {},\r\n\t\t\tmsbFileList: [],\r\n\t\t\tfileInfoModel: {}\r\n\t\t};\r\n\r\n\r\n\t\tthis.subTransactionColumns = [\r\n\t\t\t...this.renderColumns\r\n\t\t]\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Msb File List\");\r\n\t\tthis.props.setAppCenterTitle(\"Wire Transfer\");\r\n\r\n\t}\r\n\r\n\thandleChange = (name, newValue) => {\r\n\t\tthis.setState(function (state) {\r\n\t\t\tvar model = state.model || {};\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\r\n\tGetFileList = () => {\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/ClearingSettlement/GetMsbFile\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded)\r\n\t\t\t\t\tthis.showBasicAlert(\"Error\", \"Send operation error : \" + responseData.ErrorDescription + \"!!!\", \"error\");\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tmsbFileList: responseData.Item, isLoading: false, transactionList: []\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.showBasicAlert(\"Error\", \"An error occurred during the api visit\" + error, \"error\");\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tGetData = (FileId) => {\r\n\t\tthis.showLoading();\r\n\r\n\t\tthis.setState({\r\n\t\t\ttransactionList: [],\r\n\t\t\theaderModel: { TotalTransactionAmount: null, SubTransactionsTotal: null, MainTransactionAmount: null }\r\n\t\t}, () => {\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/bankapi/v1.0/ClearingSettlement/GetMSBSubTransactionsDetail\",\r\n\t\t\t\t{ FileId: FileId },\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded)\r\n\t\t\t\t\t\tthis.showBasicAlert(\"Error\", \"Send operation error : \" + responseData.ErrorDescription + \"!!!\", \"error\");\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tvar transactionList = [];\r\n\r\n\r\n\t\t\t\t\t\tvar headerModel = { ... this.defaultHeader };\r\n\t\t\t\t\t\tif (responseData.Item != null &&\r\n\t\t\t\t\t\t\tresponseData.Item.DetailList != null &&\r\n\t\t\t\t\t\t\tresponseData.Item.DetailList.length != 0) {\r\n\t\t\t\t\t\t\ttransactionList = responseData.Item.DetailList;\r\n\t\t\t\t\t\t\theaderModel = responseData.Item.TransactionInfo;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\t\ttransactionList, headerModel, isLoading: false\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\t\t\t\t\tthis.showBasicAlert(\"Error\", \"An error occurred during the api visit\" + error, \"error\");\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t});\r\n\t}\r\n\r\n\tHandleView = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst { ExecuteApiFileDownloadWithGenericResponse } = this.props;\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/WireTransfer/GetMsbFileTemplateInfo\",\r\n\t\t\t{ FileId: this.state.fileInfoModel.FileInformationId },\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tvar fileInfo = responseData.Item;\r\n\t\t\t\t\tExecuteApiFileDownloadWithGenericResponse(\"/coreapi/v1.0/File/DownloadFileFromBinary\", { FileId: fileInfo.Id }, fileInfo.FileName, fileInfo.FileExtension.ParameterDesc);\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", \"File Not Found!\");\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tshowBasicAlert = (title, message, type) => {\r\n\t\tthis.setState({ isLoading: false, alert: this.hideAlert()} /> });\r\n\t}\r\n\r\n\tshowLoading = () => { this.setState({ alert: null, isLoading: true }); }\r\n\thideLoading = () => { this.setState({ alert: null, isLoading: false }); }\r\n\thideAlert = () => { this.setState({ alert: null, isLoading: false }); }\r\n\r\n\tClearModel = () => {\r\n\t\tthis.setState({\r\n\r\n\t\t\tmodel: { FromDate: DateHelper.GetDate(), ToDate: DateHelper.GetDate(), ClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined, },\r\n\t\t\tShowFileDetail: false,\r\n\t\t\tFileDetail: []\r\n\t\t});\r\n\t}\r\n\r\n\tHandleOpenDetail = (index) => {\r\n\t\tconst approveModel = this.state.transactionList[index].WireTransferMSBFileDetail;\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/WireTransfer/MsbShowSubDetail\",\r\n\t\t\t{ Id: approveModel.Id },\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\tthis.CloseDialog();\r\n\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\r\n\t\t\t\t\tthis.setState({ approvalDialog: false, ShowFileDetail: true, ApprovalModel: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\r\n\r\n\t}\r\n\tHandleOpenEdit = (index) => {\r\n\t\tconst approveModel = this.state.transactionList[index].WireTransferMSBFileDetail;\r\n\t\tconst templateDetailModel = this.state.transactionList[index].WireBeneficiaryTemplate;\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/WireTransfer/MsbShowSubDetail\",\r\n\t\t\t{ Id: approveModel.Id },\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\tthis.CloseDialog();\r\n\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\r\n\t\t\t\t\tthis.setState({ approvalDialog: true, ShowFileDetail: true, ApprovalModel: responseData.Item, templateDetailModel });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tHandleClose = () => {\r\n\t\tthis.CloseDialog();\r\n\t}\r\n\r\n\tCloseDialog = () => {\r\n\t\tthis.setState({ detailDialog: false, approvalDialog: false, ShowFileDetail: false });\r\n\t}\r\n\r\n\tSelectedRowChange = (index) => {\r\n\t\tconst tempModel = this.state.msbFileList[index];\r\n\t\tconst { model } = { ...this.state };\r\n\t\tif (tempModel.FileInformationId == null || tempModel.FileInformationId == undefined)\r\n\t\t\tthis.showBasicAlert(\"Error\", \"FileInformation can not be null\", \"error\");\r\n\t\telse {\r\n\t\t\tmodel.FileName = tempModel.FileName;\r\n\t\t\tthis.setState({ fileInfoModel: tempModel, isLoading: true, rowIndex: index, model });\r\n\t\t\tthis.GetData(tempModel.FileInformationId);\r\n\r\n\t\t}\r\n\t}\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, headerModel, isLoading, transactionList, ShowFileDetail, templateDetailModel, fileInfoModel } = this.state;\r\n\r\n\t\tconst showSummary = headerModel.SubTransactionsTotal || headerModel.MainTransactionAmount || headerModel.TotalTransactionAmount;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t 0) },\r\n\t\t\t\t\t{ Code: \"Clear\", OnClick: this.ClearModel, Disabled: Disabled }\r\n\t\t\t\t]} menuId={this.props.menuId} ApprovalData={this.props.ApprovalData} After={this.props.After} />\r\n\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\tValue={model.ClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\tValueChanged={this.handleChange}\r\n\t\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\t\tDisabled={this.IsClient} />\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{showSummary &&\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t{headerModel.MainTransactionAmount &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t{headerModel.SubTransactionsTotal &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t{headerModel.TotalTransactionAmount &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t (
{Formatter.FormatDateUtc(row.value)}
)\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Record Count\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"RecordCount\"\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"File Status\",\r\n\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"FileStatus\"\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\t\tRowSelected={index => {\r\n\t\t\t\t\t\t\t\t\t\t\tthis.SelectedRowChange(index);\r\n\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\tSelectedIndex={this.state.rowIndex}\r\n\t\t\t\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_Bank_Account}\r\n\t\t\t\t\t\t\t\t\t\tShowPagination={true}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\r\n\t\t\t\t
\r\n\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t i.MsbStatusValue != WireMsbStatusValue.Pending)}\r\n\t\t\t\t\t\t\t\t\tData={transactionList}\r\n\t\t\t\t\t\t\t\t\tColumns={this.subTransactionColumns} \r\n\t\t\t\t\t\t\t\t\tShowPagination={true}\r\n\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t

Transaction Details

\r\n\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nMsbFileList.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\thandleOperationType: func,\r\n\tshowQuestionMessage: func,\r\n\tsetAppLeftTitle: func,\r\n\tsetAppCenterTitle: func,\r\n\tDisabled: bool,\r\n\tExecuteApiFileDownloadWithGenericResponse: PropTypes.func,\r\n\r\n};\r\n\r\nexport default withArtifex(MsbFileList, {});","import Card from \"components/Card/Card\";\r\nimport CardBody from \"components/Card/CardBody\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer\";\r\nimport GridItem from \"components/Grid/GridItem\";\r\nimport { withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericDateInput, GenericPage, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass OverlimitTransactionTrail extends GenericPage {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.isBackOffice = ClientHelper.IsBackOffice();\r\n\t\tthis.clientId = ClientHelper.GetClientId();\r\n\r\n\t\tthis.defaultModel = {\r\n\t\t\tUniqueClientId: this.isBackOffice ? undefined : this.clientId,\r\n\t\t\tStartDate: DateHelper.GetDate(),\r\n\t\t\tEndDate: DateHelper.GetDate(),\r\n\t\t\tTrxDirection: undefined,\r\n\t\t\tMessageType: undefined,\r\n\t\t\tFromAmount: undefined,\r\n\t\t\tToAmount: undefined,\r\n\t\t\tBeneficiaryName: undefined\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: { ...this.defaultModel }\r\n\t\t};\r\n\r\n\t\tthis.EmptyObject = {};\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Beneficiary Name\",\r\n\t\t\t\tCell: row => ({row.original.BeneficiaryCompanyName == \"\" ? row.original.BeneficiaryName : row.original.BeneficiaryCompanyName})\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Template Name\",\r\n\t\t\t\taccessor: \"TemplateName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date Of Request\",\r\n\t\t\t\taccessor: \"DateOfRequest\",\r\n\t\t\t\ttype: GridColumnType.Date\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Value Effective\",\r\n\t\t\t\taccessor: \"ValueEffective\",\r\n\t\t\t\ttype: GridColumnType.Date\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"Amount\",\r\n\t\t\t\tCell: row => ({Formatter.FormatDecimal(row.value)})\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Status\",\r\n\t\t\t\taccessor: \"Status\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sub-Status\",\r\n\t\t\t\taccessor: \"SubStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Destination\",\r\n\t\t\t\taccessor: \"DestinationCountry\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tsuper.componentDidMount();\r\n\t\tthis.Bind(this);\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\r\n\t\tif (setAppLeftTitle)\r\n\t\t\tsetAppLeftTitle(\"Overlimit Transaction Trail\");\r\n\t\tif (setAppCenterTitle)\r\n\t\t\tsetAppCenterTitle(\"WIRE TRANSFER\");\r\n\t}\r\n\r\n\tSearchClick() {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tthis.ExecutePostRequest(\"/bankapi/v1.0/WireTransfer/SearchOverlimitTransactionTrail\",\r\n\t\t\tmodel,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ Data: responseData.Item });\r\n\t\t\t});\r\n\t}\r\n\r\n\tClearClick() {\r\n\t\tthis.setState({ model: { ...this.defaultModel } });\r\n\t}\r\n\r\n\tValueChanged(name, newValue) {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model || {};\r\n\t\t\tmodel[name] = newValue;\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, Data } = this.state;\r\n\t\tconst { IsLoading, Alert } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t<>\r\n\t\t\t\t{Alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nOverlimitTransactionTrail.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool,\r\n\tValueChanged: PropTypes.func,\r\n\tModel: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(OverlimitTransactionTrail, {});","import Card from \"components/Card/Card\";\r\nimport CardBody from \"components/Card/CardBody\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer\";\r\nimport GridItem from \"components/Grid/GridItem\";\r\nimport { withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericTitle, GenericPage, GenericDateInput, GenericGrid, GenericSelectInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass WireTransferRestrictedCountries extends GenericPage {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.emptyCountryBlacklistData = {\r\n\t\t\tId: null,\r\n\t\t\tCountryId: null,\r\n\t\t\tCountry: null,\r\n\t\t\tCountryCode: \"\",\r\n\t\t\tCountryName: \"\",\r\n\t\t\tStartDate: null,\r\n\t\t\tEndDate: null,\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: { ...this.emptyCountryBlacklistData },\r\n\t\t\tselectedRowIndex: null,\r\n\t\t\tisLoading: false,\r\n\t\t\tdata: []\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tsuper.componentDidMount();\r\n\t\tthis.Bind(this);\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\r\n\t\tif (setAppLeftTitle)\r\n\t\t\tsetAppLeftTitle(\"Restricted Countries\");\r\n\t\tif (setAppCenterTitle)\r\n\t\t\tsetAppCenterTitle(\"WIRE TRANSFER\");\r\n\t}\r\n\r\n\tHandleSubmitClick() {\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tconst { model } = this.state;\r\n\t\tthis.ExecutePostRequest(\"/bankapi/v1.0/SwiftCountryBlacklist/Submit\",\r\n\t\t\t{\r\n\t\t\t\tCountryId: model.CountryId,\r\n\t\t\t\tStartDate: model.StartDate,\r\n\t\t\t\tEndDate: model.EndDate\r\n\t\t\t},\r\n\t\t\t() => {\r\n\t\t\t\tthis.ShowGenericMessage(\"success\", \"Submitted\", \"Restricted Country successfully submitted.\");\r\n\t\t\t\tthis.HandleClearClick(this.HandleSearchClick);\r\n\t\t\t});\r\n\t}\r\n\r\n\t/**\r\n\t * @param {() => void} fcont\r\n\t */\r\n\tHandleClearClick(fcont) {\r\n\r\n\t\tthis.setState({\r\n\t\t\tmodel: { ...this.emptyCountryBlacklistData },\r\n\t\t\tselectedRowIndex: null,\r\n\t\t\tdata: []\r\n\t\t}, fcont);\r\n\t}\r\n\r\n\tHandleSearchClick() {\r\n\t\tconst { model } = this.state;\r\n\t\tthis.ExecutePostRequest(\"/bankapi/v1.0/SwiftCountryBlacklist/Search\",\r\n\t\t\t{\r\n\t\t\t\tCountryId: model.CountryId,\r\n\t\t\t\tStartDate: model.StartDate,\r\n\t\t\t\tEndDate: model.EndDate\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ data: responseData.Item });\r\n\t\t\t});\r\n\t}\r\n\r\n\tHandleUpdateClick() {\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tconst { model } = this.state;\r\n\t\tthis.ExecutePostRequest(\"/bankapi/v1.0/SwiftCountryBlacklist/Update\",\r\n\t\t\t{\r\n\t\t\t\tId: model.Id,\r\n\t\t\t\tCountryId: model.CountryId,\r\n\t\t\t\tStartDate: model.StartDate,\r\n\t\t\t\tEndDate: model.EndDate\r\n\t\t\t},\r\n\t\t\t() => {\r\n\t\t\t\tthis.ShowGenericMessage(\"success\", \"Updated\", \"Restricted Country successfully updated.\");\r\n\t\t\t\tthis.HandleClearClick(this.HandleSearchClick);\r\n\t\t\t});\r\n\t}\r\n\r\n\tHandleDeleteClick() {\r\n\t\tconst { model } = this.state;\r\n\t\tthis.ShowGenericMessage(\"warning\", \"Restricted Country Deletion Confirmation\", \"Are you sure to delete selected restricted country?\", true, () => {\r\n\t\t\tthis.ExecutePostRequest(\"/bankapi/v1.0/SwiftCountryBlacklist/Delete\",\r\n\t\t\t\tmodel.Id,\r\n\t\t\t\t() => {\r\n\t\t\t\t\tthis.ShowGenericMessage(\"success\", \"Deleted\", \"Restricted Country successfully deleted.\");\r\n\t\t\t\t\tthis.HandleClearClick(this.HandleSearchClick);\r\n\t\t\t\t});\r\n\t\t});\r\n\t}\r\n\r\n\tValidate() {\r\n\t\tconst { model } = this.state;\r\n\t\tconst isUpdate = model.Id != null;\r\n\r\n\t\tvar messages = [];\r\n\t\tif (model.CountryId == null) messages.push(\"Country is not selected.\");\r\n\r\n\t\tif (model.StartDate == null) messages.push(\"Start Date cannot be null.\");\r\n\t\telse if (typeof model.StartDate != \"object\") messages.push(\"Start Date is invalid.\");\r\n\t\telse if (!isUpdate && DateHelper.ToMoment(model.StartDate).startOf(\"day\") < DateHelper.GetDateLocal()) messages.push(\"Start Date cannot be past.\");\r\n\r\n\t\tif (model.EndDate == null) messages.push(\"End Date cannot be null.\");\r\n\t\telse if (typeof model.EndDate != \"object\") messages.push(\"End Date is invalid.\");\r\n\t\telse if (DateHelper.ToMoment(model.EndDate).startOf(\"day\") < DateHelper.GetDateLocal()) messages.push(\"End Date cannot be past.\");\r\n\t\tif (typeof model.StartDate == \"object\" && typeof model.EndDate == \"object\" && model.StartDate > model.EndDate) messages.push(\"Start Date cannot be after End Date.\");\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.ShowGenericMessage(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\t/**\r\n\t * @param {number} index\r\n\t */\r\n\tRowSelected(index) {\r\n\t\tconst { data } = this.state;\r\n\t\tvar selectedRow = data[index];\r\n\r\n\t\t// model.Id = selectedRow.Id;\r\n\t\t// model.CountryId = selectedRow.CountryId;\r\n\t\t// model.StartDate = selectedRow.StartDate;\r\n\t\t// model.EndDate = selectedRow.EndDate;\r\n\t\tvar newModel = { ...selectedRow };\r\n\t\tnewModel.StartDate = DateHelper.ToMoment(newModel.StartDate);\r\n\t\tnewModel.EndDate = DateHelper.ToMoment(newModel.EndDate);\r\n\r\n\t\tthis.setState({ model: newModel, selectedRowIndex: index });\r\n\t}\r\n\r\n\tValueChanged(name, newValue) {\r\n\t\tconst { model } = this.state;\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, data, selectedRowIndex } = this.state;\r\n\t\tconst isUpdate = model.Id != null;\r\n\t\tconst { IsLoading, Alert } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t<>\r\n\t\t\t\t{Alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nWireTransferRestrictedCountries.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool,\r\n\tValueChanged: PropTypes.func,\r\n\tModel: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tmenuId: PropTypes.number.isRequired,\r\n\tApprovalData: PropTypes.object,\r\n\tAfter: PropTypes.func\r\n};\r\n\r\nexport default withArtifex(WireTransferRestrictedCountries, {});","import Card from \"components/Card/Card\";\r\nimport CardBody from \"components/Card/CardBody\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer\";\r\nimport GridItem from \"components/Grid/GridItem\";\r\nimport { withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericTitle, GenericDateInput, GenericGrid, GenericPage, GenericNumberInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\n\r\nclass WireTransferRestrictedCountriesTransactionTrail extends GenericPage {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.isBackOffice = ClientHelper.IsBackOffice();\r\n\t\tthis.clientId = ClientHelper.GetClientId();\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Beneficiary Name\",\r\n\t\t\t\tCell: row => ({row.original.BeneficiaryCompanyName == \"\" ? row.original.BeneficiaryName : row.original.BeneficiaryCompanyName})\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Number\",\r\n\t\t\t\taccessor: \"FromAccount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Template Name\",\r\n\t\t\t\taccessor: \"TemplateName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date Of Request\",\r\n\t\t\t\taccessor: \"DateOfRequest\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Value Effective\",\r\n\t\t\t\taccessor: \"ValueEffective\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"Amount\",\r\n\t\t\t\tCell: row => ({Formatter.FormatDecimal(row.value)})\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Currency\",\r\n\t\t\t\taccessor: \"Currency\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Status\",\r\n\t\t\t\taccessor: \"Status\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sub-Status\",\r\n\t\t\t\taccessor: \"SubStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reference Number\",\r\n\t\t\t\taccessor: \"TransactionId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Status\",\r\n\t\t\t\taccessor: \"Status\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Destination\",\r\n\t\t\t\taccessor: \"DestinationCountry\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.defaultModel = {\r\n\t\t\tUniqueClientId: this.isBackOffice ? undefined : this.clientId,\r\n\t\t\tDate: DateHelper.GetDate(),\r\n\t\t\tTrxDirection: undefined,\r\n\t\t\tMessageType: undefined,\r\n\t\t\tFromAmount: undefined,\r\n\t\t\tToAmount: undefined,\r\n\t\t\tBeneficiaryName: undefined,\r\n\t\t\tReferenceNumber: undefined\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: { ...this.defaultModel }\r\n\t\t};\r\n\r\n\t\tthis.EmptyObject = {};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tsuper.componentDidMount();\r\n\t\tthis.Bind(this);\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\r\n\t\tif (setAppLeftTitle)\r\n\t\t\tsetAppLeftTitle(\"Restricted Countries Transaction Trail\");\r\n\t\tif (setAppCenterTitle)\r\n\t\t\tsetAppCenterTitle(\"WIRE TRANSFER\");\r\n\t}\r\n\r\n\tSearchClick() {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tthis.ExecutePostRequest(\"/bankapi/v1.0/WireTransfer/SearchRestrictedCountriesTransactionTrail\",\r\n\t\t\tmodel,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ Data: responseData.Item });\r\n\t\t\t});\r\n\t}\r\n\r\n\tClearClick() {\r\n\t\tthis.setState({ model: { ...this.defaultModel } });\r\n\t}\r\n\r\n\tValueChanged(name, newValue) {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model || {};\r\n\t\t\tmodel[name] = newValue;\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { model, Data } = this.state;\r\n\t\tconst { IsLoading, Alert } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t<>\r\n\t\t\t\t{Alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nWireTransferRestrictedCountriesTransactionTrail.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool,\r\n\tValueChanged: PropTypes.func,\r\n\tModel: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tmenuId: PropTypes.number.isRequired,\r\n\tApprovalData: PropTypes.object,\r\n\tAfter: PropTypes.func\r\n};\r\n\r\nexport default withArtifex(WireTransferRestrictedCountriesTransactionTrail, {});","import Card from \"components/Card/Card\";\r\nimport CardBody from \"components/Card/CardBody\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer\";\r\nimport GridItem from \"components/Grid/GridItem\";\r\nimport { withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericPage, GenericDateInput, GenericGrid, GenericSelectInput, GenericTitle, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\n\r\nclass WireTransferSettledTransactionReport extends GenericPage {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.isBackOffice = ClientHelper.IsBackOffice();\r\n\t\tthis.clientId = ClientHelper.GetClientId();\r\n\r\n\t\tthis.defaultModel = {\r\n\t\t\tUniqueClientId: this.isBackOffice ? undefined : this.clientId,\r\n\t\t\tDate: DateHelper.GetDate(),\r\n\t\t\tTrxDirection: undefined,\r\n\t\t\tMessageType: undefined,\r\n\t\t\tFromAmount: undefined,\r\n\t\t\tToAmount: undefined,\r\n\t\t\tBeneficiaryName: undefined,\r\n\t\t\tReferenceNumber: undefined,\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: { ...this.defaultModel }\r\n\t\t};\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Beneficiary Name\",\r\n\t\t\t\tCell: row => ({row.original.BeneficiaryCompanyName == \"\" ? row.original.BeneficiaryName : row.original.BeneficiaryCompanyName})\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Number\",\r\n\t\t\t\taccessor: \"FromAccount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Template Name\",\r\n\t\t\t\taccessor: \"TemplateName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date Of Request\",\r\n\t\t\t\taccessor: \"DateOfRequest\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Value Effective\",\r\n\t\t\t\taccessor: \"ValueEffective\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"Amount\",\r\n\t\t\t\tCell: row => ({Formatter.FormatDecimal(row.value)})\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Currency\",\r\n\t\t\t\taccessor: \"Currency\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Status\",\r\n\t\t\t\taccessor: \"Status\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sub-Status\",\r\n\t\t\t\taccessor: \"SubStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reference Number\",\r\n\t\t\t\taccessor: \"TransactionId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Status\",\r\n\t\t\t\taccessor: \"Status\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Destination\",\r\n\t\t\t\taccessor: \"DestinationCountry\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.EmptyObject = {};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tsuper.componentDidMount();\r\n\t\tthis.Bind(this);\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\r\n\t\tif (setAppLeftTitle)\r\n\t\t\tsetAppLeftTitle(\"Settled Transaction Report\");\r\n\t\tif (setAppCenterTitle)\r\n\t\t\tsetAppCenterTitle(\"WIRE TRANSFER\");\r\n\t\t\t\r\n\t}\r\n\r\n\tSearchClick() {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tthis.ExecutePostRequest(\"/bankapi/v1.0/WireTransfer/SearchSettledTransactionReport\",\r\n\t\t\tmodel,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ Data: responseData.Item });\r\n\t\t\t});\r\n\t}\r\n\r\n\tClearClick() {\r\n\t\tthis.setState({ model: { ...this.defaultModel } });\r\n\t}\r\n\r\n\tValueChanged(name, newValue) {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model || {};\r\n\t\t\tmodel[name] = newValue;\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst {model, Data } = this.state;\r\n\t\tconst { IsLoading, Alert } = this.state;\r\n\t\t\r\n\r\n\t\treturn (\r\n\t\t\t<>\r\n\t\t\t\t{Alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nWireTransferSettledTransactionReport.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tmenuId: PropTypes.number.isRequired,\r\n\tApprovalData: PropTypes.object,\r\n\tAfter: PropTypes.func,\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool,\r\n\tValueChanged: PropTypes.func,\r\n\tModel: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(WireTransferSettledTransactionReport, {});","import Card from \"components/Card/Card\";\r\nimport CardBody from \"components/Card/CardBody\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer\";\r\nimport GridItem from \"components/Grid/GridItem\";\r\nimport { withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericPage, GenericDateInput, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\n\r\nclass StraightThroughTransactions extends GenericPage {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.isBackOffice = ClientHelper.IsBackOffice();\r\n\t\tthis.clientId = ClientHelper.GetClientId();\r\n\r\n\t\tthis.defaultModel = {\r\n\t\t\tUniqueClientId: this.isBackOffice ? undefined : this.clientId,\r\n\t\t\tDate: DateHelper.GetDate(),\r\n\t\t\tTrxDirection: undefined,\r\n\t\t\tMessageType: undefined,\r\n\t\t\tFromAmount: undefined,\r\n\t\t\tToAmount: undefined,\r\n\t\t\tBeneficiaryName: undefined,\r\n\t\t\tReferenceNumber:undefined\r\n\t\t};\r\n\r\n\t\tthis.defaultSummary = {\r\n\t\t\tTotalTransactionAmount: 0,\r\n\t\t\tTotalTransactionCount: 0,\r\n\t\t\tTotalTransactionFee: 0\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tisLoading: false,\r\n\t\t\tmodel: { ...this.defaultModel },\r\n\t\t};\r\n\r\n\t\tthis.EmptyObject = {};\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Beneficiary Name\",\r\n\t\t\t\tCell: row => ({row.original.BeneficiaryCompanyName == \"\" ? row.original.BeneficiaryName : row.original.BeneficiaryCompanyName})\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Number\",\r\n\t\t\t\taccessor: \"FromAccount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Template Name\",\r\n\t\t\t\taccessor: \"TemplateName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date Of Request\",\r\n\t\t\t\taccessor: \"DateOfRequest\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Value Effective\",\r\n\t\t\t\taccessor: \"ValueEffective\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"Amount\",\r\n\t\t\t\tCell: row => ({Formatter.FormatDecimal(row.value)})\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Currency\",\r\n\t\t\t\taccessor: \"Currency\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Status\",\r\n\t\t\t\taccessor: \"Status\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sub-Status\",\r\n\t\t\t\taccessor: \"SubStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reference Number\",\r\n\t\t\t\taccessor: \"TransactionId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Status\",\r\n\t\t\t\taccessor: \"Status\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Destination\",\r\n\t\t\t\taccessor: \"DestinationCountry\"\r\n\t\t\t}\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tsuper.componentDidMount();\r\n\t\tthis.Bind(this);\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\r\n\t\tif (setAppLeftTitle)\r\n\t\t\tsetAppLeftTitle(\"Straight Through Transactions\");\r\n\t\tif (setAppCenterTitle)\r\n\t\t\tsetAppCenterTitle(\"WIRE TRANSFER\");\r\n\t}\r\n\r\n\tSearchClick() {\r\n\t\tconst { model } = this.state;\r\n\t\tthis.ExecutePostRequest(\"/bankapi/v1.0/WireTransfer/SearchStraightThroughTransaction\",\r\n\t\t\tmodel,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ Data: responseData.Item });\r\n\t\t\t});\r\n\t}\r\n\r\n\tClearClick() {\r\n\t\tthis.setState({ model: { ...this.defaultModel } });\r\n\t}\r\n\r\n\tValueChanged(name, newValue) {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model || {};\r\n\t\t\tmodel[name] = newValue;\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { IsLoading, Alert } = this.state;\r\n\t\tconst { model, Data } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{Alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nStraightThroughTransactions.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tmenuId: PropTypes.number.isRequired,\r\n\tApprovalData: PropTypes.object,\r\n\tAfter: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tValueChanged: PropTypes.func,\r\n\tModel: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(StraightThroughTransactions, {});","import { DialogContent } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { DetailIcon,TraceIcon } from \"core/Icons\";\r\nimport MenuAuthorityRightHelper from \"core/MenuAuthorityRightHelper\";\r\nimport PropTypes, { bool, func } from \"prop-types\";\r\nimport React from \"react\";\r\nimport AccountLimitToolbar from \"views/Components/AccountLimitToolbar\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericPage, GenericSelectInput, GenericTextInput, GenericTitle, GenericLabel, GenericRadioInput, GenericAlert } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { GridColumnType, MenuCodes, ProgramCodes } from \"views/Constants/Constant\";\r\nimport BeneficiaryDetail from \"views/WireTransfer/CreateWireTransfer/BeneficiaryDetail\";\r\nimport MessageDetail from \"views/WireTransfer/CreateWireTransfer/MessageDetail\";\r\nimport { DialogTitle } from \"@material-ui/core\";\r\nimport Select from \"react-select\";\r\nimport { Proxy } from \"core\";\r\nimport Formatter from \"core/Formatter\";\r\nimport TransactionTraceHelper from \"core/TransactionTraceHelper\";\r\n\r\nclass TransactionSearchWireTransfer extends GenericPage {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.IsBackOffice = ClientHelper.IsBackOffice();\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{row.original.Direction == \"Outgoing\" &&\r\n\t\t\t\t\t\t\t this.HandleOpenDetail(row.original, 0, false)}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t{row.original.Direction == \"Incoming\" &&\r\n\t\t\t\t\t\t\t this.HandleOpenIncomingDetail(row.original.MessageId, row.original.WireTransferId, false)}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t x.Code == \"EFTOUTTRACE\")?.HasAuthority\r\n\t\t\t\t\t\t\t\t//}\r\n\t\t\t\t\t\t\t\tIcon={TraceIcon}\r\n\t\t\t\t\t\t\t\tOnClick={this.GetHandleTrace(row.original)} />\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Unique Client Id\",\r\n\t\t\t\taccessor: \"UniqueClientId\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"SenderName\",\r\n\t\t\t\taccessor: \"SenderName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Reference Number\",\r\n\t\t\t\taccessor: \"TransactionReferenceNumber\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Swift Reference Number\",\r\n\t\t\t\taccessor: \"SwiftReferenceNumber\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client User\",\r\n\t\t\t\taccessor: \"InsertUser\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Source Account Number\",\r\n\t\t\t\taccessor: \"FromAccAccountNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"To Account Number\",\r\n\t\t\t\taccessor: \"ToAccountNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"To IBAN\",\r\n\t\t\t\taccessor: \"ToIBAN\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Direction\",\r\n\t\t\t\taccessor: \"Direction\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Status\",\r\n\t\t\t\taccessor: \"Status\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"SubStatus\",\r\n\t\t\t\taccessor: \"SubStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Is Captured\",\r\n\t\t\t\taccessor: \"IsCaptured\",\r\n\t\t\t\ttype: GridColumnType.YesNo,\r\n\t\t\t\tColumnType: GridColumnType.YesNo\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reject Description\",\r\n\t\t\t\taccessor: \"PurposeOfClientReject\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"MessageType\",\r\n\t\t\t\taccessor: \"MessageType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date of Request\",\r\n\t\t\t\taccessor: \"DateRequest\"\r\n\t\t\t},\r\n\t\t\t// {\r\n\t\t\t// \tHeader: \"Value Effective\",\r\n\t\t\t// \taccessor: \"ValueEffective\"\r\n\t\t\t// },\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"Amount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t// {\r\n\t\t\t// \tHeader: \"Fee Amount\",\r\n\t\t\t// \taccessor: \"FeeAmount\",\r\n\t\t\t// \ttype: GridColumnType.Money,\r\n\t\t\t// \tColumnType: GridColumnType.Money\r\n\t\t\t// },\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Currency\",\r\n\t\t\t\taccessor: \"CurrencyName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Remittance\",\r\n\t\t\t\taccessor: \"Remittance\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Purpose Of Wire\",\r\n\t\t\t\taccessor: \"PurposeOfWire\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Beneficiary Company Name\",\r\n\t\t\t\taccessor: \"CompanyName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Country\",\r\n\t\t\t\taccessor: \"CountryFormat\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"InsertUserId\",\r\n\t\t\t\taccessor: \"InsertUserId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Update User\",\r\n\t\t\t\taccessor: \"UpdateUser\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Update User Id\",\r\n\t\t\t\taccessor: \"UpdateUserId\"\r\n\t\t\t}\r\n\r\n\t\t];\r\n\t\tthis.DetailButtonDisable = true;\r\n\t\tthis.MenuAuthorityRightHelper = new MenuAuthorityRightHelper();\r\n\r\n\t\tthis.defaultModel = {\r\n\t\t\tClientId: null,\r\n\t\t\tFromDate: DateHelper.GetDate(),\r\n\t\t\tToDate: DateHelper.GetDate(),\r\n\t\t\tMessageTypeId: null,\r\n\t\t\tSubStatusId: null,\r\n\t\t\tStatusId: null,\r\n\t\t\tAmountFrom: null,\r\n\t\t\tAmountTo: null,\r\n\t\t\tStatusParamCode: null,\r\n\t\t\tSwiftReferenceNumber: null,\r\n\t\t\tTransactionReferenceNumber: null,\r\n\t\t\tjsonFile: null,\r\n\t\t\tDescription: null\r\n\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: { UniqueClientId: ClientHelper.IsClient() ? ClientHelper.GetClientRowId() : undefined, ...this.defaultModel, IsBackOffice: false },\r\n\t\t\tsubStatusList: [],\r\n\t\t\ttempSubStatusList: [],\r\n\t\t\ttransactionList: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tisBackOffice: false,\r\n\t\t\ttemplateDetailModel: {},\r\n\t\t\tIsDomestic: {},\r\n\t\t\tdetailDialog: false,\r\n\t\t\tincomingdetailDialog: false,\r\n\t\t\tmessageDetailModel: {},\r\n\t\t\tapprovalTransactionList: [],\r\n\t\t\tapprovalDialog: false,\r\n\t\t\tmatchDialog: false,\r\n\t\t\trequestModel: { IsPending: false, Description: null },\r\n\t\t\tDenyPopup: false\r\n\t\t};\r\n\t\tthis.tswTraTable = React.createRef();\r\n\t\tthis.traceHelper = new TransactionTraceHelper(this);\r\n\t}\r\n\tGetGridButtonsRight = async () => {\r\n\t\tconst { MenuCode } = this.props;\r\n\t\tvar gridButtonRightDetail = await this.MenuAuthorityRightHelper.RightCheckList(MenuCode, [\"WIREDTLCLL\", \"WIREDTLBCK\", \"WIREDTLCLN\",]);\r\n\t\tthis.DetailButtonDisable =\r\n\t\t\tthis.props.MenuCode == MenuCodes.Menu_CallCenterWireTransferTransactionSearch ? !gridButtonRightDetail.find(x => x.Code == \"WIREDTLCLL\")?.HasAuthority :\r\n\t\t\t\tfalse;\r\n\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\tsuper.componentDidMount();\r\n\t\tthis.Bind(this);\r\n\t\tthis.GetGridButtonsRight();\r\n\t\tvar { isBackOffice } = this.state;\r\n\t\tvar model = { ...this.state.model };\r\n\r\n\t\tisBackOffice = ClientHelper.IsBackOffice();\r\n\t\tif (!isBackOffice) {\r\n\t\t\tmodel.ClientId = ClientHelper.GetClientRowId();\r\n\t\t\tthis.columns.splice(1, 1);\r\n\t\t}\r\n\t\tthis.setState({ model, isBackOffice });\r\n\t\tif (this.props.MenuCode == MenuCodes.Menu_CallCenterWireTransferTransactionSearch) {\r\n\t\t\tthis.props.setAppLeftTitle(\"Wire Transactions\");\r\n\t\t\tthis.props.setAppCenterTitle(\"CALL CENTER\");\r\n\r\n\t\t} else {\r\n\t\t\tthis.props.setAppLeftTitle(\"Wire Transactions\");\r\n\t\t\tthis.props.setAppCenterTitle(\"WIRE TRANSFER\");\r\n\t\t}\r\n\t}\r\n\r\n\tHandleChange(name, newValue, data) {\r\n\t\tthis.setState(function (state) {\r\n\t\t\tvar model = state.model || {};\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\tif (name == \"StatusId\") {\r\n\t\t\t\tif (newValue == -1) {\r\n\t\t\t\t\tmodel.StatusParamCode = null;\r\n\t\t\t\t}\r\n\t\t\t\telse if (data && data.ParameterValue == null) {\r\n\t\t\t\t\tmodel.StatusParamCode = null;\r\n\t\t\t\t}\r\n\t\t\t\telse if (data) {\r\n\t\t\t\t\tmodel.StatusParamCode = data.ParameterValue;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\tGetHandleTrace = (model) => () => {\r\n\t\tthis.traceHelper.InsertTransactionTraceWithAlert(model.TransactionId);\r\n\t}\r\n\r\n\tGetData() {\r\n\t\tthis.ExecutePostRequest(\r\n\t\t\t\"/bankapi/v1.0/WireTransfer/ClientOutgoingWireTransactionSearch\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (responseData.Item == null || responseData.Item.length < 1) {\r\n\t\t\t\t\tresponseData.Item = [];\r\n\t\t\t\t}\r\n\t\t\t\tvar approvalTransactionList = [];\r\n\t\t\t\tvar transactionList = [];\r\n\t\t\t\tresponseData.Item.forEach(element => {\r\n\t\t\t\t\tif (element.IsPending) {\r\n\t\t\t\t\t\tapprovalTransactionList.push(element);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\ttransactionList.push(element);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t\tthis.setState({ transactionList, approvalTransactionList });\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tClearModel() {\r\n\t\tvar model = { ...this.state.model };\r\n\t\tif (this.state.isBackOffice)\r\n\t\t\tthis.setState({ model: { FromDate: DateHelper.GetDateLocal(), ToDate: DateHelper.GetDateLocal() } });\r\n\t\telse\r\n\t\t\tthis.setState({ model: { ClientId: model.ClientId, FromDate: DateHelper.GetDateLocal(), ToDate: DateHelper.GetDateLocal(), approvalTransactionList: [] } });\r\n\t}\r\n\r\n\tHandleClose() {\r\n\t\tthis.setState({ detailDialog: false, incomingdetailDialog: false, approvalDialog: false, matchDialog: false });\r\n\t}\r\n\tDenyPopupClose() {\r\n\t\tvar model = { ...this.state.model };\r\n\t\tmodel[\"Description\"] = null;\r\n\r\n\t\tthis.setState({ DenyPopup : false ,model});\r\n\t}\r\n\r\n\tHandleOpenIncomingDetail(templateId, transferId, isApproval) {\r\n\t\tthis.ExecutePostRequest(\"/bankapi/v1.0/WireBeneficiaryTemplate/SearchMessage\",\r\n\t\t\t{ Id: templateId },\r\n\t\t\tresponseData => {\r\n\t\t\t\tconst tempModel = { ...responseData.Item };\r\n\t\t\t\ttempModel.TransferId = transferId;\r\n\t\t\t\ttempModel.TempOrderingInstitutionSwiftCode = tempModel.OrderingInstitutionSwiftCode;\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tmessageDetailModel: tempModel,\r\n\t\t\t\t\tincomingdetailDialog: true,\r\n\t\t\t\t\tapprovalDialog: isApproval\r\n\t\t\t\t});\r\n\t\t\t});\r\n\t}\r\n\r\n\r\n\tHandleDisApproval(request) {\r\n\t\tif(this.state.model.Description != null && this.state.model.Description != \"\"){\r\n\t\t\trequest.Description = this.state.model.Description;\r\n\t\t\trequest.IsApproval = false;\r\n\t\t\t\r\n\t\t\tthis.ExecutePostRequest(\"/bankapi/v1.0/WireTransfer/ClientApproveOrDenyOutgoingWireTransaction\",\r\n\t\t\t\trequest,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tthis.HandleClose();\r\n\t\t\t\t\t\tthis.DenyPopupClose();\r\n\t\r\n\t\t\t\t\t\tthis.ShowGenericMessage(\"success\", \"Create\", \"Disapproved successfully.\");\r\n\t\t\t\t\t\tthis.GetData();\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t}\r\n\t\telse{\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Description Required Field\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t}\r\n\r\n\tHandleApproval(request) {\t\r\n\t\trequest.IsApproval = true;\r\n\t\tthis.ExecutePostRequest(\"/bankapi/v1.0/WireTransfer/ClientApproveOrDenyOutgoingWireTransaction\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.HandleClose();\r\n\r\n\t\t\t\t\tthis.ShowGenericMessage(\"success\", \"Create\", \"Approved successfully.\");\r\n\t\t\t\t\tthis.GetData();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t}\r\n\r\n\tHandleOpenDetail(model, transferId, isApproval) {\r\n\t\tthis.ExecutePostRequest(\"/bankapi/v1.0/WireBeneficiaryTemplate/Search\",\r\n\t\t\t{ Id: model.TemplateId, IsTemplate: false },\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tif (responseData.Item != null && responseData.Item.length > 0) {\r\n\r\n\t\t\t\t\t\tconst tempModel = { ...responseData.Item[0] };\r\n\t\t\t\t\t\ttempModel.IsDomestic = tempModel.BankCountry != null && tempModel.BankCountry.ISO2 == \"CA\";\r\n\t\t\t\t\t\ttempModel.TransferId = transferId;\r\n\t\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\t\ttemplateDetailModel: tempModel,\r\n\t\t\t\t\t\t\tIsDomestic: responseData.Item[0].IsDomestic,\r\n\t\t\t\t\t\t\tdetailDialog: true,\r\n\t\t\t\t\t\t\tapprovalDialog: isApproval,\r\n\t\t\t\t\t\t\trequestModel: model\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.props.showMessage(\"warning\", \"Detail!\", \"Detail not found!\");\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t}\r\n\tValueChangedForReportType = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\tExportClick = () => {\r\n\t\tvar tswTraColumns = [];\r\n\t\tthis.tswTraTable.current.props.Columns.forEach(c => {\r\n\t\t\tif (c.show == undefined || c.show) {\r\n\t\t\t\ttswTraColumns.push({ value: c.accessor, title: c.Header, columntype: c.ColumnType, type: c.type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: tswTraColumns, ExportSelectedColumns: tswTraColumns });\r\n\t}\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\r\n\t\tconst temp = { ...this.state.model };\r\n\r\n\r\n\t\tvar jsonColList = [];\r\n\r\n\t\tvar tswTraColumns = {};\r\n\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\ttswTraColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t});\r\n\t\tjsonColList.push(tswTraColumns);\r\n\r\n\t\tvar mytitle = \"Wire Transactions\";\r\n\r\n\t\ttemp.jsonFile = {\r\n\t\t\tcolmns: jsonColList,\r\n\t\t\tformat: this.state.ExportReportType,\r\n\t\t\ttitle: mytitle\r\n\t\t};\r\n\r\n\t\tvar request = {\r\n\t\t\tClientId: temp.ClientId,\r\n\t\t\t\tFromDate:temp.FromDate,\r\n\t\t\t\tToDate:temp.ToDate,\r\n\t\t\tStatusId: temp.StatusId,\r\n\t\t\t\tSubStatusId : temp.SubStatusId,\r\n\t\t\t\tMessageTypeId:temp.MessageTypeId,\r\n\t\t\t\tAmountFrom:temp.AmountFrom,\r\n\t\t\t\tAmountTo:temp.AmountTo,\r\n\t\t\t\tSwiftReferenceNumber:temp.SwiftReferenceNumber,\r\n\t\t\t\tTransactionReferenceNumber:temp.TransactionReferenceNumber,\r\n\t\t\tjsonFile: temp.jsonFile\r\n\t\t};\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\"/bankapi/v1.0/WireTransfer/WireTransactionsExportDownload\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t},\r\n\t\t\tthis.props.showMessage\r\n\t\t);\r\n\t}\r\n\r\n\tshowLoading = () => { this.setState({ isLoading: true }); }\r\n\thideLoading = () => { this.setState({ isLoading: false }); }\r\n\r\n\trender() {\r\n\t\tconst { Disabled, classes} = this.props;\r\n\t\tconst { IsLoading, Alert } = this.state;\r\n\t\tconst { model, isBackOffice, templateDetailModel, incomingdetailDialog, messageDetailModel, approvalTransactionList, approvalDialog, matchDialog, DenyPopup } = this.state;\r\n\r\n\t\tconst renderColumns = [\r\n\t\t\t...this.columns\r\n\t\t];\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{Alert}\r\n\t\t\t\t\r\n\t\t\t\t{!this.IsBackOffice &&\r\n\t\t\t\t\t { this.setState({ LimitBalanceData: data, isLoading: false }); }} />\r\n\t\t\t\t}\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t

Transaction Details

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\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n\t\t\t\t\t\r\n\t\t\t\t\t\t{this.state.requestModel.IsPending == true &&\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t{this.state.requestModel.IsPending == true &&\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={model.ClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\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
\r\n\t\t\t\t{!this.IsBackOffice &&\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nTransactionSearchWireTransfer.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\thandleOperationType: func,\r\n\tshowQuestionMessage: func,\r\n\tsetAppLeftTitle: func,\r\n\tsetAppCenterTitle: func,\r\n\tDisabled: bool,\r\n\tValueChanged: PropTypes.func,\r\n\tModel: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(TransactionSearchWireTransfer, {});","import { DialogContent } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes, { bool, func } from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericDialog, GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericPage, GenericTitle, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { Direction,GridColumnType } from \"views/Constants/Constant.js\";\r\nimport MessageDetail from \"views/WireTransfer/CreateWireTransfer/MessageDetail\";\r\n\r\n\r\nclass UnSettledWireTransfer extends GenericPage {\r\n\r\n\tconstructor(props) {\r\n\r\n\r\n\t\tsuper(props);\r\n\r\n\t\tthis.sortedName = { Member: \"Name\" };\r\n\t\tthis.emptyObject = {};\r\n\t\tthis.renderItemUniqueClient = {};\r\n\t\tthis.renderItemAccount = {};\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Beneficiary Name\",\r\n\t\t\t\taccessor: \"BeneficiaryName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Benefiary Account Number\",\r\n\t\t\t\taccessor: \"BeneficiaryAccountNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Swift Reference Number\",\r\n\t\t\t\taccessor: \"SwiftReferenceNumber\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date of Request\",\r\n\t\t\t\taccessor: \"DateRequest\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{Formatter.FormatDateUtc(row.value)}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Value Effective\",\r\n\t\t\t\taccessor: \"ValueEffective\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{Formatter.FormatDateUtc(row.value)}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"Amount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{ \r\n\t\t\t\tHeader: \"Remittance\",\r\n\t\t\t\taccessor: \"Remittance\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Beneficiary Identifier\",\r\n\t\t\t\taccessor: \"BeneficiaryIdentifier\"\r\n\t\t\t},\r\n\t\t\t\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Bank Opearation Code\",\r\n\t\t\t\taccessor: \"BankOperationCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sender Account Number\",\r\n\t\t\t\taccessor: \"SenderAccountNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sender Swift Code\",\r\n\t\t\t\taccessor: \"SenderSwiftCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sender Name\",\r\n\t\t\t\taccessor: \"SenderName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sender Address\",\r\n\t\t\t\taccessor: \"SenderAddress\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sender Additional Information\",\r\n\t\t\t\taccessor: \"SenderAdditionalInformation\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Ordering Institution Swift Code\",\r\n\t\t\t\taccessor: \"OrderingInstitutionSwiftCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Ordering Institution Party Identifier\",\r\n\t\t\t\taccessor: \"OrderingInstitutionPartyIdentifier\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Ordering Institution Party Address\",\r\n\t\t\t\taccessor: \"OrderingInstitutionAddress\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Intermediary Name\",\r\n\t\t\t\taccessor: \"IntermediaryName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Beneficiary Bank Party Identifier\",\r\n\t\t\t\taccessor: \"BeneficiaryBankPartyIdentifier\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Details Of Charges\",\r\n\t\t\t\taccessor: \"DetailsOfCharges\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sender Party Identifier Account\",\r\n\t\t\t\taccessor: \"WireTransferMessageSenderParty.Account\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sender Party Identifier Code\",\r\n\t\t\t\taccessor: \"WireTransferMessageSenderParty.Code\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sender Party Identifier CountryCode\",\r\n\t\t\t\taccessor: \"WireTransferMessageSenderParty.CountryCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sender Party Identifier Identifier\",\r\n\t\t\t\taccessor: \"WireTransferMessageSenderParty.Identifier\"\r\n\t\t\t},\r\n\r\n\r\n\t\t];\r\n\r\n\r\n\r\n\t\tthis.defaultMessageModel = {\r\n\t\t\tCustomerName: null,\r\n\t\t\tAccountNumber: null,\r\n\t\t\tDateOfRequest: null,\r\n\t\t\tCreationDate: null,\r\n\t\t\tValueDate: null,\r\n\t\t\tBeneficiaryCompanyName: null,\r\n\t\t\tBeneficiaryFirstName: null,\r\n\t\t\tBeneficiaryLastName: null,\r\n\t\t\tBeneficiaryAddress: null,\r\n\t\t\tBeneficiaryAddress2: null,\r\n\t\t\tCustomerAddress: null,\r\n\t\t\tBeneficiaryCountry: null,\r\n\t\t\tBeneficiaryCity: null,\r\n\t\t\tBeneficiaryProvince: null,\r\n\t\t\tBeneficiaryPostalCode: null,\r\n\t\t\tBeneficiaryBankCountry: null,\r\n\t\t\tBeneficiaryBankPostalCode: null,\r\n\t\t\tBeneficiaryBankInstitution: null,\r\n\t\t\tRemittance: null,\r\n\t\t\tBeneficiaryAccountNumber: null,\r\n\t\t\tIntermediarySwiftCode: null,\r\n\t\t\tAmount: null,\r\n\t\t\tCurrency: null,\r\n\t\t\tPurposeOfWire: null,\r\n\t\t\tReference: null,\r\n\t\t\tBeneficiaryBank: null,\r\n\t\t\tBeneficiaryBankAddress: null,\r\n\t\t\tBeneficiaryBankAddress2: null,\r\n\t\t\tBeneficiaryBankCity: null,\r\n\t\t\tBeneficiaryBankProvince: null,\r\n\t\t\tTransitNumber: null,\r\n\t\t};\r\n\r\n\t\tthis.defaultModel = {\r\n\t\t\tClientId: null,\r\n\t\t\tFromDate: DateHelper.GetDate(),\r\n\t\t\tToDate: DateHelper.GetDate(),\r\n\t\t\tDirectionParamValue: Direction.Incoming,\r\n\t\t\tMessageTypeId: null,\r\n\t\t\tSubStatusId: null,\r\n\t\t\tStatusId: null,\r\n\t\t\tAmountFrom: null,\r\n\t\t\tAmountTo: null,\r\n\t\t\tStatusParamCode: null,\r\n\t\t\tAccountId: null,\r\n\t\t\tUniqueClientId: null,\r\n\t\t\tSwiftReferenceNumber: null,\r\n\t\t\tTransactionReferenceNumber: null\r\n\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: { ...this.defaultModel },\r\n\t\t\tsubStatusList: [],\r\n\t\t\ttempSubStatusList: [],\r\n\t\t\ttransactionList: [],\r\n\t\t\tapprovalTransactionList: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tisBackOffice: false,\r\n\t\t\tmessageDetailModel: {},\r\n\t\t\tIsDomestic: {},\r\n\t\t\tdetailDialog: false,\r\n\t\t\tapprovalDialog: false,\r\n\t\t\tmatchDialog: false\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tsuper.componentDidMount();\r\n\t\tthis.Bind(this);\r\n\t\tthis.props.setAppLeftTitle(\"Un-Settled Transactions\");\r\n\t\tthis.props.setAppCenterTitle(\"Wire Transfer\");\r\n\t}\r\n\r\n\tHandleChange(name, newValue, data) {\r\n\t\tthis.setState(function (state) {\r\n\t\t\tvar model = state.model || {};\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\tif (name == \"StatusId\") {\r\n\t\t\t\tif (newValue == -1) {\r\n\t\t\t\t\tmodel.StatusParamCode = null;\r\n\t\t\t\t}\r\n\t\t\t\telse if (data.ParameterValue == null) {\r\n\t\t\t\t\tmodel.StatusParamCode = null;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tmodel.StatusParamCode = data.ParameterValue;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\r\n\tHandleMessageChange(name, newValue) {\r\n\t\tconst { messageDetailModel } = this.state;\r\n\t\tmessageDetailModel[name] = newValue;\r\n\t\tthis.setState({ messageDetailModel });\r\n\t}\r\n\r\n\tGetData() {\r\n\t\tthis.ExecutePostRequest(\r\n\t\t\t\"/bankapi/v1.0/WireTransfer/UnSettledIncomingTransactionSearch\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (responseData.Item == null || responseData.Item.length < 1) {\r\n\t\t\t\t\tresponseData.Item = [];\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ transactionList: responseData.Item });\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tClearModel() {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tvar clientId = this.state.isBackOffice ? null : model.ClientId;\r\n\t\tvar newModel = { ...this.defaultModel };\r\n\t\tnewModel.ClientId = clientId;\r\n\t\tthis.setState({ model: newModel, transactionList: [] });\r\n\t}\r\n\r\n\r\n\tHandleClose() {\r\n\t\tthis.CloseDialog();\r\n\t}\r\n\r\n\tCloseDialog() {\r\n\t\t\tthis.setState({ detailDialog: false, approvalDialog: false, matchDialog: false, model: this.defaultModel, messageDetailModel: this.defaultMessageModel });\r\n\t}\r\n\r\n\tHandleOpenDetail(templateId, transferId, isApproval) {\r\n\t\tthis.ExecutePostRequest(\"/bankapi/v1.0/WireBeneficiaryTemplate/SearchMessage\",\r\n\t\t\t{ Id: templateId },\r\n\t\t\tresponseData => {\r\n\t\t\t\tconst tempModel = { ...responseData.Item };\r\n\t\t\t\ttempModel.TransferId = transferId;\r\n\t\t\t\ttempModel.TempOrderingInstitutionSwiftCode = tempModel.OrderingInstitutionSwiftCode;\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tmessageDetailModel: tempModel,\r\n\t\t\t\t\tdetailDialog: true,\r\n\t\t\t\t\tapprovalDialog: isApproval\r\n\t\t\t\t});\r\n\t\t\t});\r\n\t}\r\n\r\n\tGetRenderItemUniqueClient = (x) => {\r\n\t\tthis.renderItemUniqueClient = `${x.Name} - ${x.UniqueClientId}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\tGetRenderItemAccount = (x) => {\r\n\t\tthis.renderItemAccount = `${x.AccountNumber} - ${x.AccountName}`;\r\n\t\treturn this.renderItemAccount;\r\n\t}\r\n\r\n\tHandleMatchDialog = () => {\r\n\t\tthis.setState({ matchDialog: false });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { IsLoading, Alert } = this.state;\r\n\t\tconst { model, messageDetailModel, detailDialog,transactionList } = this.state;\r\n\r\n\r\n\r\n\t\tconst renderTransactionColumns = [\r\n\t\t\t ...this.columns];\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{Alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t

Transaction Details

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nUnSettledWireTransfer.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\thandleOperationType: func,\r\n\tshowQuestionMessage: func,\r\n\tsetAppLeftTitle: func,\r\n\tsetAppCenterTitle: func,\r\n\tDisabled: bool,\r\n\tValueChanged: PropTypes.func,\r\n\tModel: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(UnSettledWireTransfer, {});","import style from \"assets/jss/material-dashboard-pro-react/views/CreateWireBeneficiaryTemplateStyle.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { withArtifex } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport { GenericGrid, GenericPage, GenericExpansionPanel } from \"views/Components/Generic\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport BeneficiaryDetail from \"../CreateWireTransfer/BeneficiaryDetail.jsx\";\r\nimport AccountLimitToolbar from \"views/Components/AccountLimitToolbar.jsx\";\r\nimport ClientHelper from \"core/ClientHelper.js\";\r\nimport { ProgramCodes } from \"views/Constants/Constant.js\";\r\nimport StringHelper from \"core/StringHelper.js\";\r\nimport {Proxy} from \"core\";\r\nclass CreateWireBeneficiaryTemplate extends GenericPage {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.isClient = ClientHelper.IsClient();\r\n\t\tthis.getappCenterTitle = \"Empty\";\r\n\t\tthis.getappLeftTitle = \"Empty\";\r\n\t\tthis.defaultTemplateModel = {\r\n\t\t\trowIndex: null,\r\n\t\t\tTemplateId: null,\r\n\t\t\tAlias: \"\",\r\n\t\t\tTemplateName: \"\",\r\n\t\t\tCompanyName: \"\",\r\n\t\t\tName: \"\",\r\n\t\t\tMiddleName: \"\",\r\n\t\t\tLastName: \"\",\r\n\t\t\tAddressLine1: \"\",\r\n\t\t\tAddressLine2: \"\",\r\n\t\t\tZipCode: \"\",\r\n\t\t\tCityId: null,\r\n\t\t\tCity: null,\r\n\t\t\tProvinceId: null,\r\n\t\t\tProvince: null,\r\n\t\t\tCountryId: null,\r\n\t\t\tCountry: \"\",\r\n\t\t\tCurrencyId: null,\r\n\t\t\tCurrency: null,\r\n\t\t\tBankName: null,\r\n\t\t\tBankInstitution: null,\r\n\t\t\tBankTransitNumber: null,\r\n\t\t\tBankBranchName: null,\r\n\t\t\tBankFinInsId: null,\r\n\t\t\tBankFinIns: null,\r\n\t\t\tBankBranchId: null,\r\n\t\t\tBankBranch: null,\r\n\t\t\tAccountNumber: null,\r\n\t\t\tBankSwiftCode: null,\r\n\t\t\tBankAddressLine1: null,\r\n\t\t\tBankAddressLine2: null,\r\n\t\t\tBankZipCode: null,\r\n\t\t\tBankCityId: null,\r\n\t\t\tBankCity: null,\r\n\t\t\tBankProvinceId: null,\r\n\t\t\tBankProvince: null,\r\n\t\t\tBankCountryId: null,\r\n\t\t\tBankCountry: null,\r\n\t\t\tBankCityName: null,\r\n\t\t\tBankProvinceName: null,\r\n\t\t\tFIID: null,\r\n\t\t\tTransitNumber: null,\r\n\t\t\tBankCountryName: null,\r\n\t\t\tIsDomestic: null,\r\n\t\t\tInsertDateTime: null\r\n\t\t};\r\n\t\tthis.ClearModel = { ...this.defaultTemplateModel };\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.defaultTemplateModel,\r\n\t\t\tlist: [],\r\n\t\t\tClientInfo: {}\r\n\t\t};\r\n\r\n\t\tthis.TemplateColumns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Template Name\",\r\n\t\t\t\taccessor: \"TemplateName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Company Name\",\r\n\t\t\t\taccessor: \"CompanyName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Name\",\r\n\t\t\t\taccessor: \"Name\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Middle Name\",\r\n\t\t\t\taccessor: \"MiddleName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Last Name\",\r\n\t\t\t\taccessor: \"LastName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Address Line 1\",\r\n\t\t\t\taccessor: \"AddressLine1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"AddressLine2\",\r\n\t\t\t\taccessor: \"AddressLine2\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Zip Code\",\r\n\t\t\t\taccessor: \"ZipCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"City\",\r\n\t\t\t\taccessor: \"City.Name\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Province\",\r\n\t\t\t\taccessor: \"Province.Name\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Country\",\r\n\t\t\t\taccessor: \"Country.Name\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Beneficiary Bank\",\r\n\t\t\t\tCell: row => ({row.original.BankFinIns != null ? row.original.BankFinIns.Description : row.original.BankName})\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transit Number\",\r\n\t\t\t\tCell: row => ({row.original.BankBranch != null ? row.original.BankBranch.TransitNumber : row.original.BankTransitNumber})\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"FIID\",\r\n\t\t\t\tCell: row => ({row.original.BankFinIns != null ? row.original.BankFinIns.FinIns : \"\"})\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Number\",\r\n\t\t\t\taccessor: \"AccountNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Bank Swift Code\",\r\n\t\t\t\taccessor: \"BankSwiftCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Address Line 1\",\r\n\t\t\t\taccessor: \"BankAddressLine1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Bank Address Line 2\",\r\n\t\t\t\taccessor: \"BankAddressLine2\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Zip Code\",\r\n\t\t\t\taccessor: \"BankZipCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"City\",\r\n\t\t\t\taccessor: \"BankCity.Name\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Province\",\r\n\t\t\t\taccessor: \"BankProvince.Name\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Bank Country\",\r\n\t\t\t\taccessor: \"BankCountry.Name\"\r\n\t\t\t}\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tsuper.componentDidMount();\r\n\t\tthis.Bind(this);\r\n\t\tthis.props.setAppLeftTitle(\"List of Templates\");this.getappLeftTitle = \"List of Templates\";\r\n\t\tthis.props.setAppCenterTitle(\"WIRE TRANSFER\");this.getappCenterTitle = \"WIRE TRANSFER\";\r\n\r\n\t\tthis.FetchCanadaPost();\r\n\t}\r\n\r\n\tFetchCanadaPost() {\r\n\t\tthis.ExecutePostRequest(\"/coreapi/v1.0/Parameter/Search\",\r\n\t\t\t{\r\n\t\t\t\tParameterCode: \"CanadaPostApiKey\",\r\n\t\t\t\tParameterValue: \"CP\"\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (responseData.Item == null) {\r\n\t\t\t\t\tconsole.log(\"Canada Post Api key not fetched !\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item[0] == null) {\r\n\t\t\t\t\tconsole.log(\"Canada Post Api key not fetched !\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvar apikey = responseData.Item[0].ParameterDesc;\r\n\t\t\t\tconsole.log(\"KEY CP \", apikey);\r\n\t\t\t\tvar FillBankAddressFields = this.FillBankAddressFields;\r\n\t\t\t\tvar FillBeneficiaryAddressFields = this.FillBeneficiaryAddressFields;\r\n\t\t\t\t// @ts-ignore\r\n\t\t\t\tvar url = window.CanadaPostAddressCompleteUrl;\r\n\t\t\t\tvar path = url + apikey;\r\n\t\t\t\tvar CanadaPostRequest=this.SubmitCanadaPostRequest;\r\n\r\n\t\t\t\tvar pca;\r\n\t\t\t\tconst script = document.createElement(\"script\");\r\n\t\t\t\tscript.src = path;\r\n\t\t\t\tscript.async = false;\r\n\t\t\t\tdocument.head.appendChild(script);\r\n\t\t\t\tscript.onload = function () {\r\n\t\t\t\t\t// @ts-ignore\r\n\t\t\t\t\tpca = window.pca;\r\n\t\t\t\t\tif (pca != null) {\r\n\t\t\t\t\t\tvar fields = [\r\n\t\t\t\t\t\t\t{ element: \"bank-street-address\", field: \"Line1\", mode: pca.fieldMode.SEARCH },\r\n\t\t\t\t\t\t\t{ element: \"bank-street-address2\", field: \"Line2\", mode: pca.fieldMode.POPULATE },\r\n\t\t\t\t\t\t\t{ element: \"bank-postcode\", field: \"PostalCode\", mode: pca.fieldMode.SEARCH }\r\n\t\t\t\t\t\t];\r\n\t\t\t\t\t\tvar options = {\r\n\t\t\t\t\t\t\tkey: apikey\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t\tvar control = new pca.Address(fields, options);\r\n\r\n\t\t\t\t\t\tcontrol.listen(\"populate\", function (address) {\r\n\t\t\t\t\t\t\tFillBankAddressFields(address);\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\tvar fields2 = [\r\n\t\t\t\t\t\t\t{ element: \"beneficiary-street-address\", field: \"Line1\", mode: pca.fieldMode.SEARCH },\r\n\t\t\t\t\t\t\t{ element: \"beneficiary-street-address2\", field: \"Line2\", mode: pca.fieldMode.POPULATE },\r\n\t\t\t\t\t\t\t{ element: \"beneficiary-postcode\", field: \"PostalCode\", mode: pca.fieldMode.SEARCH }\r\n\t\t\t\t\t\t];\r\n\r\n\t\t\t\t\t\tvar control2 = new pca.Address(fields2, options);\r\n\t\t\t\t\t\tCanadaPostRequest();\r\n\r\n\t\t\t\t\t\tcontrol2.listen(\"populate\", function (address) {\r\n\t\t\t\t\t\t\tFillBeneficiaryAddressFields(address);\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t});\r\n\t}\r\n\tSubmitCanadaPostRequest = async () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tvar requestdata = { \r\n\r\n\t\t\tUniqueClientId: null,\r\n\t\t\tMenuCode:this.props.getMenuCode,\r\n\t\t\tAppCenterTitle:this.getappCenterTitle,\r\n\t\t\tAppLeftTitle:this.getappLeftTitle\r\n\t\t};\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Reporting/CanadaPostRequestReportInsert\",\r\n\t\t\trequestdata,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (responseData.Item != null ) {\r\n\t\t\t\t\t \r\n\t\t\t\t}\r\n\t\t\t},\r\n \t\t);\r\n\t\t// var result = await this.props.ExecuteApiPost(\"/bankapi/v1.0/Reporting/CanadaPostRequestReportInsert\", requestdata);\r\n\t}\r\n\tFillBankAddressFields(request, continueWith = null) {\r\n\t\tthis.ExecutePostRequest(\"/bankapi/v1.0/WireCountry/CanadaPost\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tconst { model } = this.state;\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tmodel.BankCountryId = responseData.Item.CountryId;\r\n\t\t\t\t\tmodel.BankProvinceId = responseData.Item.ProvinceId;\r\n\t\t\t\t\tmodel.BankCityId = responseData.Item.CityId;\r\n\t\t\t\t\tmodel.IsDomestic = model.CountryIso2 == \"CA\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmodel.BankCountryId = 0;\r\n\t\t\t\t\tmodel.BankProvinceId = 0;\r\n\t\t\t\t\tmodel.BankCityId = 0;\r\n\t\t\t\t}\r\n\t\t\t\tmodel.BankAddressLine1 = request.Line1;\r\n\t\t\t\tmodel.BankAddressLine2 = request.Line2;\r\n\t\t\t\tmodel.BankZipCode = request.PostalCode;\r\n\t\t\t\tthis.setState({ model }, continueWith);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tFillBeneficiaryAddressFields(request, continueWith = null) {\r\n\t\tthis.ExecutePostRequest(\"/bankapi/v1.0/WireCountry/CanadaPost\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tconst { model } = this.state;\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tmodel.CountryId = responseData.Item.CountryId;\r\n\t\t\t\t\tmodel.ProvinceId = responseData.Item.ProvinceId;\r\n\t\t\t\t\tmodel.CityId = responseData.Item.CityId;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmodel.CountryId = 0;\r\n\t\t\t\t\tmodel.ProvinceId = 0;\r\n\t\t\t\t\tmodel.CityId = 0;\r\n\t\t\t\t}\r\n\t\t\t\tmodel.AddressLine1 = request.Line1;\r\n\t\t\t\tmodel.AddressLine2 = request.Line2;\r\n\t\t\t\tmodel.ZipCode = request.PostalCode;\r\n\t\t\t\tthis.setState({ model }, continueWith);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tValueChanged(name, newValue, data) {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tif (name == \"CurrencyId\" && this.defaultTemplateModel.CurrencyId == null) {\r\n\t\t\tthis.defaultTemplateModel.CurrencyId = newValue;\r\n\t\t}\r\n\t\tif (name == \"Alias\" && newValue != null) {\r\n\t\t\tvar check = this.onlyLetterAndDigit(newValue);\r\n\t\t\tif (check == true)\r\n\t\t\t\treturn true;\r\n\t\t}\r\n\t\tmodel[name] = newValue;\r\n\t\tif (name == \"BankCountryId\" && data != null) {\r\n\t\t\tmodel.IsDomestic = data.ISO2 == \"CA\";\r\n\t\t\tmodel.ProvinceId = null;\r\n\t\t\tmodel.CityId = null;\r\n\t\t}\r\n\t\tif (name == \"BankCountryId\" && newValue == null) {\r\n\t\t\tmodel.BankCityId = null;\r\n\t\t\tmodel.BankProvinceId = null;\r\n\t\t}\r\n\t\tif (name == \"CountryId\" && newValue == null) {\r\n\t\t\tmodel.CityId = null;\r\n\t\t\tmodel.ProvinceId = null;\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tSearchClick(continueWith = null) {\r\n\r\n\t\tthis.ExecutePostRequest(\"/bankapi/v1.0/WireBeneficiaryTemplate/Search\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ list: responseData.Item }, continueWith);\r\n\t\t\t});\r\n\t}\r\n\r\n\tClearClick() {\r\n\t\tthis.setState({ model: { ...this.ClearModel } });\r\n\r\n\t}\r\n\tInsertUpdateClick() {\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tconst { model } = this.state;\r\n\t\tmodel.IsTemplate = true;\r\n\t\tthis.ExecutePostRequest(\"/bankapi/v1.0/WireBeneficiaryTemplate/InsertOrUpdate\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tconst { model } = this.state;\r\n\t\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\t\tmodel.TemplateId = responseData.Item.Id;\r\n\t\t\t\t\t\tthis.setState({ model }, () => {\r\n\t\t\t\t\t\t\tthis.ShowGenericMessage(\"success\", \"Template\", \"Template Submitted.\", false, this.SearchClick);\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t}\r\n\r\n\tUpdateClick() {\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tconst { model } = this.state;\r\n\t\tif (model.TemplateId == null)\r\n\t\t\treturn;\r\n\r\n\t\tmodel.IsTemplate = true;\r\n\t\tthis.ExecutePostRequest(\"/bankapi/v1.0/WireBeneficiaryTemplate/InsertOrUpdate\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tconst { model } = this.state;\r\n\t\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\t\tmodel.TemplateId = responseData.Item.Id;\r\n\t\t\t\t\t\tthis.setState({ model }, () => {\r\n\t\t\t\t\t\t\tthis.ShowGenericMessage(\"success\", \"Template\", \"Template Submitted.\", false, this.SearchClick);\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t}\r\n\r\n\tSelectedRowChange(index) {\r\n\t\tconst { list } = this.state;\r\n\t\tvar tempModel = { ...list[index] };\r\n\t\ttempModel.IsDomestic = tempModel.BankCountry != null && tempModel.BankCountry.ISO2 == \"CA\";\r\n\t\tif (tempModel.IsDomestic) {\r\n\t\t\ttempModel.BankName = null;\r\n\t\t\ttempModel.BankBranchName = null;\r\n\t\t} else {\r\n\t\t\ttempModel.BankFinIns = null;\r\n\t\t\ttempModel.BankBranchId = null;\r\n\t\t}\r\n\t\ttempModel.CurrencyId = this.defaultTemplateModel.CurrencyId;\r\n\t\ttempModel.rowIndex = index;\r\n\t\tthis.setState({ model: { ...tempModel } });\r\n\t}\r\n\r\n\tDeleteClick() {\r\n\t\tthis.ShowGenericMessage(\"warning\", \"Are you sure?\", \"The selected item will be deleted, are you sure?\", true, this.DeleteItem);\r\n\t}\r\n\r\n\tValidate() {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tvar messages = [];\r\n\r\n\t\tconst isIndividual = model.CompanyName == null || model.CompanyName == \"\";\r\n\t\tif (isIndividual) {\r\n\t\t\tif (model.Name == null || model.Name == \"\") messages.push(\"Name can not be null.\");\r\n\t\t\tif (model.LastName == null || model.LastName == \"\") messages.push(\"LastName can not be null.\");\r\n\t\t}\r\n\t\tif (model.AddressLine1 == null || model.AddressLine1 == \"\") messages.push(\"Address Line 1 can not be null.\");\r\n\t\t// if (Template.AddressLine2 == null || Template.AddressLine2 == \"\") messages.push(\"Address Line 2 can not be null.\");\r\n\t\tif (model.ZipCode == null || model.ZipCode == \"\") messages.push(\"ZipCode can not be null.\");\r\n\t\tif (model.CityId == null) messages.push(\"City can not be null.\");\r\n\t\tif (model.ProvinceId == null) messages.push(\"Provice can not be null.\");\r\n\t\tif (model.CountryId == null || model.CountryId == \"\") messages.push(\"Country can not be null.\");\r\n\r\n\t\tif (model.BankCountryId == null || model.BankCountryId < 1) messages.push(\"Bank Country can not be null.\");\r\n\t\tvar accountIsEmpty = model.AccountNumber == null || model.AccountNumber == \"\";\r\n\t\tvar ibanIsEmpty = model.BankInstitution == null || model.BankInstitution == \"\";\r\n\t\tif (accountIsEmpty && ibanIsEmpty) {\r\n\t\t\tmessages.push(\"Account Number or IBAN can not be null. Please fill Account Number or IBAN field.\");\r\n\t\t}\r\n\r\n\t\tif (model.BankZipCode == null || model.BankZipCode == \"\") messages.push(\"Bank ZipCode can not be null.\");\r\n\t\tif (model.IsDomestic && !accountIsEmpty) {\r\n\t\t\tif (model.BankFinInsId == null || model.BankFinInsId < 1) messages.push(\"FIID can not be null.\");\r\n\t\t\tif (model.BankBranchId == null || model.BankBranchId < 1) messages.push(\"Branch can not be null.\");\r\n\t\t} else if (!accountIsEmpty) {\r\n\t\t\tif (model.BankName == null || model.BankName == \"\") messages.push(\"Bank Name can not be null.\");\r\n\t\t}\r\n\t\t// if (model.IsDomestic) {\r\n\t\t// \tif (model.BankTransitNumber == null || model.BankTransitNumber == \"\") messages.push(\"Bank Transit Number can not be null.\");\r\n\t\t// }\r\n\t\tif (model.BankSwiftCode == null || model.BankSwiftCode == \"\") messages.push(\"Swift Code can not be null.\");\r\n\r\n\t\tif (model.BankCityId == null || model.BankCityId == 0) messages.push(\"Bank City can not be null.\");\r\n\t\tif (model.BankProvinceId == null || model.BankProvinceId == 0) messages.push(\"Bank Province can not be null.\");\r\n\t\tif (model.BankAddressLine1 == null || model.BankAddressLine1 == \"\") messages.push(\"Bank Address Line 1 can not be null.\");\r\n\t\t// if (model.BankAddressLine2 == null || model.BankAddressLine2 == \"\") messages.push(\"Bank Address Line 2 can not be null.\");\r\n\r\n\t\tif (model.Alias) {\r\n\t\t\tvar check = this.onlyLetterAndDigit(model.Alias);\r\n\t\t\tif (check == true)\r\n\t\t\t\tmessages.push(\"Remittance Information contains invalid character!\");\r\n\t\t}\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.ShowGenericMessage(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\tonlyLetterAndDigit = (str) => {\r\n\t\treturn StringHelper.VerifiyDigitAndLetterForWire(str);\r\n\t}\r\n\r\n\tDeleteItem() {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tthis.ExecutePostRequest(\"/bankapi/v1.0/WireBeneficiaryTemplate/Delete\", { \"TemplateId\": model.TemplateId },\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tconst { model } = this.state;\r\n\t\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\t\tmodel.TemplateId = responseData.Item.Id;\r\n\t\t\t\t\t\tthis.setState({ model: { ...this.defaultTemplateModel } }, () => {\r\n\t\t\t\t\t\t\tthis.ShowGenericMessage(\"success\", \"Template\", \"Selected item deleted.\", false, this.SearchClick);\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t}\r\n\trender() {\r\n\t\tconst { IsLoading, Alert } = this.state;\r\n\t\tconst { model, list } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst canDelete = model.TemplateId != null && model.TemplateId != 0;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{Alert}\r\n\t\t\t\t\r\n\t\t\t\t{this.isClient &&\r\n\t\t\t\t\t { this.setState({ LimitBalanceData: data, isLoading: false }); }} />\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t
\r\n\r\n\t\t);\r\n\t}\r\n}\r\nCreateWireBeneficiaryTemplate.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool,\r\n\tValueChanged: PropTypes.func,\r\n\tModel: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(CreateWireBeneficiaryTemplate, style);\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport {\r\n\tGenericSelectInput,\r\n\tGenericDateInput,\r\n\tGenericExpansionPanel,\r\n\tGenericRadioInput,\r\n\tGenericGrid,\r\n\tGenericDialog,\r\n\tGenericAlert,\r\n\tGenericDialogActions,\r\n\tGenericLabel,\r\n\tGenericTitle,\r\n\tGenericNumberInput,\r\n} from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, ProgramCodes } from \"views/Constants/Constant\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Select from \"react-select\";\r\nimport Formatter from \"core/Formatter\";\r\n\r\nclass WireEftTransactionSearch extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tUniqueClientId: ClientHelper.IsClient()\r\n\t\t\t\t? ClientHelper.GetClientRowId()\r\n\t\t\t\t: undefined,\r\n\t\t\tIsMainCard: true,\r\n\t\t\tProgramCode: \"\",\r\n\t\t\tFromDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\tToDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tlist: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tvModel: {},\r\n\t\t};\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.maxLength6 = { maxLength: 6 };\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.IsClient()\r\n\t\t\t\t? ClientHelper.GetClientId()\r\n\t\t\t\t: undefined,\r\n\t\t};\r\n\r\n\t\tthis.parameterProduct = {};\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"ClientName\",\r\n\t\t\t\twidth: 150\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Organization Unique Id\",\r\n\t\t\t\taccessor: \"OrganizationUniqueId\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reference Number\",\r\n\t\t\t\taccessor: \"ReferenceNumber\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Source Account Number\",\r\n\t\t\t\taccessor: \"SourceAccountNumber\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Destination Account Number\",\r\n\t\t\t\taccessor: \"DestinationAccountNumber\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Beneficiary Name\",\r\n\t\t\t\taccessor: \"BankName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Financial Institution\",\r\n\t\t\t\taccessor: \"FinancialInstitution\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transit\",\r\n\t\t\t\taccessor: \"Transit\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"Amount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Fee Amount\",\r\n\t\t\t\taccessor: \"FeeAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction Creation Date Time\",\r\n\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\tCell: (row) =>
{Formatter.FormatDateTimeEst(row.value)}
,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Purpose Of Wire\",\r\n\t\t\t\taccessor: \"PurposeOfWire\",\r\n\t\t\t},\r\n\t\t];\r\n\r\n\t\tthis.sortParamValue = { Member: \"ParameterValue\" };\r\n\r\n\t\tthis.trxTable = React.createRef();\r\n\t}\r\n\r\n\tshowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: (\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t\t),\r\n\t\t});\r\n\t};\r\n\tsetValueToState = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t};\r\n\tshowLoading() {\r\n\t\tthis.setState({ isLoading: true });\r\n\t}\r\n\r\n\thideLoading() {\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tExportClick = () => {\r\n\t\tvar trxColumns = [];\r\n\t\tthis.trxTable.current.props.Columns.forEach((c) => {\r\n\t\t\tif (\r\n\t\t\t\tc.accessor != \"Actions\" &&\r\n\t\t\t\tc.accessor != \"ED\" &&\r\n\t\t\t\t(c.show == undefined || c.show)\r\n\t\t\t) {\r\n\t\t\t\ttrxColumns.push({\r\n\t\t\t\t\tvalue: c.accessor,\r\n\t\t\t\t\ttitle: c.Header,\r\n\t\t\t\t\tcolumntype: c.ColumnType,\r\n\t\t\t\t\ttype: c.type,\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({\r\n\t\t\tisDownloadDialogOpen: true,\r\n\t\t\tGridKeyValueList: trxColumns,\r\n\t\t\tExportSelectedColumns: trxColumns,\r\n\t\t});\r\n\t};\r\n\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t});\r\n\t};\r\n\r\n\tExcelDownload = () => {\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.props.showMessage(\r\n\t\t\t\t\"warning\",\r\n\t\t\t\t\"Export Report Type not selected\",\r\n\t\t\t\t\"Select Export Report Type to continue\"\r\n\t\t\t);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (\r\n\t\t\tthis.state.ExportReportType == \"PDF\" &&\r\n\t\t\tthis.state.ExportSelectedColumns.length > 15\r\n\t\t) {\r\n\t\t\tthis.props.showMessage(\r\n\t\t\t\t\"warning\",\r\n\t\t\t\t\"PDF document cannot exceed 15 columns\",\r\n\t\t\t\t\"PDF document cannot exceed 15 columns\"\r\n\t\t\t);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tthis.props.showConfirmMessage(\r\n\t\t\t\"question\",\r\n\t\t\t\"Long Process Warning\",\r\n\t\t\t\"This process may take a while. Continue ?\",\r\n\t\t\t() => {\r\n\t\t\t\tthis.hideAlert();\r\n\t\t\t\tconst { model } = this.state;\r\n\t\t\t\tmodel.IsClientBalanceScreen = true;\r\n\r\n\t\t\t\t// Add jsonFile\r\n\t\t\t\tvar jsonColList = [];\r\n\r\n\t\t\t\tvar trxColumns = {};\r\n\t\t\t\tthis.state.ExportSelectedColumns.map((c) => {\r\n\t\t\t\t\ttrxColumns[c.value] = {\r\n\t\t\t\t\t\tvalue: c.value,\r\n\t\t\t\t\t\ttitle: c.title,\r\n\t\t\t\t\t\tcolumntype: c.columntype,\r\n\t\t\t\t\t\ttype: c.type,\r\n\t\t\t\t\t};\r\n\t\t\t\t});\r\n\t\t\t\tjsonColList.push(trxColumns);\r\n\r\n\t\t\t\tmodel[\"jsonFile\"] = {\r\n\t\t\t\t\tcolmns: jsonColList,\r\n\t\t\t\t\tformat: this.state.ExportReportType,\r\n\t\t\t\t\ttitle: \"Switch Settlement Aggregate Report\",\r\n\t\t\t\t};\r\n\r\n\t\t\t\tthis.setState({ isLoading: true });\r\n\t\t\t\tProxy.DownloadGeneratedFile(\r\n\t\t\t\t\t\"/lmsapi/v1.0/FeeAndCodeBasedTransaction/DownloadFeeRevenueReport\",\r\n\t\t\t\t\tmodel,\r\n\t\t\t\t\t(responseData) => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\t\tthis.props.showMessage(\r\n\t\t\t\t\t\t\t\t\"error\",\r\n\t\t\t\t\t\t\t\t\"Error\",\r\n\t\t\t\t\t\t\t\tresponseData.ErrorDescription\r\n\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t(errorMessage) => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t\t\t},\r\n\t\t\t\t\tthis.props.showMessage\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\topenExportDialog = () => {\r\n\t\tthis.setState({\r\n\t\t\tisDownloadDialogOpen: true,\r\n\t\t});\r\n\t};\r\n\r\n\tcloseExportDialog = () => {\r\n\t\tthis.setState({\r\n\t\t\tisDownloadDialogOpen: false,\r\n\t\t});\r\n\t};\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Wire EFT Transaction Search\");\r\n\t\tthis.props.setAppCenterTitle(\"WIRE TRANSFER\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\tValueChangedForExport = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t};\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tisEdit: false,\r\n\t\t\tindex: -1,\r\n\t\t});\r\n\t};\r\n\r\n\tHandleSearch = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel.ProgramCode = this.ProgramCode;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/WireTransfer/SearchBackofficeOutgoingEftWireTransaction\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\r\n\t\t\t\t\t\t\"error\",\r\n\t\t\t\t\t\t\"Error\",\r\n\t\t\t\t\t\tresponseData.ErrorDescription\r\n\t\t\t\t\t);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tconst { showValidationErrors } = this.props;\r\n\r\n\t\tvar errorList = [];\r\n\r\n\t\tvModel.FromDate = !model.FromDate;\r\n\t\tif (vModel.FromDate) errorList.push(\"From Date cannot be empty!\");\r\n\r\n\t\tvModel.ToDate = !model.ToDate;\r\n\t\tif (vModel.ToDate) errorList.push(\"To Date cannot be empty!\");\r\n\r\n\t\tif (errorList.length > 0) {\r\n\t\t\tshowValidationErrors(errorList);\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t};\r\n\r\n\tGetModel = () => {\r\n\t\treturn this.state.model;\r\n\t};\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, list, isLoading } = this.state;\r\n\t\tvar IsClient = ClientHelper.IsClient();\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\t\t\t\t this.ExportClick(),\r\n\t\t\t\t\t\t\tDisabled: Disabled,\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t]}\r\n\t\t\t\t\tmenuId={this.props.menuId}\r\n\t\t\t\t\tApprovalData={this.props.ApprovalData}\r\n\t\t\t\t\tAfter={this.props.After}\r\n\t\t\t\t/>\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\tTextValueMember=\"Name\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={model.UniqueClientId}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\tCanClear\r\n\t\t\t\t\t\t\t\t\t\t\t\tAll\r\n\t\t\t\t\t\t\t\t\t\t\t\tDefaultIndex={IsClient ? 0 : -1}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tthis.setState({ ExportSelectedColumns: value })\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\t\tname=\"Columns\"\r\n\t\t\t\t\t\t\t\t\tgetOptionLabel={(d) => d.title}\r\n\t\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ isDownloadDialogOpen: false })}\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\tCancel\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nWireEftTransactionSearch.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool,\r\n};\r\n\r\nexport default withArtifex(WireEftTransactionSearch, {});\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { ApproveIcon } from \"core/Icons\";\r\nimport MenuAuthorityRightHelper from \"core/MenuAuthorityRightHelper\";\r\nimport PropTypes, { bool, func } from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericPage, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { GridColumnType, ProgramCodes, TransactionTraceStatus } from \"views/Constants/Constant\";\r\n\r\nclass WireTraceTransactionSearch extends GenericPage {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.IsBackOffice = ClientHelper.IsBackOffice();\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t x.Code == \"WIRETRACECOMPLETE\")?.HasAuthority}\r\n\t\t\t\t\t\t\t\tIcon={ApproveIcon}\r\n\t\t\t\t\t\t\t\tOnClick={this.GetHandleTraceApprove(row.original)} />\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Unique Client Id\",\r\n\t\t\t\taccessor: \"UniqueClientId\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"SenderName\",\r\n\t\t\t\taccessor: \"SenderName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Trace Status\",\r\n\t\t\t\taccessor: \"TraceStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Trace Reject Reason\",\r\n\t\t\t\taccessor: \"TraceRejectReason\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reference Number\",\r\n\t\t\t\taccessor: \"ReferenceNumber\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client User\",\r\n\t\t\t\taccessor: \"InsertUser\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Source Account Number\",\r\n\t\t\t\taccessor: \"FromAccAccountNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"To Account Number\",\r\n\t\t\t\taccessor: \"ToAccountNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"To IBAN\",\r\n\t\t\t\taccessor: \"ToIBAN\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Direction\",\r\n\t\t\t\taccessor: \"Direction\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Status\",\r\n\t\t\t\taccessor: \"Status\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"SubStatus\",\r\n\t\t\t\taccessor: \"SubStatus\",\r\n\t\t\t\tshow: this.IsBackOffice\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"MessageType\",\r\n\t\t\t\taccessor: \"MessageType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date of Request\",\r\n\t\t\t\taccessor: \"DateRequest\",\r\n\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Value Effective\",\r\n\t\t\t\taccessor: \"ValueEffective\",\r\n\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"Amount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Fee Amount\",\r\n\t\t\t\taccessor: \"FeeAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Currency\",\r\n\t\t\t\taccessor: \"CurrencyName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Remittance\",\r\n\t\t\t\taccessor: \"Remittance\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Purpose Of Wire\",\r\n\t\t\t\taccessor: \"PurposeOfWire\"\r\n\t\t\t}\r\n\t\t];\r\n\t\tthis.DetailButtonDisable = true;\r\n\t\tthis.MenuAuthorityRightHelper = new MenuAuthorityRightHelper();\r\n\r\n\t\tthis.defaultModel = {\r\n\t\t\tClientId: null,\r\n\t\t\tFromDate: DateHelper.GetDate(),\r\n\t\t\tToDate: DateHelper.GetDate(),\r\n\t\t\tMessageTypeId: null,\r\n\t\t\tSubStatusId: null,\r\n\t\t\tStatusId: null,\r\n\t\t\tAmountFrom: null,\r\n\t\t\tAmountTo: null,\r\n\t\t\tStatusParamCode: null,\r\n\t\t\tReferenceNumber: null,\r\n\t\t\tTraceStatusId: null,\r\n\t\t\tDirectionParamValue: null\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: { ...this.defaultModel },\r\n\t\t\tsubStatusList: [],\r\n\t\t\ttempSubStatusList: [],\r\n\t\t\ttransactionList: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tIsDomestic: {},\r\n\t\t\tdetailDialog: false,\r\n\t\t};\r\n\t}\r\n\r\n\r\n\tcomponentDidMount() {\r\n\t\tsuper.componentDidMount();\r\n\t\tthis.GetGridButtonsRight();\r\n\r\n\t\tthis.props.setAppLeftTitle(\"Wire Trace Transactions\");\r\n\t\tthis.props.setAppCenterTitle(\"CLEARING & SETTLEMENT\");\r\n\t}\r\n\tGetGridButtonsRight = async () => {\r\n\t\tconst { MenuCode } = this.props;\r\n\t\tvar gridButtonRightDetail = await this.MenuAuthorityRightHelper.RightCheckList(MenuCode, [\"WIRETRACECOMPLETE\"]);\r\n\t\tthis.setState({ gridButtonRightDetail });\r\n\t}\r\n\r\n\tGetHandleTraceApprove = (model) => async () => {\r\n\t\tif (!await this.props.showConfirmMessage(\"warning\", \"Warning\", \"Are you sure you want to save trace transaction as completed?\")) return;\r\n\r\n\t\tvar result = await this.props.ExecuteApiPost(\"/bankapi/v1.0/TransactionTrace/ApproveTracedTransactionById\", { Id: model.TransactionId });\r\n\t\tif (result) {\r\n\t\t\tthis.GetData();\r\n\t\t\tthis.props.showMessage(\"success\", \"Success\", \"Transaction Trace successfully saved as completed!\");\r\n\t\t}\r\n\t}\r\n\r\n\tHandleChange(name, newValue, data) {\r\n\t\tthis.setState(function (state) {\r\n\t\t\tvar model = state.model || {};\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\tif (name == \"StatusId\") {\r\n\t\t\t\tif (newValue == -1) {\r\n\t\t\t\t\tmodel.StatusParamCode = null;\r\n\t\t\t\t}\r\n\t\t\t\telse if (data && data.ParameterValue == null) {\r\n\t\t\t\t\tmodel.StatusParamCode = null;\r\n\t\t\t\t}\r\n\t\t\t\telse if (data) {\r\n\t\t\t\t\tmodel.StatusParamCode = data.ParameterValue;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tGetData() {\r\n\r\n\t\tvar requestObj = {\r\n\t\t\tTracedTransactionOnly: true,\r\n\t\t\t...this.state.model\r\n\t\t};\r\n\t\tthis.ExecutePostRequest(\r\n\t\t\t\"/bankapi/v1.0/WireTransfer/SearchWireTraceTransaction\",\r\n\t\t\trequestObj,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (responseData.Item == null || responseData.Item.length < 1) {\r\n\t\t\t\t\tresponseData.Item = [];\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ transactionList: responseData.Item });\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tClearModel() {\r\n\t\tthis.setState({ model: { FromDate: DateHelper.GetDateLocal(), ToDate: DateHelper.GetDateLocal() } });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { IsLoading, Alert } = this.state;\r\n\t\tconst { model } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{Alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t `${d.UniqueClientId} - ${d.Name}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={model.ClientId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.Hand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n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nWireTraceTransactionSearch.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\thandleOperationType: func,\r\n\tshowQuestionMessage: func,\r\n\tsetAppLeftTitle: func,\r\n\tsetAppCenterTitle: func,\r\n\tDisabled: bool,\r\n\tValueChanged: PropTypes.func,\r\n\tModel: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(WireTraceTransactionSearch, {});\r\n\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericExpansionPanel, GenericTextInput, GenericDateInput, GenericGrid} from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport { ApproveIcon } from \"core/Icons\";\r\nimport { GridColumnType } from \"views/Constants/Constant.js\";\r\n\r\nclass WireTransferApprovalList extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tlist: [],\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tfilterModel: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tSelectedRowIndex: undefined,\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Wire Transfer Approval List\");\r\n\t\tthis.props.setAppCenterTitle(\"WIRE TRANSFER\");\r\n\t}\r\n\t\r\n\thandleChange = (name, newValue) => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tmodel[name] = newValue;\r\n\r\n\t\tthis.setState({ model });\r\n\t};\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tfilterModel: {}\r\n\t\t});\r\n\t};\r\n\t\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/WireTransfer/WireTransferWhiteListSearch\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tmodel,\r\n\t\t\t\t\t\tlist: responseData.Item\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\tApprove = (wireTransferWhiteListId) => {\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/WireTransfer/WireTransferFinScanApprove\",\r\n\t\t\twireTransferWhiteListId,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.props.showMessage(\"success\", \"Success\", \"Approved Sucessfully\");\r\n\t\t\t\t\tthis.HandleSearch();\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\tRowSelected(index) {\r\n\t\tthis.setState({ SelectedRowIndex: index, SelectedRow: this.state.list[index] });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, model, isLoading, SelectedRowIndex, list } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t{alert}\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t

Wire Transfer Approval List

\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t { this.Approve(row.original.Id) }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={row.original.IsApproved == true || row.original.Status != \"Waiting\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsortable: false,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfilterable: false,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 60\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Status\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Status\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Is Approved\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"IsApproved\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.YesNo,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.YesNo\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Name\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Country\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Country\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Date Of Birth\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"DateOfBirth\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.DateTime\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Record Type\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"RecordType\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Transaction Date\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.DateTime\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Swift Reference Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"SwiftReferenceNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Reference Number\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"ReferenceNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"OriginalAmount\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Insert Date Time\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.DateTime\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Insert User\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"InsertUser\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Update Date Time\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"UpdateDateTime\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tColumnType: GridColumnType.DateTime\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Update User\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"UpdateUser\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tRowSelected={this.RowSelected}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tSelectedIndex={SelectedRowIndex}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tIsSorted={false} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nWireTransferApprovalList.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(WireTransferApprovalList, {});\r\n","import withStyles from \"@material-ui/core/styles/withStyles\";\r\nimport { chartGradientColors } from \"assets/jss/material-dashboard-pro-react\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport CardIcon from \"components/Card/CardIcon.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport { Chart, Doughnut as DoughnutChart } from \"react-chartjs-2\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericPage, GenericDateInput, GenericExpansionPanel, GenericGrid, GenericSelectInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { ClientType, ProgramCodes } from \"views/Constants/Constant.js\";\r\nimport { List } from \"@material-ui/icons\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\nimport AccountLimitToolbar from \"views/Components/AccountLimitToolbar\";\r\n\r\nconst styles = ({\r\n\tcircleBoxGrid: {\r\n\t\twidth: \"14%\",\r\n\t\ttextAlign: \"center\"\r\n\t},\r\n\tcircleBox: {\r\n\t\tdisplay: \"inline-block\",\r\n\t\tmarginTop: \"24px\",\r\n\t\tmarginLeft: \"auto\",\r\n\t\tmarginRight: \"auto\",\r\n\t\tmarginBottom: \"24px\"\r\n\t}\r\n});\r\n\r\nclass WireTransferDashboard extends GenericPage {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.doughnutHeight = 300;\r\n\t\tthis.doughnutWidth = 210;\r\n\t\tthis.isClient = ClientHelper.IsClient();\r\n\t\tthis.initialModel = {\r\n\t\t\tUniqueClientId: ClientHelper.GetClientRowId(),\r\n\t\t\tFromDate: DateHelper.GetDate(),\r\n\t\t\tToDate: DateHelper.GetDate()\r\n\t\t};\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"ClientName\",\r\n\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"SenderName\",\r\n\t\t\t\taccessor: \"SenderName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"From Account\",\r\n\t\t\t\taccessor: \"FromAccount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"To Account\",\r\n\t\t\t\taccessor: \"ToAccount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date of Request\",\r\n\t\t\t\taccessor: \"DateOfRequest\",\r\n\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Value Effective\",\r\n\t\t\t\taccessor: \"ValueEffective\",\r\n\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Beneficiary Name\",\r\n\t\t\t\taccessor: \"BeneficiaryName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"OriginalAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Currency\",\r\n\t\t\t\taccessor: \"Currency\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Fee\",\r\n\t\t\t\taccessor: \"Fee\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Status\",\r\n\t\t\t\taccessor: \"Status\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sub Status\",\r\n\t\t\t\taccessor: \"SubStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Message Type\",\r\n\t\t\t\taccessor: \"MessageType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transaction ID\",\r\n\t\t\t\taccessor: \"TransactionId\"\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.chartOptions = {\r\n\t\t\tmaintainAspectRatio: false,\r\n\t\t\tresponsive: true,\r\n\t\t\tlegend: {\r\n\t\t\t\tdisplay: false\r\n\t\t\t},\r\n\t\t\tcutoutPercentage: 90,\r\n\t\t\tanimation: {\r\n\t\t\t\tduration: 2000\r\n\t\t\t},\r\n\t\t\ttooltips: { enabled: true }\r\n\t\t};\r\n\r\n\t\tthis.initialDoughnutDataModel = {\r\n\t\t\tlabels: [\"Transactions\"],\r\n\t\t\tdatasets: [{\r\n\t\t\t\tdata: [1],\r\n\t\t\t\tbackgroundColor: \"rgb(255, 99, 132)\",\r\n\t\t\t\thoverBackgroundColor: \"rgb(255, 99, 132)\"\r\n\t\t\t}],\r\n\t\t\ttext: \"0 \\t $ 0\"\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tactiveIndex: 0,\r\n\t\t\ttotalWire: { ... this.initialDoughnutDataModel },\r\n\t\t\ttotalFee: { ... this.initialDoughnutDataModel },\r\n\t\t\ttotalOnhold: { ... this.initialDoughnutDataModel },\r\n\t\t\ttotalReturned: { ... this.initialDoughnutDataModel },\r\n\t\t\ttotalRejected: { ... this.initialDoughnutDataModel },\r\n\t\t\tLimitBalanceData: {\r\n\t\t\t\tAvailableCreditLimit: 0,\r\n\t\t\t\tAvailableDebitLimit: 0,\r\n\t\t\t\tAvailableBalance: 0\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tthis.chartOptions = {\r\n\t\t\tmaintainAspectRatio: false,\r\n\t\t\tresponsive: false,\r\n\t\t\tlegend: { display: false },\r\n\t\t\tcutoutPercentage: 90,\r\n\t\t\tanimation: { duration: 2000 }\r\n\t\t};\r\n\r\n\t\tthis.chartColors = {\r\n\t\t\tred: \"rgb(255, 99, 132)\",\r\n\t\t\torange: \"rgb(255, 159, 64)\",\r\n\t\t\tyellow: \"rgb(255, 205, 86)\",\r\n\t\t\tgreen: \"rgb(75, 192, 192)\",\r\n\t\t\tblue: \"rgb(54, 162, 235)\",\r\n\t\t\tpurple: \"rgb(153, 102, 255)\",\r\n\t\t\tgrey: \"rgb(201, 203, 207)\"\r\n\t\t};\r\n\r\n\t\tthis.isClient = ClientHelper.IsClient();\r\n\t\tthis.clientId = ClientHelper.GetClientRowId();\r\n\t\tthis.ClientParameter = { UniqueClientId: this.isClient ? this.clientId : undefined, ClientTypes: [ClientType.Personal, ClientType.Corporate] };\r\n\t\tthis.SortedClient = { Member: \"Name\" };\r\n\r\n\t\tthis.doughnutRef = React.createRef();\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tsuper.componentDidMount();\r\n\t\tthis.Bind(this);\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\r\n\t\tif (setAppLeftTitle)\r\n\t\t\tsetAppLeftTitle(\"Dashboard\");\r\n\t\tif (setAppCenterTitle)\r\n\t\t\tsetAppCenterTitle(\"WIRE TRANSFER\");\r\n\r\n\t\tvar originalDoughnutDraw = Chart.controllers.doughnut.prototype.draw;\r\n\t\tChart.helpers.extend(Chart.controllers.doughnut.prototype, {\r\n\t\t\tdraw: function () {\r\n\t\t\t\toriginalDoughnutDraw.apply(this, arguments);\r\n\r\n\t\t\t\tvar chart = this.chart;\r\n\t\t\t\tvar width = chart.chart.width,\r\n\t\t\t\t\theight = chart.chart.height,\r\n\t\t\t\t\tctx = chart.chart.ctx;\r\n\r\n\t\t\t\tvar fontSize = 1.5;\r\n\t\t\t\tctx.font = fontSize + \"em sans-serif\";\r\n\t\t\t\tctx.textBaseline = \"middle\";\r\n\t\t\t\tctx.fillStyle = \"#000\";\r\n\r\n\t\t\t\tvar text = chart.config.data.text,\r\n\t\t\t\t\ttextX = Math.round((width - ctx.measureText(text).width) / 2),\r\n\t\t\t\t\ttextY = height / 2;\r\n\r\n\t\t\t\tctx.fillText(text, textX, textY);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tif (ClientHelper.IsClient) {\r\n\t\t\tthis.HandleGetList();\r\n\t\t}\r\n\t}\r\n\r\n\tHandleChange(name, value) {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleBooleanChange(name, value) {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = JSON.parse(value);\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear() {\r\n\t\tthis.setState({ model: this.initialModel, selected: null });\r\n\t}\r\n\r\n\tHandleGetList() {\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tconst model = { ...this.state.model };\r\n\t\tthis.ExecutePostRequest(\"/bankapi/v1.0/WireTransferDashboard/SearchWireTransfer\",\r\n\t\t\t{\r\n\t\t\t\tUniqueClientId: this.isClient ? this.clientId : model.UniqueClientId,\r\n\t\t\t\tFromDate: model.FromDate,\r\n\t\t\t\tToDate: model.ToDate\r\n\t\t\t},\r\n\t\t\tthis.SuccessListCallback);\r\n\t}\r\n\r\n\tgetGradientList(dataList) {\r\n\t\tvar gradientList = undefined;\r\n\t\tif (document.getElementById('canvas') != null) {\r\n\t\t\tvar ctx = document.getElementById('canvas').getContext(\"2d\");\r\n\t\t\tgradientList = [];\r\n\t\t\tif (dataList.datasets != undefined) {\r\n\t\t\t\tvar i;\r\n\t\t\t\tfor (i = 0; i < dataList.datasets[0].data.length; i++) {\r\n\t\t\t\t\tvar gradient = ctx.createLinearGradient(0, 0, 0, 400);\r\n\t\t\t\t\tif (chartGradientColors[i] == undefined) {\r\n\t\t\t\t\t\tgradient.addColorStop(0, chartGradientColors[0].begin);\r\n\t\t\t\t\t\tgradient.addColorStop(1, chartGradientColors[0].end);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tgradient.addColorStop(0, chartGradientColors[i].begin);\r\n\t\t\t\t\t\tgradient.addColorStop(1, chartGradientColors[i].end);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tgradientList.push(gradient);\r\n\t\t\t\t}\r\n\t\t\t\treturn gradientList;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn gradientList;\r\n\r\n\t}\r\n\r\n\tSuccessListCallback(responseData) {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowGenericMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (responseData.Item !== null) {\r\n\t\t\t// const { totalWire, totalReturned, totalRejected, totalOnhold, totalFee } = this.state;\r\n\r\n\t\t\tvar totalWire = this.GenerateDoughnutData(responseData.Item.TotalWireChartData);\r\n\t\t\tvar totalReturned = this.GenerateDoughnutData(responseData.Item.TotalReturnedChartData);\r\n\t\t\tvar totalRejected = this.GenerateDoughnutData(responseData.Item.TotalRejectionChartData);\r\n\t\t\tvar totalOnhold = this.GenerateDoughnutData(responseData.Item.TotalOnholdChartData);\r\n\t\t\tvar totalFee = this.GenerateDoughnutData(responseData.Item.TotalFeeCollectedChartData);\r\n\r\n\t\t\tconst { model } = this.state;\r\n\t\t\tmodel.BeginDate = responseData.Item.BeginDate;\r\n\t\t\tmodel.EndDate = responseData.Item.EndDate;\r\n\t\t\tthis.setState({\r\n\t\t\t\tmodel,\r\n\t\t\t\ttableData: responseData.Item.TransactionList,\r\n\t\t\t\ttotalWire, totalReturned, totalRejected, totalOnhold, totalFee\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\r\n\tGenerateDoughnutData(statisticData) {\r\n\t\tvar arrayData = [];\r\n\t\tvar arrayLabel = [];\r\n\t\tvar arrayColor = [];\r\n\r\n\t\tvar colorName = \"\";\r\n\t\tvar newColor = \"\";\r\n\r\n\t\tvar colorNames = Object.keys(this.chartColors);\r\n\t\tcolorName = colorNames[0];\r\n\t\tnewColor = this.chartColors[colorName];\r\n\t\tarrayColor.push(newColor);\r\n\t\tarrayData.push(statisticData.TotalAmount);\r\n\t\tarrayLabel.push(statisticData.TransactionType);\r\n\r\n\t\tvar trxChartObj = {\r\n\t\t\tlabels: arrayLabel,\r\n\t\t\tdatasets: [{\r\n\t\t\t\tdata: [statisticData.Count == 0 ? 1 : statisticData.Count],\r\n\t\t\t\thoverBackgroundColor: arrayColor,\r\n\t\t\t\tbackgroundColor: arrayColor\r\n\t\t\t}],\r\n\t\t\ttext: this.GetChartText(statisticData.Count, statisticData.TotalAmount)\r\n\t\t};\r\n\t\treturn trxChartObj;\r\n\t}\r\n\r\n\tGetElementValue(obj, path) {\r\n\t\tif (obj == null || path == null)\r\n\t\t\treturn \"\";\r\n\t\treturn [obj].concat(path.split(\".\")).reduce((c, n) => c && c[n]);\r\n\t}\r\n\r\n\tTabIndexChanged(activeIndex) {\r\n\t\tthis.setState({ activeIndex });\r\n\t}\r\n\r\n\tValidate() {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tif (typeof model.FromDate != \"object\" && model.FromDate != \"\" && model.FromDate != null) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"From Date is invalid\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (typeof model.ToDate != \"object\" && model.ToDate != \"\" && model.ToDate != null) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", \"To Date is invalid\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!model.FromDate) {\r\n\t\t\tthis.ShowGenericMessage(\"warning\", \"From Date not selected\", \"Select From Date to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!model.ToDate) {\r\n\t\t\tthis.ShowGenericMessage(\"warning\", \"To Date not selected\", \"Select To Date to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tSumValues(...arr) {\r\n\t\treturn arr.length > 0 ? arr[0].reduce((a, b) => a + b, 0) : 0;\r\n\t}\r\n\r\n\tGetColumns(list, header, accessor) {\r\n\r\n\t\tconst columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: header,\r\n\t\t\t\taccessor: accessor,\r\n\t\t\t\tFooter: (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tTotal Transactions\r\n\t\t\t\t\t\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transactions\",\r\n\t\t\t\taccessor: \"TransactionCount\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{Formatter.FormatNumber(row.value)}
\r\n\t\t\t\t),\r\n\t\t\t\tFooter: (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{Formatter.FormatNumber(this.SumValues(list.map(d => d.TransactionCount)))}\r\n\t\t\t\t\t\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"% of Errors\",\r\n\t\t\t\taccessor: \"TransactionErrorCountPercent\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{Formatter.FormatPercent(row.value)}
\r\n\t\t\t\t),\r\n\t\t\t\tFooter: (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{Formatter.FormatPercent(this.SumValues(list.map(d => d.TransactionErrorCountPercent)))}\r\n\t\t\t\t\t\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Debit\",\r\n\t\t\t\taccessor: \"DebitCount\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{Formatter.FormatNumber(row.value)}
\r\n\t\t\t\t),\r\n\t\t\t\tFooter: (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{Formatter.FormatNumber(this.SumValues(list.map(d => d.DebitCount)))}\r\n\t\t\t\t\t\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"% of Errors\",\r\n\t\t\t\taccessor: \"DebitErrorCountPercent\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{Formatter.FormatPercent(row.value)}
\r\n\t\t\t\t),\r\n\t\t\t\tFooter: (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{Formatter.FormatPercent(this.SumValues(list.map(d => d.DebitErrorCountPercent)))}\r\n\t\t\t\t\t\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Credit\",\r\n\t\t\t\taccessor: \"CreditCount\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{Formatter.FormatNumber(row.value)}
\r\n\t\t\t\t),\r\n\t\t\t\tFooter: (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{Formatter.FormatNumber(this.SumValues(list.map(d => d.CreditCount)))}\r\n\t\t\t\t\t\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"% of Errors\",\r\n\t\t\t\taccessor: \"CreditErrorCountPercent\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{Formatter.FormatPercent(row.value)}
\r\n\t\t\t\t),\r\n\t\t\t\tFooter: (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{Formatter.FormatPercent(this.SumValues(list.map(d => d.CreditErrorCountPercent)))}\r\n\t\t\t\t\t\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total\",\r\n\t\t\t\taccessor: \"TotalAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tFooter: (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{Formatter.FormatMoney(this.SumValues(list.map(d => d.TotalAmount)))}\r\n\t\t\t\t\t\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Total Fee\",\r\n\t\t\t\taccessor: \"TotalFeeAmount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tFooter: (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{Formatter.FormatMoney(this.SumValues(list.map(d => d.TotalFeeAmount)))}\r\n\t\t\t\t\t\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Per Transaction Fee\",\r\n\t\t\t\taccessor: \"PerTransactionFeeCount\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{Formatter.FormatPercent(row.value)}
\r\n\t\t\t\t),\r\n\t\t\t\tFooter: (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{Formatter.FormatPercent(this.SumValues(list.map(d => d.PerTransactionFeeCount)))}\r\n\t\t\t\t\t\r\n\t\t\t\t)\r\n\t\t\t}\r\n\t\t];\r\n\t\treturn columns;\r\n\t}\r\n\r\n\tGetChartText(item1, item2) {\r\n\t\treturn item1 + \" \\t $ \" + item2\r\n\t\t\t.toString()\r\n\t\t\t.replace(/(\\d)(?=(\\d{3})+(?!\\d))/g, \"$1,\");\r\n\t}\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\treturn `${d.UniqueClientId} - ${d.Name}`;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { IsLoading, Alert } = this.state;\r\n\t\tconst { classes } = this.props;\r\n\t\tconst { model, tableData, totalFee, totalOnhold, totalRejected, totalReturned, totalWire } = this.state;\r\n\t\tvar isClient = ClientHelper.IsClient();\r\n\r\n\t\tvar trxGradientList = this.getGradientList(totalWire);\r\n\t\tvar trxBackground = totalWire;\r\n\t\tif (trxGradientList != undefined) {\r\n\t\t\t// @ts-ignore\r\n\t\t\ttrxBackground.datasets[0].backgroundColor = trxGradientList;\r\n\t\t\t// @ts-ignore\r\n\t\t\ttrxBackground.datasets[0].hoverBackgroundColor = trxGradientList;\r\n\t\t}\r\n\r\n\t\tvar feeGradientList = this.getGradientList(totalFee);\r\n\t\tvar feeBackground = totalFee;\r\n\t\tif (feeGradientList != undefined) {\r\n\t\t\t// @ts-ignore\r\n\t\t\tfeeBackground.datasets[0].backgroundColor = feeGradientList;\r\n\t\t\t// @ts-ignore\r\n\t\t\tfeeBackground.datasets[0].hoverBackgroundColor = feeGradientList;\r\n\t\t}\r\n\r\n\t\tvar returnedGradientList = this.getGradientList(totalReturned);\r\n\t\tvar returnedBackground = totalReturned;\r\n\t\tif (returnedGradientList != undefined) {\r\n\t\t\t// @ts-ignore\r\n\t\t\treturnedBackground.datasets[0].backgroundColor = returnedGradientList;\r\n\t\t\t// @ts-ignore\r\n\t\t\treturnedBackground.datasets[0].hoverBackgroundColor = returnedGradientList;\r\n\t\t}\r\n\r\n\t\tvar rejectionGradientList = this.getGradientList(totalRejected);\r\n\t\tvar rejectionBackground = totalRejected;\r\n\t\tif (rejectionGradientList != undefined) {\r\n\t\t\t// @ts-ignore\r\n\t\t\trejectionBackground.datasets[0].backgroundColor = rejectionGradientList;\r\n\t\t\t// @ts-ignore\r\n\t\t\trejectionBackground.datasets[0].hoverBackgroundColor = rejectionGradientList;\r\n\t\t}\r\n\r\n\t\tvar onholdGradientList = this.getGradientList(totalOnhold);\r\n\t\tvar onholdBackground = totalOnhold;\r\n\t\tif (onholdGradientList != undefined) {\r\n\t\t\t// @ts-ignore\r\n\t\t\tonholdBackground.datasets[0].backgroundColor = onholdGradientList;\r\n\t\t\t// @ts-ignore\r\n\t\t\tonholdBackground.datasets[0].hoverBackgroundColor = onholdGradientList;\r\n\t\t}\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{Alert}\r\n\t\t\t\t\r\n\t\t\t\t{this.isClient &&\r\n\t\t\t\t\t { this.setState({ LimitBalanceData: data, isLoading: false }); }} />\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\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\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nWireTransferDashboard.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool,\r\n\tValueChanged: PropTypes.func,\r\n\tModel: PropTypes.object\r\n};\r\n\r\nexport default withStyles(styles)(WireTransferDashboard);","import { DialogContent, DialogTitle, Slide } from \"@material-ui/core\";\r\nimport style from \"assets/jss/material-dashboard-pro-react/views/workflowManagementStyle.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { DynamicComponent, Proxy, withArtifex } from \"core\";\r\nimport AlertHelper from \"core/AlertHelper\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { ApproveIcon, RowDetailIcon } from \"core/Icons\";\r\nimport ResourceHelper from \"core/ResourceHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericSelectInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent.jsx\";\r\nimport { ApprovalStatus, GridColumnType, MenuCodes, UserStatus } from \"views/Constants/Constant\";\r\n\r\nfunction Transition(props) {\r\n\treturn ;\r\n}\r\n\r\nclass WorkflowManagement extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tIsUpdate: false,\r\n\t\t\tCreationStartDate: DateHelper.GetDateLocal(),\r\n\t\t\tCreationEndDate: DateHelper.GetDateLocal()\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tInboxData: [],\r\n\t\t\tOutboxData: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tisApprovalDialogOpen: false,\r\n\t\t\tisApproveUsersDialogOpen: false,\r\n\t\t\tApprovalData: {}\r\n\t\t};\r\n\r\n\t\tthis.sortedName = {\r\n\t\t\tMember: \"Name\"\r\n\t\t};\r\n\r\n\t\tthis.isBackOffice = ClientHelper.IsBackOffice();\r\n\t\tthis.clientId = ClientHelper.GetClientRowId();\r\n\r\n\t\tthis.ValueChanged = this.ValueChanged.bind(this);\r\n\t\tthis.GetClick = this.GetClick.bind(this);\r\n\t\tthis.ClearClick = this.ClearClick.bind(this);\r\n\t\tthis.ClearScreen = this.ClearScreen.bind(this);\r\n\r\n\t\tthis.ShowMessage = this.ShowMessage.bind(this);\r\n\t\tthis.hideAlert = this.hideAlert.bind(this);\r\n\r\n\t\tthis.approvalDialogClose = this.approvalDialogClose.bind(this);\r\n\t\tthis.GetMenuNameLabel = this.GetMenuNameLabel.bind(this);\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\r\n\t\tif (setAppLeftTitle)\r\n\t\t\tsetAppLeftTitle(\"Approval\");\r\n\t\tif (setAppCenterTitle) {\r\n\t\t\tif (this.props.MenuCode == MenuCodes.Backoffice_TransactionApproval) {\r\n\t\t\t\tsetAppCenterTitle(\"CLIENT\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tsetAppCenterTitle(\"USER ADMIN\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}\r\n\r\n\tValueChanged(name, newValue, data) {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.model || {};\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tGetClick() {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tvar request = {\r\n\t\t\tMenuId: model.Menu,\r\n\t\t\tUserId: model.User,\r\n\t\t\tApprovalStatusId: model.ApprovalStatus,\r\n\t\t\tCreationStartDate: model.CreationStartDate,\r\n\t\t\tCreationEndDate: model.CreationEndDate,\r\n\t\t\tLastUpdateStartDate: model.LastUpdateStartDate,\r\n\t\t\tLastUpdateEndDate: model.LastUpdateEndDate\r\n\t\t};\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/WorkflowData/GetAll\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvar mainData = responseData.Item || {};\r\n\t\t\t\tthis.setState({ InboxData: mainData.InboxData, OutboxData: mainData.OutboxData });\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tClearClick() {\r\n\t\tthis.ClearScreen();\r\n\t}\r\n\r\n\tClearScreen() {\r\n\t\tthis.setState({ model: this.initialModel, lastModel: this.initialModel, rowIndex: null });\r\n\t}\r\n\r\n\tShowMessage(type, title, message) {\r\n\t\tthis.setState({ alert: AlertHelper.CreateAlert(title, message, type, this.hideAlert) });\r\n\t}\r\n\r\n\thideAlert() {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\tapprovalDialogClose() {\r\n\t\tthis.setState({ isApprovalDialogOpen: false }, this.GetClick);\r\n\t}\r\n\r\n\tGetMenuNameLabel(approvalData) {\r\n\t\tif (approvalData != null) {\r\n\t\t\tvar menuCode = approvalData.MenuNameCode;\r\n\t\t\tvar menuName = ResourceHelper.GetForMenu(menuCode);\r\n\t\t\treturn menuName || \"! \" + menuCode;\r\n\t\t}\r\n\r\n\t\treturn \"Unknown\";\r\n\t}\r\n\r\n\tGetActionName(approvalData) {\r\n\t\tif (approvalData != null) {\r\n\t\t\tvar actionName = approvalData.ActionName;\r\n\t\t\treturn actionName || \"Unknown\";\r\n\t\t}\r\n\r\n\t\treturn \"Unknown\";\r\n\t}\r\n\r\n\tGetMenuName(menu) {\r\n\t\tvar menuName = ResourceHelper.GetForMenu(menu.Name);\r\n\r\n\t\treturn `${!menuName ? \"! \" + menu.Name : menuName} - ${menu.Code}`;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, alert, isLoading, InboxData, OutboxData, ApprovalData, isApprovalDialogOpen, isApproveUsersDialogOpen, ApproveUsers } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\tInbox (Checker)\r\n\t\t\t\t\t\t

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tvar disabled = true;\r\n\r\n\t\t\t\t\t\t\t\t\t\tif (d.original.ApprovalStatusCode == ApprovalStatus.Waiting)\r\n\t\t\t\t\t\t\t\t\t\t\tdisabled = false;\r\n\r\n\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t { this.setState({ isApprovalDialogOpen: true, ApprovalData: d.original }); }} />\r\n\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\twidth: 80,\r\n\t\t\t\t\t\t\t\t\tsortable: true,\r\n\t\t\t\t\t\t\t\t\tfilterable: true,\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Menu\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"MenuNameCode\",\r\n\t\t\t\t\t\t\t\t\tCell: d =>
{ResourceHelper.GetForMenu(d.value)}
,\r\n\t\t\t\t\t\t\t\t\tsortable: true,\r\n\t\t\t\t\t\t\t\t\tfilterable: true,\r\n\t\t\t\t\t\t\t\t\tfilterMethod: (filter, row) => {\r\n\t\t\t\t\t\t\t\t\t\tvar name = ResourceHelper.Get(row[filter.id]);\r\n\t\t\t\t\t\t\t\t\t\treturn name.toUpperCase().includes(filter.value.toUpperCase());\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Action\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"ActionName\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"User\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"UserName\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Approval Status\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"ApprovalStatus\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Sub Status\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"SubStatus\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Creation Date\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\t\t\t\t\t\tfilterMethod: (filter, row) => {\r\n\t\t\t\t\t\t\t\t\t\treturn Formatter.FormatDateTime(row[filter.id]).toLowerCase().startsWith(filter.value.toLowerCase());\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Last Update Date\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"UpdateDateTime\",\r\n\t\t\t\t\t\t\t\t\tCell: row =>
{Formatter.FormatDateTime(row.value || row.original.InsertDateTime)}
,\r\n\t\t\t\t\t\t\t\t\tfilterMethod: (filter, row) => {\r\n\t\t\t\t\t\t\t\t\t\treturn Formatter.FormatDateTime(row[filter.id] || row._original.InsertDateTime).toLowerCase().startsWith(filter.value.toLowerCase());\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\tData={InboxData}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\tOutbox (Maker)\r\n\t\t\t\t\t\t

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tvar disabled = true;\r\n\r\n\t\t\t\t\t\t\t\t\t\tif ([ApprovalStatus.Approved, ApprovalStatus.Rejected].some(x => x == d.original.ApprovalStatusCode))\r\n\t\t\t\t\t\t\t\t\t\t\tdisabled = false;\r\n\r\n\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t { this.setState({ isApprovalDialogOpen: true, ApprovalData: d.original }); }} />\r\n\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\twidth: 80,\r\n\t\t\t\t\t\t\t\t\tsortable: false,\r\n\t\t\t\t\t\t\t\t\tfilterable: false,\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Approve Users\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"usersCanApproveButton\",\r\n\t\t\t\t\t\t\t\t\tCell: d => {\r\n\t\t\t\t\t\t\t\t\t\tvar disabled = true;\r\n\t\t\t\t\t\t\t\t\t\tif (d.original.ApprovalStatus != null) {\r\n\t\t\t\t\t\t\t\t\t\t\tif (![ApprovalStatus.Completed, ApprovalStatus.CanceledbyUser].some(x => x == d.original.ApprovalStatusCode))\r\n\t\t\t\t\t\t\t\t\t\t\t\tdisabled = false;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tthis.setState({ isLoading: true });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tProxy.POST(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"/coreapi/v1.0/WorkflowData/GetApprovers\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\td.original.Id,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tresponseData => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tconsole.error(\"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlet approverList = responseData.Item.map(x => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: x\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.setState({ isApproveUsersDialogOpen: true, isLoading: false, ApproveUsers: approverList });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\terror => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tconsole.error(\"Error\", error.message);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t\t}} />\r\n\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\twidth: 120,\r\n\t\t\t\t\t\t\t\t\tsortable: false,\r\n\t\t\t\t\t\t\t\t\tfilterable: false,\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Menu\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"MenuNameCode\",\r\n\t\t\t\t\t\t\t\t\tCell: d =>
{ResourceHelper.GetForMenu(d.value)}
,\r\n\t\t\t\t\t\t\t\t\tsortable: true,\r\n\t\t\t\t\t\t\t\t\tfilterable: true,\r\n\t\t\t\t\t\t\t\t\tfilterMethod: (filter, row) => {\r\n\t\t\t\t\t\t\t\t\t\tvar name = ResourceHelper.Get(row[filter.id]);\r\n\t\t\t\t\t\t\t\t\t\treturn name.toUpperCase().includes(filter.value.toUpperCase());\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Action\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"ActionName\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Approval Status\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"ApprovalStatus\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Sub Status\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"SubStatus\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Creation Date\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"InsertDateTime\",\r\n\t\t\t\t\t\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\t\t\t\t\t\tfilterMethod: (filter, row) => {\r\n\t\t\t\t\t\t\t\t\t\treturn Formatter.FormatDateTime(row[filter.id]).toLowerCase().startsWith(filter.value.toLowerCase());\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tHeader: \"Last Update Date\",\r\n\t\t\t\t\t\t\t\t\taccessor: \"UpdateDateTime\",\r\n\t\t\t\t\t\t\t\t\tCell: row =>
{Formatter.FormatDateTime(row.value || row.original.InsertDateTime)}
,\r\n\t\t\t\t\t\t\t\t\tfilterMethod: (filter, row) => {\r\n\t\t\t\t\t\t\t\t\t\treturn Formatter.FormatDateTime(row[filter.id] || row._original.InsertDateTime).toLowerCase().startsWith(filter.value.toLowerCase());\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\tData={OutboxData}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t this.setState({ isApproveUsersDialogOpen: false })} TransitionComponent={Transition}>\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tUsers Can Approve\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nWorkflowManagement.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(WorkflowManagement, style);","import Card from \"components/Card/Card\";\r\nimport CardBody from \"components/Card/CardBody\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer\";\r\nimport GridItem from \"components/Grid/GridItem\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ResourceHelper from \"core/ResourceHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericTitle, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nclass WorkflowStepDefinition extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.defaultModel = {\r\n\t\t\tId: undefined,\r\n\t\t\tMenuId: undefined,\r\n\t\t\tMenuActionId: undefined,\r\n\t\t\tStepName: \"\",\r\n\t\t\tStepNr: undefined,\r\n\t\t\tMethodId: undefined,\r\n\t\t\tGroupId: undefined\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tvModel: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tIsUpdate: false,\r\n\t\t\tStepList: [],\r\n\t\t\tdata: [],\r\n\t\t\tSelectedRowIndex: undefined,\r\n\t\t\tmodel: { ...this.defaultModel }\r\n\t\t};\r\n\r\n\t\tthis.EmptyObject = {};\r\n\r\n\t\tthis.sortedName = {\r\n\t\t\tMember: \"Name\"\r\n\t\t};\r\n\t\tthis.sortedCode = {\r\n\t\t\tMember: \"Code\"\r\n\t\t};\r\n\r\n\t\tthis.sortedGrid = [{\r\n\t\t\tid: \"StepNr\",\r\n\t\t\tdesc: false\r\n\t\t}];\r\n\r\n\t\tthis.ValueChanged = this.ValueChanged.bind(this);\r\n\t\tthis.SubmitClick = this.SubmitClick.bind(this);\r\n\t\tthis.Insert = this.Insert.bind(this);\r\n\t\tthis.Update = this.Update.bind(this);\r\n\t\tthis.DeleteClick = this.DeleteClick.bind(this);\r\n\t\tthis.Delete = this.Delete.bind(this);\r\n\t\tthis.ClearClick = this.ClearClick.bind(this);\r\n\t\tthis.LoadStepList = this.LoadStepList.bind(this);\r\n\t\tthis.RowSelected = this.RowSelected.bind(this);\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\r\n\t\tif (setAppLeftTitle)\r\n\t\t\tsetAppLeftTitle(\"Workflow Step Definition\");\r\n\t\tif (setAppCenterTitle)\r\n\t\t\tsetAppCenterTitle(\"SYSTEM ADMIN\");\r\n\t}\r\n\r\n\tSubmitClick() {\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tconst { IsUpdate } = this.state;\r\n\r\n\t\tif (IsUpdate) {\r\n\t\t\tthis.Update();\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.Insert();\r\n\t\t}\r\n\t}\r\n\r\n\tInsert() {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tvar request = {\r\n\t\t\tMenuActionId: model.MenuActionId,\r\n\t\t\tName: model.StepName,\r\n\t\t\tStepNr: model.StepNr,\r\n\t\t\tWorkflowMethodId: model.MethodId,\r\n\t\t\tWorkflowUserGroupId: model.GroupId\r\n\t\t};\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/coreapi/v1.0/WorkflowStep/InsertWorkflowStep\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while inserting data\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Workflow Step successfully saved.\");\r\n\r\n\t\t\t\tthis.LoadStepList(model.MenuActionId);\r\n\t\t\t\tthis.HandleSearch();\r\n\r\n\r\n\t\t\t\tmodel.Id = responseData.Item.Id;\r\n\t\t\t\tthis.setState({ model, IsUpdate: true });\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while inserting data\", errorMessage);\r\n\t\t\t});\r\n\t}\r\n\r\n\tUpdate() {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tvar request = {\r\n\t\t\tId: model.Id,\r\n\t\t\tName: model.StepName,\r\n\t\t\tStepNr: model.StepNr,\r\n\t\t\tWorkflowMethodId: model.MethodId,\r\n\t\t\tWorkflowUserGroupId: model.GroupId\r\n\t\t};\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/coreapi/v1.0/WorkflowStep/UpdateWorkflowStep\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while updating data\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Workflow Step successfully updated.\");\r\n\r\n\t\t\t\tthis.LoadStepList(model.MenuActionId);\r\n\t\t\t\tthis.HandleSearch();\r\n\r\n\t\t\t\tthis.setState({ model });\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while inserting data\", errorMessage);\r\n\t\t\t});\r\n\t}\r\n\r\n\tValidate() {\r\n\t\tconst { model, StepList, IsUpdate, vModel } = this.state;\r\n\r\n\t\tvar messages = [];\r\n\t\tif (model.MenuActionId == null) {\r\n\t\t\tvModel.MenuActionId = true;\r\n\t\t\tmessages.push(\"Menu Action is not selected.\");\r\n\t\t} else { vModel.MenuActionId = false; }\r\n\r\n\t\tif (model.StepName == null || model.StepName == \"\") {\r\n\t\t\tvModel.StepName = true;\r\n\t\t\tmessages.push(\"Step Name cannot be null.\");\r\n\t\t} else { vModel.StepName = false; }\r\n\r\n\t\tif (model.StepNr == null || model.StepNr == \"\") {\r\n\t\t\tvModel.StepNr = true;\r\n\t\t\tmessages.push(\"Step Number cannot be null.\");\r\n\t\t} else { vModel.StepNr = false; }\r\n\r\n\t\tif (StepList.some(x => (!IsUpdate || x.Id == model.Id) && x.StepNr == model.StepNr)) messages.push(\"Step Number already defined.\");\r\n\r\n\t\tif (model.GroupId == null) {\r\n\t\t\tvModel.GroupId = true;\r\n\t\t\tmessages.push(\"Approve Group is not selected.\");\r\n\t\t} else { vModel.GroupId = false }\r\n\r\n\t\tif (model.MethodId == null) {\r\n\t\t\tvModel.MethodId = true;\r\n\t\t\tmessages.push(\"Method is not selected.\");\r\n\t\t} else { vModel.MethodId = false }\r\n\t\tthis.setState({ vModel })\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.GET(\r\n\t\t\t\"/coreapi/v1.0/WorkflowStep/GetAllForSearch\",\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Sorry, an error has occurred\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ data: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tValueChanged(name, newValue) {\r\n\t\tif (name == \"MenuActionId\") {\r\n\t\t\tthis.LoadStepList(newValue);\r\n\t\t}\r\n\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model || {};\r\n\t\t\tmodel[name] = newValue;\r\n\r\n\t\t\tif (name == \"MenuId\") {\r\n\t\t\t\tmodel.MenuActionId = undefined;\r\n\t\t\t\tstate.StepList = [];\r\n\t\t\t\tstate.SelectedRowIndex = undefined;\r\n\t\t\t}\r\n\r\n\t\t\tif (name == \"MenuId\" || name == \"MenuActionId\") {\r\n\t\t\t\tmodel.Id = undefined;\r\n\t\t\t\tmodel.StepName = \"\";\r\n\t\t\t\tmodel.StepNr = undefined;\r\n\t\t\t\tmodel.MethodId = undefined;\r\n\t\t\t\tmodel.GroupId = undefined;\r\n\t\t\t\tstate.IsUpdate = false;\r\n\t\t\t}\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tLoadStepList(menuActionId) {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/coreapi/v1.0/WorkflowStep/GetByMenuId\",\r\n\t\t\tmenuActionId,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while fetching data\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ StepList: responseData.Item, SelectedRowIndex: undefined });\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while fetching data\", errorMessage);\r\n\t\t\t});\r\n\t}\r\n\r\n\tClearClick() {\r\n\t\tthis.setState({ model: { ...this.defaultModel }, IsUpdate: false, StepList: [], SelectedRowIndex: undefined, vModel: {}, data : [] });\r\n\t}\r\n\r\n\tDeleteClick() {\r\n\t\tthis.props.showConfirmMessage(\"warning\", \"Workflow Step Confirmation\", \"Are you sure to delete this step?\", () => {\r\n\t\t\tthis.Delete();\r\n\t\t});\r\n\t}\r\n\r\n\tDelete() {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/coreapi/v1.0/WorkflowStep/DeleteWorkflowStep\",\r\n\t\t\tmodel.Id,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while deleting data\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Workflow Step successfully deleted.\");\r\n\r\n\t\t\t\tthis.LoadStepList(model.MenuActionId);\r\n\r\n\t\t\t\tmodel.Id = undefined;\r\n\t\t\t\tmodel.StepName = \"\";\r\n\t\t\t\tmodel.StepNr = undefined;\r\n\t\t\t\tmodel.MethodId = undefined;\r\n\t\t\t\tmodel.GroupId = undefined;\r\n\r\n\t\t\t\tthis.setState({ model, IsUpdate: false });\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while deleting data\", errorMessage);\r\n\t\t\t});\r\n\t}\r\n\r\n\tGetMenuName(menu) {\r\n\t\tvar menuName = ResourceHelper.GetForMenu(menu.Name);\r\n\r\n\t\treturn `${!menuName ? \"! \" + menu.Name : menuName} - ${menu.Code}`;\r\n\t}\r\n\r\n\tGetRenderItemAction(menu) {\r\n\t\treturn `${menu.Action.Code} - ${menu.Action.Description}`;\r\n\t}\r\n\r\n\tRowSelected(index) {\r\n\t\t// this.setState({ model: { ...data }, IsUpdate: true });\r\n\t\tthis.setState(state => {\r\n\t\t\tstate.SelectedRowIndex = index;\r\n\r\n\t\t\tvar row = state.StepList[index];\r\n\t\t\tstate.model.Id = row.Id;\r\n\t\t\tstate.model.StepName = row.StepName;\r\n\t\t\tstate.model.StepNr = row.StepNr;\r\n\t\t\tstate.model.MethodId = row.MethodId;\r\n\t\t\tstate.model.GroupId = row.GroupId;\r\n\r\n\t\t\tstate.IsUpdate = true;\r\n\r\n\t\t\treturn state;\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { isLoading, model, StepList, SelectedRowIndex, IsUpdate, vModel,data } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t<>\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nWorkflowStepDefinition.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tmenuId: PropTypes.number.isRequired,\r\n\tApprovalData: PropTypes.object,\r\n\tAfter: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tshowMessage: PropTypes.func,\r\n\tshowMessageNode: PropTypes.func,\r\n\tshowConfirmMessage: PropTypes.func\r\n};\r\n\r\nexport default withArtifex(WorkflowStepDefinition, {});","import { DialogContent, DialogTitle, Slide } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card\";\r\nimport CardBody from \"components/Card/CardBody\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer\";\r\nimport GridItem from \"components/Grid/GridItem\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { DeleteIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar\";\r\nimport { GenericCheckInput, GenericDialog, GenericDialogActions, GenericGrid, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ToolbarButton from \"views/Components/ToolbarButton\";\r\nimport SelectUserComponent from \"views/Workflow/Components/SelectUserComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nfunction Transition(props) {\r\n\treturn ;\r\n}\r\n\r\nclass WorkflowUserGroupDefinition extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.defaultModel = {\r\n\t\t\tName: \"\",\r\n\t\t\tUserList: [],\r\n\t\t\tIsUpdate: false,\r\n\t\t\tGroupId: undefined\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tvModel: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tisSelectUserDialogOpen: false,\r\n\t\t\tSelectToken: false,\r\n\t\t\tmodel: { ...this.defaultModel },\r\n\t\t\tdata: []\r\n\t\t};\r\n\r\n\t\tthis.EmptyObject = {};\r\n\r\n\t\tthis.ValueChanged = this.ValueChanged.bind(this);\r\n\t\tthis.SubmitClick = this.SubmitClick.bind(this);\r\n\t\tthis.Insert = this.Insert.bind(this);\r\n\t\tthis.Update = this.Update.bind(this);\r\n\t\tthis.ClearClick = this.ClearClick.bind(this);\r\n\t\tthis.AddUserClick = this.AddUserClick.bind(this);\r\n\t\tthis.AddUser = this.AddUser.bind(this);\r\n\t\tthis.CloseSelectDialog = this.CloseSelectDialog.bind(this);\r\n\t\tthis.IsUserExists = this.IsUserExists.bind(this);\r\n\t\tthis.RefreshSelect = this.RefreshSelect.bind(this);\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { setAppLeftTitle, setAppCenterTitle } = this.props;\r\n\r\n\t\tif (setAppLeftTitle)\r\n\t\t\tsetAppLeftTitle(\"Workflow User Group Definition\");\r\n\t\tif (setAppCenterTitle)\r\n\t\t\tsetAppCenterTitle(\"SYSTEM ADMIN\");\r\n\t}\r\n\r\n\tSubmitClick() {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tif (model.IsUpdate) {\r\n\t\t\tthis.Update();\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.Insert();\r\n\t\t}\r\n\t}\r\n\r\n\tInsert() {\r\n\t\tconst { model, vModel } = this.state;\r\n\r\n\t\tif (model.Name == null || model.Name == \"\") {\r\n\t\t\tvModel.Name = true;\r\n\t\t\tthis.props.showMessage(\"warning\", \"Warning\", \"Group Name Cannot Be Empty.\");\r\n\t\t\treturn;\r\n\t\t} else { vModel.Name = false; }\r\n\r\n\r\n\t\tif (model.UserList == null || model.UserList.length == 0) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Warning\", \"User List Cannot Be Empty.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({ vModel })\r\n\t\tvar request = {\r\n\t\t\tName: model.Name,\r\n\t\t\tUserList: model.UserList.map(x => x.Id)\r\n\t\t};\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/coreapi/v1.0/WorkflowUserGroup/InsertWorkflowUserGroup\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while inserting data\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.props.showMessage(\"success\", \"User Group successfully saved.\");\r\n\r\n\t\t\t\tthis.RefreshSelect();\r\n\t\t\t\tthis.HandleSearch();\r\n\t\t\t\tmodel.GroupId = responseData.Item.Id;\r\n\t\t\t\tmodel.Name = \"\";\r\n\t\t\t\tmodel.IsUpdate = true;\r\n\t\t\t\tthis.setState({ model });\r\n\t\t\t\t\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while inserting data\", errorMessage);\r\n\t\t\t});\r\n\t}\r\n\r\n\tUpdate() {\r\n\t\tconst { model, vModel } = this.state;\r\n\r\n\t\tif (model.GroupId == null) {\r\n\t\t\tvModel.GroupId = true;\r\n\t\t\tthis.props.showMessage(\"warning\", \"Warning\", \"Group Not Selected For Update.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\r\n\t\tif (model.UserList == null || model.UserList.length == 0) {\r\n\t\t\tthis.props.showMessage(\"warning\", \"Warning\", \"User List Cannot Be Empty.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({ vModel })\r\n\t\tvar request = {\r\n\t\t\tId: model.GroupId,\r\n\t\t\tUserList: model.UserList.map(x => x.Id)\r\n\t\t};\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/coreapi/v1.0/WorkflowUserGroup/UpdateWorkflowUserGroup\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while updating data\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.props.showMessage(\"success\", \"User Group successfully updated.\");\r\n\r\n\t\t\t\tthis.RefreshSelect();\r\n\t\t\t\tthis.HandleSearch();\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while updating data\", errorMessage);\r\n\t\t\t});\r\n\t}\r\n\t\r\n\tHandleSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.GET(\r\n\t\t\t\"/coreapi/v1.0/WorkflowUserGroup/GetAllUserGroup\",\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Sorry, an error has occurred\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ data: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tRefreshSelect() {\r\n\t\tthis.setState(state => { return { SelectToken: !state.SelectToken }; });\r\n\t}\r\n\r\n\tClearClick() {\r\n\t\tthis.setState({ model: { ...this.defaultModel }, vModel: {} , data : []});\r\n\t}\r\n\r\n\tAddUserClick() {\r\n\t\tthis.setState({ isSelectUserDialogOpen: true });\r\n\t}\r\n\r\n\tAddUser(data) {\r\n\t\tconst { model } = this.state;\r\n\t\tif (model.UserList.some(x => x.Id == data.Id))\r\n\t\t\treturn false;\r\n\r\n\t\tthis.setState(state => {\r\n\t\t\tstate.model.UserList = state.model.UserList.concat([data]);\r\n\t\t\treturn { model: state.model, isSelectUserDialogOpen: false };\r\n\t\t});\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tCloseSelectDialog() {\r\n\t\tthis.setState({ isSelectUserDialogOpen: false });\r\n\t}\r\n\r\n\tRemoveUser(userId) {\r\n\t\tthis.setState(state => {\r\n\t\t\tstate.model.UserList = state.model.UserList.filter(x => x.Id != userId);\r\n\t\t\treturn { model: state.model };\r\n\t\t});\r\n\t}\r\n\r\n\tIsUserExists(userId) {\r\n\t\tconst { model } = this.state;\r\n\t\treturn model.UserList.some(x => x.Id == userId);\r\n\t}\r\n\r\n\tValueChanged(name, newValue, data) {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model || {};\r\n\t\t\tmodel[name] = newValue;\r\n\r\n\t\t\tif (name == \"IsUpdate\") {\r\n\t\t\t\tif (newValue) {\r\n\t\t\t\t\tmodel.Name = \"\";\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tmodel.GroupId = undefined;\r\n\t\t\t\t\tmodel.UserList = [];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (name == \"GroupId\") {\r\n\t\t\t\tif (data) {\r\n\t\t\t\t\tmodel.UserList = data.UserList;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { isLoading, model, isSelectUserDialogOpen, SelectToken, vModel, data } = this.state;\r\n\r\n\t\tconst canAddUser = !model.IsUpdate || model.GroupId != null;\r\n\r\n\t\treturn (\r\n\t\t\t<>\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmodel.IsUpdate ?\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{\"Add User\"}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t (\r\n\t\t\t\t\t\t// \t\t
\r\n\t\t\t\t\t\t// \t\t\t { this.RemoveUser(row.original.Id); }}\r\n\t\t\t\t\t\t// \t\t\t/>\r\n\t\t\t\t\t\t// \t\t
\r\n\t\t\t\t\t\t// \t),\r\n\t\t\t\t\t\t// \twidth: 60,\r\n\t\t\t\t\t\t// \tsortable: false,\r\n\t\t\t\t\t\t// \tfilterable: false,\r\n\t\t\t\t\t\t// },\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tHeader: \"User Group Name\",\r\n\t\t\t\t\t\t\taccessor: \"UserGroupName\"\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tHeader: \"User Name\",\r\n\t\t\t\t\t\t\taccessor: \"UserName\"\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tHeader: \"User Role\",\r\n\t\t\t\t\t\t\taccessor: \"UserRole\"\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tHeader: \"Name\",\r\n\t\t\t\t\t\t\taccessor: \"Name\"\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tHeader: \"Last Name\",\r\n\t\t\t\t\t\t\taccessor: \"LastName\"\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tHeader: \"ID Type\",\r\n\t\t\t\t\t\t\taccessor: \"IdType\"\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tHeader: \"ID Number\",\r\n\t\t\t\t\t\t\taccessor: \"IdNumber\"\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tHeader: \"Exp. Date of ID\",\r\n\t\t\t\t\t\t\taccessor: \"ExpDateOfId\",\r\n\t\t\t\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tHeader: \"User Exp. Date\",\r\n\t\t\t\t\t\t\taccessor: \"UserExpDate\",\r\n\t\t\t\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tHeader: \"User Status\",\r\n\t\t\t\t\t\t\taccessor: \"UserStatus\"\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t]}\r\n\t\t\t\t/>\r\n\t\t\t\t< GenericDialog open={isSelectUserDialogOpen} fullScreen onBackdropClick={this.CloseSelectDialog} TransitionComponent={Transition} keepMounted={true}>\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tAdd User to Group\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nWorkflowUserGroupDefinition.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tmenuId: PropTypes.number.isRequired,\r\n\tApprovalData: PropTypes.object,\r\n\tAfter: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tshowMessage: PropTypes.func\r\n};\r\n\r\nexport default withArtifex(WorkflowUserGroupDefinition, {});","/*!\r\n\r\n =========================================================\r\n * Material Dashboard PRO React - v1.3.0 based on Material Dashboard PRO - v1.2.1\r\n =========================================================\r\n\r\n * Product Page: https://www.creative-tim.com/product/material-dashboard-react\r\n * Copyright 2018 Creative Tim (https://www.creative-tim.com)\r\n * Licensed under MIT (https://github.com/creativetimofficial/material-dashboard-react/blob/master/LICENSE.md)\r\n\r\n =========================================================\r\n\r\n * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\r\n\r\n */\r\n\r\n// ##############################\r\n// // // Variables - Styles that are used on more than one component\r\n// #############################\r\n\r\nconst drawerWidth = window.LeftRightMargin || 100;\r\n\r\nconst drawerMiniWidth = 80;\r\n\r\nconst transition = {\r\n\ttransition: \"all 0.33s cubic-bezier(0.685, 0.0473, 0.346, 1)\"\r\n};\r\n\r\nconst containerFluid = {\r\n\tpaddingRight: \"40px\",\r\n\tpaddingLeft: \"40px\",\r\n\tmarginRight: \"auto\",\r\n\tmarginLeft: \"auto\",\r\n\t\"&:before,&:after\": {\r\n\t\tdisplay: \"table\",\r\n\t\tcontent: \"\\\" \\\"\"\r\n\t},\r\n\t\"&:after\": {\r\n\t\tclear: \"both\"\r\n\t}\r\n};\r\n\r\nconst container = {\r\n\tpaddingRight: \"15px\",\r\n\tpaddingLeft: \"15px\",\r\n\tmarginRight: \"auto\",\r\n\tmarginLeft: \"auto\",\r\n\t\"@media (min-width: 768px)\": {\r\n\t\twidth: \"750px\"\r\n\t},\r\n\t\"@media (min-width: 992px)\": {\r\n\t\twidth: \"970px\"\r\n\t},\r\n\t\"@media (min-width: 1200px)\": {\r\n\t\twidth: \"1170px\"\r\n\t},\r\n\t\"&:before,&:after\": {\r\n\t\tdisplay: \"table\",\r\n\t\tcontent: \"\\\" \\\"\"\r\n\t},\r\n\t\"&:after\": {\r\n\t\tclear: \"both\"\r\n\t}\r\n};\r\n\r\nconst boxShadow = {\r\n\t// boxShadow:\"0 10px 30px -12px rgba(0, 0, 0, 0.42), 0 4px 25px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2)\"\r\n};\r\n\r\nconst cardBoxShadow = {\r\n\t//boxShadow:\"5px 5px 30px 0px rgba(0, 0, 0, 0.05), 4px 4px 25px 0px rgba(0, 0, 0, 0.06), 8px 8px 10px -5px rgba(0, 0, 0, 0.17)\",\r\n\tborder: \"solid 1px #908e8e\"\r\n};\r\n\r\nconst card = {\r\n\tdisplay: \"inline-block\",\r\n\tposition: \"relative\",\r\n\twidth: \"100%\",\r\n\tmargin: \"25px 0\",\r\n\tboxShadow: \"0 1px 4px 0 rgba(0, 0, 0, 0.14)\",\r\n\tborderRadius: \"6px\",\r\n\tcolor: \"rgba(0, 0, 0, 1)\",\r\n\tbackground: \"#fff\"\r\n};\r\n\r\nconst defaultFont = {\r\n\tfontFamily: \"\\\"Roboto\\\", \\\"Helvetica\\\", \\\"Arial\\\", sans-serif\",\r\n\tfontWeight: 300,\r\n\tlineHeight: \"1.5em\"\r\n};\r\n\r\nconst primaryColor = window.PageMainColor;\r\nconst warningColor = \"#457cf7\";\r\nconst dangerColor = \"#f44336\";\r\nconst successColor = \"#4caf50\";\r\nconst infoColor = \"#00acc1\";\r\nconst roseColor = \"#f57f29\";\r\nconst whiteColor = \"#fff\";\r\nconst grayColor = \"#999999\";\r\nconst blackColor = \"#000\";\r\n\r\nconst hexToRgb = hex =>\r\n\thex.replace(/^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i\r\n\t\t, (m, r, g, b) => \"#\" + r + r + g + g + b + b)\r\n\t\t.substring(1).match(/.{2}/g)\r\n\t\t.map(x => parseInt(x, 16));\r\n\r\nconst lightenDarkenColor = (col, amt) => {\r\n\tvar usePound = false;\r\n\r\n\tif (col[0] == \"#\") {\r\n\t\tcol = col.slice(1);\r\n\t\tusePound = true;\r\n\t}\r\n\r\n\tvar num = parseInt(col, 16);\r\n\r\n\tvar r = (num >> 16) + amt;\r\n\r\n\tif (r > 255) r = 255;\r\n\telse if (r < 0) r = 0;\r\n\r\n\tvar b = ((num >> 8) & 0x00FF) + amt;\r\n\r\n\tif (b > 255) b = 255;\r\n\telse if (b < 0) b = 0;\r\n\r\n\tvar g = (num & 0x0000FF) + amt;\r\n\r\n\tif (g > 255) g = 255;\r\n\telse if (g < 0) g = 0;\r\n\r\n\treturn (usePound ? \"#\" : \"\") + (g | (b << 8) | (r << 16)).toString(16);\r\n};\r\n\r\nconst primaryBoxShadow = {\r\n\tboxShadow:\r\n\t\t\"0 12px 20px -10px rgba(\" + hexToRgb(primaryColor) + \", 0.28), 0 4px 20px 0px rgba(0, 0, 0, 0.12), 0 7px 8px -5px rgba(\" + hexToRgb(primaryColor) + \", 0.2)\"\r\n};\r\nconst infoBoxShadow = {\r\n\tboxShadow:\r\n\t\t\"0 12px 20px -10px rgba(0, 188, 212, 0.28), 0 4px 20px 0px rgba(0, 0, 0, 0.12), 0 7px 8px -5px rgba(0, 188, 212, 0.2)\"\r\n};\r\nconst successBoxShadow = {\r\n\tboxShadow:\r\n\t\t\"0 12px 20px -10px rgba(76, 175, 80, 0.28), 0 4px 20px 0px rgba(0, 0, 0, 0.12), 0 7px 8px -5px rgba(76, 175, 80, 0.2)\"\r\n};\r\nconst warningBoxShadow = {\r\n\tboxShadow:\r\n\t\t\"0 12px 20px -10px rgba(255, 152, 0, 0.28), 0 4px 20px 0px rgba(0, 0, 0, 0.12), 0 7px 8px -5px rgba(255, 152, 0, 0.2)\"\r\n};\r\nconst dangerBoxShadow = {\r\n\tboxShadow:\r\n\t\t\"0 12px 20px -10px rgba(244, 67, 54, 0.28), 0 4px 20px 0px rgba(0, 0, 0, 0.12), 0 7px 8px -5px rgba(244, 67, 54, 0.2)\"\r\n};\r\nconst roseBoxShadow = {\r\n\tboxShadow:\r\n\t\t\"0 4px 20px 0px rgba(0, 0, 0, 0.14), 0 7px 10px -5px rgba(233, 30, 99, 0.4)\"\r\n};\r\nconst whiteBoxShadow = {\r\n\tboxShadow:\r\n\t\t\"10px 10px 10px rgba(0, 0, 0, 0.45)\"\r\n};\r\n// old card headers\r\nconst orangeCardHeader = {\r\n\tbackground: \"linear-gradient(60deg, \" + warningColor + \", \" + warningColor + \")\",\r\n\t...warningBoxShadow\r\n};\r\nconst greenCardHeader = {\r\n\tbackground: \"linear-gradient(60deg, #66bb6a, #43a047)\",\r\n\t...successBoxShadow\r\n};\r\nconst redCardHeader = {\r\n\tbackground: \"linear-gradient(60deg, #ef5350, #e53935)\",\r\n\t...dangerBoxShadow\r\n};\r\nconst blueCardHeader = {\r\n\tbackground: \"linear-gradient(60deg, #26c6da, #00acc1)\",\r\n\t...infoBoxShadow\r\n};\r\nconst purpleCardHeader = {\r\n\tbackground: \"linear-gradient(60deg, #ab47bc, #8e24aa)\",\r\n\t...primaryBoxShadow\r\n};\r\n// new card headers\r\nconst warningCardHeader = {\r\n\tbackground: \"linear-gradient(60deg, #457CF7, #402FC0)\",\r\n\t...warningBoxShadow\r\n};\r\nconst successCardHeader = {\r\n\tbackground: \"linear-gradient(60deg, #66bb6a, #43a047)\",\r\n\t...successBoxShadow\r\n};\r\nconst dangerCardHeader = {\r\n\tbackground: \"linear-gradient(60deg, #ef5350, #e53935)\",\r\n\t...dangerBoxShadow\r\n};\r\nconst infoCardHeader = {\r\n\tbackground: \"linear-gradient(60deg, #26c6da, #00acc1)\",\r\n\t...infoBoxShadow\r\n};\r\nconst primaryCardHeader = {\r\n\tbackground: \"linear-gradient(60deg, \" + lightenDarkenColor(primaryColor, 20) + \", \" + primaryColor + \")\",\r\n\t...primaryBoxShadow\r\n};\r\nconst roseCardHeader = {\r\n\tbackground: \"linear-gradient(60deg, #ec407a, #d81b60)\",\r\n\t...roseBoxShadow\r\n};\r\nconst whiteCardHeader = {\r\n\tbackground: \"linear-gradient(60deg, #fff, #fff)\",\r\n\t...whiteBoxShadow\r\n};\r\nconst blackCardHeader = {\r\n\tbackground: \"linear-gradient(60deg, #000, #000)\",\r\n\t...whiteBoxShadow\r\n};\r\nconst cardActions = {\r\n\tmargin: \"0 20px 10px\",\r\n\tpaddingTop: \"10px\",\r\n\tborderTop: \"1px solid #eeeeee\",\r\n\theight: \"auto\",\r\n\t...defaultFont\r\n};\r\n\r\nconst cardHeader = {\r\n\tmargin: \"-20px 15px 0\",\r\n\tborderRadius: \"3px\",\r\n\tpadding: \"15px\"\r\n};\r\n\r\nconst defaultBoxShadow = {\r\n\tborder: \"0\",\r\n\tborderRadius: \"3px\",\r\n\tboxShadow:\r\n\t\t\"0 10px 20px -12px rgba(0, 0, 0, 0.42), 0 3px 20px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2)\",\r\n\tpadding: \"10px 0\",\r\n\ttransition: \"all 150ms ease 0s\"\r\n};\r\n\r\nconst tooltip = {\r\n\tpadding: \"10px 15px\",\r\n\tminWidth: \"130px\",\r\n\tcolor: \"#FFFFFF\",\r\n\tlineHeight: \"1.7em\",\r\n\tbackground: \"rgba(85,85,85,0.9)\",\r\n\tborder: \"none\",\r\n\tborderRadius: \"3px\",\r\n\topacity: \"1!important\",\r\n\tboxShadow:\r\n\t\t\"0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12), 0 5px 5px -3px rgba(0, 0, 0, 0.2)\",\r\n\tmaxWidth: \"200px\",\r\n\ttextAlign: \"center\",\r\n\tfontFamily: \"\\\"Helvetica Neue\\\",Helvetica,Arial,sans-serif\",\r\n\tfontSize: \"12px\",\r\n\tfontStyle: \"normal\",\r\n\tfontWeight: 400,\r\n\ttextShadow: \"none\",\r\n\ttextTransform: \"none\",\r\n\tletterSpacing: \"normal\",\r\n\twordBreak: \"normal\",\r\n\twordSpacing: \"normal\",\r\n\twordWrap: \"normal\",\r\n\twhiteSpace: \"normal\",\r\n\tlineBreak: \"auto\"\r\n};\r\n\r\nconst title = {\r\n\tcolor: \"#3C4858\",\r\n\ttextDecoration: \"none\",\r\n\tfontWeight: 300,\r\n\tmarginTop: \"30px\",\r\n\tmarginBottom: \"25px\",\r\n\tminHeight: \"32px\",\r\n\tfontFamily: \"'Roboto', 'Helvetica', 'Arial', sans-serif\",\r\n\t\"& small\": {\r\n\t\tcolor: \"#777\",\r\n\t\tfontSize: \"65%\",\r\n\t\tfontWeight: 400,\r\n\t\tlineHeight: \"1\"\r\n\t}\r\n};\r\n\r\nconst cardTitle = {\r\n\t...title,\r\n\tmarginTop: \"0\",\r\n\tmarginBottom: \"3px\",\r\n\tminHeight: \"auto\",\r\n\t\"& a\": {\r\n\t\t...title,\r\n\t\tmarginTop: \".625rem\",\r\n\t\tmarginBottom: \"0.75rem\",\r\n\t\tminHeight: \"auto\"\r\n\t}\r\n};\r\n\r\nconst cardSubtitle = {\r\n\tmarginTop: \"-.375rem\"\r\n};\r\n\r\nconst cardLink = {\r\n\t\"& + $cardLink\": {\r\n\t\tmarginLeft: \"1.25rem\"\r\n\t}\r\n};\r\n\r\nconst chartColors = {\r\n\tred: \"rgb(153, 51, 102)\",\r\n\torange: \"rgb(245, 127, 41)\",\r\n\tyellow: \"rgb(255, 205, 86)\",\r\n\tgreen: \"rgb(75, 192, 192)\",\r\n\tblue: \"rgb(54, 162, 235)\",\r\n\tpurple: \"rgb(153, 102, 255)\",\r\n\tgrey: \"rgb(201, 203, 207)\",\r\n\tred1: \"rgb(153, 51, 102)\",\r\n\torange1: \"rgb(245, 127, 41)\",\r\n\tyellow1: \"rgb(255, 205, 86)\",\r\n\tgreen1: \"rgb(75, 192, 192)\",\r\n\tblue1: \"rgb(54, 162, 235)\",\r\n\tpurple1: \"rgb(153, 102, 255)\",\r\n\tgrey1: \"rgb(201, 203, 207)\",\r\n\tred3: \"rgb(153, 51, 102)\",\r\n\torange3: \"rgb(245, 127, 41)\",\r\n\tyellow3: \"rgb(255, 205, 86)\",\r\n\tgreen3: \"rgb(75, 192, 192)\",\r\n\tblue3: \"rgb(54, 162, 235)\",\r\n\tpurple3: \"rgb(153, 102, 255)\",\r\n\tgrey3: \"rgb(201, 203, 207)\",\r\n\tred4: \"rgb(153, 51, 102)\",\r\n\torange4: \"rgb(245, 127, 41)\",\r\n\tyellow4: \"rgb(255, 205, 86)\",\r\n\tgreen4: \"rgb(75, 192, 192)\",\r\n\tblue4: \"rgb(54, 162, 235)\",\r\n\tpurple4: \"rgb(153, 102, 255)\",\r\n\tgrey4: \"rgb(201, 203, 207)\"\r\n};\r\nconst chartGradientColors = [\r\n\t{ begin: \"#457CF7\", end: \"#339900\" },\r\n\t{ begin: \"#457CF7\", end: \"#339900\" },\r\n\t{ begin: \"#457CF7\", end: \"#339900\" },\r\n\t{ begin: \"#ceae18\", end: \"#74A764\" },\r\n\t{ begin: \"#e6ab05\", end: \"#74A764\" },\r\n\t{ begin: \"#f1a900\", end: \"#74A764\" },\r\n\t{ begin: \"#ffa600\", end: \"#C9CBCF\" }\r\n];\r\nexport {\r\n\t//variables\r\n\tdrawerWidth,\r\n\tdrawerMiniWidth,\r\n\ttransition,\r\n\tcontainer,\r\n\tcontainerFluid,\r\n\tboxShadow,\r\n\tcardBoxShadow,\r\n\tcard,\r\n\tdefaultFont,\r\n\tprimaryColor,\r\n\twarningColor,\r\n\tdangerColor,\r\n\tsuccessColor,\r\n\tinfoColor,\r\n\troseColor,\r\n\twhiteColor,\r\n\tgrayColor,\r\n\tblackColor,\r\n\tprimaryBoxShadow,\r\n\tinfoBoxShadow,\r\n\tsuccessBoxShadow,\r\n\twarningBoxShadow,\r\n\tdangerBoxShadow,\r\n\troseBoxShadow,\r\n\twhiteBoxShadow,\r\n\t// old card header colors\r\n\torangeCardHeader,\r\n\tgreenCardHeader,\r\n\tredCardHeader,\r\n\tblueCardHeader,\r\n\tpurpleCardHeader,\r\n\troseCardHeader,\r\n\twhiteCardHeader,\r\n\tblackCardHeader,\r\n\t// new card header colors\r\n\twarningCardHeader,\r\n\tsuccessCardHeader,\r\n\tdangerCardHeader,\r\n\tinfoCardHeader,\r\n\tprimaryCardHeader,\r\n\tcardActions,\r\n\tcardHeader,\r\n\tdefaultBoxShadow,\r\n\ttooltip,\r\n\ttitle,\r\n\tcardTitle,\r\n\tcardSubtitle,\r\n\tcardLink,\r\n\tchartColors,\r\n\tchartGradientColors\r\n};\r\n","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAABkCAIAAACzY5qXAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAH+lJREFUeJztXWdYFMnW/n7ee9eVVdfs6q57DWsWAyYwoICCigHBgAEThtVdEyaCimIAEQwYUcAFFQHFgAEDBhRzBCOoiIhiDsSZ+V6p72uL6mEYZroJWu9znnmgu6q6Orx1zqlw6n9UHBwcJYr/KekKcHB87+Ak5OAoYXAScnCUMDgJOThKGJyEHBwlDE5CDo4SBichB0cJg5OQg6OEwUnIwVHC4CTk4ChhcBJycJQwZCShg4OTufnInj0dBgyY+OefC7y8thw+fDoxMTk3VyHfRTk4yhxkJGGTJj0NDFowUrVq2/btbebM8QwKirhx4458V+fgKCuQkYSNGlmISchI9+72GzfuSE19IV81yhweP06JiYl7+jRVqgIfPXp69uzl9PQ3UhXIIS1kJGFExJGtW3dv2xZWkPj7h65bt33t2qBz567KV43ixJs37yIjo/ftO0YLjuzffzw6+uy1a/EfPnzUXEJ4+OGaNTuiefr9966w3vWvko/PNlJgw4ZmR46c0b9ADXj+PJ3cPn4PHjz5+XOGrJf7ZsA7ZqTEhQs3NGv+xo0tbG2nLFmy7sWLV+LsoGjTpr2ExA0a9Hj79r0+9bl+PYG+Onj47t0Hcgp/3Lp17/btL4I/Cm0dtAHaGuFaP/3U8smTZ/qX+T2Ak1BKXLp0s1ALnEizZpawFJjsL1++rlatnZCmcuU2ehrqUL/0RatUaZua+pKc2rPnaIUKhhUrfhH8IYmSjIo6KVyrevX2yc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YiSEhvSY0j4pVfb9++p0cmyXIngJ4jCmXL5Lp58y49VlmjRge1kcI5JME3S8Lkl0qv8OwRXpm2HpmDl2WOWJk5ylu9jFyZufmwNJuEpqe/YXa3oyU8/PCpUxfgdGkOLZMXf3YfiT/r5bWFCbl7/vy1vA399oWFHcrNVTx9moq/hW39xFuuZ2fngKgkTXBwpLBVfWzs5f/PuO/o0bPiasTExAklBwZGqA3dyyEJvlkSAlCDl+8rQk7mTF5XyBooqaKtcXDogG+ZhDSevFAeupS7KCQbeq+/Oyu+kZyEHCWG74WEHBylFpyEHBwlDE5CDo4SBichB0cJg5OQg6OEwUnIwVHC4CTk4ChhcBJycJQwOAk5OEoYnIQcHCWM/wUyn/j3kyyLcwAAAABJRU5ErkJggg==\"","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { withArtifex } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport { GenericAlert, GenericLabel, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\n\r\nconst initialState = {\r\n\tmodel: {},\r\n\tisLoading: false,\r\n\tReadOnly: false\r\n};\r\nclass InternalScorecardTab extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = initialState;\r\n\t\tthis.LoanTypeParameterCode = { ParameterCode: \"LOSLoanType\" };\r\n\t\tthis.LoanPurposeParameterCode = { ParameterCode: \"LOSLoanPurpose\" };\r\n\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t}\r\n\r\n\tHandleClickClearOk = () => {\r\n\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.ShowConfirmMessage(\"warning\", \"Warning\", \"This will erase the information you entered on the screen. Are you sure you want to quit this definition?\", () => this.HandleClickClearOk());\r\n\t}\r\n\tErrorCallback = (error) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"Error\", \"An error occurred during the api visit\" + error);\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: null })} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\r\n\tHideAlert = () => {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\tRefreshToolBar = () => {\r\n\t\tthis.setState({ LimitToken: !this.state.LimitToken });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { isLoading, } = this.state;\r\n\t\tconst { QuestionList } = this.props;\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t{alert}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{QuestionList != undefined && QuestionList.map((question, i) => {\r\n\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{question.AnswerList != undefined && question.AnswerList.map((answer, j, array) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{question.AnswerList != undefined && question.AnswerList.map((answer, j, array) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t})}\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nInternalScorecardTab.propTypes = {\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tQuestionList: PropTypes.array,\r\n\tAnswerValueList: PropTypes.array,\r\n\tHandleChange: PropTypes.func,\r\n\tHandleAnswerChange: PropTypes.func\r\n};\r\n\r\nexport default withArtifex(InternalScorecardTab, {});","import ApproveIcon from \"assets/img/actionIcons/approve.png\";\r\nimport DeleteIcon from \"assets/img/actionIcons/delete.png\";\r\nimport DetailIcon from \"assets/img/actionIcons/detail.png\";\r\nimport DocumentIcon from \"assets/img/actionIcons/document.png\";\r\nimport DownloadIcon from \"assets/img/actionIcons/download.png\";\r\nimport EditIcon from \"assets/img/actionIcons/edit.png\";\r\nimport EmailIcon from \"assets/img/actionIcons/email.png\";\r\nimport ExplanantionIcon from \"assets/img/actionIcons/explanantion.png\";\r\nimport InformationIcon from \"assets/img/actionIcons/information.png\";\r\nimport PrintIcon from \"assets/img/actionIcons/print.png\";\r\nimport ProfileIcon from \"assets/img/actionIcons/profile.png\";\r\nimport QRCodeIcon from \"assets/img/actionIcons/qrCode.png\";\r\nimport RowDetailIcon from \"assets/img/actionIcons/rowdetail.png\";\r\nimport SignOutIcon from \"assets/img/actionIcons/signout.png\";\r\nimport SubmitOrSendIcon from \"assets/img/actionIcons/submitorsend.png\";\r\nimport UploadIcon from \"assets/img/actionIcons/upload.png\";\r\nimport SuspiciousIcon from \"assets/img/actionIcons/suspicious.png\";\r\nimport TraceIcon from \"assets/img/actionIcons/trace.png\";\r\nimport EftIcon from \"assets/img/actionIcons/eft.png\";\r\nimport ETransferIcon from \"assets/img/actionIcons/etransfer.png\";\r\nimport SwiftIcon from \"assets/img/actionIcons/swift.png\";\r\nimport VerificationIcon from \"assets/img/actionIcons/verification.png\";\r\nimport MoveToLegalIcon from \"assets/img/actionIcons/movetolegal.png\";\r\nimport CredentialIcon from \"assets/img/actionIcons/credential.png\";\r\nimport WalletIcon from \"assets/img/actionIcons/wallet.png\";\r\nimport PayIcon from \"assets/img/actionIcons/pay.png\";\r\nimport CVVRetryIcon from \"assets/img/actionIcons/unlock1.png\";\r\nimport PinRetryIcon from \"assets/img/actionIcons/unlock2.png\";\r\nimport UndoIcon from \"assets/img/actionIcons/undo4.png\";\r\nimport CopyIcon from \"assets/img/actionIcons/copyimg.png\";\r\n\r\n\r\n\r\nexport {\r\n\tVerificationIcon,\r\n\tSwiftIcon,\r\n\tETransferIcon,\r\n\tEftIcon,\r\n\tTraceIcon,\r\n\tSuspiciousIcon,\r\n\tEditIcon,\r\n\tApproveIcon,\r\n\tDeleteIcon,\r\n\tDetailIcon,\r\n\tDocumentIcon,\r\n\tDownloadIcon,\r\n\tEmailIcon,\r\n\tExplanantionIcon,\r\n\tInformationIcon,\r\n\tPrintIcon,\r\n\tProfileIcon,\r\n\tQRCodeIcon,\r\n\tRowDetailIcon,\r\n\tSignOutIcon,\r\n\tSubmitOrSendIcon,\r\n\tUploadIcon,\r\n\tMoveToLegalIcon,\r\n\tCredentialIcon,\r\n\tWalletIcon,\r\n\tPayIcon,\r\n\tCVVRetryIcon,\r\n\tPinRetryIcon,\r\n\tUndoIcon,\r\n\tCopyIcon\r\n};\r\n","import { InputAdornment, withStyles } from \"@material-ui/core\";\r\nimport genericTextInputStyle from \"assets/jss/generic/genericTextInputStyle.jsx\";\r\nimport CustomInput from \"components/CustomInput/CustomInput.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { PureComponent } from \"react\";\r\nimport GenericIcon from \"views/Components/Generic/GenericIcon.jsx\";\r\n\r\nconst endAdornmentStyle = {\r\n\tmarginLeft: \"-24px\"\r\n};\r\n\r\nconst fullWidthStyle = {\r\n\tfullWidth: true\r\n};\r\n\r\nclass GenericTextInput extends PureComponent {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tmaskState: null,\r\n\t\t\tspecialRegex: /[@#$]/,\r\n\t\t\tisInvalid: false,\r\n\t\t};\r\n\r\n\t\tthis.handleIsText = this.handleIsText.bind(this);\r\n\t\tthis.handleMask = this.handleMask.bind(this);\r\n\t\tthis.escapeRegExp = this.escapeRegExp.bind(this);\r\n\t\tthis.getRawInput = this.getRawInput.bind(this);\r\n\t\tthis.verifyWord = this.verifyWord.bind(this);\r\n\t\tthis.OnChange = this.OnChange.bind(this);\r\n\t}\r\n\r\n\thandleIsText(e) {\r\n\t\tlet isTextRegex = /([^a-zA-Z ])+/;\r\n\t\tif (this.props.IsText && isTextRegex.test(e.target.value)) {\r\n\t\t\te.target.value = e.target.defaultValue;\r\n\t\t}\r\n\t}\r\n\r\n\thandleMask(e) {\r\n\t\tconst tempFormat = this.props.Format;\r\n\r\n\t\tlet rawInput = this.getRawInput(e.target.value);\r\n\t\tlet inputText = [...rawInput];\r\n\t\tlet start = e.target.selectionStart;\r\n\t\tlet newText = \"\";\r\n\t\tlet counter = 0;\r\n\r\n\t\tfor (let i = 0; i < tempFormat.length; i++) {\r\n\t\t\tif (inputText.length == 0) {\r\n\t\t\t\tif (this.props.Placeholder)\r\n\t\t\t\t\tnewText += this.props.Placeholder;\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tcounter++;\r\n\t\t\tif (!this.state.specialRegex.test(tempFormat[i])) {\r\n\t\t\t\tnewText += tempFormat[i];\r\n\t\t\t\tif (start - 1 == i) {\r\n\t\t\t\t\tstart++;\r\n\t\t\t\t}\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tlet letter = inputText.shift();\r\n\t\t\tif (this.verifyWord(letter, tempFormat[i])) {\r\n\t\t\t\tnewText += letter;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif (newText.length > 0)\r\n\t\t\t\t\tnewText = e.target.defaultValue;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\te.target.value = newText;\r\n\t\te.target.selectionStart = counter;\r\n\t\te.target.selectionEnd = counter;\r\n\t}\r\n\r\n\tescapeRegExp(string) {\r\n\t\treturn string.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\");\r\n\t}\r\n\r\n\tgetRawInput(value) {\r\n\t\tif (this.props.Placeholder) {\r\n\t\t\tvalue = value.replace(new RegExp(\"(\" + this.escapeRegExp(this.props.Placeholder) + \")*\", \"g\"), \"\");\r\n\t\t}\r\n\t\tlet maskItems = this.props.Format.match(/[^#$@]*/g);\r\n\t\tlet regexs = maskItems.filter((a) => { return a.length > 0; }).map((a) => { return this.escapeRegExp(a); });\r\n\t\tlet pureValue = value.replace(new RegExp(\"(\" + regexs.join(\"|\") + \")*\", \"g\"), \"\");\r\n\t\treturn pureValue;\r\n\t}\r\n\r\n\tverifyWord(value, format) {\r\n\t\tvar numberRex = new RegExp(\"[0-9]\");\r\n\t\tvar alphanumericRex = new RegExp(\"[0-9a-zA-Z]\");\r\n\t\tconst letter = value[value.length - 1];\r\n\r\n\t\tif (value.length <= format.length) {\r\n\t\t\tif (format[value.length - 1] == \"$\") { //string\r\n\t\t\t\tif (!numberRex.test(letter))\r\n\t\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\tif (format[value.length - 1] == \"#\") { //number\r\n\t\t\t\tif (numberRex.test(letter))\r\n\t\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\tif (format[value.length - 1] == \"@\") {//alphanumeric\r\n\t\t\t\tif (alphanumericRex.test(letter))\r\n\t\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\tif (format[value.length - 1] == value[value.length - 1]) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}\r\n\r\n\tOnChange(e) {\r\n\t\tconst { Name, ValueChanged, IsText, Format, IsCompleted, Regex, DisableStateAdornment } = this.props;\r\n\r\n\t\tif (Format) {\r\n\t\t\tthis.handleMask(e);\r\n\t\t}\r\n\t\telse if (IsText) {\r\n\t\t\tthis.handleIsText(e);\r\n\t\t}\r\n\r\n\t\tif (ValueChanged) {\r\n\t\t\tlet pureValue;\r\n\t\t\tif (Regex || Format) {\r\n\t\t\t\tpureValue = this.getRawInput(e.target.value);\r\n\t\t\t}\r\n\t\t\tValueChanged(Name, e.target.value, pureValue);\r\n\t\t}\r\n\t\tlet maskStatus = (Format ? Format.length : 0) <= e.target.value.length;\r\n\r\n\t\tif (Regex) {\r\n\t\t\tmaskStatus = maskStatus && Regex.test(e.target.value);\r\n\t\t}\r\n\r\n\t\tif (IsCompleted) {\r\n\t\t\tIsCompleted((maskStatus && !Regex) || (maskStatus && Regex.test(e.target.value)));\r\n\t\t}\r\n\t\tif (DisableStateAdornment == undefined) {\r\n\t\t\tthis.setState({ maskState: (e.target.value == \"\" || maskStatus) ? \"\" : \"error\" });\r\n\t\t}\r\n\t}\r\n\trender() {\r\n\t\tconst { classes, LabelText, Value, MultiLine, RowCount, Disabled, BeginIconName,\r\n\t\t\tEndIconName, AutoFocus, KeyPressed, KeyUp, KeyDown, Blur, IsPassword, IconOnClick,\r\n\t\t\tId, LabelMd, FloatRight, inputProps, BeginText, EndText,\r\n\t\t\tLabelStyle, InputStyle, IsError, Required, IsInvalid } = this.props;\r\n\r\n\t\tvar haveStartIcon = (BeginIconName || BeginText || \"\") != \"\";\r\n\t\tvar haveEndIcon = (EndIconName || EndText || \"\") != \"\";\r\n\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t\t\t\t{BeginText ? BeginText :\r\n\t\t\t\t\t\t\t\t{BeginIconName}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t: null,\r\n\t\t\t\t\tendAdornment: haveEndIcon ?\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{EndText ? EndText :\r\n\t\t\t\t\t\t\t\t{EndIconName}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t: null,\r\n\t\t\t\t\tautoFocus: AutoFocus,\r\n\t\t\t\t\tonKeyPress: KeyPressed,\r\n\t\t\t\t\tonKeyUp: KeyUp,\r\n\t\t\t\t\tonKeyDown: KeyDown,\r\n\t\t\t\t\tonBlur: (e) => {\r\n\t\t\t\t\t\tif (Blur) {\r\n\t\t\t\t\t\t\tBlur(e);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\ttype: IsPassword ? \"password\" : \"text\",\r\n\t\t\t\t\tid: Id\r\n\t\t\t\t}}\r\n\t\t\t/>\r\n\t\t);\r\n\t}\r\n}\r\n\r\nGenericTextInput.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tValueChanged: PropTypes.func,\r\n\tValue: PropTypes.oneOfType([\r\n\t\tPropTypes.string,\r\n\t\tPropTypes.number\r\n\t]),\r\n\tId: PropTypes.string,\r\n\tLabelText: PropTypes.string,\r\n\tName: PropTypes.string,\r\n\tMultiLine: PropTypes.bool,\r\n\tRowCount: PropTypes.number,\r\n\tDisabled: PropTypes.bool,\r\n\tBeginIconName: PropTypes.string,\r\n\tEndIconName: PropTypes.string,\r\n\tBeginText: PropTypes.string,\r\n\tEndText: PropTypes.string,\r\n\tAutoFocus: PropTypes.bool,\r\n\tKeyPressed: PropTypes.func,\r\n\tKeyDown: PropTypes.func,\r\n\tKeyUp: PropTypes.func,\r\n\tBlur: PropTypes.func,\r\n\tIsPassword: PropTypes.bool,\r\n\tIconOnClick: PropTypes.func,\r\n\tLabelMd: PropTypes.number,\r\n\tFloatRight: PropTypes.bool,\r\n\tinputProps: PropTypes.object,\r\n\tLabelStyle: PropTypes.object,\r\n\tInputStyle: PropTypes.object,\r\n\tIsCompleted: PropTypes.func,\r\n\tIsError: PropTypes.bool,\r\n\tIsText: PropTypes.bool,\r\n\tPlaceholder: PropTypes.string,\r\n\tFormat: PropTypes.string,\r\n\ttempFormat: PropTypes.string,\r\n\tRegex: PropTypes.any,\r\n\tDisableStateAdornment: PropTypes.bool,\r\n\ttooltipProps: PropTypes.object,\r\n\tRequired: PropTypes.bool,\r\n\tIsInvalid: PropTypes.bool\r\n};\r\n\r\nexport default withStyles(genericTextInputStyle)(GenericTextInput);","import withStyles from \"@material-ui/core/styles/withStyles\";\r\nimport parameterComponentStyle from \"assets/jss/material-dashboard-pro-react/views/parameterComponentStyle.jsx\";\r\nimport _ from \"lodash\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport { GenericSelectInput } from \"views/Components/Generic\";\r\n\r\nclass ParameterComponent extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n\r\n this.state = {\r\n ParamObj: {\r\n ParameterCode: props.ParameterCode,\r\n ParameterValue: props.ParameterValue,\r\n ParameterValueIncludes: props.ParameterValueIncludes,\r\n ParameterValueExcludes: props.ParameterValueExcludes,\r\n ParameterValue2: props.ParameterValue2,\r\n ParameterValue2Includes: props.ParameterValue2Includes,\r\n ParameterValue2Excludes: props.ParameterValue2Excludes,\r\n ParameterValue3: props.ParameterValue3,\r\n ParameterValue3Includes: props.ParameterValue3Includes,\r\n ParameterValue3Excludes: props.ParameterValue3Excludes,\r\n ParameterValue4: props.ParameterValue4,\r\n ParameterValue4Includes: props.ParameterValue4Includes,\r\n ParameterValue4Excludes: props.ParameterValue4Excludes,\r\n ParameterValue5: props.ParameterValue5,\r\n ParameterValue5Includes: props.ParameterValue5Includes,\r\n ParameterValue5Excludes: props.ParameterValue5Excludes,\r\n ParameterValue6: props.ParameterValue6,\r\n ParameterValue6Includes: props.ParameterValue6Includes,\r\n ParameterValue6Excludes: props.ParameterValue6Excludes,\r\n ParameterDesc: props.ParameterDesc,\r\n },\r\n };\r\n\r\n this.AfterFetchCallback = this.AfterFetchCallback.bind(this);\r\n }\r\n\r\n /**\r\n * @param {any[]} data\r\n */\r\n AfterFetchCallback(data) {\r\n const { Name, DefaultParamValue, ValueChanged, KeyValueMember } =\r\n this.props;\r\n\r\n const { ParamObj } = this.state;\r\n const {\r\n ParameterValueIncludes,\r\n ParameterValueExcludes,\r\n ParameterValue2Includes,\r\n ParameterValue2Excludes,\r\n ParameterValue3Includes,\r\n ParameterValue3Excludes,\r\n ParameterValue4Includes,\r\n ParameterValue4Excludes,\r\n ParameterValue5Includes,\r\n ParameterValue5Excludes,\r\n ParameterValue6Includes,\r\n ParameterValue6Excludes,\r\n } = ParamObj;\r\n\r\n if (ParameterValueIncludes && ParameterValueIncludes.length > 0)\r\n _.remove(data, (x) =>\r\n ParameterValueIncludes.some((y) => y != x.ParameterValue)\r\n );\r\n if (ParameterValueExcludes && ParameterValueExcludes.length > 0)\r\n _.remove(data, (x) =>\r\n ParameterValueExcludes.some((y) => y == x.ParameterValue)\r\n );\r\n if (ParameterValue2Includes && ParameterValue2Includes.length > 0)\r\n _.remove(data, (x) =>\r\n ParameterValue2Includes.some((y) => y != x.ParameterValue2)\r\n );\r\n if (ParameterValue2Excludes && ParameterValue2Excludes.length > 0)\r\n _.remove(data, (x) =>\r\n ParameterValue2Excludes.some((y) => y == x.ParameterValue2)\r\n );\r\n if (ParameterValue3Includes && ParameterValue3Includes.length > 0)\r\n _.remove(data, (x) =>\r\n ParameterValue3Includes.some((y) => y != x.ParameterValue3)\r\n );\r\n if (ParameterValue3Excludes && ParameterValue3Excludes.length > 0)\r\n _.remove(data, (x) =>\r\n ParameterValue3Excludes.some((y) => y == x.ParameterValue3)\r\n );\r\n if (ParameterValue4Includes && ParameterValue4Includes.length > 0)\r\n _.remove(data, (x) =>\r\n ParameterValue4Includes.some((y) => y != x.ParameterValue4)\r\n );\r\n if (ParameterValue4Excludes && ParameterValue4Excludes.length > 0)\r\n _.remove(data, (x) =>\r\n ParameterValue4Excludes.some((y) => y == x.ParameterValue4)\r\n );\r\n if (ParameterValue5Includes && ParameterValue5Includes.length > 0)\r\n _.remove(data, (x) =>\r\n ParameterValue5Includes.some((y) => y != x.ParameterValue5)\r\n );\r\n if (ParameterValue5Excludes && ParameterValue5Excludes.length > 0)\r\n _.remove(data, (x) =>\r\n ParameterValue5Excludes.some((y) => y == x.ParameterValue5)\r\n );\r\n if (ParameterValue6Includes && ParameterValue6Includes.length > 0)\r\n _.remove(data, (x) =>\r\n ParameterValue6Includes.some((y) => y != x.ParameterValue6)\r\n );\r\n if (ParameterValue6Excludes && ParameterValue6Excludes.length > 0)\r\n _.remove(data, (x) =>\r\n ParameterValue6Excludes.some((y) => y == x.ParameterValue6)\r\n );\r\n\r\n if (DefaultParamValue) {\r\n var d = data.filter((x) => x.ParameterValue == DefaultParamValue);\r\n if (d && d.length > 0) ValueChanged(Name, d[0][KeyValueMember], d[0]);\r\n }\r\n }\r\n\r\n render() {\r\n const {\r\n classes,\r\n ParameterCode,\r\n ParameterValue,\r\n ParameterValue2,\r\n ParameterValue3,\r\n ParameterValue4,\r\n ParameterValue5,\r\n ParameterValue6,\r\n ParameterDesc,\r\n ...rest\r\n } = this.props;\r\n const { ParamObj } = this.state;\r\n\r\n return (\r\n \r\n );\r\n }\r\n}\r\n\r\nParameterComponent.propTypes = {\r\n classes: PropTypes.object.isRequired,\r\n Name: PropTypes.string,\r\n LabelText: PropTypes.string,\r\n TitleLabel: PropTypes.string,\r\n Value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\r\n ValueChanged: PropTypes.func,\r\n Disabled: PropTypes.bool,\r\n ParameterCode: PropTypes.string,\r\n ParameterValue: PropTypes.string,\r\n ParameterValueIncludes: PropTypes.arrayOf(PropTypes.string),\r\n ParameterValueExcludes: PropTypes.arrayOf(PropTypes.string),\r\n ParameterValue2: PropTypes.string,\r\n ParameterValue2Includes: PropTypes.arrayOf(PropTypes.string),\r\n ParameterValue2Excludes: PropTypes.arrayOf(PropTypes.string),\r\n ParameterValue3: PropTypes.string,\r\n ParameterValue3Includes: PropTypes.arrayOf(PropTypes.string),\r\n ParameterValue3Excludes: PropTypes.arrayOf(PropTypes.string),\r\n ParameterValue4: PropTypes.string,\r\n ParameterValue4Includes: PropTypes.arrayOf(PropTypes.string),\r\n ParameterValue4Excludes: PropTypes.arrayOf(PropTypes.string),\r\n ParameterValue5: PropTypes.string,\r\n ParameterValue5Includes: PropTypes.arrayOf(PropTypes.string),\r\n ParameterValue5Excludes: PropTypes.arrayOf(PropTypes.string),\r\n ParameterValue6: PropTypes.string,\r\n ParameterValue6Includes: PropTypes.arrayOf(PropTypes.string),\r\n ParameterValue6Excludes: PropTypes.arrayOf(PropTypes.string),\r\n ParameterDesc: PropTypes.string,\r\n DefaultParamValue: PropTypes.string,\r\n LabelMd: PropTypes.number,\r\n All: PropTypes.bool,\r\n Sorted: PropTypes.object,\r\n DefaultIndex: PropTypes.number,\r\n KeyValueMember: PropTypes.string,\r\n TextValueMember: PropTypes.string,\r\n Required: PropTypes.bool,\r\n IsInvalid: PropTypes.bool,\r\n RenderItem: PropTypes.func,\r\n};\r\n\r\nParameterComponent.defaultProps = {\r\n KeyValueMember: \"Id\",\r\n TextValueMember: \"ParameterDesc\",\r\n};\r\n\r\nexport default withStyles(parameterComponentStyle)(ParameterComponent);\r\n","import { primaryColor,defaultFont } from \"assets/jss/material-dashboard-pro-react.jsx\";\r\n\r\nconst genericRadioInputStyle = {\r\n\tlabel: {\r\n\t\tcursor: \"pointer\",\r\n\t\tpaddingLeft: \"0\",\r\n\t\tcolor: \"#888888\",\r\n\t\tfontSize: \"12px\",\r\n\t\tlineHeight: \"1.428571429\",\r\n\t\tfontWeight: \"400\",\r\n\t\tdisplay: \"inline-flex\",\r\n\t\ttransition: \"0.3s ease all\"\r\n\t},\r\n\tradioLabel: {\r\n\t\tcursor: \"pointer\",\r\n\t\tpaddingLeft: \"0\",\r\n\t\tfontSize: \"12px\",\r\n\t\tcolor: \"#000 !important\",\r\n\t\tlineHeight: \"1.428571429\",\r\n\t\tfontWeight: \"400\",\r\n\t\tdisplay: \"inline-flex\",\r\n\t\ttransition: \"0.3s ease all\"\r\n\t},\r\n\tradio: {\r\n\t\tcolor: primaryColor + \"!important\"\r\n\t},\r\n\tradioChecked: {\r\n\t\twidth: \"18px\",\r\n\t\theight: \"18px\",\r\n\t\tborder: \"1px solid \" + primaryColor,\r\n\t\tborderRadius: \"50%\"\r\n\t},\r\n\tradioUnchecked: {\r\n\t\twidth: \"0px\",\r\n\t\theight: \"0px\",\r\n\t\tpadding: \"8px\",\r\n\t\tborder: \"1px solid rgba(0, 0, 0, .54)\",\r\n\t\tborderRadius: \"50%\"\r\n\t},\r\n\tlabelRoot: {\r\n\t\t...defaultFont,\r\n\t\tcolor: \"#000 !important\",\r\n\t\tfontWeight: \"normal\",\r\n\t\tfontSize: \"12px\",\r\n\t\tlineHeight: \"1.42857\",\r\n\t\t// top: \"10px\",\r\n\t\tposition: \"static\"\r\n\t},\r\n\t\r\n\tFormControlRadio:{\r\n\t\tcolor: \"red\",\r\n\t\"& span\": {\r\n\t\tpaddingTop: \"0px\",\r\n\t\tpaddingBottom: \"0px\"\r\n\t}}\r\n};\r\n\r\nexport default genericRadioInputStyle;\r\n","import { Proxy } from \"core\";\r\nimport AlertHelper from \"core/AlertHelper\";\r\nimport React from \"react\";\r\n\r\nclass DashboardHelper {\r\n\tconstructor(handleAlertChange, taskpoolDomain) {\r\n\t\tthis.ShowMessage = this.ShowMessage.bind(this);\r\n\t\tthis.HideAlert = this.HideAlert.bind(this);\r\n\t\tthis.ShowMessage = this.ShowMessage.bind(this);\r\n\t\tthis.ShowConfirmMessage = this.ShowConfirmMessage.bind(this);\r\n\t\tthis.ShowValidationErrors = this.ShowValidationErrors.bind(this);\r\n\t\tthis.ShowMessageAfterOperation = this.ShowMessageAfterOperation.bind(this);\r\n\t\tthis.ShowConfirmMessageInDelete = this.ShowConfirmMessageInDelete.bind(\r\n\t\t\tthis\r\n\t\t);\r\n\t\tthis.ExecuteApiGet = this.ExecuteApiGet.bind(this);\r\n\t\tthis.ExecuteApiPost = this.ExecuteApiPost.bind(this);\r\n\t\tthis.ExecuteApiFileUpload = this.ExecuteApiFileUpload.bind(this);\r\n\t\tthis.ExecuteApiImageUpload = this.ExecuteApiImageUpload.bind(this);\r\n\t\tthis.ExecuteApiFileDownload = this.ExecuteApiFileDownload.bind(this);\r\n\t\tthis.ExecuteApiFileDownloadWithGenericResponse = this.ExecuteApiFileDownloadWithGenericResponse.bind(\r\n\t\t\tthis\r\n\t\t);\r\n\r\n\t\tthis.handleAlertChange = handleAlertChange || (() => null);\r\n\t\tthis.taskpool = taskpoolDomain || (() => null);\r\n\t}\r\n\tHideAlert() {\r\n\t\tthis.handleAlertChange(null);\r\n\t}\r\n\r\n\tasync ExecuteApiGet(\r\n\t\turl,\r\n\t\tvalidateObject,\r\n\t\tvalidateProperties,\r\n\t\tvalidateFunction,\r\n\t\tafterMethods,\r\n\t\tshowSuccessfulMessage\r\n\t) {\r\n\t\tvar errors = [];\r\n\r\n\t\tif (validateFunction && !validateFunction()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (validateObject && validateProperties) {\r\n\t\t\terrors = [];\r\n\r\n\t\t\tvalidateProperties.map(x => {\r\n\t\t\t\tvar key = Object.keys(x)[0];\r\n\t\t\t\tif (!validateObject[key]) {\r\n\t\t\t\t\tvalidateObject[`Is${key}`] = true;\r\n\r\n\t\t\t\t\terrors.push(`${x[key]} cannot be empty.`);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tvalidateObject[`Is${key}`] = false;\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn null;\r\n\t\t\t});\r\n\r\n\t\t\tif (errors.length > 0) {\r\n\t\t\t\tthis.ShowValidationErrors(errors);\r\n\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tvar request = Proxy.GET(\r\n\t\t\turl,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (showSuccessfulMessage) {\r\n\t\t\t\t\tthis.ShowMessageAfterOperation();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tafterMethods &&\r\n\t\t\t\t\tafterMethods.map(x => {\r\n\t\t\t\t\t\tx();\r\n\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t});\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.ShowMessage(\r\n\t\t\t\t\t\"error\",\r\n\t\t\t\t\t\"An error occurred while sending data\",\r\n\t\t\t\t\terror.message\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t);\r\n\t\tthis.taskpool && this.taskpool.AppendTask && this.taskpool.AppendTask(request);\r\n\t\tvar result = await request;\r\n\t\treturn result.Item;\r\n\t}\r\n\r\n\tasync ExecuteApiPost(\r\n\t\turl,\r\n\t\tparameter,\r\n\t\tvalidateObject,\r\n\t\tvalidateProperties,\r\n\t\tvalidateFunction,\r\n\t\tafterMethods,\r\n\t\tshowSuccessfulMessage,\r\n\t\tworkflowId\r\n\t) {\r\n\t\tvar errors = [];\r\n\r\n\t\tif (validateFunction && !validateFunction()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (validateObject && validateProperties) {\r\n\t\t\terrors = [];\r\n\r\n\t\t\tvalidateProperties.map(x => {\r\n\t\t\t\tvar key = Object.keys(x)[0];\r\n\t\t\t\tif (!validateObject[key]) {\r\n\t\t\t\t\tvalidateObject[`Is${key}`] = true;\r\n\r\n\t\t\t\t\terrors.push(`${x[key]} cannot be empty.`);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tvalidateObject[`Is${key}`] = false;\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn null;\r\n\t\t\t});\r\n\r\n\t\t\tif (errors.length > 0) {\r\n\t\t\t\tthis.ShowValidationErrors(errors);\r\n\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tvar request = Proxy.POST(\r\n\t\t\turl,\r\n\t\t\tparameter,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (showSuccessfulMessage) {\r\n\t\t\t\t\tthis.ShowMessageAfterOperation();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tafterMethods &&\r\n\t\t\t\t\tafterMethods.map(x => {\r\n\t\t\t\t\t\tx();\r\n\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t});\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.ShowMessage(\r\n\t\t\t\t\t\"error\",\r\n\t\t\t\t\t\"An error occurred while sending data\",\r\n\t\t\t\t\terror.message\r\n\t\t\t\t);\r\n\t\t\t},\r\n\t\t\tworkflowId\r\n\t\t);\r\n\t\tthis.taskpool && this.taskpool.AppendTask && this.taskpool.AppendTask(request);\r\n\t\tvar result = await request;\r\n\t\treturn result.Item;\r\n\t}\r\n\r\n\tasync ExecuteApiFileUpload(\r\n\t\turl,\r\n\t\tformData,\r\n\t\tafterMethods,\r\n\t\tshowSuccessfulMessage\r\n\t) {\r\n\t\tvar request = Proxy.FileUpload(\r\n\t\t\turl,\r\n\t\t\tformData,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (showSuccessfulMessage) {\r\n\t\t\t\t\tthis.ShowMessageAfterOperation();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tafterMethods &&\r\n\t\t\t\t\tafterMethods.map(x => {\r\n\t\t\t\t\t\tx();\r\n\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t});\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.ShowMessage(\r\n\t\t\t\t\t\"error\",\r\n\t\t\t\t\t\"An error occurred while sending data\",\r\n\t\t\t\t\terror.message\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t);\r\n\t\tthis.taskpool && this.taskpool.AppendTask && this.taskpool.AppendTask(request);\r\n\t\tvar result = await request;\r\n\t\treturn result.Item;\r\n\t}\r\n\r\n\tasync ExecuteApiImageUpload(\r\n\t\turl,\r\n\t\tformData,\r\n\t\tafterMethods,\r\n\t\tshowSuccessfulMessage\r\n\t) {\r\n\t\tvar request = Proxy.FileUpload(\r\n\t\t\turl,\r\n\t\t\tformData,\r\n\t\t\tresponseData => {\r\n\t\t\t\tconsole.log(responseData.IsSucceeded);\r\n\t\t\t\tif (responseData.IsSucceeded == true) {\r\n\t\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Upload Image\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\telse if (responseData.IsSucceeded == false) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (showSuccessfulMessage) {\r\n\t\t\t\t\tthis.ShowMessageAfterOperation();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tafterMethods &&\r\n\t\t\t\t\tafterMethods.map(x => {\r\n\t\t\t\t\t\tx();\r\n\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t});\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.ShowMessage(\r\n\t\t\t\t\t\"error\",\r\n\t\t\t\t\t\"An error occurred while sending data\",\r\n\t\t\t\t\terror.message\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t);\r\n\t\tthis.taskpool && this.taskpool.AppendTask && this.taskpool.AppendTask(request);\r\n\t\tvar result = await request;\r\n\t\treturn result;\r\n\t}\r\n\r\n\tExecuteApiFileDownload = (url, fileId, fileName, fileExtension) => {\r\n\t\tvar request = Proxy.FileDownload(\r\n\t\t\turl,\r\n\t\t\tfileName,\r\n\t\t\tfileExtension,\r\n\t\t\tfileId,\r\n\t\t\t() => { },\r\n\t\t\terror => {\r\n\t\t\t\tthis.ShowMessage(\r\n\t\t\t\t\t\"error\",\r\n\t\t\t\t\t\"An error occurred while sending data\",\r\n\t\t\t\t\terror.message\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t);\r\n\t\tthis.taskpool && this.taskpool.AppendTask && this.taskpool.AppendTask(request);\r\n\t};\r\n\r\n\tasync ExecuteApiFileDownloadWithGenericResponse(\r\n\t\turl,\r\n\t\tfileId,\r\n\t\tfileName,\r\n\t\tfileExtension\r\n\t) {\r\n\t\tvar request = Proxy.FileDownloadWithGenericResponse(\r\n\t\t\turl,\r\n\t\t\tfileName,\r\n\t\t\tfileExtension,\r\n\t\t\tfileId,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.ShowMessage(\r\n\t\t\t\t\t\"error\",\r\n\t\t\t\t\t\"An error occurred while sending data\",\r\n\t\t\t\t\terror.message\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t);\r\n\t\tthis.taskpool && this.taskpool.AppendTask && this.taskpool.AppendTask(request);\r\n\t\tvar result = await request;\r\n\t\treturn result;\r\n\t}\r\n\r\n\t/**\r\n\t * @return {Promise} Returns true when clicked.\r\n\t */\r\n\tShowMessage(type, title, message) {\r\n\t\treturn new Promise(resolve => {\r\n\t\t\tvar wrappedHideAlert = () => {\r\n\t\t\t\tthis.HideAlert();\r\n\t\t\t\tresolve(true);\r\n\t\t\t};\r\n\t\t\tthis.handleAlertChange(\r\n\t\t\t\tAlertHelper.CreateAlert(title, message, type, wrappedHideAlert)\r\n\t\t\t);\r\n\t\t});\r\n\t}\r\n\r\n\t/**\r\n\t * @return {Promise} Returns true when clicked confirm, otherwise false.\r\n\t */\r\n\tShowConfirmMessage(type, title, message, onConfirm) {\r\n\t\treturn new Promise(resolve => {\r\n\t\t\tthis.handleAlertChange(\r\n\t\t\t\tAlertHelper.CreateQuestionAlert(\r\n\t\t\t\t\ttitle,\r\n\t\t\t\t\tmessage,\r\n\t\t\t\t\ttype,\r\n\t\t\t\t\te => {\r\n\t\t\t\t\t\tonConfirm && onConfirm(e);\r\n\t\t\t\t\t\tthis.HideAlert();\r\n\t\t\t\t\t\tresolve(true);\r\n\t\t\t\t\t},\r\n\t\t\t\t\t() => {\r\n\t\t\t\t\t\tthis.HideAlert();\r\n\t\t\t\t\t\tresolve(false);\r\n\t\t\t\t\t}\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t\t});\r\n\t}\r\n\r\n\tShowValidationErrors(errors) {\r\n\t\tif (errors.length > 9) {\r\n\t\t\tvar moreWarning = errors.length - 8;\r\n\t\t\terrors = errors.slice(0, 8);\r\n\t\t\terrors.push(\"And \" + moreWarning + \" more warnings.\");\r\n\t\t}\r\n\r\n\t\treturn this.ShowMessage(\r\n\t\t\t\"error\",\r\n\t\t\t\"Please Fill Required Fields\",\r\n\t\t\terrors.map((x, i) => React.createElement(\"div\", { key: i }, x))\r\n\t\t);\r\n\t}\r\n\r\n\tShowMessageAfterOperation() {\r\n\t\treturn this.ShowMessage(\"success\", \"Operation Successfully Completed\");\r\n\t}\r\n\r\n\tShowConfirmMessageInDelete(method) {\r\n\t\treturn this.ShowConfirmMessage(\r\n\t\t\t\"warning\",\r\n\t\t\t\"Warning\",\r\n\t\t\t\"Are you sure want to delete?\",\r\n\t\t\tmethod\r\n\t\t);\r\n\t}\r\n}\r\n\r\nexport default DashboardHelper;","import PropTypes from \"prop-types\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport React, { Component } from 'react';\r\nimport { GenericExpansionPanel, GenericNumberInput, GenericTextInput } from \"views/Components/Generic\";\r\n\r\nclass FlinksAccountPreviewCard extends Component {\r\n\r\n\tGetBody = () => {\r\n\t\tconst { Model } = this.props;\r\n\t\tvar flinksAccountModel = this.FlinksDataModelParse(Model || {});\r\n\t\treturn (\r\n\t\t\t<>\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n\tFlinksDataModelParse = (model) => {\r\n\t\tvar temp = {};\r\n\t\tconst flinks = { ...model };\r\n\r\n\t\ttemp.HttpStatusCode = flinks.HttpStatusCode;\r\n\t\ttemp.Institution = flinks.Institution;\r\n\t\ttemp.RequestId = flinks.RequestId; // RequestId\r\n\t\ttemp.Tag = flinks.Tag;\r\n\r\n\t\ttemp.Username = flinks.Login?.Username ?? flinks.Username;\r\n\t\ttemp.LastRefresh = flinks.Login?.LastRefresh ?? flinks.LastRefresh;\r\n\t\ttemp.Type = flinks.Login?.Type ?? flinks.Type;\r\n\t\ttemp.LoginId = flinks.Login?.Id ?? flinks.LoginId; // LoginId\r\n\r\n\r\n\t\ttemp.Title = flinks.Title;\r\n\t\ttemp.AccountNumber = flinks.AccountNumber ?? flinks.AccountNumber;\r\n\t\ttemp.Category = flinks.Category ?? flinks.Category;\r\n\t\ttemp.Currency = flinks.Currency ?? flinks.Currency;\r\n\t\ttemp.AccountId = flinks.Id ?? flinks.AccountId; // AccountId\r\n\t\ttemp.TransitNumber = flinks.TransitNumber;\r\n\t\ttemp.InstitutionNumber = flinks.InstitutionNumber; \r\n\r\n\t\ttemp.AvailableBalance = flinks.Balance?.Available ?? flinks.AvailableBalance;\r\n\t\ttemp.CurrentBalance = flinks.Balance?.Current ?? flinks.CurrentBalance;\r\n\t\ttemp.Limit = flinks.Balance?.Limit ?? flinks.Limit;\r\n\r\n\t\ttemp.Name = flinks.Holder?.Name ?? flinks.Name;\r\n\t\ttemp.Email = flinks.Holder?.Email ?? flinks.Email;\r\n\t\ttemp.PhoneNumber = flinks.Holder?.PhoneNumber ?? flinks.PhoneNumber;\r\n\t\ttemp.CivicAddress = flinks.Holder?.Address?.CivicAddress ?? flinks.CivicAddress;\r\n\t\ttemp.City = flinks.Holder?.Address?.City ?? flinks.City;\r\n\t\ttemp.Province = flinks.Holder?.Address?.Province ?? flinks.Province;\r\n\t\ttemp.PostalCode = flinks.Holder?.Address?.PostalCode ?? flinks.PostalCode;\r\n\t\ttemp.Pobox = flinks.Holder?.Address?.POBox ?? flinks.Pobox;\r\n\t\ttemp.Country = flinks.Holder?.Address?.Country ?? flinks.Country;\r\n\t\treturn temp;\r\n\t}\r\n\trender() {\r\n\t\tconst { OnClickButton, Title, ButtonText, GenericExpansionPanelProps, Top, Bottom } = this.props;\r\n\r\n\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Top}\r\n\t\t\t\t\t\t\t{this.GetBody()}\r\n\t\t\t\t\t\t\t{Bottom}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t(!Bottom && OnClickButton) &&\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t)\r\n\t}\r\n}\r\n\r\n\r\nFlinksAccountPreviewCard.defaultProps = {\r\n\tButtonText: \"Connect\",\r\n\tTitle: \"Linked Account Details\",\r\n};\r\nFlinksAccountPreviewCard.propTypes = {\r\n\tModel: PropTypes.any.isRequired,\r\n\tOnClickButton: PropTypes.any,\r\n\tButtonText: PropTypes.string,\r\n\tTitle: PropTypes.string,\r\n\tGenericExpansionPanelProps: PropTypes.any,\r\n\tTop: PropTypes.any,\r\n\tBottom: PropTypes.any,\r\n};\r\nexport default FlinksAccountPreviewCard;","\r\nimport TraceTransactionAlert from \"views/Components/TraceTransactionAlert\";\r\nimport React from \"react\";\r\nimport { ActionCodes, MenuCodes, ProgramCodes } from \"views/Constants/Constant\";\r\n\r\nclass TransactionTraceHelper {\r\n\tconstructor(thisRef) {\r\n\t\tthis.thisRef = thisRef;\r\n\t}\r\n\r\n\tInsertTransactionTraceWithAlert = async (transactionId, forWorkflow = false, actionCode = ActionCodes.Submit) => {\r\n\t\tthis.transactionId = transactionId;\r\n\t\treturn new Promise(async (resolve) => {\r\n\t\t\tvar thiz = this.thisRef;\r\n\t\t\tvar result = await thiz.props.ExecuteApiPost(\"/bankapi/v1.0/TransactionTrace/GetByTransactionId\", { Id: transactionId });\r\n\t\t\t// console.log(result);\r\n\r\n\t\t\tif (!result?.ProgramCode) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tvar hasTraced = result?.Id > 0;\r\n\t\t\tthiz.props.showAlert(React.createElement(TraceTransactionAlert, {\r\n\t\t\t\tOnTrace: this.HandleTrace,\r\n\t\t\t\tPromiseResolve: resolve,\r\n\t\t\t\tForWorkflow: forWorkflow,\r\n\t\t\t\tActionCode: actionCode,\r\n\t\t\t\tHasTraced: hasTraced,\r\n\t\t\t\tProgramCode: result.ProgramCode,\r\n\t\t\t\tReason: result.TraceReason,\r\n\t\t\t\tshowAlert: thiz.props.showAlert\r\n\t\t\t}));\r\n\t\t});\r\n\t}\r\n\r\n\tInsertTransactionTraceForWorkflow = async (transactionId, reason, actionCode, programCode) => {\r\n\r\n\t\tvar thiz = this.thisRef;\r\n\t\tif (!await thiz.props.showConfirmMessage(\"warning\", \"Workflow Confirmation\", \"Are you sure to send it for workflow confirmation ?\")) return;\r\n\r\n\t\tvar jsonData = JSON.stringify({\r\n\t\t\tTransactionId: transactionId,\r\n\t\t\tProgramCode: programCode,\r\n\t\t\tReason: reason\r\n\t\t});\r\n\r\n\t\tvar menuCode = null;\r\n\t\tswitch (programCode) {\r\n\t\t\tcase ProgramCodes.Bank_Programs_EFT:\r\n\t\t\t\tmenuCode = MenuCodes.Eft_TraceApprove;\r\n\t\t\t\tbreak;\r\n\t\t\tcase ProgramCodes.Bank_Programs_e_Transfer:\r\n\t\t\t\tmenuCode = MenuCodes.Etransfer_TraceApprove;\r\n\t\t\t\tbreak;\r\n\t\t\t// case ProgramCodes.BillPayment:\r\n\t\t\t// \tbreak;\r\n\t\t\tcase ProgramCodes.Bank_Programs_Bank_Account:\r\n\t\t\t\tmenuCode = MenuCodes.Wire_TraceApprove;\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tvar requestData = {\r\n\t\t\tMenuCode: menuCode,\r\n\t\t\tActionCode: actionCode,\r\n\t\t\tJsonData: jsonData,\r\n\t\t\tRowId: transactionId\r\n\t\t};\r\n\r\n\t\tvar result = await thiz.props.ExecuteApiPost(\"/coreapi/v1.0/WorkflowData/InsertWorkflowData\", requestData);\r\n\t\tif (result) {\r\n\t\t\tawait thiz.props.showMessage(\"success\", \"Success\", \"Request successfully sent for approval\");\r\n\t\t}\r\n\t}\r\n\r\n\tHandleTrace = async (model, forWorkflow, actionCode, programCode) => {\r\n\t\tif (forWorkflow) {\r\n\t\t\tawait this.InsertTransactionTraceForWorkflow(this.transactionId, model.Reason, actionCode, programCode);\r\n\t\t} else {\r\n\t\t\tawait this.InsertTransactionTrace(this.transactionId, model.Reason);\r\n\t\t}\r\n\t}\r\n\r\n\tInsertTransactionTrace = async (transactionId, reason, workflowId = null) => {\r\n\t\tvar thiz = this.thisRef;\r\n\t\tvar result = await thiz.props.ExecuteApiPost(\"/bankapi/v1.0/TransactionTrace/TraceTransactionByIdList\", {\r\n\t\t\tTransactionIdList: [transactionId],\r\n\t\t\tReason: reason\r\n\t\t}, null, null, null, null, null, workflowId);\r\n\t\tif (result) {\r\n\t\t\tthiz.props.showMessage(\"success\", \"Success\", \"Transaction Traced Successfully!\");\r\n\t\t}\r\n\t\treturn result;\r\n\t}\r\n\r\n}\r\nexport default TransactionTraceHelper;","import style from \"assets/jss/material-dashboard-pro-react/views/createWireTransferStyle.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { withArtifex } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport { GenericDateInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { GenericLabel } from '../../Components/Generic';\r\n\r\nclass MessageDetail extends Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.MaxLen = { maxLength: 30 };\r\n\t\tthis.ParameterCountrySortOrderIndex = { Member: \"OrderIndex\" };\r\n\t\tthis.EmptyObj = {};\r\n\t\tthis.SortedCountry = { Member: \"OrderIndex\" };\r\n\t\tthis.SortedCityProvince = { Member: \"ParameterDesc\" };\r\n\t}\r\n\r\n\tRenderCountry(d) {\r\n\t\treturn d.ISO2 + \" - \" + d.Name;\r\n\t}\r\n\r\n\tRenderUser = () => {\r\n\t\tvar x = this.props;\r\n\t\tvar render = `${x.LastUser} - ${x.SubStatus}`;\r\n\t\treturn render;\r\n\t}\r\n\trender() {\r\n\t\tconst { Disabled,\r\n\t\t\tDateOfRequest,\r\n\t\t\tCreationDate,\r\n\t\t\tValueDate,\r\n\t\t\tBeneficiaryName,\r\n\t\t\tBeneficiaryAddress,\r\n\t\t\tRemittance,\r\n\t\t\tBeneficiaryAccountNumber,\r\n\t\t\tAmount,\r\n\t\t\tCurrency,\r\n\t\t\tReference,\r\n\t\t\tBeneficiaryBank,\r\n\t\t\tBeneficiaryBankAddress,\r\n\t\t\tBeneficiaryIdentifier,\r\n\t\t\tBeneficiaryBankPartyIdentifier,\r\n\t\t\tOrderingInstitutionSwiftCode,\r\n\t\t\tOrderingInstitutionPartyIdentifier,\r\n\t\t\tOrderingInstitutionAddress,\r\n\t\t\tTempOrderingInstitutionSwiftCode,\r\n\t\t\tSenderName,\r\n\t\t\tSenderAccountNumber,\r\n\t\t\tSenderSwiftCode,\r\n\t\t\tSenderAddress,\r\n\t\t\tSenderAdditionalInformation,\r\n\t\t\tLastUser,\r\n\t\t\tValueChanged } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\tTransaction Information\r\n\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t{LastUser &&\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\tBeneficiary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\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\tOrdering Institution Information\r\n\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\t\t\t\t

\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nMessageDetail.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool,\r\n\tValueChanged: PropTypes.func,\r\n\tCustomerName: PropTypes.string,\r\n\tAccountNumber: PropTypes.string,\r\n\tDateOfRequest: PropTypes.string,\r\n\tCreationDate: PropTypes.string,\r\n\tValueDate: PropTypes.string,\r\n\tBeneficiaryName: PropTypes.string,\r\n\tBeneficiaryAddress: PropTypes.string,\r\n\tBeneficiaryAddress2: PropTypes.string,\r\n\tCustomerAddress: PropTypes.string,\r\n\tBeneficiaryCountry: PropTypes.string,\r\n\tBeneficiaryCity: PropTypes.string,\r\n\tBeneficiaryProvince: PropTypes.string,\r\n\tBeneficiaryPostalCode: PropTypes.string,\r\n\tBeneficiaryBankCountry: PropTypes.string,\r\n\tBeneficiaryBankPostalCode: PropTypes.string,\r\n\tBeneficiaryBankInstitution: PropTypes.string,\r\n\tRemittance: PropTypes.string,\r\n\tBeneficiaryAccountNumber: PropTypes.string,\r\n\tAmount: PropTypes.string,\r\n\tCurrency: PropTypes.string,\r\n\tPurposeOfWire: PropTypes.string,\r\n\tReference: PropTypes.string,\r\n\tBeneficiaryBank: PropTypes.string,\r\n\tBeneficiaryBankAddress: PropTypes.string,\r\n\tBeneficiaryBankAddress2: PropTypes.string,\r\n\tBeneficiaryBankCity: PropTypes.string,\r\n\tBeneficiaryBankProvince: PropTypes.string,\r\n\tTransitNumber: PropTypes.string,\r\n\tBeneficiaryBankPartyIdentifier: PropTypes.string,\r\n\tBeneficiaryIdentifier: PropTypes.string,\r\n\tOrderingInstitutionSwiftCode: PropTypes.string,\r\n\tTempOrderingInstitutionSwiftCode: PropTypes.string,\r\n\r\n\tSenderName: PropTypes.string,\r\n\tSenderAccountNumber: PropTypes.string,\r\n\tSenderSwiftCode: PropTypes.string,\r\n\tSenderAddress: PropTypes.string,\r\n\tSenderAdditionalInformation: PropTypes.string,\r\n\r\n\tOrderingInstitutionPartyIdentifier: PropTypes.string,\r\n\tOrderingInstitutionAddress: PropTypes.string,\r\n\tLastUser: PropTypes.string,\r\n\r\n\tSubStatus: PropTypes.string\r\n};\r\n\r\nexport default withArtifex(MessageDetail, style);","import { CardMedia } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport { withArtifex } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\n\r\nclass ChequeOrderDetailInfo extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {};\r\n\t\tthis.handleChange = this.handleChange.bind(this);\r\n\t}\r\n\r\n\thandleChange(name, newValue) {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\trender() {\r\n\t\tconst { chequemodel, chqinfomodel } = this.props;\r\n\t\t/* height: 160px; */\r\n\t\tconst logo = require(\"assets/img/\" + window.ChequeLogo);\r\n\t\treturn (\r\n\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t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t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\tDATE\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\tY\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\tY\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\tY\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\tY\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\tM\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\tM\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\tD\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\tD\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\r\n\r\n\t\t\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\tPAY to the order of .......................................................................................................................................................\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t$\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t........................................................................................................................................................................................./100 DOLLARS\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\r\n\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t{window.Title}\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t{chequemodel.BankCity}\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t{chequemodel.BankAdress}\r\n\t\t\t\t\t\t\t\t\t
\r\n\r\n\r\n\t\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\t\t\t\tFor ...................................................................................................\t\t\t\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\r\n\r\n\r\n\t\t\t\t\t\t\t\t\t\t{chqinfomodel.SignatureTypeId == 24815 ?\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\tPer ................................................................................................\t\t\t\t\t\t
:
\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\tPer ................................................................................................
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\t\t\t
0001
\r\n\t\t\t\t\t\t\t\t\t
{chequemodel.TransitNumber}
\r\n\t\t\t\t\t\t\t\t\t
{chequemodel.InstutionNumber}
\r\n\t\t\t\t\t\t\t\t\t
{chequemodel.AccountNumber}
\r\n\r\n\r\n\t\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\r\n\r\n\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nChequeOrderDetailInfo.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tchequemodel: PropTypes.object,\r\n\thandleChange: PropTypes.func,\r\n\tPhoneModel: PropTypes.object,\r\n\tpropModel: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(ChequeOrderDetailInfo, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport { GenericExpansionPanel, GenericNumberInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nclass BillIndividual extends Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tcustomerToken: \"0\"\r\n\t\t};\r\n\r\n\t\tthis.ValueChanged = this.ValueChanged.bind(this);\r\n\t\tthis.addCustomerDialogClose = this.addCustomerDialogClose.bind(this);\r\n\t}\r\n\r\n\tValueChanged(name, newValue, data) {\r\n\t\tthis.props.onModelChange(model => {\r\n\t\t\tmodel[name] = newValue;\r\n\r\n\t\t\tif (name == \"NewClient\") {\r\n\t\t\t\tif (newValue) {\r\n\t\t\t\t\tmodel.IsCustomerPopupOpen = true;\r\n\t\t\t\t\tthis.setState({ isCustomerAdded: false });\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (name == \"TransactionType\")\r\n\t\t\t\tmodel.TransactionTypeCode = data.ParameterValue;\r\n\t\t\treturn model;\r\n\t\t});\r\n\t}\r\n\r\n\taddCustomerDialogClose() {\r\n\t\tthis.ValueChanged(\"IsCustomerPopupOpen\", false);\r\n\t}\r\n\r\n\trender() {\r\n\r\n\t\tconst { model, Disabled ,vModel} = this.props;\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nBillIndividual.propTypes = {\r\n\tmodel: PropTypes.object,\r\n\tonModelChange: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default BillIndividual;","import Grid from \"@material-ui/core/Grid\";\r\nimport withStyles from \"@material-ui/core/styles/withStyles\";\r\nimport React from \"react\";\r\n\r\nconst style = {\r\n\tgrid: {\r\n\t\t// padding: \"0 15px !important\"\r\n\t\tpadding: \"0 7px !important\"\r\n\t}\r\n};\r\n\r\nfunction GridItem({ ...props }) {\r\n\tconst { classes, children, className, ...rest } = props;\r\n\treturn (\r\n\t\t\r\n\t\t\t{children}\r\n\t\t\r\n\t);\r\n}\r\n\r\nexport default withStyles(style)(GridItem);\r\n","import { Tooltip, withStyles, Zoom } from \"@material-ui/core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\n\r\nconst gridButtonStyle = {\r\n\timgDisable: {\r\n\t\topacity: 0.5,\r\n\t\tmarginLeft: 1,\r\n\t\tmarginRight: 1\r\n\t},\r\n\timgNormal: {\r\n\t\tmarginLeft: 1,\r\n\t\tmarginRight: 1\r\n\t}\r\n};\r\n\r\nclass GridButton extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\ttooltipOpen: false\r\n\t\t};\r\n\t}\r\n\r\n\thandleOpen(value) {\r\n\t\tthis.setState({ tooltipOpen: value });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes, Icon, Disabled, OnClick, onMouseEnter, onMouseLeave, tooltip, placement, ...rest } = this.props;\r\n\t\tconst { tooltipOpen } = this.state;\r\n\r\n\t\tconst tooltipDisabled = tooltip == null || Disabled;\r\n\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t {\r\n\t\t\t\t\t\tif (onMouseEnter)\r\n\t\t\t\t\t\t\tonMouseEnter();\r\n\t\t\t\t\t\tthis.handleOpen(true);\r\n\t\t\t\t\t}}\r\n\t\t\t\t\tonMouseLeave={() => {\r\n\t\t\t\t\t\tif (onMouseLeave)\r\n\t\t\t\t\t\t\tonMouseLeave();\r\n\t\t\t\t\t\tthis.handleOpen(false);\r\n\t\t\t\t\t}}\r\n\t\t\t\t\tonClick={() => {\r\n\t\t\t\t\t\tif (OnClick)\r\n\t\t\t\t\t\t\tOnClick();\r\n\t\t\t\t\t\tthis.handleOpen(false);\r\n\t\t\t\t\t}}\r\n\t\t\t\t\t{...rest} />\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nGridButton.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tIcon: PropTypes.string,\r\n\tDisabled: PropTypes.bool,\r\n\tOnClick: PropTypes.func,\r\n\tonMouseEnter: PropTypes.func,\r\n\tonMouseLeave: PropTypes.func,\r\n\ttooltip: PropTypes.string,\r\n\tplacement: PropTypes.oneOf([\r\n\t\t\"bottom-end\", \"bottom-start\", \"bottom\", \"left-end\",\r\n\t\t\"left-start\", \"left\", \"right-end\", \"right-start\",\r\n\t\t\"right\", \"top-end\", \"top-start\", \"top\"])\r\n};\r\n\r\nexport default withStyles(gridButtonStyle)(GridButton);","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPoAAADKCAMAAAC7SK2iAAAAY1BMVEVmZmb///9bW1tgYGDZ2dnT09N1dXWkpKT39/djY2NYWFhWVlZdXV3o6Ojg4ODExMSenp61tbWtra1ra2vw8PCIiIiYmJjf39+oqKhpaWl6enqLi4u+vr6vr6+5ubmCgoLKysqUeYsCAAAG40lEQVR4nO3daZuqIBgGYJUWMfJUtjg11fz/X3kSWww34AUE5fk6M13d87igogbhZBMM/QWGi6dPMXV6PN8dMjSqZIfdPO6ln45BhHAwsmAUBcdTJ319iNDQX1NXUHRft9Ovyej6rgYn1xZ6fCdDfzndIfe4ib5fjHZZ/wRl+zp9n416YX8Ff+xv+nkCnRdBZ5a+Gf16/grZfNPnydDfyFyS+Rd9Git6GZxV6bfJLO5FyK1CX0yo9Eftiw99NqE1vUgye9OXE9mxvYKWb3p9I4eiEaVWbLmhK+gxu5HDeDsbUbaYrZbET3rK0HFWP653OjG7WJM0LOnziPnBbOjvqjozptyoGNU00J/b/lGF2Xt7uqd7uqePLZ7u6Z4eerqne/rYopC+T/9dl4/kt/m6/7eHjyr6/nb/iUh51Z5EZHGcG/jysKihzy4r8vVBGEXkuu/8m8Gjgr6/RE0nrgm+GULIRQF9u2o7Y08WNq/0cPql4yoNRv+MSYQDpe+z7vP1yc4gRixAev/kg8haO4xeO6PrUu8w+p3n6lRk6foOonNOu4js3M5D6LwXY/G54Y+HD4TOfQWeWDm2AdB/mWtTXbHxgh2Azg8PyNa0iyPy9D+BuTavWTpWRZ5+EZlrY+OFWml6LDTLqJyuYVek6ewF+O7YuH+Tpl/FphlF9p23kKYLreqPD1a6srP3bUhFmi44o5CoHMjnKxWfJk0XWtXV7tlzEiR/8I+Rpq/E6EgdPS8OHRJ478boyvZueTmUisC9O9d6/j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kS0cjVq6Q50rpjsweq1EJd2pzpXS3epcJd2xzlXSuc5A2hR1dMFH7Q0fT/d0T6/E0z39E0/3dE93K57u6Z5eiad7+iee7ume7lY83dM9vRIBOnIs6m722iwdy8bQfW4uxNM93dNDT/d0Tx9bPN3TPT30dE8vYuNbxGGZMbfVvukp8wOcAV9WZFvijJn9RtKwpNdeWYbxdjaibGtzukn8pIfsPyUIUDSi1G4oxln4oi+HuNt4wJRv26P0meDrd11PMnvTRV+w7niee++SLvRaSudDfiv0hg3deFNu5N70+YTW9teLBp/0IR4jMlDI6wVkL3p4nsgODp1Dll4b7I0zlUH6mx7uFxPoHS0+zwT70MP4Pvr1ndwrB2YVehhuo1Ev9Dj5esrqFz1cH+pj/bEERYfvhz5+08PwdAwix+7n6w/GKAqO7IsGWfpjlZ/vDtnQcwPUJjvs5vWzL3X6ZOLpU8yE6f8Bq3+4ewhOtLcAAAAASUVORK5CYII=\"","import { InputAdornment, withStyles } from \"@material-ui/core\";\r\nimport genericNumberInputStyle from \"assets/jss/generic/genericNumberInputStyle.jsx\";\r\nimport CustomInput from \"components/CustomInput/CustomInput.jsx\";\r\nimport { Formats } from \"core/TextFormats\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport NumberFormat from \"react-number-format\";\r\nimport GenericIcon from \"views/Components/Generic/GenericIcon.jsx\";\r\n\r\nfunction NumberFormatCustom(props) {\r\n\tconst { IsPhone, inputRef, onChange, noFormatting, ...other } = props;\r\n\tvar format = props.format;\r\n\tif (IsPhone != undefined) {\r\n\t\tformat = Formats.Phone;\r\n\t}\r\n\treturn (\r\n\t\t {\r\n\t\t\t\tonChange({\r\n\t\t\t\t\ttarget: {\r\n\t\t\t\t\t\tvalue: noFormatting ? values.value : values.floatValue,\r\n\t\t\t\t\t},\r\n\t\t\t\t});\r\n\t\t\t}}\r\n\t\t/>\r\n\t);\r\n}\r\n\r\nNumberFormatCustom.propTypes = {\r\n\tinputRef: PropTypes.func.isRequired,\r\n\tformat: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),\r\n\tonChange: PropTypes.func.isRequired,\r\n\tnoFormatting: PropTypes.bool,\r\n\tIsPhone: PropTypes.bool\r\n};\r\n\r\nclass GenericNumberInput extends React.PureComponent {\r\n\r\n\r\n\trender() {\r\n\t\tconst { classes, LabelText, Name, Value, ValueChanged, Disabled, BeginIconName, ClearOnClick,\r\n\t\t\tEndIconName, ClearIconName, AutoFocus, KeyPressed, KeyUp, KeyDown, Blur, Prefix, Suffix,\r\n\t\t\tThousandSeparator, DecimalSeparator, MaxLength, IconOnClick, AllowNegative,\r\n\t\t\tDecimalScale, FixedDecimalScale, NoFormatting, LabelMd, inputProps, BeginText, EndText, ClearText,\r\n\t\t\tLabelStyle, InputStyle, MaxValue, Format, IsPhone, FloatRight, Required, IsInvalid } = this.props;\r\n\r\n\t\tvar haveStartIcon = (BeginIconName || BeginText || \"\") != \"\";\r\n\t\tvar haveEndIcon = (EndIconName || EndText || \"\") != \"\";\r\n\t\tvar haveClearIcon = (ClearIconName || ClearText || \"\") != \"\";\r\n\r\n\t\t// var temptooltip = { ...tooltipProps };\r\n\t\t// if (!tooltipProps) {\r\n\t\t// \ttemptooltip[\"isOpen\"] = false;\r\n\t\t// }\r\n\r\n\t\tvar endActions = [];\r\n\t\tif (haveEndIcon) {\r\n\t\t\tvar endText = (EndText ? EndText : {EndIconName});\r\n\t\t\tendActions.push({endText});\r\n\t\t}\r\n\r\n\t\tif (haveClearIcon) {\r\n\t\t\tvar clearText = (ClearText ? ClearText : {ClearIconName});\r\n\t\t\tendActions.push({clearText});\r\n\t\t}\r\n\r\n\t\treturn (\r\n\t\t\t//\r\n\t\t\t\r\n\t\t\t\t\t\t\t{BeginText ? BeginText :\r\n\t\t\t\t\t\t\t\t{BeginIconName}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t: null,\r\n\t\t\t\t\tendAdornment:
{endActions}
,\r\n\t\t\t\t\tvalue: Value != null ? Value : \"\",\r\n\r\n\t\t\t\t\tonChange: e => {\r\n\t\t\t\t\t\tif (ValueChanged)\r\n\t\t\t\t\t\t\tValueChanged(Name, e.target.value);\r\n\t\t\t\t\t},\r\n\t\t\t\t\tdisabled: Disabled,\r\n\t\t\t\t\tinputComponent: NumberFormatCustom,\r\n\t\t\t\t\tinputProps: {\r\n\t\t\t\t\t\tthousandSeparator: ThousandSeparator,\r\n\t\t\t\t\t\tdecimalSeparator: DecimalSeparator,\r\n\t\t\t\t\t\tdecimalScale: DecimalScale,\r\n\t\t\t\t\t\tfixedDecimalScale: FixedDecimalScale,\r\n\t\t\t\t\t\tallowNegative: AllowNegative,\r\n\t\t\t\t\t\tdisabled: Disabled,\r\n\t\t\t\t\t\tautoFocus: AutoFocus,\r\n\t\t\t\t\t\tonKeyPress: KeyPressed,\r\n\t\t\t\t\t\tonKeyUp: KeyUp,\r\n\t\t\t\t\t\tonKeyDown: KeyDown,\r\n\t\t\t\t\t\tprefix: Prefix,\r\n\t\t\t\t\t\tsuffix: Suffix,\r\n\t\t\t\t\t\tformat: NoFormatting ? (e => e) : Format,\r\n\t\t\t\t\t\tnoFormatting: NoFormatting,\r\n\t\t\t\t\t\tIsPhone: IsPhone,\r\n\t\t\t\t\t\tisAllowed: values => {\r\n\t\t\t\t\t\t\tconst { floatValue, value } = values;\r\n\r\n\t\t\t\t\t\t\tif (NoFormatting) {\r\n\t\t\t\t\t\t\t\treturn MaxLength == null || value.length <= MaxLength;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tif (floatValue == null) {\r\n\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tif (MaxValue != null) {\r\n\t\t\t\t\t\t\t\treturn floatValue <= MaxValue;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\treturn MaxLength == null || String(floatValue).length <= MaxLength;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\tonBlur: (e) => {\r\n\t\t\t\t\t\tif (Blur) {\r\n\t\t\t\t\t\t\tBlur(e);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}, // Focus fix\r\n\t\t\t\t}}\r\n\t\t\t/>\r\n\t\t\t//\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nGenericNumberInput.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tValueChanged: PropTypes.func,\r\n\tValue: PropTypes.oneOfType([\r\n\t\tPropTypes.string,\r\n\t\tPropTypes.number\r\n\t]),\r\n\tLabelText: PropTypes.string,\r\n\tName: PropTypes.string,\r\n\tDisabled: PropTypes.bool,\r\n\tBeginIconName: PropTypes.string,\r\n\tEndIconName: PropTypes.string,\r\n\tClearIconName: PropTypes.string,\r\n\tBeginText: PropTypes.string,\r\n\tEndText: PropTypes.string,\r\n\tClearText: PropTypes.string,\r\n\tAutoFocus: PropTypes.bool,\r\n\tKeyPressed: PropTypes.func,\r\n\tKeyDown: PropTypes.func,\r\n\tKeyUp: PropTypes.func,\r\n\tBlur: PropTypes.func,\r\n\tThousandSeparator: PropTypes.string,\r\n\tDecimalSeparator: PropTypes.string,\r\n\tPrefix: PropTypes.string,\r\n\tSuffix: PropTypes.string,\r\n\tMaxLength: PropTypes.number,\r\n\tIconOnClick: PropTypes.func,\r\n\tClearOnClick: PropTypes.func,\r\n\tAllowNegative: PropTypes.bool,\r\n\tDecimalScale: PropTypes.number,\r\n\tFixedDecimalScale: PropTypes.bool,\r\n\tNoFormatting: PropTypes.bool,\r\n\tLabelMd: PropTypes.number,\r\n\tFloatRight: PropTypes.bool,\r\n\tinputProps: PropTypes.object,\r\n\tLabelStyle: PropTypes.object,\r\n\tInputStyle: PropTypes.object,\r\n\tMaxValue: PropTypes.number,\r\n\tFormat: PropTypes.string,\r\n\tIsPhone: PropTypes.bool,\r\n\ttooltipProps: PropTypes.object,\r\n\tRequired: PropTypes.bool,\r\n\tIsInvalid: PropTypes.bool\r\n};\r\n\r\nGenericNumberInput.defaultProps = {\r\n\tThousandSeparator: \",\",\r\n\tDecimalSeparator: \".\",\r\n\tAllowNegative: false,\r\n\tDecimalScale: 2,\r\n\tFixedDecimalScale: true\r\n};\r\n\r\nexport default withStyles(genericNumberInputStyle)(GenericNumberInput);","import { FormControl, InputLabel } from \"@material-ui/core\";\r\nimport genericSelectInputStyle from \"assets/jss/generic/genericSelectInputStyle.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport ResourceHelper from \"core/ResourceHelper\";\r\nimport withArtifex from \"core/withArtifex\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { PureComponent } from \"react\";\r\nimport Select from \"react-select\";\r\nimport GenericVirtualizedMenuList from \"./GenericSelectInput/GenericVirtualizedMenuList\";\r\n\r\nconst groupStyles = {\r\n\tdisplay: \"flex\",\r\n\talignItems: \"center\",\r\n\tjustifyContent: \"space-between\",\r\n};\r\n\r\nconst customSelectComponents = { MenuList: GenericVirtualizedMenuList };\r\nclass GenericSelectInput extends PureComponent {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tData: [],\r\n\t\t\tMappedData: [],\r\n\t\t\tisLoading: false,\r\n\t\t};\r\n\r\n\t\tthis.isCancelled = false;\r\n\r\n\t\tthis.FetchDataCallback = this.FetchDataCallback.bind(this);\r\n\t\tthis.ErrorCallback = this.ErrorCallback.bind(this);\r\n\t\tthis.handleChange = this.handleChange.bind(this);\r\n\t\tthis.isFunction = this.isFunction.bind(this);\r\n\t\tthis.isObject = this.isObject.bind(this);\r\n\t\tthis.FilterData = this.FilterData.bind(this);\r\n\t\tthis.handleInputChange = this.handleInputChange.bind(this);\r\n\t\tthis.selectProps = {};\r\n\t\tthis.dataContainer = {};\r\n\r\n\t\tthis.placeHolderText = \"Select One\";\r\n\t}\r\n\r\n\thandleChange(selectedOption) {\r\n\t\tconst { Name, KeyValueMember, ValueChanged, StaticData } = this.props;\r\n\t\tconst { Data } = this.state;\r\n\t\tconst data = StaticData || Data;\r\n\r\n\t\tthis.setState({ selectedOption: selectedOption });\r\n\r\n\t\tif (ValueChanged) {\r\n\t\t\tvar newValue = selectedOption != null ? selectedOption.value : null;\r\n\t\t\tValueChanged(Name, newValue, data.find(x => x[KeyValueMember] == newValue));\r\n\t\t}\r\n\t}\r\n\r\n\thandleInputChange(selectedOption) {\r\n\t\tconst { Name, InputValueChanged } = this.props;\r\n\t\tif (InputValueChanged) {\r\n\t\t\tInputValueChanged(Name, selectedOption);\r\n\t\t}\r\n\t}\r\n\r\n\tcomponentDidUpdate(prevProps) {\r\n\t\tif (this.props.FilterPredicate && this.props.FilterPredicate !== prevProps.FilterPredicate && this.state.Data && this.state.Data.length > 0) {\r\n\t\t\tvar mappedData = this.Map(this.state.Data);\r\n\t\t\tthis.setState({ MappedData: mappedData, isLoading: false });\r\n\t\t}\r\n\r\n\t\tif(this.props.ReloadEnabled){\r\n\t\t\tlet isChanged = false;\r\n\r\n\t\t\tObject.keys(this.props.Parameter).forEach((key) => {\r\n\t\t\t\tif (this.props.Parameter[key] !== prevProps.Parameter[key]) {\r\n\t\t\t\t\tisChanged = true;\r\n\t\t\t\t}});\r\n\r\n\t\t\tif(isChanged){\r\n\t\t\t\tthis.LoadData();\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tLoadData(){\r\n\t\tconst { Name, Method, Url, Parameter, KeyValueMember, IsStatic, DefaultIndex, StaticData, ValueChanged, TaskPoolDomain } = this.props;\r\n\r\n\t\tif (IsStatic) {\r\n\t\t\tlet mappedData = this.Map(StaticData);\r\n\t\t\tthis.setState({ MappedData: mappedData });\r\n\r\n\t\t\tif (DefaultIndex != null && DefaultIndex >= 0 && StaticData.length > DefaultIndex) {\r\n\t\t\t\tValueChanged(Name, StaticData[DefaultIndex][KeyValueMember]);\r\n\t\t\t}\r\n\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tif (Method == \"GET\") {\r\n\t\t\tif (TaskPoolDomain && this.isObject(TaskPoolDomain))\r\n\t\t\t\tTaskPoolDomain.AppendTask(Proxy.GET(Url, this.FetchDataCallback, this.ErrorCallback));\r\n\t\t\telse\r\n\t\t\t\tProxy.GET(Url, this.FetchDataCallback, this.ErrorCallback);\r\n\t\t}\r\n\t\telse if (Method == \"POST\") {\r\n\t\t\tif (TaskPoolDomain && this.isObject(TaskPoolDomain))\r\n\t\t\t\tTaskPoolDomain.AppendTask(Proxy.POST(Url, Parameter, this.FetchDataCallback, this.ErrorCallback));\r\n\t\t\telse\r\n\t\t\t\tProxy.POST(Url, Parameter, this.FetchDataCallback, this.ErrorCallback);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.ErrorCallback();\r\n\t\t}\r\n\t}\r\n\r\n\tcomponentWillUnmount() {\r\n\t\tthis.isCancelled = true;\r\n\t}\r\n\r\n\tFilterData(data, predicates) {\r\n\t\tif (this.props.FilterPredicate) {\r\n\t\t\tvar result = data.filter((value) => {\r\n\t\t\t\treturn predicates(value);\r\n\t\t\t});\r\n\t\t\treturn result;\r\n\t\t}\r\n\t\treturn data;\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.LoadData();\r\n\t}\r\n\r\n\tisFunction(obj) {\r\n\t\treturn typeof obj == \"function\";\r\n\t}\r\n\r\n\tisObject(obj) {\r\n\t\treturn obj !== null && typeof obj === \"object\";\r\n\t}\r\n\r\n\tFetchDataCallback(response) {\r\n\t\tif (this.isCancelled) return;\r\n\r\n\t\tconst { DataRoot, Name, DefaultIndex, KeyValueMember, Sorted, ValueChanged, AfterFetchCallback } = this.props;\r\n\r\n\t\tvar data = response[DataRoot] || [];\r\n\r\n\t\tif (AfterFetchCallback)\r\n\t\t\tAfterFetchCallback(data);\r\n\r\n\t\tif (Sorted) {\r\n\t\t\tdata.sort((a, b) => {\r\n\t\t\t\tvar nameA = a[Sorted.Member];\r\n\t\t\t\tif (nameA && nameA.toUpperCase) nameA = nameA.toUpperCase();\r\n\t\t\t\tvar nameB = b[Sorted.Member];\r\n\t\t\t\tif (nameB && nameB.toUpperCase) nameB = nameB.toUpperCase();\r\n\r\n\t\t\t\tif (nameA < nameB) {\r\n\t\t\t\t\treturn Sorted.Desc ? 1 : -1;\r\n\t\t\t\t}\r\n\t\t\t\tif (nameA > nameB) {\r\n\t\t\t\t\treturn Sorted.Desc ? -1 : 1;\r\n\t\t\t\t}\r\n\t\t\t\treturn 0;\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tvar mappedData = this.Map(data);\r\n\t\tthis.setState({ Data: data, MappedData: mappedData, isLoading: false });\r\n\r\n\t\tif (DefaultIndex != null && DefaultIndex >= 0 && data.length > DefaultIndex) {\r\n\t\t\tValueChanged(Name, data[DefaultIndex][KeyValueMember], data[DefaultIndex]);\r\n\t\t}\r\n\t}\r\n\r\n\tErrorCallback() {\r\n\t\tif (this.isCancelled) return;\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\tMap(mainData) {\r\n\t\tif (mainData == null || mainData.length == 0)\r\n\t\t\treturn [];\r\n\r\n\t\tvar data = [...mainData];\r\n\r\n\t\tconst { KeyValueMember, TextValueMember, RenderItem, All, MultiLanguage, FilterPredicate } = this.props;\r\n\t\tif (FilterPredicate && this.isFunction(FilterPredicate))\r\n\t\t\tdata = this.FilterData(data, FilterPredicate);\r\n\r\n\t\tvar returnData = data.map(d => {\r\n\t\t\tvar label = d[TextValueMember];\r\n\t\t\tif (RenderItem)\r\n\t\t\t\tlabel = RenderItem(d);\r\n\t\t\telse if (MultiLanguage)\r\n\t\t\t\tlabel = ResourceHelper.Get(label);\r\n\r\n\t\t\treturn { value: d[KeyValueMember], label: label };\r\n\t\t});\r\n\r\n\t\tif (All == true) {\r\n\t\t\treturnData.unshift({ value: -1, label: \"All\" });\r\n\t\t}\r\n\r\n\t\treturn returnData;\r\n\t}\r\n\r\n\tGetStyles() {\r\n\t\tconst { Required, IsInvalid } = this.props;\r\n\r\n\t\tvar borderColor = \"#e9eaec\";\r\n\t\tif (IsInvalid) {\r\n\t\t\tborderColor = window.InvalidFieldColor;\r\n\t\t}\r\n\t\telse if (Required) {\r\n\t\t\tborderColor = window.RequiredFieldColor;\r\n\t\t}\r\n\r\n\t\treturn {\r\n\t\t\tcontrol: (base) => (\r\n\t\t\t\t{\r\n\t\t\t\t\t...base,\r\n\t\t\t\t\theight: \"25px\",\r\n\t\t\t\t\tminHeight: \"25px\",\r\n\t\t\t\t\tfontSize: \"12px\",\r\n\t\t\t\t\tborder: `1px solid ${borderColor}`,\r\n\t\t\t\t\tborderRadius: \"unset\",\r\n\t\t\t\t\t\"&:active\": {\r\n\t\t\t\t\t\tborder: `1px solid ${borderColor} !important`,\r\n\t\t\t\t\t\tboxShadow: \"unset !important\"\r\n\t\t\t\t\t},\r\n\t\t\t\t\tfontWeight: \"400\"\r\n\t\t\t\t}),\r\n\t\t\tvalueContainer: (base) => (\r\n\t\t\t\t{\r\n\t\t\t\t\t...base,\r\n\t\t\t\t\theight: \"25px\",\r\n\t\t\t\t\tminHeight: \"25px\",\r\n\t\t\t\t\tfontSize: \"12px\",\r\n\t\t\t\t\tfontWeight: \"400\",\r\n\t\t\t\t\t\"&:active\": {\r\n\t\t\t\t\t\tbackground: \"unset\",\r\n\t\t\t\t\t\tborder: `1px solid ${borderColor} !important`,\r\n\t\t\t\t\t\tboxShadow: \"unset !important\",\r\n\t\t\t\t\t\tpadding: \"unset\"\r\n\t\t\t\t\t},\r\n\t\t\t\t\tpadding: \"unset\"\r\n\t\t\t\t}),\r\n\t\t\tindicatorsContainer: (base) => (\r\n\t\t\t\t{\r\n\t\t\t\t\t...base,\r\n\t\t\t\t\theight: \"25px\",\r\n\t\t\t\t\tminHeight: \"25px\",\r\n\t\t\t\t\tfontSize: \"12px\",\r\n\t\t\t\t\tfontWeight: \"400\",\r\n\t\t\t\t\t\"&:active\": {\r\n\t\t\t\t\t\tborder: `1px solid ${borderColor} !important`,\r\n\t\t\t\t\t\tboxShadow: \"unset !important\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}),\r\n\t\t\toption: (base) => (\r\n\t\t\t\t{\r\n\t\t\t\t\t...base,\r\n\t\t\t\t\tfontSize: \"12px\",\r\n\t\t\t\t\tfontWeight: \"400\",\r\n\t\t\t\t\t\"&:active\": {\r\n\t\t\t\t\t\tborder: `1px solid ${borderColor} !important`,\r\n\t\t\t\t\t\tboxShadow: \"unset !important\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}),\r\n\t\t\tcontainer: (base) => ({\r\n\t\t\t\t...base\r\n\t\t\t}),\r\n\t\t\tmenu: (base) => ({\r\n\t\t\t\t...base,\r\n\t\t\t\tzIndex: \"50\"\r\n\t\t\t}),\r\n\t\t\tsingleValue: (base, state) => {\r\n\t\t\t\tvar isPlaceholder = this.placeHolderText == state.data.label;\r\n\t\t\t\tvar styleObj = {\r\n\t\t\t\t\t...base\r\n\t\t\t\t};\r\n\r\n\t\t\t\tif (!isPlaceholder) {\r\n\t\t\t\t\tstyleObj.color = \"rgba(0, 0, 0, 1)\";\r\n\t\t\t\t}\r\n\t\t\t\treturn styleObj;\r\n\t\t\t}\r\n\t\t};\r\n\t}\r\n\trender() {\r\n\t\tconst { classes, LabelText, Name, Value, KeyValueMember, TextValueMember, Disabled,\r\n\t\t\tStaticData, LabelMd, TitleLabel, LabelStyle, SelectStyle, RenderItem, IsTextBold, CanClear, VirtualizedList } = this.props;\r\n\t\tconst { Data, MappedData } = this.state;\r\n\r\n\t\tconst data = StaticData || Data;\r\n\r\n\t\tvar titleLabel = TitleLabel ? TitleLabel : this.placeHolderText;\r\n\t\tvar tempSelectedOption = {};\r\n\r\n\t\tif (Value != null) {\r\n\t\t\tif (Value == -1) {\r\n\t\t\t\ttempSelectedOption.value = -1;\r\n\t\t\t\ttempSelectedOption.label = \"All\";\r\n\t\t\t} else {\r\n\t\t\t\tvar label = data.find(x => x[KeyValueMember] == Value);\r\n\t\t\t\tif (label == undefined) {\r\n\t\t\t\t\ttempSelectedOption.value = -2;\r\n\t\t\t\t\ttempSelectedOption.label = titleLabel;\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttempSelectedOption.value = Value;\r\n\t\t\t\t\ttempSelectedOption.label = RenderItem ? RenderItem(label) : label[TextValueMember];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tvar lastData = MappedData == null || MappedData.length == 0\r\n\t\t\t? this.Map(data)\r\n\t\t\t: MappedData;\r\n\r\n\t\tconst formatGroupLabel = () => (\r\n\t\t\t
\r\n\t\t\t\t{titleLabel}\r\n\t\t\t
\r\n\t\t);\r\n\t\tthis.dataContainer.groupedItem = this.dataContainer.groupedItem || {};\r\n\t\tthis.dataContainer.groupedOptions = this.dataContainer.groupedOptions || [this.dataContainer.groupedItem];\r\n\t\tObject.assign(this.dataContainer.groupedItem, {\r\n\t\t\tlabel: titleLabel,\r\n\t\t\toptions: lastData,\r\n\t\t});\r\n\t\tconst groupedOptions = this.dataContainer.groupedOptions;\r\n\t\tvar labelMd = LabelMd == -1 ? undefined : LabelMd;\r\n\t\tvar selectMd = LabelMd == -1 ? undefined : 12 - LabelMd;\r\n\r\n\t\tif (labelMd == 0) labelMd = undefined;\r\n\t\tif (selectMd == 0) selectMd = undefined;\r\n\r\n\t\tthis.selectProps.components = (VirtualizedList !== false && VirtualizedList !== undefined) ? customSelectComponents : undefined;\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\t{LabelText != undefined && LabelText != \"\" &&\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{LabelText}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t 0 ? groupedOptions : lastData}\r\n\t\t\t\t\t\t\t\tisClearable={CanClear}\r\n\t\t\t\t\t\t\t\ttheme={(theme) => ({\r\n\t\t\t\t\t\t\t\t\t...theme,\r\n\t\t\t\t\t\t\t\t\tborderRadius: 0,\r\n\t\t\t\t\t\t\t\t\tcolors: {\r\n\t\t\t\t\t\t\t\t\t\t...theme.colors,\r\n\t\t\t\t\t\t\t\t\t\tprimary: \"black\",\r\n\t\t\t\t\t\t\t\t\t\tprimary25: \"rgb(246, 246, 246)\",\r\n\t\t\t\t\t\t\t\t\t\tprimary50: \"rgb(246, 246, 246)\",\r\n\t\t\t\t\t\t\t\t\t\tprimary75: \"rgb(246, 246, 246)\"\r\n\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t{...this.selectProps}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nGenericSelectInput.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tValueChanged: PropTypes.any,\r\n\tInputValueChanged: PropTypes.any,\r\n\tValue: PropTypes.any,\r\n\tName: PropTypes.string,\r\n\tLabelText: PropTypes.string,\r\n\tKeyValueMember: PropTypes.string,\r\n\tTextValueMember: PropTypes.string,\r\n\tMethod: PropTypes.string,\r\n\tUrl: PropTypes.string,\r\n\tParameter: PropTypes.any,\r\n\tDataRoot: PropTypes.string,\r\n\tIsStatic: PropTypes.bool,\r\n\tStaticData: PropTypes.array,\r\n\tDisabled: PropTypes.bool,\r\n\tDefaultIndex: PropTypes.number,\r\n\tSorted: PropTypes.object,\r\n\tAfterFetchCallback: PropTypes.any,\r\n\tRenderItem: PropTypes.func,\r\n\tAll: PropTypes.bool,\r\n\tLabelMd: PropTypes.number,\r\n\tTitleLabel: PropTypes.string,\r\n\tLabelStyle: PropTypes.object,\r\n\tSelectStyle: PropTypes.object,\r\n\tMultiLanguage: PropTypes.bool,\r\n\tIsTextBold: PropTypes.bool,\r\n\tCanClear: PropTypes.bool,\r\n\tFilterPredicate: PropTypes.func,\r\n\tTaskPoolDomain: PropTypes.any,\r\n\tRequired: PropTypes.bool,\r\n\tIsInvalid: PropTypes.bool,\r\n\tReloadEnabled: PropTypes.bool,\r\n /** Create VirtualizedList for regular list. Improves scroll speed significantly on large list */\r\n\tVirtualizedList: PropTypes.bool\r\n};\r\n\r\nGenericSelectInput.defaultProps = {\r\n\tLabelMd: 4,\r\n\tCanClear: true\r\n};\r\n\r\nexport default withArtifex(GenericSelectInput, genericSelectInputStyle);","import ClientHelper from \"core/ClientHelper\";\r\nimport StringHelper from \"core/StringHelper\";\r\nimport React from \"react\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nexport function GetColumns(props, state) {\r\n\treturn [\r\n\t\t{\r\n\t\t\tHeader: \"Client Id\",\r\n\t\t\taccessor: \"UniqueClient.UniqueClientId\",\r\n\t\t\tshow: ClientHelper.IsBackOffice(),\r\n\t\t\twidth: 120\r\n\t\t},\r\n\t\t{\r\n\t\t\tHeader: \"Client Name\",\r\n\t\t\taccessor: \"UniqueClient.ClientName\",\r\n\t\t\tshow: ClientHelper.IsBackOffice()\r\n\t\t},\r\n\t\t{\r\n\t\t\tHeader: \"Client Customer No.\",\r\n\t\t\taccessor: \"ClientCustomerNumber\"\r\n\t\t},\r\n\t\t{\r\n\t\t\tHeader: \"First Name\",\r\n\t\t\taccessor: \"Name\",\r\n\t\t\tCell: row => (\r\n\t\t\t\trow.value ? StringHelper.Capitalize(row.value, true) : \"\"\r\n\t\t\t)\r\n\t\t},\r\n\t\t{\r\n\t\t\tHeader: \"Middle Name\",\r\n\t\t\taccessor: \"MiddleName\",\r\n\t\t\tCell: row => (\r\n\t\t\t\trow.value ? StringHelper.Capitalize(row.value, true) : \"\"\r\n\t\t\t)\r\n\t\t},\r\n\t\t{\r\n\t\t\tHeader: \"Last Name\",\r\n\t\t\taccessor: \"SurName\",\r\n\t\t\tCell: row => (\r\n\t\t\t\trow.value ? StringHelper.Capitalize(row.value, true) : \"\"\r\n\t\t\t)\r\n\t\t},\r\n\t\t{\r\n\t\t\tHeader: \"E-Mail\",\r\n\t\t\taccessor: \"Email\",\r\n\t\t\tCell: row => (\r\n\t\t\t\trow.value ? String(row.value).toLowerCase() : \"\"\r\n\t\t\t),\r\n\t\t\twidth: 150\r\n\t\t},\r\n\t\t{\r\n\t\t\tHeader: \"Interac E-Mail\",\r\n\t\t\taccessor: \"InteracEmail\",\r\n\t\t\tCell: row => (\r\n\t\t\t\trow.value ? String(row.value).toLowerCase() : \"\"\r\n\t\t\t),\r\n\t\t\twidth: 150\r\n\t\t},\r\n\t\t{\r\n\t\t\tHeader: \"Phone Number\",\r\n\t\t\taccessor: \"PhoneNumber\",\r\n\t\t\tCell: row => {\r\n\t\t\t\treturn row.original.PhoneCountryCode && row.original.PhoneCountryCode.Code && StringHelper.IsValidatePhone(row.original.PhoneNumber) &&\r\n\t\t\t\t\t
{`+${row.original.PhoneCountryCode.Code} ${StringHelper.GetFormatPhoneText(row.original.PhoneNumber)}`}
;\r\n\t\t\t}\r\n\t\t},\r\n\t\t{\r\n\t\t\tHeader: \"Corporate Name\",\r\n\t\t\taccessor: \"CompanyLegalName\",\r\n\t\t\tCell: row => (\r\n\t\t\t\trow.value ? StringHelper.Capitalize(row.value, true) : \"\"\r\n\t\t\t)\r\n\t\t},\r\n\t\t{\r\n\t\t\tHeader: `${window.Title} Customer No.`,\r\n\t\t\taccessor: \"CustomerNumber\"\r\n\t\t},\r\n\t\t{\r\n\t\t\tHeader: \"DDR Account Number\",\r\n\t\t\taccessor: \"DDRAccountNumber\"\r\n\t\t},\r\n\t\t{\r\n\t\t\tHeader: \"Is Registered\",\r\n\t\t\taccessor: \"IsRegistered\",\r\n\t\t\tCell: row => (\r\n\t\t\t\trow.value+\"\" == \"null\" ? \"\" : row.value+\"\"\r\n\t\t\t)\r\n\t\t},\r\n\t\t{\r\n\t\t\tHeader: \"Direct Deposit Reference Number\",\r\n\t\t\taccessor: \"DirectDepositReferenceNumber\",\r\n\t\t\tCell: row => (\r\n\t\t\t\trow.value+\"\" == \"null\" ? \"\" : row.value+\"\"\r\n\t\t\t)\r\n\t\t},\r\n\t\t{\r\n\t\t\tHeader: \"Is Direct Deposit Registration Creation.\",\r\n\t\t\taccessor: \"IsDirectDepositRegistrationCreation\",\r\n\t\t\tCell: row => (\r\n\t\t\t\trow.value+\"\" == \"null\" ? \"\" : row.value+\"\"\r\n\t\t\t)\r\n\t\t},\r\n\t\t{\r\n\t\t\tHeader: \"Masked Card No.\",\r\n\t\t\taccessor: \"MaskedCardNumber\",\r\n\t\t\tCell: row => (\r\n\t\t\t\trow.value+\"\"\r\n\t\t\t)\r\n\t\t},\r\n\t\t{\r\n\t\t\tHeader: \"Watchlist Scanning Status\",\r\n\t\t\taccessor: \"WatchlistScanningStatus\",\r\n\t\t},\r\n\t\t{\r\n\t\t\tHeader: \"KYC Screening Status\",\r\n\t\t\taccessor: \"KycScreeningStatus\",\r\n\t\t},\r\n\t\t{\r\n\t\t\tHeader: \"Last Watchlist Review Date\",\r\n\t\t\taccessor: \"LastWatchlistReviewDate\",\r\n\t\t\ttype: GridColumnType.Date\r\n\t\t},\r\n\t];\r\n}\r\n\r\nexport function GetCDICAccountColumns(props, state) {\r\n\treturn [\r\n\t\t{\r\n\t\t\tHeader: \"Unique Client Id\",\r\n\t\t\taccessor: \"UniqueClientId\",\r\n\t\t\tshow: ClientHelper.IsBackOffice()\r\n\t\t},\r\n\t\t{\r\n\t\t\tHeader: \"Customer Name\",\r\n\t\t\taccessor: \"CustomerName\",\r\n\t\t\tshow: ClientHelper.IsBackOffice()\r\n\t\t},\r\n\t\t{\r\n\t\t\tHeader: \"Transit Number\",\r\n\t\t\taccessor: \"TransitNumber\"\r\n\t\t},\r\n\t\t{\r\n\t\t\tHeader: \"Account Number\",\r\n\t\t\taccessor: \"AccountNumber\",\r\n\t\t\tCell: row => (\r\n\t\t\t\t
{row.value}
\r\n\t\t\t)\r\n\t\t},\r\n\t\t{\r\n\t\t\tHeader: \"Issued Date\",\r\n\t\t\taccessor: \"IssuedDate\",\r\n\t\t\ttype: GridColumnType.Date\r\n\t\t},\r\n\t\t{\r\n\t\t\tHeader: \"Expire Date\",\r\n\t\t\taccessor: \"IdentityExpireDate\",\r\n\t\t\ttype: GridColumnType.Date\r\n\t\t},\r\n\t\t{\r\n\t\t\tHeader: \"Balance\",\r\n\t\t\taccessor: \"Balance\",\r\n\t\t\ttype: GridColumnType.Money,\r\n\t\t\tColumnType: GridColumnType.Money\r\n\t\t}\r\n\t];\r\n}","import PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport { Redirect, Route, Switch } from \"react-router-dom\";\r\nimport externalPagesRoutes from \"routes/externalPage.jsx\";\r\nimport { TaskPool } from \"core/TaskPool\";\r\nimport DashboardHelper from \"core/DashboardHelper\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nclass ExternalPage extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\r\n\t\t};\r\n\t\tthis.handleLoadTaskPoolCompleted = this.handleLoadTaskPoolCompleted.bind(this);\r\n\t\tthis.handleLoadTaskPoolAppend = this.handleLoadTaskPoolAppend.bind(this);\t\t\r\n\t\tthis.handleAlertChange = this.handleAlertChange.bind(this);\r\n\r\n\t\tthis.loadTaskPool = new TaskPool(this.handleLoadTaskPoolAppend, this.handleLoadTaskPoolCompleted);\r\n\t\tthis.dashboardHelper = new DashboardHelper(this.handleAlertChange, this.loadTaskPool);\r\n\t\t\r\n\t\tthis.ExecuteApiGet = this.dashboardHelper.ExecuteApiGet;\r\n\t\tthis.ExecuteApiPost = this.dashboardHelper.ExecuteApiPost;\r\n\t\tthis.ExecuteApiFileUpload = this.dashboardHelper.ExecuteApiFileUpload;\r\n\t\tthis.ExecuteApiImageUpload = this.dashboardHelper.ExecuteApiImageUpload;\r\n\t\tthis.ExecuteApiFileDownload = this.dashboardHelper.ExecuteApiFileDownload;\r\n\t\tthis.ExecuteApiFileDownloadWithGenericResponse = this.dashboardHelper.ExecuteApiFileDownloadWithGenericResponse;\r\n\t\tthis.ShowMessage = this.dashboardHelper.ShowMessage;\r\n\t\tthis.ShowMessageNode = this.dashboardHelper.ShowMessage;\r\n\t\tthis.ShowConfirmMessage = this.dashboardHelper.ShowConfirmMessage;\r\n\t\tthis.ShowValidationErrors = this.dashboardHelper.ShowValidationErrors;\r\n\t\tthis.ShowMessageAfterOperation = this.dashboardHelper.ShowMessageAfterOperation;\r\n\t\tthis.ShowConfirmMessageInDelete = this.dashboardHelper.ShowConfirmMessageInDelete;\r\n\t}\r\n\r\n\thandleAlertChange(alert) {\r\n\t\tthis.setState({ alert });\r\n\t}\r\n\r\n\thandleLoadTaskPoolCompleted() {\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\thandleLoadTaskPoolAppend() {\r\n\t\tthis.setState({ isLoading: true });\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tdocument.body.style.overflow = \"unset\";\r\n\t}\r\n\tgetExternalRoutes = () => {\r\n\r\n\t\treturn externalPagesRoutes.map((prop, key) => {\r\n\t\t\tif (prop.collapse) {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\tif (prop.redirect) {\r\n\t\t\t\treturn (\r\n\t\t\t\t\t\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t\tvar Comp = prop.component;\r\n\t\t\treturn (\r\n\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t/>);\r\n\t\t});\r\n\t}\r\n\trender() {\r\n\t\tconst { isLoading, alert } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\t{this.getExternalRoutes()}\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nExternalPage.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default ExternalPage;\r\n","import { History } from \"history\";\r\n\r\n/**\r\n * @param {History} history\r\n * @param {string} path\r\n * @param {string} [name]\r\n * @param {any} [value]\r\n */\r\nfunction Push(history, path, name, value) {\r\n\tif (value != null)\r\n\t\tlocalStorage.setItem(name, JSON.stringify(value));\r\n\r\n\thistory.push(path);\r\n}\r\n\r\n/**\r\n * @param {string} name\r\n */\r\nfunction ReadAndClear(name) {\r\n\tvar item = localStorage.getItem(name);\r\n\tvar value = item != null ? JSON.parse(item) : null;\r\n\tlocalStorage.removeItem(name);\r\n\treturn value;\r\n}\r\n\r\n/**\r\n * @param {string} name\r\n */\r\nfunction Read(name) {\r\n\tvar item = localStorage.getItem(name);\r\n\tvar value = item != null ? JSON.parse(item) : null;\r\n\treturn value;\r\n}\r\n\r\nconst RouteHelper = {\r\n\tPush,\r\n\tReadAndClear,\r\n\tRead\r\n};\r\n\r\nexport default RouteHelper;","import { Checkbox, FormControlLabel } from \"@material-ui/core\";\r\nimport withStyles from \"@material-ui/core/styles/withStyles\";\r\nimport { Check } from \"@material-ui/icons\";\r\nimport genericCheckInputStyle from \"assets/jss/generic/genericCheckInputStyle.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { PureComponent } from \"react\";\r\n\r\nconst checkboxStyle = {\r\n\twidth: 24,\r\n\theight: 24\r\n};\r\n\r\nclass GenericCheckInput extends PureComponent {\r\n\r\n\trender() {\r\n\t\tconst { classes, LabelText, Name, Value, ValueChanged, Disabled, Grid, IsTextBold, IsTextLeft, IsWithButton } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t}\r\n\t\t\t\t\t\ticon={}\r\n\t\t\t\t\t\tclasses={{ checked: Disabled ? classes.disabled : classes.checked }}\r\n\t\t\t\t\t\tinputProps={{\r\n\t\t\t\t\t\t\tname: Name,\r\n\t\t\t\t\t\t\tdisabled: Disabled\r\n\t\t\t\t\t\t}}\r\n\t\t\t\t\t\tonChange={e => {\r\n\t\t\t\t\t\t\tif (ValueChanged)\r\n\t\t\t\t\t\t\t\tValueChanged(Name, e.target.checked);\r\n\t\t\t\t\t\t}}\r\n\t\t\t\t\t/>\r\n\t\t\t\t}\r\n\t\t\t\tclasses={{ label: IsTextBold != null ? classes.labelBold : classes.label }}\r\n\t\t\t\tlabel={LabelText}\r\n\t\t\t/>\r\n\t\t);\r\n\t}\r\n}\r\n\r\nGenericCheckInput.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tName: PropTypes.oneOfType([\r\n\t\tPropTypes.string,\r\n\t\tPropTypes.number\r\n\t]),\r\n\tLabelText: PropTypes.string,\r\n\tValueChanged: PropTypes.func,\r\n\tValue: PropTypes.bool,\r\n\tDisabled: PropTypes.bool,\r\n\tGrid: PropTypes.bool,\r\n\tIsTextBold: PropTypes.bool,\r\n\tIsTextLeft: PropTypes.bool,\r\n\tIsWithButton: PropTypes.bool\r\n};\r\n\r\nexport default withStyles(genericCheckInputStyle)(GenericCheckInput);","import GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport { GenericDateInput } from \"views/Components/Generic\";\r\n\r\nclass GenericDateFilterInput extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tBeginDate: props.BeginDate,\r\n\t\t\t\tEndDate: props.EndDate\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tthis.ValueChanged = this.ValueChanged.bind(this);\r\n\t}\r\n\r\n\tValueChanged(name, newValue) {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model || {};\r\n\t\t\tmodel[name] = newValue;\r\n\r\n\t\t\tconst { Model } = this.props;\r\n\r\n\t\t\tif (name != \"BeginDate\" && !Model[\"BeginDate\"] && Object.keys(Model).length == 0) {\r\n\t\t\t\tmodel[\"BeginDate\"] = null;\r\n\t\t\t}\r\n\t\t\tif (name != \"EndDate\" && !Model[\"EndDate\"] && Object.keys(Model).length == 0) {\r\n\t\t\t\tmodel[\"EndDate\"] = null;\r\n\t\t\t}\r\n\r\n\t\t\tthis.props.ValueChanged(\"DateFilter\", { \"Name\": this.props.Name, ...model });\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\tisValidDate = (d) => {\r\n\t\treturn d instanceof Date && !isNaN(d);\r\n\t}\r\n\trender() {\r\n\t\tvar { LabelText, Model, Disabled, BeginDate, EndDate, MinDate, MaxDate, Utc } = this.props;\r\n\t\tvar ReadOnly = Disabled && (BeginDate != null && EndDate != null);\r\n\r\n\t\tvar maxDate = 8640000000000000;\r\n\t\tvar minDate = -8640000000000000;\r\n\t\tvar maximumForBeginDate = new Date(maxDate);\r\n\t\tvar minimumForEndDate = new Date(minDate);\r\n\r\n\t\tif (MaxDate != null && this.isValidDate(new Date(MaxDate ?? null))) {\r\n\t\t\tif (Model[\"EndDate\"] != null && this.isValidDate(new Date(Model[\"EndDate\"] ?? null)) && new Date(MaxDate) > new Date(Model[\"EndDate\"])) {\r\n\t\t\t\tmaximumForBeginDate = new Date(Model[\"EndDate\"]);\r\n\t\t\t} else {\r\n\t\t\t\tmaximumForBeginDate = new Date(MaxDate);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\r\n\t\tif (MinDate != null && this.isValidDate(new Date(MinDate ?? null))) {\r\n\t\t\tif (Model[\"BeginDate\"] != null && this.isValidDate(new Date(Model[\"BeginDate\"] ?? null)) && new Date(MinDate) < new Date(Model[\"BeginDate\"])) {\r\n\t\t\t\tminimumForEndDate = new Date(Model[\"BeginDate\"]);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tminimumForEndDate = new Date(MinDate);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{Model &&\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nGenericDateFilterInput.propTypes = {\r\n\tLabelText: PropTypes.string,\r\n\tName: PropTypes.string,\r\n\tModel: PropTypes.object.isRequired,\r\n\tValueChanged: PropTypes.func.isRequired,\r\n\tDisabled: PropTypes.bool,\r\n\tBeginDate: PropTypes.string,\r\n\tEndDate: PropTypes.string,\r\n\tUtc: PropTypes.bool\r\n};\r\n\r\nexport default GenericDateFilterInput;","import { withStyles } from \"@material-ui/core\";\r\nimport genericDateInputStyle from \"assets/jss/generic/genericDateInputStyle.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport moment from \"moment\";\r\nimport \"moment-timezone\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { PureComponent } from \"react\";\r\nimport Datetime from \"react-datetime\";\r\nimport { GenericLabel } from \"views/Components/Generic\";\r\n\r\nclass GenericDateInput extends PureComponent {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.timeFormat = \"hh:mm A\";\r\n\r\n\t\tthis.OnChange = this.OnChange.bind(this);\r\n\t\tthis.IsValidDate = this.IsValidDate.bind(this);\r\n\t}\r\n\r\n\tOnChange(e) {\r\n\t\tconst { Name, ValueChanged, IncludeTime } = this.props;\r\n\r\n\t\tif (ValueChanged) {\r\n\t\t\tvar returnValue = e;\r\n\r\n\t\t\tif (moment.isMoment(returnValue)) {\r\n\t\t\t\tif (IncludeTime)\r\n\t\t\t\t\treturnValue = DateHelper.ToMoment(returnValue);\r\n\t\t\t}\r\n\r\n\t\t\tValueChanged(Name, returnValue);\r\n\t\t}\r\n\t}\r\n\r\n\tIsValidDate(current) {\r\n\t\tconst { IsFuture, IsPast, IsValidDate, MinDate, MaxDate, Utc } = this.props;\r\n\r\n\t\tif (IsValidDate)\r\n\t\t\treturn IsValidDate(current);\r\n\r\n\t\tvar minDate = DateHelper.ToMoment(MinDate || \"\");\r\n\t\tvar maxDate = DateHelper.ToMoment(MaxDate || \"\");\r\n\r\n\t\tvar today = Utc ? DateHelper.GetLocalDateAsUtc() : DateHelper.GetDateLocal();\r\n\r\n\t\tif (IsFuture)\r\n\t\t\tminDate = today;\r\n\t\telse if (IsPast)\r\n\t\t\tmaxDate = today.add(-1, \"days\");\r\n\t\telse if (IsFuture == false)\r\n\t\t\tmaxDate = today;\r\n\r\n\t\tif (minDate.isValid() && maxDate.isValid())\r\n\t\t\treturn current.isSameOrBefore(maxDate) && current.isSameOrAfter(minDate);\r\n\t\telse if (minDate.isValid())\r\n\t\t\treturn current.isSameOrAfter(minDate);\r\n\t\telse if (maxDate.isValid())\r\n\t\t\treturn current.isSameOrBefore(maxDate);\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes, LabelText, Name, Value, DateFormat, IncludeTime, ViewMode, Disabled, LabelMd, Required, IsInvalid, Utc } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t{LabelMd != 0 && \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nGenericDateInput.defaultProps = {\r\n\tLabelMd: 4,\r\n\tDateFormat: \"DD/MMM/YY\",\r\n\tIncludeTime: false\r\n};\r\n\r\nGenericDateInput.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tInputData: PropTypes.object,\r\n\tValueChanged: PropTypes.func,\r\n\tValue: PropTypes.any,\r\n\tName: PropTypes.string,\r\n\tLabelText: PropTypes.string,\r\n\tDateFormat: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),\r\n\tIncludeTime: PropTypes.bool,\r\n\tViewMode: PropTypes.string,\r\n\tDisabled: PropTypes.bool,\r\n\tLabelMd: PropTypes.number,\r\n\tIsFuture: PropTypes.bool,\r\n\tIsPast: PropTypes.bool,\r\n\tIsValidDate: PropTypes.func,\r\n\tMinDate: PropTypes.object,\r\n\tMaxDate: PropTypes.object,\r\n\tRequired: PropTypes.bool,\r\n\tIsInvalid: PropTypes.bool,\r\n\tUtc: PropTypes.bool\r\n};\r\n\r\nexport default withStyles(genericDateInputStyle)(GenericDateInput);","import { InputAdornment, withStyles } from \"@material-ui/core\";\r\nimport genericTextInputStyle from \"assets/jss/generic/genericTextInputStyle.jsx\";\r\nimport CustomInput from \"components/CustomInput/CustomInput.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { PureComponent } from \"react\";\r\nimport GenericIcon from \"views/Components/Generic/GenericIcon.jsx\";\r\nimport StringHelper from \"core/StringHelper\";\r\n\r\nclass GenericEmailInput extends PureComponent {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\temailState: null,\r\n\t\t};\r\n\t}\r\n\r\n\trender() {\r\n\r\n\t\tconst { LabelText, Name, Value, ValueChanged, Disabled,\r\n\t\t\tBeginIconName, EndIconName, AutoFocus, KeyPressed, KeyUp,\r\n\t\t\tKeyDown, Blur, LabelMd, FloatRight, inputProps, Required, IsInvalid } = this.props;\r\n\r\n\t\tvar haveStartIcon = (BeginIconName || \"\") != \"\";\r\n\t\tvar haveEndIcon = (EndIconName || \"\") != \"\";\r\n\r\n\r\n\t\treturn (\r\n\t\t\t {\r\n\t\t\t\t\t\tconst { value } = e.target;\r\n\t\t\t\t\t\tvar isValid = StringHelper.VerifyEmail(value.trim());\r\n\t\t\t\t\t\tthis.setState({ emailState: (value.trim() == \"\" || isValid) ? \"\" : \"error\" });\r\n\t\t\t\t\t\tif (ValueChanged)\r\n\t\t\t\t\t\t\tValueChanged(Name, value.trim(), { IsValid: isValid });\r\n\t\t\t\t\t},\r\n\t\t\t\t\tdisabled: Disabled,\r\n\t\t\t\t\tstartAdornment: haveStartIcon ?\r\n\t\t\t\t\t\t{BeginIconName}\r\n\t\t\t\t\t\t: null\r\n\t\t\t\t\t,\r\n\t\t\t\t\tendAdornment: haveEndIcon ?\r\n\t\t\t\t\t\t{EndIconName}\r\n\t\t\t\t\t\t: null\r\n\t\t\t\t\t,\r\n\t\t\t\t\tautoFocus: AutoFocus,\r\n\t\t\t\t\tonKeyPress: KeyPressed,\r\n\t\t\t\t\tonKeyUp: KeyUp,\r\n\t\t\t\t\tonKeyDown: KeyDown,\r\n\t\t\t\t\tonBlur: (e) => {\r\n\t\t\t\t\t\tif (Blur) {\r\n\t\t\t\t\t\t\tBlur(e);\r\n\t\t\t\t\t\t}\t\r\n\t\t\t\t\t},\r\n\t\t\t\t}}\r\n\t\t\t/>\r\n\t\t);\r\n\t}\r\n}\r\n\r\nGenericEmailInput.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tValueChanged: PropTypes.func,\r\n\tValue: PropTypes.oneOfType([\r\n\t\tPropTypes.string,\r\n\t\tPropTypes.number\r\n\t]),\r\n\tLabelText: PropTypes.string,\r\n\tName: PropTypes.string,\r\n\tDisabled: PropTypes.bool,\r\n\tBeginIconName: PropTypes.string,\r\n\tEndIconName: PropTypes.string,\r\n\tAutoFocus: PropTypes.bool,\r\n\tKeyPressed: PropTypes.func,\r\n\tKeyDown: PropTypes.func,\r\n\tKeyUp: PropTypes.func,\r\n\tBlur: PropTypes.func,\r\n\tLabelMd: PropTypes.number,\r\n\tFloatRight: PropTypes.bool,\r\n\tinputProps: PropTypes.object,\r\n\tRequired: PropTypes.bool,\r\n\tIsInvalid: PropTypes.bool\r\n};\r\n\r\nGenericEmailInput.defaultProps = {\r\n\tEndIconName: \"email\"\r\n};\r\n\r\nexport default withStyles(genericTextInputStyle)(GenericEmailInput);","import { FormControl, InputLabel, withStyles } from \"@material-ui/core\";\r\nimport genericSelectInputStyle from \"assets/jss/generic/genericSelectInputStyle.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport ResourceHelper from \"core/ResourceHelper.js\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport Select from \"react-select\";\r\n\r\nconst groupStyles = {\r\n\tdisplay: \"flex\",\r\n\talignItems: \"center\",\r\n\tjustifyContent: \"space-between\",\r\n};\r\n\r\nclass GenericFilterSelectInput extends Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tData: [],\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\r\n\t\tthis.FetchDataCallback = this.FetchDataCallback.bind(this);\r\n\t\tthis.ErrorCallback = this.ErrorCallback.bind(this);\r\n\t\tthis.handleChange = this.handleChange.bind(this);\r\n\t}\r\n\r\n\tcomponentDidUpdate(prevProps) {\r\n\t\tconst { Url, Parameter } = this.props;\r\n\t\tif (JSON.stringify(Parameter) !== JSON.stringify(prevProps.Parameter)) {\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tProxy.POST(Url, Parameter, this.FetchDataCallback, this.ErrorCallback);\r\n\t\t}\r\n\t}\r\n\thandleChange(selectedOption) {\r\n\t\tconst { Name, KeyValueMember, ValueChanged, StaticData } = this.props;\r\n\t\tconst { Data } = this.state;\r\n\t\tconst data = StaticData || Data;\r\n\r\n\t\tthis.setState({ selectedOption: selectedOption });\r\n\t\tif (ValueChanged) {\r\n\t\t\tvar newValue = selectedOption != null ? selectedOption.value : null;\r\n\t\t\tValueChanged(Name, newValue, data.find(x => x[KeyValueMember] == newValue));\r\n\t\t}\r\n\t}\r\n\tFetchDataCallback(response) {\r\n\t\tconst { DataRoot } = this.props;\r\n\r\n\t\tthis.setState({ Data: response[DataRoot] || [], isLoading: false });\r\n\t}\r\n\r\n\tErrorCallback(error) {\r\n\t\tconsole.log(error);\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tMap(data) {\r\n\t\tif (data == null || data.length == 0)\r\n\t\t\treturn;\r\n\r\n\t\tconst { KeyValueMember, TextValueMember, RenderItem, All, MultiLanguage } = this.props;\r\n\r\n\t\tvar returnData = data.map(d => {\r\n\t\t\tvar label = d[TextValueMember];\r\n\t\t\tif (RenderItem)\r\n\t\t\t\tlabel = RenderItem(d);\r\n\t\t\telse if (MultiLanguage)\r\n\t\t\t\tlabel = ResourceHelper.Get(label);\r\n\r\n\t\t\treturn { value: d[KeyValueMember], label: label };\r\n\t\t});\r\n\t\tif (All == true) {\r\n\t\t\treturnData.unshift({ value: -1, label: \"All\" });\r\n\t\t}\r\n\t\treturn returnData;\r\n\t}\r\n\r\n\tGetStyles() {\r\n\t\tconst { Required, IsInvalid } = this.props;\r\n\r\n\t\tvar borderColor = \"#e9eaec\";\r\n\t\tif (IsInvalid) {\r\n\t\t\tborderColor = window.InvalidFieldColor;\r\n\t\t}\r\n\t\telse if (Required) {\r\n\t\t\tborderColor = window.RequiredFieldColor;\r\n\t\t}\r\n\r\n\t\treturn {\r\n\t\t\tcontrol: (base) => (\r\n\t\t\t\t{\r\n\t\t\t\t\t...base,\r\n\t\t\t\t\theight: \"25px\",\r\n\t\t\t\t\tminHeight: \"25px\",\r\n\t\t\t\t\tfontSize: \"12px\",\r\n\t\t\t\t\tborder: `1px solid ${borderColor}`,\r\n\t\t\t\t\tborderRadius: \"unset\",\r\n\t\t\t\t\t\"&:active\": {\r\n\t\t\t\t\t\tborder: `1px solid ${borderColor} !important`,\r\n\t\t\t\t\t\tboxShadow: \"unset !important\"\r\n\t\t\t\t\t},\r\n\t\t\t\t\tfontWeight: \"400\"\r\n\t\t\t\t}),\r\n\t\t\tvalueContainer: (base) => (\r\n\t\t\t\t{\r\n\t\t\t\t\t...base,\r\n\t\t\t\t\theight: \"25px\",\r\n\t\t\t\t\tminHeight: \"25px\",\r\n\t\t\t\t\tfontSize: \"12px\",\r\n\t\t\t\t\tfontWeight: \"400\",\r\n\t\t\t\t\t\"&:active\": {\r\n\t\t\t\t\t\tbackground: \"unset\",\r\n\t\t\t\t\t\tborder: `1px solid ${borderColor} !important`,\r\n\t\t\t\t\t\tboxShadow: \"unset !important\",\r\n\t\t\t\t\t\tpadding: \"unset\"\r\n\t\t\t\t\t},\r\n\t\t\t\t\tpadding: \"unset\"\r\n\t\t\t\t}),\r\n\t\t\tindicatorsContainer: (base) => (\r\n\t\t\t\t{\r\n\t\t\t\t\t...base,\r\n\t\t\t\t\theight: \"25px\",\r\n\t\t\t\t\tminHeight: \"25px\",\r\n\t\t\t\t\tfontSize: \"12px\",\r\n\t\t\t\t\tfontWeight: \"400\",\r\n\t\t\t\t\t\"&:active\": {\r\n\t\t\t\t\t\tborder: `1px solid ${borderColor} !important`,\r\n\t\t\t\t\t\tboxShadow: \"unset !important\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}),\r\n\t\t\toption: (base) => (\r\n\t\t\t\t{\r\n\t\t\t\t\t...base,\r\n\t\t\t\t\tfontSize: \"12px\",\r\n\t\t\t\t\tfontWeight: \"400\",\r\n\t\t\t\t\t\"&:active\": {\r\n\t\t\t\t\t\tborder: `1px solid ${borderColor} !important`,\r\n\t\t\t\t\t\tboxShadow: \"unset !important\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}),\r\n\t\t\tcontainer: (base) => ({\r\n\t\t\t\t...base\r\n\t\t\t}),\r\n\t\t};\r\n\t}\r\n\r\n\trender() {\r\n\r\n\t\tconst { classes, LabelText, Name, Value, KeyValueMember, TextValueMember, Disabled,\r\n\t\t\tStaticData, LabelMd, TitleLabel, LabelStyle, SelectStyle, RenderItem, CanClear } = this.props;\r\n\t\tconst { Data } = this.state;\r\n\t\tconst data = StaticData || Data;\r\n\r\n\t\tvar tempSelectedOption = {};\r\n\t\tif (Value != null) {\r\n\t\t\tif (Value == -1) {\r\n\t\t\t\ttempSelectedOption.value = -1;\r\n\t\t\t\ttempSelectedOption.label = \"All\";\r\n\t\t\t} else {\r\n\t\t\t\tif (data.find(x => x[KeyValueMember] == Value) == undefined) {\r\n\t\t\t\t\ttempSelectedOption.value = -2;\r\n\t\t\t\t\ttempSelectedOption.label = (TitleLabel == null || TitleLabel == \"\") ? \"Select One\" : TitleLabel;\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttempSelectedOption.value = Value;\r\n\t\t\t\t\ttempSelectedOption.label = RenderItem ? RenderItem(data.find(x => x[KeyValueMember] == Value)) : data.find(x => x[KeyValueMember] == Value)[TextValueMember];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tvar lastData = this.Map(StaticData || Data);\r\n\t\tconst formatGroupLabel = () => (\r\n\t\t\t
\r\n\t\t\t\t{TitleLabel == null || undefined || \"\" ? LabelText : TitleLabel}\r\n\t\t\t
\r\n\t\t);\r\n\r\n\t\tconst groupedOptions = [\r\n\t\t\t{\r\n\t\t\t\tlabel: (TitleLabel == null || TitleLabel == \"\") ? LabelText : TitleLabel,\r\n\t\t\t\toptions: this.Map(StaticData || Data),\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t{LabelText != undefined && LabelText != \"\" &&\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{LabelText}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t 0 ? groupedOptions : lastData}\r\n\t\t\t\t\t\t\t\tisClearable={CanClear}\r\n\t\t\t\t\t\t\t\ttheme={(theme) => ({\r\n\t\t\t\t\t\t\t\t\t...theme,\r\n\t\t\t\t\t\t\t\t\tborderRadius: 0,\r\n\t\t\t\t\t\t\t\t\tcolors: {\r\n\t\t\t\t\t\t\t\t\t\t...theme.colors,\r\n\t\t\t\t\t\t\t\t\t\tprimary25: \"rgb(246, 246, 246)\",\r\n\t\t\t\t\t\t\t\t\t\tprimary: \"black\",\r\n\t\t\t\t\t\t\t\t\t\tprimary50: \"rgb(246, 246, 246)\",\r\n\t\t\t\t\t\t\t\t\t\tprimary75: \"rgb(246, 246, 246)\"\r\n\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nGenericFilterSelectInput.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tValueChanged: PropTypes.any,\r\n\tValue: PropTypes.any,\r\n\tName: PropTypes.string,\r\n\tLabelText: PropTypes.string,\r\n\tKeyValueMember: PropTypes.string,\r\n\tTextValueMember: PropTypes.string,\r\n\tUrl: PropTypes.string,\r\n\tParameter: PropTypes.object,\r\n\tDataRoot: PropTypes.string,\r\n\tDisabled: PropTypes.bool,\r\n\tRenderItem: PropTypes.func,\r\n\tAll: PropTypes.bool,\r\n\tLabelMd: PropTypes.number,\r\n\tTitleLabel: PropTypes.string,\r\n\tLabelStyle: PropTypes.object,\r\n\tSelectStyle: PropTypes.object,\r\n\tRequired: PropTypes.bool,\r\n\tIsInvalid: PropTypes.bool,\r\n\tCanClear: PropTypes.bool\r\n};\r\n\r\nGenericFilterSelectInput.defaultProps = {\r\n\tLabelMd: 4,\r\n\tCanClear: true\r\n};\r\n\r\nexport default withStyles(genericSelectInputStyle)(GenericFilterSelectInput);","import { FormControlLabel, Radio, withStyles } from \"@material-ui/core\";\r\nimport FiberManualRecord from \"@material-ui/icons/FiberManualRecord\";\r\nimport genericRadioInputStyle from \"assets/jss/generic/genericRadioInputStyle.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport classNames from \"classnames\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport InputLabel from \"@material-ui/core/InputLabel\";\r\nimport FormControl from \"@material-ui/core/FormControl\";\r\n\r\n\r\nclass GenericRadioInput extends Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tData: [],\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\r\n\t\tthis.FetchDataCallback = this.FetchDataCallback.bind(this);\r\n\t\tthis.ErrorCallback = this.ErrorCallback.bind(this);\r\n\t}\r\n\r\n\t\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { Method, Url, Parameter, IsStatic, StaticData } = this.props;\r\n\r\n\t\tif (IsStatic) {\r\n\t\t\tthis.setState({ Data: StaticData });\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tif (Method == \"GET\") {\r\n\t\t\tProxy.GET(Url, this.FetchDataCallback, this.ErrorCallback);\r\n\t\t}\r\n\t\telse if (Method == \"POST\") {\r\n\t\t\tProxy.POST(Url, Parameter, this.FetchDataCallback, this.ErrorCallback);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.ErrorCallback(\"Method is invalid.\");\r\n\t\t}\r\n\t}\r\n\r\n\tFetchDataCallback(response) {\r\n\t\tconst { DataRoot } = this.props;\r\n\r\n\t\tthis.setState({ Data: response[DataRoot], isLoading: false });\r\n\t}\r\n\r\n\tErrorCallback(error) {\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\trender() {\r\n\r\n\t\tconst { classes, LabelText, Name, Value, ValueChanged, KeyValueMember, TextValueMember, Disabled, IsFormControl, id, LabelMd, LabelStyle, success, error, labelProps } = this.props;\r\n\t\tconst { Data } = this.state;\r\n\t\tconst labelClasses = classNames({\r\n\t\t\t[\" \" + classes.labelRootError]: error,\r\n\t\t\t[\" \" + classes.labelRootSuccess]: success && !error\r\n\t\t});\r\n\r\n\t\tconst DataMap = Data.map(d => {\r\n\t\t\treturn (\r\n\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tcheckedIcon={\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tclasses={{ checked: classes.radio }}\r\n\t\t\t\t\t\t\tonChange={e => {\r\n\t\t\t\t\t\t\t\tif (ValueChanged)\r\n\t\t\t\t\t\t\t\t\tValueChanged(Name, e.target.value, d);\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\tdisabled={Disabled}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t}\r\n\t\t\t\t\tclasses={{\r\n\t\t\t\t\t\tlabel: classes.radioLabel\r\n\t\t\t\t\t}}\r\n\t\t\t\t\tlabel={d[TextValueMember]}\r\n\t\t\t\t/>\r\n\t\t\t);\r\n\t\t});\r\n\t\tconst CaseWhenNotFormControl = (\r\n\t\t
\r\n\t\t\t\r\n\t\t\t
\r\n\t\t\t{DataMap}\r\n\t\t
);\r\n\t\tconst CaseWhenFormControl = (\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t{LabelText != undefined && LabelText != \"\" &&\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{LabelText !== undefined ? (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{LabelText}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t) : null}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{DataMap}\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\r\n\t\t
\r\n\r\n\t\t);\r\n\t\treturn IsFormControl ? CaseWhenFormControl:\tCaseWhenNotFormControl ;\r\n\t\t\t\r\n\t}\r\n}\r\n\r\nGenericRadioInput.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tValueChanged: PropTypes.func,\r\n\tValue: PropTypes.any,\r\n\tName: PropTypes.string,\r\n\tLabelText: PropTypes.string,\r\n\tKeyValueMember: PropTypes.string,\r\n\tTextValueMember: PropTypes.string,\r\n\tMethod: PropTypes.string,\r\n\tUrl: PropTypes.string,\r\n\tParameter: PropTypes.object,\r\n\tDataRoot: PropTypes.string,\r\n\tIsStatic: PropTypes.bool,\r\n\tStaticData: PropTypes.array,\r\n\tDisabled: PropTypes.bool,\r\n\tIsFormControl: PropTypes.bool,\r\n\tLabelMd: PropTypes.number,\r\n\tLabelStyle: PropTypes.object,\r\n\tformControlProps: PropTypes.object,\r\n\tlabelProps: PropTypes.object,\r\n};\r\n\r\nexport default withStyles(genericRadioInputStyle)(GenericRadioInput);","import Dashboard from \"layouts/Dashboard.jsx\";\r\nimport ExternalPage from \"layouts/ExternalPage.jsx\";\r\nimport HeartBeat from \"layouts/HeartBeat.jsx\";\r\nimport Pages from \"layouts/Pages.jsx\";\r\n\r\n//Layouts\r\nvar indexRoutes = [\r\n\t{ path: \"/heartbeat\", name: \"HeartBeat\", component: HeartBeat, private: false },\r\n\t{ path: \"/out\", name: \"OutPage\", component: ExternalPage, private: false },\r\n\t{ path: \"/InteracConfirm\", name: \"InteracConfirm\", component: ExternalPage, private: false },\r\n\t{ path: \"/VisaDirect\", name: \"VisaDirect\", component: ExternalPage, private: false },\r\n\t{ path: \"/VirtualCard\", name: \"VirtualCard\", component: ExternalPage, private: false },\r\n\t{ path: \"/acc\", name: \"Pages\", component: Pages, private: false },\r\n\t{ path: \"/\", name: \"Home\", component: Dashboard, private: true }\r\n];\r\n\r\nexport default indexRoutes;","import Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport { GenericAlert, GenericCheckInput, GenericNumberInput, GenericSelectInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nclass LoanDetails extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\r\n\t\tthis.parameterPaymentOptionFee = {\r\n\t\t\tParameterCode: \"LOSPayOption\"\r\n\t\t};\r\n\r\n\t\tthis.parameterYesNo = {\r\n\t\t\tParameterCode: \"LOSYesNo\"\r\n\t\t};\r\n\r\n\t\tthis.parameterLoanPurpose = {\r\n\t\t\tParameterCode: \"LOSLoanPurpose\"\r\n\t\t};\r\n\r\n\t\tthis.parameterLOSPaymentFrequency = {\r\n\t\t\tParameterCode: \"LOSPaymentSchedule\"\r\n\t\t};\r\n\r\n\t\tthis.parameterLOSRateOption = {\r\n\t\t\tParameterCode: \"LOSRateOption\"\r\n\t\t};\r\n\r\n\t\tthis.SendAgreement = this.SendAgreement.bind(this);\r\n\t\tthis.onBlurevent = this.onBlurevent.bind(this);\r\n\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\t// type:-success->warning->info->error\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\tSendAgreementDocuSign = () => {\r\n\r\n\t\tconst applicationModel = this.props.model;\r\n\r\n\t\tthis.props.TaskPoolFunc.AppendTask(\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/losapi/v1.0/EmbeddedSigning/SignNowEmbeddedSinging\",\r\n\t\t\t\t{\r\n\t\t\t\t\tApplicationId: applicationModel.Id,\r\n\t\t\t\t\tUniqueClientId: applicationModel.UniqueClientId,\r\n\t\t\t\t\tApplicantId: applicationModel.ApplicantId\r\n\t\t\t\t},\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\t// this.DocuSingAccesToken();\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Agreement Template Has Been Successfully Sent\");\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t));\r\n\t}\r\n\tSendAgreement = () => {\r\n\r\n\t\tconst applicationModel = this.props.model;\r\n\t\tthis.props.TaskPoolFunc.AppendTask(\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/lmsapi/v1.0/PaymentAdmin/SendAgreement\",\r\n\t\t\t\t{\r\n\t\t\t\t\tId: applicationModel.Id\r\n\t\t\t\t},\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Agreement Template Sent\");\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t));\r\n\t}\r\n\tonBlurevent = (e) => {\r\n\t\tthis.props.HandleChange(\"ApprovedPaymentPeriod\", e.target.defaultValue);\r\n\t}\r\n\trender() {\r\n\t\tconst { model, Disabled, isApprovedPeriodDisabled, vModel } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t{this.state.alert}\r\n\r\n\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t prm.ParameterCode == this.parameterLoanPurpose.ParameterCode)}\r\n\t\t\t\t\t\t\t\t\t\t// Url=\"/coreapi/v1.0/Parameter/Search\"\r\n\t\t\t\t\t\t\t\t\t\t// Parameter={this.parameterLoanPurpose}\r\n\t\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"Id\"\r\n\t\t\t\t\t\t\t\t\t\tTextValueMember=\"ParameterDesc\"\r\n\t\t\t\t\t\t\t\t\t\tValue={model.LoanPurposeId}\r\n\t\t\t\t\t\t\t\t\t\tValueChanged={this.props.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\tDisabled={true}\r\n\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.LoanPurposeId} />\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t prm.ParameterCode == this.parameterLOSPaymentFrequency.ParameterCode)}\r\n\t\t\t\t\t\t\t\t\t\t// Url=\"/coreapi/v1.0/Parameter/Search\"\r\n\t\t\t\t\t\t\t\t\t\t// Parameter={this.parameterLOSPaymentFrequency}\r\n\t\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"Id\"\r\n\t\t\t\t\t\t\t\t\t\tTextValueMember=\"ParameterDesc\"\r\n\t\t\t\t\t\t\t\t\t\tValue={model.RequestedPaymentFrequencyId}\r\n\t\t\t\t\t\t\t\t\t\tValueChanged={this.props.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\tDisabled={true} />\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t prm.ParameterCode == this.parameterLOSRateOption.ParameterCode)}\r\n\t\t\t\t\t\t\t\t\t\t// Url=\"/coreapi/v1.0/Parameter/Search\"\r\n\t\t\t\t\t\t\t\t\t\t// Parameter={this.parameterLOSRateOption}\r\n\t\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"Id\"\r\n\t\t\t\t\t\t\t\t\t\tTextValueMember=\"ParameterDesc\"\r\n\t\t\t\t\t\t\t\t\t\tValue={model.RateOptionId}\r\n\t\t\t\t\t\t\t\t\t\tValueChanged={this.props.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\tDisabled={true} />\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{/* \r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t */}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t prm.ParameterCode == this.parameterLOSPaymentFrequency.ParameterCode)}\r\n\t\t\t\t\t\t\t\t\t\t// Url=\"/coreapi/v1.0/Parameter/Search\"\r\n\t\t\t\t\t\t\t\t\t\t// Parameter={this.parameterLOSPaymentFrequency}\r\n\t\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"Id\"\r\n\t\t\t\t\t\t\t\t\t\tTextValueMember=\"ParameterDesc\"\r\n\t\t\t\t\t\t\t\t\t\tValue={model.ApprovedPaymentFrequencyId}\r\n\t\t\t\t\t\t\t\t\t\tValueChanged={this.props.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\tDisabled={Disabled}\r\n\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.ApprovedPaymentFrequencyId} />\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t prm.ParameterCode == this.parameterPaymentOptionFee.ParameterCode)}\r\n\t\t\t\t\t\t\t\t\t\t// Url=\"/coreapi/v1.0/Parameter/Search\"\r\n\t\t\t\t\t\t\t\t\t\t// Parameter={this.parameterPaymentOptionFee}\r\n\t\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\t\tLabelMd={5}\r\n\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"Id\"\r\n\t\t\t\t\t\t\t\t\t\tTextValueMember=\"ParameterDesc\"\r\n\t\t\t\t\t\t\t\t\t\tValue={model.PaymentOptionFeeId}\r\n\t\t\t\t\t\t\t\t\t\tValueChanged={this.props.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\tDisabled={Disabled}\r\n\t\t\t\t\t\t\t\t\t\tDefaultIndex={-1}\r\n\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.PaymentOptionFeeId} />\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t prm.ParameterCode == this.parameterYesNo.ParameterCode)}\r\n\t\t\t\t\t\t\t\t\t\t// Url=\"/coreapi/v1.0/Parameter/Search\"\r\n\t\t\t\t\t\t\t\t\t\t// Parameter={this.parameterYesNo}\r\n\t\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\t\tLabelMd={5}\r\n\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"Id\"\r\n\t\t\t\t\t\t\t\t\t\tTextValueMember=\"ParameterDesc\"\r\n\t\t\t\t\t\t\t\t\t\tValue={model.SavingsPlanId}\r\n\t\t\t\t\t\t\t\t\t\tValueChanged={this.props.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\tDisabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{this.props.LoanApprovalFeeList == null ? \"\" : this.props.LoanApprovalFeeList.map((setupFee, key) => {\r\n\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{this.props.isUserAdmin && }\r\n\t\t\t\t\t\t\t\t\t\t{this.props.isApproved == true ?\r\n\t\t\t\t\t\t\t\t\t\t\t : \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n\r\n}\r\n\r\nLoanDetails.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tmodel: PropTypes.object,\r\n\ttempModel: PropTypes.object,\r\n\taddressModel: PropTypes.object,\r\n\tHandleChange: PropTypes.func,\r\n\tLedgerCardDialog: PropTypes.func,\r\n\tLoanCalculatorDialog: PropTypes.func,\r\n\tLoanApprovalFeeList: PropTypes.array,\r\n\tDisabled: PropTypes.bool,\r\n\tisApproved: PropTypes.bool,\r\n\tisApprovedPeriodDisabled: PropTypes.bool,\r\n\tTaskPoolFunc: PropTypes.func,\r\n\tParameterList: PropTypes.array,\r\n\tFeeProfileList: PropTypes.array,\r\n\tisUserAdmin: PropTypes.bool,\r\n};\r\n\r\nexport default withArtifex(LoanDetails, {});","import Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport { GenericAlert, GenericCheckInput, GenericNumberInput, GenericSelectInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nclass LocDetails extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\r\n\t\tthis.parameterPaymentOptionFee = {\r\n\t\t\tParameterCode: \"LOSPayOption\"\r\n\t\t};\r\n\r\n\t\tthis.parameterLOSPaymentFrequency = {\r\n\t\t\tParameterCode: \"LOSPaymentSchedule\"\r\n\t\t};\r\n\r\n\t\tthis.parameterLOSPaymentMethod = {\r\n\t\t\tParameterCode: \"LOSPaymentMethod\"\r\n\t\t};\r\n\t\tthis.parameterYesNo = {\r\n\t\t\tParameterCode: \"LOSYesNo\"\r\n\t\t};\r\n\t\tthis.SendAgreement = this.SendAgreement.bind(this);\r\n\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\t// type:-success->warning->info->error\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\tSendAgreementDocuSign = () => {\r\n\t\tconst applicationModel = this.props.model;\r\n\r\n\t\tthis.props.TaskPoolFunc.AppendTask(\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/losapi/v1.0/EmbeddedSigning/SignNowEmbeddedSinging\",\r\n\t\t\t\t{\r\n\t\t\t\t\tApplicationId: applicationModel.Id,\r\n\t\t\t\t\tUniqueClientId: applicationModel.UniqueClientId,\r\n\t\t\t\t\tApplicantId: applicationModel.ApplicantId\r\n\t\t\t\t},\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\t// this.DocuSingAccesToken();\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Agreement Template Has Been Successfully Sent\");\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t));\r\n\r\n\t}\r\n\r\n\tSendAgreement() {\r\n\t\tconst applicationModel = this.props.model;\r\n\t\tthis.props.TaskPoolFunc.AppendTask(\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/lmsapi/v1.0/PaymentAdmin/SendAgreement\",\r\n\t\t\t\t{\r\n\t\t\t\t\tId: applicationModel.Id\r\n\t\t\t\t},\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Agreement Template Sent\");\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t));\r\n\t}\r\n\trender() {\r\n\t\tconst { model, Disabled, vModel } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t{this.state.alert}\r\n\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t prm.ParameterCode == this.parameterLOSPaymentFrequency.ParameterCode)}\r\n\t\t\t\t\t\t\t\t\t\t// Url=\"/coreapi/v1.0/Parameter/Search\"\r\n\t\t\t\t\t\t\t\t\t\t// Parameter={this.parameterLOSPaymentFrequency}\r\n\t\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"Id\"\r\n\t\t\t\t\t\t\t\t\t\tTextValueMember=\"ParameterDesc\"\r\n\t\t\t\t\t\t\t\t\t\tValue={model.RequestedPaymentFrequencyId}\r\n\t\t\t\t\t\t\t\t\t\tValueChanged={this.props.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\tDisabled={true} />\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{/* \r\n\t\t\t\t\t\t\t\t\t prm.ParameterCode == this.parameterLOSPaymentMethod.ParameterCode)}\r\n\t\t\t\t\t\t\t\t\t\t// Url=\"/coreapi/v1.0/Parameter/Search\"\r\n\t\t\t\t\t\t\t\t\t\t// Parameter={this.parameterLOSPaymentMethod}\r\n\t\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"Id\"\r\n\t\t\t\t\t\t\t\t\t\tTextValueMember=\"ParameterDesc\"\r\n\t\t\t\t\t\t\t\t\t\tValue={model.RequestedPaymentMethodId}\r\n\t\t\t\t\t\t\t\t\t\tValueChanged={this.props.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\tDisabled={Disabled} />\r\n\t\t\t\t\t\t\t\t */}\r\n\t\t\t\t\t\t\t\t{/* \r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t */}\r\n\t\t\t\t\t\t\t\t{/* \r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t */}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t prm.ParameterCode == this.parameterLOSPaymentFrequency.ParameterCode)}\r\n\t\t\t\t\t\t\t\t\t\t// Url=\"/coreapi/v1.0/Parameter/Search\"\r\n\t\t\t\t\t\t\t\t\t\t// Parameter={this.parameterLOSPaymentFrequency}\r\n\t\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"Id\"\r\n\t\t\t\t\t\t\t\t\t\tTextValueMember=\"ParameterDesc\"\r\n\t\t\t\t\t\t\t\t\t\tValue={model.ApprovedPaymentFrequencyId}\r\n\t\t\t\t\t\t\t\t\t\tValueChanged={this.props.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\tDisabled={Disabled}\r\n\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.ApprovedPaymentFrequencyId} />\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t prm.ParameterCode == this.parameterLOSPaymentMethod.ParameterCode)}\r\n\t\t\t\t\t\t\t\t\t\t// Url=\"/coreapi/v1.0/Parameter/Search\"\r\n\t\t\t\t\t\t\t\t\t\t// Parameter={this.parameterLOSPaymentMethod}\r\n\t\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"Id\"\r\n\t\t\t\t\t\t\t\t\t\tTextValueMember=\"ParameterDesc\"\r\n\t\t\t\t\t\t\t\t\t\tValue={model.ApprovedPaymentMethodId}\r\n\t\t\t\t\t\t\t\t\t\tValueChanged={this.props.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\tDisabled={Disabled}\r\n\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.ApprovedPaymentMethodId} />\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{/* \r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t */}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t prm.ParameterCode == this.parameterPaymentOptionFee.ParameterCode)}\r\n\t\t\t\t\t\t\t\t\t\t// Url=\"/coreapi/v1.0/Parameter/Search\"\r\n\t\t\t\t\t\t\t\t\t\t// Parameter={this.parameterPaymentOptionFee}\r\n\t\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\t\tLabelMd={5}\r\n\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"Id\"\r\n\t\t\t\t\t\t\t\t\t\tTextValueMember=\"ParameterDesc\"\r\n\t\t\t\t\t\t\t\t\t\tValue={model.PaymentOptionFeeId}\r\n\t\t\t\t\t\t\t\t\t\tValueChanged={this.props.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\tDisabled={Disabled}\r\n\t\t\t\t\t\t\t\t\t\tDefaultIndex={0}\r\n\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.PaymentOptionFeeId} />\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t prm.ParameterCode == this.parameterYesNo.ParameterCode)}\r\n\t\t\t\t\t\t\t\t\t\t// Url=\"/coreapi/v1.0/Parameter/Search\"\r\n\t\t\t\t\t\t\t\t\t\t// Parameter={this.parameterYesNo}\r\n\t\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\t\tLabelMd={5}\r\n\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"Id\"\r\n\t\t\t\t\t\t\t\t\t\tTextValueMember=\"ParameterDesc\"\r\n\t\t\t\t\t\t\t\t\t\tValue={model.SavingsPlanId}\r\n\t\t\t\t\t\t\t\t\t\tValueChanged={this.props.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\tDisabled={Disabled} />\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{this.props.LoanApprovalFeeList == null ? \"\" : this.props.LoanApprovalFeeList.map((setupFee, key) => {\r\n\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{this.props.isUserAdmin && }\r\n\t\t\t\t\t\t\t\t\t\t{this.props.isApproved == true ?\r\n\t\t\t\t\t\t\t\t\t\t\t : \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n\r\n}\r\n\r\nLocDetails.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tmodel: PropTypes.object,\r\n\ttempModel: PropTypes.object,\r\n\taddressModel: PropTypes.object,\r\n\tHandleChange: PropTypes.func,\r\n\tLedgerCardDialog: PropTypes.func,\r\n\tLoanCalculatorDialog: PropTypes.func,\r\n\tLoanApprovalFeeList: PropTypes.array,\r\n\tDisabled: PropTypes.bool,\r\n\tisApproved: PropTypes.bool,\r\n\tisApprovedPeriodDisabled: PropTypes.bool,\r\n\tTaskPoolFunc: PropTypes.func,\r\n\tParameterList: PropTypes.array,\r\n\tFeeProfileList: PropTypes.array,\r\n\tisUserAdmin: PropTypes.bool,\r\n};\r\n\r\nexport default withArtifex(LocDetails, {});","import GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport {\r\n GenericAlert,\r\n GenericCheckInput,\r\n GenericNumberInput,\r\n GenericSelectInput,\r\n GenericTitle,\r\n} from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\n\r\nclass SecureCardDetails extends Component {\r\n constructor(props) {\r\n super(props);\r\n\r\n this.initialModel = {\r\n UniqueClientId: ClientHelper.IsClient()\r\n ? ClientHelper.GetClientRowId()\r\n : undefined\r\n };\r\n\r\n this.state = {\r\n\t\tId: 0,\r\n model: { ...this.initialModel },\r\n\t\tvModel: {},\r\n isLoading: false,\r\n };\r\n\r\n this.parameterProduct = {};\r\n\r\n this.parameterYesNo = {\r\n ParameterCode: \"LOSYesNo\",\r\n };\r\n\r\n this.parameterLOSPaymentFrequency = {\r\n ParameterCode: \"LOSPaymentSchedule\",\r\n };\r\n\r\n this.parameterLOSPaymentMethod = {\r\n ParameterCode: \"LOSPaymentMethod\",\r\n };\r\n this.SendAgreement = this.SendAgreement.bind(this);\r\n }\r\n\r\n componentDidMount() {}\r\n\r\n ShowMessageNode = (type, title, message) => {\r\n this.setState({\r\n alert: (\r\n this.hideAlert()}\r\n />\r\n ),\r\n });\r\n this.setState({ isLoading: false });\r\n };\r\n\r\n hideAlert = () => {\r\n this.setState({\r\n alert: null,\r\n isLoading: false,\r\n });\r\n };\r\n ShowMessage = (type, title, message) => {\r\n // type:-success->warning->info->error\r\n this.setState({\r\n alert: (\r\n this.hideAlert()}\r\n />\r\n ),\r\n });\r\n this.setState({ isLoading: false });\r\n };\r\n\r\n SendAgreementDocuSign = () => {\r\n const applicationModel = this.props.model;\r\n\r\n this.props.TaskPoolFunc.AppendTask(\r\n Proxy.POST(\r\n \"/losapi/v1.0/EmbeddedSigning/SignNowEmbeddedSinging\",\r\n {\r\n ApplicationId: applicationModel.Id,\r\n UniqueClientId: applicationModel.UniqueClientId,\r\n ApplicantId: applicationModel.ApplicantId,\r\n },\r\n (responseData) => {\r\n if (!responseData.IsSucceeded) {\r\n // this.DocuSingAccesToken();\r\n this.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n return;\r\n }\r\n this.ShowMessage(\r\n \"success\",\r\n \"Success\",\r\n \"Agreement Template Has Been Successfully Sent\"\r\n );\r\n },\r\n (error) => {\r\n this.ShowMessage(\"error\", \"Error\", error);\r\n }\r\n )\r\n );\r\n };\r\n\r\n SendAgreement() {\r\n const applicationModel = this.props.model;\r\n this.props.TaskPoolFunc.AppendTask(\r\n Proxy.POST(\r\n \"/lmsapi/v1.0/PaymentAdmin/SendAgreement\",\r\n {\r\n Id: applicationModel.Id,\r\n },\r\n (responseData) => {\r\n if (!responseData.IsSucceeded) {\r\n this.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n return;\r\n }\r\n this.ShowMessage(\"success\", \"Success\", \"Agreement Template Sent\");\r\n },\r\n (error) => {\r\n this.ShowMessage(\"error\", \"Error\", error);\r\n }\r\n )\r\n );\r\n }\r\n\r\n GetProductParameter = () => {\r\n this.parameterProduct.UniqueClientId = this.state.model.UniqueClientId;\r\n this.parameterProduct.IsNoNameProduct = false;\r\n return this.parameterProduct;\r\n };\r\n\r\n RenderItemProduct = (d) => {\r\n this.renderItemProduct = d.Name;\r\n if (d.UniqueClient)\r\n this.renderItemProduct += ` - (${d.UniqueClient.UniqueClientId} - ${d.UniqueClient.ClientName})`;\r\n return this.renderItemProduct;\r\n };\r\n\r\n HandleChange = (name, newValue, data) => {\r\n const model = { ...this.state.model };\r\n if (name === \"Customer\") {\r\n if (newValue) {\r\n model.ClientCustomerId = newValue.Id;\r\n model.CustomerNumber = newValue.CustomerNumber;\r\n } else {\r\n delete model.ClientCustomerId;\r\n delete model.CustomerNumber;\r\n }\r\n }\r\n if (name === \"UniqueClientId\") {\r\n delete model.ClientCustomerId;\r\n delete model.CustomerNumber;\r\n }\r\n if (name === \"HasCardUsageLimit\" && !newValue) {\r\n delete model.CardUsagePeriodId;\r\n delete model.CardUsageLimit;\r\n }\r\n model[name] = newValue;\r\n this.setState({ model });\r\n };\r\n\r\n render() {\r\n const { model, Disabled, isApprovedPeriodDisabled, vModel } = this.props;\r\n return (\r\n
\r\n \r\n {this.state.alert}\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\t\t\t\t \r\n\t\t\t\t \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n prm.ParameterCode ==\r\n this.parameterLOSPaymentFrequency.ParameterCode\r\n )}\r\n // Url=\"/coreapi/v1.0/Parameter/Search\"\r\n // Parameter={this.parameterLOSPaymentFrequency}\r\n DataRoot=\"Item\"\r\n KeyValueMember=\"Id\"\r\n TextValueMember=\"ParameterDesc\"\r\n Value={model.RequestedPaymentFrequencyId}\r\n ValueChanged={this.props.HandleChange}\r\n Disabled={true}\r\n />\r\n \r\n\t\t\t\t\r\n\t\t\t\t \r\n \r\n \r\n\t\t\t\t\r\n \r\n \r\n \r\n \r\n \r\n\t\t\t\t\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {!isApprovedPeriodDisabled && (\r\n \r\n )}\r\n \r\n\t\t\t\t\r\n \r\n prm.ParameterCode ==\r\n this.parameterLOSPaymentFrequency.ParameterCode\r\n )}\r\n // Url=\"/coreapi/v1.0/Parameter/Search\"\r\n // Parameter={this.parameterLOSPaymentFrequency}\r\n DataRoot=\"Item\"\r\n KeyValueMember=\"Id\"\r\n TextValueMember=\"ParameterDesc\"\r\n Value={model.ApprovedPaymentFrequencyId}\r\n ValueChanged={this.props.HandleChange}\r\n Disabled={Disabled}\r\n Required\r\n IsInvalid={vModel.ApprovedPaymentFrequencyId}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n\t\t\t\t\r\n \r\n prm.ParameterCode ==\r\n this.parameterLOSPaymentMethod.ParameterCode\r\n )}\r\n // Url=\"/coreapi/v1.0/Parameter/Search\"\r\n // Parameter={this.parameterLOSPaymentMethod}\r\n DataRoot=\"Item\"\r\n KeyValueMember=\"Id\"\r\n TextValueMember=\"ParameterDesc\"\r\n Value={model.ApprovedPaymentMethodId}\r\n ValueChanged={this.props.HandleChange}\r\n Disabled={Disabled}\r\n Required\r\n IsInvalid={vModel.ApprovedPaymentMethodId}\r\n />\r\n \r\n \r\n {model.Applicant.IsCardActive && isApprovedPeriodDisabled && (\r\n \r\n {this.props.isUserAdmin && (\r\n \r\n \r\n Update\r\n \r\n \r\n )}\r\n \r\n \r\n Adjust Limit\r\n \r\n \r\n \r\n )}\r\n \r\n \r\n \r\n \r\n\t\t\t\t\r\n \r\n \r\n \r\n {model.Applicant.IsCardActive && !isApprovedPeriodDisabled && (\r\n \r\n {this.props.isUserAdmin && (\r\n \r\n \r\n Update\r\n \r\n \r\n )}\r\n \r\n \r\n Adjust Limit\r\n \r\n \r\n \r\n )}\r\n \r\n \r\n\t\t\t \r\n\t\t\t \r\n\t\t\t \r\n {!isApprovedPeriodDisabled && (\r\n \r\n )}\r\n \r\n\t\t\t\t\r\n\t\t\t \r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\nSecureCardDetails.propTypes = {\r\n classes: PropTypes.object.isRequired,\r\n model: PropTypes.object,\r\n tempModel: PropTypes.object,\r\n addressModel: PropTypes.object,\r\n HandleChange: PropTypes.func,\r\n LoanApprovalFeeList: PropTypes.array,\r\n Disabled: PropTypes.bool,\r\n isApproved: PropTypes.bool,\r\n isApprovedPeriodDisabled: PropTypes.bool,\r\n ParameterList: PropTypes.array,\r\n FeeProfileList: PropTypes.array,\r\n isUserAdmin: PropTypes.bool,\r\n};\r\n\r\nexport default withArtifex(SecureCardDetails, {});\r\n","import ErrorPage from \"error/ErrorPage\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\n\r\nclass ErrorBoundary extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\thasError: false,\r\n\t\t\terror: {},\r\n\t\t\tinfo: {}\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidCatch(error, info) {\r\n\t\tthis.setState({ hasError: true, error, info });\r\n\t\tconsole.error(\"error: \" + error.message);\r\n\t\tconsole.error(\"errorInfo: \" + info.componentStack);\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { hasError, error, info } = this.state;\r\n\t\tconst { location, children } = this.props;\r\n\r\n\t\tif (hasError) {\r\n\t\t\t// You can render any custom fallback UI\r\n\t\t\treturn ;\r\n\t\t}\r\n\t\treturn children;\r\n\t}\r\n}\r\n\r\nErrorBoundary.propTypes = {\r\n\tchildren: PropTypes.node,\r\n\tlocation: PropTypes.object\r\n};\r\n\r\nexport default ErrorBoundary;","import { createStyles } from \"@material-ui/core\";\r\nimport { blackColor, dangerColor, grayColor, infoColor, primaryColor, roseColor, successColor, warningColor } from \"assets/jss/material-dashboard-pro-react.jsx\";\r\n\r\nconst buttonStyle = createStyles({\r\n\tbutton: {\r\n\t\tminHeight: \"auto\",\r\n\t\tminWidth: \"auto\",\r\n\t\tbackgroundColor: grayColor,\r\n\t\tcolor: \"#FFFFFF\",\r\n\t\tboxShadow:\r\n\t\t\t\"0 2px 2px 0 rgba(153, 153, 153, 0.14), 0 3px 1px -2px rgba(153, 153, 153, 0.2), 0 1px 5px 0 rgba(153, 153, 153, 0.12)\",\r\n\t\tborder: \"none\",\r\n\t\tborderRadius: \"3px\",\r\n\t\tposition: \"relative\",\r\n\t\tpadding: \"12px 30px\",\r\n\t\tmargin: \".3125rem 1px\",\r\n\t\tfontSize: \"12px\",\r\n\t\tfontWeight: 400,\r\n\t\ttextTransform: \"uppercase\",\r\n\t\tletterSpacing: \"0\",\r\n\t\twillChange: \"box-shadow, transform\",\r\n\t\ttransition:\r\n\t\t\t\"box-shadow 0.2s cubic-bezier(0.4, 0, 1, 1), background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1)\",\r\n\t\tlineHeight: \"1.42857143\",\r\n\t\ttextAlign: \"center\",\r\n\t\twhiteSpace: \"nowrap\",\r\n\t\tverticalAlign: \"middle\",\r\n\t\ttouchAction: \"manipulation\",\r\n\t\tcursor: \"pointer\",\r\n\t\t\"&:hover,&:focus\": {\r\n\t\t\tcolor: \"#FFFFFF\",\r\n\t\t\tbackgroundColor: grayColor,\r\n\t\t\tboxShadow:\r\n\t\t\t\t\"0 14px 26px -12px rgba(153, 153, 153, 0.42), 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(153, 153, 153, 0.2)\"\r\n\t\t},\r\n\t\t\"& .fab,& .fas,& .far,& .fal,& .material-icons\": {\r\n\t\t\tposition: \"relative\",\r\n\t\t\tdisplay: \"inline-block\",\r\n\t\t\ttop: \"0\",\r\n\t\t\tmarginTop: \"-1em\",\r\n\t\t\tmarginBottom: \"-1em\",\r\n\t\t\tfontSize: \"1.1rem\",\r\n\t\t\tmarginRight: \"4px\",\r\n\t\t\tverticalAlign: \"middle\"\r\n\t\t},\r\n\t\t\"& svg\": {\r\n\t\t\tposition: \"relative\",\r\n\t\t\tdisplay: \"inline-block\",\r\n\t\t\ttop: \"0\",\r\n\t\t\twidth: \"18px\",\r\n\t\t\theight: \"18px\",\r\n\t\t\tmarginRight: \"4px\",\r\n\t\t\tverticalAlign: \"middle\"\r\n\t\t},\r\n\t\t\"&$justIcon\": {\r\n\t\t\t\"& .fab,& .fas,& .far,& .fal,& .material-icons\": {\r\n\t\t\t\tmarginTop: \"0px\",\r\n\t\t\t\tposition: \"absolute\",\r\n\t\t\t\twidth: \"100%\",\r\n\t\t\t\ttransform: \"none\",\r\n\t\t\t\tleft: \"0px\",\r\n\t\t\t\ttop: \"0px\",\r\n\t\t\t\theight: \"100%\",\r\n\t\t\t\tlineHeight: \"41px\",\r\n\t\t\t\tfontSize: \"20px\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\tfullWidth: {\r\n\t\twidth: \"100%\"\r\n\t},\r\n\tprimary: {\r\n\t\tbackgroundColor: primaryColor,\r\n\t\tboxShadow:\r\n\t\t\t\"0 2px 2px 0 rgba(156, 39, 176, 0.14), 0 3px 1px -2px rgba(156, 39, 176, 0.2), 0 1px 5px 0 rgba(156, 39, 176, 0.12)\",\r\n\t\t\"&:hover,&:focus\": {\r\n\t\t\tbackgroundColor: primaryColor,\r\n\t\t\tboxShadow:\r\n\t\t\t\t\"0 14px 26px -12px rgba(156, 39, 176, 0.42), 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(156, 39, 176, 0.2)\"\r\n\t\t}\r\n\t},\r\n\tinfo: {\r\n\t\tbackgroundColor: infoColor,\r\n\t\tboxShadow:\r\n\t\t\t\"0 2px 2px 0 rgba(0, 188, 212, 0.14), 0 3px 1px -2px rgba(0, 188, 212, 0.2), 0 1px 5px 0 rgba(0, 188, 212, 0.12)\",\r\n\t\t\"&:hover,&:focus\": {\r\n\t\t\tbackgroundColor: infoColor,\r\n\t\t\tboxShadow:\r\n\t\t\t\t\"0 14px 26px -12px rgba(0, 188, 212, 0.42), 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 188, 212, 0.2)\"\r\n\t\t}\r\n\t},\r\n\tsuccess: {\r\n\t\tbackgroundColor: successColor,\r\n\t\tboxShadow:\r\n\t\t\t\"0 2px 2px 0 rgba(76, 175, 80, 0.14), 0 3px 1px -2px rgba(76, 175, 80, 0.2), 0 1px 5px 0 rgba(76, 175, 80, 0.12)\",\r\n\t\t\"&:hover,&:focus\": {\r\n\t\t\tbackgroundColor: successColor,\r\n\t\t\tboxShadow:\r\n\t\t\t\t\"0 14px 26px -12px rgba(76, 175, 80, 0.42), 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(76, 175, 80, 0.2)\"\r\n\t\t}\r\n\t},\r\n\twarning: {\r\n\t\tbackgroundColor: warningColor,\r\n\t\tboxShadow:\r\n\t\t\t\"0 2px 2px 0 rgba(255, 152, 0, 0.14), 0 3px 1px -2px rgba(255, 152, 0, 0.2), 0 1px 5px 0 rgba(255, 152, 0, 0.12)\",\r\n\t\t\"&:hover,&:focus\": {\r\n\t\t\tbackgroundColor: warningColor,\r\n\t\t\tboxShadow:\r\n\t\t\t\t\"0 14px 26px -12px rgba(255, 152, 0, 0.42), 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(255, 152, 0, 0.2)\"\r\n\t\t}\r\n\t},\r\n\tdanger: {\r\n\t\tbackgroundColor: dangerColor,\r\n\t\tboxShadow:\r\n\t\t\t\"0 2px 2px 0 rgba(244, 67, 54, 0.14), 0 3px 1px -2px rgba(244, 67, 54, 0.2), 0 1px 5px 0 rgba(244, 67, 54, 0.12)\",\r\n\t\t\"&:hover,&:focus\": {\r\n\t\t\tbackgroundColor: dangerColor,\r\n\t\t\tboxShadow:\r\n\t\t\t\t\"0 14px 26px -12px rgba(244, 67, 54, 0.42), 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(244, 67, 54, 0.2)\"\r\n\t\t}\r\n\t},\r\n\trose: {\r\n\t\tbackgroundColor: roseColor,\r\n\t\tboxShadow:\r\n\t\t\t\"0 2px 2px 0 rgba(233, 30, 99, 0.14), 0 3px 1px -2px rgba(233, 30, 99, 0.2), 0 1px 5px 0 rgba(233, 30, 99, 0.12)\",\r\n\t\t\"&:hover,&:focus\": {\r\n\t\t\tbackgroundColor: roseColor,\r\n\t\t\tboxShadow:\r\n\t\t\t\t\"0 14px 26px -12px rgba(233, 30, 99, 0.42), 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(233, 30, 99, 0.2)\"\r\n\t\t}\r\n\t},\r\n\twhite: {\r\n\t\t\"&,&:focus,&:hover\": {\r\n\t\t\tbackgroundColor: \"#FFFFFF\",\r\n\t\t\tcolor: grayColor\r\n\t\t}\r\n\t},\r\n\tblack: {\r\n\t\t\"&,&:focus,&:hover\": {\r\n\t\t\tbackgroundColor: \"#000000\"\r\n\t\t}\r\n\t},\r\n\ttwitter: {\r\n\t\tbackgroundColor: \"#55acee\",\r\n\t\tcolor: \"#fff\",\r\n\t\tboxShadow:\r\n\t\t\t\"0 2px 2px 0 rgba(85, 172, 238, 0.14), 0 3px 1px -2px rgba(85, 172, 238, 0.2), 0 1px 5px 0 rgba(85, 172, 238, 0.12)\",\r\n\t\t\"&:hover,&:focus,&:visited\": {\r\n\t\t\tbackgroundColor: \"#55acee\",\r\n\t\t\tcolor: \"#fff\",\r\n\t\t\tboxShadow:\r\n\t\t\t\t\"0 14px 26px -12px rgba(85, 172, 238, 0.42), 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(85, 172, 238, 0.2)\"\r\n\t\t}\r\n\t},\r\n\tfacebook: {\r\n\t\tbackgroundColor: \"#3b5998\",\r\n\t\tcolor: \"#fff\",\r\n\t\tboxShadow:\r\n\t\t\t\"0 2px 2px 0 rgba(59, 89, 152, 0.14), 0 3px 1px -2px rgba(59, 89, 152, 0.2), 0 1px 5px 0 rgba(59, 89, 152, 0.12)\",\r\n\t\t\"&:hover,&:focus\": {\r\n\t\t\tbackgroundColor: \"#3b5998\",\r\n\t\t\tcolor: \"#fff\",\r\n\t\t\tboxShadow:\r\n\t\t\t\t\"0 14px 26px -12px rgba(59, 89, 152, 0.42), 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(59, 89, 152, 0.2)\"\r\n\t\t}\r\n\t},\r\n\tgoogle: {\r\n\t\tbackgroundColor: \"#dd4b39\",\r\n\t\tcolor: \"#fff\",\r\n\t\tboxShadow:\r\n\t\t\t\"0 2px 2px 0 rgba(221, 75, 57, 0.14), 0 3px 1px -2px rgba(221, 75, 57, 0.2), 0 1px 5px 0 rgba(221, 75, 57, 0.12)\",\r\n\t\t\"&:hover,&:focus\": {\r\n\t\t\tbackgroundColor: \"#dd4b39\",\r\n\t\t\tcolor: \"#fff\",\r\n\t\t\tboxShadow:\r\n\t\t\t\t\"0 14px 26px -12px rgba(221, 75, 57, 0.42), 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(221, 75, 57, 0.2)\"\r\n\t\t}\r\n\t},\r\n\tlinkedin: {\r\n\t\tbackgroundColor: \"#0976b4\",\r\n\t\tcolor: \"#fff\",\r\n\t\tboxShadow:\r\n\t\t\t\"0 2px 2px 0 rgba(9, 118, 180, 0.14), 0 3px 1px -2px rgba(9, 118, 180, 0.2), 0 1px 5px 0 rgba(9, 118, 180, 0.12)\",\r\n\t\t\"&:hover,&:focus\": {\r\n\t\t\tbackgroundColor: \"#0976b4\",\r\n\t\t\tcolor: \"#fff\",\r\n\t\t\tboxShadow:\r\n\t\t\t\t\"0 14px 26px -12px rgba(9, 118, 180, 0.42), 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(9, 118, 180, 0.2)\"\r\n\t\t}\r\n\t},\r\n\tpinterest: {\r\n\t\tbackgroundColor: \"#cc2127\",\r\n\t\tcolor: \"#fff\",\r\n\t\tboxShadow:\r\n\t\t\t\"0 2px 2px 0 rgba(204, 33, 39, 0.14), 0 3px 1px -2px rgba(204, 33, 39, 0.2), 0 1px 5px 0 rgba(204, 33, 39, 0.12)\",\r\n\t\t\"&:hover,&:focus\": {\r\n\t\t\tbackgroundColor: \"#cc2127\",\r\n\t\t\tcolor: \"#fff\",\r\n\t\t\tboxShadow:\r\n\t\t\t\t\"0 14px 26px -12px rgba(204, 33, 39, 0.42), 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(204, 33, 39, 0.2)\"\r\n\t\t}\r\n\t},\r\n\tyoutube: {\r\n\t\tbackgroundColor: \"#e52d27\",\r\n\t\tcolor: \"#fff\",\r\n\t\tboxShadow:\r\n\t\t\t\"0 2px 2px 0 rgba(229, 45, 39, 0.14), 0 3px 1px -2px rgba(229, 45, 39, 0.2), 0 1px 5px 0 rgba(229, 45, 39, 0.12)\",\r\n\t\t\"&:hover,&:focus\": {\r\n\t\t\tbackgroundColor: \"#e52d27\",\r\n\t\t\tcolor: \"#fff\",\r\n\t\t\tboxShadow:\r\n\t\t\t\t\"0 14px 26px -12px rgba(229, 45, 39, 0.42), 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(229, 45, 39, 0.2)\"\r\n\t\t}\r\n\t},\r\n\ttumblr: {\r\n\t\tbackgroundColor: \"#35465c\",\r\n\t\tcolor: \"#fff\",\r\n\t\tboxShadow:\r\n\t\t\t\"0 2px 2px 0 rgba(53, 70, 92, 0.14), 0 3px 1px -2px rgba(53, 70, 92, 0.2), 0 1px 5px 0 rgba(53, 70, 92, 0.12)\",\r\n\t\t\"&:hover,&:focus\": {\r\n\t\t\tbackgroundColor: \"#35465c\",\r\n\t\t\tcolor: \"#fff\",\r\n\t\t\tboxShadow:\r\n\t\t\t\t\"0 14px 26px -12px rgba(53, 70, 92, 0.42), 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(53, 70, 92, 0.2)\"\r\n\t\t}\r\n\t},\r\n\tgithub: {\r\n\t\tbackgroundColor: \"#333333\",\r\n\t\tcolor: \"#fff\",\r\n\t\tboxShadow:\r\n\t\t\t\"0 2px 2px 0 rgba(51, 51, 51, 0.14), 0 3px 1px -2px rgba(51, 51, 51, 0.2), 0 1px 5px 0 rgba(51, 51, 51, 0.12)\",\r\n\t\t\"&:hover,&:focus\": {\r\n\t\t\tbackgroundColor: \"#333333\",\r\n\t\t\tcolor: \"#fff\",\r\n\t\t\tboxShadow:\r\n\t\t\t\t\"0 14px 26px -12px rgba(51, 51, 51, 0.42), 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(51, 51, 51, 0.2)\"\r\n\t\t}\r\n\t},\r\n\tbehance: {\r\n\t\tbackgroundColor: \"#1769ff\",\r\n\t\tcolor: \"#fff\",\r\n\t\tboxShadow:\r\n\t\t\t\"0 2px 2px 0 rgba(23, 105, 255, 0.14), 0 3px 1px -2px rgba(23, 105, 255, 0.2), 0 1px 5px 0 rgba(23, 105, 255, 0.12)\",\r\n\t\t\"&:hover,&:focus\": {\r\n\t\t\tbackgroundColor: \"#1769ff\",\r\n\t\t\tcolor: \"#fff\",\r\n\t\t\tboxShadow:\r\n\t\t\t\t\"0 14px 26px -12px rgba(23, 105, 255, 0.42), 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(23, 105, 255, 0.2)\"\r\n\t\t}\r\n\t},\r\n\tdribbble: {\r\n\t\tbackgroundColor: \"#ea4c89\",\r\n\t\tcolor: \"#fff\",\r\n\t\tboxShadow:\r\n\t\t\t\"0 2px 2px 0 rgba(234, 76, 137, 0.14), 0 3px 1px -2px rgba(234, 76, 137, 0.2), 0 1px 5px 0 rgba(234, 76, 137, 0.12)\",\r\n\t\t\"&:hover,&:focus\": {\r\n\t\t\tbackgroundColor: \"#ea4c89\",\r\n\t\t\tcolor: \"#fff\",\r\n\t\t\tboxShadow:\r\n\t\t\t\t\"0 14px 26px -12px rgba(234, 76, 137, 0.42), 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(234, 76, 137, 0.2)\"\r\n\t\t}\r\n\t},\r\n\treddit: {\r\n\t\tbackgroundColor: \"#ff4500\",\r\n\t\tcolor: \" #fff\",\r\n\t\tboxShadow:\r\n\t\t\t\"0 2px 2px 0 rgba(255, 69, 0, 0.14), 0 3px 1px -2px rgba(255, 69, 0, 0.2), 0 1px 5px 0 rgba(255, 69, 0, 0.12)\",\r\n\t\t\"&:hover,&:focus\": {\r\n\t\t\tbackgroundColor: \"#ff4500\",\r\n\t\t\tcolor: \" #fff\",\r\n\t\t\tboxShadow:\r\n\t\t\t\t\"0 14px 26px -12px rgba(255, 69, 0, 0.42), 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(255, 69, 0, 0.2)\"\r\n\t\t}\r\n\t},\r\n\tsimple: {\r\n\t\tmarginTop: '-10px',\r\n\t\t\"&,&:focus,&:hover\": {\r\n\t\t\tcolor: \"#FFFFFF\",\r\n\t\t\tbackground: \"transparent\",\r\n\t\t\tboxShadow: \"none\"\r\n\t\t},\r\n\t\t\"&$black\": {\r\n\t\t\t\"&,&:focus,&:hover,&:visited\": {\r\n\t\t\t\tcolor: blackColor\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"&$primary\": {\r\n\t\t\t\"&,&:focus,&:hover,&:visited\": {\r\n\t\t\t\tcolor: primaryColor\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"&$info\": {\r\n\t\t\t\"&,&:focus,&:hover,&:visited\": {\r\n\t\t\t\tcolor: infoColor\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"&$success\": {\r\n\t\t\t\"&,&:focus,&:hover,&:visited\": {\r\n\t\t\t\tcolor: successColor\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"&$warning\": {\r\n\t\t\t\"&,&:focus,&:hover,&:visited\": {\r\n\t\t\t\tcolor: warningColor\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"&$rose\": {\r\n\t\t\t\"&,&:focus,&:hover,&:visited\": {\r\n\t\t\t\tcolor: roseColor\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"&$danger\": {\r\n\t\t\t\"&,&:focus,&:hover,&:visited\": {\r\n\t\t\t\tcolor: dangerColor\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"&$twitter\": {\r\n\t\t\t\"&,&:focus,&:hover,&:visited\": {\r\n\t\t\t\tcolor: \"#55acee\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"&$facebook\": {\r\n\t\t\t\"&,&:focus,&:hover,&:visited\": {\r\n\t\t\t\tcolor: \"#3b5998\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"&$google\": {\r\n\t\t\t\"&,&:focus,&:hover,&:visited\": {\r\n\t\t\t\tcolor: \"#dd4b39\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"&$linkedin\": {\r\n\t\t\t\"&,&:focus,&:hover,&:visited\": {\r\n\t\t\t\tcolor: \"#0976b4\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"&$pinterest\": {\r\n\t\t\t\"&,&:focus,&:hover,&:visited\": {\r\n\t\t\t\tcolor: \"#cc2127\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"&$youtube\": {\r\n\t\t\t\"&,&:focus,&:hover,&:visited\": {\r\n\t\t\t\tcolor: \"#e52d27\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"&$tumblr\": {\r\n\t\t\t\"&,&:focus,&:hover,&:visited\": {\r\n\t\t\t\tcolor: \"#35465c\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"&$github\": {\r\n\t\t\t\"&,&:focus,&:hover,&:visited\": {\r\n\t\t\t\tcolor: \"#333333\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"&$behance\": {\r\n\t\t\t\"&,&:focus,&:hover,&:visited\": {\r\n\t\t\t\tcolor: \"#1769ff\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"&$dribbble\": {\r\n\t\t\t\"&,&:focus,&:hover,&:visited\": {\r\n\t\t\t\tcolor: \"#ea4c89\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"&$reddit\": {\r\n\t\t\t\"&,&:focus,&:hover,&:visited\": {\r\n\t\t\t\tcolor: \"#ff4500\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\ttransparent: {\r\n\t\t\"&,&:focus,&:hover\": {\r\n\t\t\tcolor: \"inherit\",\r\n\t\t\tbackground: \"transparent\",\r\n\t\t\tboxShadow: \"none\"\r\n\t\t}\r\n\t},\r\n\tdisabled: {\r\n\t\topacity: 0.65,\r\n\t\tpointerEvents: \"none\"\r\n\t},\r\n\tlg: {\r\n\t\tpadding: \"1.125rem 2.25rem\",\r\n\t\tfontSize: \"0.875rem\",\r\n\t\tlineHeight: \"1.333333\",\r\n\t\tborderRadius: \"0.2rem\"\r\n\t},\r\n\tsm: {\r\n\t\tpadding: \"0.40625rem 1.25rem\",\r\n\t\tfontSize: \"0.6875rem\",\r\n\t\tlineHeight: \"0.8\",\r\n\t\tborderRadius: \"0.2rem\"\r\n\t},\r\n\tround: {\r\n\t\tborderRadius: \"30px\"\r\n\t},\r\n\tblock: {\r\n\t\twidth: \"100% !important\"\r\n\t},\r\n\tlink: {\r\n\t\t\"&,&:hover,&:focus\": {\r\n\t\t\tbackgroundColor: \"transparent\",\r\n\t\t\tcolor: \"#999999\",\r\n\t\t\tboxShadow: \"none\"\r\n\t\t}\r\n\t},\r\n\tjustIcon: {\r\n\t\tpaddingLeft: \"12px\",\r\n\t\tpaddingRight: \"12px\",\r\n\t\tfontSize: \"20px\",\r\n\t\theight: \"41px\",\r\n\t\tminWidth: \"41px\",\r\n\t\twidth: \"41px\",\r\n\t\t\"& .fab,& .fas,& .far,& .fal,& svg,& .material-icons\": {\r\n\t\t\tmarginRight: \"0px\"\r\n\t\t},\r\n\t\t\"&$lg\": {\r\n\t\t\theight: \"57px\",\r\n\t\t\tminWidth: \"57px\",\r\n\t\t\twidth: \"57px\",\r\n\t\t\tlineHeight: \"56px\",\r\n\t\t\t\"& .fab,& .fas,& .far,& .fal,& .material-icons\": {\r\n\t\t\t\tfontSize: \"32px\",\r\n\t\t\t\tlineHeight: \"56px\"\r\n\t\t\t},\r\n\t\t\t\"& svg\": {\r\n\t\t\t\twidth: \"32px\",\r\n\t\t\t\theight: \"32px\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"&$sm\": {\r\n\t\t\theight: \"20px\",\r\n\t\t\tminWidth: \"20px\",\r\n\t\t\twidth: \"20px\",\r\n\t\t\t\"& .fab,& .fas,& .far,& .fal,& .material-icons\": {\r\n\t\t\t\tfontSize: \"12px\",\r\n\t\t\t\tlineHeight: \"22px\"\r\n\t\t\t},\r\n\t\t\t\"& svg\": {\r\n\t\t\t\t// width: \"12px !important\",\r\n\t\t\t\t// height: \"12px !important\"\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\n\r\nexport default buttonStyle;\r\n","const genericTextInputStyle = {\r\n\tbutton: {\r\n\t\tcursor: \"pointer\",\r\n\t\t\"&:hover\": {\r\n\t\t\tbackground: \"rgba(0, 0, 0, 0.15)\"\r\n\t\t},\r\n\t\tborderRadius: \"50%\"\r\n\t},\r\n\t// tooltip: {\r\n\t// \tbackground: \"#fff\",\r\n\t// \tcolor: \"white\",\r\n\t// \t// zIndex: 3\r\n\t// }\r\n\r\n\r\n};\r\n\r\nexport default genericTextInputStyle;","import { primaryColor } from \"assets/jss/material-dashboard-pro-react.jsx\";\r\n\r\nconst genericExpansionPanelStyle = theme => ({\r\n\troot: {\r\n\t\tflexGrow: 1\r\n\t},\r\n\texpansionPanel: {\r\n\t\tboxShadow: \"none\",\r\n\t\t\"&:before\": {\r\n\t\t\tdisplay: \"none !important\"\r\n\t\t}\r\n\t},\r\n\texpansionPanelExpanded: {\r\n\t\tmargin: \"0\"\r\n\t},\r\n\texpansionPanelSummary: {\r\n\t\tminHeight: \"auto !important\",\r\n\t\tbackgroundColor: \"transparent\",\r\n\t\tpadding: \"10px 0px 10px 5px\",\r\n\t\tborderTopLeftRadius: \"3px\",\r\n\t\tborderTopRightRadius: \"3px\",\r\n\t\tcolor: \"#3C4858\",\r\n\t\t\"&:hover\": {\r\n\t\t\tcolor: primaryColor\r\n\t\t}\r\n\t},\r\n\texpansionPanelSummaryExpaned: {\r\n\t\tcolor: primaryColor,\r\n\t\t\"& $expansionPanelSummaryExpandIcon\": {\r\n\t\t\t[theme.breakpoints.up(\"md\")]: {\r\n\t\t\t\ttop: \"auto !important\"\r\n\t\t\t},\r\n\t\t\ttransform: \"rotate(180deg)\",\r\n\t\t\t[theme.breakpoints.down(\"sm\")]: {\r\n\t\t\t\ttop: \"10px !important\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\texpansionPanelSummaryContent: {\r\n\t\tmargin: \"0 !important\"\r\n\t},\r\n\texpansionPanelSummaryExpandIcon: {\r\n\t\t[theme.breakpoints.up(\"md\")]: {\r\n\t\t\ttop: \"auto !important\"\r\n\t\t},\r\n\t\ttransform: \"rotate(0deg)\",\r\n\t\tcolor: \"#000\",\r\n\t\t[theme.breakpoints.down(\"sm\")]: {\r\n\t\t\ttop: \"10px !important\"\r\n\t\t}\r\n\t},\r\n\texpansionPanelSummaryExpandIconExpanded: {},\r\n\ttitle: {\r\n\t\tfontSize: \"15px\",\r\n\t\tfontWeight: \"bolder\",\r\n\t\tmarginTop: \"0\",\r\n\t\tmarginBottom: \"0\",\r\n\t\tcolor: \"inherit\"\r\n\t},\r\n\texpansionPanelDetails: {\r\n\t\tpadding: \"5px 0px 5px\"\r\n\t}\r\n});\r\n\r\nexport default genericExpansionPanelStyle;\r\n","import {\r\n\tprimaryColor\r\n} from \"assets/jss/material-dashboard-pro-react.jsx\";\r\n\r\n\r\nconst genericSelectInputStyle = {\r\n\troot: {\r\n\t\tborder: '1px solid #e9eaec',\r\n\t\t\"&:before\": {\r\n\t\t\tborder: 'unset !important'\r\n\t\t},\r\n\t\t\"&:after\": {\r\n\t\t\ttransition: 'unset',\r\n\t\t\theight: 22,\r\n\t\t\tborder: '1px solid gray !important',\r\n\t\t}\r\n\t},\r\n\tselectFormControl: {\r\n\t\tdisplay: 'block',\r\n\t\tmarginBottom : \"1px !important\",\r\n\t\tmargintop : \"1px !important\",\r\n\t\tpaddingRight :\"2px !important\",\r\n\t\t\"& > div\": {\r\n\t\t\t\"&:before\": {\r\n\t\t\t\tborderBottomWidth: \"1px !important\",\r\n\t\t\t\tborderBottomColor: \"#D2D2D2 !important\"\r\n\t\t\t},\r\n\t\t\tmarginTop: \"4.2px\",\r\n\t\t\tfontSize: \"0.6rem\",\r\n\t\t\t\"&:after\": {\r\n\t\t\t\tborderBottomColor: primaryColor + \"!important\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\tselectLabel: {\r\n\t\tfontSize: \"12px\",\r\n\t\tposition: \"static\",\r\n\t\tcolor: \"#000 !important\",\r\n\t\tmarginRight: 5\r\n\r\n\t},\r\n\tselectLabelBold: {\r\n\t\tfontSize: \"12px\",\r\n\t\tposition: \"static\",\r\n\t\tcolor: \"#000 !important\",\r\n\t\tmarginRight: 5,\r\n\t\tfontWeight : \"bold !important\"\r\n\r\n\t},\r\n\tmenuItem: {\r\n\t\tfontSize: \"12px\",\r\n\t\tpaddingTop: \"3px\",\r\n\t\tpaddingBottom: \"3px\",\r\n\t}\r\n};\r\n\r\nexport default genericSelectInputStyle;\r\n","const genericNumberInputStyle = {\r\n\tbutton: {\r\n\t\tcursor: \"pointer\",\r\n\t\t\"&:hover\": {\r\n\t\t\tbackground: \"rgba(0, 0, 0, 0.15)\"\r\n\t\t},\r\n\t\tborderRadius: \"50%\"\r\n\t}\r\n};\r\n\r\nexport default genericNumberInputStyle;","import { cardBoxShadow, drawerWidth } from \"assets/jss/material-dashboard-pro-react.jsx\";\r\n\r\nconst isLeftMenu = window.MenuBar === \"left\";\r\n\r\nconst common = {\r\n\tbackgroundColor: \"white\",\r\n\theight: 37,\r\n\tzIndex: 3\r\n};\r\n\r\nconst buttonToolbarStyle = theme => ({\r\n\tmain: {\r\n\t\t...cardBoxShadow,\r\n\t\tbackgroundColor: \"#e4e4e4\",\r\n\t\tfontWeight: 700,\r\n\t\ttextTransform: \"uppercase\",\r\n\t\tborderRadius: \"6px\",\r\n\t\tmarginTop: \"8px\",\r\n\t\tmarginBottom: \"5px\",\r\n\t\tmarginRight: \"2px\",\r\n\t\tzIndex: 2\r\n\t},\r\n\tnormal: {\r\n\t\t...common,\r\n\t\tleft: 23,\r\n\t\tright: 41\r\n\t},\r\n\tfixed: {\r\n\t\t...common,\r\n\t\tposition: \"fixed\",\r\n\t\twidth: `calc(100% - ${drawerWidth + 95}px - ${isLeftMenu ? \"30vh\" : \"0px\"})`,\r\n\t\t[theme.breakpoints.down(\"md\")]: {\r\n\t\t\tposition: \"absolute\",\r\n\t\t\twidth: \"1340px\"\r\n\t\t}\r\n\t},\r\n\tpaddingBottom: {\r\n\t\tpaddingBottom: 40,\r\n\t\tpaddingTop: isLeftMenu ? 10 : 0\r\n\t}\r\n});\r\n\r\nexport default buttonToolbarStyle;","import { primaryColor } from \"assets/jss/material-dashboard-pro-react.jsx\";\r\n\r\nconst tabComponentStyle = theme => ({\r\n\troot: {\r\n\t\tmarginTop: \"5px\",\r\n\t\tpaddingLeft: \"0\",\r\n\t\tmarginBottom: \"0\",\r\n\t\toverflow: \"visible !important\",\r\n\t\tminHeight: \"24px\"\r\n\t},\r\n\tflexContainer: {\r\n\t\t[theme.breakpoints.down(\"xs\")]: {\r\n\t\t\tdisplay: \"flex\",\r\n\t\t\tflexWrap: \"wrap\"\r\n\t\t},\r\n\t\tmarginBottom: \"5px\"\r\n\t},\r\n\tdisplayNone: {\r\n\t\tdisplay: \"none !important\"\r\n\t},\r\n\tfixed: {\r\n\t\toverflowX: \"auto\"\r\n\t},\r\n\tpills: {\r\n\t\tfloat: \"left\",\r\n\t\tposition: \"relative\",\r\n\t\tdisplay: \"block\",\r\n\t\tborderRadius: \"6px\",\r\n\t\tminWidth: \"100px\",\r\n\t\ttextAlign: \"center\",\r\n\t\ttransition: \"all .3s\",\r\n\t\t// padding: \"10px 15px\",\r\n\t\tcolor: \"#555555\",\r\n\t\t//height: \"32px\",\r\n\t\tminHeight: \"24px\",\r\n\t\topacity: \"1\",\r\n\t\tmaxWidth: \"100%\",\r\n\t\tmargin: \"0 2px\",\r\n\t\tbackgroundColor: \"#e4e4e4\"\r\n\t},\r\n\tpillsWithIcons: {\r\n\t\tborderRadius: \"4px\"\r\n\t},\r\n\ttabIcon: {\r\n\t\twidth: \"30px\",\r\n\t\theight: \"30px\",\r\n\t\tdisplay: \"block\",\r\n\t\tmargin: \"15px 0\"\r\n\t},\r\n\tlabelContainer: {\r\n\t\tpadding: \"0!important\",\r\n\t\tcolor: \"inherit\"\r\n\t},\r\n\tlabel: {\r\n\t\tlineHeight: \"24px\",\r\n\t\ttextTransform: \"uppercase\",\r\n\t\tfontSize: \"12px\",\r\n\t\tfontWeight: \"500\",\r\n\t\tposition: \"relative\",\r\n\t\tdisplay: \"block\",\r\n\t\tcolor: \"inherit\",\r\n\t\tpaddingLeft: \"4px\",\r\n\t\tpaddingRight: \"4px\"\r\n\t},\r\n\tcontentWrapper: {\r\n\t\tmarginTop: \"5px\",\r\n\t\tborder: \"1px #e4e4e4 solid\",\r\n\t\tpadding: \"3px\",\r\n\t\tborderRadius: \"6px\",\r\n\t\tpaddingLeft: \"6px\",\r\n\t\tpaddingRight: \"6px\"\r\n\t},\r\n\tprimary: {\r\n\t\t\"&,&:hover\": {\r\n\t\t\tcolor: \"#FFFFFF\",\r\n\t\t\tbackgroundColor: primaryColor,\r\n\t\t\tboxShadow:\r\n\t\t\t\t\"0 4px 20px 0px rgba(0, 0, 0, 0.14), 0 7px 10px -5px rgba(156, 39, 176, 0.4)\"\r\n\t\t}\r\n\t},\r\n\talignCenter: {\r\n\t\talignItems: \"center\",\r\n\t\tjustifyContent: \"center\"\r\n\t}\r\n});\r\n\r\nexport default tabComponentStyle; ","// ##############################\r\n// // // Button Group styles\r\n// #############################\r\n\r\nconst buttonGroupStyle = {\r\n buttonGroup: {\r\n position: \"relative\",\r\n margin: \"10px 1px\",\r\n display: \"inline-block\",\r\n verticalAlign: \"middle\"\r\n },\r\n firstButton: {\r\n borderTopRightRadius: \"0\",\r\n borderBottomRightRadius: \"0\",\r\n margin: \"0\",\r\n position: \"relative\",\r\n float: \"left\",\r\n \"&:hover\": {\r\n zIndex: \"2\"\r\n }\r\n },\r\n middleButton: {\r\n borderRadius: \"0\",\r\n margin: \"0\",\r\n position: \"relative\",\r\n float: \"left\",\r\n \"&:hover\": {\r\n zIndex: \"2\"\r\n }\r\n },\r\n lastButton: {\r\n borderTopLeftRadius: \"0\",\r\n borderBottomLeftRadius: \"0\",\r\n margin: \"0\",\r\n \"&:hover\": {\r\n zIndex: \"2\"\r\n }\r\n }\r\n};\r\n\r\nexport default buttonGroupStyle;\r\n","import { primaryColor, cardBoxShadow, drawerWidth } from \"assets/jss/material-dashboard-pro-react.jsx\";\r\n\r\nconst isLeftMenu = window.MenuBar === \"left\";\r\n\r\nconst common = {\r\n\tbackgroundColor: \"white\",\r\n\theight: 48,\r\n\tzIndex: 3\r\n};\r\n\r\nconst dynamicToolBarStyle = theme => ({\r\n\tmain: {\r\n\t\t...cardBoxShadow,\r\n\t\tbackgroundColor: \"#e4e4e4\",\r\n\t\tfontWeight: 700,\r\n\t\tborderRadius: \"6px\",\r\n\t\tmarginTop: isLeftMenu ? \"18px\" : \"8px\",\r\n\t\tmarginBottom: \"5px\",\r\n\t\tmarginRight: \"2px\",\r\n\t\tzIndex: 10,\r\n\t\tpaddingBottom: 5\r\n\t},\r\n\tnormal: {\r\n\t\t...common,\r\n\t\tleft: 23,\r\n\t\tright: 41\r\n\t},\r\n\tfixed: {\r\n\t\t...common,\r\n\t\tposition: \"fixed\",\r\n\t\twidth: `calc(100% - ${drawerWidth + 95}px - ${isLeftMenu ? \"30vh\" : \"0px\"})`,\r\n\t\t[theme.breakpoints.down(\"md\")]: {\r\n\t\t\tposition: \"absolute\",\r\n\t\t\twidth: \"1340px\"\r\n\t\t}\r\n\t},\r\n\tpaddingBottom: {\r\n\t\tpaddingBottom: 43\r\n\t},\r\n\ticon: {\r\n\t\tbackgroundColor: primaryColor,\r\n\t\tcolor: \"white\",\r\n\t\tborderRadius: \"6px\"\r\n\t},\r\n\tappbaritemright: {\r\n\t\tbackground: \"#fcfcfc\",\r\n\t\tcolor: \"#2e333a\",\r\n\t\tfontSize: \"12px\",\r\n\t\tlineHeight: \"1.428571429\",\r\n\t\tfontWeight: 400,\r\n\t\tborderColor: \"#707070\",\r\n\t\ttextAlign: \"left\",\r\n\t\tmarginTop: \"10px\",\r\n\t\tfloat: \"right\",\r\n\t\tpaddingLeft: \"15px\",\r\n\t\tpaddingRight: \"15px\"\r\n\t},\r\n\tappbaritemleft: {\r\n\t\tfontSize: \"12px\",\r\n\t\ttextAlign: \"unset\",\r\n\t\tmarginTop: \"10px\",\r\n\t\tpaddingLeft: \"10px !important\",\r\n\t\tfontWeight: 400,\r\n\t},\r\n\tappbar: {\r\n\t\tpaddingBottom: 5,\r\n\t\theight: \"auto\",\r\n\t\tcolor: \"#2e333a\",\r\n\t\tfontSize: \"0.8em\",\r\n\t\tlineHeight: \"1.428571429\",\r\n\t\tfontWeight: \"400\",\r\n\t\ttextAlign: \"left\",\r\n\t\t...cardBoxShadow,\r\n\t\tbackgroundColor: \"#e4e4e4\",\r\n\t\tborderRadius: \"6px\",\r\n\t\tmarginTop: \"5px\",\r\n\t\tmarginLeft: \"2px\",\r\n\t\tmarginRight: \"2px\"\r\n\t}\r\n});\r\n\r\nexport default dynamicToolBarStyle;\r\n","import sweetAlertStyle from \"assets/jss/material-dashboard-pro-react/views/sweetAlertStyle.jsx\";\r\n\r\nconst style = {\r\n\t...sweetAlertStyle,\r\n\tnoRatingBoxStyle: {\r\n\t\twidth: \"10px\",\r\n\t\tpadding: \"10px\",\r\n\t\tborder: \"1px solid black\",\r\n\t},\r\n\tgreenRatingBoxStyle: {\r\n\t\twidth: \"10px\",\r\n\t\tbackground: \"limegreen\",\r\n\t\tpadding: \"10px\",\r\n\t\tborder: \"1px solid black\",\r\n\t},\r\n\tyellowRatingBoxStyle: {\r\n\t\twidth: \"10px\",\r\n\t\tbackground: \"yellow\",\r\n\t\tpadding: \"10px\",\r\n\t\tborder: \"1px solid black\",\r\n\t},\r\n\tredRatingBoxStyle: {\r\n\t\twidth: \"10px\",\r\n\t\tbackground: \"red\",\r\n\t\tpadding: \"10px\",\r\n\t\tborder: \"1px solid black\",\r\n\t},\r\n\tblackRatingBoxStyle: {\r\n\t\twidth: \"10px\",\r\n\t\tbackground: \"black\",\r\n\t\tpadding: \"10px\",\r\n\t\tborder: \"1px solid black\",\r\n\t},\r\n\tgreenRatingStyle: {\r\n\t\tbackground: \"limegreen\",\r\n\t\tpadding: \"10px\",\r\n\t\tborder: \"1px solid black\"\r\n\t},\r\n\tyellowRatingStyle: {\r\n\t\tbackground: \"yellow\",\r\n\t\tpadding: \"10px\",\r\n\t\tborder: \"1px solid black\"\r\n\t},\r\n\tredRatingStyle: {\r\n\t\tbackground: \"red\",\r\n\t\tpadding: \"10px\",\r\n\t\tborder: \"1px solid black\"\r\n\t},\r\n\tblackRatingStyle: {\r\n\t\tbackground: \"black\",\r\n\t\tpadding: \"10px\",\r\n\t\tborder: \"1px solid black\"\r\n\t},\r\n\tgrayRatingStyle: {\r\n\t\tbackground: \"#e6e6e6\",\r\n\t\tpadding: \"10px\",\r\n\t\tborder: \"1px solid black\"\r\n\t},\r\n\tnoRatingStyle: {\r\n\t\tpadding: \"10px\",\r\n\t\tborder: \"1px solid black\"\r\n\t},\r\n\tcard: {\r\n\t\tpadding: \"16px\"\r\n\t},\r\n\tcard2: {\r\n\t\tmarginBottom : \"24px\"\r\n\t},\r\n\tgoToButton: {\r\n\t\theight: \"48px\"\r\n\t},\r\n\tcardListLabel: {\r\n\t\tmargin: \"3px 4px\",\r\n\t\theight: \"28px\"\r\n\t}\r\n};\r\n\r\nexport default style;","import { withStyles } from \"@material-ui/core\";\r\nimport digitalVerificationPanelStyle from \"assets/jss/material-dashboard-pro-react/views/digitalVerificationPanelStyle\";\r\nimport GridContainer from \"components/Grid/GridContainer\";\r\nimport GridItem from \"components/Grid/GridItem\";\r\nimport Formatter from \"core/Formatter\";\r\nimport StringHelper from \"core/StringHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { PureComponent } from \"react\";\r\nimport KycManualDigitalVerificationStatusPanel from \"views/AmlKyc/ManualKycApplication/KycManualDigitalVerificationStatusPanel\";\r\nimport { GenericCheckInput, GenericLabel, GenericTextInput } from \"views/Components/Generic\";\r\nimport TabsComponent from \"views/Components/TabsComponent\";\r\n\r\nclass DigitalVerificationPanel extends PureComponent {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tmodel: {}\r\n\t\t};\r\n\t\tthis.tempObject = {};\r\n\t\tthis.statusWrapperStyle = {\r\n\t\t\tposition: \"relative\",\r\n\t\t\ttop: \"-45px\",\r\n\t\t\tright: \"-490px\",\r\n\t\t\tpadding: \"0px 5px\",\r\n\t\t\twidth: 500,\r\n\t\t};\r\n\t\tthis.statusGridItemContainerStyle = { position: \"relative\" };\r\n\t\tthis.checkBoxGroupStyle = { marginTop: 4 };\r\n\t\tthis.placeholderNA = \"N/A\";\r\n\t\tthis.styleMargin10 = { margin: \"10px\" };\r\n\t}\r\n\tGetTabList = () => {\r\n\t\tvar tabList = [\r\n\t\t\t{\r\n\t\t\t\ttabButton: \"Id Information\",\r\n\t\t\t\ttabContent: this.VerificationPanelIdInformationTab()\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\ttabButton: \"Address Information\",\r\n\t\t\t\ttabContent: this.VerificationPanelAddressInformation()\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\ttabButton: \"Score\",\r\n\t\t\t\ttabContent: this.VerificationPanelScore()\r\n\t\t\t},\r\n\t\t];\r\n\t\tif (!this.props.ShowOnlyCard) {\r\n\t\t\ttabList.push(\r\n\t\t\t\t{\r\n\t\t\t\t\ttabButton: \"Other Information\",\r\n\t\t\t\t\ttabContent: this.VerificationPanelOtherInformation()\r\n\t\t\t\t});\r\n\t\t}\r\n\t\treturn tabList;\r\n\t}\r\n\tVerificationPanel() {\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n\tVerificationPanelScoreOnly() {\r\n\r\n\t\tconst { VerificationModel, classes } = this.props;\r\n\t\tvar objectIndex = 4;\r\n\t\tvar propertyCount = 2;\r\n\r\n\t\tvar avgScore = 0;\r\n\t\tvar remoteAvgScore = VerificationModel?.AvgScore > 0 ? (VerificationModel?.AvgScore * 100) : 0;\r\n\t\tvar idQualityScore = VerificationModel?.IdQuality >= 0 ? (VerificationModel?.IdQuality * 100) : 0;\r\n\r\n\t\tavgScore += idQualityScore / propertyCount;\r\n\t\tavgScore += remoteAvgScore / propertyCount;\r\n\r\n\t\tavgScore = remoteAvgScore || Math.floor(avgScore);\r\n\t\tvar resultScore = !VerificationModel ? null : avgScore;\r\n\r\n\r\n\t\tvar colorAndMsg = this.GetColorAndTextByRatio(resultScore);\r\n\t\tvar statusBoxStyle = {\r\n\t\t\tbackgroundColor: colorAndMsg.backgroundColor,\r\n\t\t\twidth: \"100%\",\r\n\t\t};\r\n\t\tvar comp = (\r\n\t\t\t
\r\n\r\n\t\t\t\t
\r\n\r\n\t\t\t\t{/* {this.VerificationResultComponent(resultScore, \"\")} */}\r\n\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t\tthis.tempObject[objectIndex] = comp;\r\n\t\treturn this.tempObject[objectIndex];\r\n\t}\r\n\tVerificationPanelIdInformationTab() {\r\n\t\tvar objectIndex = 0;\r\n\t\tconst { classes, VerificationModel } = this.props;\r\n\r\n\t\tvar avgScore = 0;\r\n\t\tvar propertyCount = 8;\r\n\t\tvar scorePerProperty = 100 / propertyCount;\r\n\r\n\t\tif (VerificationModel?.FirstName) {\r\n\t\t\tavgScore += scorePerProperty;\r\n\t\t}\r\n\t\tif (VerificationModel?.LastName) {\r\n\t\t\tavgScore += scorePerProperty;\r\n\t\t}\r\n\t\tif (VerificationModel?.CardIdType) {\r\n\t\t\tavgScore += scorePerProperty;\r\n\t\t}\r\n\t\tif (VerificationModel?.CardIdNumber) {\r\n\t\t\tavgScore += scorePerProperty;\r\n\t\t}\r\n\t\tif (VerificationModel?.CardIdExpDate) {\r\n\t\t\tavgScore += scorePerProperty;\r\n\t\t}\r\n\t\tif (VerificationModel?.CardPlaceOfIssue) {\r\n\t\t\tavgScore += scorePerProperty;\r\n\t\t}\r\n\t\tif (VerificationModel?.CardCountry) {\r\n\t\t\tavgScore += scorePerProperty;\r\n\t\t}\r\n\t\tif (VerificationModel?.CardProvince) {\r\n\t\t\tavgScore += scorePerProperty;\r\n\t\t}\r\n\t\tavgScore = Math.floor(avgScore);\r\n\t\tvar resultScore = !VerificationModel ? null : avgScore;\r\n\r\n\t\tvar comp = (<>\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t{this.VerificationResultComponent(resultScore, \"Information Matching Result\")}\r\n\t\t\t
\r\n\t\t);\r\n\r\n\t\tthis.tempObject[objectIndex] = comp;\r\n\t\treturn this.tempObject[objectIndex];\r\n\t}\r\n\tVerificationPanelAddressInformation() {\r\n\t\tvar objectIndex = 1;\r\n\t\tconst { classes, VerificationModel } = this.props;\r\n\r\n\t\tvar addressLine1 = \"\";\r\n\t\tif (VerificationModel?.IdStreet?.length > 0) {\r\n\t\t\taddressLine1 += VerificationModel?.IdStreet;\r\n\t\t}\r\n\t\tif (VerificationModel?.IdStreetNumber?.length > 0) {\r\n\t\t\tif (addressLine1.length > 0) addressLine1 += \", \";\r\n\t\t\taddressLine1 += VerificationModel?.IdStreetNumber;\r\n\t\t}\r\n\r\n\t\tvar addressLine2 = VerificationModel?.IdUnit ?? \"\";\r\n\r\n\r\n\t\tvar avgScore = 0;\r\n\t\tvar propertyCount = 6;\r\n\t\tvar scorePerProperty = 100 / propertyCount;\r\n\t\tvar multiplierPerProperty = (scorePerProperty / 100);\r\n\r\n\t\tif (VerificationModel?.AddressLine1 && addressLine1) {\r\n\t\t\tavgScore += StringHelper.GetSimilarity(VerificationModel?.AddressLine1, addressLine1) * multiplierPerProperty;\r\n\t\t}\r\n\t\tif (VerificationModel?.AddressLine2 && addressLine2) {\r\n\t\t\tavgScore += StringHelper.GetSimilarity(VerificationModel?.AddressLine2, addressLine2) * multiplierPerProperty;\r\n\t\t}\r\n\t\tif (VerificationModel?.PostalCode && VerificationModel?.IdPostalCode) {\r\n\t\t\tavgScore += StringHelper.GetSimilarity(VerificationModel?.PostalCode, VerificationModel?.IdPostalCode) * multiplierPerProperty;\r\n\t\t}\r\n\t\tif (VerificationModel?.Country && VerificationModel?.IdCountry) {\r\n\t\t\tavgScore += StringHelper.GetSimilarity(VerificationModel?.Country, VerificationModel?.IdCountry) * multiplierPerProperty;\r\n\t\t}\r\n\t\tif (VerificationModel?.Province && VerificationModel?.IdProvince) {\r\n\t\t\tavgScore += StringHelper.GetSimilarity(VerificationModel?.Province, VerificationModel?.IdProvince) * multiplierPerProperty;\r\n\t\t}\r\n\t\tif (VerificationModel?.City && VerificationModel?.IdCity) {\r\n\t\t\tavgScore += StringHelper.GetSimilarity(VerificationModel?.City, VerificationModel?.IdCity) * multiplierPerProperty;\r\n\t\t}\r\n\t\tavgScore = Math.floor(avgScore);\r\n\r\n\t\tvar resultScore = !VerificationModel || (\"\" + addressLine1 + addressLine2)?.length == 0 ? null : avgScore;\r\n\t\tvar comp = (<>\r\n\t\t\t
\r\n\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t{this.VerificationResultComponent(resultScore, \"Information Matching Result\", this.placeholderNA)}\r\n\t\t\t
\r\n\t\t);\r\n\t\tthis.tempObject[objectIndex] = comp;\r\n\t\treturn this.tempObject[objectIndex];\r\n\t}\r\n\tVerificationPanelScore() {\r\n\r\n\t\tconst { classes, VerificationModel, ShowOnlyCard } = this.props;\r\n\t\tvar objectIndex = 2;\r\n\t\tvar propertyCount = ShowOnlyCard ? 2 : 6;\r\n\r\n\t\tvar avgScore = 0;\r\n\t\tvar remoteAvgScore = VerificationModel?.AvgScore > 0 ? (VerificationModel?.AvgScore * 100) : 0;\r\n\t\tvar idQualityScore = VerificationModel?.IdQuality >= 0 ? (VerificationModel?.IdQuality * 100) : 0;\r\n\t\tvar photoQualityScore = VerificationModel?.PhotoQuality >= 0 ? (VerificationModel?.PhotoQuality * 100) : 0;\r\n\t\tvar idFacePhotoMatchScore = VerificationModel?.IdFacePhotoMatch >= 0 ? (VerificationModel?.IdFacePhotoMatch * 100) : 0;\r\n\t\tvar nameScore = VerificationModel?.NameConfidence >= 0 ? (VerificationModel?.NameConfidence * 100) : 0; //StringHelper.GetSimilarity(model?.FirstName, VerificationModel?.FirstName);\r\n\t\t//var lastNameScore = StringHelper.GetSimilarity(model?.LastName, VerificationModel?.LastName);\r\n\t\tvar birtdateScore = VerificationModel?.BirthdateMatch >= 0 ? (VerificationModel?.BirthdateMatch * 100) : 0; //StringHelper.GetSimilarity(model?.BirthDate && Formatter.FormatDate(model?.BirthDate), VerificationModel?.CardBirthDate && Formatter.FormatDate(VerificationModel?.CardBirthDate));\r\n\t\tvar addressScore = (VerificationModel?.CanadaPostScore / 2) + ((VerificationModel?.AddressConfidence >= 0 ? (VerificationModel?.AddressConfidence * 100) : 0) / 2);\r\n\r\n\r\n\t\tavgScore += idQualityScore / propertyCount;\r\n\t\tif (!ShowOnlyCard) {\r\n\t\t\tavgScore += photoQualityScore / propertyCount;\r\n\t\t\tavgScore += idFacePhotoMatchScore / propertyCount;\r\n\t\t\tavgScore += nameScore / propertyCount;\r\n\t\t\tavgScore += birtdateScore / propertyCount;\r\n\t\t\tavgScore += addressScore / propertyCount;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tavgScore += remoteAvgScore / propertyCount;\r\n\t\t\tavgScore = remoteAvgScore || avgScore;\r\n\t\t}\r\n\r\n\r\n\t\tavgScore = Math.floor(avgScore);\r\n\t\tvar resultScore = !VerificationModel ? null : avgScore;\r\n\r\n\t\tvar comp = (<>\r\n\t\t\t
\r\n\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t= 0 && \"%\" + (idQualityScore)) || \"\"}\r\n\t\t\t\t\t\t\tDisabled={true}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\r\n\t\t\t\t\t{!ShowOnlyCard &&\r\n\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t= 0 && \"%\" + (photoQualityScore)) || \"\"}\r\n\t\t\t\t\t\t\t\t\tDisabled={true}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t= 0 && \"%\" + (idFacePhotoMatchScore)) || \"\"}\r\n\t\t\t\t\t\t\t\t\tDisabled={true}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t= 0 && \"%\" + (nameScore)) || \"\"}\r\n\t\t\t\t\t\t\t\t\tDisabled={true}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t= 0 && \"%\" + (birtdateScore)) || \"\"}\r\n\t\t\t\t\t\t\t\t\tDisabled={true}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t= 0 && \"%\" + (addressScore)) || \"\"}\r\n\t\t\t\t\t\t\t\t\tDisabled={true}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t{ShowOnlyCard &&\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t= 0 && \"%\" + (remoteAvgScore)) || \"\"}\r\n\t\t\t\t\t\t\t\tDisabled={true}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t= 0 && \"%\" + (avgScore)) || \"\"}\r\n\t\t\t\t\t\t\tDisabled={true}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t{this.VerificationResultComponent(resultScore, \"Verification Status\")}\r\n\t\t\t
\r\n\t\t);\r\n\t\tthis.tempObject[objectIndex] = comp;\r\n\t\treturn this.tempObject[objectIndex];\r\n\t}\r\n\tVerificationPanelOtherInformation() {\r\n\r\n\t\tconst { classes, VerificationModel } = this.props;\r\n\t\tvar objectIndex = 3;\r\n\t\tvar comp = (<>\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t\tthis.tempObject[objectIndex] = comp;\r\n\t\treturn this.tempObject[objectIndex];\r\n\t}\r\n\r\n\tVerificationTitleText = (titleText) => {\r\n\t\tconst { classes } = this.props;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n\tVerificationStatusBox = (message) => {\r\n\t\tconst { classes } = this.props;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n\r\n\tGetColorAndTextByRatio = (ratio, defaultMessage) => {\r\n\r\n\t\tvar message = \"Not verified yet\";\r\n\r\n\t\tvar backgroundColor = \"#b5b5b5cc\";\r\n\r\n\t\tif (ratio > 70) {\r\n\t\t\tbackgroundColor = \"#27e32dcc\";\r\n\t\t\tmessage = \"High\";\r\n\t\t} else if (ratio > 40) {\r\n\t\t\tbackgroundColor = \"#e3a126cc\";\r\n\t\t\tmessage = \"Medium\";\r\n\t\t} else if (ratio > 0 || ratio === 0) {\r\n\t\t\tbackgroundColor = \"#ff2a00cc\";\r\n\t\t\tmessage = \"Low\";\r\n\t\t}\r\n\t\telse {\r\n\t\t\tmessage = defaultMessage ?? message;\r\n\t\t}\r\n\r\n\t\treturn { message, backgroundColor };\r\n\t}\r\n\tVerificationResultComponent = (ratio, titleText, customMessage) => {\r\n\t\tthis.statusBoxStyle = {\r\n\t\t\tmarginBottom: 18,\r\n\t\t\theight: 22\r\n\t\t};\r\n\t\tvar colorAndMsg = this.GetColorAndTextByRatio(ratio, customMessage);\r\n\t\tthis.statusBoxStyle.backgroundColor = colorAndMsg.backgroundColor;\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t{this.VerificationTitleText(titleText)}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t{this.VerificationStatusBox(colorAndMsg.message)}\r\n\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Model } = this.props;\r\n\t\tconst { ShowOnlyCard, ScoreOnly } = this.props;\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t{ScoreOnly ? this.VerificationPanelScoreOnly() : this.VerificationPanel()}\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nDigitalVerificationPanel.propTypes = {\r\n\tExecuteApiPost: PropTypes.any.isRequired,\r\n\tShowOnlyCard: PropTypes.bool,\r\n\tScoreOnly: PropTypes.bool,\r\n\tModel: PropTypes.shape({\r\n\t\tIdentityPhotoId: PropTypes.number,\r\n\t\tIdentityPhotoBackId: PropTypes.number,\r\n\t\tUserPhotoId: PropTypes.number,\r\n\t\tGender: PropTypes.oneOf([\"M\", \"F\"])\r\n\t}).isRequired,\r\n\tVerificationModel: PropTypes.shape({\r\n\t\tAddressConfidence: PropTypes.number,\r\n\t\tAddressLine1: PropTypes.any,\r\n\t\tAddressLine2: PropTypes.any,\r\n\t\tAvgScore: PropTypes.number,\r\n\t\tBirthdateMatch: PropTypes.number,\r\n\t\tCardBirthDate: PropTypes.func,\r\n\t\tCardCountry: PropTypes.any,\r\n\t\tCardIdExpDate: PropTypes.func,\r\n\t\tCardIdNumber: PropTypes.any,\r\n\t\tCardIdType: PropTypes.any,\r\n\t\tCardIssueDate: PropTypes.func,\r\n\t\tCardPlaceOfIssue: PropTypes.any,\r\n\t\tCardProvince: PropTypes.any,\r\n\t\tCity: PropTypes.any,\r\n\t\tCountry: PropTypes.any,\r\n\t\tFirstName: PropTypes.any,\r\n\t\tIdCity: PropTypes.any,\r\n\t\tIdCountry: PropTypes.any,\r\n\t\tIdFacePhotoMatch: PropTypes.number,\r\n\t\tIdPostalCode: PropTypes.any,\r\n\t\tIdProvince: PropTypes.any,\r\n\t\tIdQuality: PropTypes.number,\r\n\t\tIdStreet: PropTypes.string,\r\n\t\tIdStreetNumber: PropTypes.string,\r\n\t\tIdUnit: PropTypes.string,\r\n\t\tIpAddress: PropTypes.string,\r\n\t\tIpCity: PropTypes.string,\r\n\t\tIpCountry: PropTypes.string,\r\n\t\tIpLocationLatitude: PropTypes.string,\r\n\t\tIpLocationLongitude: PropTypes.string,\r\n\t\tIpPostalCode: PropTypes.string,\r\n\t\tIpProvince: PropTypes.string,\r\n\t\tIsAnonymous: PropTypes.any,\r\n\t\tIsAnonymousHosting: PropTypes.any,\r\n\t\tIsAnonymousVpn: PropTypes.any,\r\n\t\tIsp: PropTypes.string,\r\n\t\tLastName: PropTypes.any,\r\n\t\tNameConfidence: PropTypes.number,\r\n\t\tOrganization: PropTypes.string,\r\n\t\tPhotoQuality: PropTypes.number,\r\n\t\tPostalCode: PropTypes.any,\r\n\t\tProvince: PropTypes.any,\r\n\t\tReferer: PropTypes.string,\r\n\t\tUserAgent: PropTypes.string,\r\n\t\tUserType: PropTypes.string,\r\n\t\tCanadaPostScore: PropTypes.number,\r\n\t}).isRequired\r\n};\r\n\r\nexport default withStyles(digitalVerificationPanelStyle)(DigitalVerificationPanel);","import { CardHeader } from '@material-ui/core';\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport { GenericAlert, GenericCheckInput, GenericDateInput, GenericLabel, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport { BankingAccountTypes, ClientType, FeeProfileType, PriorityRegularType } from \"views/Constants/Constant.js\";\r\nimport Formatter from 'core/Formatter';\r\n\r\nclass ClientSummaryTab extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tLimitPropList: [],\r\n\t\t\tLimitModelList: [],\r\n\t\t\tLimitProfileModel: {},\r\n\t\t\tFixedPropList: [],\r\n\t\t\tPeriodicPropList: [],\r\n\t\t\tFeeProfileModel: {},\r\n\t\t\tFixedModelList: [],\r\n\t\t\tPeriodicModelList: [],\r\n\t\t\tWeightedModelList: [],\r\n\t\t\tProfileType: \"\",\r\n\t\t\tFeeTypes: [],\r\n\t\t\tLimitTypes: [],\r\n\t\t\tTransactionFeeLabelTitleParameter: \"Transaction Fee\",\r\n\t\t\tTransactionFeeParameterValue5: \"TXN\"\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tif (this.props.contract != null && this.props.contract.Program != null) {\r\n\t\t\tconst contract = this.props.contract;\r\n\t\t\tthis.FetchLimitPropFromParameter(contract.Program.ProgramCode);\r\n\t\t\tthis.FetchFixedFeePropFromParameter(contract.Program.ProgramCode);\r\n\t\t\tthis.FetchLimitProfile(contract.LimitProfileId);\r\n\t\t\tthis.FetchFeeProfile(contract.FeeProfileId);\r\n\t\t}\r\n\t}\r\n\tFetchFeeProfile = (ProfileId) => {\r\n\t\tif (ProfileId != null && ProfileId != 0) {\r\n\t\t\tProxy.GET(\r\n\t\t\t\t\"/bankapi/v1.0/FeeProfile/GetById/Id?Id=\" + ProfileId,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Limit Profile Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\t\tFixedModelList: responseData.Item.Fixed || [],\r\n\t\t\t\t\t\t\tPeriodicModelList: responseData.Item.Periodic || [],\r\n\t\t\t\t\t\t\tFeeProfileModel: responseData.Item.Profile || {},\r\n\t\t\t\t\t\t\tWeightedModelList: responseData.Item.Scale || []\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\tvar temp = responseData.Item.Profile;\r\n\t\t\t\t\t\ttemp.FeeProfileTypeStr = temp.FeeProfileType.ParameterValue;\r\n\t\t\t\t\t\ttemp.IsSupportWeighted = temp.Program.IsSupportWeighted;\r\n\t\t\t\t\t\tthis.setState({ FeeProfileModel: temp });\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t}\r\n\tFetchLimitProfile = (ProfileId) => {\r\n\t\tif (ProfileId != null && ProfileId != 0) {\r\n\t\t\tProxy.GET(\r\n\t\t\t\t\"/bankapi/v1.0/LimitProfile/GetById/Id?Id=\" + ProfileId,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Limit Profile Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\t\tLimitModelList: responseData.Item.Limit || [],\r\n\t\t\t\t\t\t\tLimitProfileModel: responseData.Item.Profile || {}\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t}\r\n\tFetchFixedFeePropFromParameter = (code) => {\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Parameter/Search\",\r\n\t\t\t{\r\n\t\t\t\tParameterCode: \"FeeType\",\r\n\t\t\t\tParameterValue: \"\",\r\n\t\t\t\tParameterDesc: \"\",\r\n\t\t\t\tParameterValue2: code\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.setState({ FixedPropList: responseData.Item || [] });\r\n\t\t\t\t\tconst ca = [...new Set(responseData.Item.map(x => x.ParameterValue4))];\r\n\t\t\t\t\tthis.setState({ isLoading: false, FeeTypes: ca });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Parameter/Search\",\r\n\t\t\t{\r\n\t\t\t\tParameterCode: \"FeeType\",\r\n\t\t\t\tParameterValue: \"\",\r\n\t\t\t\tParameterDesc: \"\",\r\n\t\t\t\tParameterValue2: \"PERIODIC\"\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.setState({ PeriodicPropList: responseData.Item || [] });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tFetchLimitPropFromParameter = (code) => {\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Parameter/Search\",\r\n\t\t\t{\r\n\t\t\t\tParameterCode: \"LimitType\",\r\n\t\t\t\tParameterValue: \"\",\r\n\t\t\t\tParameterDesc: \"\",\r\n\t\t\t\tParameterValue2: code\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.setState({ LimitPropList: responseData.Item || [] });\r\n\t\t\t\t\tconst ca = [...new Set(responseData.Item.map(x => x.ParameterValue4))];\r\n\t\t\t\t\tthis.setState({ isLoading: false, LimitTypes: ca });\r\n\t\t\t\t}\r\n\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { contract, paramGlobalModel, paramBankCustomerCorporate, paramCustomerProfile, paramBankCustomerInternalAccountList, paramBankCustomerExternalAccountList, paramBankCustomerSecurityList } = this.props;\r\n\t\tconst { LimitPropList, LimitModelList, LimitProfileModel, FixedPropList, FixedModelList, PeriodicModelList, PeriodicPropList, FeeProfileModel, WeightedModelList, ProfileType } = this.state;\r\n\t\tconst { FeeTypes, LimitTypes } = this.state;\r\n\t\tconst clientType = paramGlobalModel == null ? \"\" : paramGlobalModel.ClientType || \"\";\r\n\r\n\t\tconst PA = paramBankCustomerInternalAccountList.find(x => x.ProgramId == contract.ProgramId && x.BankingAccountType != null && x.BankingAccountType.ParameterValue == BankingAccountTypes.PrimaryAccount) || {};\r\n\t\tconst CA = paramBankCustomerInternalAccountList.find(x => x.ProgramId == contract.ProgramId && x.BankingAccountType != null && x.BankingAccountType.ParameterValue == BankingAccountTypes.SecurityAccount) || {};\r\n\t\tconst FA = paramBankCustomerInternalAccountList.find(x => x.ProgramId == contract.ProgramId && x.BankingAccountType != null && x.BankingAccountType.ParameterValue == BankingAccountTypes.FeeAccount) || {};\r\n\r\n\t\tconst EA = paramBankCustomerExternalAccountList.find(x => x.ProgramId == contract.ProgramId) || {};\r\n\r\n\r\n\t\tconst CM1 = WeightedModelList.find(x => x.LevelId == 1 && x.IsCombineScale == true) == null ? {} : WeightedModelList.find(x => x.LevelId == 1 && x.IsCombineScale == true);\r\n\t\tconst CM2 = WeightedModelList.find(x => x.LevelId == 2 && x.IsCombineScale == true) == null ? {} : WeightedModelList.find(x => x.LevelId == 2 && x.IsCombineScale == true);\r\n\t\tconst CM3 = WeightedModelList.find(x => x.LevelId == 3 && x.IsCombineScale == true) == null ? {} : WeightedModelList.find(x => x.LevelId == 3 && x.IsCombineScale == true);\r\n\t\tconst CM4 = WeightedModelList.find(x => x.LevelId == 4 && x.IsCombineScale == true) == null ? {} : WeightedModelList.find(x => x.LevelId == 4 && x.IsCombineScale == true);\r\n\t\tconst CM5 = WeightedModelList.find(x => x.LevelId == 5 && x.IsCombineScale == true) == null ? {} : WeightedModelList.find(x => x.LevelId == 5 && x.IsCombineScale == true);\r\n\r\n\r\n\t\tconst RG1 = WeightedModelList.find(x => x.LevelId == 1 && x.PriorityType != null && x.PriorityType.ParameterValue == PriorityRegularType.Regular) == null ? {} : WeightedModelList.find(x => x.LevelId == 1 && x.PriorityType.ParameterValue == PriorityRegularType.Regular);\r\n\t\tconst RG2 = WeightedModelList.find(x => x.LevelId == 2 && x.PriorityType != null && x.PriorityType.ParameterValue == PriorityRegularType.Regular) == null ? {} : WeightedModelList.find(x => x.LevelId == 2 && x.PriorityType.ParameterValue == PriorityRegularType.Regular);\r\n\t\tconst RG3 = WeightedModelList.find(x => x.LevelId == 3 && x.PriorityType != null && x.PriorityType.ParameterValue == PriorityRegularType.Regular) == null ? {} : WeightedModelList.find(x => x.LevelId == 3 && x.PriorityType.ParameterValue == PriorityRegularType.Regular);\r\n\t\tconst RG4 = WeightedModelList.find(x => x.LevelId == 4 && x.PriorityType != null && x.PriorityType.ParameterValue == PriorityRegularType.Regular) == null ? {} : WeightedModelList.find(x => x.LevelId == 4 && x.PriorityType.ParameterValue == PriorityRegularType.Regular);\r\n\t\tconst RG5 = WeightedModelList.find(x => x.LevelId == 5 && x.PriorityType != null && x.PriorityType.ParameterValue == PriorityRegularType.Regular) == null ? {} : WeightedModelList.find(x => x.LevelId == 5 && x.PriorityType.ParameterValue == PriorityRegularType.Regular);\r\n\r\n\r\n\t\tconst PR1 = WeightedModelList.find(x => x.LevelId == 1 && x.PriorityType != null && x.PriorityType.ParameterValue == PriorityRegularType.Priority) == null ? {} : WeightedModelList.find(x => x.LevelId == 1 && x.PriorityType.ParameterValue == PriorityRegularType.Priority);\r\n\t\tconst PR2 = WeightedModelList.find(x => x.LevelId == 2 && x.PriorityType != null && x.PriorityType.ParameterValue == PriorityRegularType.Priority) == null ? {} : WeightedModelList.find(x => x.LevelId == 2 && x.PriorityType.ParameterValue == PriorityRegularType.Priority);\r\n\t\tconst PR3 = WeightedModelList.find(x => x.LevelId == 3 && x.PriorityType != null && x.PriorityType.ParameterValue == PriorityRegularType.Priority) == null ? {} : WeightedModelList.find(x => x.LevelId == 3 && x.PriorityType.ParameterValue == PriorityRegularType.Priority);\r\n\t\tconst PR4 = WeightedModelList.find(x => x.LevelId == 4 && x.PriorityType != null && x.PriorityType.ParameterValue == PriorityRegularType.Priority) == null ? {} : WeightedModelList.find(x => x.LevelId == 4 && x.PriorityType.ParameterValue == PriorityRegularType.Priority);\r\n\t\tconst PR5 = WeightedModelList.find(x => x.LevelId == 5 && x.PriorityType != null && x.PriorityType.ParameterValue == PriorityRegularType.Priority) == null ? {} : WeightedModelList.find(x => x.LevelId == 5 && x.PriorityType.ParameterValue == PriorityRegularType.Priority);\r\n\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{/* DEFINITIONS - ACCOUNTS */}\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{clientType && ((clientType == ClientType.Personal) || (clientType == ClientType.SalesAgentPersonal)) && (\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t{clientType && ((clientType == ClientType.Corporate) || (clientType == ClientType.SalesAgentCorporate)) && (\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\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\t)}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t{(FeeProfileModel.FeeProfileTypeStr == FeeProfileType.Fixed && FeeProfileModel.IsSupportWeighted) && (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{FeeTypes != null && FeeTypes.filter(x => x == this.state.TransactionFeeLabelTitleParameter).map(x => x != null && (\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t

{x}

\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{FixedPropList != null && FixedPropList.filter(y => y.ParameterValue4 == x).map(item => (\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue) == null ? \"\" : FixedModelList.find(x => x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue).FeeAmount}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={true}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue) == null ? \"\" : FixedModelList.find(x => x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue).Cost}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={true}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue) == null ? \"\" : FixedModelList.find(x => x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue).IsCommissionCalculation}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={true}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t)}\r\n\r\n\t\t\t\t{((FeeProfileModel.FeeProfileTypeStr == FeeProfileType.CombineWeighted || FeeProfileModel.FeeProfileTypeStr == FeeProfileType.CombineUnWeighted) && (FeeProfileModel.IsSupportWeighted)) && (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t

Level

\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t

From

\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t

To

\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t

Fee

\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\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\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t)}\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{FeeTypes != null && FeeTypes.filter(x => x != this.state.TransactionFeeLabelTitleParameter).map(x => x != null && (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t

{x}

\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{FixedPropList != null && FixedPropList.filter(y => y.ParameterValue4 == x).map(item => (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue) == null ? \"\" : FixedModelList.find(x => x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue).FeeAmount}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={true}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue) == null ? \"\" : FixedModelList.find(x => x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue).Cost}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={true}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue) == null ? \"\" : FixedModelList.find(x => x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue).IsCommissionCalculation}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={true}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t))}\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{PeriodicPropList != null && PeriodicPropList.map(item => (\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue) == null ? \"\" : PeriodicModelList.find(x => x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue).FeeAmount}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={true}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue) == null ? \"\" : PeriodicModelList.find(x => x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue).Cost}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={true}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue) == null ? \"\" : PeriodicModelList.find(x => x.FeeType != null && x.FeeType.ParameterValue == item.ParameterValue).IsCommissionCalculation}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={true}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t
\r\n\r\n\r\n\t\t\t\t{/* LIMIT PROFILE */}\r\n\t\t\t\t{(paramGlobalModel.ClientType == ClientType.Personal || paramGlobalModel.ClientType == ClientType.Corporate) && (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{LimitTypes != null && LimitTypes.map(x => x != null && (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t

{x}

\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t{LimitPropList != null && LimitPropList.filter(y => y.ParameterValue4 == x && y.ParameterValue != null).map(item => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t(item.ParameterValue5 != null && item.ParameterValue5 == \"C\") ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t< GridItem xs={6} key={item.Id + \"LimitSubType1\"} >\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t x.LimitType != null && x.LimitType.ParameterValue == item.ParameterValue) == null ? \"\" : LimitModelList.find(x => x.LimitType != null && x.LimitType.ParameterValue == item.ParameterValue).LimitCount}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t x.LimitType != null && x.LimitType.ParameterValue == item.ParameterValue) == null ? \"\" : LimitModelList.find(x => x.LimitType != null && x.LimitType.ParameterValue == item.ParameterValue).LimitAmount} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t x.LimitType != null && x.LimitType.ParameterValue == item.ParameterValue) == null ? \"\" : LimitModelList.find(x => x.LimitType != null && x.LimitType.ParameterValue == item.ParameterValue).LimitCount} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t)}\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nClientSummaryTab.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tcontract: PropTypes.object,\r\n\tparamGlobalModel: PropTypes.object,\r\n\tparamCustomerProfile: PropTypes.object,\r\n\tparamBankCustomerCorporate: PropTypes.object,\r\n\tparamBankCustomerExternalAccountList: PropTypes.array,\r\n\tparamBankCustomerInternalAccountList: PropTypes.array,\r\n\tparamBankCustomerSecurityList: PropTypes.array\r\n};\r\n\r\n\r\nexport default withArtifex(ClientSummaryTab, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport { DeleteIcon, EditIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport {\r\n\tGenericAlert,\r\n\tGenericCheckInput,\r\n\tGenericDateInput,\r\n\tGenericEmailInput,\r\n\tGenericGrid,\r\n\tGenericNumberInput,\r\n\tGenericSelectInput,\r\n\tGenericTextInput\r\n} from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { ActionCodes, MenuCodes } from \"views/Constants/Constant.js\";\r\nimport DateHelper from \"../../../../core/DateHelper\";\r\n\r\nclass KeyContact extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t\tkeyContactModel: {},\r\n\t\t\tPrimaryPhoneModel: {},\r\n\t\t\tMobilePhoneModel: {},\r\n\t\t\tServiceMapModel: {},\r\n\t\t\tCustomDisabled: null,\r\n\t\t\tvModel: {}\r\n\t\t};\r\n\t\tthis.ParameterEmptyObject = {};\r\n\t\tthis.ParameterCountrySortOrderIndex = { Member: \"OrderIndex\" };\r\n\t\tthis.ParameterMaxLength30 = { maxLength: 30 };\r\n\t\tthis.ParameterMaxLength100 = { maxLength: 100 };\r\n\t\tthis.ParameterPosition = { ParameterCode: \"Position\" };\r\n\t\tthis.ParameterTitle = { ParameterCode: \"Title\" };\r\n\r\n\t\tthis.CloumnsData = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t this.setState({ keyContactModel: { ...row.original } })} />\r\n\r\n\t\t\t\t\t\t this.showQuestionMessage(\"Delete this record !\", row.original)} />\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\twidth: 100\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Position\",\r\n\t\t\t\taccessor: \"Position.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Name\",\r\n\t\t\t\taccessor: \"Name\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Middle Name\",\r\n\t\t\t\taccessor: \"MidName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Last Name\",\r\n\t\t\t\taccessor: \"SurName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Phone\",\r\n\t\t\t\taccessor: \"Phone\",\r\n\t\t\t\tCell: row => ({row.original.Phone == null ? \"\" : row.original.Phone.PhoneCountryCode == null ? \"\" : \"+\" + row.original.Phone.PhoneCountryCode.Code + \" \" + row.original.Phone.PhoneNumber})\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"MobilePhone\",\r\n\t\t\t\taccessor: \"MobilePhone\",\r\n\t\t\t\tCell: row => ({row.original.MobilePhone == null ? \"\" : row.original.MobilePhone.PhoneCountryCode == null ? \"\" : \"+\" + row.original.MobilePhone.PhoneCountryCode.Code + \" \" + row.original.MobilePhone.PhoneNumber})\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Email\",\r\n\t\t\t\taccessor: \"Email\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"DateOfBirth\",\r\n\t\t\t\taccessor: \"DateOfBirth\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Occupation\",\r\n\t\t\t\taccessor: \"Occupation\"\r\n\t\t\t}\r\n\t\t];\r\n\t\tthis.KeyServiceContactData = [\r\n\t\t\t\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Name\",\r\n\t\t\t\taccessor: \"Name\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Last Name\",\r\n\t\t\t\taccessor: \"SurName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Fraud Service\",\r\n\t\t\t\taccessor: \"CustomerKeyContactServiceMap.FraudService\",\r\n\t\t\t\tCell: row => ({row.original.CustomerKeyContactServiceMap.FraudService == true ? \"true\" : \"false\"})\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"New Product Service\",\r\n\t\t\t\taccessor: \"CustomerKeyContactServiceMap.NewProductService\",\r\n\t\t\t\tCell: row => ({row.original.CustomerKeyContactServiceMap.NewProductService == true ? \"true\" : \"false\"})\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"System Maintenance Service\",\r\n\t\t\t\taccessor: \"CustomerKeyContactServiceMap.SystemMaintenanceService\",\r\n\t\t\t\tCell: row => ({row.original.CustomerKeyContactServiceMap.SystemMaintenanceService == true ? \"true\" : \"false\"})\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Invoice Settlement Service\",\r\n\t\t\t\taccessor: \"CustomerKeyContactServiceMap.InvoiceSettlementService\",\r\n\t\t\t\tCell: row => ({row.original.CustomerKeyContactServiceMap.InvoiceSettlementService == true ? \"true\" : \"false\"})\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Contract Service\",\r\n\t\t\t\taccessor: \"CustomerKeyContactServiceMap.ContractService\",\r\n\t\t\t\tCell: row => ({row.original.CustomerKeyContactServiceMap.ContractService == true ? \"true\" : \"false\"})\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Access Service\",\r\n\t\t\t\taccessor: \"CustomerKeyContactServiceMap.AccountAccessService\",\r\n\t\t\t\tCell: row => ({row.original.CustomerKeyContactServiceMap.AccountAccessService == true ? \"true\" : \"false\"})\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Compliance Service\",\r\n\t\t\t\taccessor: \"CustomerKeyContactServiceMap.ComplianceService\",\r\n\t\t\t\tCell: row => ({row.original.CustomerKeyContactServiceMap.ComplianceService == true ? \"true\" : \"false\"})\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t}\r\n\r\n\tRenderCountrySelect(d) {\r\n\t\treturn \"+\" + d.Code + \" (\" + d.Name + \")\";\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tif (this.props.setAppLeftTitle)\r\n\t\t\tthis.props.setAppLeftTitle(\"Key Contact\");\r\n\r\n\r\n\t\tconst global = { ...this.props.paramGlobalModel };\r\n\t\tif (global == null || global.Id == 0) {\r\n\t\t\tconsole.log(\"You must select a client or create new one to add key contact person.\");\r\n\t\t}\r\n\t\tvar model = { Id: 0, UniqueClientId: global.Id };\r\n\t\tthis.setState({ keyContactModel: model });\r\n\r\n\t\tthis.props.FetchClientLimitedAuthority(MenuCodes.CSLimitedKeyContact, ActionCodes.Submit, (res) => this.setState({ CustomDisabled: res }));\r\n\r\n\t}\r\n\tOperationCheck = () => {\r\n\t\tvar ErrorList = [];\r\n\t\tconst vModel = this.state.vModel;\r\n\t\tconst global = { ...this.props.paramGlobalModel };\r\n\t\tconst model = this.state.keyContactModel;\r\n\t\tconst Phone = this.state.PrimaryPhoneModel;\r\n\t\tconst MobilePhone = this.state.MobilePhoneModel;\r\n\t\tconst ServiceMap = this.state.ServiceMapModel;\r\n\r\n\t\tif (global == null || global.Id == null || global.Id == 0) {\r\n\t\t\tErrorList.push(\"You must select a client or create new one to add.\");\r\n\t\t}\r\n\t\tif (model == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (model.Name == null || model.Name == \"\") {\r\n\t\t\tvModel.Name = true;\r\n\t\t\tErrorList.push(\"Name must be defined !.\");\r\n\t\t} else { vModel.Name = false; }\r\n\t\tif (model.SurName == null || model.SurName == \"\") {\r\n\t\t\tvModel.SurName = true;\r\n\t\t\tErrorList.push(\"Last Name must be defined !.\");\r\n\t\t} else { vModel.SurName = false; }\r\n\t\tif (model.Email == null || model.Email == \"\") {\r\n\t\t\tvModel.Email = true;\r\n\t\t\tErrorList.push(\"Email must be defined !.\");\r\n\t\t} else { vModel.Email = false; }\r\n\t\tif (Phone == null) {\r\n\t\t\tErrorList.push(\"Phone not defined !.\");\r\n\t\t}\r\n\t\tif (Phone == null || Phone.PhoneCountryCodeId == null || Phone.PhoneCountryCodeId == \"\") {\r\n\t\t\tvModel.PhoneCountryCodeId = true;\r\n\t\t\tErrorList.push(\"Primary Phone Country Code must be defined !.\");\r\n\t\t} else { vModel.PhoneCountryCodeId = false; }\r\n\t\tif (Phone == null || Phone.PhoneNumber == null || Phone.PhoneNumber == \"\") {\r\n\t\t\tvModel.PhoneNumber = true;\r\n\t\t\tErrorList.push(\"Primary Phone Number must be defined !.\");\r\n\t\t} else { vModel.PhoneNumber = false; }\r\n\t\tif (Phone != null && Phone.PhoneNumber != null) {\r\n\t\t\tif (Phone.PhoneNumber.toString().length != 10) {\r\n\t\t\t\tErrorList.push(\"Primary Phone Number must be 10 Digits !.\")\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\t\t// if (MobilePhone != null && (MobilePhone.PhoneNumber != null || MobilePhone.PhoneCountryCodeId != null)) {\r\n\t\t// \tif (MobilePhone.PhoneNumber != null && MobilePhone.PhoneNumber.toString().length != 10) {\r\n\t\t// \t\tErrorList.push(\"Mobile phone number must be 10 Digits !.\")\r\n\t\t// \t}\r\n\t\t// \tif (MobilePhone == null || MobilePhone.PhoneCountryCodeId == null || MobilePhone.PhoneCountryCodeId == \"\") {\r\n\t\t// \t\tvModel.PhoneCountryCodeId = true;\r\n\t\t// \t\tErrorList.push(\"Mobile phone country code must be defined !.\");\r\n\t\t// \t} else { vModel.PhoneCountryCodeId = false; }\r\n\t\t// \tif (MobilePhone == null || MobilePhone.PhoneNumber == null) {\r\n\t\t// \t\tvModel.PhoneNumber = true;\r\n\t\t// \t\tErrorList.push(\"Mobile phone number must be defined !.\");\r\n\t\t// \t} else { vModel.PhoneNumber = false; }\r\n\t\t// }\r\n\r\n\r\n\r\n\t\tif (model.Email != null && !this.ValidateEmail(model.Email)) {\r\n\t\t\tErrorList.push(\"E-mail must be valid !\");\r\n\t\t}\r\n\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.UpdateModel();\r\n\t}\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\tValidateEmail = (email) => {\r\n\t\tvar re = /^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\r\n\t\treturn re.test(String(email).toLowerCase());\r\n\t}\r\n\tClearData = () => {\r\n\t\tconst global = { ...this.props.paramGlobalModel };\r\n\t\tvar model = { Id: 0, UniqueClientId: global.Id };\r\n\t\tthis.setState({ keyContactModel: model, PrimaryPhoneModel: { Id: 0 }, MobilePhoneModel: { Id: 0 }, ServiceMapModel: { Id: 0 }, vModel: {} });\r\n\t}\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.keyContactModel || {};\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\treturn { keyContactModel: model };\r\n\t\t});\r\n\t}\r\n\thandleChangePrimaryPhone = (name, newValue) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.PrimaryPhoneModel || {};\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\treturn { PrimaryPhoneModel: model };\r\n\t\t});\r\n\t}\r\n\thandleChangeMobilePhone = (name, newValue) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.MobilePhoneModel || {};\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\treturn { MobilePhoneModel: model };\r\n\t\t});\r\n\t}\r\n\thandleChangeServiceMap = (name, newValue) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.ServiceMapModel || {};\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\treturn { ServiceMapModel: model };\r\n\t\t});\r\n\t}\r\n\tUpdateModel = () => {\r\n\t\tvar temp = this.state.keyContactModel;\r\n\t\ttemp.Phone = this.state.PrimaryPhoneModel;\r\n\t\ttemp.MobilePhone = this.state.MobilePhoneModel;\r\n\t\ttemp.CustomerKeyContactServiceMap = this.state.ServiceMapModel;\r\n\t\t\r\n\t\tconst global = this.props.paramGlobalModel;\r\n\t\tif (global == null) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", \"Client must be selected\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (global.Id == null || global.Id == 0) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", \"Client must be selected\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\ttemp.UniqueClientId = global.Id;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/CustomerKeyContact/Update\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", temp.Id > 0 ? \"Contact Person Updated Successfully !\" : \"Contact Person Saved Successfully! \");\r\n\t\t\t\tthis.ClearData();\r\n\t\t\t\tthis.props.GetCustomerKeyContactModels();\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tDeleteModel = (model) => {\r\n\t\tif (model == null || model.Id == null || model.Id == 0) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", \"Contact Person Must Be Selected For The Delete Operation !\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.GET(\r\n\t\t\t\"/bankapi/v1.0/CustomerKeyContact/Delete/Id?Id=\" + model.Id,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Contact Person Deleted Successfully !\");\r\n\t\t\t\tthis.ClearData();\r\n\t\t\t\tthis.props.GetCustomerKeyContactModels();\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tSelectedRowChange = (e, index) => {\r\n\t\tconst model = this.props.paramBankCustomerKeyContactList[index];\r\n\t\tthis.setState({\r\n\t\t\tkeyContactModel: model,\r\n\t\t\tPrimaryPhoneModel: model.Phone || {},\r\n\t\t\tMobilePhoneModel: model.MobilePhone || {},\r\n\t\t\tServiceMapModel: model.CustomerKeyContactServiceMap || {}\r\n\t\t});\r\n\t}\r\n\tshowQuestionMessage = (message, model) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} OnConfirm={() => this.DeleteModel(model)} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\t// type:-success->warning->info->error\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { keyContactModel, MobilePhoneModel, PrimaryPhoneModel, ServiceMapModel, header, isLoading, vModel } = this.state;\r\n\t\tconst { Disabled: DisabledProp, paramBankCustomerKeyContactList } = this.props;\r\n\t\tconst Disabled = DisabledProp || this.state.CustomDisabled;\r\n\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{header &&\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
Client Contact
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t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\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\tthis.SelectedRowChange(0, index);\r\n\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nKeyContact.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tkeyContactModel: PropTypes.object,\r\n\tparamGlobalModel: PropTypes.object,\r\n\tparamBankCustomerKeyContactList: PropTypes.array,\r\n\tparamBankCustomerExternalAccountList: PropTypes.array,\r\n\tGetCustomerKeyContactModels: PropTypes.func\r\n};\r\n\r\n\r\nexport default withArtifex(KeyContact, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { withArtifex } from \"core\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport { GenericExpansionPanel, GenericGrid } from \"views/Components/Generic\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass ChequeImageDetail extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {};\r\n\t\tthis.handleChange = this.handleChange.bind(this);\r\n\t}\r\n\r\n\thandleChange(name, newValue) {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\trender() {\r\n\t\tconst { chqinfomodel } = this.props;\r\n\t\t/* height: 160px; */\r\n\t\treturn (\r\n\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t{\r\n\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\r\n\t\t\t\t\t\t\t\t\t\tthis.setState({ FileId: chqinfomodel[index].FileId, selected: index });\r\n\t\t\t\t\t\t\t\t\t}} />\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
}\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nChequeImageDetail.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tchqinfomodel: PropTypes.array,\r\n\thandleChange: PropTypes.func,\r\n\tPhoneModel: PropTypes.object,\r\n\tpropModel: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(ChequeImageDetail, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes, { func } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport { GenericNumberInput } from \"views/Components/Generic\";\r\nimport { ProgramCodes, Direction } from \"views/Constants/Constant\";\r\n\r\nclass ReconciliationCDICTab extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { CDICSummary } = this.props;\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tOutgoing Transactions\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tResponse File Value\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t this.props.openDialog(ProgramCodes.Bank_Programs_CDIC, Direction.Outgoing)}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tNumber of Outgoing Transactions\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tNumber of Response Transactions\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t this.props.openDialog(ProgramCodes.Bank_Programs_CDIC, Direction.Outgoing)}\r\n\t\t\t\t\t\t\t\t\tDisabled={true} />\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nReconciliationCDICTab.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tCDICSummary: PropTypes.object,\r\n\topenDialog: func\r\n};\r\n\r\nexport default ReconciliationCDICTab;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes, { func } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport { GenericNumberInput } from \"views/Components/Generic\";\r\nimport { Direction, ProgramCodes } from \"views/Constants/Constant.js\";\r\nclass ReconciliationDDTTab extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { DDTSummary } = this.props;\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tOutgoing Transactions\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tResponse File Value\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t this.props.openDialog(ProgramCodes.Bank_Programs_DDT, Direction.Outgoing)}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tNumber of Outgoing Transactions\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tNumber of Response Transactions\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t this.props.openDialog(ProgramCodes.Bank_Programs_DDT, Direction.Outgoing)}\r\n\t\t\t\t\t\t\t\t\tDisabled={true} />\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nReconciliationDDTTab.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tDDTSummary: PropTypes.object,\r\n\topenDialog: func\r\n};\r\n\r\nexport default ReconciliationDDTTab;","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes, { object } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport { GenericNumberInput } from \"views/Components/Generic\";\r\nimport { Direction, ProgramCodes } from \"views/Constants/Constant.js\";\r\nclass ReconciliationEFTTab extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { EFTOutgoingSummary, EFTIncomingSummary } = this.props;\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t

\r\n\t\t\t\t{/* Outgoing */}\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tOutgoing File Value\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tResponse File Value\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t this.props.openDialog(ProgramCodes.Bank_Programs_EFT, Direction.Outgoing)}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tNumber of Outgoing Transactions\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tNumber of Response Transactions\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t this.props.openDialog(ProgramCodes.Bank_Programs_EFT, Direction.Outgoing)}\r\n\t\t\t\t\t\t\t\t\tDisabled={true} />\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t{/* Incoming */}\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tIncoming File Value\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tResponse File Value\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t this.props.openDialog(ProgramCodes.Bank_Programs_EFT, Direction.Incoming)}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tNumber of Incoming Transactions\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tNumber of Response Transactions\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t this.props.openDialog(ProgramCodes.Bank_Programs_EFT, Direction.Incoming)}\r\n\t\t\t\t\t\t\t\t\tDisabled={true} />\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nReconciliationEFTTab.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tEFTIncomingSummary: object,\r\n\tEFTOutgoingSummary: object,\r\n\topenDialog: PropTypes.func\r\n};\r\n\r\nexport default ReconciliationEFTTab;","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport { ApproveIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport AccountComponent from \"views/Components/AccountComponent\";\r\nimport { GenericAlert, GenericDialog, GenericDialogActions, GenericGrid, GenericLabel, GenericNumberInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nclass CustomerComponent extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {\r\n\t\t\t\tPrograms: this.props.Programs,\r\n\t\t\t\tUniqueClientId: this.props.UniqueClientId,\r\n\t\t\t\tCustomerName: this.props.CustomerName,\r\n\t\t\t\tCustomerNumber: this.props.CustomerNumber,\r\n\t\t\t},\r\n\t\t\tdialog: {\r\n\t\t\t\tisOpen: false,\r\n\t\t\t\tdialogData: []\r\n\t\t\t},\r\n\t\t\tselected: -1,\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\r\n\t\tthis.columns = [{\r\n\t\t\tHeader: \"Actions\",\r\n\t\t\taccessor: \"Actions\",\r\n\t\t\tCell: row => (\r\n\t\t\t\t
\r\n\t\t\t\t\t { this.HandleSelectModel(row.original, row.index); }} />\r\n\t\t\t\t
\r\n\t\t\t),\r\n\t\t\tsortable: false,\r\n\t\t\tfilterable: false,\r\n\t\t\tresizable: false,\r\n\t\t\twidth: 60\r\n\t\t},\r\n\t\t{\r\n\t\t\tHeader: \"Customer Number\",\r\n\t\t\taccessor: \"CustomerNumber\"\r\n\t\t},\r\n\t\t{\r\n\t\t\tHeader: \"Full Name\",\r\n\t\t\taccessor: \"CustomerName\"\r\n\t\t}];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel.Programs = this.props.Programs;\r\n\t\tmodel.UniqueClientId = this.props.UniqueClientId;\r\n\t\tmodel.CustomerName = this.props.CustomerName;\r\n\t\tmodel.CustomerNumber = this.props.CustomerNumber;\r\n\t\tif (this.props.KnownCustomer)\r\n\t\t\tthis.HandleClickByKeyPressed();\r\n\t}\r\n\r\n\tHandleChange = (name, value) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tmodel.Programs = this.props.Programs;\r\n\t\tmodel.UniqueClientId = this.props.UniqueClientId;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleKeyPress = (e) => {\r\n\t\tif (e.key == \"Enter\") {\r\n\t\t\tthis.HandleClickByKeyPressed();\r\n\t\t}\r\n\t}\r\n\r\n\tHandleClickByKeyPressed = () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/bankapi/v1.0/ClientCustomer/SearchForComponent\",\r\n\t\t\t{\r\n\t\t\t\tCustomerNumber: this.props.CustomerNumber,\r\n\t\t\t\tCustomerName: model.CustomerName,\r\n\t\t\t\tPrograms: this.props.Programs,\r\n\t\t\t\tUniqueClientId: this.props.UniqueClientId\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tdialog: {\r\n\t\t\t\t\t\t\tisOpen: true,\r\n\t\t\t\t\t\t\tdialogData: responseData.Item\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t\tif (responseData.Item.length === 1) {\r\n\t\t\t\t\t\tthis.HandleSelectModel(responseData.Item[0], 0);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ dialogData: [] });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t});\r\n\t}\r\n\r\n\tHandleClick = () => {\r\n\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel.Programs = this.props.Programs;\r\n\t\tmodel.UniqueClientId = this.props.UniqueClientId;\r\n\t\tmodel.CustomerName = this.props.CustomerName;\r\n\t\tmodel.CustomerNumber = this.props.CustomerNumber;\r\n\t\tthis.setState({ isLoading: true, model });\r\n\t\tProxy.POST(\"/bankapi/v1.0/ClientCustomer/SearchForComponent\",\r\n\t\t\t{\r\n\t\t\t\tCustomerNumber: this.props.CustomerNumber,\r\n\t\t\t\tCustomerName: this.props.CustomerName,\r\n\t\t\t\tPrograms: this.props.Programs,\r\n\t\t\t\tUniqueClientId: this.props.UniqueClientId\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tdialog: {\r\n\t\t\t\t\t\t\tisOpen: true,\r\n\t\t\t\t\t\t\tdialogData: responseData.Item\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ dialogData: [] });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t});\r\n\t}\r\n\r\n\tHandleClearClick = () => {\r\n\t\tthis.setState({\r\n\t\t\tdialog: {\r\n\t\t\t\tisOpen: false,\r\n\t\t\t\tdialogData: []\r\n\t\t\t},\r\n\t\t\tmodel: {},\r\n\t\t\tselected: -1\r\n\t\t}, () => {\r\n\t\t\tthis.props.FillCallback(null);\r\n\t\t});\r\n\t}\r\n\r\n\tHandleClickInside = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/bankapi/v1.0/ClientCustomer/SearchForComponent\",\r\n\t\t\t{\r\n\t\t\t\tAccountNumber: this.state.model.AccountNumber,\r\n\t\t\t\tCustomerName: this.state.model.CustomerName,\r\n\t\t\t\tCustomerNumber: this.state.model.CustomerNumber,\r\n\t\t\t\tPrograms: this.props.Programs,\r\n\t\t\t\tUniqueClientId: this.props.UniqueClientId\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tdialog: {\r\n\t\t\t\t\t\t\tisOpen: true,\r\n\t\t\t\t\t\t\tdialogData: responseData.Item\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ dialogData: [] });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t});\r\n\t}\r\n\r\n\tHandleSelectModel = (model, index) => {\r\n\t\tthis.setState({ selected: index });\r\n\t\tthis.props.FillCallback(model);\r\n\t\tthis.setState({\r\n\t\t\tdialog: {\r\n\t\t\t\tisOpen: false,\r\n\t\t\t\tdialogData: []\r\n\t\t\t},\r\n\t\t\tselected: -1\r\n\t\t});\r\n\t};\r\n\r\n\tCancelSelectCallback = () => {\r\n\t\tthis.setState({\r\n\t\t\tdialog: {\r\n\t\t\t\tisOpen: false,\r\n\t\t\t\tdialogData: []\r\n\t\t\t},\r\n\t\t\tmodel: {},\r\n\t\t\tselected: -1\r\n\t\t});\r\n\t};\r\n\r\n\tRowSelected = (index) => {\r\n\t\tconst model = this.state.dialog.dialogData[index];\r\n\t\tthis.HandleSelectModel(model, index);\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: null })} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes, LabelMd, Disabled, ShowCustomerProgram, Required, IsInvalid } = this.props;\r\n\t\tconst { model, dialog, isLoading } = this.state;\r\n\r\n\t\tif (model.CustomerName == undefined || model.CustomerName == null || model.CustomerName === \"\") {\r\n\t\t\tmodel.CustomerName = this.props.CustomerName;\r\n\t\t}\r\n\t\tvar showColumns = [...this.columns];\r\n\t\tif (ShowCustomerProgram) {\r\n\t\t\tshowColumns.push({\r\n\t\t\t\tHeader: \"Program\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{row.original.Programs.toString()}\r\n\t\t\t\t\t
\r\n\t\t\t\t)\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn (\r\n\t\t\t<>\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCustomerComponent.propTypes = {\r\n\tCustomerNumber: PropTypes.any,\r\n\tCustomerName: PropTypes.any,\r\n\tHandleChange: PropTypes.func,\r\n\tFillCallback: PropTypes.func,\r\n\tKnownCustomer: PropTypes.bool,\r\n\tLabelMd: PropTypes.number,\r\n\tUniqueClientId: PropTypes.number,\r\n\tPrograms: PropTypes.array,\r\n\tDisabled: PropTypes.bool,\r\n\tShowCustomerProgram: PropTypes.bool,\r\n};\r\n\r\nCustomerComponent.defaultProps = {\r\n\tShowCustomerProgram: false\r\n};\r\n\r\nexport default withArtifex(CustomerComponent, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes, { object, func } from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport { GenericNumberInput } from \"views/Components/Generic\";\r\nimport { Direction,ProgramCodes } from \"views/Constants/Constant.js\";\r\nclass ReconciliationeTransferTab extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t}\r\n\t\r\n\trender() {\r\n\t\tconst { ETransferOutgoingSummary,ETransferIncomingSummary } = this.props;\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t

\r\n\t\t\t\t{/* Outgoing */}\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tOutgoing File Value\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tResponse File Value\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t this.props.openDialog(ProgramCodes.Bank_Programs_e_Transfer,Direction.Outgoing)}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tNumber of Outgoing Transactions\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t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t\t\t this.props.openDialog(ProgramCodes.Bank_Programs_e_Transfer,Direction.Incoming)}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tNumber of Incoming Transactions\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tNumber of Response Transactions\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t this.props.openDialog(ProgramCodes.Bank_Programs_e_Transfer,Direction.Incoming)}\r\n\t\t\t\t\t\t\t\t\tDisabled={true} />\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nReconciliationeTransferTab.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tETransferOutgoingSummary:object,\r\n\tETransferIncomingSummary:object,\r\n\topenDialog:func\r\n};\r\n\r\nexport default ReconciliationeTransferTab;","import style from \"assets/jss/material-dashboard-pro-react/views/createWireTransferStyle.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { withArtifex } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport { GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\n\r\nclass OrderingClientDetail extends Component {\r\n constructor(props) {\r\n super(props);\r\n\r\n this.SortedCountry = { Member: \"OrderIndex\" };\r\n }\r\n\r\n RenderCountry = (data) => `${data.ISO2} - ${data.Name}`;\r\n\r\n render() {\r\n const {\r\n Disabled,\r\n ValueChanged,\r\n OrderingClientName,\r\n SendingFI,\r\n SendingFISwiftCode,\r\n SendingFIAddress,\r\n SendingFICountryId,\r\n OrderingAddressLine1,\r\n OrderingAddressLine2,\r\n OrderingZipCode,\r\n OrderingCityId,\r\n OrderingProvinceId,\r\n OrderingCountryId,\r\n OrderingSourceAccountNumber,\r\n InternationalBankCountryId\r\n } = this.props;\r\n return (\r\n \r\n \r\n \r\n \r\n

\r\n Ordering Client Information\r\n

\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n

\r\n Sending Financial Institution Information\r\n

\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\nOrderingClientDetail.propTypes = {\r\n classes: PropTypes.object.isRequired,\r\n Disabled: PropTypes.bool,\r\n ValueChanged: PropTypes.func,\r\n OrderingClientName: PropTypes.string,\r\n SendingFI: PropTypes.string,\r\n SendingFISwiftCode: PropTypes.string,\r\n SendingFIAddress: PropTypes.string,\r\n SendingFICountryId: PropTypes.number,\r\n OrderingAddressLine1: PropTypes.string,\r\n OrderingAddressLine2: PropTypes.string,\r\n OrderingZipCode: PropTypes.string,\r\n OrderingCityId: PropTypes.number,\r\n OrderingProvinceId: PropTypes.number,\r\n OrderingCountryId: PropTypes.number,\r\n OrderingSourceAccountNumber: PropTypes.string,\r\n InternationalBankCountryId: PropTypes.number\r\n};\r\n\r\nexport default withArtifex(OrderingClientDetail, style);\r\n","import style from \"assets/jss/material-dashboard-pro-react/views/createWireTransferStyle.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport { GenericDateInput, GenericNumberInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\n\r\nclass OrderingAmountDetail extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.MaxLen = { maxLength: 60 };\r\n }\r\n\r\n render() {\r\n const {\r\n Disabled,\r\n AmountPrefix,\r\n ValueChanged,\r\n WireTransactionDate,\r\n Amount,\r\n CurrencyId,\r\n WireReferenceNumber,\r\n WirePurpose,\r\n } = this.props;\r\n return (\r\n \r\n

\r\n Incoming Transfer Detail\r\n

\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n d.Code + \" - \" + d.Description}\r\n ValueChanged={ValueChanged}\r\n DataRoot=\"Item\"\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\nOrderingAmountDetail.propTypes = {\r\n classes: PropTypes.object.isRequired,\r\n Disabled: PropTypes.bool,\r\n ValueChanged: PropTypes.func,\r\n Amount: PropTypes.number,\r\n AmountPrefix: PropTypes.string,\r\n WireReferenceNumber: PropTypes.string,\r\n WirePurpose: PropTypes.string,\r\n CurrencyId: PropTypes.number,\r\n WireTransactionDate: PropTypes.any,\r\n};\r\n\r\nexport default withArtifex(OrderingAmountDetail, style);","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport moment from \"moment\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport { GenericDateInput, GenericExpansionPanel, GenericLabel, GenericNumberInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { PeriodCodes } from \"views/Constants/Constant.js\";\r\n\r\nclass BillRecurring extends Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tcustomerToken: \"0\",\r\n\t\t\tIsPayIndivudalActive: false,\r\n\t\t\tIsPayRecurringActive: false,\r\n\t\t\ttempmodel: {},\r\n\t\t\tFreezePaymentCount: 0\r\n\r\n\t\t};\r\n\r\n\t\tthis.ValueChanged = this.ValueChanged.bind(this);\r\n\t\tthis.TotalAmountChanged = this.TotalAmountChanged.bind(this);\r\n\t\tthis.GetTooltip = this.GetTooltip.bind(this);\r\n\t\tthis.addCustomerDialogClose = this.addCustomerDialogClose.bind(this);\r\n\t\tthis.CalculateForFreezeDate = this.CalculateForFreezeDate.bind(this);\r\n\t}\r\n\r\n\r\n\tTotalAmountChanged(name, newValue, data) {\r\n\t\tconst { model } = this.props.model;\r\n\t\tmodel.TotalAmount = newValue;\r\n\t\tthis.setState({ model: model });\r\n\t}\r\n\r\n\tValueChanged(name, newValue, data) {\r\n\t\tthis.props.onModelChange(model => {\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\tif (data) {\r\n\t\t\t\tif (name == \"PeriodId\") model.PeriodCode = data.ParameterValue;\r\n\t\t\t\tif (name == \"WeeklyId\") model.WeeklyNumber = data.ParameterValue;\r\n\t\t\t\tif (name == \"BiWeeklyId\") model.BiWeeklyNumber = data.ParameterValue;\r\n\t\t\t\tif (name == \"MonthlyId\") model.MonthlyNumber = data.ParameterValue;\r\n\t\t\t\tif (name == \"QuarterlyId\") model.QuarterlyNumber = data.ParameterValue;\r\n\r\n\t\t\t}\r\n\t\t\tif (name == \"NewClient\") {\r\n\t\t\t\tif (newValue) {\r\n\t\t\t\t\tmodel.IsCustomerPopupOpen = true;\r\n\t\t\t\t\tthis.setState({ isCustomerAdded: false });\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\ttry {\r\n\r\n\r\n\t\t\t\tconst { StartDate: momentStartDate, EndDate: momentEndDate, WeeklyNumber, BiWeeklyNumber, MonthlyNumber, QuarterlyNumber } = model;\r\n\t\t\t\tconst StartDate = momentStartDate.toDate();\r\n\t\t\t\tconst EndDate = momentEndDate.toDate();\r\n\r\n\t\t\t\tif (name == \"StartDate\" || name == \"EndDate\" || name == \"PeriodId\" || name == \"WeeklyId\" ||\r\n\t\t\t\t\tname == \"BiWeeklyId\" || name == \"MonthlyId\" || name == \"QuarterlyId\" ||\r\n\t\t\t\t\tname == \"FreezeStartDate\" || name == \"FreezeEndDate\" || name == \"RecurringAmount\") {\r\n\t\t\t\t\tif (typeof StartDate == \"object\" && typeof EndDate == \"object\" && model.PeriodId) {\r\n\r\n\t\t\t\t\t\tvar count;\r\n\t\t\t\t\t\tvar dayDif = (d1, d) => d1 > d ? d - d1 + 7 : d - d1;\r\n\t\t\t\t\t\tvar addDays = (date, days) => { var nd = new Date(date); nd.setDate(date.getDate() + days); return nd; };\r\n\t\t\t\t\t\tvar monthDif = (d1, d2) => Math.round(moment.duration(new Date(d2.getFullYear(), d2.getMonth() + 1, 1) - new Date(d1.getFullYear(), d1.getMonth(), 1)).asMonths());\r\n\t\t\t\t\t\tvar lastDayOfMonth = d => new Date(d.getFullYear(), d.getMonth() + 1, 0);\r\n\r\n\t\t\t\t\t\tswitch (model.PeriodCode) {\r\n\t\t\t\t\t\t\tcase PeriodCodes.Weekly:\r\n\t\t\t\t\t\t\t\tif (WeeklyNumber != null && WeeklyNumber != \"\") {\r\n\t\t\t\t\t\t\t\t\tvar firstWeekPayDate = addDays(StartDate, dayDif(StartDate.getDay(), WeeklyNumber));\r\n\t\t\t\t\t\t\t\t\tif (EndDate - firstWeekPayDate < 0) { count = 0; break; }\r\n\t\t\t\t\t\t\t\t\tcount = Math.floor(moment.duration(EndDate - firstWeekPayDate).asDays() / 7 + 1);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase PeriodCodes.BiWeekly:\r\n\t\t\t\t\t\t\t\tif (BiWeeklyNumber != null && BiWeeklyNumber != \"\") {\r\n\t\t\t\t\t\t\t\t\tvar firstBiWeekPayDate = addDays(StartDate, dayDif(StartDate.getDay(), BiWeeklyNumber));\r\n\t\t\t\t\t\t\t\t\tif (EndDate - firstBiWeekPayDate < 0) break;\r\n\t\t\t\t\t\t\t\t\tcount = Math.floor(moment.duration(EndDate - firstBiWeekPayDate).asDays() / 14 + 1);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase PeriodCodes.SemiMonthly:\r\n\t\t\t\t\t\t\t\tvar sMonthDiff = monthDif(StartDate, EndDate);\r\n\t\t\t\t\t\t\t\tif (sMonthDiff < 1) break;\r\n\t\t\t\t\t\t\t\tif (sMonthDiff == 1) {\r\n\t\t\t\t\t\t\t\t\tif (StartDate.getDate() > 16) break;\r\n\t\t\t\t\t\t\t\t\tif (StartDate.getDate() > 1 && EndDate.getDate() < 16) break;\r\n\t\t\t\t\t\t\t\t\tif (StartDate.getDate() > 1) { count = 1; break; }\r\n\t\t\t\t\t\t\t\t\tif (StartDate.getDate() == 1 && EndDate.getDate() < 16) { count = 1; break; }\r\n\t\t\t\t\t\t\t\t\tif (StartDate.getDate() == 1) { count = 2; break; }\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif (sMonthDiff > 1) {\r\n\t\t\t\t\t\t\t\t\tvar smStartDateSkip = (StartDate.getDate() == 1) ? 0 : (StartDate.getDate() <= 16) ? 1 : 2;\r\n\t\t\t\t\t\t\t\t\tvar smEndDateSkip = EndDate.getDate() >= 16 ? 0 : 1;\r\n\t\t\t\t\t\t\t\t\tcount = (2 * sMonthDiff) - smStartDateSkip - smEndDateSkip;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase PeriodCodes.Monthly:\r\n\t\t\t\t\t\t\t\tif (MonthlyNumber != null && MonthlyNumber != \"\") {\r\n\t\t\t\t\t\t\t\t\tvar mMonthDiff = monthDif(StartDate, EndDate);\r\n\t\t\t\t\t\t\t\t\tif (mMonthDiff < 1) break;\r\n\t\t\t\t\t\t\t\t\tif (mMonthDiff == 1) {\r\n\t\t\t\t\t\t\t\t\t\tif (StartDate.getDate() > MonthlyNumber || EndDate.getDate() < MonthlyNumber) break;\r\n\t\t\t\t\t\t\t\t\t\tif (StartDate.getDate() <= MonthlyNumber && EndDate.getDate() >= MonthlyNumber) { count = 1; break; }\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif (mMonthDiff > 1) {\r\n\t\t\t\t\t\t\t\t\t\tvar mStartDateSkip = StartDate.getDate() > MonthlyNumber ? 1 : 0;\r\n\t\t\t\t\t\t\t\t\t\tvar mEndDateSkip = EndDate.getDate() < MonthlyNumber ? 1 : 0;\r\n\t\t\t\t\t\t\t\t\t\tcount = mMonthDiff - mStartDateSkip - mEndDateSkip;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase PeriodCodes.MonthlyMonthEnd:\r\n\t\t\t\t\t\t\t\tvar meMonthDiff = monthDif(StartDate, EndDate);\r\n\t\t\t\t\t\t\t\tif (meMonthDiff < 1) break;\r\n\t\t\t\t\t\t\t\tif (meMonthDiff == 1) {\r\n\t\t\t\t\t\t\t\t\tvar meLastMonthDay = lastDayOfMonth(EndDate).getDate();\r\n\t\t\t\t\t\t\t\t\tif (StartDate.getDate() > meLastMonthDay || EndDate.getDate() < meLastMonthDay) break;\r\n\t\t\t\t\t\t\t\t\tif (StartDate.getDate() <= meLastMonthDay && EndDate.getDate() >= meLastMonthDay) { count = 1; break; }\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif (meMonthDiff > 1) {\r\n\t\t\t\t\t\t\t\t\tvar meStartDateSkip = StartDate.getDate() > lastDayOfMonth(StartDate).getDate() ? 1 : 0;\r\n\t\t\t\t\t\t\t\t\tvar meEndDateSkip = EndDate.getDate() < lastDayOfMonth(EndDate).getDate() ? 1 : 0;\r\n\t\t\t\t\t\t\t\t\tcount = meMonthDiff - meStartDateSkip - meEndDateSkip;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase PeriodCodes.Quarterly:\r\n\t\t\t\t\t\t\t\tif (QuarterlyNumber != null && QuarterlyNumber != \"\") {\r\n\t\t\t\t\t\t\t\t\tvar qbStartDate = addDays(StartDate, -QuarterlyNumber);\r\n\t\t\t\t\t\t\t\t\tvar qStartNewMonth = qbStartDate.getMonth() - (qbStartDate.getMonth() % 3) + 3;\r\n\t\t\t\t\t\t\t\t\tvar qStartDate = new Date(qbStartDate.getFullYear(), qStartNewMonth, QuarterlyNumber);\r\n\t\t\t\t\t\t\t\t\tvar qaEndDate = addDays(EndDate, -QuarterlyNumber + 1);\r\n\t\t\t\t\t\t\t\t\tvar qEndNewMonth = qaEndDate.getMonth() - (qaEndDate.getMonth() % 3);\r\n\t\t\t\t\t\t\t\t\tvar qEndDate = new Date(qaEndDate.getFullYear(), qEndNewMonth, QuarterlyNumber);\r\n\t\t\t\t\t\t\t\t\tvar qDiff = monthDif(qStartDate, qEndDate);\r\n\t\t\t\t\t\t\t\t\tcount = (qDiff + 2) / 3;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase PeriodCodes.QuarterlyMonthEnd:\r\n\t\t\t\t\t\t\t\tvar qeGetStartMonth = n => n - (n % 3) + 3;\r\n\t\t\t\t\t\t\t\tvar qeStartDate = new Date(StartDate.getFullYear(), qeGetStartMonth(StartDate.getMonth()) + 1, 0);\r\n\t\t\t\t\t\t\t\tvar qeGetEndMonth = n => n - (n % 3);\r\n\t\t\t\t\t\t\t\tvar qeaEndDate = addDays(EndDate, 1);\r\n\t\t\t\t\t\t\t\tvar qeEndDate = new Date(qeaEndDate.getFullYear(), qeGetEndMonth(qeaEndDate.getMonth()) + 1, 0);\r\n\t\t\t\t\t\t\t\tvar qeDiff = monthDif(qeStartDate, qeEndDate);\r\n\t\t\t\t\t\t\t\tcount = (qeDiff + 2) / 3;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif (count == 0) count = 0;\r\n\r\n\t\t\t\t\t\tmodel.PaymentCount = count;\r\n\r\n\t\t\t\t\t\tif ((model.FreezeStartDate != \"\" && model.FreezeStartDate != null)\r\n\t\t\t\t\t\t\t&& (model.FreezeEndDate != \"\" && model.FreezeEndDate != null)) {\r\n\r\n\t\t\t\t\t\t\tthis.CalculateForFreezeDate(model);\r\n\t\t\t\t\t\t\tmodel.PaymentCount = model.FPC;\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif (model.FPC != null && model.FPC != 0)\r\n\t\t\t\t\t\t\tcount = model.FPC;\r\n\r\n\t\t\t\t\t\tmodel.PaymentCount = count;\r\n\r\n\t\t\t\t\t\tmodel.TotalAmount = model.RecurringAmount && model.PaymentCount && model.RecurringAmount * model.PaymentCount;\r\n\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tcatch (error) {\r\n\t\t\t\t//\tconsole.log(\"\");\r\n\t\t\t}\r\n\t\t\treturn model;\r\n\t\t});\r\n\t}\r\n\r\n\tGetTooltip() {\r\n\t\tconst { model } = this.props;\r\n\r\n\t\tswitch (model.PeriodCode) {\r\n\t\t\tcase PeriodCodes.Weekly:\r\n\t\t\t\treturn \"The user will select this option for weekly payment processes. The day of the week that the payment occurs is dependent on the date selected for the First Due Date (i.e. if the First Due Date selected was on a Wednesday, then the weekly payment will occur every Wednesday).\";\r\n\t\t\tcase PeriodCodes.BiWeekly:\r\n\t\t\t\treturn \"The user will select this option for payment processing plans based on every other week. The day of the week that the payment will occurs is dependent on the date selected for the First Due Date (i.e. if the First Due Date selected was on a Wednesday, then the bi-weekly payment will occur every other Wednesday).\";\r\n\t\t\tcase PeriodCodes.Monthly:\r\n\t\t\t\treturn \"The user will select this option for the monthly payments. The payment date for this\toption is dependent on the date selected for the First Due Date (i.e. if the First Due Date selected was on the 12th, then the monthly payment will occur on the 12th of every month).\";\r\n\t\t\tcase PeriodCodes.Quarterly:\r\n\t\t\t\treturn \"The user will select this option for quarterly processing of a payment. The payment date for this option is dependent on the date selected for the First Due Date (i.e. if the First Due Date selected was on the 12th, then the quarterly payment will occur on the 12th day of the first month of a quarter). \";\r\n\t\t\tdefault:\r\n\t\t\t\treturn \"\";\r\n\t\t}\r\n\t}\r\n\tCalculateForFreezeDate(model) {\r\n\t\tconst { WeeklyNumber, BiWeeklyNumber, MonthlyNumber, QuarterlyNumber } = model;\r\n\r\n\t\tconst StartDate = model.FreezeStartDate.toDate();\r\n\t\tconst EndDate = model.FreezeEndDate.toDate();\r\n\r\n\t\t// if (name == \"StartDate\" || name == \"EndDate\" || name == \"PeriodId\" || name == \"WeeklyId\" ||\r\n\t\t// \tname == \"BiWeeklyId\" || name == \"MonthlyId\" || name == \"QuarterlyId\")\r\n\r\n\t\tif (typeof StartDate == \"object\" && typeof EndDate == \"object\" && model.PeriodId) {\r\n\r\n\t\t\tvar count;\r\n\t\t\tvar dayDif = (d1, d) => d1 > d ? d - d1 + 7 : d - d1;\r\n\t\t\tvar addDays = (date, days) => { var nd = new Date(date); nd.setDate(date.getDate() + days); return nd; };\r\n\t\t\tvar monthDif = (d1, d2) => Math.round(moment.duration(new Date(d2.getFullYear(), d2.getMonth() + 1, 1) - new Date(d1.getFullYear(), d1.getMonth(), 1)).asMonths());\r\n\t\t\tvar lastDayOfMonth = d => new Date(d.getFullYear(), d.getMonth() + 1, 0);\r\n\r\n\t\t\tswitch (model.PeriodCode) {\r\n\t\t\t\tcase PeriodCodes.Weekly:\r\n\t\t\t\t\tif (WeeklyNumber != null && WeeklyNumber != \"\") {\r\n\t\t\t\t\t\tvar firstWeekPayDate = addDays(StartDate, dayDif(StartDate.getDay(), WeeklyNumber));\r\n\t\t\t\t\t\tif (EndDate - firstWeekPayDate < 0) { count = 0; break; }\r\n\t\t\t\t\t\tcount = Math.floor(moment.duration(EndDate - firstWeekPayDate).asDays() / 7 + 1);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase PeriodCodes.BiWeekly:\r\n\t\t\t\t\tif (BiWeeklyNumber != null && BiWeeklyNumber != \"\") {\r\n\t\t\t\t\t\tvar firstBiWeekPayDate = addDays(StartDate, dayDif(StartDate.getDay(), BiWeeklyNumber));\r\n\t\t\t\t\t\tif (EndDate - firstBiWeekPayDate < 0) break;\r\n\t\t\t\t\t\tcount = Math.floor(moment.duration(EndDate - firstBiWeekPayDate).asDays() / 14 + 1);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase PeriodCodes.SemiMonthly:\r\n\t\t\t\t\tvar sMonthDiff = monthDif(StartDate, EndDate);\r\n\t\t\t\t\tif (sMonthDiff < 1) break;\r\n\t\t\t\t\tif (sMonthDiff == 1) {\r\n\t\t\t\t\t\tif (StartDate.getDate() > 16) break;\r\n\t\t\t\t\t\tif (StartDate.getDate() > 1 && EndDate.getDate() < 16) break;\r\n\t\t\t\t\t\tif (StartDate.getDate() > 1) { count = 1; break; }\r\n\t\t\t\t\t\tif (StartDate.getDate() == 1 && EndDate.getDate() < 16) { count = 1; break; }\r\n\t\t\t\t\t\tif (StartDate.getDate() == 1) { count = 2; break; }\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (sMonthDiff > 1) {\r\n\t\t\t\t\t\tvar smStartDateSkip = (StartDate.getDate() == 1) ? 0 : (StartDate.getDate() <= 16) ? 1 : 2;\r\n\t\t\t\t\t\tvar smEndDateSkip = EndDate.getDate() >= 16 ? 0 : 1;\r\n\t\t\t\t\t\tcount = (2 * sMonthDiff) - smStartDateSkip - smEndDateSkip;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase PeriodCodes.Monthly:\r\n\t\t\t\t\tif (MonthlyNumber != null && MonthlyNumber != \"\") {\r\n\t\t\t\t\t\tvar mMonthDiff = monthDif(StartDate, EndDate);\r\n\t\t\t\t\t\tif (mMonthDiff < 1) break;\r\n\t\t\t\t\t\tif (mMonthDiff == 1) {\r\n\t\t\t\t\t\t\tif (StartDate.getDate() > MonthlyNumber || EndDate.getDate() < MonthlyNumber) break;\r\n\t\t\t\t\t\t\tif (StartDate.getDate() <= MonthlyNumber && EndDate.getDate() >= MonthlyNumber) { count = 1; break; }\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (mMonthDiff > 1) {\r\n\t\t\t\t\t\t\tvar mStartDateSkip = StartDate.getDate() > MonthlyNumber ? 1 : 0;\r\n\t\t\t\t\t\t\tvar mEndDateSkip = EndDate.getDate() < MonthlyNumber ? 1 : 0;\r\n\t\t\t\t\t\t\tcount = mMonthDiff - mStartDateSkip - mEndDateSkip;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase PeriodCodes.MonthlyMonthEnd:\r\n\t\t\t\t\tvar meMonthDiff = monthDif(StartDate, EndDate);\r\n\t\t\t\t\tif (meMonthDiff < 1) break;\r\n\t\t\t\t\tif (meMonthDiff == 1) {\r\n\t\t\t\t\t\tvar meLastMonthDay = lastDayOfMonth(EndDate).getDate();\r\n\t\t\t\t\t\tif (StartDate.getDate() > meLastMonthDay || EndDate.getDate() < meLastMonthDay) break;\r\n\t\t\t\t\t\tif (StartDate.getDate() <= meLastMonthDay && EndDate.getDate() >= meLastMonthDay) { count = 1; break; }\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (meMonthDiff > 1) {\r\n\t\t\t\t\t\tvar meStartDateSkip = StartDate.getDate() > lastDayOfMonth(StartDate).getDate() ? 1 : 0;\r\n\t\t\t\t\t\tvar meEndDateSkip = EndDate.getDate() < lastDayOfMonth(EndDate).getDate() ? 1 : 0;\r\n\t\t\t\t\t\tcount = meMonthDiff - meStartDateSkip - meEndDateSkip;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase PeriodCodes.Quarterly:\r\n\t\t\t\t\tif (QuarterlyNumber != null && QuarterlyNumber != \"\") {\r\n\t\t\t\t\t\tvar qbStartDate = addDays(StartDate, -QuarterlyNumber);\r\n\t\t\t\t\t\tvar qStartNewMonth = qbStartDate.getMonth() - (qbStartDate.getMonth() % 3) + 3;\r\n\t\t\t\t\t\tvar qStartDate = new Date(qbStartDate.getFullYear(), qStartNewMonth, QuarterlyNumber);\r\n\t\t\t\t\t\tvar qaEndDate = addDays(EndDate, -QuarterlyNumber + 1);\r\n\t\t\t\t\t\tvar qEndNewMonth = qaEndDate.getMonth() - (qaEndDate.getMonth() % 3);\r\n\t\t\t\t\t\tvar qEndDate = new Date(qaEndDate.getFullYear(), qEndNewMonth, QuarterlyNumber);\r\n\t\t\t\t\t\tvar qDiff = monthDif(qStartDate, qEndDate);\r\n\t\t\t\t\t\tcount = (qDiff + 2) / 3;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase PeriodCodes.QuarterlyMonthEnd:\r\n\t\t\t\t\tvar qeGetStartMonth = n => n - (n % 3) + 3;\r\n\t\t\t\t\tvar qeStartDate = new Date(StartDate.getFullYear(), qeGetStartMonth(StartDate.getMonth()) + 1, 0);\r\n\t\t\t\t\tvar qeGetEndMonth = n => n - (n % 3);\r\n\t\t\t\t\tvar qeaEndDate = addDays(EndDate, 1);\r\n\t\t\t\t\tvar qeEndDate = new Date(qeaEndDate.getFullYear(), qeGetEndMonth(qeaEndDate.getMonth()) + 1, 0);\r\n\t\t\t\t\tvar qeDiff = monthDif(qeStartDate, qeEndDate);\r\n\t\t\t\t\tcount = (qeDiff + 2) / 3;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\tif (count == 0||!count) count = 0;\r\n\r\n\t\t\tif (count != 0 && model.PaymentCount != 0) {\r\n\t\t\t\tmodel.FPC = model.PaymentCount - count;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\taddCustomerDialogClose() {\r\n\t\tthis.ValueChanged(\"IsCustomerPopupOpen\", false);\r\n\t}\r\n\r\n\r\n\tCheckComponentDisable = () => {\r\n\t\tconst { model, Disabled } = this.props;\r\n\t\tif (Disabled || model.PayIndex > 0) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}\r\n\r\n\r\n\trender() {\r\n\t\tconst { model, Disabled,vModel } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{(model.PeriodId && [PeriodCodes.Weekly, PeriodCodes.BiWeekly, PeriodCodes.Monthly, PeriodCodes.Quarterly].some(x => x == model.PeriodCode)) ?\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{(model.PeriodCode == PeriodCodes.Weekly) ? : null}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{(model.PeriodCode == PeriodCodes.BiWeekly) ? : null}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{(model.PeriodCode == PeriodCodes.Monthly) ? : null}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{(model.PeriodCode == PeriodCodes.Quarterly) ? : null}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t
: null}\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\r\n\r\n\t\t\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nBillRecurring.propTypes = {\r\n\tmodel: PropTypes.object,\r\n\tonModelChange: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default BillRecurring;","import Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { DdtFindType, GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass AssignDDTAccountComponent extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tClientCustomerId: props.ClientCustomerId\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tvModel: {},\r\n\t\t\tlist: [],\r\n\t\t\talert: \"\",\r\n\t\t\tisLoading: false,\r\n\t\t\tisEdit: false,\r\n\t\t\tindex: -1\r\n\t\t};\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Unique Client Id\",\r\n\t\t\t\taccessor: \"UniqueClientId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"AccountOwner\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Number\",\r\n\t\t\t\taccessor: \"ClientCustomer.CustomerNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Transit Number\",\r\n\t\t\t\taccessor: \"TransitNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Number\",\r\n\t\t\t\taccessor: \"DDTNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Issued Date\",\r\n\t\t\t\taccessor: \"IssuedDate\",\r\n\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Expire Date\",\r\n\t\t\t\taccessor: \"ExpireDate\",\r\n\t\t\t\ttype: GridColumnType.Date\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Status\",\r\n\t\t\t\taccessor: \"Status\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Balance\",\r\n\t\t\t\taccessor: \"Balance\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Name\",\r\n\t\t\t\taccessor: \"Name\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"E-Mail\",\r\n\t\t\t\taccessor: \"Email\"\r\n\t\t\t}\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tif (this.props.ClientCustomerId > 0)\r\n\t\t\tthis.HandleGetList();\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, isEdit: false, index: -1 });\r\n\t}\r\n\r\n\tHandleGetList = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/DDT/DdtSearch\",\r\n\t\t\t{\r\n\t\t\t\tIsClientCustomerIdAssigned: true,\r\n\t\t\t\tClientCustomerId: this.props.ClientCustomerId\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item.DDTList });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleAssign = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Prepaid/AssignClientCustomerIdForDdtAccount\",\r\n\t\t\tthis.state.model,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ model: { ...this.initialModel }, index: -1 });\r\n\t\t\t\tthis.HandleClear();\r\n\t\t\t\tthis.HandleGetList();\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Success\", \"Operation is successfully!\");\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tlet { model, list } = this.state;\r\n\t\tmodel = list[index];\r\n\t\tthis.setState({ isEdit: true, model, index });\r\n\t}\r\n\r\n\tRenderItemAccount = (d) => {\r\n\t\tthis.renderItemAccount = `${d.AccountNumber} - ${d.AccountName}`;\r\n\t\treturn this.renderItemAccount;\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tvar messages = [];\r\n\r\n\t\tvModel.DdtFindType = model.DdtFindType == null;\r\n\t\tif (vModel.DdtFindType) messages.push(\"DDT Assign Type must be select\");\r\n\r\n\t\tvModel.CustomerNumber = model.DdtFindType === 1 && model.CustomerNumber == null;\r\n\t\tif (vModel.CustomerNumber) messages.push(\"Customer Number must be select\");\r\n\r\n\t\tvModel.AccountId = model.DdtFindType === 2 && model.AccountId == null;\r\n\t\tif (vModel.AccountId) messages.push(\"Account must be select\");\r\n\r\n\t\tvModel.AccountNumber = model.DdtFindType === 3 && model.AccountNumber == null;\r\n\t\tif (vModel.AccountNumber) messages.push(\"Account Number must be select\");\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.props.showMessageNode(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.setState({ vModel });\r\n\t\treturn true;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { alert, isLoading, model, vModel, list } = this.state;\r\n\t\tconst { ReadOnly, Disabled, isPanelActive } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t<>\r\n\r\n\t\t\t\t{alert}\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{model.DdtFindType === 1 &&\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t{model.DdtFindType === 2 &&\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t{model.DdtFindType === 3 &&\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nAssignDDTAccountComponent.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tshowMessage: PropTypes.func.isRequired,\r\n\tshowMessageNode: PropTypes.func.isRequired,\r\n\tshowConfirmMessage: PropTypes.func.isRequired,\r\n\tClientCustomerId: PropTypes.number,\r\n\tisPanelActive: PropTypes.bool,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(AssignDDTAccountComponent, {});","import Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { withArtifex } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport AccountComponent from \"views/Components/AccountComponent\";\r\nimport { GenericExpansionPanel, GenericGrid } from \"views/Components/Generic\";\r\n\r\nclass BeneficiaryComponent extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tvModel: {},\r\n\t\t\tisEdit: false,\r\n\t\t\ttempAccount: {},\r\n\t\t\trowIndex: -1\r\n\t\t};\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Financial Institution\",\r\n\t\t\t\taccessor: \"FinancialInstitution\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Financial Institution Branch\",\r\n\t\t\t\taccessor: \"FinancialInstitutionBranch\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Account Number\",\r\n\t\t\t\taccessor: \"AccountNumber\"\r\n\t\t\t},\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ isEdit: false, rowIndex: -1 });\r\n\t\tthis.props.handleClear();\r\n\t}\r\n\r\n\tAddAccount = () => {\r\n\t\tconst { model, list } = this.props;\r\n\t\tconst { vModel, tempAccount, isEdit } = this.state;\r\n\t\tvar messages = [];\r\n\r\n\t\tif (model.FinancialInstitutionId == null) {\r\n\t\t\tvModel.FinancialInstitutionId = true;\r\n\t\t\tmessages.push(\"Financial Institution cannot be empty\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvModel.FinancialInstitutionId = false;\r\n\t\t}\r\n\r\n\t\tif (model.FinancialInstitutionBranchId == null) {\r\n\t\t\tvModel.FinancialInstitutionBranchId = true;\r\n\t\t\tmessages.push(\"Branch cannot be empty\");\r\n\t\t} else {\r\n\t\t\tvModel.FinancialInstitutionBranchId = false;\r\n\t\t}\r\n\r\n\t\tif (model.AccountNumber == null || model.AccountNumber.trim() == \"\") {\r\n\t\t\tvModel.AccountNumber = true;\r\n\t\t\tmessages.push(\"Account Number cannot be empty\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvModel.AccountNumer = false;\r\n\t\t}\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.props.showMessageNode(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvar index = list.indexOf(tempAccount);\r\n\t\t\tthis.props.handleAddAccount(index, isEdit);\r\n\t\t}\r\n\r\n\t\tthis.setState({ vModel });\r\n\t}\r\n\r\n\tDeleteAccount = () => {\r\n\t\tconst { list } = this.props;\r\n\t\tvar index = list.indexOf(this.state.tempAccount);\r\n\t\tthis.props.handleDeleteAccount(index);\r\n\t\tthis.setState({ isEdit: false, rowIndex: -1 });\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tthis.setState({ isEdit: true, tempAccount: this.props.list.filter(x => x.IsRecordValid)[index], rowIndex: index });\r\n\t\tthis.props.selectedRowChange(index);\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, list, title, labelText, ReadOnly, Required,isPanelActive } = this.props;\r\n\t\tconst { vModel, isEdit } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t x.IsRecordValid).map(d => {\r\n\t\t\t\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\t\t\t\tFinancialInstitutionId: d.FinancialInstitution.Id,\r\n\t\t\t\t\t\t\t\t\t\tFinancialInstitution: `${d.FinancialInstitution.FinancialInstitutionId} - ${d.FinancialInstitution.Description}`,\r\n\t\t\t\t\t\t\t\t\t\tFinancialInstitutionBranchId: d.FinancialInstitutionBranch.Id,\r\n\t\t\t\t\t\t\t\t\t\tFinancialInstitutionBranch: `${d.FinancialInstitutionBranch.Description} - ${d.FinancialInstitutionBranch.TransitNumber}`,\r\n\t\t\t\t\t\t\t\t\t\tAccountNumber: d.AccountNumber\r\n\t\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\tColumns={this.Columns}\r\n\t\t\t\t\t\t\t\tRowSelected={this.RowSelected}\r\n\t\t\t\t\t\t\t\tSelectedIndex={this.state.rowIndex}\r\n\t\t\t\t\t\t\t\tHideButton={true}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nBeneficiaryComponent.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tlist: PropTypes.array,\r\n\tmodel: PropTypes.object,\r\n\thandleChange: PropTypes.func,\r\n\thandleClear: PropTypes.func,\r\n\thandleAddAccount: PropTypes.func,\r\n\thandleDeleteAccount: PropTypes.func,\r\n\tselectedRowChange: PropTypes.func,\r\n\ttitle: PropTypes.string,\r\n\tlabelText: PropTypes.string,\r\n\tshowMessageNode: PropTypes.func,\r\n\tReadOnly: PropTypes.bool,\r\n\tDisabled: PropTypes.bool,\r\n\tisPanelActive:PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(BeneficiaryComponent, {});","import Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport { GenericDateInput, GenericEmailInput, GenericExpansionPanel, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle, GenericCheckInput } from \"views/Components/Generic\";\r\nimport { ProgramCodes, IdentityType } from \"views/Constants/Constant.js\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport CardBody from \"components/Card/CardBody\";\r\nimport { IdentificationMethod } from \"views/Constants/Constant\";\r\n\r\nimport { TaskPool } from \"core/TaskPool\";\r\nimport { SignalCellularNullOutlined } from \"@material-ui/icons\";\r\n\r\nclass CustomerInformationComponent extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tidentificationMethodIds: [],\r\n\r\n\t\t};\r\n\r\n\t\tthis.maxLength20 = { maxLength: 20 };\r\n\t\tthis.maxLength30 = { maxLength: 30 };\r\n\t\tthis.maxLength64 = { maxLength: 64 };\r\n\t\tthis.maxLength100 = { maxLength: 100 };\r\n\t\tthis.marginLeft2 = { marginLeft: 2 };\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.ParameterClientType = {\r\n\t\t\tParameterCode: \"ClientType\",\r\n\t\t\tParameterValue3: \"D\"\r\n\t\t};\r\n\r\n\t\tthis.ParameterIdentificationMethod = {\r\n\t\t\tParameterCode: \"IdentificationMethod\",\r\n\t\t\tParameterValue2: \"Active\"\r\n\t\t};\r\n\r\n\t\tthis.ParameterIdentityType = {\r\n\t\t\tParameterCode: \"IdentityType2\",\r\n\t\t\tParameterValue2: \"PrimaryId\"\r\n\t\t};\r\n\r\n\t\tthis.ParameterProvincialGovermentPhotoId = {\r\n\t\t\tParameterCode: \"ProvincialGovermentPhotoId\"\r\n\t\t};\r\n\r\n\t\tthis.ParameterIdentitySecondary = {\r\n\t\t\tParameterCode: \"IdentityType2\"\r\n\t\t};\r\n\r\n\t\tthis.ParameterOccupation = {\r\n\t\t\tParameterCode: \"Occupation\"\r\n\t\t};\r\n\r\n\t\tthis.ParameterResidencyCountry = {\r\n\t\t\tParameterCode: \"ResidencyCountry\"\r\n\t\t};\r\n\r\n\t\tthis.ParameterLanguage = {\r\n\t\t\tParameterCode: \"Language\"\r\n\t\t};\r\n\r\n\t\tthis.ParameterYesNo = {\r\n\t\t\tParameterCode: \"YesNo\"\r\n\t\t};\r\n\r\n\t\tthis.ParameterGender = {\r\n\t\t\tParameterCode: \"Gender\"\r\n\t\t};\r\n\r\n\t\tthis.ParameterCustomerStatus = {\r\n\t\t\tParameterCode: \"CustomerStatus\"\r\n\t\t};\r\n\r\n\t\tthis.ParameterIntendedUse = {\r\n\t\t\tParameterCode: \"IntendedUse\"\r\n\t\t};\r\n\r\n\t\tthis.ParameterCreditAgency = {\r\n\t\t\tParameterCode: \"CreditAgency\"\r\n\t\t};\r\n\r\n\t\tthis.ParameterPrimarySourceForDualProcessId = {\r\n\t\t\tParameterCode: \"DocumentForDualProcessIdentification\",\r\n\t\t\tParameterValue2: \"PrimaryDocument\"\r\n\t\t};\r\n\r\n\t\tthis.ParameterSecondarySourceForDualProcessId = {\r\n\t\t\tParameterCode: \"DocumentForDualProcessIdentification\",\r\n\t\t};\r\n\r\n\t\tthis.sortedOrderIndex = { Member: \"OrderIndex\" };\r\n\t\tthis.sortedParameterDesc = { Member: \"ParameterDesc\" };\r\n\r\n\t\tthis.renderItemPhoneCode = {};\r\n\r\n\t\tthis.retiredOrUnemployedOccupationIds = [];\r\n\t\tthis.specificIdentityTypesIds = [];\r\n\r\n\t}\r\n\r\n\tcomponentDidMount() {\t\r\n\t\t\r\n\t}\r\n\r\n\tcomponentWillMount() {\r\n\t\tthis.GetIdentificationMethodIds();\r\n\t}\r\n\r\n\tRenderItemPhoneCode = (d) => {\r\n\t\tthis.renderItemPhoneCode = \"+\" + d.Code + \" (\" + d.Name + \")\";\r\n\t\treturn this.renderItemPhoneCode;\r\n\t}\r\n\r\n\tIsNullOrEmpty(value) {\r\n\t\treturn (value == null || value === \"\" || value === '' \r\n\t\t\t\t\t\t\t\t\t || value === '\"\"' || value === '\"\"');\r\n\t}\r\n\t\r\n\tGetIdentificationMethodIds() {\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Parameter/Search\",\r\n\t\t\t{\r\n\t\t\t\tParameterCode: \"IdentificationMethod\",\r\n\t\t\t\tParameterValue2: \"Active\"\t\t\t\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tconsole.log(\"Parameters were not found.\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tlet list = responseData.Item;\r\n\t\t\t\tlet methods = [];\r\n\t\t\t\tfor(var i=0; i {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tconsole.log(\"Parameters were not found.\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tlet list = responseData.Item;\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\tlist.forEach(element => {\r\n\t\t\t\t\tthis.specificIdentityTypesIds.push(element.Id);\r\n\t\t\t\t});\t\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tGetRetiredOrUnemployedOccupationIds() {\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Parameter/Search\",\r\n\t\t\t{\r\n\t\t\t\tParameterCode: \"Occupation\"\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tconsole.log(\"Parameters were not found.\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tlet list = responseData.Item;\r\n\t\t\t\tlist = list.filter(x=>x.ParameterValue == \"Retired\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t|| x.ParameterValue == \"UnemployedSocialAssistance\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t|| x.ParameterValue == \"UnemploymentAssistance\");\r\n\t\t\t\t\r\n\t\t\t\tlist.forEach(element => {\r\n\t\t\t\t\tthis.retiredOrUnemployedOccupationIds.push(element.Id);\r\n\t\t\t\t});\t\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, tempModel, vModel, wCheckModel, Title, ReadOnly, Disabled, ForInsert } = this.props;\r\n\t\t\r\n\t\tvar IsIncludeEFT = model.Programs.includes(ProgramCodes.Bank_Programs_EFT);\r\n\t\tvar IsIncludeET = model.Programs.includes(ProgramCodes.Bank_Programs_e_Transfer);\r\n\t\tvar IsIncludeCDIC = model.Programs.includes(ProgramCodes.Bank_Programs_CDIC);\r\n\t\tvar IsIncludePrepaid = model.Programs.includes(\"WALLET\");\r\n\t\tvar IsIncludeLender = model.Programs.includes(ProgramCodes.Lender);\r\n\t\tvar IsFilledPhoneNumber = model.PhoneCountryCodeId > 0 && model.PhoneNumber;\r\n\r\n\t\tvar disabledIdVerification = !(tempModel.isPersonal && (IsIncludePrepaid));\r\n\t\t\r\n\t\tmodel.IdentityVerifyingPersonId = ClientHelper.GetUser().Id; \r\n\t\t\t\t\r\n\t\treturn (\r\n\t\t\t<>\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t 0}\r\n\t\t\t\t\t\t\t\t\t\tRequired = {!ReadOnly}\r\n\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.ClientType}\r\n\t\t\t\t\t\t\t\t\t\tAfterFetchCallback={this.props.AfterFetchCallback} />\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t `${d.ParameterValue} (${d.ParameterDesc})`}/>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{IsIncludeET &&\r\n\t\t\t\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\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\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{tempModel.isPersonal \r\n\t\t\t\t\t\t\t\t\t\t&& (this.state.identificationMethodIds.length > 0)\r\n\t\t\t\t\t\t\t\t\t && (this.state.identificationMethodIds\r\n\t\t\t\t\t\t\t\t\t\t\t\t .find(x=>x.Value == IdentificationMethod.InPersonIDVerification).Id \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t== model.IdentificationMethodId) \r\n\t\t\t\t\t\t\t\t\t\t&&\r\n\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\tPrimary Identification\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tx.Value == IdentificationMethod.InPersonIDVerification).Id)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& (IsIncludeLender || IsIncludePrepaid)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& !ReadOnly}\r\n\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.IdentityTypeId} />\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{tempModel.isPersonal &&\r\n\t\t\t\t\t\t\t\t\t\t\t\tthis.specificIdentityTypesIds.includes(model.IdentityTypeId) &&\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tx.Value == IdentificationMethod.InPersonIDVerification).Id)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& (IsIncludeLender || IsIncludePrepaid)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& !ReadOnly}\r\n\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.IdentityPlaceOfIssue}\r\n\t\t\t\t\t\t\t\t\t\t\t\tinputProps={this.maxLength30} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tx.Value == IdentificationMethod.InPersonIDVerification).Id)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& !ReadOnly}\r\n\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.IdentityNumber}\r\n\t\t\t\t\t\t\t\t\t\t\t\tinputProps={this.maxLength20} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tx.Value==IdentificationMethod.InPersonIDVerification).Id)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& !ReadOnly}\r\n\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.IdentityExpireDate}\r\n\t\t\t\t\t\t\t\t\t\t\t\tIsFuture={true}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tx.Value == IdentificationMethod.InPersonIDVerification).Id)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& !ReadOnly}\r\n\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.IdentityVerifiedBy}\r\n\t\t\t\t\t\t\t\t\t\t\t\tinputProps={this.maxLength20} />\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tx.Value == IdentificationMethod.InPersonIDVerification).Id)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& !ReadOnly}\r\n\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.IdentityVerificationDate}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\tSecondary Identification\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{tempModel.isPersonal &&\r\n\t\t\t\t\t\t\t\t\t\t\tthis.specificIdentityTypesIds.includes(model.SecondaryIdentityTypeId) &&\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t}\t\t\r\n\r\n\t\t\t\t\t\t\t\t{tempModel.isPersonal\r\n\t\t\t\t\t\t\t\t\t\t&& (this.state.identificationMethodIds.length > 0)\r\n\t\t\t\t\t\t\t\t\t\t&& (this.state.identificationMethodIds\r\n\t\t\t\t\t\t\t\t\t\t\t\t.find(x=>x.Value == IdentificationMethod.CreditFileMethod).Id \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t== model.IdentificationMethodId) \r\n\t\t\t\t\t\t\t\t\t\t&&\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\tCredit File Information\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tx.Value == IdentificationMethod.CreditFileMethod).Id)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t&& !ReadOnly}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={model.CreditAgencyId}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.props.handleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.CreditAgencyId}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={disabledIdVerification || ReadOnly}/>\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tx.Value == IdentificationMethod.CreditFileMethod).Id)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t&& !ReadOnly}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={model.CreditFileNumber}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.props.handleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={disabledIdVerification || ReadOnly}\r\n\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.CreditFileNumber}\r\n\t\t\t\t\t\t\t\t\t\t\t\tinputProps={this.maxLength20} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tx.Value == IdentificationMethod.CreditFileMethod).Id)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t&& !ReadOnly}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.props.handleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={disabledIdVerification || ReadOnly}\r\n\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.CreditFileCompletionDate} \r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t{tempModel.isPersonal \r\n\t\t\t\t\t\t\t\t\t\t&& (this.state.identificationMethodIds.length > 0)\r\n\t\t\t\t\t\t\t\t\t\t&& (this.state.identificationMethodIds\r\n\t\t\t\t\t\t\t\t\t\t\t\t .find(x=>x.Value == IdentificationMethod.DualProcessMethod).Id == \r\n\t\t\t\t\t\t\t\t\t\t\t\t \t\t\tmodel.IdentificationMethodId) \r\n\t\t\t\t\t\t\t\t\t\t&&\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\tPrimary Document\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tx.Value == IdentificationMethod.DualProcessMethod).Id)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t&& !ReadOnly}\r\n\t\t\t\t\t\t\t\t\t\t\t\tSorted={this.sortedParameterDesc}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={model.PrimaryDocumentId}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.props.handleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.PrimaryDocumentId}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={disabledIdVerification || ReadOnly}/>\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tx.Value == IdentificationMethod.DualProcessMethod).Id)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t&& !ReadOnly}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={disabledIdVerification || ReadOnly}\r\n\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.PrimaryDocumentVerificationDate} \r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tx.Value == IdentificationMethod.DualProcessMethod).Id)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t&& !ReadOnly}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValue={model.PrimaryDocumentNumber}\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.props.handleChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDisabled={disabledIdVerification || ReadOnly}\r\n\t\t\t\t\t\t\t\t\t\t\t\tIsInvalid={vModel.PrimaryDocumentNumber}\r\n\t\t\t\t\t\t\t\t\t\t\t\tinputProps={this.maxLength20} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tx.Value == Id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\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCustomerInformationComponent.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tmodel: PropTypes.object,\r\n\ttempModel: PropTypes.object,\r\n\twCheckModel: PropTypes.object,\r\n\thandleChange: PropTypes.func,\r\n\thandleNext: PropTypes.func,\r\n\tTitle: PropTypes.string,\r\n\tReadOnly: PropTypes.bool,\r\n\tDisabled: PropTypes.bool,\r\n\tForInsert: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(CustomerInformationComponent, {});","import Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { DeleteIcon, EditIcon } from \"core/Icons\";\r\nimport moment from \"moment\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport { GenericAlert, GenericDateInput, GenericEmailInput, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { ClientType } from \"views/Constants/Constant.js\";\r\nimport GridButton from \"views/Components/GridButton\";\r\n\r\nclass AddNewPayee extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tClientCustomerId: this.props.ClientCustomerId,\r\n\t\t\tIsClientCustomerPayee: this.props.IsClientCustomerPayee,\r\n\t\t\tProgramCode: this.props.ProgramCode,\r\n\t\t};\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tvModel: {},\r\n\t\t\tphoneModel: {},\r\n\t\t\tlist: [],\r\n\t\t\tisPersonal: null,\r\n\t\t\tisLoading: false,\r\n\t\t\tselected: -1,\r\n\t\t\talert: null,\r\n\t\t\tMustBeCountryCanada: false\r\n\t\t};\r\n\r\n\t\tthis.maxLength20 = { maxLength: 20 };\r\n\t\tthis.maxLength30 = { maxLength: 30 };\r\n\t\tthis.maxLength64 = { maxLength: 64 };\r\n\t\tthis.maxLength100 = { maxLength: 100 };\r\n\t\tthis.marginLeft2 = { marginLeft: 2 };\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.parameterClientType = {\r\n\t\t\tParameterCode: \"ClientType\",\r\n\t\t\tParameterValue3: \"D\"\r\n\t\t};\r\n\r\n\t\tthis.parameterLanguage = {\r\n\t\t\tParameterCode: \"Language\"\r\n\t\t};\r\n\r\n\t\tthis.parameterCountry = {};\r\n\t\tthis.parameterProvince = {};\r\n\r\n\t\tthis.sortedOrderIndex = { Member: \"OrderIndex\" };\r\n\t\tthis.sortedParameterDesc = { Member: \"ParameterDesc\" };\r\n\r\n\t\tthis.renderItemPhoneCode = {};\r\n\r\n\t\tthis.ColumnsData = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t this.SelectedRowChange(row.index)} />\r\n\t\t\t\t\t\t this.HandleDelete(row.original.Id)} />\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\twidth: 100\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"UniqueClient.ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Contact Name\",\r\n\t\t\t\taccessor: \"AliasName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Customer Type\",\r\n\t\t\t\taccessor: \"ClientType.ParameterDesc\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"E-Mail\",\r\n\t\t\t\taccessor: \"Email\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Phone Number\",\r\n\t\t\t\taccessor: \"Phone.PhoneNumber\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\trow.original.Phone && row.original.Phone.PhoneCountryCode &&\r\n\t\t\t\t\t
{\"+\" + row.original.Phone.PhoneCountryCode.Code + \" \" + row.original.Phone.PhoneNumber}
\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Address Line 1\",\r\n\t\t\t\taccessor: \"Address1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Address Line 2\",\r\n\t\t\t\taccessor: \"Address2\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"City\",\r\n\t\t\t\taccessor: \"City.Name\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Province\",\r\n\t\t\t\taccessor: \"Province.Name\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Postal Code\",\r\n\t\t\t\taccessor: \"ZipCode\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Country\",\r\n\t\t\t\taccessor: \"Country.Name\"\r\n\t\t\t}\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.FetchCanadaPost();\r\n\t\tthis.GetCanadaCountry();\r\n\t}\r\n\r\n\tFetchCanadaPost = () => {\r\n\t\tvar parent = this;\r\n\r\n\t\tProxy.POST(\"/coreapi/v1.0/Parameter/Search\",\r\n\t\t\t{\r\n\t\t\t\tParameterCode: \"CanadaPostApiKey\",\r\n\t\t\t\tParameterValue: \"CP\"\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tconsole.log(\"Canada Post Api key not fetched !\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item == null) {\r\n\t\t\t\t\tconsole.log(\"Canada Post Api key not fetched !\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item[0] == null) {\r\n\t\t\t\t\tconsole.log(\"Canada Post Api key not fetched !\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvar apikey = responseData.Item[0].ParameterDesc;\r\n\t\t\t\tconsole.log(\"KEY CP \", apikey);\r\n\r\n\t\t\t\tvar url = window.CanadaPostAddressCompleteUrl;\r\n\t\t\t\tvar path = url + apikey;\r\n\r\n\t\t\t\tvar pca;\r\n\r\n\t\t\t\tvar CanadaPostSubmit = this.SubmitCanadaPostAddressModel;\r\n\t\t\t\tvar CanadaPostRequest=this.SubmitCanadaPostRequest;\r\n\r\n\t\t\t\tconst script = document.createElement(\"script\");\r\n\t\t\t\tscript.src = path;\r\n\t\t\t\tscript.async = false;\r\n\t\t\t\tdocument.head.appendChild(script);\r\n\t\t\t\tscript.onload = function () {\r\n\t\t\t\t\tpca = window.pca;\r\n\t\t\t\t\tif (pca != null) {\r\n\t\t\t\t\t\tvar fields =\r\n\t\t\t\t\t\t\t[\r\n\t\t\t\t\t\t\t\t{ element: \"street-address\", field: \"Line1\", mode: pca.fieldMode.SEARCH },\r\n\t\t\t\t\t\t\t\t{ element: \"street-address2\", field: \"Line2\", mode: pca.fieldMode.POPULATE },\r\n\t\t\t\t\t\t\t\t{ element: \"postcode\", field: \"PostalCode\", mode: pca.fieldMode.SEARCH },\r\n\t\t\t\t\t\t\t],\r\n\t\t\t\t\t\t\toptions = {\r\n\t\t\t\t\t\t\t\tkey: apikey\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\tcontrol = new pca.Address(fields, options);\r\n\t\t\t\t\t\t\tCanadaPostRequest();\r\n\r\n\t\t\t\t\t\tcontrol.listen(\"populate\", function (address) {\r\n\t\t\t\t\t\t\tCanadaPostSubmit(address);\r\n\t\t\t\t\t\t\tparent.setState(state => {\r\n\t\t\t\t\t\t\t\tstate.model.Address1 = address.Line1;\r\n\t\t\t\t\t\t\t\tstate.model.Address2 = address.Line2;\r\n\t\t\t\t\t\t\t\tstate.model.ZipCode = address.PostalCode;\r\n\t\t\t\t\t\t\t\treturn state;\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\te => {\r\n\t\t\t\tconsole.log(\"Canada Post Api key not fetched !\");\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tSubmitCanadaPostAddressModel = (model) => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Country/CanadaPost\",\r\n\t\t\tmodel,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tvar address = { ...this.state.model };\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\taddress.CountryId = responseData.Item.CountryId;\r\n\t\t\t\t\taddress.ProvinceId = responseData.Item.ProvinceId;\r\n\t\t\t\t\taddress.CityId = responseData.Item.CityId;\r\n\t\t\t\t} else {\r\n\t\t\t\t\taddress.CountryId = 0;\r\n\t\t\t\t\taddress.ProvinceId = 0;\r\n\t\t\t\t\taddress.CityId = 0;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ model: address });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\t \r\n\tSubmitCanadaPostRequest = async () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tvar requestdata = { \r\n\r\n\t\t\tUniqueClientId: null,\r\n\t\t\tMenuCode:this.props.getMenuCode,\r\n\t\t\tAppCenterTitle:this.props.getAppCenterTitle+\"t\",\r\n\t\t\tAppLeftTitle:this.props.getAppLeftTitle\r\n\t\t\t \r\n\t\t};\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Reporting/CanadaPostRequestReportInsert\",\r\n\t\t\trequestdata,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (responseData.Item != null ) {\r\n\t\t\t\t\t \r\n\t\t\t\t}\r\n\t\t\t},\r\n \t\t);\r\n\t\t// var result = await this.props.ExecuteApiPost(\"/bankapi/v1.0/Reporting/CanadaPostRequestReportInsert\", requestdata);\r\n\t}\r\n\tHandleChange = (name, value, data) => {\r\n\t\tvar { model, vModel } = this.state;\r\n\r\n\t\tif (name == \"ClientTypeId\") {\r\n\t\t\tif (data.ParameterValue == ClientType.Personal) {\r\n\t\t\t\tthis.setState({ isPersonal: true });\r\n\t\t\t\tdelete model.CompanyName;\r\n\t\t\t\tdelete model.TradeName;\r\n\t\t\t}\r\n\t\t\tif (data.ParameterValue == ClientType.Corporate) {\r\n\t\t\t\tthis.setState({ isPersonal: false });\r\n\t\t\t\tdelete model.FirstName;\r\n\t\t\t\tdelete model.MiddleName;\r\n\t\t\t\tdelete model.LastName;\r\n\t\t\t\tdelete model.BirthDate;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (name == \"Email\")\r\n\t\t\tvModel.Email = !data.IsValid;\r\n\r\n\t\tif (name == \"CountryId\")\r\n\t\t\tvModel.CountryCode = data != null ? data.IsoCode2 : \"\";\r\n\r\n\t\tmodel[name] = value;\r\n\t\tthis.setState({ model, vModel });\r\n\t}\r\n\r\n\tHandleChangePhone = (name, newValue, data) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.phoneModel || {};\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\treturn { phoneModel: model };\r\n\t\t});\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/bankapi/v1.0/ClientCustomerPayee/Search\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ list: [] });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t});\r\n\t}\r\n\r\n\tHandleDelete = (Id) => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.GET(\"/bankapi/v1.0/ClientCustomerPayee/Delete/Id?Id=\" + Id,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.props.FillCallback(null);\r\n\t\t\t\tthis.setState({ model: { ...this.initialModel }, selected: -1 }, this.HandleSearch);\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t});\r\n\t}\r\n\r\n\tHandleSubmit = () => {\r\n\t\tconst { model, phoneModel } = this.state;\r\n\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tvar CheckOld = true;\r\n\t\tif (model.BirthDate)\r\n\t\t\tCheckOld = this.CheckOld();\r\n\r\n\t\tif (CheckOld) {\r\n\t\t\tmodel.Phone = phoneModel;\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tProxy.POST(\"/bankapi/v1.0/ClientCustomerPayee/InsertOrUpdate\",\r\n\t\t\t\tmodel,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.Cancel();\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\t\tthis.props.FillCallback(responseData.Item);\r\n\t\t\t\t\t\tthis.setState({ model: { ...this.initialModel }, selected: -1 }, this.HandleSearch);\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t});\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", \"Customer age must be bigger then 18 !\");\r\n\t\t}\r\n\t}\r\n\r\n\tCheckOld = () => {\r\n\t\tvar interval = moment.duration(DateHelper.GetDate() - DateHelper.ToMoment(this.state.model.BirthDate)).asYears();\r\n\t\tif (interval < 18) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\tGetCanadaCountry = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/coreapi/v1.0/Country/GetAll\",\r\n\t\t\tthis.emptyObject,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null && responseData.Item.length > 0) {\r\n\t\t\t\t\tmodel.CountryId = responseData.Item.filter(x => x.Code == \"1\" && x.IsoCode == \"CAN\")[0].Id;\r\n\t\t\t\t\tthis.setState({ model, MustBeCountryCanada: true });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t});\r\n\t}\r\n\r\n\tRenderItemPhoneCode = (d) => {\r\n\t\tthis.renderItemPhoneCode = \"+\" + d.Code + \" (\" + d.Name + \")\";\r\n\t\treturn this.renderItemPhoneCode;\r\n\t}\r\n\r\n\tSelectedRowChange = (index) => {\r\n\t\tvar model = this.state.list[index];\r\n\t\tthis.setState({ selected: index, model, phoneModel: model.Phone });\r\n\r\n\t\tif (model.ClientType.ParameterValue == ClientType.Personal) {\r\n\t\t\tthis.setState({ isPersonal: true });\r\n\t\t\tdelete model.CompanyName;\r\n\t\t\tdelete model.TradeName;\r\n\t\t}\r\n\t\tif (model.ClientType.ParameterValue == ClientType.Corporate) {\r\n\t\t\tthis.setState({ isPersonal: false });\r\n\t\t\tdelete model.FirstName;\r\n\t\t\tdelete model.MiddleName;\r\n\t\t\tdelete model.LastName;\r\n\t\t\tdelete model.BirthDate;\r\n\t\t}\r\n\r\n\t\tthis.props.FillCallback(model);\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({ isLoading: false, alert: this.setState({ alert: \"\" })} /> });\r\n\t}\r\n\r\n\tShowConfirmMessage(type, title, message, onConfirm, isShowCancel = true) {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: \"\" })} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model, vModel, phoneModel, isPersonal } = this.state;\r\n\t\tvar messages = [];\r\n\r\n\t\tvModel.ClientTypeId = model.ClientTypeId == null;\r\n\t\tif (vModel.ClientTypeId) messages.push(\"Customer Type must be select\");\r\n\r\n\t\tif (model.Email == null || model.Email == \"\") {\r\n\t\t\tvModel.Email = true;\r\n\t\t\tif (vModel.Email) messages.push(\"E-Mail cannot be empty\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (vModel.Email) messages.push(\"E-Mail is invalid\");\r\n\t\t}\r\n\r\n\t\tif (isPersonal) {\r\n\t\t\tvModel.FirstName = (model.FirstName == null || model.FirstName == \"\");\r\n\t\t\tif (vModel.FirstName) messages.push(\"First Name cannot be empty\");\r\n\r\n\t\t\tvModel.LastName = (model.LastName == null || model.LastName == \"\");\r\n\t\t\tif (vModel.LastName) messages.push(\"Last Name cannot be empty\");\r\n\t\t} else {\r\n\t\t\tvModel.CompanyName = (model.CompanyName == null || model.CompanyName == \"\");\r\n\t\t\tif (vModel.CompanyName) messages.push(\"Company Name cannot be empty\");\r\n\r\n\t\t\tvModel.TradeName = (model.TradeName == null || model.TradeName == \"\");\r\n\t\t\tif (model.TradeName == null || model.TradeName == \"\") messages.push(\"Legal Name cannot be empty\");\r\n\t\t}\r\n\t\tif (phoneModel.PhoneNumber) {\r\n\t\t\tvModel.PhoneNumber = (phoneModel.PhoneNumber.toString().length != 10);\r\n\t\t\tif (vModel.PhoneNumber) messages.push(\"Phone Number must be 10 Digits !.\");\r\n\t\t}\r\n\r\n\t\tvModel.CountryId = model.CountryId == null;\r\n\t\tif (vModel.CountryId) messages.push(\"Address Country cannot be empty.\");\r\n\r\n\t\t// vModel.ProvinceId = model.ProvinceId == null;\r\n\t\t// if (vModel.ProvinceId) messages.push(\"Province must be select\");\r\n\r\n\t\t// vModel.CityId = model.CityId == null;\r\n\t\t// if (vModel.CityId) messages.push(\"City must be select\");\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tGetCountryParameter = () => {\r\n\t\tthis.parameterCountry.CountryId = this.state.model.CountryId\r\n\t\treturn this.parameterCountry;\r\n\t}\r\n\r\n\tGetProvinceParameter = () => {\r\n\t\tthis.parameterProvince.ProvinceId = this.state.model.ProvinceId\r\n\t\treturn this.parameterProvince;\r\n\t}\r\n\r\n\tCancel = () => {\r\n\t\tthis.setState({\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tselected: -1\r\n\t\t});\r\n\t\tthis.props.Cancel();\r\n\t};\r\n\r\n\thideAlert = () => { this.setState({ alert: null, isLoading: false }); }\r\n\r\n\trender() {\r\n\t\tconst { ReadOnly } = this.props;\r\n\t\tconst { alert, model, vModel, phoneModel, list, isLoading, isPersonal, MustBeCountryCanada } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t<>\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t{!isPersonal &&\r\n\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\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t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nAddNewPayee.propTypes = {\r\n\tCustomerNumber: PropTypes.any,\r\n\tFillCallback: PropTypes.func,\r\n\tIsClientCustomerPayee: PropTypes.bool,\r\n\tProgramCode: PropTypes.string.isRequired,\r\n\tLabelMd: PropTypes.number,\r\n\tDisabled: PropTypes.bool,\r\n\tgetAppLeftTitle:PropTypes.string,\r\n\tgetAppCenterTitle:PropTypes.string,\r\n\tgetMenuCode:PropTypes.string\r\n};\r\n\r\nexport default withArtifex(AddNewPayee, {});","import { withArtifex } from \"core\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport QrImage from \"assets/img/qr.png\";\r\n\r\nclass CampaignCouponTemplate extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tCouponSampleCode: \"XT69FK\"\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tvar sample = this.GenerateRandomHash();\r\n\t\tthis.setState({ CouponSampleCode: sample });\r\n\t}\r\n\r\n\tGenerateRandomHash = () => {\r\n\t\tconst chars = [...\"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\"];\r\n\t\tvar rnd = [...Array(6)].map(i => chars[Math.random() * chars.length | 0]).join(\"\");\r\n\t\treturn rnd;\r\n\t}\r\n\r\n\r\n\trender() {\r\n\t\tconst { classes, model } = this.props;\r\n\t\tconst { isLoading } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t{model.Image != null && (\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t{model.Logo1 != null && (\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t{model.Logo2 != null && (\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
{model.Reward}
\r\n\t\t\t\t\t\t\t\t\t\t{model.Message}\r\n\t\t\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
Promotion Code
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{model.CouponCode != null ? model.CouponCode : this.state.CouponSampleCode}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
Expiry Date
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{model.ExpireDateTime == null ? \"\" : Formatter.FormatDate(model.ExpireDateTime)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCampaignCouponTemplate.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(CampaignCouponTemplate, {});","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer\";\r\nimport GridItem from \"components/Grid/GridItem\";\r\nimport { Proxy } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport { GenericAlert, GenericDialog, GenericDialogActions, GenericLabel, GenericNumberInput } from \"views/Components/Generic\";\r\n\r\nclass LoanCalculator extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\tvModel: {},\r\n\t\t\tisCalculationResultOpen: false,\r\n\t\t\talert: null,\r\n\t\t\tFeeTotalSetupAmount: 0,\r\n\t\t\tisLoading: false,\r\n\t\t\tFeeProfileCalculateRate: 0,\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tif (this.props.isRateFeeCalculator == true) {\r\n\t\t\tthis.GetLOSMaxFee();\r\n\t\t\tthis.TotalSetupFeeCalculate();\r\n\t\t}\r\n\t}\r\n\tGetLOSMaxFee = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Parameter/Search\",\r\n\t\t\t{\r\n\t\t\t\tParameterCode: 'LOSMaxFeeRate',\r\n\t\t\t\tParameterValue: 0,\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (responseData.Item.length > 0) {\r\n\t\t\t\t\tthis.setState({ FeeProfileCalculateRate: responseData.Item[0].ParameterValue2 });\r\n\t\t\t\t\tconsole.log(\"GetLOSMaxFeeRate ->> \" + this.state.FeeProfileCalculateRate);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tthis.ErrorCallback\r\n\t\t);\r\n\t}\r\n\r\n\tErrorCallback = (error) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"Error\", \"An error occurred during the api visit\" + error);\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tValueChanged = (name, value, data) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model;\r\n\t\t\tmodel[name] = value;\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tCalculate = () => {\r\n\t\tif (!this.ValidateCalculate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar { model } = this.state;\r\n\t\tif (model.TotalSetupAmount == undefined || model.TotalSetupAmount == null) {\r\n\t\t\tmodel.TotalSetupAmount = 0;\r\n\t\t}\r\n\t\tvar rateOfInterest = model.MonthlyInterestRate / 1200;\r\n\t\tvar monthlyPayment = (rateOfInterest * model.LoanAmount) / (1 - Math.pow(1 + rateOfInterest, model.Period * -1));\r\n\r\n\t\tmodel.MonthlyPayment = monthlyPayment + model.TotalSetupAmount / model.Period;\r\n\t\tmodel.TotalPaybackAmount = monthlyPayment * model.Period + model.TotalSetupAmount;\r\n\t\tmodel.TotalInterest = monthlyPayment * model.Period - model.LoanAmount;\r\n\t\tif (this.props.isRateFeeCalculator == true) {\r\n\t\t\tmodel.MaxFee = (model.TotalPaybackAmount / 100) * this.state.FeeProfileCalculateRate;\r\n\t\t}\r\n\t\tthis.setState({ isCalculationResultOpen: true });\r\n\t}\r\n\r\n\tClose = () => {\r\n\t\tconst { CloseLoanCalculator } = this.props;\r\n\r\n\t\tif (CloseLoanCalculator != null) {\r\n\t\t\tCloseLoanCalculator();\r\n\t\t}\r\n\t}\r\n\r\n\tDialogCalculationResultClose = () => {\r\n\t\tthis.setState({ isCalculationResultOpen: false });\r\n\t}\r\n\tTotalSetupFeeCalculate() {\r\n\t\tlet { FeeTotalSetupAmount } = this.state\r\n\t\tlet { FeeLoanSetupProfileModel, isRateFeeCalculator } = this.props\r\n\r\n\t\tif (isRateFeeCalculator == true && FeeLoanSetupProfileModel != undefined && FeeLoanSetupProfileModel != null) {\r\n\t\t\tFeeTotalSetupAmount = 0;\r\n\t\t\tFeeLoanSetupProfileModel.FeeLoanSetupProfileList.map((setupFee, i, array) => {\r\n\t\t\t\tFeeTotalSetupAmount += FeeLoanSetupProfileModel.FeeLoanSetupProfileValueList[(FeeLoanSetupProfileModel.Id == undefined ? 0 : FeeLoanSetupProfileModel.Id) + \"-\" + setupFee.LOSSetupFeeId]\r\n\t\t\t})\r\n\t\t\tlet { model } = this.state;\r\n\t\t\tmodel.TotalSetupAmount = FeeTotalSetupAmount;\r\n\t\t\tthis.setState({ model })\r\n\t\t}\r\n\t}\r\n\r\n\tValidateCalculate() {\r\n\t\tconst { model } = this.state;\r\n\t\tlet { vModel } = this.state;\r\n\t\tvar messages = [];\r\n\r\n\t\tif (!model.LoanAmount) {\r\n\t\t\tmessages.push(\"Loan amount cannot be empty.\");\r\n\t\t} else {\r\n\t\t\tvModel.LoanAmount = false;\r\n\t\t}\r\n\t\tif (!model.Period) {\r\n\t\t\tmessages.push(\"Period cannot be empty.\");\r\n\t\t\tvModel.Period = true;\r\n\t\t} else {\r\n\t\t\tvModel.Period = false;\r\n\t\t}\r\n\t\tif (!model.MonthlyInterestRate) {\r\n\t\t\tmessages.push(\"Monthly interest rate cannot be empty.\");\r\n\t\t\tvModel.MonthlyInterestRate = true;\r\n\t\t} else {\r\n\t\t\tvModel.MonthlyInterestRate = false;\r\n\t\t}\r\n\t\tthis.setState({ vModel });\r\n\t\tif (messages.length > 0) {\r\n\t\t\tif (messages.length > 9) {\r\n\t\t\t\tvar moreWarn = messages.length - 8;\r\n\t\t\t\tmessages = messages.slice(0, 8);\r\n\t\t\t\tmessages.push(\"And \" + moreWarn + \" more warnings\");\r\n\t\t\t}\r\n\t\t\tthis.ShowMessageNode(\"error\", \"Please Fill Required Fields\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert:\r\n\t\t\t\t\r\n\t\t});\r\n\t}\r\n\r\n\tHideAlert = () => {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, isCalculationResultOpen, vModel } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{this.props.isRateFeeCalculator != true ? \"\" :\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tthis.props.isRateFeeCalculator != true ? \"\" :\r\n\t\t\t\t\t\t\t\t\t\tthis.state.model.MaxFee > this.state.model.TotalSetupAmount ?\r\n\t\t\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tCalculate\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tClose\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nLoanCalculator.propTypes = {\r\n\tCloseLoanCalculator: PropTypes.func,\r\n\tisRateFeeCalculator: PropTypes.bool,\r\n\tFeeLoanSetupProfileModel: PropTypes.object,\r\n\r\n};\r\n\r\nexport default LoanCalculator;","import GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport AlertHelper from \"core/AlertHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport { GenericDateInput, GenericEmailInput, GenericNumberInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { DefaultBankInformation } from \"views/Constants/Constant.js\";\r\n\r\nclass DDTCustomerInfo extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {}\r\n\t\t};\r\n\r\n\t\tthis.maxLength20 = { maxLength: 20 };\r\n\t\tthis.maxLength30 = { maxLength: 30 };\r\n\t\tthis.maxLength100 = { maxLength: 100 };\r\n\t\tthis.statusIdParameter = {\r\n\t\t\tParameterCode: \"AccountStatus\",\r\n\t\t\t\"ParameterValue\": \"\",\r\n\t\t\tParameterValue2: \"DDT\",\r\n\t\t\t\"ParameterDesc\": \"\"\r\n\t\t};\r\n\r\n\t\tthis.FetchCanadaPost = this.FetchCanadaPost.bind(this);\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.FetchCanadaPost();\r\n\t}\r\n\r\n\tFetchCanadaPost = () => {\r\n\t\tvar parent = this;\r\n\r\n\t\tProxy.POST(\"/coreapi/v1.0/Parameter/Search\",\r\n\t\t\t{\r\n\t\t\t\tParameterCode: \"CanadaPostApiKey\",\r\n\t\t\t\tParameterValue: \"CP\"\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tconsole.log(\"Canada Post Api key not fetched !\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item == null) {\r\n\t\t\t\t\tconsole.log(\"Canada Post Api key not fetched !\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item[0] == null) {\r\n\t\t\t\t\tconsole.log(\"Canada Post Api key not fetched !\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvar apikey = responseData.Item[0].ParameterDesc;\r\n\t\t\t\tconsole.log(\"KEY CP \", apikey);\r\n\r\n\t\t\t\tvar url = window.CanadaPostAddressCompleteUrl;\r\n\t\t\t\tvar path = url + apikey;\r\n\r\n\t\t\t\tvar pca;\r\n\r\n\t\t\t\tvar CanadaPostSubmit = this.SubmitCanadaPostAddressModel;\r\n\t\t\t\tvar CanadaPostRequest=this.SubmitCanadaPostRequest;\r\n\r\n\t\t\t\tconst script = document.createElement(\"script\");\r\n\t\t\t\tscript.src = path;\r\n\t\t\t\tscript.async = false;\r\n\t\t\t\tdocument.head.appendChild(script);\r\n\t\t\t\tscript.onload = function () {\r\n\t\t\t\t\tpca = window.pca;\r\n\t\t\t\t\tif (pca != null) {\r\n\t\t\t\t\t\tvar fields =\r\n\t\t\t\t\t\t\t[\r\n\t\t\t\t\t\t\t\t{ element: \"street-address\", field: \"Line1\", mode: pca.fieldMode.SEARCH },\r\n\t\t\t\t\t\t\t\t{ element: \"street-address2\", field: \"Line2\", mode: pca.fieldMode.POPULATE },\r\n\t\t\t\t\t\t\t\t{ element: \"postcode\", field: \"PostalCode\", mode: pca.fieldMode.SEARCH },\r\n\t\t\t\t\t\t\t],\r\n\t\t\t\t\t\t\toptions = {\r\n\t\t\t\t\t\t\t\tkey: apikey\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\tcontrol = new pca.Address(fields, options);\r\n\t\t\t\t\t\t\tCanadaPostRequest();\r\n\r\n\t\t\t\t\t\tcontrol.listen(\"populate\", function (address) {\r\n\t\t\t\t\t\t\tCanadaPostSubmit(address);\r\n\t\t\t\t\t\t\tparent.setState(state => {\r\n\t\t\t\t\t\t\t\tstate.model.AddressLine1 = address.Line1;\r\n\t\t\t\t\t\t\t\tstate.model.AddressLine2 = address.Line2;\r\n\t\t\t\t\t\t\t\tstate.model.ZipCode = address.PostalCode;\r\n\t\t\t\t\t\t\t\treturn state;\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\te => {\r\n\t\t\t\tconsole.log(\"Canada Post Api key not fetched !\");\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tSubmitCanadaPostAddressModel = (model) => {\r\n\t\tconst { handleChange } = this.props;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Country/CanadaPost\",\r\n\t\t\tmodel,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\thandleChange(\"AddressLine1\", this.state.model.AddressLine1);\r\n\t\t\t\t\thandleChange(\"AddressLine2\", this.state.model.AddressLine2);\r\n\t\t\t\t\thandleChange(\"ZipCode\", this.state.model.ZipCode);\r\n\t\t\t\t\thandleChange(\"CountryId\", responseData.Item.CountryId);\r\n\t\t\t\t\thandleChange(\"ProvinceId\", responseData.Item.ProvinceId);\r\n\t\t\t\t\thandleChange(\"CityId\", responseData.Item.CityId);\r\n\t\t\t\t} else {\r\n\t\t\t\t\thandleChange(\"CountryId\", 0);\r\n\t\t\t\t\thandleChange(\"ProvinceId\", 0);\r\n\t\t\t\t\thandleChange(\"CityId\", 0);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tSubmitCanadaPostRequest = async () => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tvar requestdata = { \r\n\r\n\t\t\tUniqueClientId: null,\r\n\t\t\tMenuCode:this.props.getMenuCode,\r\n\t\t\tAppCenterTitle:this.props.getAppCenterTitle,\r\n\t\t\tAppLeftTitle:this.props.getAppLeftTitle\r\n\t\t};\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Reporting/CanadaPostRequestReportInsert\",\r\n\t\t\trequestdata,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (responseData.Item != null ) {\r\n\t\t\t\t\t \r\n\t\t\t\t}\r\n\t\t\t},\r\n \t\t);\r\n\t\t// var result = await this.props.ExecuteApiPost(\"/bankapi/v1.0/Reporting/CanadaPostRequestReportInsert\", requestdata);\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: AlertHelper.CreateAlert(title, message, type, () => {\r\n\t\t\t\tthis.setState({ alert: \"\" });\r\n\t\t\t})\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { DDTModel, handleChange, PhoneModel, propModel, vModel } = this.props;\r\n\t\tconst { isLoading } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t<>\r\n\t\t\t\t{this.state.alert}\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t \"+\" + d.Code + \" (\" + d.Name + \")\"} />\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nDDTCustomerInfo.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tDDTModel: PropTypes.object,\r\n\thandleChange: PropTypes.func,\r\n\tPhoneModel: PropTypes.object,\r\n\tpropModel: PropTypes.object,\r\n\tvModel: PropTypes.object,\r\n\tgetAppLeftTitle:PropTypes.string,\r\n\tgetAppCenterTitle:PropTypes.string,\r\n\tgetMenuCode:PropTypes.string\r\n};\r\n\r\nexport default withArtifex(DDTCustomerInfo, {});","import { withArtifex } from \"core\";\r\nimport React, { Component } from \"react\";\r\nimport { ProgramCodes } from \"views/Constants/Constant.js\";\r\nimport CustomerDefinition from \"views/Customer/CustomerDefinition.jsx\";\r\n\r\nclass AddNewCustomerEFT extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tLimitToken: false\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nexport default withArtifex(AddNewCustomerEFT, {});","import { withArtifex } from \"core\";\r\nimport React, { Component } from \"react\";\r\nimport EftOrETransferAddNewCustomerComponent from \"../Components/EftOrETransferAddNewCustomerComponent.jsx\";\r\nimport AccountLimitToolbar from \"views/Components/AccountLimitToolbar.jsx\";\r\nimport { ProgramCodes } from \"views/Constants/Constant.js\";\r\nimport { Proxy } from \"core\";\r\nimport CustomerDefinition from \"views/Customer/CustomerDefinition.jsx\";\r\nclass AddNewCustomereTransfer extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tLimitToken: false\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.RefreshToolBar();\r\n\t}\r\n\r\n\tRefreshToolBar = () => {\r\n\t\tthis.setState({ LimitToken: !this.state.LimitToken });\r\n\t}\r\n\trender() {\r\n\t\tconst { LimitToken } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nexport default withArtifex(AddNewCustomereTransfer, {});","import { List } from \"@material-ui/icons\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport CardIcon from \"components/Card/CardIcon.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport { EmailIcon, PrintIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport { GenericAlert, GenericDateInput, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nconst styles = ({\r\n\tpictureSrc: {\r\n\t\twidth: 75,\r\n\t\theight: 75\r\n\t}\r\n});\r\n\r\nconst initialState = {\r\n\tmodel: {\r\n\t\tFileTypeId: null,\r\n\t\tDescription: null,\r\n\t\tVersionNumber: null,\r\n\t},\r\n\tisLoading: false,\r\n\tReadOnly: true,\r\n\tLedgerCardList: [],\r\n\tmodelrow: {},\r\n\tselected: null,\r\n};\r\n\r\nclass LedgerCard extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.emptyObject = {};\r\n\t\tthis.initalModel = {};\r\n\r\n\t\tthis.FileTypeParameterCode = { ParameterCode: \"LOSFileType\" };\r\n\t\tthis.state = initialState;\r\n\r\n\t\tthis.ColumnsData = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Payment No\",\r\n\t\t\t\taccessor: \"Payment No\",\r\n\t\t\t\tCell: (row) => { return
{row.index + 1}
; },\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Installment Date\",\r\n\t\t\t\taccessor: \"InstallmentDateFormatted\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Beginning Balance\",\r\n\t\t\t\taccessor: \"BeginningBalanceFormatted\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Principal Amount\",\r\n\t\t\t\taccessor: \"PrincipalAmountFormatted\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Interest Balance\",\r\n\t\t\t\taccessor: \"InterestBalanceFormatted\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Install Amount\",\r\n\t\t\t\taccessor: \"InstallmentAmountFormatted\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Ending Balance\",\r\n\t\t\t\taccessor: \"EndingBalanceFormatted\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"InstallmentDate\",\r\n\t\t\t\taccessor: \"InstallmentDate\",\r\n\t\t\t\tshow: false\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.InterestTypeParameterCode = { ParameterCode: \"LOSInterestType\" };\r\n\t\tthis.PeriodParameterCode = { ParameterCode: \"Period\" };\r\n\t\tthis.PayOptionParameterCode = { ParameterCode: \"LOSPayOption\" };\r\n\t\tthis.YesNoParameterCode = { ParameterCode: \"LOSYesNo\" };\r\n\r\n\t\tthis.sortedInstallmentDate = [{ id: \"InstallmentDate\", desc: false }];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.Search();\r\n\t}\r\n\r\n\tSearch = () => {\r\n\t\tconst { ApplicationId } = this.props;\r\n\t\tif (ApplicationId > 0) {\r\n\t\t\tthis.setState({ isLoading: true });\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/lmsapi/v1.0/LoanLedgerCard/GetLoanLedgerCard\",\r\n\t\t\t\t{ ApplicationId },\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tconsole.log(\"GetLedgerCard ->\", responseData.IsSucceeded);\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\t\tconsole.log(responseData);\r\n\t\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\t\tLedgerCardList: responseData.Item.LedgerCardList || [],\r\n\t\t\t\t\t\t\tTotalPaymentAmount: responseData.Item.FromattedTotalPayment\r\n\t\t\t\t\t\t\t, isLoading: false\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.setState({ LedgerCardList: [], isLoading: false });\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t}\r\n\r\n\tHandleChange = (name, newValue) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model, selected: null, });\r\n\r\n\t}\r\n\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\r\n\tHandleClickClearOk = () => {\r\n\t\tthis.HideAlert();\r\n\t\tthis.setState({ model: {} });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.ShowConfirmMessage(\"warning\", \"Warning\", \"This will erase the information you entered on the screen. Are you sure you want to quit this agreement template?\", () => this.HandleClickClearOk());\r\n\t}\r\n\r\n\tErrorCallback = (error) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"Error\", \"An error occurred during the api visit\" + error);\r\n\t}\r\n\r\n\tHandleDocument = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.FileDownload(\r\n\t\t\t\"/lmsapi/v1.0/LoanLedgerCard/Print\",\r\n\t\t\t\"LoanLedgerCard-\" + Math.floor(Math.random() * Math.floor(999999)),\r\n\t\t\t\"pdf\",\r\n\t\t\t{\r\n\t\t\t\tLedgerCardList: this.state.LedgerCardList,\r\n\t\t\t\tBorrowerName: this.props.model.Applicant.FullName,\r\n\t\t\t\tApplicationNumber: this.props.model.ApplicationNumber\r\n\t\t\t},\r\n\t\t\t() => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleSendMail = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/lmsapi/v1.0/LoanLedgerCard/SendEmail\",\r\n\t\t\t{\r\n\t\t\t\tApplicantId: this.props.model.ApplicantId,\r\n\t\t\t\tLedgerCardList: this.state.LedgerCardList,\r\n\t\t\t\tBorrowerName: this.props.model.Applicant.FullName,\r\n\t\t\t\tApplicationNumber: this.props.model.ApplicationNumber\r\n\t\t\t},\r\n\t\t\t() => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Operation Successfully Completed\");\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tShowMessageAndRefresh = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlertAndRefresh()} />\r\n\t\t});\r\n\t}\r\n\thideAlertAndRefresh = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t\twindow.location.reload();\r\n\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: null })} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\r\n\tHideAlert = () => {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\tRefreshToolBar = () => {\r\n\t\tthis.setState({ LimitToken: !this.state.LimitToken });\r\n\t}\r\n\r\n\tSelectedRowChange = (e, index) => {\r\n\t\tconst model = this.state.LedgerCardList[index];\r\n\t\tthis.setState({ modelrow: model });\r\n\t\tconsole.log(this.state.modelrow);\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes, model } = this.props;\r\n\t\tconst { alert, isLoading, ReadOnly } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t{alert}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\tLoan Information\r\n\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n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n\tApplicantSaved: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tIsPopUp: PropTypes.bool,\r\n\tmodel: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(LedgerCard, styles);","// @ts-nocheck\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { withArtifex } from \"core\";\r\nimport PropTypes, { any } from \"prop-types\";\r\nimport React from \"react\";\r\nimport { GenericAlert, GenericDateInput, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { ChargeBack, ClearingDisputeStatus, ClearingIssuerFlag, PgmCodeType } from \"views/Constants/Constant.js\";\r\nimport DisputeAction from \"views/PPaid/Clearing/Dispute/DisputeAction\";\r\nimport DisputeFeeDetail from \"views/PPaid/Clearing/Dispute/DisputeFeeDetail\";\r\n\r\n\r\nclass Dispute extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tdialog: {\r\n\t\t\t\tisOpen: false,\r\n\t\t\t\tdialogData: []\r\n\t\t\t},\r\n\t\t\tselected: -1,\r\n\t\t\tisLoading: false,\r\n\t\t\tmodel: {},\r\n\t\t\tisAddDisputeFee: true,\r\n\t\t\tisDisputeFeeDialogOpen: false,\r\n\t\t\tisDisputeActionDialogOpen: false,\r\n\t\t\tfeeModel: {},\r\n\t\t\tfeeList: [],\r\n\t\t\tselectedFeeIndex: -1,\r\n\t\t\tDisputeActionData: [],\r\n\r\n\t\t};\r\n\r\n\t\tthis.maxLength1 = { maxLength: 1 };\r\n\t\tthis.maxLength19 = { maxLength: 19 };\r\n\t\tthis.maxLength6 = { maxLength: 6 };\r\n\t\tthis.maxLength17 = { maxLength: 17 };\r\n\t\tthis.maxLength4 = { maxLength: 3 };\r\n\t\tthis.maxLength3 = { maxLength: 3 };\r\n\t\tthis.maxLength22 = { maxLength: 22 };\r\n\t\tthis.maxLength16 = { maxLength: 16 };\r\n\t\tthis.maxLength45 = { maxLength: 45 };\r\n\t\tthis.maxLength13 = { maxLength: 13 };\r\n\t\tthis.maxLength10 = { maxLength: 10 };\r\n\t\tthis.maxLength256 = { maxLength: 256 };\r\n\t\tthis.maxLength11 = { maxLength: 11 };\r\n\t\tthis.maxLength999 = { maxLength: 999 };\r\n\t\tthis.maxLength12 = { maxLength: 12 };\r\n\t\tthis.maxLength15 = { maxLength: 15 };\r\n\t\tthis.maxLength8 = { maxLength: 8 };\r\n\r\n\r\n\t\tthis.RepresentmentReasonDisable = false;\r\n\t\tthis.RepresentmentStatusDisable = false;\r\n\r\n\t\tthis.RetriavalRequestReasonDisable = false;\r\n\t\tthis.retriavalRequestStatusDisable = false;\r\n\r\n\t\tthis.RetriavalResponseReasonDisable = false;\r\n\t\tthis.RetriavalResponseStatusDisable = false;\r\n\r\n\t\tthis.ChargebackReasonDisable = false;\r\n\t\tthis.ChargebackStatusDisable = false;\r\n\r\n\t\tthis.SecondChargebackReasonDisable = false;\r\n\t\tthis.SecondChargebackStatusDisable = false;\r\n\r\n\r\n\t\tthis.IssuerAcquirerFlag = \"\";\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tif (this.props.KnownCustomer)\r\n\t\t\tthis.HandleClickByKeyPressed();\r\n\t}\r\n\r\n\tValueChanged = (name, newValue, data) => {\r\n\t\tthis.props.onModelChange(model => {\r\n\t\t\tif (name == \"IssuerAcquirerFlagId\") {\r\n\t\t\t\tif (data.ParameterValue == ClearingIssuerFlag.Issuer) {\r\n\t\t\t\t\tthis.IssuerAcquirerFlag = ClearingIssuerFlag.Issuer;\r\n\t\t\t\t}\r\n\t\t\t\telse if (data.ParameterValue == ClearingIssuerFlag.Acquirer) {\r\n\t\t\t\t\tthis.IssuerAcquirerFlag = ClearingIssuerFlag.Acquirer;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\treturn model;\r\n\t\t});\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tconst data = this.props.model.ClearingDisputeFeeData[index];\r\n\t\tthis.props.onFeeModelChange(x => {\r\n\t\t\tx = data;\r\n\t\t\treturn x;\r\n\t\t});\r\n\t\tthis.setState({ isAddDisputeFee: false, selectedFeeIndex: index });\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: null })} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\tCloseSelectCallback = () => {\r\n\t\tthis.setState({ isChipDialogOpen: false, isPdsDialogOpen: false });\r\n\t}\r\n\r\n\tAddOrUpdateDisputeFee = () => {\r\n\r\n\t\tthis.setState({\r\n\t\t\tisDisputeFeeDialogOpen: true\r\n\t\t});\r\n\t}\r\n\tClearDisputeFee = () => {\r\n\r\n\t\tthis.setState({ isAddDisputeFee: true });\r\n\t\tthis.props.onFeeModelClear();\r\n\t}\r\n\r\n\tDeleteDispute = () => {\r\n\t\tif (this.state.selectedFeeIndex != -1) {\r\n\t\t\tvar data = this.props.model.ClearingDisputeFeeData[this.state.selectedFeeIndex];\r\n\t\t\tif (data && !data.Id)\r\n\t\t\t\tthis.props.onFeeModelDelete(this.state.selectedFeeIndex);\r\n\t\t}\r\n\t}\r\n\r\n\tHandleClickFeeDispute = () => {\r\n\r\n\t\tif (!this.ValidateFeeModel()) return false;\r\n\r\n\t\tif (this.state.isAddDisputeFee) {\r\n\t\t\tthis.props.onFeeModelPush(model => {\r\n\t\t\t\treturn model;\r\n\t\t\t});\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.props.onFeeModelEdit(this.state.selectedFeeIndex);\r\n\t\t}\r\n\t\tthis.props.onFeeModelClear();\r\n\t\tthis.setState({ isDisputeFeeDialogOpen: false, feeModel: {}, isAddDisputeFee: true });\r\n\t}\r\n\r\n\r\n\r\n\tCancelSelectCallback = () => {\r\n\t\tthis.setState({\r\n\t\t\tisDisputeFeeDialogOpen: false, isAddDisputeFee: true, isDisputeActionDialogOpen: false\r\n\t\t});\r\n\t\tthis.props.onFeeModelClear();\r\n\t\tthis.props.onActionModelClose();\r\n\t};\r\n\r\n\r\n\tCheckDisableParameter = (PgmCode) => {\r\n\t\tif (PgmCode == PgmCodeType.Visa) {\r\n\r\n\t\t\tthis.RepresentmentReasonDisable = true;\r\n\t\t\tthis.RepresentmentStatusDisable = true;\r\n\r\n\t\t\tthis.SecondChargebackReasonDisable = true;\r\n\t\t\tthis.SecondChargebackStatusDisable = true;\r\n\t\t}\r\n\t}\r\n\r\n\tValidateFeeModel = () => {\r\n\r\n\t\tconst disputeFeeModel = this.props.disputeFeeModel;\r\n\r\n\t\tif (disputeFeeModel.FeeStatusId) {\r\n\t\t\tif (!disputeFeeModel.FeeReasonCodeId) {\r\n\t\t\t\tthis.props.showMessage(\"warning\", \"Warning\", \"Fee information can not be empty\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (disputeFeeModel.FeeReturnStatusId) {\r\n\t\t\tif (!disputeFeeModel.FeeStatusId) {\r\n\t\t\t\tthis.props.showMessage(\"warning\", \"Warning\", \"Fee information can not be empty\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tif (!disputeFeeModel.FeeReturnReasonCodeId) {\r\n\t\t\t\tthis.props.showMessage(\"warning\", \"Warning\", \"Fee Return Reason Code can not be empty\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (disputeFeeModel.FeeResubmissionStatusId) {\r\n\t\t\tif (!disputeFeeModel.FeeReturnStatusId) {\r\n\t\t\t\tthis.props.showMessage(\"warning\", \"Warning\", \"Fee Return information can not be empty\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tif (!disputeFeeModel.FeeResubmissionReasonCodeId) {\r\n\t\t\t\tthis.props.showMessage(\"warning\", \"Warning\", \"Fee Resubmission Reason Code cannot be empty\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (disputeFeeModel.FeeArbitrationStatusId) {\r\n\t\t\tif (!disputeFeeModel.FeeResubmissionStatusId) {\r\n\t\t\t\tthis.props.showMessage(\"warning\", \"Warning\", \"Fee ReSubmission Status information cannot be empty\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tif (!disputeFeeModel.FeeArbitrationReasonCodeId) {\r\n\t\t\t\tthis.props.showMessage(\"warning\", \"Warning\", \"Fee Arbitration Reason Code cannot be empty\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\r\n\r\n\trender() {\r\n\t\tconst { PgmCode, model, isActionDialogOpen } = this.props;\r\n\t\tconst { isLoading, isAddDisputeFee } = this.state;\r\n\r\n\t\tthis.IssuerAcquirerFlag = model.IssuerAcquirerFlag;\r\n\t\tthis.CheckDisableParameter(PgmCode);\r\n\r\n\t\treturn (\r\n\t\t\t<>\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\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\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{isAddDisputeFee &&\r\n\t\t\t\t\t\t\t\t\t\t\t< Button size=\"sm\" onClick={this.AddOrUpdateDisputeFee} >Add Fee\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t{!isAddDisputeFee &&\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{!isAddDisputeFee && this.props.model.ClearingDisputeFeeData.filter(x => x.Id > 0).length == 0 &&\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nDispute.propTypes = {\r\n\tinitialModel: PropTypes.any,\r\n\tHandleChange: PropTypes.func,\r\n\tFillCallback: PropTypes.func,\r\n\tLabelMd: PropTypes.number,\r\n\tDisabled: PropTypes.bool,\r\n\tIsDisputeDialogOpen: PropTypes.any,\r\n\tclasses: PropTypes.object,\r\n\tPgmCode: PropTypes.any,\r\n\tIssuerAcquirerFlag: PropTypes.any\r\n};\r\n\r\nexport default withArtifex(Dispute, {});","import sweetAlertStyle from \"assets/jss/material-dashboard-pro-react/views/sweetAlertStyle.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport CustomerComponent from \"views/Components/CustomerComponent.jsx\";\r\nimport { GenericAlert, GenericExpansionPanel, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\nimport { ProgramCodes } from \"views/Constants/Constant.js\";\r\n\r\nconst styles = ({\r\n\t...sweetAlertStyle\r\n});\r\nclass InventoryCheckin extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tvar userJson = localStorage.getItem(\"user\");\r\n\t\tvar user = userJson ? JSON.parse(userJson) : null;\r\n\t\tthis.initialModel = {\r\n\t\t\tClientTypeId: (user && user.UniqueClient && user.UniqueClient.ClientTypeId) || null,\r\n\t\t\tisBackOffice: true,\r\n\t\t\tchecksalestatus: true,\r\n\t\t\tsaleStatus: true\r\n\t\t};\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\tcardorderlist: [],\r\n\t\t\ttotalresult: {},\r\n\t\t\tcheckedValues: [],\r\n\t\t\tselected: null,\r\n\t\t\tisLoading: false,\r\n\t\t\talert: \"\",\r\n\t\t\tvModel: {}\r\n\t\t};\r\n\t\tthis.HandleCheck = this.HandleCheck.bind(this);\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\tvar model = { ...this.state.model };\r\n\t\tmodel.isBackOffice = ClientHelper.IsBackOffice();\r\n\t\tif (!model.isBackOffice) {\r\n\t\t\tmodel.UniqueClientId = ClientHelper.GetClientRowId();\r\n\t\t\tmodel.Name = model.UniqueClientId;\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tClientCustomerGet = () => {\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: ClientHelper.GetClientRowId(),\r\n\t\t\tPrograms: [ProgramCodes.Prepaid],\r\n\t\t};\r\n\t\treturn this.parameterUniqueClientId;\r\n\t}\r\n\tValueChanged = (name, value, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tconst modelprops = { ...this.props.checkmodel };\r\n\t\tmodel[name] = value;\r\n\t\tif (name === \"Name\") model[\"UniqueClientId\"] = value;\r\n\t\tif (name === \"UniqueClientId\") model[\"Name\"] = value;\r\n\r\n\t\tmodel[\"Id\"] = modelprops.Id;\r\n\t\tmodel[\"InventoryStatusType\"] = modelprops.CheckType;\r\n\t\tmodel[\"InventoryStatusTypeId\"] = modelprops.CheckTypeId;\r\n\t\tmodel[\"CheckTypeId\"] = modelprops.CheckTypeId;\r\n\r\n\r\n\t\tif (data != undefined || data != null) {\r\n\t\t\tif (data.ParameterValue == \"S\") {\r\n\t\t\t\tmodel[\"checksalestatus\"] = false;\r\n\t\t\t\tmodel[\"Salestatus\"] = false;\r\n\t\t\t\tmodel[\"CardId\"] = modelprops.CardId;\r\n\r\n\t\t\t} else {\r\n\t\t\t\tmodel[\"Salestatus\"] = true;\r\n\t\t\t\tmodel[\"checksalestatus\"] = true;\r\n\t\t\t\tmodel[\"ClientCustomerId\"] = null;\r\n\t\t\t\tmodel[\"CustomerNumber\"] = null;\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\t}\r\n\tHandleCheck = (e, x) => {\r\n\r\n\t\tthis.setState(state => ({\r\n\t\t\tcheckedValues: state.checkedValues.includes(x)\r\n\t\t\t\t? state.checkedValues.filter(c => c !== x)\r\n\t\t\t\t: [...state.checkedValues, x]\r\n\t\t}));\r\n\t}\r\n\tCheckinConfirm = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst { model } = this.state;\r\n\t\tconst { showMessage } = this.props;\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/InventoryOrder/InventoryChenkInOutUpdate\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Operation is successfully!\");\r\n\t\t\t\t// this.Clear();\r\n\t\t\t\t// this.Search();\r\n\t\t\t\tthis.props.clearlist();\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\r\n\r\n\t}\r\n\tClear = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tmodel.UniqueClientId = this.initialModel.UniqueClientId;\r\n\t\tthis.setState({ model: this.initialModel, list: [], selected: null, checkedValues: [], totalresult: {} });\r\n\t}\r\n\tValidate() {\r\n\t\tconst { model } = this.state;\r\n\t\tvar messages = [];\r\n\t\tconst vModel = { ...this.state.vModel };\r\n\r\n\t\tif (!model.CheckReasonTypeId) {\r\n\t\t\tmessages.push(\"Check Reason Type can not be null.\");\r\n\t\t\tvModel.CheckReasonTypeId = true;\r\n\r\n\t\t} else {\r\n\t\t\tvModel.CheckReasonTypeId = false;\r\n\t\t}\r\n\t\tif (model.Salestatus == false) {\r\n\t\t\tif (!model.ClientCustomerId)\r\n\t\t\t\tmessages.push(\"Client Customer can not be null.\");\r\n\t\t}\r\n\t\tthis.setState({ vModel });\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tif (messages.length > 9) {\r\n\t\t\t\tvar moreWarn = messages.length - 8;\r\n\t\t\t\tmessages = messages.slice(0, 8);\r\n\t\t\t\tmessages.push(\"And \" + moreWarn + \" more warnings\");\r\n\t\t\t}\r\n\t\t\tthis.props.showMessageNode(\"error\", \"Please Fill Required Fields\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert:\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t});\r\n\t}\r\n\tShowConfirmMessage(type, title, message, onConfirm) {\r\n\t\tthis.setState({\r\n\t\t\talert:\r\n\t\t\t\t this.setState({ alert: null, isLoading: false })}\r\n\t\t\t\t\tOnConfirm={onConfirm}\r\n\t\t\t\t/>,\r\n\t\t\tisLoading: true\r\n\t\t});\r\n\t}\r\n\r\n\tFillCustomer = (customer) => {\r\n\t\tthis.CustomerValueChanged(\"Customer\", customer);\r\n\t}\r\n\tCustomerValueChanged = (name, value, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tif ( value != null && value != undefined) {\r\n\r\n\t\t\tif (name != \"CustomerNumber\") {\r\n\t\t\t\tmodel[\"ClientCustomerId\"] = value.Id;\r\n\t\t\t\tmodel[\"CustomerNumber\"] = value.CustomerNumber;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tmodel[\"CustomerNumber\"] = null;\r\n\t\t\tmodel[\"ClientCustomerId\"] = null;\r\n\r\n\t\t}\r\n\t\tthis.setState({ model });\r\n\t}\r\n\trender() {\r\n\t\tconst { model, vModel } = this.state;\r\n\t\tconst { checkmodel } = this.props;\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{this.state.alert}\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nInventoryCheckin.propTypes = {\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any,\r\n\tclasses: PropTypes.object,\r\n\tcheckmodel: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(InventoryCheckin, styles);","import sweetAlertStyle from \"assets/jss/material-dashboard-pro-react/views/sweetAlertStyle.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport { GenericAlert, GenericCheckInput, GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericNumberInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { InventoryOrderStatusType } from \"views/Constants/Constant\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent\";\r\n\r\nconst styles = ({\r\n\t...sweetAlertStyle\r\n});\r\nclass CardOrder extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tvar userJson = localStorage.getItem(\"user\");\r\n\t\tvar user = userJson ? JSON.parse(userJson) : null;\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tClientTypeId: (user && user.UniqueClient && user.UniqueClient.ClientTypeId) || null,\r\n\t\t\tisBackOffice: true,\r\n\t\t\tOrderStatusName: InventoryOrderStatusType.Created,\r\n\t\t\tInventorySafeDefinitionId: 0,\r\n\t\t\tQuantity: null\r\n\t\t};\r\n\t\tthis.state = {\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tcardorderlist: [],\r\n\t\t\ttotalresult: {},\r\n\t\t\tcheckedValues: [],\r\n\t\t\tselected: null,\r\n\t\t\tisLoading: false,\r\n\t\t\talert: \"\",\r\n\t\t\tIsUpdate: false,\r\n\t\t\tvModel: {},\r\n\t\t};\r\n\t\tthis.HandleCheck = this.HandleCheck.bind(this);\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\twidth: 60\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Store/Safe\",\r\n\t\t\t\taccessor: \"CustomerStoreSafeName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Product Name\",\r\n\t\t\t\taccessor: \"ProductName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Order Status\",\r\n\t\t\t\taccessor: \"OrderStatusType\"\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Quantity\",\r\n\t\t\t\taccessor: \"Quantity\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Design Name\",\r\n\t\t\t\taccessor: \"PlasticTypeName\"\r\n\t\t\t},\r\n\r\n\t\t\t// {\r\n\t\t\t// \tHeader: \"Ship Via\",\r\n\t\t\t// \taccessor: \"ShipViaName\"\r\n\t\t\t// },\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\r\n\t}\r\n\tValueChanged = (name, value, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tif (name === \"Name\")\r\n\t\t\tmodel[\"UniqueClientId\"] = value;\r\n\r\n\t\tif (name === \"UniqueClientId\")\r\n\t\t\tmodel[\"Name\"] = value;\r\n\r\n\t\tif (name == \"ProductId\")\r\n\t\t\tmodel[\"PlasticTypeId\"] = data.PlasticTypeId;\r\n\r\n\t\tif (name == \"QuantityId\")\r\n\t\t\tmodel.Quantity = data.ParameterValue;\r\n\r\n\t\tthis.setState({ model });\r\n\t}\r\n\tHandleCheck = (e, x) => {\r\n\r\n\t\tthis.setState(state => ({\r\n\t\t\tcheckedValues: state.checkedValues.includes(x)\r\n\t\t\t\t? state.checkedValues.filter(c => c !== x)\r\n\t\t\t\t: [...state.checkedValues, x]\r\n\t\t}));\r\n\t}\r\n\r\n\tOrderCardConfrim = () => {\r\n\t\tthis.setState({ isLoading: true, alert: null });\r\n\r\n\t\tif (this.state.checkedValues.length > 0) {\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/prepaidapi/v1.0/InventoryOrder/InventoryCardChangeStatusUpdate\",\r\n\t\t\t\tthis.state.checkedValues,\r\n\t\t\t\t(responseData) => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// var listItems = [];\r\n\t\t\t\t\t// if (responseData.Item != null) {\r\n\t\t\t\t\t// \tlistItems = responseData.Item.map((number) =>\r\n\r\n\t\t\t\t\t// \t\t
\r\n\t\t\t\t\t// \t\t\t{number.OrderReceiveDate == null ?\r\n\t\t\t\t\t// \t\t\t\tnumber.CustomerStoreSafeName + \"==>\" + number.ProductName + \"==>\" + Formatter.FormatDate(number.OrderReceiveDate) + \"==>Error\"\r\n\t\t\t\t\t// \t\t\t\t:\r\n\t\t\t\t\t// \t\t\t\tnumber.CustomerStoreSafeName + \"==>\" + number.ProductName + \"==>\" + Formatter.FormatDate(number.OrderReceiveDate) + \"==>Succeses\"\r\n\t\t\t\t\t// \t\t\t}\r\n\t\t\t\t\t// \t\t
\r\n\t\t\t\t\t// \t);\r\n\t\t\t\t\t// }\r\n\t\t\t\t},\r\n\t\t\t\tnull,null,null,200000000\r\n\t\t\t);\r\n\r\n\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\tthis.props.showMessage(\"success\", \"Order request has been added to the queue\");\r\n\t\t\tthis.Clear();\r\n\t\t\tthis.props.clearlist();\r\n\t\t} else {\r\n\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", \"Please select ordered cards !\");\r\n\t\t\tthis.setState({ isLoading: false });\r\n\t\t}\r\n\r\n\t}\r\n\r\n\tSubmit = () => {\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tconst { model } = this.state;\r\n\t\tconst { showMessage } = this.props;\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/InventoryOrder/InsertorUpdateInventoryOrder\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Operation is successfully!\");\r\n\t\t\t\tthis.Clear();\r\n\t\t\t\tthis.Search();\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t// showMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\r\n\t}\r\n\tSearch = () => {\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tconst { model } = this.state;\r\n\t\tconst { showMessage } = this.props;\r\n\t\tmodel.OrderStatusName = InventoryOrderStatusType.Created;\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/InventoryOrder/Search\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ cardorderlist: responseData.Item || [], isLoading: false });\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t// showMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tDeleteConfirm = () => {\r\n\t\tconst { showConfirmMessage } = this.props;\r\n\t\tshowConfirmMessage(\"warning\", \"Warning\", \"Are you sure want to delete ?\", this.Delete);\r\n\t}\r\n\tUpdate = () => {\r\n\r\n\t\tconst { model } = this.state;\r\n\t\tconst { showMessage } = this.props;\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/InventoryOrder/InsertorUpdateInventoryOrder\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Operation is successfully!\");\r\n\t\t\t\tthis.Clear();\r\n\t\t\t\tthis.Search();\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t// showMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\r\n\t}\r\n\tDelete = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/InventoryOrder/Delete\",\r\n\t\t\t{\r\n\t\t\t\t\"Id\": model.Id\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"success\", \"Operation is successfully!\");\r\n\t\t\t\tthis.Clear();\r\n\t\t\t\tthis.Search();\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tClear = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tmodel.UniqueClientId = this.initialModel.UniqueClientId;\r\n\r\n\t\tthis.initialModel.InventorySafeDefinitionId = ClientHelper.IsStore() ? model.InventorySafeDefinitionId : 0;\r\n\t\tthis.setState({ model: this.initialModel, cardorderlist: [], selected: null, checkedValues: [], totalresult: {}, IsUpdate: false });\r\n\t}\r\n\tValidate() {\r\n\t\tconst { model } = this.state;\r\n\t\tvar messages = [];\r\n\t\tconst vModel = { ...this.state.vModel };\r\n\r\n\t\tif (!model.InventorySafeDefinitionId) {\r\n\t\t\tmessages.push(\"Store / Safe can not be null.\");\r\n\t\t\tvModel.InventorySafeDefinitionId = true;\r\n\t\t} else {\r\n\t\t\tvModel.InventorySafeDefinitionId = false;\r\n\t\t}\r\n\r\n\r\n\t\tif (model.ProductId == null) {\r\n\t\t\tmessages.push(\"Product Name can not be null.\");\r\n\t\t\tvModel.ProductId = true;\r\n\r\n\t\t} else {\r\n\t\t\tvModel.ProductId = false;\r\n\t\t}\r\n\t\tif (model.Quantity == null) {\r\n\t\t\tmessages.push(\"Quantity can not be null.\");\r\n\t\t\tvModel.Quantity = true;\r\n\r\n\t\t} else {\r\n\t\t\tvModel.Quantity = false;\r\n\t\t}\r\n\r\n\t\tthis.setState({ vModel });\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tif (messages.length > 9) {\r\n\t\t\t\tvar moreWarn = messages.length - 8;\r\n\t\t\t\tmessages = messages.slice(0, 8);\r\n\t\t\t\tmessages.push(\"And \" + moreWarn + \" more warnings\");\r\n\t\t\t}\r\n\t\t\tthis.props.showMessageNode(\"error\", \"Please Fill Required Fields\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\tErrorSendCallback(error) {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert:\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t});\r\n\t}\r\n\tShowConfirmMessage(type, title, message, onConfirm) {\r\n\t\tthis.setState({\r\n\t\t\talert:\r\n\t\t\t\t this.setState({ alert: null, isLoading: false })}\r\n\t\t\t\t\tOnConfirm={onConfirm}\r\n\t\t\t\t/>,\r\n\t\t\tisLoading: true\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, cardorderlist, checkedValues, IsUpdate, vModel } = this.state;\r\n\t\tconst { ordermodel } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t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ventoryOrder.OrderStatus.ParameterDesc == \"OrderPreparing\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCustomerStoreSafeName: d.InventoryOrder.InventorySafeDefinition.SafeName + \" / \" + d.InventoryOrder.InventorySafeDefinition.CustomerStore.StoreName,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tId: d.Id,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tProductName: d.InventoryOrder.Product.ProductName,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tProductId: d.InventoryOrder.Product.Id,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tOrderStatusType: d.InventoryOrder.OrderStatus.ParameterDesc,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPlasticTypeName: d.InventoryOrder.Product.PlasticType.PlasticName,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tQuantity: d.InventoryOrder.Quantity\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tColumns={this.columns}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tRowSelected={index => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.setState({ model: cardorderlist[index].InvertoryOrder, selected: index, openOrderDialog: true, IsUpdate: true });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar tt = cardorderlist[index];\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar model = tt.InventoryOrder;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmodel[\"PlasticTypeId\"] = cardorderlist[index].InventoryOrder.Product.PlasticTypeId;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.setState({ model });\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCardOrder.propTypes = {\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any,\r\n\tclasses: PropTypes.object,\r\n\r\n\r\n};\r\n\r\nexport default withArtifex(CardOrder, styles);","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport sweetAlertStyle from \"assets/jss/material-dashboard-pro-react/views/sweetAlertStyle.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport { GenericAlert, GenericDialog, GenericDialogActions, GenericExpansionPanel, GenericGrid, GenericLabel, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { InventoryOrderStatusType } from \"views/Constants/Constant\";\r\n\r\nconst styles = ({\r\n\t...sweetAlertStyle\r\n});\r\nclass Receive extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tvar userJson = localStorage.getItem(\"user\");\r\n\t\tvar user = userJson ? JSON.parse(userJson) : null;\r\n\t\tthis.initialModel = {\r\n\t\t\tisBackOffice: true,\r\n\t\t\tOrderStatusName: InventoryOrderStatusType.Ordered\r\n\t\t};\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\treceivelist: [],\r\n\t\t\ttotalresult: {},\r\n\t\t\tcheckedValues: [],\r\n\t\t\tselected: null,\r\n\t\t\tisLoading: false,\r\n\t\t\topenReceiveDialog: false,\r\n\t\t\talert: \"\",\r\n\t\t\tvModel: {},\r\n\t\t};\r\n\r\n\t\tthis.HandleCheck = this.HandleCheck.bind(this);\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Store/Safe\",\r\n\t\t\t\taccessor: \"CustomerStoreSafeName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Record Type\",\r\n\t\t\t\taccessor: \"RecordType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Product Name\",\r\n\t\t\t\taccessor: \"ProductName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Package No\",\r\n\t\t\t\taccessor: \"PackageNo\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Quantity\",\r\n\t\t\t\taccessor: \"Quantity\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Product Code\",\r\n\t\t\t\taccessor: \"PlasticTypeName\"\r\n\t\t\t},\r\n\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { model } = { ...this.state }\r\n\t\tmodel.isBackOffice = ClientHelper.IsBackOffice();\r\n\t\tif (!model.isBackOffice) {\r\n\t\t\tmodel.UniqueClientId = ClientHelper.GetClientRowId();\r\n\t\t\tmodel.Name = model.UniqueClientId;\r\n\t\t}\r\n\r\n\t\tthis.setState({ model });\r\n\t\tthis.Search();\r\n\t}\r\n\r\n\tOpenReceiveModal = (item) => {\r\n\t\tthis.setState({ openReceiveDialog: true })\r\n\t}\r\n\r\n\tValueChanged = (name, value, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tif (name === \"Name\") model[\"UniqueClientId\"] = value;\r\n\t\tif (name === \"UniqueClientId\") model[\"Name\"] = value;\r\n\r\n\t\tthis.setState({ model });\r\n\t}\r\n\tHandleCheck = (e, x) => {\r\n\r\n\t\tthis.setState(state => ({\r\n\t\t\tcheckedValues: state.checkedValues.includes(x)\r\n\t\t\t\t? state.checkedValues.filter(c => c !== x)\r\n\t\t\t\t: [...state.checkedValues, x]\r\n\t\t}));\r\n\t\tthis.setState({ openOrderDialog: true });\r\n\r\n\t}\r\n\r\n\tErrorSendCallback(error) {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t}\r\n\tValidate() {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { showMessageNode } = this.props;\r\n\t\tconst vModel = { ...this.state.vModel };\r\n\r\n\t\tvar messages = [];\r\n\r\n\t\tif (model.OldQuantity != model.Quantity) {\r\n\t\t\tmessages.push(\"Old Quantity With New Quantity Not Equal!\");\r\n\t\t\tvModel.OldQuantity = true;\r\n\t\t\tvModel.Quantity = true;\r\n\r\n\t\t} else {\r\n\t\t\tvModel.OldQuantity = false;\r\n\t\t\tvModel.Quantity = false;\r\n\r\n\t\t}\r\n\t\tif (model.OldQuantity != (model.EndToNumber - model.StartingFromNumber)) {\r\n\t\t\tmessages.push(\"The difference between End To Number and Starting From Number is not equal to Quantity!\");\r\n\t\t\tvModel.EndToNumber = true;\r\n\t\t\tvModel.StartingFromNumber = true;\r\n\t\t\tvModel.Quantity = true;\r\n\t\t} else {\r\n\t\t\tvModel.EndToNumber = false;\r\n\t\t\tvModel.StartingFromNumber = false;\r\n\t\t\tvModel.Quantity = false;\r\n\r\n\t\t}\r\n\t\tif (model.OrderPackageNo == null || model.OrderPackageNo ==\"\") {\r\n\t\t\tmessages.push(\"Order Package No can not be null.\");\r\n\t\t\tvModel.OrderPackageNo = true;\r\n\r\n\t\t} else{\r\n\t\t\tvModel.OrderPackageNo = false;\r\n\t\t}\r\n\t\tthis.setState({ vModel});\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tif (messages.length > 9) {\r\n\t\t\t\tvar moreWarn = messages.length - 8;\r\n\t\t\t\tmessages = messages.slice(0, 8);\r\n\t\t\t\tmessages.push(\"And \" + moreWarn + \" more warnings\");\r\n\t\t\t}\r\n\t\t\tthis.props.showMessageNode(\"error\", \"Please Fill Required Fields\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\tReceiceConfrim = () => {\r\n\r\n\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst { model } = this.state;\r\n\t\tconst { showMessage } = this.props;\r\n\t\tif (model.OldQuantity == model.Quantity) {\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/prepaidapi/v1.0/InventoryOrder/InventoryOrderAcceptUpdate\",\r\n\t\t\t\tmodel,\r\n\t\t\t\t(responseData) => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.props.showMessage(\"success\", \" Operation completed successfully!!\");\r\n\t\t\t\t\tthis.Clear();\r\n\t\t\t\t\tthis.Search();\r\n\t\t\t\t\tthis.props.clearlist();\r\n\r\n\t\t\t\t},\r\n\t\t\t\t(error) => {\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Inventory Order Accept Update Error!\");\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t} else {\r\n\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Old Quantity With New Quantity Not Equal!\");\r\n\t\t\tthis.setState({ isLoading: false });\r\n\t\t}\r\n\r\n\t}\r\n\tSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tconst { model } = this.state;\r\n\t\tconst { showMessage } = this.props;\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/InventoryOrder/Search\",\r\n\t\t\tmodel,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tshowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({ receivelist: responseData.Item || [], isLoading: false });\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t// showMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\r\n\r\n\tClear = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tmodel.UniqueClientId = this.initialModel.UniqueClientId;\r\n\t\tthis.setState({ model: this.initialModel, receivelist: [], selected: null, checkedValues: [], totalresult: {} });\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert:\r\n\t\t\t\t this.setState({ alert: \"\" })}\r\n\t\t\t\t/>\r\n\t\t});\r\n\t}\r\n\tShowConfirmMessage(type, title, message, onConfirm) {\r\n\t\tthis.setState({\r\n\t\t\talert:\r\n\t\t\t\t this.setState({ alert: null, isLoading: false })}\r\n\t\t\t\t\tOnConfirm={onConfirm}\r\n\t\t\t\t/>,\r\n\t\t\tisLoading: true\r\n\t\t});\r\n\t}\r\n\thandleClose = () => {\r\n\r\n\t\tthis.setState({\r\n\t\t\topenReceiveDialog: false\r\n\t\t});\r\n\t}\r\n\tCardIdGet = (temp) => {\r\n\r\n\t\tconst { model } = this.state.model;\r\n\t\tProxy.POST(\r\n\t\t\t\"/prepaidapi/v1.0/Card/GetInventoryCardorderId\",\r\n\t\t\t{\r\n\t\t\t\t\"CardOrderId\": temp.Id,\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tvar tt = responseData.Item;\r\n\t\t\t\ttemp[\"StartingFromNumber\"] = responseData.Item.CardOrderId;\r\n\t\t\t\tthis.setState({ model: temp });\r\n\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t// showMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t}\r\n\t\t);\r\n\r\n\r\n\t}\r\n\trender() {\r\n\t\tconst { model, receivelist, selected, checkedValues, vModel } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{this.state.alert}\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tRecordType: d.InventoryOrder.ReceiveRecordType == null ? \"\" : d.InventoryOrder.ReceiveRecordType.ParameterDesc,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPackageNo: d.InventoryOrder.PackageNo,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tQuantity: d.InventoryOrder.Quantity,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCustomerStoreSafeName: d.InventoryOrder.InventorySafeDefinition.SafeName + \" / \" + d.InventoryOrder.InventorySafeDefinition.CustomerStore.StoreName,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tId: d.InventoryOrder.Id,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tOrderStatusType: d.InventoryOrder.OrderStatus.ParameterDesc,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tProductName: d.InventoryOrder.Product.ProductName,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPlasticTypeName: d.InventoryOrder.Product.PlasticType.PlasticName,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tColumns={this.columns}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tRowSelected={index => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar tempomodel = {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSignatureTypeId: receivelist[index].InventoryOrder.SignatureTypeId,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tRecordType: receivelist[index].InventoryOrder.ReceiveRecordType == null ? \"\" : receivelist[index].InventoryOrder.ReceiveRecordType.ParameterDesc,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPackageNo: receivelist[index].InventoryOrder.PackageNo,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tOldQuantity: receivelist[index].InventoryOrder.Quantity,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCustomerStoreSafeName: receivelist[index].InventoryOrder.InventorySafeDefinition.SafeName + \" / \" + receivelist[index].InventoryOrder.InventorySafeDefinition.CustomerStore.StoreName,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tId: receivelist[index].InventoryOrder.Id,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tOrderStatusType: receivelist[index].InventoryOrder.OrderStatus.ParameterDesc,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPlasticTypeName: receivelist[index].InventoryOrder.Product.PlasticType.PlasticName,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tInventorySafeDefinitionId: receivelist[index].InventoryOrder.InventorySafeDefinition.Id,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tQuantity: receivelist[index].InventoryOrder.Quantity,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tProductName: receivelist[index].InventoryOrder.Product.ProductName,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tProductd: receivelist[index].InventoryOrder.Product.Id,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.setState({ model: tempomodel, selected: index, openOrderDialog: true });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.CardIdGet(tempomodel);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t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n\r\nexport default withArtifex(Receive, styles);","import sweetAlertStyle from \"assets/jss/material-dashboard-pro-react/views/sweetAlertStyle.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nconst styles = ({\r\n\t...sweetAlertStyle\r\n});\r\nclass Transfer extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\r\n\r\n\t\tvar userJson = localStorage.getItem(\"user\");\r\n\t\tvar user = userJson ? JSON.parse(userJson) : null;\r\n\t\tthis.initialModel = {\r\n\t\t\tisBackOffice: true\r\n\t\t};\r\n\t\tthis.state = {\r\n\t\t\tmodel: this.initialModel,\r\n\t\t\ttransferlist: [],\r\n\t\t\ttotalresult: {},\r\n\t\t\tcheckedValues: [],\r\n\t\t\tselected: null,\r\n\t\t\tisLoading: false,\r\n\t\t\talert: \"\",\r\n\t\t\tvModel:{}\r\n\t\t};\r\n\r\n\r\n\t\tthis.HandleCheck = this.HandleCheck.bind(this);\r\n\t\tthis.columns = [\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"From Case\",\r\n\t\t\t\taccessor: \"FromCase\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"To Case\",\r\n\t\t\t\taccessor: \"ToCase\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Package No\",\r\n\t\t\t\taccessor: \"PackageNo\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Card Id\",\r\n\t\t\t\taccessor: \"CardId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Masked Card Number\",\r\n\t\t\t\taccessor: \"MaskedCardNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Record Type\",\r\n\t\t\t\taccessor: \"RecordType\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"ProductName\",\r\n\t\t\t\taccessor: \"ProductName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"PlasticType\",\r\n\t\t\t\taccessor: \"PlasticType\"\r\n\t\t\t},\r\n\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { model } = { ...this.state }\r\n\t\tmodel.isBackOffice = ClientHelper.IsBackOffice();\r\n\t\tif (!model.isBackOffice) {\r\n\t\t\tmodel.UniqueClientId = ClientHelper.GetClientRowId();\r\n\t\t\tmodel.Name = model.UniqueClientId;\r\n\r\n\t\t}\r\n\r\n\t\tthis.setState({ model });\r\n\t}\r\n\tValueChanged = (name, value, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = value;\r\n\t\tif (name === \"Name\") model[\"UniqueClientId\"] = value;\r\n\t\tif (name === \"UniqueClientId\") model[\"Name\"] = value;\r\n\t\tif (name === \"FromInventorySafeDefinitionId\") model[\"FromInventorySafeDefinitionName\"] = data.CustomerStoreSafeName;\r\n\t\tif (name === \"ToInventorySafeDefinitionId\") model[\"ToInventorySafeDefinitionName\"] = data.CustomerStoreSafeName;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\tHandleCheck = (e, x) => {\r\n\t\tthis.setState(state => ({\r\n\t\t\tcheckedValues: state.checkedValues.includes(x)\r\n\t\t\t\t? state.checkedValues.filter(c => c !== x)\r\n\t\t\t\t: [...state.checkedValues, x]\r\n\t\t}));\r\n\t}\r\n\tSubmit = (item) => {\r\n\r\n\t\tif (!this.Validate()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tvar tempArray = [];\r\n\t\titem.map(x => {\r\n\t\t\tvar temp = {};\r\n\t\t\ttemp.PackageNo = x.InventoryOrder.PackageNo;\r\n\t\t\ttemp.RecordType = x.InventoryOrder.ReceiveRecordType.ParameterDesc;\r\n \t\t\ttemp.ProductName = x.InventoryOrder.Product.ProductName;\r\n\t\t\ttemp.ClientName = x.InventorySafeDefinition.UniqueClient.ClientName;\r\n\t\t\ttemp.FromCase = this.props.transferitem[0].InventorySafeDefinition.CustomerStore.StoreName + \" / \" + this.props.transferitem[0].InventorySafeDefinition.SafeName;\r\n\t\t\ttemp.ToCase = this.state.model.ToInventorySafeDefinitionName;\r\n\t\t\ttemp.FromInventorySafeDefinitionId = this.props.transferitem[0].InventorySafeDefinition.Id;\r\n\t\t\ttemp.ToInventorySafeDefinitionId = this.state.model.ToInventorySafeDefinitionId;\r\n\t\t\ttemp.Id = x.Id\r\n\t\t\ttemp.PlasticType = x.InventoryOrder.Product.PlasticType.PlasticName;\r\n\t\t\ttemp.MaskedCardNumber = x.MaskedCardNumber;\r\n\t\t\ttemp.CardId = x.CardId\r\n\t\t\ttempArray.push(temp);\r\n\t\t});\r\n\t\tthis.setState({ transferlist: tempArray });\r\n\t}\r\n\tValidate() {\r\n\t\tconst { model } = this.state;\r\n\t\tconst { showMessageNode } = this.props;\r\n\t\tvar messages = [];\r\n\t\tconst vModel = { ...this.state.vModel };\r\n\t\tif (model.ToInventorySafeDefinitionName == null) {\r\n\t\t\tmessages.push(\"To Store / Safe can not be null.\");\r\n\t\t\tvModel.ToInventorySafeDefinitionName = true;\r\n\t\t} else{\r\n\t\t\tvModel.ToInventorySafeDefinitionName = false;\r\n\t\t}\r\n\t\tthis.setState({ vModel });\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tif (messages.length > 9) {\r\n\t\t\t\tvar moreWarn = messages.length - 8;\r\n\t\t\t\tmessages = messages.slice(0, 8);\r\n\t\t\t\tmessages.push(\"And \" + moreWarn + \" more warnings\");\r\n\t\t\t}\r\n\t\t\tthis.props.showMessageNode(\"error\", \"Please Fill Required Fields\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\tTransferConfrim = (item) => {\r\n\t\tif (item.length > 0) {\r\n\t\t\tthis.setState({ isLoading: true, alert: null });\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/prepaidapi/v1.0/InventoryOrder/TransferStoreSafeUpdate\",\r\n\t\t\t\titem,\r\n\t\t\t\t(responseData) => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tthis.props.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tvar listItems = [];\r\n\t\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.props.showMessage(\"success\", \" Operation completed successfully!!\");\r\n\t\t\t\t\tthis.Clear();\r\n\t\t\t\t\tthis.props.clearlist();\r\n\r\n\t\t\t\t},\r\n\t\t\t\t(error) => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Please Select Item Transfer List!\");\r\n\t\t\tthis.setState({ isLoading: false });\r\n\t\t}\r\n\t}\r\n\tSearch = () => {\r\n\t}\r\n\tUpdate = () => {\r\n\t}\r\n\tDelete = () => {\r\n\t}\r\n\tClear = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tmodel.UniqueClientId = this.initialModel.UniqueClientId;\r\n\t\tthis.setState({ model: this.initialModel, list: [], selected: null, checkedValues: [], transferlist: [], totalresult: {} });\r\n\t}\r\n\tErrorSendCallback(error) {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.props.showMessage(\"error\", \"An error occurred while sending data\", error.message);\r\n\t}\r\n\r\n\r\n\r\n\trender() {\r\n\t\tconst { model, transferlist, selected, checkedValues,vModel } = this.state;\r\n\t\tconst { Disabled, transferitem, transfermodel } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{this.state.alert}\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nTransfer.propTypes = {\r\n\tDisabled: PropTypes.bool,\r\n\tmenuId: PropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tAfter: PropTypes.any,\r\n\tclasses: PropTypes.object,\r\n\ttransferitem: PropTypes.array\r\n};\r\n\r\nexport default withArtifex(Transfer, styles);","import style from \"assets/jss/material-dashboard-pro-react/views/createWireTransferStyle.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport { GenericDateInput, GenericNumberInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nclass BeneficiaryAmountDetail extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.MaxLen = { maxLength: 60 };\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled, AmountPrefix, ValueChanged, TemplateValueChanged, DateRequest, ValueEffective, Amount, CurrencyId, PurposeOfWire } = this.props;\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t

\r\n\t\t\t\t\tTransfer Detail\r\n\t\t\t\t

\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t d.Code + \" - \" + d.Description}\r\n\t\t\t\t\t\t\tValueChanged={TemplateValueChanged}\r\n\t\t\t\t\t\t\tDataRoot=\"Item\" />\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nBeneficiaryAmountDetail.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool,\r\n\tValueChanged: PropTypes.func,\r\n\tTemplateValueChanged: PropTypes.func,\r\n\tAmountPrefix: PropTypes.string,\r\n\tPurposeOfWire: PropTypes.string,\r\n\tCurrencyId: PropTypes.number,\r\n\tAmount: PropTypes.number,\r\n\tDateRequest: PropTypes.any,\r\n\tValueEffective: PropTypes.any,\r\n};\r\n\r\nexport default withArtifex(BeneficiaryAmountDetail, style);\r\n\r\n\r\n","const OperationType = {\r\n\tDEFAULT: 0,\r\n\tINSERT: 1,\r\n\tUPDATE: 2,\r\n\tDELETE: 3,\r\n};\r\n\r\nconst GetType = {\r\n\tALL: 0,\r\n\tBYPARAMETER: 1,\r\n};\r\n\r\nconst GridColumnType = {\r\n\tDate: \"date\",\r\n\tDateUtc: \"date_utc\",\r\n\tDateTime: \"datetime\",\r\n\tDateTimeUtc: \"datetime_utc\",\r\n\tTime: \"time\",\r\n\tMoney: \"money\",\r\n\tYesNo: \"yesno\",\r\n\tPercent: \"percent\",\r\n};\r\n\r\nconst AuthenticationMethod = {\r\n\tGoogle: \"G\",\r\n\tTwilio: \"T\",\r\n};\r\n\r\nconst AuthenticatorStatus = {\r\n\tUnRegistered: 0,\r\n\tWaitingForVerification: 1,\r\n\tVerified: 2,\r\n};\r\n\r\nconst SessionStatus = {\r\n\tActive: 1,\r\n\tClosed: 2,\r\n\tExpired: 3,\r\n\tManuelClosed: 4,\r\n\tBanned: 5,\r\n};\r\n\r\nconst DocumentType = {\r\n\tCSV: 0,\r\n\tExcel: 1,\r\n\tPDF: 2,\r\n};\r\n\r\nconst Portals = {\r\n\tEFT: \"EFT\",\r\n\teTransfer: \"eTransfer\",\r\n\tDDT: \"DDT\",\r\n\tBankAccount: \"BankAccount\",\r\n\tWireTransfer: \"WireTransfer\",\r\n};\r\n\r\nconst MainSearchItems = {\r\n\tAll: \"A\",\r\n\tErrors: \"E\",\r\n\tRejected: \"RJ\",\r\n\tReturned: \"R\",\r\n\tUnSettledUnProcessed: \"U\",\r\n\tPending: \"P\",\r\n\tFile: \"F\",\r\n};\r\n\r\nconst UnSettledMainSearchItem = {\r\n\tUnSettledTransactions: \"UST\",\r\n\tUnProcessedTransactions: \"UPT\",\r\n\tUnSettledFile: \"USF\",\r\n\tUnProcessedFiles: \"UPF\",\r\n};\r\n\r\n\r\n\r\n\r\n\r\nconst PeriodCodes = {\r\n\tWeekly: \"W\",\r\n\tBiWeekly: \"BW\",\r\n\tSemiMonthly: \"SM\",\r\n\tMonthly: \"M\",\r\n\tMonthlyMonthEnd: \"ME\",\r\n\tQuarterly: \"Q\",\r\n\tQuarterlyMonthEnd: \"QE\",\r\n};\r\n\r\nconst CardTransferTypes = {\r\n\tVisaDirect: \"V\",\r\n\tMastercardSend: \"M\",\r\n\tAll: \"A\"\r\n};\r\n\r\nconst ProgramCodes = {\r\n\tACQUIRING: \"ACQ\",\r\n\tACQUIRING_Atm_Acquiring: \"ACQATM\",\r\n\tACQUIRING_Credit: \"ACQCRD\",\r\n\tACQUIRING_Debit: \"ACQDBT\",\r\n\tACQUIRING_Prepaid: \"ACQPRP\",\r\n\tAtm_Acquiring_Interac: \"ACQATMINT\",\r\n\tAtm_Acquiring_Mastercard: \"ACQATMMSC\",\r\n\tAtm_Acquiring_Mastercard_Cirrus: \"ACQATMMSCR\",\r\n\tAtm_Acquiring_Visa: \"ACQATMVIS\",\r\n\tAtm_Acquiring_Visa_Plus: \"ACQATMVISA\",\r\n\tBANK_PROGRAMS: \"BNK_PRG\",\r\n\tBank_Programs_Agent: \"AGENT\",\r\n\tBank_Programs_Bank_Account: \"BNKACCOUNT\",\r\n\tBank_Programs_Bank_Account_Corporate: \"BNKACCOUNT_C\",\r\n\tBank_Programs_Bank_Account_Personal: \"BNKACCOUNT_P\",\r\n\tBANK_PROGRAMS_Bank_Programs: \"BNK_PROGRAM\",\r\n\tBANK_PROGRAMS_Card_Transfers: \"CRDTRANSFER\",\r\n\tBank_Programs_CDIC: \"CDIC\",\r\n\tBank_Programs_DDT: \"DDT\",\r\n\tBank_Programs_e_Transfer: \"ETRANSFER\",\r\n\tBank_Programs_EFT: \"EFT\",\r\n\tBank_Programs_BILL: \"BILL\",\r\n\tBank_Programs_MSB: \"MSB\",\r\n\tBank_Programs_Sponsorship: \"SPONSORSHIP\",\r\n\tBank_Programs_Swift: \"SWIFT\",\r\n\tCard_Transfers_Mastercard_Moneysend: \"MONEYSEND\",\r\n\tCard_Transfers_Visa_Direct: \"VISADIRECT\",\r\n\tCredit_Amex: \"ACQCRDAMX\",\r\n\tCredit_Mastercard: \"ACQCRDMSC\",\r\n\tCredit_Visa: \"ACQCRDVIS\",\r\n\tDebit_Interac: \"ACQDBTINT\",\r\n\tDebit_Interac_Debit: \"INTD\",\r\n\tDebit_Mastercard: \"ACQDBTMSC\",\r\n\tDebit_Mastercard_Debit: \"MSCD\",\r\n\tDebit_Visa: \"ACQDBTVIS\",\r\n\tDebit_Visa_Debit: \"VISAD\",\r\n\tISSUING: \"ISS\",\r\n\tISSUING_Debit: \"DBT\",\r\n\tISSUING_Prepaid: \"PRP\",\r\n\tPrepaid_Interac: \"ACQPRPINT\",\r\n\tPrepaid_Mastercard: \"ACQPRPMSC\",\r\n\tPrepaid_Mastercard_Prepaid: \"MSCP\",\r\n\tPrepaid_Visa: \"ACQPRPVIS\",\r\n\tPrepaid_Visa_Prepaid: \"VISAP\",\r\n\tPrepaid: \"PREPAID\",\r\n\tLender: \"LENDER\",\r\n\tBillPayment: \"BILL\",\r\n\tDigitalIdVerification: \"DIGITALID\",\r\n\tTsp : \"Tokenization Service\",\r\n};\r\n\r\nconst WeekDays = [\r\n\t{\r\n\t\tId: 0,\r\n\t\tText: \"Sunday\",\r\n\t},\r\n\t{\r\n\t\tId: 1,\r\n\t\tText: \"Monday\",\r\n\t},\r\n\t{\r\n\t\tId: 2,\r\n\t\tText: \"Tuesday\",\r\n\t},\r\n\t{\r\n\t\tId: 3,\r\n\t\tText: \"Wednesday\",\r\n\t},\r\n\t{\r\n\t\tId: 4,\r\n\t\tText: \"Thursday\",\r\n\t},\r\n\t{\r\n\t\tId: 5,\r\n\t\tText: \"Friday\",\r\n\t},\r\n\t{\r\n\t\tId: 6,\r\n\t\tText: \"Saturday\",\r\n\t},\r\n];\r\n\r\nconst DateHomePageFilter = [\r\n\t{\r\n\t\tId: 0,\r\n\t\tText: \"Today\"\r\n\t},\r\n\t{\r\n\t\tId: 1,\r\n\t\tText: \"3 Days\"\r\n\t},\r\n\t{\r\n\t\tId: 2,\r\n\t\tText: \"10 Days\"\r\n\t},\r\n\t{\r\n\t\tId: 3,\r\n\t\tText: \"30 Days\"\r\n\t}\r\n\r\n];\r\nconst DateFilter = [\r\n\t{\r\n\t\tId: 0,\r\n\t\tText: \"24 Hours\",\r\n\t},\r\n\t{\r\n\t\tId: 1,\r\n\t\tText: \"3 Days\",\r\n\t},\r\n\t{\r\n\t\tId: 2,\r\n\t\tText: \"7 Days\",\r\n\t},\r\n];\r\n\r\nconst LastPaymentDateAfter = [\r\n\t{\r\n\t\tId: 1,\r\n\t\tText: \"1 Day\",\r\n\t},\r\n\t{\r\n\t\tId: 5,\r\n\t\tText: \"5 Days\",\r\n\t},\r\n\t{\r\n\t\tId: 10,\r\n\t\tText: \"10 Days\",\r\n\t},\r\n\t{\r\n\t\tId: 21,\r\n\t\tText: \"21 Days\",\r\n\t},\r\n];\r\nconst SelectNextDayList = [\r\n\t{\r\n\t\tId: 1,\r\n\t\tText: \"1 Day\",\r\n\t},\r\n\t{\r\n\t\tId: 2,\r\n\t\tText: \"2 Days\",\r\n\t},\r\n\t{\r\n\t\tId: 3,\r\n\t\tText: \"3 Days\",\r\n\t},\r\n\t{\r\n\t\tId: 4,\r\n\t\tText: \"4 Days\",\r\n\t},\r\n\t{\r\n\t\tId: 5,\r\n\t\tText: \"5 Days\",\r\n\t},\r\n];\r\n\r\nconst PersonalizedExpDateList = [\r\n\t{\r\n\t\tId: 2,\r\n\t\tText: \"2 Years\",\r\n\t},\r\n\t{\r\n\t\tId: 3,\r\n\t\tText: \"3 Years\",\r\n\t},\r\n\t{\r\n\t\tId: 4,\r\n\t\tText: \"4 Years\",\r\n\t},\r\n\t{\r\n\t\tId: 5,\r\n\t\tText: \"5 Years\",\r\n\t},\r\n];\r\n\r\nconst ReportType = {\r\n\tReportable: \"R\",\r\n\tReportableReadOnly: \"RR\",\r\n\tNonReportable: \"N\",\r\n};\r\n\r\nconst DynamicReportType = [\r\n\t{ Value: 0, Text: \"Schedule\" },\r\n\t{ Value: 1, Text: \"Screen\" },\r\n\t{ Value: 2, Text: \"On-demand\" }\r\n];\r\n\r\nconst ReportTypeForWalletAccounts = [\r\n\t{\r\n\t\tValue: ReportType.NonReportable,\r\n\t\tText: \"Number\",\r\n\t},\r\n\t{\r\n\t\tValue: ReportType.Reportable,\r\n\t\tText: \"Reportable\",\r\n\t},\r\n];\r\n\r\nconst NotificationUsageType = [\r\n\t{ Value: 0, Text: \"Only Client\" },\r\n\t{ Value: 1, Text: \"Both Client & Customer\" },\r\n\t{ Value: 2, Text: \"Only Customer\" },\r\n];\r\nconst EtransferApplicationTypes = [\r\n\t{ Value: 1, Text: \"Screen\" },\r\n\t{ Value: 2, Text: \"Client Api\" },\r\n\t{ Value: 3, Text: \"End User Api\" },\r\n\t{ Value: 7, Text: \"Recurring\" },\r\n];\r\nconst LoginUserType = {\r\n\tParameterCode: \"LoginUserType\",\r\n\tBackOffice: \"LBO\",\r\n\tCustomer: \"LCU\",\r\n\tDCBankVisitorUser: \"LVU\",\r\n};\r\n\r\nconst EFTTransactionTypes = {\r\n\tCredit: \"C\",\r\n\tDebit: \"D\",\r\n};\r\n\r\nconst EFTPriorityTypes = {\r\n\tPriority: \"P\",\r\n\tRegular: \"R\",\r\n};\r\n\r\nconst EtransferTransactionTypes = {\r\n\tCredit: \"C\",\r\n\tDebit: \"D\",\r\n\tDCRM: \"DC Request Payment\",\r\n};\r\nconst ETransactionTypesSource = [\r\n\t{ \"Id\": \"6021\", \"ParameterValue\": \"D\", \"ParameterValue6\": \"Money Request\", \"uId\": \"6021\" },\r\n\t{ \"Id\": \"6020\", \"ParameterValue\": \"C\", \"ParameterValue6\": \"Money Send\", \"uId\":\"6020\"},\r\n\t{ \"Id\": \"6021\", \"ParameterValue\": \"D\", \"ParameterValue6\": \"DC Request Payment\",\"uId\":\"60211\" }\r\n ];\r\n\r\nconst EtransferType = {\r\n\tRealTime: \"0\",\r\n\tBulkRegular: \"1\",\r\n\tBulkPriority: \"2\",\r\n};\r\n\r\nconst EtransferFrequencyCodes = {\r\n\tOneTime: \"0\",\r\n\tDaily: \"1\",\r\n\tWeekly: \"2\",\r\n\tMonthly: \"3\",\r\n};\r\n\r\nconst EtransferPeriodCodes = {\r\n\tDayOfMonth: \"0\",\r\n\tDayOfWeek: \"1\",\r\n\tWeekOfMonth: \"2\",\r\n};\r\n\r\nconst DcbETransferType = {\r\n\tDefault: 0,\r\n\tAccountDeposit: 1\r\n};\r\n\r\n\r\nconst ETransferDayOfMonthTypes = {\r\n\tFirstDay: \"0\",\r\n\tSelectedDay: \"1\",\r\n\tLastDay: \"2\",\r\n};\r\n\r\nconst BankingAccountTypes = {\r\n\tDCBankAccount: \"DBA\",\r\n\tDDTAccount: \"DDT\",\r\n\tCDIC: \"CDIC\",\r\n\tDdtPoolAccount: \"DDTP\",\r\n\tCDICPoolAccount: \"CDICP\",\r\n\tETransferMainAccount: \"ETRANSFERMACC\",\r\n\tPrimaryAccount: \"PA\",\r\n\tSecondaryAccount: \"SA\",\r\n\tSecurityAccount: \"CA\",\r\n\tFeeAccount: \"FA\",\r\n\tPooledAccount: \"PooledAccount\",\r\n};\r\n\r\nconst AccountStatus = {\r\n\tActive: \"A\",\r\n\tPassive: \"P\",\r\n\tInactive: \"I\",\r\n\tSuspended: \"T\",\r\n\tClosed: \"C\",\r\n\tDeactivated: \"D\",\r\n};\r\n\r\nconst DDTStatus = {\r\n\tActive: 8002,\r\n\tInactive: 8003,\r\n};\r\n\r\n\r\nconst NotificationStatus = {\r\n\tPending: \"P\",\r\n\tNotified: \"N\",\r\n};\r\n\r\nconst BankTransactionStatus = {\r\n\tCompleted: \"C\",\r\n\tError: \"E\",\r\n\tPending: \"P\",\r\n\tReturn: \"R\",\r\n\tRejected: \"RJ\",\r\n\tReSend: \"RS\",\r\n\tSent: \"S\",\r\n\tCancelled: \"V\",\r\n\tSettled: \"Y\",\r\n\tUnapproved: \"U\",\r\n\tTraced: \"T\",\r\n\tReadToSend: \"RD\",\r\n\tDefered: \"DF\",\r\n\tBlockedLimit: \"BL\",\r\n\tInsufficientBalance: \"IB\",\r\n};\r\nconst TransactionTraceStatus = {\r\n\tCODE: \"TransactionTraceStatus\",\r\n\tPending: \"P\",\r\n\tCompleted: \"C\",\r\n};\r\n\r\nconst BankTransactionStatusParameterDesc = {\r\n\tOutgoing: \"Outgoing\",\r\n\tCompleted: \"Completed\",\r\n\tReturn: \"Return\",\r\n\tUnapproved: \"Unapproved\",\r\n\tPending: \"Pending\",\r\n\tReadyToSend: \"Ready To Send\",\r\n};\r\n\r\nconst ETransferWeekOfMonthTypes = {\r\n\tFirst: \"1\",\r\n\tSecond: \"2\",\r\n\tThird: \"3\",\r\n\tFourth: \"4\",\r\n\tLast: \"L\",\r\n};\r\n\r\nconst ClientType = {\r\n\tPersonal: \"P\",\r\n\tCorporate: \"C\",\r\n\tSalesAgentPersonal: \"SAP\",\r\n\tSalesAgentCorporate: \"SAC\",\r\n\tWireTransferMSBCorparate: \"WMSBCorparate\",\r\n\tWireTransferMSBIndividual: \"WMSBIndividual\",\r\n};\r\n\r\nconst CustomerStatus = {\r\n\tActive: \"N\",\r\n\tInactive: \"C\",\r\n\tDeactivated: \"D\",\r\n\tSuspended: \"S\",\r\n};\r\n\r\nconst AmlKycRiskLevel = {\r\n\tHigh: \"H\",\r\n\tMedium: \"M\",\r\n\tLow: \"L\",\r\n};\r\n\r\nconst CustomerBusinessType = {\r\n\tIndividual: \"I\",\r\n\tBusiness: \"B\",\r\n};\r\n\r\nconst ApprovalRequest = {\r\n\tInsert: \"INS\",\r\n\tDelete: \"DEL\",\r\n\tUpdate: \"UPT\",\r\n};\r\nconst ApprovalStatus = {\r\n\tWaiting: \"W\",\r\n\tApproved: \"A\",\r\n\tRejected: \"R\",\r\n\tCanceledbyUser: \"C\",\r\n\tCompleted: \"D\",\r\n\tKYC: \"KYC\",\r\n};\r\nconst BankProgramType = {\r\n\tEFT: \"EFT\",\r\n\teTransfer: \"e Transfer\",\r\n\tDDT: \"DDT\",\r\n\tCDIC: \"CDIC\",\r\n\tAccount: \"Account\",\r\n};\r\nconst PortalProgram = {\r\n\tAll: \"All Program\",\r\n\tEFT: \"EFT Program\",\r\n\teTransfer: \"eTransfer Program\",\r\n\tDDT: \"DDT Program\",\r\n};\r\n\r\nconst DCBankRowId = {\r\n\tId: 46,\r\n};\r\n\r\nconst SecurityType = {\r\n\tFixedCash: \"FC\",\r\n\tLetterofGuarantee: \"LG\",\r\n\tPrepaid: \"P\",\r\n};\r\n\r\nconst LimitType = {\r\n\tTransactionLimitDaily: \"TransactionLimitDaily\",\r\n\tPrepaidAccountFundsTransferLimitDaily:\r\n\t\t\"PrepaidAccountFundsTransferLimitDaily\",\r\n\tTransactionBasedLimit: \"TransactionBasedLimit\",\r\n\tFileTotalUploadLimitPerFile: \"FileTotalUploadLimitPerFile\",\r\n};\r\n\r\nconst PhoneType = {\r\n\tPrimary: \"P\",\r\n\tAlternative: \"A\",\r\n\tCell: \"C\",\r\n\tBusiness: \"B\",\r\n\tFax: \"F\",\r\n};\r\nconst PortalType = {\r\n\tClient: 0,\r\n\tBackOffice: 1,\r\n};\r\nconst TransactionType = {\r\n\tCredit: \"C\",\r\n\tDebit: \"D\",\r\n};\r\nconst FeeProfileType = {\r\n\tFixed: \"F\",\r\n\tWeighed: \"W\",\r\n\tUnWeighed: \"U\",\r\n\tCombineWeighted: \"WC\",\r\n\tCombineUnWeighted: \"UC\",\r\n};\r\nconst FeeType = {\r\n\tMonthlyProgramFeeEft: \"MonthlyProgramFeeEft\",\r\n\tMonthlySftpFeeEft: \"MonthlySftpFeeEft\",\r\n\tMonthlyDueDeligenceFeeEft: \"MonthlyDueDeligenceFeeEft\",\r\n\tMonthlyApiFeeEft: \"MonthlyApiFeeEft\",\r\n\tMiscDebitRegularRvsTxnFee: \"MiscDebitRegularRvsTxnFee\",\r\n\tMiscDebitRegularFilePrcFee: \"MiscDebitRegularFilePrcFee\",\r\n\tMiscDebitRegularDisputeFee: \"MiscDebitRegularDisputeFee\",\r\n\tMiscDebitPriorityRvsTxnFee: \"MiscDebitPriorityRvsTxnFee\",\r\n\tMiscDebitPriorityFilePrcFee: \"MiscDebitPriorityFilePrcFee\",\r\n\tMiscDebitPriorityDisputeFee: \"MiscDebitPriorityDisputeFee\",\r\n\tMiscCreditRegularTxnFee: \"MiscCreditRegularTxnFee\",\r\n\tMiscCreditRegularRvsTxnFee: \"MiscCreditRegularRvsTxnFee\",\r\n\tMiscCreditRegularFilePrcFee: \"MiscCreditRegularFilePrcFee\",\r\n\tMiscCreditRegularDisputeFee: \"MiscCreditRegularDisputeFee\",\r\n\tMiscCreditPriorityTxnFee: \"MiscCreditPriorityTxnFee\",\r\n\tMiscCreditPriorityRvsTxnFee: \"MiscCreditPriorityRvsTxnFee\",\r\n\tMiscCreditPriorityFilePrcFee: \"MiscCreditPriorityFilePrcFee\",\r\n\tMiscCreditPriorityDisputeFee: \"MiscCreditPriorityDisputeFee\",\r\n\tMonthlyProgramFeeEtransfer: \"MonthlyProgramFeeEtransfer\",\r\n\tMonthlySftpFeeEtransfer: \"MonthlySftpFeeEtransfer\",\r\n\tMonthlyDueDeligenceFeeEtransfer: \"MonthlyDueDeligenceFeeEtransfer\",\r\n\tMonthlyApiFeeEtransfer: \"MonthlyApiFeeEtransfer\",\r\n\tRealTimeETCancelledTxnFee: \"RealTimeETCancelledTxnFee\",\r\n\tRealTimeETFileProcFee: \"RealTimeETFileProcFee\",\r\n\tRealTimeETDisputeFee: \"RealTimeETDisputeFee\",\r\n\tRealTimeETMinTxnFee: \"RealTimeETMinTxnFee\",\r\n\tBulkRegularETCancelledTxnFee: \"BulkRegularETCancelledTxnFee\",\r\n\tBulkRegularETFileProcFee: \"BulkRegularETFileProcFee\",\r\n\tBulkRegularETDisputeFee: \"BulkRegularETDisputeFee\",\r\n\tBulkRegularETMinTxnFee: \"BulkRegularETMinTxnFee\",\r\n\tBulkPriorityETCancelledTxnFee: \"BulkPriorityETCancelledTxnFee\",\r\n\tBulkPriorityETFileProcFee: \"BulkPriorityETFileProcFee\",\r\n\tBulkPriorityETDisputeFee: \"BulkPriorityETDisputeFee\",\r\n\tBulkPriorityETMinTxnFee: \"BulkPriorityETMinTxnFee\",\r\n\tBulkRegularMRCancelledTxnFee: \"BulkRegularMRCancelledTxnFee\",\r\n\tBulkRegularMRFileProcFee: \"BulkRegularMRFileProcFee\",\r\n\tBulkRegularMRDisputeFee: \"BulkRegularMRDisputeFee\",\r\n\tBulkRegularMRMinTxnFee: \"BulkRegularMRMinTxnFee\",\r\n\tBulkPriorityMRCancelledTxnFee: \"BulkPriorityMRCancelledTxnFee\",\r\n\tBulkPriorityMRFileProcFee: \"BulkPriorityMRFileProcFee\",\r\n\tBulkPriorityMRDisputeFee: \"BulkPriorityMRDisputeFee\",\r\n\tBulkPriorityMRMinTxnFee: \"BulkPriorityMRMinTxnFee\",\r\n\tTransferToExtAccountFee: \"TransferToExtAccountFee\",\r\n\tTransferToDcbPrepaidCard: \"TransferToDcbPrepaidCard\",\r\n\tTransferToETransferFee: \"TransferToETransferFee\",\r\n\tDormantFee: \"DormantFee\",\r\n\tPerDepositFee: \"PerDepositFee\",\r\n\tMinNumOfDdtFee: \"MinNumOfDdtFee\",\r\n\tYearlyAccountFee: \"YearlyAccountFee\",\r\n\tSMSNotificationFee: \"SMSFee\",\r\n\tEmailNotificationFee: \"EmailFee\",\r\n\tApplicationNotificationFee: \"ApplicationFee\",\r\n};\r\nconst PriorityRegularType = {\r\n\tRegular: \"R\",\r\n\tPriority: \"P\",\r\n\tNone: \"N\",\r\n};\r\nconst OrderStatusType = {\r\n\tApproved: \"2\",\r\n\tWaiting: \"1\",\r\n};\r\nconst TxnEffect = {\r\n\tNone: \"N\",\r\n\tCredit: \"C\",\r\n\tDebit: \"D\",\r\n};\r\nconst RoleGroup = {\r\n\tClient: \"Client\",\r\n\tBackoffice: \"Backoffice\",\r\n};\r\nconst LimitProfileType = {\r\n\tClientLimitProfile: \"C\",\r\n\tUserLimitProfile: \"U\",\r\n};\r\nconst NotificationSendType = {\r\n\tSms: \"1\",\r\n\tEmail: \"2\",\r\n\tApplication: \"3\",\r\n};\r\nconst AddressType = {\r\n\tMainAddress: \"M\",\r\n\tBranchAddress: \"B\",\r\n\tHome: \"H\",\r\n\tBusiness: \"A\",\r\n\tStoreAdress: \"STR\",\r\n\tHeadOffice: \"HDO\",\r\n};\r\nconst IdentificationMethod = {\r\n\tInPersonIDVerification: \"I\",\r\n\tCreditFileMethod: \"P\",\r\n\tDualProcessMethod: \"D\",\r\n\tCanadaPostVerification: \"C\",\r\n\tDigitalIdentityVerification: \"V\",\r\n\tDocuments: \"U\",\r\n\tAccountVerification: \"A\",\r\n\tOther: \"O\",\r\n};\r\nconst RiskLightRating = {\r\n\tBlack: \"B\",\r\n\tGreen: \"G\",\r\n\tYellow: \"Y\",\r\n\tRed: \"R\",\r\n};\r\nconst SalesChannel = {\r\n\tDirectSales: \"DS\",\r\n\tSalesPerson: \"SP\",\r\n};\r\n\r\nconst DefaultBankInformation = {\r\n\tFinancialInstitutionId: 46,\r\n\tFinancialInstitutionBranchId: 3,\r\n};\r\n\r\nconst EmbossType = {\r\n\tInstantId: 3300,\r\n\tMassId: 3301\r\n}\r\n\r\nconst CampaignEngineMethodType = {\r\n\tNotification: \"Notification\",\r\n\tICoupon: \"ICoupon\",\r\n\tFreeProduct: \"FreeProduct\",\r\n};\r\n\r\nconst IdentityType = {\r\n\tONDriversLicence: \"C000\",\r\n\tQCDriversLicence: \"C001\",\r\n\tABDriversLicence: \"C002\",\r\n\tBCDriversLicence: \"C003\",\r\n\tMBDriversLicence: \"C004\",\r\n\tNUDriversLicence: \"C005\",\r\n\tNBDriversLicence: \"C006\",\r\n\tNSDriversLicence: \"C007\",\r\n\tNLDriversLicence: \"C008\",\r\n\tNTDriversLicence: \"C009\",\r\n\tPEDriversLicence: \"C010\",\r\n\tSKDriversLicence: \"C011\",\r\n\tYTDriversLicence: \"C012\",\r\n\tDriversLicenceForeign: \"C013\",\r\n\tCanadaPassport: \"C014\",\r\n\tForeignPassport: \"C015\",\r\n\tUSAPassport: \"C016\",\r\n\tCertificateofIndianStatusCard: \"C018\",\r\n\tCanadaPermanentResidentCard: \"C019\",\r\n\tCanadianForcesID: \"C020\",\r\n\tONProvincialPhotoID: \"C021\",\r\n\tMBProvincialPhotoID: \"C024\",\r\n\tPEProvincialPhotoID: \"C025\",\r\n\tQCProvincialHealthCard: \"C033\",\r\n\tABProvincialPhotoID: \"C034\",\r\n\tBCProvincialPhotoID: \"C035\",\r\n\tNBProvincialPhotoID: \"C036\",\r\n\tNLProvincialPhotoID: \"C037\",\r\n\tNSProvincialPhotoID: \"C038\",\r\n\tSKProvincialPhotoID: \"C039\",\r\n\tYTProvincialPhotoID: \"C040\",\r\n\tNUProvincialPhotoID: \"C041\",\r\n\tNTProvincialPhotoID: \"C042\",\r\n\tFirearmsPossessionandAcquisitionLicense: \"C043\",\r\n\tCanadaVeteransHealthCardNoPhoto: \"C044\",\r\n\tBCComboCard: \"C075\",\r\n\r\n\tZeroPoR: \"0_PoR\",\r\n\tOnePoR: \"1_PoR\",\r\n};\r\n\r\nconst Direction = {\r\n\tIncoming: \"I\",\r\n\tOutgoing: \"O\",\r\n};\r\n\r\nconst ViewSourceType = {\r\n\tAll: \"All\",\r\n\tAnnouncement: \"A\",\r\n\tNotification: \"N\",\r\n\tBankingNotification: \"BN\",\r\n};\r\n\r\nconst FileCode = {\r\n\tAmlKycInternalBlacklist: \"AmlKycInternalBlacklist\",\r\n\tUserGuide: \"UserGuide\",\r\n\tLegal: \"Legal\",\r\n\tFeeManage: \"FeeManage\",\r\n\tContract: \"Contract\",\r\n\tDispute: \"Dispute\",\r\n\tKycManualPhoto: \"KycManualPhoto\",\r\n\tLedgerCardLogo: \"LEDGERCARDCOMPANYICON\",\r\n\tIframeHeaderLogo: \"IframeHeaderLogo\"\r\n};\r\n\r\nconst FileType = {\r\n\tBase64: \"Base64\",\r\n\tBinary: \"Binary\",\r\n};\r\n\r\nconst FileExtension = {\r\n\tPDF: \"PDF\",\r\n\tCSV: \"CSV\",\r\n\tJPG: \"JPG\",\r\n\tJSON: \"JSON\",\r\n\tPNG: \"PNG\",\r\n\tXLSX: \"XLSX\",\r\n\tXML: \"XML\",\r\n};\r\n\r\nconst LoanLedgerCardIconType = {\r\n\tCompanyLogo: \"0\",\r\n\tStatementLogo: \"1\",\r\n};\r\n\r\nconst CrudType = {\r\n\tInsert: \"Insert\",\r\n\tUpdate: \"Update\",\r\n};\r\n\r\nconst UserLimitType = {\r\n\tUserCreditTransactionLimitDaily: \"UserCreditTransactionLimitDaily\",\r\n\tUserDebitTransactionLimitDaily: \"UserDebitTransactionLimitDaily\",\r\n\tUserPrepaidAccountFundsTransferLimitDaily:\r\n\t\t\"UserPrepaidAccountFundsTransferLimitDaily\",\r\n\tUserTransactionBasedLimit: \"UserTransactionBasedLimit\",\r\n\tUserCreditFileTotalUploadLimitEachFile:\r\n\t\t\"UserCreditFileTotalUploadLimitEachFile\",\r\n\tUserDebitFileTotalUploadLimitEachFile:\r\n\t\t\"UserDebitFileTotalUploadLimitEachFile\",\r\n\tUserMaxNumberOfTransactionOneTimeUpload:\r\n\t\t\"UserMaxNumberOfTransactionOneTimeUpload\",\r\n\tUserNumberOfTransacionDailyUpload: \"UserNumberOfTransacionDailyUpload\",\r\n\tUserMaxLimit: \"UserMaxLimit\",\r\n};\r\n\r\nconst EFTEntryType = {\r\n\tFromFile: \"BF\",\r\n\tIndividual: \"IE\",\r\n\tRecurring: \"RT\",\r\n};\r\n\r\nconst EtransferEntryType = {\r\n\tFromFile: \"BF\",\r\n\tIndividual: \"IE\",\r\n\tRecurring: \"RT\",\r\n};\r\n\r\nconst TrueFalse = {\r\n\tTrue: \"T\",\r\n\tFalse: \"F\",\r\n};\r\n\r\nconst CurrencyType = {\r\n\tKRW: \"KRW\",\r\n\tAFA: \"AFA\",\r\n\tALL: \"ALL\",\r\n\tDZD: \"DZD\",\r\n\tADP: \"ADP\",\r\n\tAOK: \"AOK\",\r\n\tARS: \"ARS\",\r\n\tAMD: \"AMD\",\r\n\tAWG: \"AWG\",\r\n\tAUD: \"AUD\",\r\n\tBSD: \"BSD\",\r\n\tBHD: \"BHD\",\r\n\tBDT: \"BDT\",\r\n\tBBD: \"BBD\",\r\n\tBZD: \"BZD\",\r\n\tBMD: \"BMD\",\r\n\tBTN: \"BTN\",\r\n\tBOB: \"BOB\",\r\n\tBWP: \"BWP\",\r\n\tBRL: \"BRL\",\r\n\tGBP: \"GBP\",\r\n\tBND: \"BND\",\r\n\tBGN: \"BGN\",\r\n\tBUK: \"BUK\",\r\n\tBIF: \"BIF\",\r\n\tCAD: \"CAD\",\r\n\tCVE: \"CVE\",\r\n\tKYD: \"KYD\",\r\n\tCLP: \"CLP\",\r\n\tCLF: \"CLF\",\r\n\tCOP: \"COP\",\r\n\tXOF: \"XOF\",\r\n\tXAF: \"XAF\",\r\n\tKMF: \"KMF\",\r\n\tXPF: \"XPF\",\r\n\tCRC: \"CRC\",\r\n\tCUP: \"CUP\",\r\n\tCYP: \"CYP\",\r\n\tCZK: \"CZK\",\r\n\tDKK: \"DKK\",\r\n\tYDD: \"YDD\",\r\n\tDOP: \"DOP\",\r\n\tXCD: \"XCD\",\r\n\tTPE: \"TPE\",\r\n\tECS: \"ECS\",\r\n\tEGP: \"EGP\",\r\n\tSVC: \"SVC\",\r\n\tEEK: \"EEK\",\r\n\tETB: \"ETB\",\r\n\tEUR: \"EUR\",\r\n\tFKP: \"FKP\",\r\n\tFJD: \"FJD\",\r\n\tGMD: \"GMD\",\r\n\tGHC: \"GHC\",\r\n\tGIP: \"GIP\",\r\n\tXAU: \"XAU\",\r\n\tGTQ: \"GTQ\",\r\n\tGNF: \"GNF\",\r\n\tGWP: \"GWP\",\r\n\tGYD: \"GYD\",\r\n\tHTG: \"HTG\",\r\n\tHNL: \"HNL\",\r\n\tHKD: \"HKD\",\r\n\tHUF: \"HUF\",\r\n\tINR: \"INR\",\r\n\tIDR: \"IDR\",\r\n\tXDR: \"XDR\",\r\n\tIRR: \"IRR\",\r\n\tIQD: \"IQD\",\r\n\tIEP: \"IEP\",\r\n\tILS: \"ILS\",\r\n\tJMD: \"JMD\",\r\n\tJPY: \"JPY\",\r\n\tJOD: \"JOD\",\r\n\tKHR: \"KHR\",\r\n\tKES: \"KES\",\r\n\tKWD: \"KWD\",\r\n\tLAK: \"LAK\",\r\n\tLBP: \"LBP\",\r\n\tLSL: \"LSL\",\r\n\tLRD: \"LRD\",\r\n\tLYD: \"LYD\",\r\n\tMOP: \"MOP\",\r\n\tMGF: \"MGF\",\r\n\tMWK: \"MWK\",\r\n\tMYR: \"MYR\",\r\n\tMVR: \"MVR\",\r\n\tMTL: \"MTL\",\r\n\tMRO: \"MRO\",\r\n\tMUR: \"MUR\",\r\n\tMXP: \"MXP\",\r\n\tMNT: \"MNT\",\r\n\tMAD: \"MAD\",\r\n\tMZM: \"MZM\",\r\n\tNAD: \"NAD\",\r\n\tNPR: \"NPR\",\r\n\tANG: \"ANG\",\r\n\tYUD: \"YUD\",\r\n\tNZD: \"NZD\",\r\n\tNIO: \"NIO\",\r\n\tNGN: \"NGN\",\r\n\tKPW: \"KPW\",\r\n\tNOK: \"NOK\",\r\n\tOMR: \"OMR\",\r\n\tPKR: \"PKR\",\r\n\tXPD: \"XPD\",\r\n\tPAB: \"PAB\",\r\n\tPGK: \"PGK\",\r\n\tPYG: \"PYG\",\r\n\tPEN: \"PEN\",\r\n\tPHP: \"PHP\",\r\n\tXPT: \"XPT\",\r\n\tPLN: \"PLN\",\r\n\tQAR: \"QAR\",\r\n\tRON: \"RON\",\r\n\tRUB: \"RUB\",\r\n\tRWF: \"RWF\",\r\n\tWST: \"WST\",\r\n\tSTD: \"STD\",\r\n\tSAR: \"SAR\",\r\n\tSCR: \"SCR\",\r\n\tSLL: \"SLL\",\r\n\tXAG: \"XAG\",\r\n\tSGD: \"SGD\",\r\n\tSKK: \"SKK\",\r\n\tSBD: \"SBD\",\r\n\tSOS: \"SOS\",\r\n\tZAR: \"ZAR\",\r\n\tLKR: \"LKR\",\r\n\tSHP: \"SHP\",\r\n\tSDP: \"SDP\",\r\n\tSRG: \"SRG\",\r\n\tSZL: \"SZL\",\r\n\tSEK: \"SEK\",\r\n\tCHF: \"CHF\",\r\n\tSYP: \"SYP\",\r\n\tTWD: \"TWD\",\r\n\tTZS: \"TZS\",\r\n\tTHB: \"THB\",\r\n\tTOP: \"TOP\",\r\n\tTTD: \"TTD\",\r\n\tTND: \"TND\",\r\n\tTRY: \"TRY\",\r\n\tUGX: \"UGX\",\r\n\tAED: \"AED\",\r\n\tUYU: \"UYU\",\r\n\tUSD: \"USD\",\r\n\tVUV: \"VUV\",\r\n\tVEF: \"VEF\",\r\n\tVND: \"VND\",\r\n\tYER: \"YER\",\r\n\tCNY: \"CNY\",\r\n\tZRZ: \"ZRZ\",\r\n\tZMK: \"ZMK\",\r\n\tZWD: \"ZWD\",\r\n};\r\nconst CampaignCouponStatus = {\r\n\tBurned: \"BR\",\r\n\tWaiting: \"WT\",\r\n\tExpired: \"EX\",\r\n\tPassive: \"PS\",\r\n};\r\n\r\nconst CampaignExecutionType = {\r\n\tOnline: \"Online\",\r\n\tBatch: \"Batch\",\r\n};\r\n\r\nconst MenuCodes = {\r\n\tPaymentAdminLenderProgram: \"BLPPAS\",\r\n\tPaymentAdminCallCenter: \"BCCPAS\",\r\n\tCSLimitedClientSearch: \"CSCESH\",\r\n\tCSLimitedClientSummary: \"CSCECS\",\r\n\tCSLimitedIndividual: \"CSCEPR\",\r\n\tCSLimitedAddress: \"CSCEAD\",\r\n\tCSLimitedSigningOfficer: \"CSCEAS\",\r\n\tCSLimitedDcAccounts: \"CSCEDA\",\r\n\tCSLimitedCorporate: \"CSCECP\",\r\n\tCSLimitedBeneficiaryOwner: \"CSCEBO\",\r\n\tCSLimitedExternalAccount: \"CSCEEA\",\r\n\tCSLimitedKeyContact: \"CSCEKC\",\r\n\tCSLimitedRiskRating: \"CSCERR\",\r\n\tCSLimitedContracts: \"CSCECT\",\r\n\tCSLimitedPrograms: \"CSCEPO\",\r\n\tCSLimitedMemo: \"CSCEMM\",\r\n\tCSLimitedKYCStatus: \"CSCKYCS\",\r\n\tCSLimitedSecurity: \"CSCESS\",\r\n\tDCBankAccount_Approve: \"DCBWRF\",\r\n\tContract_Approve: \"CNTWRF\",\r\n\tParameter_ParameterDefinition: \"333333\",\r\n\tPrepaid_Card_Application: \"444444\",\r\n\tPrepaid_Prepaid_Group_Definition: \"666666\",\r\n\tPrepaid_MyProfile: \"888888\",\r\n\tPrepaid_BinDefinition: \"999999\",\r\n\tPrepaid_ReportGenerator: \"101010\",\r\n\tPrepaid_ListGenerator: \"111111\",\r\n\tRoleDefinition_Menu: \"121212\",\r\n\tMenu_Backoffice_EftClearingTransactionDdt: \"PRDDTC\",\r\n\tMenu_Client_EftClearingTransactionDdt: \"DDTETD\",\r\n\tEftClearingTransactionEftClient: \"CEFTCT\",\r\n\tMenu_Backoffice_RejectedReturnTransactionsDdt: \"PRDDTR\",\r\n\tMenu_Client_RejectedReturnTransactionsDdt: \"DDTERR\",\r\n\tEft: \"161616\",\r\n\tETransfer: \"171717\",\r\n\tDDT: \"181818\",\r\n\tPrepaid: \"191919\",\r\n\tUserAdmin: \"202020\",\r\n\tEft_CreateEFT: \"222221\",\r\n\tPrepaid_AddOrUpdateContact: \"232323\",\r\n\tBackoffice_SiteVisit: \"242424\",\r\n\tPrepaid_AddOrUpdateAddress: \"303030\",\r\n\tBackoffice: \"323232\",\r\n\tBackoffice_ClientSetup: \"343434\",\r\n\tBackoffice_ClientSetupAutoDeposit: \"BOCMIU\",\r\n\tBackoffice_SalesAgentSetup: \"SASETP\",\r\n\tBackoffice_SalesPersonEftTransactionSearch: \"SAEFTS\",\r\n\tBackoffice_SalesPersonETransferTransactionSearch: \"SAETSH\",\r\n\tBackoffice_SalesPersonDdtTransactionSearch: \"SADDTS\",\r\n\tBackoffice_SalesPersonCdicTransactionSearch: \"SACCSH\",\r\n\tBackoffice_SalesPersonClientMonitoring: \"SACSCS\",\r\n\tBackoffice_Backoffice: \"353535\",\r\n\tEft_AddNewCustomerEFT: \"393939\",\r\n\tETransfer_AddNewCustomereTransfer: \"424242\",\r\n\tTransactions_RejectedReturnTransactions: \"434343\",\r\n\tParameter_RiskQuestion: \"454545\",\r\n\tSystemAdministration: \"464646\",\r\n\tParameter_BMOOriginator: \"474747\",\r\n\tParameter_RiskQuestionType: \"484848\",\r\n\tClearingSettlement: \"525252\",\r\n\tEft_EftRejectedDailySettledItems: \"545454\",\r\n\tParameter_AreaCodeDefinition: \"555551\",\r\n\tParameter_CountryCodeDefinition: \"565656\",\r\n\tParameter_CurrencyCodeParameters: \"575757\",\r\n\tParameter_EndDayStepDefinition: \"595959\",\r\n\tParameter_HolidayDaysDefinition: \"606060\",\r\n\tParameter_EFTTransactionTypes: \"616161\",\r\n\tParameter_EFTReturnedReasonCodes: \"626262\",\r\n\tParameter_CanadaFinancialInstitutionsList: \"636363\",\r\n\tETransfer_eTransferSettlementFiles: \"727272\",\r\n\tETransfer_eTransferOutgoingTransfers: \"787878\",\r\n\tETransfer_eTransferCompletedTransfers: \"797979\",\r\n\tEft_EFTRetunedItemList: \"808080\",\r\n\tSEARCH_EtransferTransactionSearch: \"868686\",\r\n\tTransactions_ErrorTransactions: \"878787\",\r\n\tTransactions_PendingTransactions: \"888881\",\r\n\tTransactions_EtransferUnSettledUnProcessedTransactions: \"898989\",\r\n\tEft_NotificationSettings: \"909090\",\r\n\tCardTransfer: \"939393\",\r\n\tSwift: \"949494\",\r\n\tMoneyTransfer: \"959595\",\r\n\tBanking: \"989898\",\r\n\tATM: \"999991\",\r\n\tBanking_Cheque: \"100100\",\r\n\tAML_KYC: \"101101\",\r\n\tSupport: \"103103\",\r\n\tBanking_BankAccountDashboard: \"105105\",\r\n\tEft_EFTDailySettledItems: \"108108\",\r\n\tProfiles: \"114114\",\r\n\tClearingSettlement_Reconciliation: \"118118\",\r\n\tTransactions_EftUnSettledUnProcessedTransactions: \"121121\",\r\n\tSEARCH_EftTransactionSearch: \"122122\",\r\n\tParameter_DataModelDefinition: \"126126\",\r\n\tParameter_ReportDataModelDefinition: \"127127\",\r\n\tParameter_ReportPropertyDefinition: \"129129\",\r\n\tDDT_DDTList: \"131131\",\r\n\tETransfer_NotificationSettings: \"132132\",\r\n\tDDT_NotificationSettings: \"133133\",\r\n\tReports_CreateReport: \"134134\",\r\n\tNotification_AnnouncementDefinition: \"135135\",\r\n\tETransfer_CreateEtransfer: \"138138\",\r\n\tNotification_NotificationDefinition: \"142142\",\r\n\tFeeProfiles_DdtFeeProfile: \"143143\",\r\n\tFeeProfiles_ReferralFeeProfile: \"145145\",\r\n\tSystemAdministration_Test: \"146146\",\r\n\tBanking_AccountSummary: \"147147\",\r\n\tBanking_TransferBetweenMyAccounts: \"149149\",\r\n\tSEARCH_CDICTransactionSearch: \"151151\",\r\n\tBanking_EftTransferLinkedAccount: \"156156\",\r\n\tBanking_LinkedAccounts: \"157157\",\r\n\tSystemAdministration_CharacterMaksing: \"159159\",\r\n\tTransactions_EftRecurringTransactionSearch: \"160160\",\r\n\tTransactions_EtransferRecurringTransactionSearch: \"161161\",\r\n\tTransactions_BackofficeEtransferRecurringTransactionSearch: \"ETRTBO\",\r\n\tAML_KYC_AMLKYCBlacklist: \"162162\",\r\n\tEft_EftOutgoingFile: \"167167\",\r\n\tSystemAdministration_AuditLog: \"170170\",\r\n\tSystemAdministration_TestUser: \"171171\",\r\n\tReports_TransactionDetailSearch: \"172172\",\r\n\tUserAdmin_ChangeOrResetPassword: \"173173\",\r\n\tUserAdmin_NewUserDefinition: \"174174\",\r\n\tBackoffice_TransactionApproval: \"176176\",\r\n\tExecutiveReports_FundsMovement: \"177177\",\r\n\tReports: \"178178\",\r\n\tRoleDefinition_Action: \"180180\",\r\n\tRoleDefinition_MenuAction: \"181181\",\r\n\tExecutiveReports_RiskRatingSummary: \"184184\",\r\n\tRoleDefinition_MenuActionRight: \"187187\",\r\n\tRoleDefinition_UserAuthorityDefinition: \"188188\",\r\n\tExecutiveReports_VolumeAnalysis: \"189189\",\r\n\tExecutiveReports_ExecutiveSummary: \"195195\",\r\n\tDDT_CDICAccounts: \"199199\",\r\n\tLimitProfileMenu_ClientLimitProfile: \"202202\",\r\n\tClearingSettlement_Eft: \"205205\",\r\n\tClearingSettlement_ETransfer: \"206206\",\r\n\tProfiles_FeeProfiles: \"210210\",\r\n\tDDT_CDIC: \"214214\",\r\n\tEft_Transactions: \"216216\",\r\n\tETransfer_Transactions: \"229229\",\r\n\tEft_Reports: \"231231\",\r\n\tReports_ExecutiveReports: \"232232\",\r\n\tUserAdmin_UserDetail: \"233233\",\r\n\tNotification: \"234234\",\r\n\tNotification_NotificationTemplate: \"235235\",\r\n\tNotificationTemplate_TemplateTypeDefinition: \"236236\",\r\n\tNotificationTemplate_TemplateDefinition: \"237237\",\r\n\tRoleDefinition_UserRoleDefinition: \"238238\",\r\n\tFavorites: \"241241\",\r\n\tSEARCH: \"242242\",\r\n\tMONITORING: \"243243\",\r\n\tParameter: \"244244\",\r\n\tProgram: \"245245\",\r\n\tReports_Merchant: \"246246\",\r\n\tReports_Merchant_Reports_EFT: \"247247\",\r\n\tReports_Merchant_Reports_ETransfer: \"248248\",\r\n\tReports_Merchant_Reports_DDT: \"249249\",\r\n\tHeader: \"250250\",\r\n\tFeeProfiles_FeeProfileList: \"251251\",\r\n\tHeader_MyProfileHeader: \"252252\",\r\n\tFeeProfiles_FixedFeeProfile: \"253253\",\r\n\tFeeProfiles_WeightedFeeProfile: \"254254\",\r\n\tUserAdmin_RoleDefinition: \"255255\",\r\n\tHeader_ApiSandBox: \"257257\",\r\n\tClearingSettlement_MatchingCriteriaDefinition: \"258258\",\r\n\tAppTitleBar: \"259259\",\r\n\tAppTitleBar_Gavel: \"260260\",\r\n\tAppTitleBar_AttachMoney: \"261261\",\r\n\tAppTitleBar_Notifications: \"262262\",\r\n\tAppTitleBar_VolumeUp: \"263263\",\r\n\tClearingSettlement_ClientReconciliation: \"264264\",\r\n\tBanking_NotificationSettings: \"265265\",\r\n\tProfiles_LimitProfileMenu: \"267267\",\r\n\tLimitProfileMenu_UserLimitProfile: \"268268\",\r\n\tFavorites_ManageFavoriteUserMenu: \"271271\",\r\n\tSEARCH_DDTTransactionSearch: \"272272\",\r\n\tLoyalty_Manage_Card_Loyalty_Card_Detail: \"273273\",\r\n\tPrepaid_LoyaltyTerminal: \"275275\",\r\n\tPrepaid_ProductDetail: \"277277\",\r\n\tLoyalty_Manage_Card_Loyalty_AssignedCard: \"278278\",\r\n\tPrepaid_ManageRisk: \"282282\",\r\n\tPrepaid_PosTransaction: \"283283\",\r\n\tLoyalty_Manage_Card_Loyalty_Transaction: \"284284\",\r\n\tLoyalty_Manage_Card_Loyalty_AutoLoad: \"285285\",\r\n\tAlertReports_ContractDeadlineAlert: \"286286\",\r\n\tPrepaid_LoyaltyXUsage: \"287287\",\r\n\tPrepaid_Loyalty_Manage_Card: \"288288\",\r\n\tETransfer_Reports: \"289289\",\r\n\tReports_AdHocReports: \"290290\",\r\n\tPrepaid_LoyaltyUpgParam: \"291291\",\r\n\tPrepaid_LoyaltyCatalogUsg: \"292292\",\r\n\tPrepaid_LoyaltyMerchantLst: \"293293\",\r\n\tDDT_Reports: \"294294\",\r\n\tReports_ListGenerator: \"295295\",\r\n\tParameter_AuditLog: \"298298\",\r\n\tTransactionAdjustment: \"299299\",\r\n\tManualTransactionEntry: \"MANTXN\",\r\n\tPrepaid_KadirTestName: \"301301\",\r\n\tPrepaid_ConversionParameter: \"303303\",\r\n\tParameter_GenericScreenDefinition: \"304304\",\r\n\tProgram_DDTCDIC: \"308308\",\r\n\tDDTCDIC_DDTList: \"309309\",\r\n\tDDTCDIC_ListGenerator: \"311311\",\r\n\tDDTCDIC_CDICAccounts: \"313313\",\r\n\tBackoffice_ContractList: \"315315\",\r\n\tBackoffice_AgentEarnings: \"317317\",\r\n\tBackoffice_AgentStatement: \"318318\",\r\n\tBackoffice_AlertReports: \"322322\",\r\n\tAlertReports_ClientRiskReviewAlert: \"324324\",\r\n\tFeeProfiles_AgentCommissionDefinition: \"325325\",\r\n\tWireTransfer: \"326326\",\r\n\tWireTransfer_CreateWireTransfer: \"327327\",\r\n\tBaseTest: \"328328\",\r\n\tParameter_GenericScreenTest: \"329329\",\r\n\tSupport_OnlineSupport: \"330330\",\r\n\tSupport_FAQManage: \"331331\",\r\n\tSupport_FAQView: \"332332\",\r\n\tSupport_UserGuideManage: \"333331\",\r\n\tSupport_UserGuideView: \"334334\",\r\n\tSystemAdministration_Resource: \"335335\",\r\n\tSystemAdministration_ClientUserAuthorization: \"336336\",\r\n\tLENDING: \"347347\",\r\n\tLENDING_Performance: \"348348\",\r\n\tPerformance_PortfolioPerformance: \"349349\",\r\n\tLENDING_PaymentAdmin: \"350350\",\r\n\tLENDING_BorrowerAdmin: \"351351\",\r\n\tLENDING_PartnerAdmin: \"352352\",\r\n\tProgram_Eft: \"353353\",\r\n\tEft_UnSettledUnProcessedTransactions: \"354354\",\r\n\tEft_EftIncoming: \"355355\",\r\n\tEft_BackofficeEftIncoming: \"EFTINP\",\r\n\tEft_Transaction_Incoming: \"EFTITR\",\r\n\tReports_Report_20190225124243: \"356356\",\r\n\tBanking_AutoLoadingInstruction: \"357357\",\r\n\tBackoffice_FeeProfileList: \"358358\",\r\n\tReports_Report_20190226114936: \"359359\",\r\n\tBanking_EtransferTransferLinkedAccount: \"360360\",\r\n\tCheque_ChequeOrder: \"362362\",\r\n\tReports_Report_20190227092635: \"363363\",\r\n\tCheque_ChequeManagement: \"364364\",\r\n\tSystemAdministration_name: \"365365\",\r\n\tEftTransactionSearch_TestName: \"SDDSSS\",\r\n\tEft_EftIncomingWorkflow: \"EFTINT\",\r\n\tAML_KYC_TransactionAlert: \"TRALER\",\r\n\tAML_KYC_KycAlert: \"KYCALE\",\r\n\tAML_KYC_ClientDetail: \"CLIDET\",\r\n\tAML_KYC_CaseTransactionHistory: \"CASETR\",\r\n\tAML_KYC_TransactionAlertScenarioDefinition: \"TASDEF\",\r\n\tAML_KYC_KycVerificationScenarioDefinition: \"KVSDEF\",\r\n\tAML_KYC_DownJonesBlacklist: \"DJBLAC\",\r\n\tAML_KYC_DCBankBlacklistPool: \"BACKBL\",\r\n\tAML_KYC_ClientBlacklistPool: \"CLIBLA\",\r\n\tAML_KYC_InternalBlacklist: \"INTBLA\",\r\n\tAML_KYC_VerificationPriority: \"VERPRI\",\r\n\tSystemAdministration_Ufuk_Test: \"UFUTES\",\r\n\tReports_Report_20190304094411: \"378378\",\r\n\tReports_Report_20190304094528: \"379379\",\r\n\tEFTPredefinedReports: \"EFTPRE\",\r\n\tEFTAdHocReports: \"EFTADH\",\r\n\tETransferPredefinedReports: \"ETRPRE\",\r\n\tETransferAdHocReports: \"ETRADH\",\r\n\tDDTPredefinedReports: \"DDTPRE\",\r\n\tDDTAdHocReports: \"DDTADH\",\r\n\tLMSPredefinedReports: \"LMSPRE\",\r\n\tLMSAdHocReports: \"LMSADH\",\r\n\tLOSPredefinedReports: \"LOSPRE\",\r\n\tLOSAdHocReports: \"LOSADH\",\r\n\tBillPaymentPredefinedReports: \"BILPRE\",\r\n\tBillPaymentAdHocReports: \"BILADH\",\r\n\tBankingPredefinedReports: \"BANPRE\",\r\n\tBankingAdHocReports: \"BANADH\",\r\n\tPrepaidAdHocReports: \"CMSGRP\",\r\n\tClientAccountActivities: \"CLIACT\",\r\n\tCloseAccount: \"CLOACC\",\r\n\tCallCenterEFTTransactions: \"CALEFT\",\r\n\tCallCenterEtransferTransactions: \"CALETS\",\r\n\tCallCenterDDTTransactions: \"CALDDT\",\r\n\tCallCenterCDICTransactions: \"CALCDC\",\r\n\tCallCenterClientMonitor: \"CALLCS\",\r\n\tCustomerDefinition: \"CUSDEF\",\r\n\tEft_TraceApprove: \"EFTTAP\",\r\n\tEtransfer_TraceApprove: \"ETRTAP\",\r\n\tEft_SuspiciousApprove: \"EFTSAP\",\r\n\tEtransfer_SuspiciousApprove: \"ETRSAP\",\r\n\tDdt_SuspiciousApprove: \"DDTSAP\",\r\n\tCdic_SuspiciousApprove: \"CDISAP\",\r\n\tEft_SubmitApprove: \"EFTSUB\",\r\n\tEtransfer_SubmitApprove: \"ETRSUB\",\r\n\tBill_CustomerList: \"BILLPL\",\r\n\tCallCenter_CustomerList: \"CALCUS\",\r\n\tBillCustomerTransactionList: \"BCTLOP\",\r\n\tBillClientTransactionList: \"BTCLOP\",\r\n\tClientProductRestrictionProfile: \"CLRSTD\",\r\n\tDCBankProductRestrictionProfile: \"DCRSTD\",\r\n\tClientBillRecurringList: \"BILCLR\",\r\n\tCustomerBillRecurringList: \"BILCUR\",\r\n\tMenu_CollectionParameter: \"LMSCOL\",\r\n\tMenu_AdminCollectionPool: \"ACOLPO\",\r\n\tLms_BorrowerDetail: \"LMSBDT\",\r\n\tLms_LoanDetail: \"LMSLDT\",\r\n\tLms_PaymentAdmin: \"LMSPAD\",\r\n\tLOS_LoanApproval: \"LOSLAP\",\r\n\tLms_ApplicantDetails: \"LMSLDT\",\r\n\tLOS_ApplicantDefinition: \"LOSAPL\",\r\n\tLOS_CreateApplication: \"NWLOAN\",\r\n\tLOS_QuickFundsTransfer: \"LOSQFT\",\r\n\tLms_PortfolioPerformance: \"LMSPER\",\r\n\tMenu_MoneyTransferToCardHolder: \"PRPMTC\",\r\n\tBackoffice_Accounts: \"ACCCUN\",\r\n\tMenu_WalletCardRenawalList: \"WLLEMB\",\r\n\tMenu_CardRenawalList: \"PPCRLM\",\r\n\tMenu_LmsCardRenewalList: \"LMSCES\",\r\n\tMenu_DomesticAndInternationalReport: \"CRDDAI\",\r\n\tMenu_CardReport: \"CRDRPT\",\r\n\tMenu_SwitchReport: \"CRDSWW\",\r\n\tMenu_ChannelReport: \"CRDCHN\",\r\n\tMenu_ActiveCardReport: \"CRDACC\",\r\n\tMenu_CallCenterWireTransferTransactionSearch: \"CLLCWT\",\r\n\tMenu_ClientWireTransferTransactionSearch: \"TSWTTL\",\r\n\tMenu_BackOfficeTransactionSearchWireTransfer: \"WRTCPY\",\r\n\tMenu_LmsETransfer: \"LMSETR\",\r\n\tLms_LimitAdjustmentForWorkflow: \"LAFWWW\",\r\n\tDDT_Transactions: \"DDTTNX\",\r\n\tDDT_Transactions_DdtRejectedReturnedTransactions: \"DDTERR\",\r\n\tDDT_Transactions_DdtClearingTransactionSearch: \"DDTETD\",\r\n\tDDT_DdtAccountActivities: \"DDTACA\",\r\n\tDDT_Transactions_DdtTransactions: \"272272\",\r\n\tMenu_Backoffice_DDT_Transactions_IncomingEftTransactions: \"998855\",\r\n\tMenu_Client_DDT_Transactions_IncomingEftTransactions: \"998866\",\r\n\tDDT_Transactions_IncomingETransferTransactions: \"DDTINE\",\r\n\tMenu_SubClientIncomingEftTransactions: \"SCINEF\",\r\n\tDDT_ETransfer_Incoming_TransactionSearch: \"DDTINE\",\r\n\tDDT_CDIC_Etransfer_Incoming_TransactionSearch: \"DDTINB\",\r\n\tMenu_BackOfficeCardFeeProfile: \"BCKCFP\",\r\n\tMenu_CardFeeProfile: \"CRDFPR\",\r\n\tMenu_ClientCardFeeProfile: \"CCDFPR\",\r\n\tMenu_BackofficeTransactionFeeProfile: \"BCKTRX\",\r\n\tMenu_TransactionFeeProfile: \"TRXFPR\",\r\n\tMenu_ClientCardHolderFee: \"CCRCHF\",\r\n\tMenu_ClientTransactionLimitProfile: \"CMSTLM\",\r\n\tMenu_LimitProfile: \"PRLPTP\",\r\n\tMenu_DCLimitProfile: \"PRLIPF\",\r\n\tMenu_ClientProductManagement: \"CMSCPM\",\r\n\tMenu_MyAccountActivityReport: \"MYRPDF\",\r\n\tCMS_TransactionManagement_WalletTransaction: \"WALTRA\",\r\n\tCMS_TransactionManagement_CardTransaction: \"WALCTR\",\r\n\tCallCenter_WalletTransaction: \"CALLWT\",\r\n\tCallCenter_CardTransaction: \"CALLCT\",\r\n\tCallCenter_CardMonitoring: \"CLCNCM\",\r\n\tFee_Transaction: \"FEESRC\",\r\n\tMenu_ExportCardEmbossFile: \"CASCEF\",\r\n\tMenu_ImportCardEmbossFile: \"CMSIMF\",\r\n\tMenu_CardMonitoring: \"CRDMON\",\r\n\tMenu_BackofficeCardMonitoring: \"WLLMON\",\r\n\tMenu_CallCenterCardMonitoring: \"CLCNCM\",\r\n\tMenu_CorporateCard : \"CORPCC\",\r\n\tMenu_FrozenCardDetails : \"FRZCRD\",\r\n\tMenu_CaaSLinks : \"CAASLK\",\r\n};\r\nconst ActionCodes = {\r\n\tSubmit: \"Submit\",\r\n\tCreate: \"Create\",\r\n\tDelete: \"Delete\",\r\n\tUpdate: \"Update \",\r\n\tRefresh: \"Refresh\",\r\n\tGet: \" Get\",\r\n\tSearch: \"Search \",\r\n\tSend: \"Send \",\r\n\tRollback: \"Rollback \",\r\n\tReSubmit: \"Re-Submit\",\r\n\tCreateFile: \"CreateFile\",\r\n\tCreateReport: \"CreateReport\",\r\n\tPreview: \"Preview \",\r\n\tUpload: \"Upload\",\r\n\tView: \"View \",\r\n\tPrint: \"Print\",\r\n};\r\nconst EtransferRequestType = {\r\n\tRequest: \"R\",\r\n\tTransfer: \"T\",\r\n};\r\n\r\nconst BankFileStatus = {\r\n\tPending: \"P\",\r\n\tRejected: \"R\",\r\n\tSuccess: \"S\",\r\n\tSent: \"T\",\r\n\tError: \"E\",\r\n\tInProgress: \"I\",\r\n\tWaiting: \"W\",\r\n};\r\nconst LicenseRegistrationEntity = {\r\n\tFINTRAC: \"FINTRAC\",\r\n\tAMF: \"AMF\",\r\n\tOther: \"O\",\r\n};\r\n\r\n//#region FanClub\r\n\r\nconst BillPayType = {\r\n\tIndividual: \"I\",\r\n\tRecurring: \"R\",\r\n\tFile: \"F\",\r\n};\r\n\r\nconst FcRole = {\r\n\tBackoffice: \"1\",\r\n\tUser: \"2\",\r\n\tMerchant: \"4\",\r\n};\r\nconst FcGender = {\r\n\tMale: \"0\",\r\n\tFemale: \"1\",\r\n};\r\nconst FcCountry = {\r\n\tCanada: \"CA\",\r\n\tTurkey: \"TR\",\r\n};\r\nconst FcCity = {\r\n\tKonya: \"KONYA\",\r\n\tToronto: \"TORONTO\",\r\n};\r\n//#endregion\r\n\r\nconst WireStatus = {\r\n\tSuccessfull: \"S\",\r\n\tDCRejection: \"DR\",\r\n\tSwiftRejection: \"SR\",\r\n\tAutoRejection: \"AR\",\r\n};\r\nconst WireSubStatus = {\r\n\tSend: \"S\",\r\n\tLimitException: \"LE\",\r\n\tLimit: \"L\",\r\n\tKYC: \"KYC\",\r\n\tError: \"E\",\r\n\tCountry: \"C\",\r\n\tInsufficentFunds: \"I\",\r\n\tSuccess: \"SC\",\r\n\tPending: \"P\",\r\n};\r\nconst ResourceType = {\r\n\tMenu: \"0\",\r\n\tError: \"1\",\r\n\tOthers: \"2\",\r\n};\r\nconst PropertyType = {\r\n\tDate: \"date\",\r\n\tText: \"text\",\r\n\tNumber: \"number\",\r\n\tDecimal: \"decimal\",\r\n\tSelect: \"select\",\r\n\tEmail: \"email\",\r\n\tInt: \"int\",\r\n};\r\nconst AmlReviewType = {\r\n\tTransactionBased: \"TransactionBased\",\r\n\tPeriodic: \"Periodic\",\r\n};\r\n\r\nconst WalletAutoLoadType = {\r\n\tEFT: \"EFT\",\r\n\teTransfer: \"eTransfer\",\r\n\tMyAccounts: \"MyAccounts\",\r\n};\r\n\r\nconst CardLevel = {\r\n\tMainCard: \"M\",\r\n\tSupplementaryCard: \"S\",\r\n};\r\n\r\nconst TransactionOrderStatus = {\r\n\tPending: \"P\",\r\n\tWorking: \"I\",\r\n\tFinished: \"F\",\r\n\tError: \"E\",\r\n\tCancelled: \"C\",\r\n\tFreezed: \"D\",\r\n};\r\n\r\nconst ExpressionType = {\r\n\tEqual: \"Equal\",\r\n\tLike: \"Like\",\r\n};\r\n\r\nconst EmvScriptPoolInsertType = {\r\n\tSingle: \"S\",\r\n\tFile: \"F\",\r\n};\r\nconst InventoryOrderStatusType = {\r\n\tOrdered: \"O\",\r\n\tReceived: \"R\",\r\n\tCreated: \"C\",\r\n};\r\nconst CheckType = {\r\n\tCheckIn: \"Check-In\",\r\n\tCheckOut: \"Check-Out\",\r\n\tCheckInId: \"I\",\r\n\tCheckOutId: \"O\",\r\n};\r\nconst ClearingProcessStatus = {\r\n\tReadyToSend: \"RD\",\r\n};\r\n\r\nconst ClearingDirection = {\r\n\tOutgoing: \"O\",\r\n};\r\n\r\nconst ClearingIssuerFlag = {\r\n\tAcquirer: \"A\",\r\n\tIssuer: \"I\",\r\n};\r\n\r\nconst CardFindType = [\r\n\t{\r\n\t\tId: 1,\r\n\t\tText: \"Card Id\",\r\n\t},\r\n\t{\r\n\t\tId: 2,\r\n\t\tText: \"Card Number\",\r\n\t},\r\n];\r\nconst DdtFindType = [\r\n\t{\r\n\t\tId: 1,\r\n\t\tText: \"Customer Number\",\r\n\t},\r\n\t{\r\n\t\tId: 2,\r\n\t\tText: \"DDT Id\",\r\n\t},\r\n\t{\r\n\t\tId: 3,\r\n\t\tText: \"DDT Number\",\r\n\t},\r\n];\r\nconst ProfileStatus = {\r\n\tActive: \"A\",\r\n\tInactive: \"IA\",\r\n\tClosed: \"C\",\r\n};\r\nconst KycVerificationType = {\r\n\tIdVerification: \"Id\",\r\n\tAddressVerification: \"Address\",\r\n\tAccountVerification: \"Account\",\r\n};\r\n\r\nconst TransactionMoneyTransferType = [\r\n\t{\r\n\t\tId: 1,\r\n\t\tText: \"Customer\",\r\n\t},\r\n\t{\r\n\t\tId: 2,\r\n\t\tText: \"Card\",\r\n\t},\r\n];\r\n\r\nconst LOSLoanType = {\r\n\tSecureCard: \"0\",\r\n\tLoan: \"1\",\r\n\tLOC: \"2\",\r\n};\r\n\r\nconst CashLimitUsageType = {\r\n\tFixed: \"F\",\r\n\tRatio: \"R\",\r\n};\r\n\r\nconst LOSApprovalStatus = {\r\n\tSaved: \"0\",\r\n\tApproved: \"1\",\r\n\tRejected: \"2\",\r\n\tOnHold: \"3\",\r\n\tSentApproval: \"4\",\r\n};\r\n\r\nconst LOSIdenticationMethod = {\r\n\tDualProcessMethod: \"D\",\r\n\tInPersonIDVerification: \"I\",\r\n\tCreditFileMethod: \"P\",\r\n};\r\n\r\nconst BillStatusType = {\r\n\tWaiting: \"Waiting\",\r\n\tCanceled: \"Canceled\",\r\n\tRejected: \"Rejected\",\r\n\tPayed: \"Payed\",\r\n\tCompleted: \"Completed\",\r\n\tTelpayAccess: \"TelpayAccess\",\r\n};\r\nconst LOSApplicantStatus = {\r\n\tSaved: \"0\",\r\n\tCompleted: \"1\",\r\n};\r\nconst LOSApplicationStatus = {\r\n\tOpen: \"0\",\r\n\tSaved: \"2\",\r\n};\r\nconst DaysOfWeek = [\r\n\t{\r\n\t\tId: 1,\r\n\t\tText: \"Monday\",\r\n\t},\r\n\t{\r\n\t\tId: 2,\r\n\t\tText: \"Tuesday\",\r\n\t},\r\n\t{\r\n\t\tId: 3,\r\n\t\tText: \"Wednesday\",\r\n\t},\r\n\t{\r\n\t\tId: 4,\r\n\t\tText: \"Thursday\",\r\n\t},\r\n\t{\r\n\t\tId: 5,\r\n\t\tText: \"Friday\",\r\n\t},\r\n\t{\r\n\t\tId: 6,\r\n\t\tText: \"Saturday\",\r\n\t},\r\n\t{\r\n\t\tId: 0,\r\n\t\tText: \"Sunday\",\r\n\t},\r\n];\r\nconst DaysOfMonth = [\r\n\t{\r\n\t\tId: 1,\r\n\t\tText: \"1\",\r\n\t},\r\n\t{\r\n\t\tId: 2,\r\n\t\tText: \"2\",\r\n\t},\r\n\t{\r\n\t\tId: 3,\r\n\t\tText: \"3\",\r\n\t},\r\n\t{\r\n\t\tId: 4,\r\n\t\tText: \"4\",\r\n\t},\r\n\t{\r\n\t\tId: 5,\r\n\t\tText: \"5\",\r\n\t},\r\n\t{\r\n\t\tId: 6,\r\n\t\tText: \"6\",\r\n\t},\r\n\t{\r\n\t\tId: 7,\r\n\t\tText: \"7\",\r\n\t},\r\n\t{\r\n\t\tId: 8,\r\n\t\tText: \"8\",\r\n\t},\r\n\t{\r\n\t\tId: 9,\r\n\t\tText: \"9\",\r\n\t},\r\n\t{\r\n\t\tId: 10,\r\n\t\tText: \"10\",\r\n\t},\r\n\t{\r\n\t\tId: 11,\r\n\t\tText: \"11\",\r\n\t},\r\n\t{\r\n\t\tId: 12,\r\n\t\tText: \"12\",\r\n\t},\r\n\t{\r\n\t\tId: 13,\r\n\t\tText: \"13\",\r\n\t},\r\n\t{\r\n\t\tId: 14,\r\n\t\tText: \"14\",\r\n\t},\r\n\t{\r\n\t\tId: 15,\r\n\t\tText: \"15\",\r\n\t},\r\n\t{\r\n\t\tId: 16,\r\n\t\tText: \"16\",\r\n\t},\r\n\t{\r\n\t\tId: 17,\r\n\t\tText: \"17\",\r\n\t},\r\n\t{\r\n\t\tId: 18,\r\n\t\tText: \"18\",\r\n\t},\r\n\t{\r\n\t\tId: 19,\r\n\t\tText: \"19\",\r\n\t},\r\n\t{\r\n\t\tId: 20,\r\n\t\tText: \"20\",\r\n\t},\r\n\t{\r\n\t\tId: 21,\r\n\t\tText: \"21\",\r\n\t},\r\n\t{\r\n\t\tId: 22,\r\n\t\tText: \"22\",\r\n\t},\r\n\t{\r\n\t\tId: 23,\r\n\t\tText: \"23\",\r\n\t},\r\n\t{\r\n\t\tId: 24,\r\n\t\tText: \"24\",\r\n\t},\r\n\t{\r\n\t\tId: 25,\r\n\t\tText: \"25\",\r\n\t},\r\n\t{\r\n\t\tId: 26,\r\n\t\tText: \"26\",\r\n\t},\r\n\t{\r\n\t\tId: 27,\r\n\t\tText: \"27\",\r\n\t},\r\n\t{\r\n\t\tId: 28,\r\n\t\tText: \"28\",\r\n\t},\r\n\t{\r\n\t\tId: 29,\r\n\t\tText: \"29\",\r\n\t},\r\n\t{\r\n\t\tId: 30,\r\n\t\tText: \"30\",\r\n\t},\r\n\t{\r\n\t\tId: 31,\r\n\t\tText: \"31\",\r\n\t},\r\n];\r\nconst MonthsOfYear = [\r\n\t{\r\n\t\tId: 1,\r\n\t\tText: \"January\",\r\n\t},\r\n\t{\r\n\t\tId: 2,\r\n\t\tText: \"February\",\r\n\t},\r\n\t{\r\n\t\tId: 3,\r\n\t\tText: \"March\",\r\n\t},\r\n\t{\r\n\t\tId: 4,\r\n\t\tText: \"April\",\r\n\t},\r\n\t{\r\n\t\tId: 5,\r\n\t\tText: \"May\",\r\n\t},\r\n\t{\r\n\t\tId: 6,\r\n\t\tText: \"June\",\r\n\t},\r\n\t{\r\n\t\tId: 7,\r\n\t\tText: \"July\",\r\n\t},\r\n\t{\r\n\t\tId: 8,\r\n\t\tText: \"August\",\r\n\t},\r\n\t{\r\n\t\tId: 9,\r\n\t\tText: \"September\",\r\n\t},\r\n\t{\r\n\t\tId: 10,\r\n\t\tText: \"October\",\r\n\t},\r\n\t{\r\n\t\tId: 11,\r\n\t\tText: \"November\",\r\n\t},\r\n\t{\r\n\t\tId: 12,\r\n\t\tText: \"December\",\r\n\t},\r\n];\r\nconst SwitchNetworkType = {\r\n\tMasterCard: \"MASTERCARD\",\r\n\tVisa: \"VISA\",\r\n\tMoneris: \"MONERIS\",\r\n};\r\n\r\nconst PgmCode = {\r\n\tMasterCard: \"MASTERCARD\",\r\n\tVisa: \"VISA\",\r\n\tInteract: \"INTERACT\",\r\n};\r\n\r\nconst ETransferMoneySendStatus = {\r\n\tTransferInitiated: \"1\",\r\n\tTransferAvailable: \"3\",\r\n\tAuthenticationFailure: \"5\",\r\n\tAuthenticationSuccessful: \"6\",\r\n\tDeclined: \"7\",\r\n\tCancelled: \"8\",\r\n\tExpired: \"9\",\r\n\tCompleted: \"10\",\r\n\tDepositMechanismSpecified: \"11\",\r\n\tDepositMechanismFailed: \"13\",\r\n\tDepositMechanismCorrected: \"12\",\r\n\tDepositMechanismDeclined: \"14\",\r\n\tInSettlement: \"15\",\r\n};\r\n\r\nconst FinScanSearchStatus = {\r\n\tManualVerification: \"0\",\r\n\tUnverified: \"1\",\r\n\tVerified: \"2\",\r\n\tRejected: \"4\"\r\n};\r\n\r\nconst FinScanSearchResultType = {\r\n\tListPartialMatch: \"ListPartialMatch\",\r\n\tListNotMatch: \"ListNotMatch\",\r\n\tListExactMatch: \"ListExactMatch\"\r\n};\r\n\r\nconst CanadaPostIdVerificationStatus = {\r\n\tCleared: \"Cleared\",\r\n\tDenied: \"Denied\",\r\n\tNone: \"None\",\r\n\tExpired : \"Expired\"\r\n};\r\nconst ETransferMoneyRequestStatus = {\r\n\tInitiated: \"1\",\r\n\tAvailable: \"2\",\r\n\tFulfilled: \"3\",\r\n\tDeclined: \"4\",\r\n\tCancelled: \"5\",\r\n\tExpired: \"6\",\r\n\tDepositFailed: \"7\",\r\n\tDepositeComplete: \"8\",\r\n};\r\n\r\nconst PgmCodeType = {\r\n\tMasterCard: \"MASTERCARD\",\r\n\tVisa: \"VISA\",\r\n\tInteract: \"INTERACT\",\r\n};\r\n\r\nconst ChargeBack = {\r\n\tFunctionCodeFirstChargeBack: \"450;453;\",\r\n\tFunctionCodeSecondChargeBack: \"451;454;\",\r\n};\r\n\r\nconst ClearingDisputeStatus = {\r\n\tClearingDisputeReceiverStatus: \"ClearingDisputeReceiverStatus\",\r\n\tClearingDisputeSenderStatus: \"ClearingDisputeSenderStatus\",\r\n};\r\n\r\nconst ClearingFeeFunctionCode = {\r\n\tFunctionCodeFee: \"700;\",\r\n\tFunctionCodeFeeReturn: \"780;\",\r\n\tFunctionCodeFeeResubmission: \"781;\",\r\n\tFunctionCodeFeeArbitrationReturn: \"782;\",\r\n\tFunctionCodeSystemFee: \"783;\",\r\n};\r\n\r\nconst ClearingFeeType = {\r\n\tFee: \"Fee\",\r\n\tFunds: \"Funds\",\r\n\tSystemFee: \"SystemFee\",\r\n};\r\nconst InteracRedirectURL = {\r\n\tLocalStorageKey: \"IntRqDtV\",\r\n};\r\n\r\nconst RoleLevel = {\r\n\tBackofficeAdmin: \"BackofficeAdmin\",\r\n\tBackofficeStandardUser: \"BackofficeStandardUser\",\r\n\tBackofficeSuperAdmin: \"BackofficeSuperAdmin\",\r\n\tClientAdmin: \"ClientAdmin\",\r\n\tClientStandardUser: \"ClientStandardUser\",\r\n\tSalesPerson: \"SalesPerson\",\r\n};\r\n\r\nconst UserStatus = {\r\n\tOk: \"1\",\r\n\tPasswordLocked: \"2\",\r\n\tBlocked: \"3\",\r\n\tExpired: \"4\",\r\n\tInactive: \"5\",\r\n\tOnHold: \"6\",\r\n};\r\n\r\nconst WireMsbStatusValue = {\r\n\tPending: \"Pending\",\r\n\tReject: \"Reject\",\r\n\tApprove: \"Approve\",\r\n};\r\n\r\nconst LocationRange = {\r\n\tlatitudeMax: 90,\r\n\tlatitudeMin: -90,\r\n\tlongitudeMax: 180,\r\n\tlongitudeMin: -180,\r\n};\r\n\r\nconst MenuAuthorityDefinitionCode = {};\r\n\r\nconst CMSTemplateType = {\r\n\tTransactionLimit: \"1\",\r\n\tCardApplication: \"2\",\r\n\tCustomerCreation: \"3\",\r\n\tMoneyDeposit: \"4\",\r\n};\r\n\r\nconst WarningMessage = {\r\n\tEmpty: \"cannot be empty.\",\r\n};\r\nconst BankingAccountType = {\r\n\tCODE: \"BankingAccountType\",\r\n\tSettlementCode: \"SettlementAccount\",\r\n\tDCBankAccount: \"DBA\",\r\n\tDDTAccount: \"DDT\",\r\n\tCDIC: \"CDIC\",\r\n\tPrimaryAccount: \"PA\",\r\n\tSecondaryAccount: \"SA\",\r\n\tSecurityAccount: \"CA\",\r\n\tSecurityNumber: \"SCN\",\r\n\tFeeAccount: \"FA\",\r\n\tSettlementAccount: \"CASA\",\r\n\tTelpaySettlementAccount: \"TELPAYA\",\r\n\tStoreAccount: \"STA\",\r\n\r\n\tWalletAccount: \"WA\",\r\n\tWalletChequeAccount: \"WCA\",\r\n\tPrepaidCardAccount: \"PPCA\",\r\n\tCustomerMainAccount: \"CCMACC\",\r\n\r\n\tMainAccountSummaryType: \"M\",\r\n\tPooledAccount: \"PooledAccount\",\r\n\tIsClientCustomer: \"IsClientCustomer\",\r\n\tIsClient: \"IsClient\",\r\n\tAccount: \"Account\",\r\n};\r\nconst LOSApplicationCardStatus = {\r\n\tPassive: \"0\",\r\n\tActive: \"1\",\r\n\tCancel: \"3\"\r\n};\r\nconst LmsLimitAdjustmentHistoryStatus = {\r\n\tPending: \"0\",\r\n\tApproved: \"1\",\r\n\tRejected: \"2\",\r\n\tNeedsSecurityAmount: \"3\"\r\n};\r\n\r\nconst TspTokenStatus = {\r\n\tPending: \"0\",\r\n\tApproved: \"1\",\r\n\tRejected: \"2\",\r\n\tNeedsSecurityAmount: \"3\"\r\n};\r\n\r\nconst MdesTokenStatusDefinition = [\r\n\t{ Value: 1, Text: \"INACTIVE\" },\r\n\t{ Value: 2, Text: \"ACTIVE\" },\r\n\t{ Value: 3, Text: \"SUSPENDED\" },\r\n\t{ Value: 4, Text: \"DEACTIVATED\" }\r\n];\r\n\r\nconst MdesTokenTypeDefinition = [\r\n\t{ Value: 1, Text: \"EMBEDDED_SE\" },\r\n\t{ Value: 2, Text: \"CLOUD\" },\r\n\t{ Value: 3, Text: \"STATIC\" }\r\n];\r\n\r\nconst MdesWalletDefinition = [\r\n\t{ Value: 1, Text: \"APPLE\" },\r\n\t{ Value: 2, Text: \"GOOGLE\" },\r\n\t{ Value: 3, Text: \"SAMSUNG\" },\r\n\t{ Value: 4, Text: \"MDES 4 MERCHANT\" }\r\n];\r\n\r\nconst MdesTokenSourceDefinition = [\r\n\t{ Value: 1, Text: \"ACCOUNT_ON_FILE\" },\r\n\t{ Value: 2, Text: \"ACCOUNT_ADDED_MANUALLY\" },\r\n\t{ Value: 3, Text: \"ACCOUNT_ADDED_VIA_APPLICATION\" },\r\n\t{ Value: 4, Text: \"DEFAULT\" }\r\n];\r\n\r\n\r\nconst MdesTokenRequestorDefinition = [\r\n\t{ Value: 1, Text: \"APPLE PAY\" },\r\n\t{ Value: 2, Text: \"GOOGLE PAY\" },\r\n\t{ Value: 3, Text: \"SAMSUNG PAY\" },\r\n\t{ Value: 4, Text: \"NETFLIX\" }\r\n];\r\n\r\nconst MdesRequestTypeDefinition = [\r\n\t{ Value: 1, Text: \"MDES authorizeService\" },\r\n\t{ Value: 2, Text: \"CMS authorizeService\" },\r\n\t{ Value: 3, Text: \"MDES requestActivationMethods\" },\r\n\t{ Value: 4, Text: \"CMS requestActivationMethods\" },\r\n\t{ Value: 5, Text: \"MDES deliverActivationCode\" },\r\n\t{ Value: 6, Text: \"CMS deliverActivationCode\" },\r\n\t{ Value: 7, Text: \"MDES notifyServiceActivated\" },\r\n\t{ Value: 8, Text: \"CMS notifyServiceActivated\" },\r\n\t{ Value: 9, Text: \"MDES notifyTokenUpdated\" },\r\n\t{ Value: 10, Text: \"MDES notifyTokenUpdated\" }\r\n];\r\n\r\nconst MdesRequestsStatusDefinition = [\r\n\t{ Value: 1, Text: \"Service Authorized - MDES\" },\r\n\t{ Value: 2, Text: \"Service Authorized - CMS\" },\r\n\t{ Value: 3, Text: \"Activation Methods Requested - MDES\" },\r\n\t{ Value: 4, Text: \"Activation Methods Requested - CMS\" },\r\n\t{ Value: 5, Text: \"Activation Code Delivered - MDES\" },\r\n\t{ Value: 6, Text: \"Activation Code Delivered - CMS\" },\r\n\t{ Value: 7, Text: \"Token Activated - MDES\" },\r\n\t{ Value: 8, Text: \"Token Activated - CMS\" }\r\n];\r\n\r\nconst DueTermOfStatement = [\r\n\t{\tId: 1, Text: \"1 Days\"},\r\n\t{\tId: 5, Text: \"5 Days\"},\r\n\t{\tId: 21, Text: \"21 Days\"},\r\n\t{\tId: 25, Text: \"25 Days\"},\r\n];\r\n\r\nconst EndOfDayPageFilter = [\r\n\t{\r\n\t\tId: 0,\r\n\t\tText: \"Last End Of Day\"\r\n\t},\r\n\t{\r\n\t\tId: 1,\r\n\t\tText: \"3 Days\"\r\n\t},\r\n\t{\r\n\t\tId: 2,\r\n\t\tText: \"7 Days\"\r\n\t}\r\n];\r\n\r\nexport {\r\n\tTspTokenStatus,\r\n\tLmsLimitAdjustmentHistoryStatus,\r\n\tLOSApplicationCardStatus,\r\n\tMenuAuthorityDefinitionCode,\r\n\tWarningMessage,\r\n\tInteracRedirectURL,\r\n\tRoleLevel,\r\n\tUserStatus,\r\n\tCanadaPostIdVerificationStatus,\r\n\tDaysOfMonth,\r\n\tDaysOfWeek,\r\n\tMonthsOfYear,\r\n\tProfileStatus,\r\n\tCampaignExecutionType,\r\n\tCampaignCouponStatus,\r\n\tCurrencyType,\r\n\tCampaignEngineMethodType,\r\n\tPropertyType,\r\n\tDDTStatus,\r\n\tWireSubStatus,\r\n\tWireStatus,\r\n\tLicenseRegistrationEntity,\r\n\tBankFileStatus,\r\n\tActionCodes,\r\n\tEtransferRequestType,\r\n\tUserLimitType,\r\n\tDirection,\r\n\tIdentityType,\r\n\tSalesChannel,\r\n\tRiskLightRating,\r\n\tFinScanSearchStatus,\r\n\tIdentificationMethod,\r\n\tAddressType,\r\n\tLimitProfileType,\r\n\tPriorityRegularType,\r\n\tTxnEffect,\r\n\tFeeType,\r\n\tFeeProfileType,\r\n\tTransactionType,\r\n\tPortalType,\r\n\tPhoneType,\r\n\tLimitType,\r\n\tApprovalStatus,\r\n\tApprovalRequest,\r\n\tOperationType,\r\n\tGetType,\r\n\tGridColumnType,\r\n\tAuthenticationMethod,\r\n\tAuthenticatorStatus,\r\n\tSessionStatus,\r\n\tPortals,\r\n\tMainSearchItems,\r\n\tUnSettledMainSearchItem,\r\n\tPeriodCodes,\r\n\tProgramCodes,\r\n\tWeekDays,\r\n\tDateFilter,\r\n\tDateHomePageFilter,\r\n\tLastPaymentDateAfter,\r\n\tSelectNextDayList,\r\n\tPersonalizedExpDateList,\r\n\tReportType,\r\n\tDynamicReportType,\r\n\tReportTypeForWalletAccounts,\r\n\tNotificationUsageType,\r\n\tLoginUserType,\r\n\tEFTTransactionTypes,\r\n\tEFTPriorityTypes,\r\n\tEtransferTransactionTypes,\r\n\tETransactionTypesSource,\r\n\tEtransferType,\r\n\tEtransferFrequencyCodes,\r\n\tEtransferPeriodCodes,\r\n\tETransferDayOfMonthTypes,\r\n\tBankingAccountTypes,\r\n\tAccountStatus,\r\n\tNotificationStatus,\r\n\tBankTransactionStatus,\r\n\tDocumentType,\r\n\tETransferWeekOfMonthTypes,\r\n\tClientType,\r\n\tCustomerStatus,\r\n\tAmlKycRiskLevel,\r\n\tCustomerBusinessType,\r\n\tBankProgramType,\r\n\tPortalProgram,\r\n\tDCBankRowId,\r\n\tSecurityType,\r\n\tRoleGroup,\r\n\tNotificationSendType,\r\n\tDefaultBankInformation,\r\n\tBankTransactionStatusParameterDesc,\r\n\tViewSourceType,\r\n\tFileCode,\r\n\tFileType,\r\n\tFileExtension,\r\n\tCrudType,\r\n\tEFTEntryType,\r\n\tEtransferEntryType,\r\n\tMenuCodes,\r\n\tOrderStatusType,\r\n\tFcRole,\r\n\tFcGender,\r\n\tFcCountry,\r\n\tFcCity,\r\n\tBillPayType,\r\n\tResourceType,\r\n\tAmlReviewType,\r\n\tWalletAutoLoadType,\r\n\tCardLevel,\r\n\tTransactionOrderStatus,\r\n\tExpressionType,\r\n\tTrueFalse,\r\n\tEmvScriptPoolInsertType,\r\n\tCardFindType,\r\n\tInventoryOrderStatusType,\r\n\tCheckType,\r\n\tDdtFindType,\r\n\tKycVerificationType,\r\n\tTransactionMoneyTransferType,\r\n\tClearingDirection,\r\n\tClearingIssuerFlag,\r\n\tClearingProcessStatus,\r\n\tLOSLoanType,\r\n\tCashLimitUsageType,\r\n\tLOSApprovalStatus,\r\n\tBillStatusType,\r\n\tLOSIdenticationMethod,\r\n\tSwitchNetworkType,\r\n\tLoanLedgerCardIconType,\r\n\tPgmCode,\r\n\tETransferMoneySendStatus,\r\n\tETransferMoneyRequestStatus,\r\n\tPgmCodeType,\r\n\tChargeBack,\r\n\tClearingDisputeStatus,\r\n\tClearingFeeFunctionCode,\r\n\tClearingFeeType,\r\n\tLOSApplicantStatus,\r\n\tLOSApplicationStatus,\r\n\tWireMsbStatusValue,\r\n\tLocationRange,\r\n\tEtransferApplicationTypes,\r\n\tCMSTemplateType,\r\n\tBankingAccountType,\r\n\tEmbossType,\r\n\tCardTransferTypes,\r\n\tFinScanSearchResultType,\r\n\tMdesTokenStatusDefinition,\r\n\tMdesTokenTypeDefinition,\r\n\tMdesWalletDefinition,\r\n\tMdesTokenSourceDefinition,\r\n\tMdesTokenRequestorDefinition,\r\n\tMdesRequestTypeDefinition,\r\n\tMdesRequestsStatusDefinition,\r\n\tTransactionTraceStatus,\r\n\tDueTermOfStatement,\r\n\tDcbETransferType,\r\n\tEndOfDayPageFilter\r\n};\r\n\r\n\r\nexport * from \"views/Constants/Constant.AmlKyc.js\";\r\n","import * as FileSaver from \"file-saver\";\r\nimport * as XLSX from \"xlsx\";\r\nimport pdfMake from \"pdfmake/build/pdfmake\";\r\nimport pdfFonts from \"pdfmake/build/vfs_fonts\";\r\n\r\n/**\r\n * Exports file as CSV by parameter\r\n * @param {Array} data \r\n * @param {string} fileName \r\n */\r\nfunction ExportToCsv(data, fileName) {\r\n\tconst fileType = \"text/csv;charset=UTF-8\";\r\n\tconst fileExtension = \".csv\";\r\n\r\n\tconst ws = XLSX.utils.json_to_sheet(data);\r\n\tconst csvString = XLSX.utils.sheet_to_csv(ws);\r\n\tconst newData = new Blob([csvString], { type: fileType });\r\n\tFileSaver.saveAs(newData, fileName + fileExtension);\r\n}\r\n\r\n/**\r\n * Exports file as Xlsx by parameter\r\n * @param {Array} data \r\n * @param {string} fileName \r\n */\r\nfunction ExportToExcel(data, fileName) {\r\n\tconst fileType = \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8\";\r\n\tconst fileExtension = \".xlsx\";\r\n\r\n\tconst ws = XLSX.utils.json_to_sheet(data);\r\n\tconst wb = { Sheets: { \"data\": ws }, SheetNames: [\"data\"] };\r\n\tconst excelBuffer = XLSX.write(wb, { bookType: \"xlsx\", type: \"array\" });\r\n\tconst newData = new Blob([excelBuffer], { type: fileType });\r\n\tFileSaver.saveAs(newData, fileName + fileExtension);\r\n}\r\n\r\n/**\r\n * Exports file as PDF by parameter\r\n * @param {Array} data \r\n * @param {string} fileName \r\n */\r\nfunction ExportToPdf(data, fileName) {\r\n\tconst fileType = \"application/pdf;charset=UTF-8\";\r\n\tconst fileExtension = \".pdf\";\r\n\r\n\tpdfMake.vfs = pdfFonts.pdfMake.vfs;\r\n\r\n\tvar header = [];\r\n\r\n\tif (data != null && data.length > 0) {\r\n\t\tObject.keys(data[0]).forEach(key => {\r\n\t\t\theader.push({ text: key, style: \"tableHeader\" });\r\n\t\t});\r\n\t}\r\n\r\n\tconst docDefinition = {\r\n\t\tcontent: [\r\n\t\t\t{\r\n\t\t\t\tstyle: \"tableExample\",\r\n\t\t\t\ttable: {\r\n\t\t\t\t\twidths: Array(header.length).fill(`${100 / (header.length === 0 ? 1 : header.length)}%`),\r\n\t\t\t\t\tbody: buildTableBody(data, header)\r\n\t\t\t\t},\r\n\t\t\t\tlayout: {\r\n\t\t\t\t\tfillColor: function (rowIndex, node, columnIndex) {\r\n\t\t\t\t\t\treturn (rowIndex % 2 === 0) ? \"#CCCCCC\" : null;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t],\r\n\t\tstyles: {\r\n\t\t\ttableExample: {\r\n\t\t\t\tfontSize: 8\r\n\t\t\t},\r\n\t\t\ttableHeader: {\r\n\t\t\t\tbold: true,\r\n\t\t\t\tfontSize: 8,\r\n\t\t\t\tcolor: \"black\"\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\r\n\tvar pdfDocGenerator = pdfMake.createPdf(docDefinition);\r\n\tpdfDocGenerator.getBlob((blob) => {\r\n\t\tconst newData = new Blob([blob], { type: fileType });\r\n\t\tFileSaver.saveAs(newData, fileName + fileExtension);\r\n\t});\r\n}\r\n\r\nfunction buildTableBody(data, columns) {\r\n\tvar body = [];\r\n\r\n\tbody.push(columns);\r\n\r\n\tdata.forEach(function (row) {\r\n\t\tvar dataRow = [];\r\n\r\n\t\tcolumns.forEach(function (column) {\r\n\t\t\tdataRow.push(row[column.text]);\r\n\t\t});\r\n\r\n\t\tbody.push(dataRow);\r\n\t});\r\n\r\n\treturn body;\r\n}\r\n\r\nexport { ExportToCsv, ExportToExcel, ExportToPdf };\r\n","import Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport { GenericAlert, GenericDateInput, GenericNumberInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { DueTermOfStatement } from \"views/Constants/Constant.js\";\r\nimport { ProgramCodes } from \"views/Constants/Constant.js\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\n\r\nconst LOSLoanTranferType = {\r\n\tSwift: \"0\",\r\n\tInteracteTransfer: \"1\",\r\n\tLinkedAccount: \"2\"\r\n};\r\nconst ClientParamObj = {\r\n\tProgramCode: ProgramCodes.Lender,\r\n\tUniqueClientId: undefined\r\n};\r\n\r\nclass LoanApprovalFundingMethod extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tisLoading: false,\r\n\t\t\tlocalModel: {},\r\n\t\t\tvLocalModel: {},\r\n\t\t\tReadOnly: true,\r\n\t\t\tisSwfit: false,\r\n\t\t\tisETransfer: false,\r\n\t\t\tisLinkedAccount: false\r\n\t\t};\r\n\t\tthis.MaxLen = { maxLength: 30 };\r\n\t\tthis.loanTransferTypeParam = {};\r\n\t\tthis.parameterLoanTransferType = { ParameterCode: \"LOSLoanTranferType\" };\r\n\t\tthis.LMSPaymentDayParameterCode = { ParameterCode: \"LMSPaymentDay\" };\r\n\t\tthis.maxLength20 = { maxLength: 20 };\r\n\t\tthis.maxLength50 = { maxLength: 50 };\r\n\t\tthis.marginLeft2 = { marginLeft: 2 };\r\n\t\tthis.ParameterMaxLength30 = { maxLength: 30 };\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.GetClientParamObj = this.GetClientParamObj.bind(this);\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\r\n\r\n\t}\r\n\tHandleChangeLoanTransfer = (name, newValue, data) => {\r\n\t\tif (name == \"LoanTransferTypeId\" && data != null) {\r\n\t\t\tif (data.ParameterValue == LOSLoanTranferType.Swift) {\r\n\t\t\t\tthis.setState({ loanTransferTypeParam: data, isSwfit: true, isETransfer: false, isLinkedAccount: false });\r\n\t\t\t}\r\n\t\t\tif (data.ParameterValue == LOSLoanTranferType.InteracteTransfer) {\r\n\t\t\t\tthis.setState({ loanTransferTypeParam: data, isETransfer: true, isSwfit: false, isLinkedAccount: false });\r\n\t\t\t}\r\n\t\t\tif (data.ParameterValue == LOSLoanTranferType.LinkedAccount) {\r\n\t\t\t\tthis.setState({ loanTransferTypeParam: data, isLinkedAccount: true, isETransfer: false, isSwfit: false });\r\n\t\t\t}\r\n\t\t}\r\n\t\tconst model = { ...this.state.localModel };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ localModel: model });\r\n\t}\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\tTransferService = () => {\r\n\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\t// type:-success->warning->info->error\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tHandleTransferLoan = () => {\r\n\t\tvar model = this.props.model;\r\n\t\tconst { vLocalModel } = this.state;\r\n\t\tif (!model.Id) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Select application to continue.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!model.TransferDate) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Enter transfer date to continue.\");\r\n\t\t\tvLocalModel.TransferDate = true;\r\n\t\t\tthis.setState({ vLocalModel });\r\n\t\t\treturn false;\r\n\t\t} else {\r\n\t\t\tvLocalModel.TransferDate = false;\r\n\t\t}\r\n\r\n\t\tif (!model.LoanTransferTypeId) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Enter loan transfer type to continue.\");\r\n\t\t\tvLocalModel.LoanTransferTypeId = true;\r\n\t\t\tthis.setState({ vLocalModel });\r\n\t\t\treturn false;\r\n\t\t} else {\r\n\t\t\tvLocalModel.LoanTransferTypeId = false;\r\n\t\t}\r\n\r\n\t\tif (!model.ApprovedAmount) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Enter amount to continue.\");\r\n\t\t\tvLocalModel.LoanTransferTypeId = true;\r\n\t\t\tthis.setState({ vLocalModel });\r\n\t\t\treturn false;\r\n\t\t} else {\r\n\t\t\tvLocalModel.LoanTransferTypeId = false;\r\n\t\t}\r\n\r\n\t\tif (this.state.loanTransferTypeParam.ParameterValue == LOSLoanTranferType.InteracteTransfer) {\r\n\t\t\tif (!model.SecurityQuestionId) {\r\n\t\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Enter security question continue.\");\r\n\t\t\t\tvLocalModel.SecurityQuestionId = true;\r\n\t\t\t\tthis.setState({ vLocalModel });\r\n\t\t\t\treturn false;\r\n\t\t\t} else {\r\n\t\t\t\tvLocalModel.SecurityQuestionId = false;\r\n\t\t\t}\r\n\r\n\t\t\tif (!model.SecurityQuestionAnswer) {\r\n\t\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Enter security answer continue.\");\r\n\t\t\t\tvLocalModel.SecurityQuestionAnswer = true;\r\n\t\t\t\tthis.setState({ vLocalModel });\r\n\t\t\t\treturn false;\r\n\t\t\t} else {\r\n\t\t\t\tvLocalModel.SecurityQuestionAnswer = false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.setState({ vLocalModel, isLoading: true });\r\n\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/lmsapi/v1.0/TransferLoan/Transfer\",\r\n\t\t\t{\r\n\t\t\t\tApplicationId: model.Id,\r\n\t\t\t\tTransferDate: model.TransferDate,\r\n\t\t\t\tLoanTransferTypeId: model.LoanTransferTypeId,\r\n\t\t\t\tAmount: model.ApprovedAmount,\r\n\t\t\t\tSecurityQuestionId: model.SecurityQuestionId != undefined ? model.SecurityQuestionId : null,\r\n\t\t\t\tSecurityQuestionAnswer: model.SecurityQuestionAnswer != undefined ? model.SecurityQuestionAnswer : null,\r\n\t\t\t\tSecurityQuestionText: model.SecurityQuestionText != undefined ? model.SecurityQuestionText : null,\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Money Transfered To Applicant, TransactionReference: \" + responseData.Item.ReferenceNumber);\r\n\t\t\t\tthis.props.TransferLoanOp(responseData.Item.ReferenceNumber);\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tGetClientParamObj() {\r\n\t\tClientParamObj.ProgramCode = ProgramCodes.Bank_Programs_e_Transfer;\r\n\t\tClientParamObj.UniqueClientId = ClientHelper.GetClientRowId();\r\n\t\treturn ClientParamObj;\r\n\t}\r\n\r\n\r\n\trender() {\r\n\t\tconst { model, vModel, isUserAdmin, Disabled, CheckerDisabled, ParentTabIndex } = this.props;\r\n\t\tvar isSwfit = this.state.isSwfit;\r\n\t\tvar isETransfer = this.state.isETransfer;\r\n\t\tvar isLinkedAccount = this.state.isLinkedAccount;\r\n\t\tif (model.LoanTransferType != undefined) {\r\n\t\t\tif (model.LoanTransferType.Id == model.LoanTransferTypeId) {\r\n\t\t\t\tif (model.LoanTransferType.ParameterValue == LOSLoanTranferType.Swift) {\r\n\t\t\t\t\tisSwfit = true;\r\n\t\t\t\t\tisETransfer = false;\r\n\t\t\t\t\tisLinkedAccount = false;\r\n\t\t\t\t}\r\n\t\t\t\tif (model.LoanTransferType.ParameterValue == LOSLoanTranferType.InteracteTransfer) {\r\n\t\t\t\t\tisSwfit = false;\r\n\t\t\t\t\tisETransfer = true;\r\n\t\t\t\t\tisLinkedAccount = false;\r\n\t\t\t\t}\r\n\t\t\t\tif (model.LoanTransferType.ParameterValue == LOSLoanTranferType.LinkedAccount) {\r\n\t\t\t\t\tisSwfit = false;\r\n\t\t\t\t\tisETransfer = false;\r\n\t\t\t\t\tisLinkedAccount = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn (\r\n\t\t\t< div >\r\n\t\t\t\t{ParentTabIndex == 2 &&\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{this.state.alert}\r\n\r\n\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t prm.ParameterCode == this.parameterLoanTransferType.ParameterCode)}\r\n\t\t\t\t\t\t\t\t\t\tUrl=\"/coreapi/v1.0/Parameter/Search\"\r\n\t\t\t\t\t\t\t\t\t\tParameter={this.parameterLoanTransferType}\r\n\t\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"Id\"\r\n\t\t\t\t\t\t\t\t\t\tLabelMd={5}\r\n\t\t\t\t\t\t\t\t\t\tTextValueMember=\"ParameterDesc\"\r\n\t\t\t\t\t\t\t\t\t\tValue={model == null ? \"\" : model.LoanTransferTypeId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\tValueChanged={(name, newValue, data) => { this.props.HandleChange(name, newValue, data); this.HandleChangeLoanTransfer(name, newValue, data); }}\r\n\t\t\t\t\t\t\t\t\t\tDisabled={isUserAdmin == true ? Disabled : CheckerDisabled == true ? true : Disabled}\r\n\t\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\t\tIsInvalid={this.state.vLocalModel.LoanTransferTypeId}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{this.props.Title == \"Secure Card\" && isUserAdmin != true ?\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t prm.ParameterCode == this.parameterLoanTransferType.ParameterCode)}\r\n\t\t\t\t\t\t\t\t\t\t\t// Url=\"/coreapi/v1.0/Parameter/Search\"\r\n\t\t\t\t\t\t\t\t\t\t\t// Parameter={this.parameterLoanTransferType}\r\n\t\t\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\t\t\tLabelMd={5}\r\n\t\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"Id\"\r\n\t\t\t\t\t\t\t\t\t\t\tTextValueMember=\"ParameterDesc\"\r\n\t\t\t\t\t\t\t\t\t\t\tValue={model == null ? \"\" : model.PaybackMethodId || \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.props.HandleChange}\r\n\t\t\t\t\t\t\t\t\t\t\tDisabled={isUserAdmin == true ? Disabled : CheckerDisabled == true ? true : Disabled}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{/* \t */}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
: \"\"\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{isUserAdmin == false ?\r\n\t\t\t\t\t\t\t\t\"\" :\r\n\t\t\t\t\t\t\t\tisUserAdmin == true && this.props.model != null && isSwfit == true ?\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t: isUserAdmin == true && this.props.model != null && isETransfer == true ?\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t: isUserAdmin == true && this.props.model != null && isLinkedAccount == true ?\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t{/* (this.props.HandleChange(name, newValue, data), this.HandleChangeLoanTransfer(name, newValue, data))} />\r\n\t\t\t\t\t\t\t\t\t\t\t*/}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t: \"\"\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{isUserAdmin == true ?\r\n\t\t\t\t\t\t\t\t : \"\"}\r\n\r\n\t\t\t\t\t\t\t{/* \r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tthis.HandleTransferLoan();\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t */}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t}\r\n\t\t\t\t{(ParentTabIndex == 0 || ParentTabIndex == 1)\r\n\t\t\t\t\t&&\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{this.state.alert}\r\n\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t prm.ParameterCode == this.LMSPaymentDayParameterCode.ParameterCode)}\r\n\t\t\t\t\t\t\t\t\tUrl=\"/coreapi/v1.0/Parameter/Search\"\r\n\t\t\t\t\t\t\t\t\tParameter={this.LMSPaymentDayParameterCode}\r\n\t\t\t\t\t\t\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\tKeyValueMember=\"Id\"\r\n\t\t\t\t\t\t\t\t\tTextValueMember=\"ParameterDesc\"\r\n\t\t\t\t\t\t\t\t\tValue={model.StatementDayId}\r\n\t\t\t\t\t\t\t\t\tValueChanged={this.props.HandleChange}\r\n\t\t\t\t\t\t\t\t\tDisabled={isUserAdmin == true ? Disabled : CheckerDisabled == true ? true : Disabled}\r\n\t\t\t\t\t\t\t\t\tRequired\r\n\t\t\t\t\t\t\t\t\tIsInvalid={vModel.StatementDayId} />\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tUpdate Day of Month\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\nconst SwiftComponent = ({ model, Disabled, props, inputProps, changeEvent, vModel }) => (\r\n\t
\r\n\t\t\r\n\t\t\t { props.HandleChange(name, newValue, data); changeEvent(name, newValue, data); }}\r\n\t\t\t\tDisabled={Disabled}\r\n\t\t\t\tinputProps={inputProps} />\r\n\t\t\r\n\t\t\r\n\t\t\t { props.HandleChange(name, newValue, data); changeEvent(name, newValue, data); }}\r\n\t\t\t\tDisabled={Disabled}\r\n\t\t\t\tinputProps={inputProps} />\r\n\t\t\r\n\t\t\r\n\t\t\t { props.HandleChange(name, newValue, data); changeEvent(name, newValue, data); }}\r\n\t\t\t\tDisabled={Disabled}\r\n\t\t\t\tinputProps={inputProps} />\r\n\t\t\r\n\t\t\r\n\t\t\t { props.HandleChange(name, newValue, data); changeEvent(name, newValue, data); }}\r\n\t\t\t\tMaxLength={20}\r\n\t\t\t\tDisabled={Disabled} />\r\n\t\t\r\n\t\t\r\n\t\t\t { props.HandleChange(name, newValue, data); changeEvent(name, newValue, data); }}\r\n\t\t\t\tIncludeTime={false}\r\n\t\t\t\tDisabled={Disabled}\r\n\t\t\t\tRequired\r\n\t\t\t\tIsInvalid={vModel.TransferDate} />\r\n\t\t\r\n\t
\r\n);\r\nconst ETransferComponent = ({ model, Disabled, props, inputProps, Parameter, changeEvent, isUserAdmin, CheckerDisabled, vModel, getClientParamObj }) => (\r\n\t
\r\n\t\t< GridItem>\r\n\t\t\t{/* (props.HandleChange(name, newValue, data), changeEvent(name, newValue, data))}\r\n\t\t\t\tDisabled={Disabled}\r\n\t\t\t/> */}\r\n\t\t\t{/* (props.HandleChange(name, newValue, data), changeEvent(name, newValue, data))}\r\n\t\t\t\tDisabled={Disabled} /> */}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t
\r\n);\r\nLoanApprovalFundingMethod.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tmodel: PropTypes.object,\r\n\tvModel: PropTypes.object,\r\n\ttempModel: PropTypes.object,\r\n\taddressModel: PropTypes.object,\r\n\tHandleChange: PropTypes.func,\r\n\tHandleTransferLoan: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tCheckerDisabled: PropTypes.bool,\r\n\tisUserAdmin: PropTypes.bool,\r\n\tTitle: PropTypes.string,\r\n\tParentTabIndex: PropTypes.number,\r\n\tParameterList: PropTypes.array,\r\n};\r\n\r\nexport default withArtifex(LoanApprovalFundingMethod, {});","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAN4AAADgCAYAAABsF9hqAAARw0lEQVR4nO2diXYUtxZFCzBTGEzyn/mZvO8MxoAZk/DWrvg410X1VEOXrnT2WrVsbGi6JR3dQ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QtPorOl4/AKKJ2hxmrvwtMHUSIF0cEuYMvXc135sVfh2b30MccApdLMaCrh0qex6EV4di8tuirIwlQml92l+ey8lUhf7WV7k8nknzHfUIDiqKr//g+lPUcUyoZ+UwAAAABJRU5ErkJggg==\"","import React from \"react\";\r\nimport { GenericAlert } from \"views/Components/Generic\";\r\n\r\nfunction CreateGenericAlert(title, message, type, onConfirm, showCancel, onCancel) {\r\n\treturn (\r\n\t\t\r\n\t);\r\n}\r\n\r\nfunction CreateAlert(title, message, type, onConfirm) {\r\n\treturn CreateGenericAlert(title, message, type, onConfirm, false, null);\r\n}\r\n\r\nfunction CreateQuestionAlert(title, message, type, onConfirm, onCancel) {\r\n\treturn CreateGenericAlert(title, message, type, onConfirm, true, onCancel);\r\n}\r\n\r\nconst AlertHelper = {\r\n\tCreateGenericAlert,\r\n\tCreateAlert,\r\n\tCreateQuestionAlert\r\n};\r\n\r\nexport default AlertHelper;","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAANiUlEQVR4Xu2d0XbjOA5EJ///0dmT0Wza7cgSLlUQ5ejOMwQChSoAZHx6Pj4/Pz//8T8REIFVBD4UiMwQgdcIKBDZIQIbCCgQ6SECCkQOiMAYAk6QMdz86iYIKJCbFNo0xxBQIGO4+dVNEFAgNym0aY4hoEDGcPOrmyCgQG5SaNMcQ0CBjOHmVzdBQIHcpNCmOYbAkEA+Pj7GTjv5q1e/w3wVf7f9yenvHpf6neq782ELKAXygI4C2dXUqoECeYLl3QFxgiwFdYLsNwQniBNknyU7Fu/eMF2xihPQFWtMKwqkSLAxePu+6iY89d+X6ZhnV6x93KIrVgrw/bD/tqB3ilf+r9YJu/Gk+dKG0B0/reNIPArkAWVKGCpkaj9SUHIGzVeBFNFNdezicbtmqXgoYXYDO2igQMYATPHh63QniBOkzEInSBGqpEKLR26apeJxgmxXQ4EU2ZoiZPG4XbNUPApEgTwjcMqKlSJeqoN1x7Or6CeDlMDpq84re3r3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nPhr/SCHWclYg2xI7oy4KpNDmziiEAnn9l/SZk12BKJAfCNCGUICwZEInL42T+nfFKpWN/4uFI4VwgjhBinR8beYlfftV5zDA/zmgnTl1Lm0sNE7q/7YThF5+U4Wg59LdO9VAUvl2x08fc0aEfMs7CCVqijD03G6CUUGlCElxSOGvQJ4QoASg9pQwlBgKZEFAgRSlTQncba9Axu5EtFEoEAVSRGC7o16tIXRPQNqgEMj/f7D4HLjad3cAmngqHkqw7ji7Cdadb3f8FH8FcvIdhBKM2o8UdO2b7nOp/5R9SoBbOPuK9YBOqnCpiaZAzrnjKJAnBFIE7haUAlEgiAPdhLyafwTOhjHNi55L/afsXbF+2Z2CEoMSlV5a6fNpyj/Fgb4j0Q3BFcsVa5UDCmS/BZ1ySd8P45gF7RiUGKkORjtwaoWg+R6rxv7XFE+KQwrnLz8KZL+eL/9JzFmF624IBUgOmSiQQ/Dxj7sJQwtKO3bKP93tOdKZL2i+sxqRE6RYb1pQBbINLMVTgRSJSoFKdVRaUAWiQFYRoEQ6qIvvz12xFihSDSFVl+Rlec1XdyOKr1jdwFL/KcJQP+/SKCieqUZE8aHn0ry27KOvWMnAEr4osWnHm1k40lEpIbtXWRrPTJwVSEGJVGiUAIUQSibdRKL+qX1KmCWwikYKpACUAllAooSn9gqkQMakCSW2K9Y2+pTw1F6BJNlf8KVAFpBSKx8lPLX/NQIpcFMTEfgVCAzdQX5F5iYhAgUEFEgBJE3ui4ACuW/tzbyAgAIpgKTJfRFQIPetvZkXEFAgBZA0uS8CCuS+tTfzAgIKpACSJvdFQIHct/ZmXkBAgRRA0uS+CCiQ+9bezAsIKJACSJrcF4H/AVUa8LdXWl84AAAAAElFTkSuQmCC\"","import withStyles from \"@material-ui/core/styles/withStyles\";\r\nimport styles from \"assets/jss/material-dashboard-pro-react/views/riskRatingStyle.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport ArrayHelper from \"core/ArrayHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport { DeleteIcon, EditIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ReactTable from \"react-table\";\r\nimport RiskRatingQuestionaries from \"views/Backoffice/BankingClientSetup/ClientSteps/RiskRatingQuestionaries\";\r\nimport { GenericAlert, GenericDateInput, GenericGrid, GenericLabel, GenericNumberInput, GenericSelectInput, GenericTextInput, GenericTitle } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType, OperationType, RiskLightRating } from \"views/Constants/Constant.js\";\r\n\r\nclass RiskRating extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\talert: null,\r\n\t\t\tcommentModel: {},\r\n\t\t\tcurrentRisk: {Level : \"\", Style: null},\r\n\t\t\tBankCustomerData : [],\r\n\t\t\tvModel: {},\r\n\t\t\tlist: [],\r\n\t\t\toperationType: OperationType.DEFAULT,\r\n\t\t\tselected: -1\r\n\t\t};\r\n\r\n\t\tthis.ParameterRiskLevel = { ParameterCode : \"AmlKycRiskLevel\" }\r\n\r\n\t\tthis.ColumnsData = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"Actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t<>\r\n\t\t\t\t\t\t this.SelectedRowChangeComment(row.index)} />\r\n\r\n\t\t\t\t\t\t this.HandleDeleteComment(row.original.Id)}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\twidth: 100\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date\",\r\n\t\t\t\taccessor: \"MemoDate\",\r\n\t\t\t\ttype: GridColumnType.Date,\r\n\t\t\t\twidth: 150,\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Update User\",\r\n\t\t\t\taccessor: \"Action\",\r\n\t\t\t\twidth: 300,\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\tCell: row => (<>{this.HandleGetInspector(row.index)})\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Comment\",\r\n\t\t\t\taccessor: \"Memo\",\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Risk Rating\",\r\n\t\t\t\taccessor: \"MemoRiskLevel\",\r\n\t\t\t\tCell: row =>(<>{row.value == \"H\" ? \"High Risk\" : row.value == \"M\" ? \"Medium Risk\" : row.value == \"L\" ? \"Low Risk\" : \"\"}),\r\n\t\t\t\twidth: 200,\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false\r\n\t\t\t}\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\t//this.props.hideSidebar();\r\n\t\tif (this.props.setAppLeftTitle)\r\n\t\t\tthis.props.setAppLeftTitle(\"Risk Rating\");\r\n\r\n\t\tif (this.props.paramGlobalModel.Id) {\r\n\t\t\tthis.HandleGetList();\r\n\t\t}\r\n\t\tthis.HandleGetDataAndRisk();\r\n\t}\r\n\r\n\tcomponentDidUpdate(prevProps, prevState) {\r\n\t\tif (prevProps.paramGlobalModel.Id !== this.props.paramGlobalModel.Id) {\r\n\t\t\tthis.HandleOperationType(OperationType.DEFAULT);\r\n\t\t\tthis.HandleGetList();\r\n\t\t}\r\n\t\tif (prevProps.paramBankCustomerMemoList !== this.props.paramBankCustomerMemoList){\r\n\t\t\tthis.HandleGetDataAndRisk();\r\n\t\t}\r\n\t}\r\n\r\n\tHandleGetDataAndRisk() {\r\n\t\tconst { paramBankCustomerMemoList, classes } = this.props;\r\n\t\tif (paramBankCustomerMemoList != null && paramBankCustomerMemoList.length > 0) {\r\n\t\t\t const newData = Array.from(paramBankCustomerMemoList);\r\n\t\t\t ArrayHelper.SortArray(newData, \"MemoDate\", true);\r\n\r\n\t\t\t let style, level;\r\n\t\t\t const firstMemo = newData[0];\r\n\r\n\t\t\t if (firstMemo.MemoRiskLevel == null || firstMemo.MemoRiskLevel === undefined) {\r\n\t\t\t\t style = classes.noRatingStyle;\r\n\t\t\t\t level = \"No Risk\";\r\n\t\t\t } else {\r\n\t\t\t\t switch (firstMemo.MemoRiskLevel) {\r\n\t\t\t\t\t\tcase 'H':\r\n\t\t\t\t\t\t\t style = classes.redRatingStyle;\r\n\t\t\t\t\t\t\t level = \"High Risk\";\r\n\t\t\t\t\t\t\t break;\r\n\t\t\t\t\t\tcase 'M':\r\n\t\t\t\t\t\t\t style = classes.yellowRatingStyle;\r\n\t\t\t\t\t\t\t level = \"Medium Risk\";\r\n\t\t\t\t\t\t\t break;\r\n\t\t\t\t\t\tcase 'L':\r\n\t\t\t\t\t\t\t style = classes.greenRatingStyle;\r\n\t\t\t\t\t\t\t level = \"Low Risk\";\r\n\t\t\t\t\t\t\t break;\r\n\t\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t\t style = classes.noRatingStyle;\r\n\t\t\t\t\t\t\t level = \"No Risk\";\r\n\t\t\t\t\t\t\t break;\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t\t this.setState({ \r\n\t\t\t\t BankCustomerData: newData, \r\n\t\t\t\t currentRisk: { Style: style, Level: level }\r\n\t\t\t });\r\n\t\t} else {\r\n\t\t\t this.setState({ \r\n\t\t\t\t BankCustomerData: [],\r\n\t\t\t\t currentRisk: { Style: classes.noRatingStyle, Level: \"No Risk\" }\r\n\t\t\t });\r\n\t\t}\r\n\t}\r\n\r\n\tHandleGetInspector(index)\r\n\t{\r\n\t\tconst model = this.state.BankCustomerData[index];\r\n\t\treturn model.UpdateUser == null ? model.InsertUser : model.UpdateUser;\r\n\t}\r\n \r\n\tHandleOperationType = (value) => {\r\n\t\tthis.setState({ operationType: value });\r\n\t}\r\n\r\n\tHandleGetList = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tif (this.props.paramGlobalModel.Id && this.props.clientType) {\r\n\t\t\tProxy.POST(\"/bankapi/v1.0/CustomerRiskRating/GetSummaryInfo\",\r\n\t\t\t\t{\r\n\t\t\t\t\tUniqueClientId: this.props.paramGlobalModel.Id,\r\n\t\t\t\t\tClientType: this.props.clientType,\r\n\t\t\t\t\tReviewDate: this.props.model.ReviewDate\r\n\t\t\t\t},\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\t\tthis.setState({ list: responseData.Item.RatingSummaryList, ratingSummaryInfo: responseData.Item.RatingSummaryInfo });\r\n\t\t\t\t\t\tthis.props.callbackFromParent(responseData.Item);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.setState({ list: [] });\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while requesting data\", error);\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t}\r\n\r\n\tHandleSubmit = () => {\r\n\t\tProxy.POST(\"bankapi/v1.0/BankCustomer/Update\",\r\n\t\t\tthis.props.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null) {\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while requesting data\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tSumValues(...arr) {\r\n\t\treturn arr.length > 0 ? arr[0].reduce((a, b) => a + b, 0) : 0;\r\n\t}\r\n\r\n\tHandleChangeComment = (name, newValue) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = { ...state.commentModel } || {};\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\treturn { commentModel: model };\r\n\t\t});\r\n\t}\r\n\r\n\tClearComment = () => {\r\n\t\tconst global = { ...this.props.paramGlobalModel };\r\n\t\tvar model = { Id: 0, UniqueClientId: global.Id };\r\n\t\tthis.setState({ commentModel: model, vModel: {}, selected: -1 });\r\n\t}\r\n\r\n\tOperationCheckComment = () => {\r\n\t\tvar ErrorList = [];\r\n\t\tconst vModel = this.state.vModel;\r\n\t\tconst data = this.state.commentModel;\r\n\t\tconst global = { ...this.props.paramGlobalModel };\r\n\t\tif (global == null || global.Id == null || global.Id == 0) {\r\n\t\t\tErrorList.push(\"You must select a client or create new one to add memo.\");\r\n\t\t}\r\n\t\tif (data == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (data.Memo == null || data.Memo == \"\") {\r\n\t\t\tvModel.Memo = true;\r\n\t\t\tErrorList.push(\"Memo must be defined!\");\r\n\t\t} \r\n\t\telse { \r\n\t\t\tvModel.Memo = false; \r\n\t\t}\r\n\t\tif(data.MemoRiskLevel == null || data.MemoRiskLevel == \"\"){\r\n\t\t\tvModel.MemoRiskLevel = true;\r\n\t\t\tErrorList.push(\"Risk rating must be selected!\");\r\n\t\t}\r\n\t\telse{\r\n\t\t\tvModel.MemoRiskLevel = false;\r\n\t\t}\r\n\r\n\t\tif (ErrorList.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", ErrorList.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.InsertOrUpdateComment();\r\n\t}\r\n\r\n\tInsertOrUpdateComment = () => {\r\n\t\tvar temp = this.state.commentModel;\r\n\t\tconst global = this.props.paramGlobalModel;\r\n\t\tif (global == null) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", \"Client must be selected\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (global.Id == null || global.Id == 0) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", \"Client must be selected\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\ttemp.UniqueClientId = global.Id;\r\n\t\ttemp.MemoTypeId = this.props.memoTypeId;\r\n\t\ttemp.MemoDate = temp.MemoDate == null ? DateHelper.GetDateLocal() : temp.MemoDate;\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/CustomerMemo/Update\",\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.ClearComment();\r\n\t\t\t\tthis.props.GetCustomerMemoModels();\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleDeleteComment = (Id) => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.GET(\"/bankapi/v1.0/CustomerMemo/Delete/Id?Id=\" + Id,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.ClearComment();\r\n\t\t\t\tthis.props.GetCustomerMemoModels();\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t});\r\n\t}\r\n\r\n\tSelectedRowChangeComment = (index) => {\r\n\t\tconst model = this.state.BankCustomerData[index];\r\n\t\tthis.setState({ selected: index, commentModel: model });\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes, paramGlobalModel, Disabled } = this.props;\r\n\t\tconst { commentModel, currentRisk, operationType, list, ratingSummaryInfo, vModel } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{operationType === OperationType.DEFAULT &&\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{/* \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t this.HandleOperationType(OperationType.INSERT)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfullWidth\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdisabled={Disabled || paramGlobalModel.Id == 0}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGo To Questionnaire\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t */}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{this.props.model.InsertUserId &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t `${d.FirstName} ${d.LastName}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tValue={this.props.model.InsertUserId}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tDisabled={true} />\r\n\t\t\t\t\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t{/* \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{ratingSummaryInfo && ratingSummaryInfo.RiskLightRating == RiskLightRating.Green ?\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: ratingSummaryInfo && ratingSummaryInfo.RiskLightRating == RiskLightRating.Yellow ?\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: ratingSummaryInfo && ratingSummaryInfo.RiskLightRating == RiskLightRating.Red ?\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: ratingSummaryInfo && ratingSummaryInfo.RiskLightRating == RiskLightRating.Black ?\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t:
}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
*/}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t{/* \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{row.value}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tTotal Affirmations\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Number of Affirmation\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcolumns: [\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Green (Low Risk)\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"LowRisk\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{Formatter.FormatNumber(row.value)}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{Formatter.FormatNumber(this.SumValues(list.map(d => d.LowRisk)))}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 200\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Yellow (Medium Risk)\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"MediumRisk\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{Formatter.FormatNumber(row.value)}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{Formatter.FormatNumber(this.SumValues(list.map(d => d.MediumRisk)))}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 200\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Red (High Risk)\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"HighRisk\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{Formatter.FormatNumber(row.value)}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tFooter: (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{Formatter.FormatNumber(this.SumValues(list.map(d => d.High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\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 200\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t]\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tdefaultPageSize={5}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tshowPaginationTop={false}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tshowPaginationBottom={false}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tminRows={1}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tgetTdProps={() => ({\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tstyle: {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tborder: \"1px solid black\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tgetTheadGroupTrProps={() => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tstyle: {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbackground: \"#f8ab72\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tgetTheadGroupThProps={() => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tstyle: {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tborder: \"1px solid black\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tgetThProps={() => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tstyle: {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tborder: \"1px solid black\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tgetTheadThProps={(state, rowInfo, column, instance) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tstyle: column.id == \"LowRisk\" ? {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbackground: \"limegreen\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tborder: \"1px solid black\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} : column.id == \"MediumRisk\" ? {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbackground: \"yellow\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tborder: \"1px solid black\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} : column.id == \"HighRisk\" ? {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbackground: \"red\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tborder: \"1px solid black\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} : column.id == \"Stop\" ? {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbackground: \"black\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcolor: \"white\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tborder: \"1px solid black\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} : {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbackground: \"#f8ab72\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tborder: \"1px solid black\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tgetTfootTdProps={() => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tstyle: {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tborder: \"1px solid black\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\theight: \"77px\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t */}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n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t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nRiskRating.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tparamGlobalModel: PropTypes.object,\r\n\tparamBankCustomerMemoList: PropTypes.array,\r\n\tparamBankCustomerRiskRating: PropTypes.object,\r\n\thandleChange: PropTypes.func,\r\n\tGetCustomerMemoModels:PropTypes.func,\r\n\tcallbackFromParent: PropTypes.func,\r\n\tclientType: PropTypes.string,\r\n\tmodel: PropTypes.object\r\n};\r\n\r\nexport default withStyles(styles)(RiskRating);","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport { GenericExpansionPanel, GenericLabel, GenericTextInput } from \"views/Components/Generic\";\r\nimport { BillPayType } from \"views/Constants/Constant\";\r\n\r\nclass BillFromFile extends Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.fileInputRef = React.createRef();\r\n\r\n\t\tthis.UploadClick = this.UploadClick.bind(this);\r\n\t\tthis.FileSelect = this.FileSelect.bind(this);\r\n\t\tthis.ValueChanged = this.ValueChanged.bind(this);\r\n\t}\r\n\r\n\tUploadClick() {\r\n\t\tthis.fileInputRef.current.click();\r\n\t}\r\n\r\n\tFileSelect(e) {\r\n\t\te.preventDefault();\r\n\r\n\t\tvar file = e.target.files[0];\r\n\r\n\t\tif (!file) return;\r\n\r\n\t\tthis.props.onModelChange(model => {\r\n\t\t\tmodel.File = file;\r\n\t\t\tmodel.FileName = file.name;\r\n\t\t\treturn model;\r\n\t\t});\r\n\t}\r\n\r\n\tValueChanged(name, newValue) {\r\n\t\tthis.props.onModelChange(model => {\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\treturn model;\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, vModel, Disabled: DisabledProp ,parentModel} = this.props;\r\n\r\n\t\tconst Selected = parentModel.BillPayType == BillPayType.File;\r\n\t\tconst Disabled = DisabledProp || !Selected;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{/* \r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
*/}\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nBillFromFile.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tmodel: PropTypes.object,\r\n\tvModel: PropTypes.object,\r\n\tparentModel: PropTypes.object,\r\n\tonModelChange: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default BillFromFile;","import Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { withArtifex } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport { GenericAlert, GenericExpansionPanel, GenericNumberInput, GenericSelectInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nclass LoanApplicationScoringInfo extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t};\r\n\t\tthis.MaritalStatusParameterCode = { ParameterCode: \"LOSMaritalStatus\" };\r\n\t\tthis.OccupationParameterCode = { ParameterCode: \"LOSOccupation\" };\r\n\t\tthis.YesNoParameterCode = { ParameterCode: \"LOSYesNo\" };\r\n\t\tthis.LOSPhoneGivenParameterCode = { ParameterCode: \"LOSPhoneGiven\" };\r\n\r\n\t\tthis.LOSDownpaymentParameterCode = { ParameterCode: \"LOSDownpayment\" };\r\n\t\tthis.LOSInterbankTimeParameterCode = { ParameterCode: \"LOSInterbankTime\" };\r\n\t\tthis.LOSSalaryParameterCode = { ParameterCode: \"LOSSalary\" };\r\n\t\tthis.LOSHousholdInParameterCode = { ParameterCode: \"LOSHousholdIn\" };\r\n\t\tthis.LOSEmplTimeParameterCode = { ParameterCode: \"LOSEmplTime\" };\r\n\t\tthis.LOSTimePerParameterCode = { ParameterCode: \"LOSTimePer\" };\r\n\t\tthis.LOSAddrTimeParameterCode = { ParameterCode: \"LOSAddrTime\" };\r\n\r\n\t\tthis.LOSResidentalStatusParameterCode = { ParameterCode: \"LOSResidentalStatus\" };\r\n\t\tthis.LOSEduLevelParameterCode = { ParameterCode: \"LOSEduLevel\" };\r\n\t\tthis.LanguageParameterCode = { ParameterCode: \"Language\" };\r\n\t\tthis.CountryParameterCode = { ParameterCode: \"Country\" };\r\n\t\tthis.IdentityVerifyingPersonParameterCode = { ParameterCode: \"IdentityVerifyingPerson\" };\r\n\t\tthis.parameterIdentificationMethod = { ParameterCode: \"IdentificationMethod\" };\r\n\t\tthis.parameterIdentityType = { ParameterCode: \"IdentityType\" };\r\n\t\tthis.LOSDepositInParameterCode = { ParameterCode: \"LOSDepositIn\" };\r\n\r\n\t\tthis.maxLength20 = { maxLength: 20 };\r\n\t\tthis.marginLeft2 = { marginLeft: 2 };\r\n\t\tthis.ParameterMaxLength30 = { maxLength: 30 };\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.sortedParameterValue = { Member: \"ParameterValue\" };\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\t// type:-success->warning->info->error\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { ApplicationModel, Title, Disabled, IsOptional, IsActive, Name } = this.props;\r\n\t\tconst { isLoading, alert } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{alert}\r\n\t\t\t\t\t\t\t\t{!IsOptional &&\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t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\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nLoanApplicationScoringInfo.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tApplicationModel: PropTypes.object,\r\n\tHandleChange: PropTypes.func,\r\n\tTitle: PropTypes.string,\r\n\tDisabled: PropTypes.bool,\r\n\tIsOptional: PropTypes.bool,\r\n\tNextClicked: PropTypes.func,\r\n\tHandleChangeFilterPanel: PropTypes.func,\r\n\tName: PropTypes.string,\r\n\tIsActive: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(LoanApplicationScoringInfo, {});","import React from \"react\";\r\n// used for making the prop types of this component\r\nimport { PropTypes } from \"prop-types\";\r\n// react component for creating dynamic tables\r\nimport ReactTable from \"react-table\";\r\n\r\n// @material-ui/core components\r\nimport withStyles from \"@material-ui/core/styles/withStyles\";\r\n\r\n// core components\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\n\r\nimport { Doughnut as DoughnutChart, Chart } from \"react-chartjs-2\";\r\nimport {\r\n\tchartGradientColors\r\n} from \"assets/jss/material-dashboard-pro-react.jsx\";\r\n\r\nconst styles = ({\r\n\tcircleBoxGrid: {\r\n\t\twidth: \"100%\",\r\n\t\ttextAlign: \"center\"\r\n\t},\r\n\tcircleBox: {\r\n\t\tdisplay: \"inline-block\",\r\n\t\tmarginTop: \"24px\",\r\n\t\tmarginLeft: \"auto\",\r\n\t\tmarginRight: \"auto\",\r\n\t\tmarginBottom: \"24px\"\r\n\t}\r\n});\r\n\r\nclass ExecutiveSummaryTab extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t};\r\n\r\n\t\tthis.chartOptions = {\r\n\t\t\tmaintainAspectRatio: false,\r\n\t\t\tresponsive: false,\r\n\t\t\tlegend: {\r\n\t\t\t\tdisplay: false\r\n\t\t\t},\r\n\t\t\tcutoutPercentage: 90,\r\n\t\t\tanimation: {\r\n\t\t\t\tduration:2000\r\n }\r\n\t\t};\r\n\t\tthis.getGradientList = this.getGradientList.bind(this);\r\n\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tvar originalDoughnutDraw = Chart.controllers.doughnut.prototype.draw;\r\n\t\tChart.helpers.extend(Chart.controllers.doughnut.prototype, {\r\n\t\t\tdraw: function () {\r\n\t\t\t\toriginalDoughnutDraw.apply(this, arguments);\r\n\r\n\t\t\t\tvar chart = this.chart;\r\n\t\t\t\tvar width = chart.chart.width,\r\n\t\t\t\t\theight = chart.chart.height,\r\n\t\t\t\t\tctx = chart.chart.ctx;\r\n\r\n\t\t\t\tvar fontSize = 1.5;\r\n\t\t\t\tctx.font = fontSize + \"em sans-serif\";\r\n\t\t\t\tctx.textBaseline = \"middle\";\r\n\t\t\t\tctx.fillStyle = \"#000\";\r\n\r\n\t\t\t\tvar text = chart.config.data.text,\r\n\t\t\t\t\ttextX = Math.round((width - ctx.measureText(text).width) / 2),\r\n\t\t\t\t\ttextY = height / 2;\r\n\r\n\t\t\t\tctx.fillText(text, textX, textY);\r\n\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t}\r\n\t\r\n\tgetGradientList(dataList) {\r\n\t\tvar gradientList = undefined;\r\n\t\tif (document.getElementById('canvas') != null) {\r\n\t\t\tvar ctx = document.getElementById('canvas').getContext(\"2d\");\r\n\t\t\tgradientList = [];\r\n\t\t\tif (dataList.datasets != undefined) {\r\n\t\t\t\tvar i;\r\n\t\t\t\tfor (i = 0; i < dataList.datasets[0].data.length; i++) {\r\n\t\t\t\t\tvar gradient = ctx.createLinearGradient(0, 0, 0, 400)\r\n\t\t\t\t\tif (chartGradientColors[i] == undefined) {\r\n\t\t\t\t\t\tgradient.addColorStop(0, chartGradientColors[0].begin)\r\n\t\t\t\t\t\tgradient.addColorStop(1, chartGradientColors[0].end)\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tgradient.addColorStop(0, chartGradientColors[i].begin)\r\n\t\t\t\t\t\tgradient.addColorStop(1, chartGradientColors[i].end)\r\n\t\t\t\t\t}\r\n\t\t\t\t\tgradientList.push(gradient);\r\n\t\t\t\t}\r\n\t\t\t\treturn gradientList;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn\r\n\r\n\t}\r\n\trender() {\r\n\t\tconst { classes, columns, list, txnCountChartData, txnTypeChartData, feeChartData } = this.props;\r\n\t\t\r\n\t\tvar transactionGradientList = this.getGradientList(txnCountChartData);\r\n\t\tvar transactionBackground = txnCountChartData;\r\n\t\tif (transactionGradientList != undefined) {\r\n\t\t\ttransactionBackground.datasets[0].backgroundColor = transactionGradientList;\r\n\t\t\ttransactionBackground.datasets[0].hoverBackgroundColor = transactionGradientList;\r\n\t\t}\r\n\t\tvar creditDebitGradientList = this.getGradientList(txnTypeChartData);\r\n\t\tvar creditDebitBackground = txnTypeChartData;\r\n\t\tif (creditDebitGradientList != undefined) {\r\n\t\t\tcreditDebitBackground.datasets[0].backgroundColor = creditDebitGradientList;\r\n\t\t\tcreditDebitBackground.datasets[0].hoverBackgroundColor = creditDebitGradientList;\r\n\t\t}\r\n\t\tvar feeGradientList = this.getGradientList(feeChartData);\r\n\t\tvar feeBackground = feeChartData;\r\n\t\tif (feeGradientList != undefined) {\r\n\t\t\tfeeBackground.datasets[0].backgroundColor = feeGradientList;\r\n\t\t\tfeeBackground.datasets[0].hoverBackgroundColor = feeGradientList;\r\n\t\t}\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
{

Transactions

}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{

Credit & Debit

}\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
{

Total Fees

}\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nExecutiveSummaryTab.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tcolumns: PropTypes.array,\r\n\tlist: PropTypes.array,\r\n\ttxnCountChartData: PropTypes.object,\r\n\ttxnTypeChartData: PropTypes.object,\r\n\tfeeChartData: PropTypes.object\r\n};\r\n\r\nexport default withStyles(styles)(ExecutiveSummaryTab);","import \"assets/scss/material-dashboard-pro-react.css?v=1.3.0\";\r\nimport { Proxy } from \"core\";\r\nimport ResourceHelper from \"core/ResourceHelper\";\r\nimport { createHashHistory } from \"history\";\r\nimport React from \"react\";\r\nimport ReactDOM from \"react-dom\";\r\nimport { Provider } from \"react-redux\";\r\nimport { store } from \"store\";\r\nimport App from \"./App\";\r\n\r\nconst hist = createHashHistory();\r\nhist.listen(location => {\r\n\tconsole.log(location.pathname); // /home\r\n\tProxy.POST(\r\n\t\t\"/coreapi/v1.0/User/InsertUserPageHistory\",\r\n\t\t{ Path: location.pathname }\r\n\t);\r\n});\r\n\r\nconst render = () => {\r\n\tReactDOM.render(\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t,\r\n\t\tdocument.getElementById(\"root\")\r\n\t);\r\n};\r\n\r\nconst isHaveAnyResources = ResourceHelper.Any();\r\n\r\nif (isHaveAnyResources) {\r\n\tResourceHelper.SetLanguage(null);\r\n\trender();\r\n}\r\nelse {\r\n\tResourceHelper.SetLanguage(null, render);\r\n}","import React from \"react\";\r\nimport { withRouter } from \"react-router\";\r\nimport GenericScreen from \"views/Components/Generic/GenericScreen\";\r\n\r\nclass DynamicComponent extends React.Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {};\r\n\r\n\t\tif (this.props.comp) {\r\n\t\t\tthis.state = { Comp: this.props.comp };\r\n\t\t}\r\n\t\telse if (!this.props.screenId) {\r\n\t\t\timport(/* webpackMode: \"eager\" */ `../${this.props.route}`)\r\n\t\t\t\t.then(C => {\r\n\t\t\t\t\tthis.setState({ Comp: C.default });\r\n\t\t\t\t})\r\n\t\t\t\t.catch(error => {\r\n\t\t\t\t\tconsole.error(\"error: \" + error);\r\n\t\t\t\t});\r\n\t\t}\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tif (this.props.screenId) {\r\n\t\t\tthis.setState({ Comp: GenericScreen });\r\n\t\t}\r\n\t}\r\n\r\n\trender() {\r\n\t\tif (!this.state.Comp) return \"nope\";\r\n\t\treturn ();\r\n\t}\r\n}\r\n\r\nexport default withRouter(DynamicComponent);","const KYCManualApplicationStatus = {\r\n OnHold: \"0\",\r\n Approved: \"1\",\r\n Reject: \"2\",\r\n};\r\nconst KycManualApplicationReasonType = {\r\n CODE: \"KycManualApplicationReasonType\",\r\n CanadaPost: \"CP\",\r\n MissingDocument: \"MD\",\r\n Other: \"O\",\r\n Reject: \"R\",\r\n};\r\n\r\nconst DigitalVerificationAction = {\r\n PopupUpload: \"DigitalVerificationPhotoUpload\",\r\n};\r\nconst DigitalVerificationPopupUploadCode = {\r\n ManualKycEmailLink: \"ManualKycEmailLink\",\r\n ManualKyc: \"ManualKyc\",\r\n IdIntroduction: \"IdIntroduction\",\r\n};\r\n\r\nconst IdentitySourceType = {\r\n CODE: \"IdentitySourceType\",\r\n ParameterDefinition: \"P\",\r\n DigitalIdentityVerificationIdentityType: \"D\",\r\n};\r\n\r\nconst LinkRequestType = {\r\n CODE: \"LinkRequestType\",\r\n DigitalIdentityVerification: \"D\",\r\n AccountVerification: \"A\",\r\n};\r\n\r\nconst KYCVerifiedStatus = {\r\n CODE: \"KYCVerifiedStatus\",\r\n Verified: \"1\",\r\n UnVerified: \"2\",\r\n};\r\n\r\nconst ManualKycAppMenuAuthority = {\r\n\tInternalBlacklist: \"KycInternalBlacklist\",\r\n\tWatchList: \"KycWatchList\",\r\n\tTransUnion: \"KycTransUnion\",\r\n\tTransUnionId: \"KycTransUnionId\",\r\n\tDigitalIdVerification: \"KycDigitalIdVerification\",\r\n\tAccountVerification: \"KycAccountVerification\",\r\n\tDocuments: \"KycDocuments\",\r\n\tCanadaPost: \"KycCanadaPost\",\r\n\tInPerson: \"KycInPerson\"\r\n};\r\n\r\nexport {\r\n KYCManualApplicationStatus,\r\n KycManualApplicationReasonType,\r\n DigitalVerificationAction,\r\n DigitalVerificationPopupUploadCode,\r\n IdentitySourceType,\r\n LinkRequestType,\r\n KYCVerifiedStatus,\r\n ManualKycAppMenuAuthority,\r\n};\r\n","import { DialogContent, DialogTitle, withStyles } from \"@material-ui/core\";\r\nimport genericAlertStyle from \"assets/jss/generic/genericAlertStyle.jsx\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport { GenericDialog, GenericDialogActions, GenericIcon, GenericLabel } from \"views/Components/Generic\";\r\n\r\nclass GenericAlert extends Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\ticonName: null,\r\n\t\t\ticonStyle: {\r\n\t\t\t\tfontSize: 80,\r\n\t\t\t\tcolor: null\r\n\t\t\t}\r\n\t\t};\r\n\t\tthis.dashboardStyleZIndex = undefined;\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tvar dashboardDiv = document.getElementById(\"dashboardDiv\");\r\n\r\n\t\tif (dashboardDiv) {\r\n\t\t\tthis.dashboardStyleZIndex = dashboardDiv.style.zIndex;\r\n\t\t\tdashboardDiv.style.zIndex = \"1\";\r\n\t\t}\r\n\t\tthis.getIconStyle();\r\n\t}\r\n\r\n\tcomponentWillUnmount() {\r\n\t\tvar dashboardDiv = document.getElementById(\"dashboardDiv\");\r\n\t\tif (dashboardDiv) {\r\n\t\t\tdashboardDiv.style.zIndex = this.dashboardStyleZIndex;\r\n\t\t}\r\n\t}\r\n\r\n\tcomponentWillUpdate(nextProps) {\r\n\t\tif (nextProps && (nextProps.Type != this.props.Type)) {\r\n\t\t\tthis.getIconStyle(nextProps);\r\n\t\t}\r\n\t}\r\n\thandleButtonCancel = () => {\r\n\t\tconst { OnCancel } = this.props;\r\n\t\tOnCancel && OnCancel();\r\n\t}\r\n\thandleButtonOk = (e) => {\r\n\t\tconst { OnConfirm } = this.props;\r\n\t\tOnConfirm && OnConfirm(e);\r\n\t}\r\n\tgetIconStyle = (nextProps) => {\r\n\t\tconst { Type } = nextProps || this.props;\r\n\t\tvar iconStyle = { ...this.state.iconStyle };\r\n\r\n\t\tvar iconName = \"\";\r\n\t\tvar iconColor = \"\";\r\n\t\tswitch (Type) {\r\n\t\t\tcase \"success\":\r\n\t\t\t\ticonName = \"check_circle_outline\";\r\n\t\t\t\ticonColor = \"#a5dc86\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"error\":\r\n\t\t\t\ticonName = \"cancel_outline\";\r\n\t\t\t\ticonColor = \"#f27474\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"warning\":\r\n\t\t\t\ticonName = \"error_outline\";\r\n\t\t\t\ticonColor = \"#f8bb86\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"info\":\r\n\t\t\t\ticonName = \"info_outline\";\r\n\t\t\t\ticonColor = \"#3fc3ee\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"question\":\r\n\t\t\t\ticonName = \"help_outline\";\r\n\t\t\t\ticonColor = \"#87adbd\";\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\ticonStyle.color = iconColor;\r\n\t\tthis.setState({ iconName, iconStyle });\r\n\t}\r\n\trender() {\r\n\r\n\t\tconst { Message, MessageNode, Title, ShowCancel, classes } = this.props;\r\n\t\tconst { iconName, iconStyle } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{iconName}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t{Message || MessageNode}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t{ShowCancel ? : null}\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nGenericAlert.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tOnConfirm: PropTypes.func,\r\n\tOnCancel: PropTypes.func,\r\n\tTitle: PropTypes.string,\r\n\tMessage: PropTypes.node,\r\n\tShowCancel: PropTypes.bool,\r\n\tMessageNode: PropTypes.node,\r\n\tType: PropTypes.oneOf([\"default\", \"info\", \"success\", \"warning\", \"danger\", \"error\", \"input\", \"custom\"])\r\n};\r\n\r\nexport default withStyles(genericAlertStyle)(GenericAlert);","import { CircularProgress } from \"@material-ui/core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport { GenericLabel } from \"views/Components/Generic\";\r\n\r\nclass GenericCircularProgress extends Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.style = { width: \"80px\", height: \"80px\" };\r\n\t\tthis.overlayStyle = { position: \"absolute\", alignItems: \"center\", justifyContent: \"center\", top: \"42%\", left: \"38%\" };\r\n\t}\r\n\r\n\tisObject(obj) {\r\n\t\treturn obj !== null && typeof obj === \"object\";\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { TaskPoolDomain } = this.props;\r\n\t\tconst staticLoad = {};\r\n\r\n\t\tif (TaskPoolDomain && this.isObject(TaskPoolDomain)) {\r\n\t\t\tvar percent = 100 - Math.round((TaskPoolDomain.pool.length * 100) / TaskPoolDomain.taskCount);\r\n\t\t\tstaticLoad.value = percent;\r\n\t\t}\r\n\r\n\t\tif (TaskPoolDomain != null && percent > 0) {\r\n\t\t\treturn (\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\treturn (\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nGenericCircularProgress.propTypes = {\r\n\tTaskPoolDomain: PropTypes.object\r\n};\r\n\r\nexport default GenericCircularProgress;","import GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport StringHelper from \"core/StringHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport { SketchPicker } from \"react-color\";\r\nimport { GenericLabel } from \"views/Components/Generic\";\r\n\r\nclass GenericColorInput extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tdisplayColorPicker: false\r\n\t\t};\r\n\t}\r\n\r\n\tHandleClick = () => {\r\n\t\tthis.setState({ displayColorPicker: !this.state.displayColorPicker });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes, LabelText, Name, Value, DefaultValue, ValueChanged, Disabled, LabelMd } = this.props;\r\n\t\tconst defaultCompValue = \"#FFFFFF\";\r\n\r\n\t\tconst styles = ({\r\n\t\t\tcolor: {\r\n\t\t\t\twidth: \"36px\",\r\n\t\t\t\theight: \"14px\",\r\n\t\t\t\tborderRadius: \"2px\",\r\n\t\t\t\tbackground: Value || DefaultValue || defaultCompValue,\r\n\t\t\t},\r\n\t\t\tswatch: {\r\n\t\t\t\tpadding: \"3px\",\r\n\t\t\t\tborderRadius: \"1px\",\r\n\t\t\t\tboxShadow: \"0 0 0 1px rgba(0,0,0,.1)\",\r\n\t\t\t\tdisplay: \"inline-flex\",\r\n\t\t\t\tcursor: \"pointer\",\r\n\t\t\t},\r\n\t\t\tpopover: {\r\n\t\t\t\tposition: \"absolute\",\r\n\t\t\t\tzIndex: \"2\",\r\n\t\t\t},\r\n\t\t\tcover: {\r\n\t\t\t\tposition: \"fixed\",\r\n\t\t\t\ttop: \"0px\",\r\n\t\t\t\tright: \"0px\",\r\n\t\t\t\tbottom: \"0px\",\r\n\t\t\t\tleft: \"0px\",\r\n\t\t\t},\r\n\t\t\tlabel: {\r\n\t\t\t\tcursor: \"pointer\",\r\n\t\t\t\tpaddingLeft: \"0\",\r\n\t\t\t\tcolor: \"#888888\",\r\n\t\t\t\tfontSize: \"16px\",\r\n\t\t\t\tlineHeight: \"1.428571429\",\r\n\t\t\t\tfontWeight: \"400\",\r\n\t\t\t\tdisplay: \"inline-flex\",\r\n\t\t\t\ttransition: \"0.3s ease all\",\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t{LabelMd != 0 &&\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t{this.state.displayColorPicker ?
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tif (color && color.hex) {\r\n\t\t\t\t\t\t\t\t\t\tif (StringHelper.IsValidColor(color.hex)) {\r\n\t\t\t\t\t\t\t\t\t\t\tif (ValueChanged)\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged(Name, color.hex);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\t\t\tif (ValueChanged)\r\n\t\t\t\t\t\t\t\t\t\t\t\tValueChanged(Name, defaultCompValue);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\t\tif (ValueChanged)\r\n\t\t\t\t\t\t\t\t\t\t\tValueChanged(Name, defaultCompValue);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}} />\r\n\t\t\t\t\t\t
: null}\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nGenericColorInput.propTypes = {\r\n\tValueChanged: PropTypes.func,\r\n\tValue: PropTypes.any,\r\n\tDefaultValue: PropTypes.any,\r\n\tName: PropTypes.string,\r\n\tLabelText: PropTypes.string,\r\n\tLabelMd: PropTypes.number,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default GenericColorInput;","// ##############################\r\n// // // SweetAlert view styles\r\n// #############################\r\n\r\nimport buttonStyle from \"assets/jss/material-dashboard-pro-react/components/buttonStyle.jsx\";\r\n\r\nconst sweetAlertStyle = {\r\n cardTitle: {\r\n marginTop: \"0\",\r\n marginBottom: \"3px\",\r\n color: \"#3C4858\",\r\n fontSize: \"18px\"\r\n },\r\n center: {\r\n textAlign: \"center\"\r\n },\r\n right: {\r\n textAlign: \"right\"\r\n },\r\n left: {\r\n textAlign: \"left\"\r\n },\r\n ...buttonStyle\r\n};\r\n\r\nexport default sweetAlertStyle;\r\n","import { Proxy } from \"core\";\r\nimport { ResourceType } from \"views/Constants/Constant\";\r\n\r\nconst resourceText = \"ResourceData\";\r\nconst resourceTextForMenu = \"ResourceDataForMenu\";\r\n\r\n/**\r\n * @param {number} languageId\r\n * @param {function} afterLanguageSet\r\n */\r\nfunction SetLanguage(languageId, afterLanguageSet = null) {\r\n\tProxy.POST(\r\n\t\t\"/coreapi/v1.0/Resource/GetByLanguageId\",\r\n\t\tlanguageId ,\r\n\t\tresponseData => {\r\n\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\tconsole.error(responseData.ErrorDescription);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tlocalStorage.setItem(resourceText, JSON.stringify(responseData.Item));\r\n\t\t\tif (responseData.Item != null) {\r\n\t\t\t\tlocalStorage.setItem(resourceTextForMenu, JSON.stringify(responseData.Item.filter(x => x.Type == ResourceType.Menu)));\r\n\t\t\t}\r\n\t\t\tif (afterLanguageSet)\r\n\t\t\t\tafterLanguageSet();\r\n\t\t},\r\n\t);\r\n}\r\n\r\n/**\r\n * @returns {Array<{Code: string, Description: string}>}\r\n */\r\nfunction GetAll() {\r\n\tvar loc = localStorage.getItem(resourceText) || \"[]\";\r\n\tvar all = JSON.parse(loc);\r\n\treturn all || [];\r\n}\r\n\r\n/**\r\n * @param {string} code\r\n * @returns {string}\r\n */\r\nfunction Get(code) {\r\n\tvar data = GetAll().find(x => x.Code == code) || { Code: code, Description: \"\" };\r\n\tvar desc = data.Description || \"\";\r\n\treturn desc || `! ${code}`;\r\n}\r\n\r\n/**\r\n * @returns {Array<{Code: string, Description: string}>}\r\n */\r\nfunction GetAllForMenu() {\r\n\tvar loc = localStorage.getItem(resourceTextForMenu) || \"[]\";\r\n\tvar all = JSON.parse(loc);\r\n\treturn all || [];\r\n}\r\n\r\n/**\r\n * @param {string} code\r\n * @returns {string}\r\n */\r\nfunction GetForMenu(code) {\r\n\tvar data = GetAllForMenu().find(x => x.Code == code) || { Code: code, Description: \"\" };\r\n\tvar desc = data.Description || \"\";\r\n\treturn desc || `! ${code}`;\r\n}\r\n/**\r\n * @param {string} name\r\n * @returns {Array}\r\n */\r\nfunction GetCodeByName(name) {\r\n\tvar list = GetAllForMenu().filter(x => x.Description.startsWith(name));\r\n\treturn list;\r\n}\r\n\r\nfunction Any() {\r\n\tvar loc = localStorage.getItem(resourceText);\r\n\treturn loc != null;\r\n}\r\n\r\nconst ResourceHelper = {\r\n\tSetLanguage,\r\n\tGet,\r\n\tGetAll,\r\n\tGetAllForMenu,\r\n\tGetForMenu,\r\n\tGetCodeByName,\r\n\tAny\r\n};\r\n\r\nexport default ResourceHelper;","import PropTypes from \"prop-types\"; \r\nimport { Dialog, withStyles } from \"@material-ui/core\";\r\nimport genericDialogStyle from \"assets/jss/generic/genericDialogStyle.jsx\";\r\nimport React from \"react\";\r\n\r\nconst dialogStyle = {};\r\nfunction GenericDialog(props) {\r\n\r\n\tconst { classes, children, Overflow, ...rest } = props;\r\n\r\n\r\n\r\n\tdialogStyle.paper = Overflow ? classes.overflowVisible : null;\r\n\treturn (\r\n\r\n\t\t\r\n\t\t\t
\r\n\t\t\t\t{children}\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n}\r\n\r\nGenericDialog.propTypes = {\r\n\t...Dialog.propTypes,\r\n\tOverflow: PropTypes.bool\r\n};\r\n\r\nexport default withStyles(genericDialogStyle)(GenericDialog);","import { DialogActions, withStyles } from \"@material-ui/core\";\r\nimport GridContainer from \"components/Grid/GridContainer\";\r\nimport React from \"react\";\r\n\r\nfunction GenericDialogActions(props) {\r\n\r\n\tconst { children, ...rest } = props;\r\n\r\n\treturn (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t{children}\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t);\r\n}\r\n\r\nGenericDialogActions.propTypes = DialogActions.propTypes;\r\n\r\nexport default withStyles({})(GenericDialogActions);","import { createMuiTheme, ExpansionPanel, ExpansionPanelDetails, ExpansionPanelSummary, MuiThemeProvider, withStyles } from \"@material-ui/core\";\r\nimport genericExpansionPanelStyle from \"assets/jss/material-dashboard-pro-react/views/genericExpansionPanelStyle.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer\";\r\nimport GridItem from \"components/Grid/GridItem\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport GenericIcon from \"views/Components/Generic/GenericIcon\";\r\nimport { GenericTitle, } from \"views/Components/Generic\";\r\nconst theme = createMuiTheme({\r\n\toverrides: {\r\n\t\tMuiCollapse: {\r\n\t\t\tentered: {\r\n\t\t\t\theight: \"auto\",\r\n\t\t\t\toverflow: \"visible\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\tpalette: {\r\n\t\tprimary: { main: window.PageMainColor }\r\n\t},\r\n\ttypography: {\r\n\t\tuseNextVariants: true\r\n\t}\r\n});\r\n\r\nclass GenericExpansionPanel extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tactive: true,\r\n\t\t\ttitle: \"Filter Panel\"\r\n\t\t};\r\n\t}\r\n\r\n\thandleChange(expanded) {\r\n\t\tconst { Name, ValueChanged } = this.props;\r\n\t\tthis.setState({\r\n\t\t\tactive: expanded\r\n\t\t});\r\n\r\n\t\tif (ValueChanged) {\r\n\t\t\tValueChanged(Name, expanded);\r\n\t\t}\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tif (this.props.IsActive != null) {\r\n\t\t\tthis.setState({ active: this.props.IsActive });\r\n\t\t}\r\n\t\tif (this.props.Title != null) {\r\n\t\t\tthis.setState({ title: this.props.Title });\r\n\t\t}\r\n\t}\r\n\r\n\tcomponentDidUpdate(prevProps, prevState) {\r\n\t\tif (this.props.IsActive != prevProps.IsActive) {\r\n\t\t\tthis.setState({ active: this.props.IsActive });\r\n\t\t}\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes, children, AlignToRight } = this.props;\r\n\t\tconst { active } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t this.handleChange(!active)}\r\n\t\t\t\t\t\tclasses={{\r\n\t\t\t\t\t\t\troot: classes.expansionPanel,\r\n\t\t\t\t\t\t\texpanded: classes.expansionPanelExpanded\r\n\t\t\t\t\t\t}}\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t this.handleChange(!active)} >\r\n\t\t\t\t\t\t\t\t\t\texpand_more\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{children}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nGenericExpansionPanel.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tName: PropTypes.string,\r\n\tTitle: PropTypes.string,\r\n\tIsActive: PropTypes.bool,\r\n\tAlignToRight: PropTypes.bool,\r\n\tValueChanged: PropTypes.any,\r\n\tchildren: PropTypes.node\r\n};\r\n\r\nexport default withStyles(genericExpansionPanelStyle)(GenericExpansionPanel);\r\n","import { createMuiTheme, ExpansionPanel, ExpansionPanelDetails, ExpansionPanelSummary, MuiThemeProvider, withStyles } from \"@material-ui/core\";\r\nimport genericExpansionPanelStyle from \"assets/jss/material-dashboard-pro-react/views/genericExpansionPanelStyle.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport GridContainer from \"components/Grid/GridContainer\";\r\nimport GridItem from \"components/Grid/GridItem\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport GenericIcon from \"views/Components/Generic/GenericIcon\";\r\nconst theme = createMuiTheme({\r\n\toverrides: {\r\n\t\tMuiCollapse: {\r\n\t\t\tentered: {\r\n\t\t\t\theight: \"auto\",\r\n\t\t\t\toverflow: \"visible\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\tpalette: {\r\n\t\tprimary: { main: window.PageMainColor }\r\n\t},\r\n\ttypography: {\r\n\t\tuseNextVariants: true\r\n\t}\r\n});\r\n\r\nclass GenericExpansionPanelCustomHeader extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tactive: true,\r\n\t\t\ttitle: \"Filter Panel\"\r\n\t\t};\r\n\t}\r\n\r\n\thandleChange(expanded) {\r\n\t\tconst { Name, ValueChanged } = this.props;\r\n\t\tthis.setState({\r\n\t\t\tactive: expanded\r\n\t\t});\r\n\r\n\t\tif (ValueChanged) {\r\n\t\t\tValueChanged(Name, expanded);\r\n\t\t}\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tif (this.props.IsActive != null) {\r\n\t\t\tthis.setState({ active: this.props.IsActive });\r\n\t\t}\r\n\t}\r\n\r\n\tcomponentDidUpdate(prevProps, prevState) {\r\n\t\tif (this.props.IsActive != prevProps.IsActive) {\r\n\t\t\tthis.setState({ active: this.props.IsActive });\r\n\t\t}\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes, children, AlignToRight, Header } = this.props;\r\n\t\tconst { active } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t this.handleChange(!active)}\r\n\t\t\t\t\t\tclasses={{\r\n\t\t\t\t\t\t\troot: classes.expansionPanel,\r\n\t\t\t\t\t\t\texpanded: classes.expansionPanelExpanded\r\n\t\t\t\t\t\t}}\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t this.handleChange(!active)} >\r\n\t\t\t\t\t\t\t\t\t\texpand_more\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{children}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nGenericExpansionPanelCustomHeader.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tName: PropTypes.string,\r\n\tHeader: PropTypes.func,\r\n\tIsActive: PropTypes.bool,\r\n\tAlignToRight: PropTypes.bool,\r\n\tValueChanged: PropTypes.any\r\n};\r\n\r\nexport default withStyles(genericExpansionPanelStyle)(GenericExpansionPanelCustomHeader);\r\n","import { DialogContent, DialogTitle, withStyles } from \"@material-ui/core\";\r\nimport genericGridStyle from \"assets/jss/generic/genericGridStyle.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport ArrayHelper from \"core/ArrayHelper\";\r\nimport { ExportToCsv, ExportToExcel, ExportToPdf } from \"core/ExportFileHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { PureComponent } from \"react\";\r\nimport Select from \"react-select\";\r\nimport ReactTable from \"react-table\";\r\nimport {\r\n GenericAlert,\r\n GenericDialog,\r\n GenericDialogActions,\r\n GenericLabel,\r\n} from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { DocumentType, GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass GenericGrid extends PureComponent {\r\n constructor(props) {\r\n super(props);\r\n\r\n this.state = {\r\n isLoading: false,\r\n isColumnSelectDialogOpen: false,\r\n GridKeyValueList: [],\r\n SelectedGridKeyValueList: [],\r\n type: 2,\r\n alert: null,\r\n };\r\n\r\n this.tableInstance = React.createRef();\r\n\r\n this.ExcludedColumns = [\r\n \"AP\",\r\n \"SE\",\r\n \"ED\",\r\n \"TR\",\r\n \"SUS\",\r\n \"CHQ\",\r\n \"actions\",\r\n \"Actions\",\r\n ];\r\n }\r\n\r\n HandleChange = (selectedOptions) => {\r\n this.setState({ SelectedGridKeyValueList: selectedOptions });\r\n };\r\n\r\n OpenDialog = (type) => {\r\n const { Columns } = this.props;\r\n var keyvalueList = [];\r\n Columns.forEach(function (gridColumnElement) {\r\n if (\r\n !this.ExcludedColumns.includes(gridColumnElement.accessor) &&\r\n gridColumnElement.show !== false\r\n ) {\r\n var item = {\r\n value: gridColumnElement.accessor,\r\n label: gridColumnElement.Header,\r\n columntype: gridColumnElement.ColumnType,\r\n };\r\n keyvalueList.push(item);\r\n }\r\n }, this);\r\n this.setState({\r\n isColumnSelectDialogOpen: true,\r\n type: type,\r\n GridKeyValueList: keyvalueList,\r\n SelectedGridKeyValueList: keyvalueList,\r\n });\r\n };\r\n\r\n GetDataToDownload = () => {\r\n const { Data } = this.props;\r\n const { SelectedGridKeyValueList, type } = this.state;\r\n\r\n var keyvalueList = [];\r\n\r\n var data = this.ResolveData(Data);\r\n data = this.GetData(data);\r\n data.forEach((listElement) => {\r\n var keyValueObject = {};\r\n SelectedGridKeyValueList.forEach((gridColumnElement) => {\r\n keyValueObject[gridColumnElement.label] = this.GetElementValue(\r\n listElement,\r\n gridColumnElement.value\r\n );\r\n }, this);\r\n keyvalueList.push(keyValueObject);\r\n }, this);\r\n\r\n return keyvalueList;\r\n };\r\n\r\n HandleDocument = () => {\r\n this.setState({ isColumnSelectDialogOpen: false });\r\n const { SelectedGridKeyValueList, type } = this.state;\r\n\r\n if (type == DocumentType.PDF) {\r\n if (SelectedGridKeyValueList.length > 15) {\r\n this.ShowMessage(\r\n \"warning\",\r\n \"Required fields\",\r\n \"PDF document cannot exceed 15 columns\"\r\n );\r\n this.setState({ isLoading: false });\r\n\r\n return false;\r\n }\r\n ExportToPdf(this.GetDataToDownload(), \"report\");\r\n } else if (type == DocumentType.Excel) {\r\n ExportToExcel(this.GetDataToDownload(), \"report\");\r\n } else if (type == DocumentType.CSV) {\r\n ExportToCsv(this.GetDataToDownload(), \"report\");\r\n }\r\n };\r\n\r\n ResolveData = (data) => {\r\n const { ResolveData } = this.props;\r\n\r\n if (ResolveData) return ResolveData(data);\r\n else return data;\r\n };\r\n\r\n GetData = (Data) => {\r\n const { IsSorted, Sorted } = this.props;\r\n const newData = [...Data];\r\n\r\n if (IsSorted && Sorted != null) {\r\n ArrayHelper.SortArray(newData, Sorted[0].id, Sorted[0].desc);\r\n }\r\n\r\n return newData.map((row) => {\r\n let newObject = {};\r\n Object.keys(row).forEach((propertyKey) => {\r\n newObject[propertyKey] = this.ClearUp(row[propertyKey], propertyKey);\r\n });\r\n return newObject;\r\n });\r\n };\r\n\r\n ClearUp = (obj, key) => {\r\n var column = this.props.Columns.find((x) => x.accessor === key);\r\n if (column) {\r\n if (typeof obj === \"object\" && obj != null) {\r\n // this.ClearUp(obj, key);\r\n }\r\n if (column.type === GridColumnType.Money) {\r\n obj = new Intl.NumberFormat(\"en-CA\", {\r\n style: \"currency\",\r\n currency: \"CAD\",\r\n }).format(obj || 0);\r\n }\r\n if (column.type === GridColumnType.Percent) {\r\n obj = new Intl.NumberFormat(\"en-CA\", {\r\n style: \"percent\",\r\n minimumFractionDigits: 2,\r\n maximumFractionDigits: 2,\r\n }).format(obj || 0);\r\n }\r\n if (column.type === GridColumnType.Date) {\r\n obj = obj ? Formatter.FormatDate(obj) : null;\r\n }\r\n if (column.type === GridColumnType.DateTime) {\r\n obj = obj ? Formatter.FormatDateTime(obj) : null;\r\n }\r\n if (column.type === GridColumnType.DateUtc) {\r\n obj = obj ? Formatter.FormatDateUtc(obj) : null;\r\n }\r\n if (column.type === GridColumnType.DateTimeUtc) {\r\n obj = obj ? Formatter.FormatDateTimeUtc(obj) : null;\r\n }\r\n if (column.type === GridColumnType.Time) {\r\n obj = obj ? Formatter.FormatTime(obj) : null;\r\n }\r\n if (column.type === GridColumnType.YesNo) {\r\n obj = obj != null ? Formatter.FormatYesNo(obj) : null;\r\n }\r\n }\r\n return obj;\r\n };\r\n\r\n GetTrProps = (state, rowInfo) => {\r\n const { SelectedIndex, RowSelected } = this.props;\r\n\r\n if (rowInfo && rowInfo.row) {\r\n return {\r\n onClick: () => {\r\n if (RowSelected) RowSelected(rowInfo.index);\r\n },\r\n style: {\r\n background:\r\n rowInfo.index === SelectedIndex ? \"rgba(0, 0, 0, 0.1)\" : \"\",\r\n cursor: RowSelected ? \"pointer\" : \"auto\",\r\n },\r\n };\r\n } else {\r\n return {};\r\n }\r\n };\r\n\r\n GetTdProps = (state, rowInfo, columnInfo) => {\r\n const { ColumnSelected } = this.props;\r\n\r\n if (rowInfo && rowInfo.row) {\r\n return {\r\n onClick: () => {\r\n if (ColumnSelected)\r\n ColumnSelected(rowInfo.index, rowInfo, columnInfo);\r\n },\r\n };\r\n } else {\r\n return {};\r\n }\r\n };\r\n\r\n DefaultFilter = (filter, row) => {\r\n const id = filter.pivotId || filter.id;\r\n if (row[id] != null) {\r\n return String(row[id])\r\n .toLowerCase()\r\n .startsWith(String(filter.value).toLowerCase());\r\n }\r\n };\r\n\r\n ShowMessage = (type, title, message) => {\r\n this.setState({\r\n alert: (\r\n \r\n ),\r\n });\r\n };\r\n\r\n HideAlert = () => {\r\n this.setState({ alert: null });\r\n };\r\n\r\n GetElementValue = (obj, path) => {\r\n if (obj == null || path == null) return \"\";\r\n return [obj].concat(path.split(\".\")).reduce((c, n) => c && c[n]);\r\n };\r\n\r\n GetCellDate = (value) => {\r\n return Formatter.FormatDate(value);\r\n };\r\n\r\n GetCellDateTime = (value) => {\r\n return Formatter.FormatDateTime(value);\r\n };\r\n\r\n GetCellDateUtc = (value) => {\r\n return Formatter.FormatDateUtc(value);\r\n };\r\n\r\n GetCellDateTimeUtc = (value) => {\r\n return Formatter.FormatDateTimeUtc(value);\r\n };\r\n\r\n GetCellMoney = (value) => {\r\n return Formatter.FormatMoney(value);\r\n };\r\n\r\n GetCelPercent = (value) => {\r\n return Formatter.FormatPercentFee(value);\r\n };\r\n\r\n GetCellTime = (value) => {\r\n return Formatter.FormatTime(value);\r\n };\r\n\r\n GetCellYesNo = (value) => {\r\n return Formatter.FormatYesNo(value);\r\n };\r\n\r\n LoadMoreClick = () => {\r\n var table = this.tableInstance.current;\r\n\r\n if (table)\r\n this.setState({ LoadMoreClicked: true }, () => {\r\n this.OnFetchData(table.state, null, true);\r\n });\r\n };\r\n\r\n OnFetchData = (state, instance, loadMore) => {\r\n const {\r\n LoadAtStartup,\r\n ValidateRequest,\r\n PrepareRequest,\r\n RequestUrl,\r\n RequestMethod,\r\n } = this.props;\r\n\r\n if (!LoadAtStartup) return;\r\n\r\n if (ValidateRequest && !ValidateRequest()) return;\r\n\r\n var request = {\r\n PageNumber: state.page,\r\n PageSize: state.pageSize,\r\n CacheGuid: this.state.CacheGuid,\r\n };\r\n if (loadMore) {\r\n state.page += 1;\r\n request.PageNumber += 1;\r\n }\r\n\r\n if (PrepareRequest) {\r\n request = { ...request, ...PrepareRequest() };\r\n }\r\n\r\n this.setState({ Loading: true });\r\n if (RequestMethod == \"POST\") {\r\n Proxy.POST(\r\n RequestUrl,\r\n request,\r\n (responseData) =>\r\n this.FetchSuccess(responseData, loadMore, request.PageNumber),\r\n (errorMessage) => {\r\n this.setState({ Loading: false });\r\n this.ShowMessage(\"error\", \"Error\", errorMessage);\r\n }\r\n );\r\n } else {\r\n Proxy.GET(\r\n RequestUrl,\r\n (responseData) =>\r\n this.FetchSuccess(responseData, loadMore, request.PageNumber),\r\n (errorMessage) => {\r\n this.setState({ Loading: false });\r\n this.ShowMessage(\"error\", \"Error\", errorMessage);\r\n }\r\n );\r\n }\r\n };\r\n\r\n FetchSuccess = (responseData, loadMore, pageNumber) => {\r\n this.setState({ Loading: false });\r\n if (!responseData.IsSucceeded) {\r\n this.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n return;\r\n }\r\n const { PaginationFetchDataCallback, ServerSide } = this.props;\r\n if (responseData.Item !== null && responseData.Item.Data) {\r\n if (PaginationFetchDataCallback && ServerSide) {\r\n if (loadMore) {\r\n PaginationFetchDataCallback([\r\n ...this.state.Data,\r\n ...responseData.Item.Data,\r\n ]);\r\n } else {\r\n PaginationFetchDataCallback([...responseData.Item.Data]);\r\n }\r\n }\r\n this.setState((state) => {\r\n var data = responseData.Item.Data;\r\n var pageCount = responseData.Item.TotalPages;\r\n\r\n if (loadMore) {\r\n data = state.Data.concat(data);\r\n }\r\n\r\n return {\r\n Data: data,\r\n PageCount: pageCount,\r\n CacheGuid: responseData.Item.CacheGuid,\r\n };\r\n });\r\n } else {\r\n this.setState({ Data: [] });\r\n }\r\n };\r\n\r\n render() {\r\n const {\r\n Columns,\r\n Data: PropData,\r\n Sorted,\r\n HideButton,\r\n PageSize,\r\n ShowPagination,\r\n SetTrProps,\r\n SetTdProps,\r\n IsSorted,\r\n ServerSide,\r\n HideLoadMore,\r\n } = this.props;\r\n const {\r\n isColumnSelectDialogOpen,\r\n GridKeyValueList,\r\n SelectedGridKeyValueList,\r\n alert,\r\n Loading,\r\n PageCount,\r\n Data: StateData,\r\n } = this.state;\r\n\r\n var canvas = document.createElement(\"canvas\");\r\n var ctx = canvas.getContext(\"2d\");\r\n ctx.font = '14px \"Roboto\", \"Helvetica\", \"Arial\", sans-serif';\r\n Columns.forEach((c) => {\r\n if (c.minWidth == null) c.minWidth = ctx.measureText(c.Header).width + 30;\r\n\r\n if (c && !c.Cell && c.type) {\r\n if (c.type == GridColumnType.Date) {\r\n c.Cell = (row) => (row.value ? this.GetCellDate(row.value) : null);\r\n } else if (c.type == GridColumnType.DateTime) {\r\n if (c.style != null) {\r\n c.Cell = (row) =>\r\n row.original[`${c.style.column}`] == c.style.condition ? (\r\n
\r\n {row.value ? this.GetCellDateTime(row.value) : null}\r\n
\r\n ) : (\r\n
{row.value ? this.GetCellDateTime(row.value) : null}
\r\n );\r\n } else {\r\n c.Cell = (row) =>\r\n row.value ? this.GetCellDateTime(row.value) : null;\r\n }\r\n } else if (c.type == GridColumnType.DateUtc) {\r\n c.Cell = (row) => (row.value ? this.GetCellDateUtc(row.value) : null);\r\n } else if (c.type == GridColumnType.DateTimeUtc) {\r\n if (c.style != null) {\r\n c.Cell = (row) =>\r\n row.original[`${c.style.column}`] == c.style.condition ? (\r\n
\r\n {row.value ? this.GetCellDateTimeUtc(row.value) : null}\r\n
\r\n ) : (\r\n
\r\n {row.value ? this.GetCellDateTimeUtc(row.value) : null}\r\n
\r\n );\r\n } else {\r\n c.Cell = (row) =>\r\n row.value ? this.GetCellDateTimeUtc(row.value) : null;\r\n }\r\n } else if (c.type == GridColumnType.Money) {\r\n if (c.style != null) {\r\n c.Cell = (row) =>\r\n row.original[`${c.style.column}`] == c.style.condition ? (\r\n
\r\n {row.value == 0 ? \"\" : c.style.prefix[0]}\r\n {row.value\r\n ? this.GetCellMoney(row.value)\r\n : this.GetCellMoney(0)}\r\n
\r\n ) : (\r\n
\r\n {row.value == 0 ? \"\" : c.style.prefix[1]}\r\n {row.value\r\n ? this.GetCellMoney(row.value)\r\n : this.GetCellMoney(0)}\r\n
\r\n );\r\n } else {\r\n c.Cell = (row) =>\r\n row.value ? this.GetCellMoney(row.value) : this.GetCellMoney(0);\r\n }\r\n } else if (c.type == GridColumnType.Percent) {\r\n c.Cell = (row) =>\r\n row.value != null ? this.GetCelPercent(row.value) : null;\r\n } else if (c.type == GridColumnType.Time) {\r\n c.Cell = (row) => (row.value ? this.GetCellTime(row.value) : null);\r\n } else if (c.type == GridColumnType.YesNo) {\r\n c.Cell = (row) =>\r\n row.value != null ? this.GetCellYesNo(row.value) : null;\r\n }\r\n }\r\n });\r\n\r\n //#region CheckIdColumn For Sorting\r\n //Our grid must sort list according to Id column as default.\r\n //We have to add Id column if the prop column list doesn't have Id column. Otherwise react table couldn't sorting with Id.\r\n var IdColumn = [\r\n {\r\n Header: \"Id\",\r\n accessor: \"Id\",\r\n show: false,\r\n },\r\n ];\r\n var finalColumns = undefined;\r\n var found = Columns.find((x) => x.accessor == \"Id\");\r\n if (found == null) finalColumns = IdColumn.concat(Columns);\r\n //#endregion\r\n\r\n const Data = ServerSide ? StateData || [] : PropData || [];\r\n\r\n return (\r\n \r\n {alert}\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n this.setState({ isColumnSelectDialogOpen: false })}\r\n >\r\n Cancel\r\n \r\n \r\n \r\n\r\n \r\n\r\n {!ServerSide && !HideButton && (\r\n \r\n \r\n \r\n \r\n \r\n this.OpenDialog(DocumentType.PDF)}\r\n fullWidth\r\n >\r\n PDF\r\n \r\n \r\n \r\n this.OpenDialog(DocumentType.CSV)}\r\n fullWidth\r\n >\r\n CSV\r\n \r\n \r\n \r\n this.OpenDialog(DocumentType.Excel)}\r\n fullWidth\r\n >\r\n Excel\r\n \r\n \r\n \r\n \r\n \r\n )}\r\n\r\n {ServerSide && !HideLoadMore && (\r\n \r\n \r\n \r\n \r\n Load More\r\n \r\n \r\n \r\n \r\n )}\r\n\r\n \r\n
\r\n \r\n
\r\n
\r\n \r\n );\r\n }\r\n}\r\n\r\nGenericGrid.defaultProps = {\r\n PageSize: 100,\r\n ShowPagination: false,\r\n IsSorted: true,\r\n Sorted: [{ id: \"Id\", desc: true }],\r\n};\r\n\r\nGenericGrid.propTypes = {\r\n classes: PropTypes.object.isRequired,\r\n Columns: PropTypes.array,\r\n Data: PropTypes.array,\r\n Sorted: PropTypes.array,\r\n ResolveData: PropTypes.func,\r\n RowSelected: PropTypes.func,\r\n ColumnSelected: PropTypes.func,\r\n SelectedIndex: PropTypes.number,\r\n DocumentTitle: PropTypes.string,\r\n HideButton: PropTypes.bool,\r\n PageSize: PropTypes.number,\r\n Model: PropTypes.object,\r\n ShowPagination: PropTypes.bool,\r\n SetTrProps: PropTypes.func,\r\n SetTdProps: PropTypes.func,\r\n IsSorted: PropTypes.bool,\r\n ProgramCode: PropTypes.string,\r\n ServerSide: PropTypes.bool,\r\n LoadAtStartup: PropTypes.bool,\r\n ValidateRequest: PropTypes.func,\r\n PrepareRequest: PropTypes.func,\r\n RequestUrl: PropTypes.string,\r\n RequestMethod: PropTypes.oneOf([\"POST\", \"GET\"]),\r\n PaginationFetchDataCallback: PropTypes.func,\r\n HideLoadMore: PropTypes.bool,\r\n};\r\n\r\nexport default withStyles(genericGridStyle)(GenericGrid);\r\n","import ClientHelper from \"core/ClientHelper.js\";\r\nimport DateHelper from \"core/DateHelper.js\";\r\nimport Formatter from \"core/Formatter.js\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport AccountComponent from \"../AccountComponent.jsx\";\r\nimport CustomerStoreComponent from \"../CustomerStoreComponent.jsx\";\r\nimport GenericCheckInput from \"./GenericCheckInput.jsx\";\r\nimport GenericDateFilterInput from \"./GenericDateFilterInput.jsx\";\r\nimport GenericDateInput from \"./GenericDateInput.jsx\";\r\nimport GenericEmailInput from \"./GenericEmailInput.jsx\";\r\nimport GenericFilterSelectInput from \"./GenericFilterSelectInput.jsx\";\r\nimport GenericNumberInput from \"./GenericNumberInput.jsx\";\r\nimport GenericRadioInput from \"./GenericRadioInput.jsx\";\r\nimport GenericSelectInput from \"./GenericSelectInput.jsx\";\r\nimport GenericTextInput from \"./GenericTextInput.jsx\";\r\n\r\nclass GenericInput extends Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.GenerateInput = this.GenerateInput.bind(this);\r\n\t\tthis.IsBackoffice = ClientHelper.IsBackOffice();\r\n\t\tthis.ClientId = ClientHelper.GetClientId();\r\n\t}\r\n\r\n\tGenerateInput(inputData) {\r\n\t\tconst { Disabled, IsInvalid, IsReport } = this.props;\r\n\r\n\t\tswitch (inputData.InputType) {\r\n\t\t\tcase \"text\":\r\n\t\t\t\tthis.inputProps = {};\r\n\t\t\t\tif (inputData.MaxLength)\r\n\t\t\t\t\tthis.inputProps = { maxLength: JSON.parse(inputData.MaxLength) };\r\n\t\t\t\treturn ;\r\n\t\t\tcase \"number\":\r\n\t\t\t\treturn ;\r\n\t\t\tcase \"decimal\":\r\n\t\t\t\treturn ;\r\n\t\t\tcase \"select\":\r\n\t\t\t\treturn inputData.RenderItem.map(propName => data[propName]).join(\" \")} Method={inputData.Method}\r\n\t\t\t\t\tUrl={inputData.Url} Parameter={inputData.Parameter} DataRoot={inputData.DataRoot} IsStatic={inputData.IsStatic} StaticData={inputData.StaticData}\r\n\t\t\t\t\tDefaultIndex={inputData.DefaultIndex}\r\n\t\t\t\t/>;\r\n\t\t\tcase \"filter\":\r\n\t\t\t\treturn inputData.RenderItem.map(propName => data[propName]).join(\" \")}\r\n\t\t\t\t\tParameter={{ ...inputData.Parameter, ...this.props.FilterParameter }} DataRoot={inputData.DataRoot}\r\n\t\t\t\t/>;\r\n\t\t\tcase \"date\":\r\n\t\t\tcase \"date_utc\":\r\n\t\t\t\treturn ;\r\n\t\t\tcase \"checkbox\":\r\n\t\t\t\treturn ;\r\n\t\t\tcase \"radio\":\r\n\t\t\t\treturn ;\r\n\t\t\tcase \"account\":\r\n\t\t\t\treturn ;\r\n\t\t\tcase \"client\":\r\n\t\t\t\treturn `${d.UniqueClientId} - ${d.Name}`} Value={this.props.Value ? this.props.Value : 0}\r\n\t\t\t\t\tValueChanged={this.props.ValueChanged} CanClear Disabled={Disabled || inputData.Disabled || !this.IsBackoffice}\r\n\t\t\t\t\tDefaultIndex={!this.IsBackoffice ? 0 : -1}\r\n\t\t\t\t/>;\r\n\t\t\tcase \"store\":\r\n\t\t\t\treturn ;\r\n\t\t\tcase \"datefilter\":\r\n\t\t\t\treturn ;\r\n\t\t\tcase \"email\":\r\n\t\t\t\treturn ;\r\n\t\t\tdefault:\r\n\t\t\t\treturn \"\";\r\n\t\t}\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { ViewData } = this.props;\r\n\r\n\t\tif (!ViewData)\r\n\t\t\treturn \"\";\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.GenerateInput(ViewData)}\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nGenericInput.propTypes = {\r\n\tModel: PropTypes.object,\r\n\tViewData: PropTypes.object,\r\n\tValueChanged: PropTypes.func,\r\n\tFilterParameter: PropTypes.object,\r\n\tIsDCBankAccount: PropTypes.bool,\r\n\tDisabled: PropTypes.bool,\r\n\tLabelMd: PropTypes.number\r\n};\r\n\r\nexport default GenericInput;","\r\n/**\r\n *\r\n * @param {string} text\r\n * @param {boolean} allWords\r\n */\r\nfunction Capitalize(text, allWords = false) {\r\n\tif (typeof text !== \"string\") return \"\";\r\n\treturn (allWords) ? // if all words\r\n\t\ttext.split(\" \").map(word => this.Capitalize(word)).join(\" \") : //break down phrase to words then recursive calls until capitalizing all words\r\n\t\ttext.charAt(0).toUpperCase() + text.slice(1).toLowerCase(); // if allWords is false, capitalize only the first word, mean the first char of the whole string\r\n}\r\n\r\n/**\r\n *\r\n * @param {string} text\r\n * @param {Array} parameters\r\n */\r\nfunction Format(text, parameters) {\r\n\tif (text == null) return null;\r\n\r\n\tif (parameters == null) return text;\r\n\r\n\treturn text.replace(/{(\\d+)}/g, function (match, number) {\r\n\t\treturn typeof parameters[number] != \"undefined\"\r\n\t\t\t? parameters[number]\r\n\t\t\t: match;\r\n\t});\r\n}\r\n\r\n/**\r\n *\r\n * @param {string} string\r\n * @param {string} search\r\n * @param {string} replace\r\n */\r\nfunction ReplaceAll(string, search, replace) {\r\n\treturn string.split(search).join(replace);\r\n}\r\n\r\n/**\r\n *\r\n * @param {string} email\r\n */\r\nfunction VerifyEmail(email) {\r\n\tvar regex = /^(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\r\n\treturn regex.test(email);\r\n}\r\n\r\n/**\r\n * digit and string control\r\n * this method allow french characters and hypen\r\n * @param {string} text\r\n */\r\nfunction VerifiyDigitAndLetter(text) {\r\n\tvar regex = /[^A-Za-z0-9 àâäèéêëîïôœùûüÿñæœçÀÂÄÈÉÊËÎÏÔÆŒÙÛÜŸÑÇ \\-_]+/g;\r\n\treturn regex.test(text);\r\n}\r\n\r\n/**\r\n * digit and string control\r\n * this method allow wire special character\r\n * @param {string} text\r\n */\r\nfunction VerifiyDigitAndLetterForWire(text) {\r\n\tvar regex = /[^A-Za-z0-9 (),.]+/g;\r\n\treturn regex.test(text);\r\n}\r\n/**\r\n * digit and string control\r\n * this method allow wire special character\r\n * @param {string} text\r\n */\r\nfunction VerifiyAdressLineWire(text) {\r\n\tvar regex = /[^A-Za-z0-9 (),.]+/g;\r\n\treturn regex.test(text);\r\n}\r\n/**\r\n * digit and string control\r\n * this method allow wire special character\r\n * @param {string} text\r\n */\r\nfunction VerifiyWireLine(text) {\r\n\tvar regex = /[^A-Za-z0-9 -]+/g;\r\n\treturn regex.test(text);\r\n}\r\n/**\r\n * \r\n * @param {string} hex\r\n */\r\nfunction IsValidColor(hex) {\r\n\tvar pattern = new RegExp(\"^#([a-fA-F0-9]){3}$|[a-fA-F0-9]{6}$\");\r\n\treturn pattern.test(hex);\r\n}\r\n\r\n/**\r\n * Levenshtein distance is a string metric for measuring the difference between two sequences.\r\n * Compare two string and get similarity distance between texts as length.\r\n * Similarity decreases while distance increase. Zero means two string is same\r\n * @param {string} s1 str1 for compare\r\n * @param {string} s2 str2 for compare\r\n */\r\nfunction LevenshteinDistance(s1, s2, caseSensitive = false) {\r\n\tvar a = caseSensitive ? s1 : s1.toLowerCase();\r\n\tvar b = caseSensitive ? s2 : s2.toLowerCase();\r\n\r\n\tif (a.length == 0) return b.length;\r\n\tif (b.length == 0) return a.length;\r\n\r\n\tvar matrix = [];\r\n\r\n\t// increment along the first column of each row\r\n\tvar i;\r\n\tfor (i = 0; i <= b.length; i++) {\r\n\t\tmatrix[i] = [i];\r\n\t}\r\n\r\n\t// increment each column in the first row\r\n\tvar j;\r\n\tfor (j = 0; j <= a.length; j++) {\r\n\t\tmatrix[0][j] = j;\r\n\t}\r\n\r\n\t// Fill in the rest of the matrix\r\n\tfor (i = 1; i <= b.length; i++) {\r\n\t\tfor (j = 1; j <= a.length; j++) {\r\n\t\t\tif (b.charAt(i - 1) == a.charAt(j - 1)) {\r\n\t\t\t\tmatrix[i][j] = matrix[i - 1][j - 1];\r\n\t\t\t} else {\r\n\t\t\t\tmatrix[i][j] = Math.min(\r\n\t\t\t\t\tmatrix[i - 1][j - 1] + 1, // substitution\r\n\t\t\t\t\tMath.min(\r\n\t\t\t\t\t\tmatrix[i][j - 1] + 1, // insertion\r\n\t\t\t\t\t\tmatrix[i - 1][j] + 1\r\n\t\t\t\t\t)\r\n\t\t\t\t); // deletion\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\treturn matrix[b.length][a.length];\r\n}\r\n/**\r\n * Get similarity score between two string from 0 to 100\r\n * Score 100 meaning both string is same, zero is completely different strings\r\n * @param {string} a str1\r\n * @param {string} b str2\r\n */\r\nfunction GetSimilarity(a, b, caseSensitive = false) {\r\n\tif (typeof a != \"string\" || typeof b != \"string\") {\r\n\t\treturn 0;\r\n\t}\r\n\tvar maxLength = Math.max(a.length, b.length);\r\n\tvar levDistance = LevenshteinDistance(a, b, caseSensitive);\r\n\tif (isNaN(levDistance)) {\r\n\t\treturn 0;\r\n\t}\r\n\tvar score = Math.ceil(((maxLength - levDistance) / maxLength) * 100);\r\n\treturn score;\r\n}\r\n\r\n/**\r\n* IsValidatePhone\r\n* return true if the string 'input' is a valid phone\r\n* @param {string} input\r\n*/\r\nfunction IsValidatePhone(input) {\r\n\tvar phoneRe = /^\\(?([0-9]{3})\\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/;\r\n\tvar digits = input.replace(/\\D/g, \"\");\r\n\treturn phoneRe.test(digits);\r\n}\r\n\r\n\r\n/*******************************************************\r\n* GetFormatPhoneText\r\n* returns a string that is in XXX-XXX-XXXX format\r\n* @param {string} value\r\n*******************************************************/\r\nfunction GetFormatPhoneText(value) {\r\n\tlet output = \"(\";\r\n\tvalue.replace(/^\\D*(\\d{0,3})\\D*(\\d{0,3})\\D*(\\d{0,4})/, function (match, g1, g2, g3) {\r\n\t\tif (g1.length) {\r\n\t\t\toutput += g1;\r\n\t\t\tif (g1.length == 3) {\r\n\t\t\t\toutput += \")\";\r\n\t\t\t\tif (g2.length) {\r\n\t\t\t\t\toutput += \" \" + g2;\r\n\t\t\t\t\tif (g2.length == 3) {\r\n\t\t\t\t\t\toutput += \" \";\r\n\t\t\t\t\t\tif (g3.length) {\r\n\t\t\t\t\t\t\toutput += g3;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t);\r\n\treturn output;\r\n}\r\n\r\nfunction PadLeft(paddingChar, value, size) {\r\n\tif (!typeof value)\r\n\t\treturn paddingChar;\r\n\r\n\treturn (new Array(size + 1).join(paddingChar || \"0\") + String(value)).slice(-size);;\r\n\r\n}\r\n\r\nfunction PadRight(paddingChar, value, size) {\r\n\tif (!typeof value)\r\n\t\treturn paddingChar;\r\n\r\n\treturn (new Array(size + 1).join(paddingChar || \"0\") + String(value)).slice(size);\r\n\r\n}\r\n\r\nfunction VerifyDigit(text) {\r\n\tvar regex = /^[0-9]+/g;\r\n\treturn regex.test(text);\r\n}\r\n\r\nconst StringHelper = {\r\n\tCapitalize,\r\n\tFormat,\r\n\tReplaceAll,\r\n\tVerifyEmail,\r\n\tVerifiyDigitAndLetter,\r\n\tIsValidColor,\r\n\tLevenshteinDistance,\r\n\tGetSimilarity,\r\n\tVerifiyDigitAndLetterForWire,\r\n\tIsValidatePhone,\r\n\tGetFormatPhoneText,\r\n\tPadLeft,\r\n\tPadRight,\r\n\tVerifyDigit,\r\n\tVerifiyWireLine,\r\n\tVerifiyAdressLineWire\r\n};\r\n\r\nexport default StringHelper;\r\n","import { InputLabel, withStyles } from \"@material-ui/core\";\r\nimport genericLabelStyle from \"assets/jss/generic/genericLabelStyle.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { PureComponent } from \"react\";\r\n\r\nclass GenericLabel extends PureComponent {\r\n\r\n\trender() {\r\n\t\tconst { classes, htmlFor, Text, TextColor, FontSize, Bold, IsPointer, MarginRight, TextAlign, Display, PaddingLeft, PaddingTop } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t{Text}\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nGenericLabel.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tText: PropTypes.string,\r\n\thtmlFor: PropTypes.string,\r\n\tTextColor: PropTypes.string,\r\n\tFontSize: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\r\n\tBold: PropTypes.bool,\r\n\tIsPointer: PropTypes.bool,\r\n\tTextAlign: PropTypes.string,\r\n\tDisplay: PropTypes.string,\r\n\tMarginRight: PropTypes.number,\r\n\tPaddingLeft: PropTypes.string,\r\n\tPaddingTop: PropTypes.string\r\n};\r\n\r\nGenericLabel.defaultProps = {\r\n\tTextColor: \"#000\",\r\n\tFontSize: \"12px\",\r\n\tBold: false,\r\n\tIsPointer: false,\r\n\tMarginRight: 5,\r\n\tTextAlign: \"inherit\",\r\n\tDisplay: \"unset\"\r\n};\r\n\r\nexport default withStyles(genericLabelStyle)(GenericLabel);","import { LinearProgress } from \"@material-ui/core\";\r\nimport React from \"react\";\r\n\r\nfunction GenericLinearProgress() {\r\n\treturn (\r\n\t\t\r\n\t);\r\n}\r\n\r\nexport default GenericLinearProgress;","import { FormControl, InputLabel } from \"@material-ui/core\";\r\nimport genericMultipleSelectInputStyle from \"assets/jss/generic/genericMultipleSelectInputStyle.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport withArtifex from \"core/withArtifex\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ReactMultiSelectCheckboxes from \"react-multiselect-checkboxes\";\r\n\r\n\r\nconst groupStyles = {\r\n\tdisplay: \"flex\",\r\n\talignItems: \"center\",\r\n\tjustifyContent: \"space-between\",\r\n};\r\n\r\nconst customStyles = {\r\n\tcontrol: (base) => (\r\n\t\t{\r\n\t\t\t...base,\r\n\t\t\theight: \"25px\",\r\n\t\t\t\"minHeight\": \"25px\",\r\n\t\t\t\"fontSize\": \"12px\",\r\n\t\t\t\"border\": \"1px solid rgb(233, 234, 236)\",\r\n\t\t\t\"borderRadius\": \"unset\",\r\n\t\t\t\"&:active\": {\r\n\t\t\t\t\"border\": \"1px solid rgb(233, 234, 236) !important\", boxShadow: \"unset !important\"\r\n\t\t\t},\r\n\t\t\t\"fontWeight\": \"400\"\r\n\t\t}),\r\n\tvalueContainer: (base) => (\r\n\t\t{\r\n\t\t\t...base,\r\n\t\t\theight: \"25px\",\r\n\t\t\t\"minHeight\": \"25px\",\r\n\t\t\t\"fontSize\": \"12px\",\r\n\t\t\t\"fontWeight\": \"400\",\r\n\r\n\t\t\t\"&:active\": {\r\n\t\t\t\tbackground: \"unset\",\r\n\t\t\t\t\"border\": \"1px solid rgb(233, 234, 236) !important\",\r\n\t\t\t\tboxShadow: \"unset !important\"\r\n\t\t\t}\r\n\t\t}),\r\n\tindicatorsContainer: (base) => (\r\n\t\t{\r\n\t\t\t...base,\r\n\t\t\theight: \"25px\",\r\n\t\t\t\"minHeight\": \"25px\",\r\n\t\t\t\"fontSize\": \"12px\",\r\n\t\t\t\"fontWeight\": \"400\",\r\n\t\t\t\"&:active\": {\r\n\t\t\t\t\"border\": \"1px solid rgb(233, 234, 236) !important\", boxShadow: \"unset !important\"\r\n\t\t\t}\r\n\t\t}),\r\n\toption: (base) => (\r\n\t\t{\r\n\t\t\t...base,\r\n\t\t\t\"fontSize\": \"12px\",\r\n\t\t\t\"fontWeight\": \"400\",\r\n\t\t\t\"&:active\": {\r\n\t\t\t\t\"border\": \"1px solid rgb(233, 234, 236) !important\", boxShadow: \"unset !important\"\r\n\t\t\t}\r\n\t\t}),\r\n\tcontainer: (base,) => ({\r\n\t\t...base\r\n\t})\r\n};\r\n\r\nclass GenericMultipleSelectInput extends Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tdata: [],\r\n\t\t\tisLoading: false\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { Method, Url, Parameter, IsStatic } = this.props;\r\n\r\n\t\tif (IsStatic) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tif (Method == \"GET\") {\r\n\t\t\tProxy.GET(Url, this.FetchDataCallback, this.ErrorCallback);\r\n\t\t}\r\n\t\telse if (Method == \"POST\") {\r\n\t\t\tProxy.POST(Url, Parameter, this.FetchDataCallback, this.ErrorCallback);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.ErrorCallback();\r\n\t\t}\r\n\t}\r\n\r\n\tHandleChange = (selected) => {\r\n\t\tconst { Name, ValueChanged, } = this.props;\r\n\r\n\t\tthis.setState({ selected });\r\n\t\tif (ValueChanged) {\r\n\t\t\tValueChanged(Name, selected);\r\n\t\t}\r\n\t}\r\n\r\n\tFetchDataCallback = (response) => {\r\n\t\tconst { DataRoot, Sorted, AfterFetchCallback } = this.props;\r\n\t\tvar data = response[DataRoot] || [];\r\n\r\n\t\tif (Sorted) {\r\n\t\t\tdata.sort((a, b) => {\r\n\t\t\t\tvar nameA = a[Sorted.Member];\r\n\t\t\t\tif (nameA && nameA.toUpperCase) {\r\n\t\t\t\t\tnameA = nameA.toUpperCase();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvar nameB = b[Sorted.Member];\r\n\t\t\t\tif (nameB && nameB.toUpperCase) {\r\n\t\t\t\t\tnameB = nameB.toUpperCase();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (nameA < nameB) {\r\n\t\t\t\t\treturn Sorted.Desc ? 1 : -1;\r\n\t\t\t\t}\r\n\t\t\t\tif (nameA > nameB) {\r\n\t\t\t\t\treturn Sorted.Desc ? -1 : 1;\r\n\t\t\t\t}\r\n\t\t\t\treturn 0;\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tthis.setState({ data, isLoading: false });\r\n\r\n\t\tif (AfterFetchCallback) {\r\n\t\t\tAfterFetchCallback(data);\r\n\t\t}\r\n\t}\r\n\r\n\tErrorCallback = () => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tGetStyles = () => {\r\n\t\tconst { Required, IsInvalid, Disabled } = this.props;\r\n\r\n\t\tvar borderColor = \"#e9eaec\";\r\n\t\tif (IsInvalid) {\r\n\t\t\tborderColor = window.InvalidFieldColor;\r\n\t\t}\r\n\t\telse if (Required) {\r\n\t\t\tborderColor = window.RequiredFieldColor;\r\n\t\t}\r\n\r\n\t\treturn {\r\n\t\t\tcontrol: (base) => (\r\n\t\t\t\t{\r\n\t\t\t\t\t...base,\r\n\t\t\t\t\twidth: 335,\r\n\t\t\t\t\theight: \"25px\",\r\n\t\t\t\t\tminHeight: \"25px\",\r\n\t\t\t\t\tfontSize: \"12px\",\r\n\t\t\t\t\tborder: `1px solid ${borderColor}`,\r\n\t\t\t\t\tborderRadius: \"unset\",\r\n\t\t\t\t\t\"&:active\": {\r\n\t\t\t\t\t\tborder: `1px solid ${borderColor} !important`,\r\n\t\t\t\t\t\tboxShadow: \"unset !important\"\r\n\t\t\t\t\t},\r\n\t\t\t\t\tfontWeight: \"400\"\r\n\t\t\t\t}),\r\n\t\t\tvalueContainer: (base) => (\r\n\t\t\t\t{\r\n\t\t\t\t\t...base,\r\n\t\t\t\t\theight: \"25px\",\r\n\t\t\t\t\tminHeight: \"25px\",\r\n\t\t\t\t\tfontSize: \"12px\",\r\n\t\t\t\t\tfontWeight: \"400\",\r\n\t\t\t\t\t\"&:active\": {\r\n\t\t\t\t\t\tbackground: \"unset\",\r\n\t\t\t\t\t\tborder: `1px solid ${borderColor} !important`,\r\n\t\t\t\t\t\tboxShadow: \"unset !important\",\r\n\t\t\t\t\t\tpadding: \"unset\"\r\n\t\t\t\t\t},\r\n\t\t\t\t\tpadding: \"unset\"\r\n\t\t\t\t}),\r\n\t\t\tindicatorsContainer: (base) => (\r\n\t\t\t\t{\r\n\t\t\t\t\t...base,\r\n\t\t\t\t\theight: \"25px\",\r\n\t\t\t\t\tminHeight: \"25px\",\r\n\t\t\t\t\tfontSize: \"12px\",\r\n\t\t\t\t\tfontWeight: \"400\",\r\n\t\t\t\t\t\"&:active\": {\r\n\t\t\t\t\t\tborder: `1px solid ${borderColor} !important`,\r\n\t\t\t\t\t\tboxShadow: \"unset !important\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}),\r\n\t\t\toption: (base) => (\r\n\t\t\t\t{\r\n\t\t\t\t\t...base,\r\n\t\t\t\t\tfontSize: \"12px\",\r\n\t\t\t\t\tfontWeight: \"400\",\r\n\t\t\t\t\t\"&:active\": {\r\n\t\t\t\t\t\tborder: `1px solid ${borderColor} !important`,\r\n\t\t\t\t\t\tboxShadow: \"unset !important\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}),\r\n\t\t\tcontainer: (base) => ({\r\n\t\t\t\t...base,\r\n\t\t\t}),\r\n\t\t\tmenu: (base) => ({\r\n\t\t\t\t...base,\r\n\t\t\t\tzIndex: \"50\"\r\n\t\t\t}),\r\n\t\t\tdropdownButton: (base, isOpen, width) => {\r\n\t\t\t\tlet style = base;\r\n\t\t\t\tif (Disabled) {\r\n\t\t\t\t\tstyle = {\r\n\t\t\t\t\t\t...style,\r\n\t\t\t\t\t\topacity: \"0.7 !important\",\r\n\t\t\t\t\t\t\"&:before\": {\r\n\t\t\t\t\t\t\tborderColor: \"transparent !important\",\r\n\t\t\t\t\t\t\tborderBottom: \"unset\"\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t};\r\n\t\t\t\t}\r\n\t\t\t\treturn style;\r\n\t\t\t}\r\n\t\t};\r\n\t}\r\n\tMap(data) {\r\n\t\tif (data == null || data.length == 0)\r\n\t\t\treturn;\r\n\r\n\t\tconst { KeyValueMember, TextValueMember, RenderItem } = this.props;\r\n\t\tvar returnData = data.map(d => {\r\n\t\t\treturn { value: d[KeyValueMember], label: RenderItem ? RenderItem(d) : d[TextValueMember], isDisabled: d.isDisabled };\r\n\t\t});\r\n\r\n\t\treturn returnData;\r\n\t}\r\n\r\n\tHandleMenu = (isOpen) => () => {\r\n\t\tconst { Name, HandleChangeMenu } = this.props;\r\n\t\tif (HandleChangeMenu) {\r\n\t\t\tHandleChangeMenu(Name, isOpen);\r\n\t\t}\r\n\r\n\t}\r\n\trender() {\r\n\t\tconst { classes, LabelText, Name, Disabled, StaticData, LabelMd, TitleLabel, LabelStyle, SelectStyle, HandleChange, DisableGroup, Selected } = this.props;\r\n\t\tconst { data } = this.state;\r\n\r\n\t\tvar lastData = this.Map(StaticData || data) || [];\r\n\t\tconst formatGroupLabel = () => (\r\n\t\t\t
\r\n\t\t\t\t{(TitleLabel == null || TitleLabel == \"\") ? LabelText : TitleLabel}\r\n\t\t\t
\r\n\t\t);\r\n\r\n\t\tconst groupedOptions = (DisableGroup ?\r\n\t\t\tthis.Map(StaticData || data) :\r\n\t\t\t[\r\n\t\t\t\t{\r\n\t\t\t\t\tlabel: (TitleLabel == null || TitleLabel == \"\") ? LabelText : TitleLabel,\r\n\t\t\t\t\toptions: this.Map(StaticData || data),\r\n\t\t\t\t}\r\n\t\t\t]\r\n\t\t);\r\n\r\n\r\n\t\tvar titleLabel = TitleLabel ? TitleLabel : \"Select One\";\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tLabelText != undefined && LabelText != \"\" &&\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{LabelText}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t 0 ? groupedOptions : lastData}\r\n\t\t\t\t\t\t\t\tvalue={Selected || this.state.selected}\r\n\t\t\t\t\t\t\t\tonChange={(e, targetChild) => {\r\n\t\t\t\t\t\t\t\t\tif (HandleChange != null || undefined) {\r\n\t\t\t\t\t\t\t\t\t\tHandleChange(Name, e, targetChild);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\ttheme={(theme) => ({\r\n\t\t\t\t\t\t\t\t\t...theme,\r\n\t\t\t\t\t\t\t\t\tborderRadius: 0,\r\n\t\t\t\t\t\t\t\t\tcolors: {\r\n\t\t\t\t\t\t\t\t\t\t...theme.colors,\r\n\t\t\t\t\t\t\t\t\t\tprimary: \"black\",\r\n\t\t\t\t\t\t\t\t\t\tprimary25: \"rgb(246, 246, 246)\",\r\n\t\t\t\t\t\t\t\t\t\tprimary50: \"rgb(246, 246, 246)\",\r\n\t\t\t\t\t\t\t\t\t\tprimary75: \"rgb(246, 246, 246)\"\r\n\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nGenericMultipleSelectInput.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tHandleChange: PropTypes.any,\r\n\tValueChanged: PropTypes.any,\r\n\tValue: PropTypes.any,\r\n\tName: PropTypes.string,\r\n\tLabelText: PropTypes.string,\r\n\tKeyValueMember: PropTypes.string,\r\n\tTextValueMember: PropTypes.string,\r\n\tMethod: PropTypes.string,\r\n\tUrl: PropTypes.string,\r\n\tParameter: PropTypes.object,\r\n\tDataRoot: PropTypes.string,\r\n\tIsStatic: PropTypes.bool,\r\n\tStaticData: PropTypes.array,\r\n\tDisabled: PropTypes.bool,\r\n\tDefaultIndex: PropTypes.number,\r\n\tSorted: PropTypes.object,\r\n\tAfterFetchCallback: PropTypes.any,\r\n\tSelected: PropTypes.array,\r\n\tRenderItem: PropTypes.func,\r\n\tAll: PropTypes.bool,\r\n\tLabelMd: PropTypes.number,\r\n\tTitleLabel: PropTypes.string,\r\n\tLabelStyle: PropTypes.object,\r\n\tSelectStyle: PropTypes.object,\r\n\tDisableGroup: PropTypes.bool,\r\n\tHandleChangeMenu: PropTypes.func\r\n};\r\n\r\nexport default withArtifex(GenericMultipleSelectInput, genericMultipleSelectInputStyle);\r\n","import { Proxy } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport { GenericAlert } from \"views/Components/Generic\";\r\n\r\nclass GenericPage extends Component {\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.setState({\r\n\t\t\tIsLoading: false,\r\n\t\t\tAlert: null\r\n\t\t});\r\n\t\tthis.Bind(this);\r\n\t}\r\n\r\n\tBind(target) {\r\n\t\tvar protoType = Reflect.getPrototypeOf(target);\r\n\t\tvar methods = Reflect.ownKeys(protoType);\r\n\t\tmethods.forEach(element => {\r\n\t\t\tconst descriptor = Reflect.getOwnPropertyDescriptor(protoType, element);\r\n\t\t\tif (descriptor && typeof descriptor.value === \"function\") {\r\n\t\t\t\ttarget[element] = target[element].bind(target);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tthis.HideAlert = this.HideAlert.bind(this);\r\n\t\tthis.ShowLoadingSync = this.ShowLoadingSync.bind(this);\r\n\t\tthis.HideLoadingSync = this.HideLoadingSync.bind(this);\r\n\t\tthis.ShowGenericMessage = this.ShowGenericMessage.bind(this);\r\n\t\tthis.ExecutePostRequest = this.ExecutePostRequest.bind(this);\r\n\t\tthis.ExecuteDownloadRequest = this.ExecuteDownloadRequest.bind(this);\r\n\t\tthis.ExecuteUploadRequest = this.ExecuteUploadRequest.bind(this);\r\n\t\tthis.ExecuteGetRequest = this.ExecuteGetRequest.bind(this);\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn (
);\r\n\t}\r\n\r\n\tHideAlert(func = null) {\r\n\t\tthis.setState({ Alert: null, IsLoading: false }, func);\r\n\t}\r\n\r\n\tShowLoadingSync(func = null) {\r\n\t\tthis.setState({ IsLoading: true }, func);\r\n\t}\r\n\r\n\tHideLoadingSync(func = null) {\r\n\t\tthis.setState({ IsLoading: false }, func);\r\n\t}\r\n\r\n\tShowGenericMessage(type, title, message, showCancel = false, onConfirm = null, onCancel = null, func = null) {\r\n\t\tvar alert = ( { this.HideAlert(onConfirm); }} />);\r\n\t\tthis.setState({ Alert: alert }, func);\r\n\t}\r\n\r\n\tExecutePostRequest(url, body, success, fail) {\r\n\t\tthis.ShowLoadingSync(() => {\r\n\t\t\tProxy.POST(url, body,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tthis.HideLoadingSync(() => {\r\n\t\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\t\tthis.ShowGenericMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\t\tif (fail) fail(responseData);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (success) success(responseData);\r\n\t\t\t\t\t});\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\t\t\t\t\tthis.HideLoadingSync(() => {\r\n\t\t\t\t\t\tthis.ShowGenericMessage(\"error\", \"Error\", error);\r\n\t\t\t\t\t\tif (fail) fail(null);\r\n\t\t\t\t\t});\r\n\t\t\t\t});\r\n\t\t});\r\n\t}\r\n\r\n\tExecuteDownloadRequest(url, name, extension, body, success, fail) {\r\n\t\tthis.ShowLoadingSync(() => {\r\n\t\t\tProxy.FileDownload(url, name, extension, body,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tthis.HideLoadingSync(() => {\r\n\t\t\t\t\t\tif (success) success(responseData);\r\n\t\t\t\t\t});\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\t\t\t\t\tthis.HideLoadingSync(() => {\r\n\t\t\t\t\t\tthis.ShowGenericMessage(\"error\", \"Error\", error);\r\n\t\t\t\t\t\tif (fail) fail(null);\r\n\t\t\t\t\t});\r\n\t\t\t\t});\r\n\t\t});\r\n\t}\r\n\r\n\tExecuteUploadRequest(url, formData, success, fail) {\r\n\t\tthis.ShowLoadingSync(() => {\r\n\t\t\tProxy.FileUpload(url, formData,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tthis.HideLoadingSync(() => {\r\n\t\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\t\tthis.ShowGenericMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\t\tif (fail) fail(responseData);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (success) success(responseData);\r\n\t\t\t\t\t});\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\t\t\t\t\tthis.HideLoadingSync(() => {\r\n\t\t\t\t\t\tthis.ShowGenericMessage(\"error\", \"Error\", error);\r\n\t\t\t\t\t\tif (fail) fail(null);\r\n\t\t\t\t\t});\r\n\t\t\t\t});\r\n\t\t});\r\n\t}\r\n\r\n\tExecuteGetRequest(url, success, fail) {\r\n\t\tthis.ShowLoadingSync(() => {\r\n\t\t\tProxy.GET(url,\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tthis.HideLoadingSync(() => {\r\n\t\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\t\tthis.ShowGenericMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\t\tif (fail) fail(responseData);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (success) success(responseData);\r\n\t\t\t\t\t});\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\t\t\t\t\tthis.HideLoadingSync(() => {\r\n\t\t\t\t\t\tthis.ShowGenericMessage(\"error\", \"Error\", error);\r\n\t\t\t\t\t\tif (fail) fail(null);\r\n\t\t\t\t\t});\r\n\t\t\t\t});\r\n\t\t});\r\n\t}\r\n}\r\n\r\nGenericPage.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool,\r\n\tValueChanged: PropTypes.func,\r\n\tModel: PropTypes.object\r\n};\r\n\r\nexport default GenericPage;","import { withStyles } from \"@material-ui/core\";\r\nimport genericNumberInputStyle from \"assets/jss/generic/genericNumberInputStyle.jsx\";\r\nimport CustomInput from \"components/CustomInput/CustomInput.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport TextInput from \"react-autocomplete-input\";\r\n\r\nclass GenericTextAutoInput extends React.PureComponent {\r\n\trender() {\r\n\t\tconst { LabelText, Name, Value, ValueChanged, Disabled,\r\n\t\t\tBlur, LabelMd, inputProps, LabelStyle, AutoCompleteDisable, MaxOptions,\r\n\t\t\tOptions, Regex, RequestOnlyIfNoOptions, SpaceRemovers, Spacer, Trigger, OnRequestOptions, Required, IsInvalid } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t {\r\n\t\t\t\t\t\tif (ValueChanged)\r\n\t\t\t\t\t\t\tValueChanged(Name, e);\r\n\t\t\t\t\t},\r\n\t\t\t\t\tdisabled: Disabled,\r\n\t\t\t\t\tinputComponent: TextInput,\r\n\t\t\t\t\tinputProps: {\r\n\t\t\t\t\t\tdisabled: AutoCompleteDisable,\r\n\t\t\t\t\t\toptions: Options,\r\n\t\t\t\t\t\tmaxOptions: MaxOptions,\r\n\t\t\t\t\t\tregex: Regex,\r\n\t\t\t\t\t\trequestOnlyIfNoOptions: RequestOnlyIfNoOptions,\r\n\t\t\t\t\t\tspaceRemovers: SpaceRemovers,\r\n\t\t\t\t\t\tspacer: Spacer,\r\n\t\t\t\t\t\ttrigger: Trigger,\r\n\t\t\t\t\t\tonRequestOptions: OnRequestOptions\r\n\t\t\t\t\t},\r\n\t\t\t\t\tonBlur: Blur\r\n\t\t\t\t}}\r\n\t\t\t/>\r\n\t\t);\r\n\t}\r\n}\r\n\r\nGenericTextAutoInput.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tValueChanged: PropTypes.func,\r\n\tValue: PropTypes.oneOfType([\r\n\t\tPropTypes.string,\r\n\t\tPropTypes.number\r\n\t]),\r\n\tLabelText: PropTypes.string,\r\n\tName: PropTypes.string,\r\n\tDisabled: PropTypes.bool,\r\n\tAutoFocus: PropTypes.bool,\r\n\tKeyPressed: PropTypes.func,\r\n\tKeyDown: PropTypes.func,\r\n\tKeyUp: PropTypes.func,\r\n\tBlur: PropTypes.func,\r\n\tLabelMd: PropTypes.number,\r\n\tinputProps: PropTypes.object,\r\n\tLabelStyle: PropTypes.object,\r\n\tAutoCompleteDisable: PropTypes.bool,\r\n\tRegex: PropTypes.string,\r\n\tRequestOnlyIfNoOptions: PropTypes.bool,\r\n\tSpaceRemovers: PropTypes.any,\r\n\tSpacer: PropTypes.string,\r\n\tTrigger: PropTypes.string,\r\n\tMaxOptions: PropTypes.number,\r\n\tOptions: PropTypes.array,\r\n\tOnRequestOptions: PropTypes.func,\r\n\tRequired: PropTypes.bool,\r\n\tIsInvalid: PropTypes.bool\r\n};\r\n\r\nGenericTextAutoInput.defaultProps = {\r\n\tAutoCompleteDisable: false,\r\n\tRegex: \"^[a-zA-Z0-9_\\\\-]+$\",\r\n\tRequestOnlyIfNoOptions: true,\r\n\tSpaceRemovers: \"[',', '.', '?', '!']\",\r\n\tSpacer: \" \",\r\n\tTrigger: \"@\"\r\n};\r\n\r\nexport default withStyles(genericNumberInputStyle)(GenericTextAutoInput);","import Grid from \"@material-ui/core/Grid\";\r\nimport withStyles from \"@material-ui/core/styles/withStyles\";\r\nimport React from \"react\";\r\n\r\nconst style = {\r\n\tgrid: {\r\n\t\t// margin: \"0 -15px\",\r\n\t\tmargin: \"0 -5px\",\r\n\t\twidth: \"calc(100% + 10px)\"\r\n\t\t// '&:before,&:after':{\r\n\t\t// display: 'table',\r\n\t\t// content: '\" \"',\r\n\t\t// },\r\n\t\t// '&:after':{\r\n\t\t// clear: 'both',\r\n\t\t// }\r\n\t}\r\n};\r\n\r\nfunction GridContainer({ ...props }) {\r\n\tconst { classes, children, className, ...rest } = props;\r\n\treturn (\r\n\t\t\r\n\t\t\t{children}\r\n\t\t\r\n\t);\r\n}\r\n\r\nexport default withStyles(style)(GridContainer);\r\n","import React, { Component } from \"react\";\r\n\r\nclass GenericTitle extends Component {\r\n\trender() {\r\n\t\tconst { text, TextAlign } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t

\r\n\t\t\t\t{text || \"\"}\r\n\t\t\t

\r\n\t\t);\r\n\t}\r\n}\r\n\r\nexport default GenericTitle;","import React from \"react\";\r\nimport { withScriptjs, withGoogleMap, GoogleMap } from \"react-google-maps\";\r\n\r\nconst loadingPlaceholder=
;\r\nconst containerPlaceholder=
;\r\nconst MapHoc = withScriptjs(\r\n\twithGoogleMap(props => {\r\n\t\tconst { MapContainerRef, children, ...others } = props;\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t{children}\r\n\t\t\t\r\n\t\t);\r\n\t}));\r\n\r\nconst GenericMapContainer = (props) => {\r\n\r\n\tconst { ApiKey, ...others } = props;\r\n\treturn (\r\n\t\t);\r\n};\r\n\r\n\r\nexport default GenericMapContainer;","import PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport { InfoWindow, Marker } from \"react-google-maps\";\r\n\r\nclass GenericMapMarker extends React.PureComponent {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { MarkerRef, PopupComponent, HidePopup, OpenPopup, infoWindowProps, ...other } = this.props;\r\n\r\n\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t{PopupComponent && OpenPopup ? (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{typeof PopupComponent === \"function\" ? PopupComponent(this.props) : PopupComponent}\r\n\t\t\t\t\t\r\n\t\t\t\t) : null}\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nGenericMapMarker.propTypes = {\r\n\tHidePopup: PropTypes.any,\r\n\tMarkerRef: PropTypes.any,\r\n\tOpenPopup: PropTypes.any,\r\n\tPopupComponent: PropTypes.any,\r\n\tkey: PropTypes.any,\r\n\tposition: PropTypes.any\r\n};\r\n\r\nexport default GenericMapMarker;\r\n","import React from \"react\";\r\nimport { withStyles } from \"@material-ui/core\";\r\nimport genericMapSearchboxStyle from \"assets/jss/generic/genericMapSearchboxStyle.jsx\";\r\nconst { compose, withProps } = require(\"recompose\");\r\nconst { withScriptjs } = require(\"react-google-maps\");\r\nconst { StandaloneSearchBox } = require(\"react-google-maps/lib/components/places/StandaloneSearchBox\");\r\n\r\nconst loadingPlaceholder =
;\r\nconst containerPlaceholder =
;\r\n\r\nconst GenericMapSearchboxHoc =\r\n\tcompose(\r\n\t\tReact.memo,\r\n\t\twithScriptjs\r\n\t)((props) => {\r\n\r\n\t\tconst { MapSearchboxRef, inputProps, classes, ...otherProps } = props;\r\n\r\n\t\treturn (
\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t
);\r\n\t});\r\n\r\n\r\nconst GenericMapSearchbox = (props) => {\r\n\r\n\tconst { ApiKey } = props;\r\n\treturn (\r\n\t\t);\r\n};\r\nexport default withStyles(genericMapSearchboxStyle)(GenericMapSearchbox);\r\n","import PropTypes from \"prop-types\";\r\nimport React, { PureComponent } from \"react\";\r\nimport Camera, { FACING_MODES, IMAGE_TYPES } from \"react-html5-camera-photo\";\r\nimport \"react-html5-camera-photo/build/css/index.css\";\r\nclass GenericCamera extends PureComponent {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.stream = null;\r\n\t\tthis.tempImg = null;\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\twindow.addEventListener(\"orientationchange\", this.handleOrientationChange);\r\n\t}\r\n\tcomponentWillUnmount() {\r\n\t\twindow.removeEventListener(\"orientationchange\", this.handleOrientationChange);\r\n\t}\r\n\r\n\thandleOrientationChange = () => {\r\n\t\tthis.props.Open && this.injectOverlay(0);\r\n\t}\r\n\tcomponentDidUpdate(prevProps, prevState) {\r\n\t\tconst { Open } = this.props;\r\n\r\n\t\tif (prevProps.Open != Open && !Open) {\r\n\t\t\tthis.closeStream();\r\n\t\t}\r\n\t}\r\n\tgetVideoElement = () => {\r\n\t\treturn document.getElementsByTagName(\"video\")[0];\r\n\t}\r\n\tgetVideoContainer = () => {\r\n\t\treturn document.getElementsByClassName(\"react-html5-camera-photo\")[0];\r\n\t}\r\n\r\n\tinjectOverlay = async (frameCount = 4) => {\r\n\t\tif (!this.props.OverlayImage) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tvar video = this.getVideoElement();\r\n\t\tthis.progressCount = 0;\r\n\r\n\t\tvar layerTrigger = (e) => {\r\n\t\t\tif (this.progressCount === frameCount) {\r\n\t\t\t\tvideo && video.removeEventListener(\"progress\", layerTrigger);\r\n\t\t\t\tthis.doInject();\r\n\t\t\t}\r\n\t\t\tthis.progressCount += 1;\r\n\t\t};\r\n\t\tvideo && video.addEventListener(\"progress\", layerTrigger, true);\r\n\t}\r\n\tdoInject = () => {\r\n\t\tconst { OverlayImage, OverlayRatio } = this.props;\r\n\t\tvar imgRatio = OverlayRatio;\r\n\t\tvar img = document.createElement(\"img\");\r\n\t\timg.src = OverlayImage;\r\n\r\n\t\tvar video = this.getVideoElement();\r\n\t\tvar container = this.getVideoContainer();\r\n\t\tif(!video ||!container){\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tvar width = video.clientWidth * imgRatio;\r\n\t\tvar margin = video.clientWidth * (1 - imgRatio) / 2;\r\n\t\tvar height = video.clientHeight;\r\n\t\timg.style = `width:${width}px; position:absolute; background-position:center; margin:0px ${margin}px; opacity: 0;transition: opacity 0.5s ease-in-out;`;\r\n\r\n\r\n\t\tcontainer.insertBefore(img, container.firstChild);\r\n\t\tvar rearrange = () => {\r\n\t\t\tvar marginTop = (height - img.clientHeight) / 2;\r\n\t\t\timg.style = img.getAttribute(\"style\") + `;padding-top: ${marginTop}px; opacity: 1;`;\r\n\t\t\tif (this.tempImg) {\r\n\t\t\t\tthis.tempImg.parentNode && this.tempImg.parentNode.removeChild(this.tempImg);\r\n\t\t\t}\r\n\t\t\tthis.tempImg = img;\r\n\r\n\t\t};\r\n\t\timg.onload = () => {\r\n\t\t\trearrange();\r\n\t\t};\r\n\t}\r\n\tcloseStream = () => {\r\n\t\tthis.stream && this.stream.getTracks().forEach(function (track) {\r\n\t\t\ttrack.stop();\r\n\t\t});\r\n\t}\r\n\tCustomOnCameraStart = (stream) => {\r\n\t\tthis.stream = stream;\r\n\t\tconst { OnCameraStart, ImageType } = this.props;\r\n\t\tif (typeof OnCameraStart === \"function\") {\r\n\t\t\tvar track = stream.getTracks()[0];\r\n\t\t\tlet cameraLabel = \"Webcam.png\";\r\n\t\t\tif (track && track.label) {\r\n\t\t\t\tcameraLabel = track.label.replace(/\\s/g, \"_\").replace(/,/g, \"-\") + \".\" + ImageType;\r\n\t\t\t}\r\n\t\t\tOnCameraStart(stream, cameraLabel);\r\n\t\t\tthis.injectOverlay();\r\n\t\t}\r\n\r\n\t}\r\n\tCustomOnTakePhoto = (dataUri) => {\r\n\t\tconst { OnTakePhoto } = this.props;\r\n\t\tvar base64 = dataUri.split(\",\").pop();\r\n\r\n\t\tif (OnTakePhoto) {\r\n\t\t\tOnTakePhoto(dataUri, base64);\r\n\t\t}\r\n\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { IdealResolution, OnCameraStop, IsImageMirror, OnCameraError, IdealFacingMode, ImageCompression, IsMaxResolution, IsSilentMode, IsDisplayStartCameraError, SizeFactor, ...rest } = this.props;\r\n\t\tvar facingModes = IdealFacingMode == \"back\" ? FACING_MODES.ENVIRONMENT : FACING_MODES.USER;\r\n\t\tvar imageType = IdealFacingMode == \"jpg\" ? IMAGE_TYPES.JPG : IMAGE_TYPES.PNG;\r\n\t\treturn (\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\nGenericCamera.defaultProps = {\r\n\tIsImageMirror: false,\r\n\tIdealFacingMode: \"front\",\r\n\tImageType: \"jpg\",\r\n\tImageCompression: 0.92,\r\n\tIsDisplayStartCameraError: false,\r\n\tIsMaxResolution: true,\r\n\tIsSilentMode: true,\r\n\tOnCameraError: PropTypes.func,\r\n\tOnTakePhoto: PropTypes.func,\r\n\tSizeFactor: 1,\r\n\tclassName: PropTypes.any,\r\n\tOverlayRatio: 0.95\r\n};\r\n\r\nGenericCamera.propTypes = {\r\n\tIdealResolution: PropTypes.shape({\r\n\t\twidth: PropTypes.number,\r\n\t\theight: PropTypes.number\r\n\t}),\r\n\tOverlayImage: PropTypes.any,\r\n\tOverlayRatio: PropTypes.number,\r\n\tOnCameraStart: PropTypes.func,\r\n\tOpen: PropTypes.bool,\r\n\tOnCameraStop: PropTypes.func,\r\n\tIsImageMirror: PropTypes.bool,\r\n\tIdealFacingMode: PropTypes.oneOf([\"front\", \"back\"]),\r\n\tImageType: PropTypes.oneOf([\"jpg\", \"png\"]),\r\n\tImageCompression: PropTypes.any,\r\n\tIsDisplayStartCameraError: PropTypes.any,\r\n\tIsMaxResolution: PropTypes.any,\r\n\tIsSilentMode: PropTypes.any,\r\n\tOnCameraError: PropTypes.any,\r\n\tOnTakePhoto: PropTypes.any,\r\n\tSizeFactor: PropTypes.any,\r\n\tclassName: PropTypes.any\r\n};\r\n\r\nexport default GenericCamera;","import PropTypes from \"prop-types\";\r\nimport \"assets/scss/generic/genericFlipContainer.css\";\r\n\r\nimport React, { PureComponent } from \"react\";\r\n\r\nexport default class GenericFlipContainer extends PureComponent {\r\n\trender() {\r\n\t\tconst { Front, Back, children } = this.props;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{children}\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{Back}\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{Front}\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nGenericFlipContainer.propTypes = {\r\n\tBack: PropTypes.any,\r\n\tFront: PropTypes.any\r\n};\r\n","import Step from '@material-ui/core/Step';\r\nimport StepLabel from '@material-ui/core/StepLabel';\r\nimport Stepper from '@material-ui/core/Stepper';\r\nimport PropTypes from \"prop-types\";\r\nimport React from 'react';\r\n\r\nexport default class GenericStepper extends React.PureComponent {\r\n\trender() {\r\n\t\tconst { Steps, ActiveStep, ...rest } = this.props;\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t{Steps.map((item) => {\r\n\t\t\t\t\tconst { StepProps, StepLabelProps, Label } = item;\r\n\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Label}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t);\r\n\t\t\t\t})}\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\nGenericStepper.propTypes = {\r\n\tActiveStep: PropTypes.number.isRequired,\r\n\tSteps: PropTypes.arrayOf(\r\n\t\tPropTypes.shape(\r\n\t\t\t{\r\n\t\t\t\tLabel: PropTypes.string.isRequired,\r\n\t\t\t\tStepProps: PropTypes.object,\r\n\t\t\t\tStepLabelProps: PropTypes.object\r\n\t\t\t})\r\n\t).isRequired\r\n}\r\n","import { withStyles } from \"@material-ui/core\";\r\nimport genericVerificationComponentStyle from \"assets/jss/generic/genericVerificationComponentStyle.jsx\";\r\nimport cx from \"classnames\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from 'react';\r\nimport { GenericIcon, GenericLabel } from \"views/Components/Generic\";\r\nimport GridItem from \"components/Grid/GridItem\";\r\n\r\nclass GenericVerificationComponent extends Component {\r\n\tgetIcon = (status) => {\r\n\r\n\t\tif (status === \"success\") {\r\n\t\t\treturn \"fa-check-circle\";\r\n\t\t}\r\n\t\telse if (status === \"error\") {\r\n\t\t\treturn \"fa-times-circle\";\r\n\t\t}\r\n\t\telse if (status === \"warning\") {\r\n\t\t\treturn \"fa-exclamation-circle\";\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn \"fa-ban\";\r\n\t\t}\r\n\t}\r\n\trender() {\r\n\t\tconst { Status, Label, classes } = this.props;\r\n\t\tvar statusStr = this.getIcon(Status);\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{statusStr}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\r\n\t\t);\r\n\r\n\t}\r\n}\r\n\r\nGenericVerificationComponent.propTypes = {\r\n\tLabel: PropTypes.string,\r\n\tStatus: PropTypes.oneOfType([\r\n\t\tPropTypes.bool,\r\n\t\tPropTypes.oneOf([\"error\", \"success\", \"empty\", \"warning\"])\r\n\t])\r\n};\r\n\r\nexport default withStyles(genericVerificationComponentStyle)(GenericVerificationComponent);","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABcAAAAXCAMAAADX9CSSAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAANhQTFRFAAAARYD/RYD/RYD/RYD/VYr9YpP91OH87/T+////8PT99vn+9fj+cJ37dJ/79vj9+/z+gKf7e6T6+vv+/f7/iq76f6b7/v7/or/6RoD/aZj78PX9zdz7ztz7rsf6SIL+Y5P86e/98fX8W478U4n9wtT7w9X7TIT+V4z93uf8uM36S4T+UIf+v9L7z938Vov9UYf+zNv7ydn6UYj9RoH/vND62uX8Wo790+D7UIf9SYL+qsT6XpD8SYP+q8X64ur8VIn9R4H/pL/73uj8W479lbX7+fr+5+78Rdz8HQAAAEh0Uk5TAH7L1f//////////////////////////////////////////////////////////////////////////////////////////TJZ2eQAAAKVJREFUeJxjYGBkYkYHTIwMDIwsrGzogJWFkYGJlZ0DHbCzMjEws3FwogMONmbixbm4sYrz8PLxYxEXEGQREsYUFxFlEePBNEdcQlJKGmGvjCxUXE5eQRHhHiVlFVVxkGo1dQ1NZHdqaevoArl6+gaGqO43MjYxF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rmAS7yCa4ZlPAp3/FvgvQHw4S13hwxEudPfy6Py8PgkFtWz/8XLSSD4+iYWoN5DH5/4FQ5/Q3Ionx+RCAZSgIsvhJofKQDq9y8B/gGO10VWJLP0qgAAAABJRU5ErkJggg==\"","\r\nclass TaskPool {\r\n\r\n\tconstructor(AppendTask, TasksCompleted) {\r\n\t\tthis.openConsoleLog = false;\r\n\t\tthis.pool = [];\r\n\t\tthis.taskCount = 0;\r\n\t\tthis.allTaskStatus = true;\r\n\t\tthis.handleDoneTask = TasksCompleted;\r\n\t\tthis.handleAppendTask = AppendTask;\r\n\t}\r\n\r\n\tSetBusy=()=>{\r\n\t\tif (this.handleAppendTask){\r\n\t\t\tthis.handleAppendTask(Promise.resolve(),false);\r\n\t\t}\r\n\t}\r\n\tSetDone=()=>{\r\n\t\tif (this.handleDoneTask){\r\n\t\t\tthis.handleDoneTask(Promise.resolve());\r\n\t\t}\r\n\t}\r\n\r\n\tAppendTask = (promise) => {\r\n\t\tif (!promise) return;\r\n\r\n\t\tconst chars = [...\"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\"];\r\n\t\tconst rand = Math.random();\r\n\t\tvar rnd = [...Array(16)].map(i => chars[rand * chars.length | 0]).join(\"\");\r\n\t\tvar item = {};\r\n\t\titem[rnd] = promise;\r\n\t\tthis.pool.push(item);\r\n\r\n\t\tif (this.handleAppendTask) {\r\n\r\n\t\t\tthis.openConsoleLog && console.log(\"Total Pending Tasks:\" + this.pool.length + \" Task Added KEY:\" + rnd);\r\n\t\t\tlet isRunningAnyTask = this.pool.length > 0;\r\n\t\t\tif (this.allTaskStatus)\r\n\t\t\t\tthis.taskCount = 0;\r\n\t\t\tthis.taskCount++;\r\n\t\t\tthis.allTaskStatus = false;\r\n\t\t\tthis.handleAppendTask(promise, isRunningAnyTask);\r\n\t\t}\r\n\t\tpromise.finally(() => {\r\n\r\n\t\t\tif (this.pool && this.pool.length > 0) {\r\n\t\t\t\tthis.pool = this.pool.filter((value) => {\r\n\t\t\t\t\treturn Object.keys(value)[0] != rnd;\r\n\t\t\t\t});\r\n\t\t\t\tthis.openConsoleLog && console.log(\"Total Pending Tasks:\" + this.pool.length + \" Task Competed! KEY:\" + rnd);\r\n\t\t\t}\r\n\r\n\t\t\tif (this.pool && this.pool.length == 0) {\r\n\t\t\t\tthis.openConsoleLog && console.log(\"All Tasks Finished!\");\r\n\t\t\t\tif (this.handleDoneTask) {\r\n\t\t\t\t\tthis.handleDoneTask(promise);\r\n\t\t\t\t\tthis.allTaskStatus = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n}\r\n\r\nexport { TaskPool };","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAMAAADzN3VRAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAdRQTFRF////3un/pcL/qcT/5e7/1+T/XI//R4H+RoH+a5r/6O///v//3ej/nr3/iq//s8v95ez9YJL+TYX+p8L7krP7RoD/rsj/uM//SoP/SIL+U4n9VIn9fqb87vP9XZD8uM37n7z74+z/WI3/VYv9z9377/P97PL8bJr7RoH/psH7/v7/vND6SYL+ZJX/6/L/r8n/RYD/rMb7+Pr+gaf7kLL7/P3+wdP7T4b+1uP/osD/x9j9+vv+lLX7e6T6+/z+1+P7SYP+0N78or///P3/mbj7dqH7+fv+3ef8VIr9T4b9yNn7pcH7SoP+apj88vX97PH9WY39wdT7tMv7x9j8ssn7a5n85u396e/9ZJT8tcv78/b6XpH9d6L/+fv/v9P7UIf+UYj90d/87/T9c578+/z/8vX6XpD9dqH/+Pv/9vn9UIf9g6r7jrH7/f7+w9X7p8H5b5v8h6z7fKT6rsb5apj7dqD77fL9Uoj9TIX+hqv78vb99vj+aZf7TIX9m7n64er8o8D/xdf89/n98PT6XZD9s8v/0d/7Tob+iK7/Y5T/T4f+qcP7zdz8zt38ztz8u8/7YZP9ydr/YZP/S4P+TIT+S4T+U4n/ob//6fD/m7v/mr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ORw0KGgoAAAANSUhEUgAAABkAAAAZCAMAAADzN3VRAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAJNQTFRF/////P3/1uP/wdX/q8b/S4T/RYD/Tob+ZZX90+D96PD/hav8cp787/T9ssr/wtX8U4n+8/f+wdT8TYX+daD89/n+8PT+y9v8S4T+bJr8aZj9xtf8b5z9UYj9ytr8apn88PX90d78nrv66/H9ZZX8TIX98fX9ytr6Uoj+y9v7T4b+dKD88vb92uX87/T+fKX9fKX81hAAWAAAALxJREFUeJytkV8XQkAQxS9plmwKWymkf6xQ+v6frug4tUpP3Zd5+J177swd4K/S9NE36RqMMX3T2AAj05r0ZZnEQDbj017ClDObQM5szl0FuHw+cxoCzxeLN7AUvocnwSpYv1zuJlihIwiDqENuFId4EWzjZNeCXRLv8U5wIHF8jKOgA6B6TqnIkIn0pHqaHJmLs8ilmvPcTRZUSHU3zy/be6pL1Yxr2d0z2EHNbh+93VhNP7oe/s/wT/+qO7tkETO4lhdSAAAAAElFTkSuQmCC\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAMAAADzN3VRAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAhNQTFRF/v//r8n/YpP9YJL/X5L+c5/+8/f/////7fP/cp778PX+pL/42uX7+/z/+fv+uM77nr3/5O3/aZf9m7r8jrH4lrf6nrz89vj9xNb8jrH6g6r/daD9kbL6l7b6vtL8kbP7f6b5jrH5apj7u9D8r8f7hqv6mrn4jrH9aJb6rcb79/n+1eH84ur8daD8mLb1xdb7+fr+3+n9wdP44er7zt38scn8us/84+v98PX/6O/9bZr7h6v7us/6qMP7Z5b7ssn7/f3/5+78m7v+c5//rsj/+/3/+/z+bpv60t/86fD9fqX5uM35e6T7v9L88vb+8/b/Zpb/hKn3iK7+8vb/y9v8h6z8c575YpL6eaL4zt37hqv7dJ/6bpv7cJ37Zpb68/b8s8r7bpv95e7/sMj8kbL2orz1k7T5U4j7fKX62OP7o771faX7+vv8cJz7xtf7W4/+krP66/D9apj6b5v4vdH80+D6gKf7/v7+aZj7nLv/osD/pcL+2uX9gKf8scr//P3/7PH9aZf78PX9uc77V4v76vD9ob77o7/7ydr8uc/+uc//W4//us73d6H9yNn/wtT8b5v7ztz82eT83+j8fKX78/f9zt39aZj/dKD+5u7/3Of8b5z7+Pr+z97/+Pr/krL28/b9w9X6pL70har4oLz32uT6dZ/4rsb2Y5T8g6n5i676iKz6gKf4gaj83ef8xdb6n73/0K0NyQAAAT9JREFUeJxjYGBkYkYAFlY2dihg4ODk4ubhhQE+fgG4jKCQsIiosJg4O7uEMBBISiFkpGVk5eTkFRQVlZTlVFTVkGTUNTTZ2bW0tbV12Nl1dPWQZfQN2OHA0AhZhh0ZGKPLaJmYmpnDZCwYEDKWVtY2tnb2Duzsjk7s7M4urjAZN3cPTy9vLR9fdi0/fza2gMCgYKhMSChDWHhEpHYUe3RMbGxsXHxCYhJEJjklNS09IzMrOyfXD2J9Xr4FWEauoFCzqLiktKy8orKqqqraraa2rh4s09DY1NyS0drWzt7R2dXV1d3T2wdzW/+EiZMmt00BGjV1Gjv79Bkz4a5mmBU1m1NzDtQ/c+cRFQakysxfgJBYuAhZZvESuMTSZcuRZFasXLkKBlav8UKSWbsOGaxHyADTDi8vUtrZAJfBmd4AhfhiLTlqa5kAAAAASUVORK5CYII=\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAMAAADzN3VRAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAVZQTFRF////+fv/1eL/k7X+fKX9c578cp78/P3/tMz/dqD8qsT63Ob88PT9+vv9/f39vNH/4uv/g6r9sMj79/n9qsT71OH/iKz82uX8/v7/h6z80+H/4+v8/v7+9vj8+/z99fj+rcX6c534c576cJz5iKz40N78s8v/+/z+eaL6uM36+fr+/v//6e/8gqj5wtT6dqH8r8f5tcv57fL9yNj62eT7bpr5ZJ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v3/w8KgeH+/3Y40////////03i//////////////83//////////////j///////////91/////wnkSFZQAAABHklEQVR4nH1SV3uDMAwUIySAEnZYZRSSzpS22ST0//+txtjGpA/Vi3U66ztbOgAakqyoE22iKvIUxjHTDRNpmMZ8JoiFhbbjen7ge65jo7XgxDKM4iR9oJEmWRQuWUeIeUGK5WNJjirHsO41rCin11e4okkeWURLx7ighTWuaVLEqANMDTthEuVTybLENiSQTYeLi0gdUwYFXYaeX17fOOWiAip6FLxvcPPBGQ9VaNCn4PPrG7ec8bEBDQMOt4IJUBM9dwzpGXTuGKIzvO2OIW8b/Ucw/X8kPoPd/oCH/U7MAOaYVQQdT7e9nY4krTI801m3BF6uXdddLyRt6ayhDrEtRkMb9vPPTm9df3xQC4v8jL1zHnmH+a3p/Saxyi9KJjN/1nsk8gAAAABJRU5ErkJggg==\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAMAAADzN3VRAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAftQTFRF////6PD/ZJX+VYr8o8D/+vz/jLD/rMb75+79c5/7mrr//v7/9vn/aZj/nbv7/f3/7vP9fqX7kbT/9fj/irD/g6r8bJn8rMX86e/9hKv/gKj87/P94ur8ZZX8tMv8nLv/gan/h6z85+78ZZX61+P87fL98vX9X5H83+n/6e/8psH65ez9qcP7+Pn+aJf72OT/kLL5oL37/v//xtf8S4T+V4v8jLH/q8T6+fv+4+z9ZJX9krT/7/T/rMb8YJL9jbD7W4/9+/z/VIr8uM78v9L7YJL+/f7/vdH7ZpX7Z5b9rsj/zt384er9c578Z5b87PH9d6H8kLP/Vov87PL9/P3+hav7eKP/7vT/XpH8gKj/m7v/eKL8/f3+/P3/a5r/4+z/2OX/+fv/j7P/h6z7rsf7VYr+0N//d6L/n7z7i6/6c577X5L9uc//7fP/apn/sMj6hKr74+v8bZr8Wo/9n73/vNH/aZn/ZJX/eaP/4Or/4uv/U4n+e6T8k7T82uX8cZ38W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Y/8m7r6tMr7RYD/RYD/lrf79fj+2+b8wNP7/v7/zNv7UYj+RYD/RYD/R4H+ZJX9j7L8mLj8eKL8TIT+RYD/RYD/RYD/RYD/RYD/RYD/RYD/RYD/RYD/RYD/RYD/RoD/jbD7yNn8W4/8RYD/RYD/SYL+WI3+Uon9RYD/RYD/RYD/RYD/RYD/RoH/lrb89Pf+8vb+X5H8RYD/RYD/RYD/bZv8vdH83uj91OH8ssr8nbz9l7f8Y5T9RoH/jbH8+fv++Pr+kLL7RYD/RYD/RoH/hqv7/v7+s8r6iq78/f3/oL37bpv8xdb5Wo38vdH75Oz8p8L5f6X4faX4WY380N78tsz8TYX+RYD/bpv7pMD6bpv7u8/6YZP8qsT75Oz99vn+5u391uL87/T9z937TIT+RYD/RYD/R4H+4er7eaL6daD66vD9bZv7o7/67vL74Oj43+j42eP6pcH7Vov9RYD/RYD/eKL8uM37krT84On97vP+c5/7S4P8RYD/RYD/RYD/RYD/RYD/RYD/q8X7////1uL7RYD/2uX9pcD57/P9cp78RYD/RoD9rMX7xdf81+P8e6T8RoD/R4H+TYX9RYD/RYD/jG0MwAAAANR0Uk5TAAc2RRUDfub///utIgKH+v3/////0Ror8/////////+EAYn//////9MU///////rIZL////////ZFzv7//////+YpP///////+0gC5r6////0zEGd65XJ11nRAUIrP7/8BxNoca7jm5lQBii/v//8h4Jj/3////////7zP7///9UmqD///////73/////////////8QT/P//////////////1yMf8v//////////////9DJ4/P//////77qrpoEmjfz+/8Zc9f/9XAVT7v/5gVv3iAR3SSp7AAABW0lEQVR4nGNgQAKMTMwsDFgAKxs7BycXNw+GBC8fv4CgkLCIqBi6jLiEpJS0jKycvIIimoySspwKh6qanLqGJpoMt5acto6unpycvgGajKGRnLGJqZmcuYUlmoyVtY2tnYy9nIMjL7rbnJxdXN3cPTy9MJzt7ePr5x8QGMTAEBwSGoYqFx4RGRXNwBATGxefkAgVi05KTklNS88Agsys7JzcvPwCiERhUXFJaVl5hX9lZWVVdU1tXX0RyBmsDY1NzS1yMNDaZt7eEQrWkN7Z1a0CEuvp7evvnzBxktzkKVOB4oqR06bPmDlrtruc3Jy58+bPn79AbuGixSAdS5YuW76ibeWq1S1r1q4DgfUbNm6CeHDzlq3btsvt2LlrN/ceENi7bz/UwawHDh4CWnL4SIwiGCB78OgxObnjJ05iBAoDw6nTZ86eO8+KRYaB4cLFS5exSjAwoEcJEAAASv9qdpx41q4AAAAASUVORK5CYII=\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAMAAADzN3VRAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAL1QTFRF////1+T/iq//ia7/rcf/ToX9gqn8X5D67vT/b5z/TIX/TIT/SYL/RoD+SoL5osD/W478rMX4tMr5m7v/bpv69ff99Pf9+/z+8/b8XZD8krP6+fv9gqn7s8r6/v7/2+b8lLX7k7T7rMX6TIT9eKL7/v7+7/P8SoP8RoD9sMn/UIf9eKL8fKX8Y5T8/f3+y9v8xtj9+/3/qcT/kbT/kLP/b53//P3+tsz7ssn78fX8SYL9RYD/8vX8+Pn89ff7VvVECQAAALxJREFUeJyl0lsbgUAQgOGRsiKKlLMSSsohVE75/z9L42ZX7AW+u33eq5lZgF8rCWWaUGJElCo0SWSFMA/yj1TlWl1pNGkNpV6Tq7moWqtdrKWpuegd43UEswtGR/8gvf6AI8PRmCPQnTBi2VOabTHizOa0mcMKTrrAcFIqJorrLTHPRTGf4q+CcE1gs91h2w2QdRis/Fyi/eEYE0jSE5YmQOLjYR/RjZ4vV+xye991dsey4hW4N+X/g+96AHZGGrQ+GpauAAAAAElFTkSuQmCC\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAMAAADzN3VRAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAARpQTFRF////+/3/wtX/dqH/Uoj+R4D86/L/daH/RoH/RYD/6/H/YpT/apj8vND87fL8+/z9+vz/f6f/dqD87vP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H/xtj/7fL9zdz85e39rsj/apn/4uv9WIz9Tob+zt38+Pr/wdX/YJL/UIf+ob77Tob93Ob8ZZX8hKr8/v7+8/f/rMX7SYP+n7z7jbH88PX+f6b8bJr95Oz95Oz+xdf+6O//Wo791uL9RYD+scr+6vD8/f3/rcf+XZD+a5n8scr/V4z+ytv/EH3xCgAAAXNJREFUeJxjYAABRiZmFlY2dg5OBjTAxc3Dy8cvICgkLIIqISomLsEgKSXNICMrJ48soaCopKyiqqauoamlraOrhySjb2BoZGxiamZuoW5pZc1sA5ewtbN3cHRyBrI4XVzd3D08waJe3gwMPr4qfv4BYG6gblBwSCiQERYeEcnAEBUdExsHMYIxPoEh0ZyBISk5JTWNgSHdKSPTCWJwVjZzTm4UA0NefoEXA0imECYTVlRcXGwOdwGSDEMJF1dpIdC+suzscoaKSuGqauEaOKitY2CoB8o0MDQ2Nbf4y7UgQKtZG0N7VlYHQ2dXdy0yqOkStq3v6a1gYCj2gVjR1z8BwpiomxQ4yY49DyYzeUrx1GkwGYbpM2bOgsnMnjN33vwFMBkGhraFMJlFi5dELu1AyDDA7Vm2vHjFSgZsMgyrilczYJdZU1yLQ2bZ2nVoMus3QMNs4yYIvbkFKrNl6wYfZLBthVMGRKZ0y/piFLB9B0QCANOwgxYx/lSbAAAAAElFTkSuQmCC\"","const SortedCode = {\r\n\tMember: \"Code\"\r\n};\r\n\r\nconst SortedDescription = {\r\n\tMember: \"Description\"\r\n};\r\n\r\nconst SortedFullName = {\r\n\tMember: \"FullName\"\r\n};\r\n\r\nconst SortedFullPath = {\r\n\tMember: \"FullPath\"\r\n};\r\n\r\nconst SortedId = {\r\n\tMember: \"Id\"\r\n};\r\n\r\nconst SortedMenuName = {\r\n\tMember: \"MenuName\"\r\n};\r\n\r\nconst SortedName = {\r\n\tMember: \"Name\"\r\n};\r\n\r\nconst SortedOrderIndex = {\r\n\tMember: \"OrderIndex\"\r\n};\r\n\r\nconst SortedParameterDesc = {\r\n\tMember: \"ParameterDesc\"\r\n};\r\n\r\nconst SortedParameterValue = {\r\n\tMember: \"ParameterValue\"\r\n};\r\n\r\nconst SortedPeriodNumberAsc = [{\r\n\tid: \"PeriodNumber\",\r\n\tdesc: false\r\n}];\r\n\r\nconst SortedPropertyName = {\r\n\tMember: \"PropertyName\"\r\n};\r\n\r\nconst SortedStoreName = {\r\n\tMember: \"StoreName\"\r\n};\r\n\r\nexport {\r\n\tSortedCode,\r\n\tSortedDescription,\r\n\tSortedFullName,\r\n\tSortedFullPath,\r\n\tSortedId,\r\n\tSortedMenuName,\r\n\tSortedName,\r\n\tSortedOrderIndex,\r\n\tSortedParameterDesc,\r\n\tSortedParameterValue,\r\n\tSortedPeriodNumberAsc,\r\n\tSortedPropertyName,\r\n\tSortedStoreName\r\n};","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAMAAADzN3VRAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAbBQTFRF/////v7/4uv/xdf/vNH/+Pv/wNT/d6L/Vov/R4H/RYD/8PX/hqz/RoH/Uoj9iK38rMb8t839rcb8iq78VIn9h63/8vb/7vT/Zpb/SYL+ia379vn9+Pn9jbD7SoP+dqH/7/T/pMD7/f7/q8T6iK7/0+H/g6n7g6n81OL//v//krT/UIf+5+792eX8Uon+k7X/ZJX/daD8eqT8Tob/j7L/5e3/xdj/S4T/lLX90t/8dJ/7SIL+VIr/xtj/0uD/RoD/scn72uX8bJr8U4n/4+z/Wo7/X5H91eL9+Pr+y9v8faX8yNn83Ob8iq//1uL8V4z9VYr9e6T6V4z+UYj+gaj61OH8U4n9SoP90N78nbv7R4D8R4H9l7b5+vz+WIz9pL/4RoD9or34WIz8VYr8+fr9f6b6VYv+YpT/X5H7+/z+3uj85u39w9X6vdH76O/83Ob73ef8RoH+scr/nbv6+vv+2eT8ZZX85e7/+/z/jbH/Y5P8hqz9i6//r8f8s8r6iq7+c5/8TIT+V4z/zNz/+Pr/r8n/f6f7hav4kbT/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8PX/BY0KsAAAAO1JREFUeJxjYCAKMDIxMLOwYgizsXNwcnFw8/CiifPxCwgKCYuIiolLSMLEpKRlZGR4Zbnl5BUUlZRVVHnUZGTUQRIamlogoK2jC+To6RsYGgF5EiAZYxNTMy1zC0uIAVY81jZatnb2ILaWgyOPmRMjFDgru7i6uXt4egFdqIUV8GgAZbx9ZDCAr5YfUEYNm5dJk/EPCFRTC9IKZsGQCQmFuCEMXSZcKyISRKtpoctEaUUzYJeJ1rLyxy4TE+sYZw8E8RgyDAmJScnJdlr2KWT5NDUtnREDZIBkMrOwBnY2MGHk5Pphguw8LHbAAAB6CDaQrWXcJgAAAABJRU5ErkJggg==\"","module.exports = __webpack_public_path__ + \"static/media/face-template.28eda351.png\";","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAFgCAYAAADNZME9AAALGklEQVR4nO3dTYhdBxnH4ffemcmkST9cHFvSLkImqbqo7kQQXFgUpOAHoi5cWMGPTenChaUUQasgRRcupDu7UVBpi0gR6iJUQSyI6EJdaJuZEGgT7b0La5o0M3fuvXLSmTDNTDKTZKaZuf/ngSwK/Thn3rTvr+eee05nPB7XTjqxcPLO0Wj08Gg8vm88Gt89Go/bP75jNB4dHA1HM6PxuLOjBwAAu1C30xl3p7qDbqd7rtvtvt7tdF7rdDunu53OP7rd7o+PzR15bSePekcC4MTCyfcNh6NHBsvLDywNBnftdGQAwCTpdDq1b2bmPzPTU7+dmpp64tjckX9u9+ltWwCcWDh5YHk4fGowuLj0b9+WvykA0MbA6zMz089PT0195djckfPb8RPZlgD414n5H124sPjQ8nA4sx0HBQCsNz01Ndi/f/bJ9x47+o0b/fHcUAC8NL/w0OLi4hNLg+VbzQkA3hn7ZqbfmJ2dffQ9R+eevN5/4HUFQPsZ/4XFpRcWl5YOmTUA3Byz+/ad2T+77/7ruUege61/wcvzC5974/ybf7f8AeDmandxu5Pb3XytB3JNAfDSifkfnD13/pnhcDht5gBw87U7ud3N7Y6+loPZ0kcAJ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JZkrp1ZTSv+X3+c99pe9arFsAzDU1NbU9pfRESum3Ukq/nlIaMJ8AsGznU0r7Z+63+8nMI/rX1YYEwFxTU1P5K4MPzXw8sGueny1+HwAI6HRK6fg8P+MppRdrtdrGvY8npfT/zQ4n6RyQr8IAAAAASUVORK5CYII=\"","import ClientHelper from \"core/ClientHelper\";\r\nimport { applyMiddleware, combineReducers, createStore } from \"redux\";\r\nimport thunkMiddleware from \"redux-thunk\";\r\n\r\nconst UserConstants = {\r\n\tLOGIN_REQUEST: \"USERS_LOGIN_REQUEST\",\r\n\tLOGIN_SUCCESS: \"USERS_LOGIN_SUCCESS\",\r\n\tLOGIN_FAILURE: \"USERS_LOGIN_FAILURE\",\r\n\tLOGOUT: \"USERS_LOGOUT\",\r\n\tCHANGE_LANGUAGE: \"CHANGE_LANGUAGE\",\r\n};\r\n\r\nvar user = ClientHelper.GetUser();\r\nconst initialState = user ? { loggedIn: true, user } : { loggedIn: false };\r\n\r\nfunction UserContext(state, action) {\r\n\tswitch (action.type) {\r\n\t\tcase UserConstants.LOGIN_REQUEST:\r\n\t\t\treturn {\r\n\t\t\t\tloggingIn: true,\r\n\t\t\t\tuser: action.user\r\n\t\t\t};\r\n\t\tcase UserConstants.LOGIN_SUCCESS:\r\n\t\t\treturn {\r\n\t\t\t\tloggedIn: true,\r\n\t\t\t\tuser: action.user\r\n\t\t\t};\r\n\t\tcase UserConstants.LOGIN_FAILURE:\r\n\t\t\treturn {};\r\n\t\tcase UserConstants.LOGOUT:\r\n\t\t\treturn {\r\n\t\t\t\tloggedIn: false\r\n\t\t\t};\r\n\t\tdefault:\r\n\t\t\treturn state ?? initialState;\r\n\t}\r\n}\r\n\r\nconst rootReducer = combineReducers({\r\n\tUserContext\r\n});\r\n\r\nconst store = createStore(\r\n\trootReducer,\r\n\tapplyMiddleware(\r\n\t\tthunkMiddleware,\r\n\t)\r\n);\r\nexport { UserConstants, store };\r\n","import { withStyles } from \"@material-ui/core/styles\";\r\nimport Typography from \"@material-ui/core/Typography\";\r\nimport style from \"assets/jss/material-dashboard-pro-react/views/dynamicToolBarStyle.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { PureComponent } from \"react\";\r\n\r\nclass AccountLimitToolbar extends PureComponent {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tItemList: [\r\n\t\t\t\t{ Label: \"Funding Account Balance\" },\r\n\t\t\t\t{ Label: \"Fee Account Balance\" },\r\n\t\t\t\t{ Label: \"Available Balance\" },\r\n\t\t\t\t{ Label: \"Daily Available Credit Limit\" },\r\n\t\t\t\t{ Label: \"Daily Available Debit Limit\" }\r\n\r\n\t\t\t]\r\n\t\t};\r\n\r\n\t\tthis.isStore = ClientHelper.IsStore();\r\n\r\n\t\tthis.isCancelled = false;\r\n\r\n\t\tthis.FetchData = this.FetchData.bind(this);\r\n\t}\r\n\r\n\tFetchData() {\r\n\t\tconst { Program,LimitMainType, OnLoad, IsUseDisableDebitLimit } = this.props;\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/LimitBalance/GetLimitBalance\",\r\n\t\t\t{\r\n\t\t\t\tProgramCode : Program,\r\n\t\t\t\tLimitMainType : LimitMainType || \"\"\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (this.isCancelled) return;\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tconsole.error(\"Error for account limits: \", responseData.ErrorDescription);\r\n\t\t\t\t\tif (OnLoad)\r\n\t\t\t\t\t\tOnLoad({});\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvar data = responseData.Item;\r\n\t\t\t\tif (data != null) {\r\n\t\t\t\t\tvar list = [\r\n\t\t\t\t\t\t{ Label: \"Funding Account Balance\", Value: data.FundingAccountBalance },\r\n\t\t\t\t\t\t{ Label: \"Fee Account Balance\", Value: data.FeeAccountBalance },\r\n\t\t\t\t\t\t{ Label: \"Daily Available Credit Limit\", Value: data.AvailableCreditLimit }\r\n\t\t\t\t\t];\r\n\r\n\t\t\t\t\tif (!IsUseDisableDebitLimit) {\r\n\t\t\t\t\t\tlist.push({ Label: \"Daily Available Debit Limit\", Value: data.AvailableDebitLimit });\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (this.isStore) {\r\n\t\t\t\t\t\tlist.push({ Label: \"Daily Available Store Credit Limit\", Value: data.AvailableStoreCreditLimit });\r\n\t\t\t\t\t\tlist.push({ Label: \"Daily Available Store Debit Limit\", Value: data.AvailableStoreDebitLimit });\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tthis.setState({ ItemList: list });\r\n\r\n\t\t\t\t\tif (OnLoad)\r\n\t\t\t\t\t\tOnLoad(data);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tif (this.isCancelled) return;\r\n\r\n\t\t\t\tconsole.error(\"Error for account limits: \" + error);\r\n\t\t\t\tif (OnLoad)\r\n\t\t\t\t\tOnLoad({});\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.FetchData();\r\n\t}\r\n\r\n\tcomponentWillUnmount() {\r\n\t\tthis.isCancelled = true;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes, IsPopUp } = this.props;\r\n\t\tconst { ItemList } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{ItemList.map((item, index) => (\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{item.Label}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t{Formatter.FormatMoney(item.Value)}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nAccountLimitToolbar.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tProgram: PropTypes.string,\r\n\tOnLoad: PropTypes.func,\r\n\tIsPopUp: PropTypes.bool\r\n};\r\n\r\nexport default withStyles(style)(AccountLimitToolbar);","import { DynamicComponent } from \"core\";\r\nimport React from \"react\";\r\nimport { withRouter } from \"react-router\";\r\nimport { Redirect, Route } from \"react-router-dom\";\r\n\r\nclass PrivateRoute extends React.Component {\r\n\r\n\tcomponentDidUpdate(prevProps) {\r\n\t\tif (prevProps.location !== this.props.location) {\r\n\t\t\tif (prevProps.location != null)\r\n\t\t\t\tif (localStorage.getItem(\"previousUrl\") != prevProps.location.pathname)\r\n\t\t\t\t\tlocalStorage.setItem(\"previousUrl\", prevProps.location.pathname);\r\n\t\t}\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { component, ...rest } = this.props;\r\n\t\tconst { UserContext } = this.props;\r\n\r\n\t\tif (UserContext && UserContext.user) {\r\n\t\t\tif (UserContext.user.MustChangePwd) {\r\n\t\t\t\treturn ;\r\n\t\t\t}\r\n\t\t\treturn } />;\r\n\t\t}\r\n\r\n\t\treturn ;\r\n\t}\r\n}\r\n\r\nexport default withRouter(PrivateRoute);","import ClientHelper from \"core/ClientHelper\";\r\nimport ResourceHelper from \"core/ResourceHelper\";\r\nimport StringHelper from \"core/StringHelper\";\r\nimport moment from \"moment\";\r\nimport DateHelper from \"core/DateHelper\";\r\n\r\nvar UtcOffset = moment().utcOffset().toString();\r\n//var UtcOffset = DateHelper.GetDateTimeEst().utcOffset().toString();\r\n\r\nconst ProxyTimeOut = window.ProxyTimeOut ?? 200000;\r\nconst IsProxyErrorDetailActive = window.IsProxyErrorDetailActive;\r\nconst ProxyUrl = window.ProxyUrl;\r\nconst ProxyUrl2 = window.ProxyUrl2;\r\n\r\nfunction timeout(ms, url, promise) {\r\n\treturn new Promise(function (resolve, reject) {\r\n\t\tsetTimeout(function () {\r\n\t\t\tconsole.log(`Request has timed out -> ${url}`);\r\n\t\t\treject(new Error(\"We're sorry. We run into a problem completing your request. Please try that again in a few minutes.\"));\r\n\t\t}, ms);\r\n\t\tpromise.then(resolve, reject);\r\n\t});\r\n}\r\n\r\nconst Proxy = {\r\n\tPOST: (URL, Params, callback = null, errorCallback = null, workflowId = null, accessToken = null, customTimeout = null) => {\r\n\t\tvar result = timeout(customTimeout ?? ProxyTimeOut, URL, fetch(GetEnvironmentUrl(URL), {\r\n\t\t\tmethod: \"POST\",\r\n\t\t\theaders: {\r\n\t\t\t\t\"Content-Type\": \"application/json\",\r\n\t\t\t\t\"Authorization\": \"Bearer \" + getSessionId(accessToken),\r\n\t\t\t\t\"Path\": window.location.pathname,\r\n\t\t\t\t\"WorkflowId\": workflowId,\r\n\t\t\t\t\"APIPATH\": URL,\r\n\t\t\t\t\"UtcOffset\": UtcOffset\r\n\t\t\t},\r\n\t\t\tbody: JSON.stringify(Params)\r\n\t\t}).then(response => {\r\n\t\t\tif (!response.ok) {\r\n\t\t\t\tif (response.status == 401 || response.status == 403) {\r\n\t\t\t\t\tlocalStorage.removeItem(\"user\");\r\n\t\t\t\t\twindow.location.reload();\r\n\t\t\t\t\tthrow Error(\"Your session has expired. Please login again.\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tconsole.log(`Error: ${response.statusText} StatusCode: ${response.status} Type: ${response.type} Url: ${response.url}`);\r\n\t\t\t\t\tthrow Error(\"We're sorry. We run into a problem completing your request. Please try that again in a few minutes.\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn response.json();\r\n\t\t})).then(responseData => {\r\n\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\tif (IsProxyErrorDetailActive == \"1\") {\r\n\t\t\t\t\tif (responseData.StackTrace != null) {\r\n\t\t\t\t\t\twindow.console.error(responseData.StackTrace);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\twindow.console.error(\"An API Error Occured. Check logs.\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (!responseData.IsSucceeded && responseData.ErrorCode) {\r\n\t\t\t\tif (responseData.ErrorList && responseData.ErrorList.length > 0) {\r\n\t\t\t\t\tresponseData.ErrorDescription = responseData.ErrorList.map(x =>\r\n\t\t\t\t\t\t(x.ParameterList != null && x.ParameterList.length > 0) ?\r\n\t\t\t\t\t\t\tStringHelper.Format(ResourceHelper.Get(x.ErrorCode), x.ParameterList) :\r\n\t\t\t\t\t\t\tResourceHelper.Get(x.ErrorCode)\r\n\t\t\t\t\t).join(\" - \");\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tif (responseData.ParameterList != null && responseData.ParameterList.length > 0)\r\n\t\t\t\t\t\tresponseData.ErrorDescription = StringHelper.Format(ResourceHelper.Get(responseData.ErrorCode), responseData.ParameterList);\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tresponseData.ErrorDescription = ResourceHelper.Get(responseData.ErrorDescription);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (callback != null) {\r\n\t\t\t\tcallback(responseData);\r\n\r\n\t\t\t\treturn Promise.resolve(responseData);\r\n\t\t\t}\r\n\t\t}).catch(error => {\r\n\t\t\tif (IsProxyErrorDetailActive == \"1\") {\r\n\t\t\t\twindow.console.error(error);\r\n\t\t\t}\r\n\t\t\tif (errorCallback != null) {\r\n\t\t\t\tif (error.message == \"Failed to fetch\") {\r\n\t\t\t\t\terrorCallback(\"We're sorry. Please try that again later.\");\r\n\r\n\t\t\t\t\treturn Promise.resolve(\"We're sorry. Please try that again later.\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\terrorCallback(ToErrorString(error));\r\n\r\n\t\t\t\t\treturn Promise.resolve(ToErrorString(error));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\treturn result;\r\n\t},\r\n\tGET: (URL, callback = null, errorCallback = null, workflowId = null, accessToken = null) => {\r\n\t\tvar result = timeout(ProxyTimeOut, URL, fetch(GetEnvironmentUrl(URL), {\r\n\t\t\tmethod: \"GET\",\r\n\t\t\theaders: {\r\n\t\t\t\t\"Content-Type\": \"application/json\",\r\n\t\t\t\t\"Authorization\": \"Bearer \" + getSessionId(accessToken),\r\n\t\t\t\t\"Path\": window.location.pathname,\r\n\t\t\t\t\"WorkflowId\": workflowId,\r\n\t\t\t\t\"APIPATH\": URL,\r\n\t\t\t\t\"UtcOffset\": UtcOffset\r\n\t\t\t}\r\n\t\t}).then(response => {\r\n\r\n\t\t\tif (!response.ok) {\r\n\t\t\t\tif (response.status == 401 || response.status == 403) {\r\n\t\t\t\t\tlocalStorage.removeItem(\"user\");\r\n\t\t\t\t\twindow.location.reload();\r\n\t\t\t\t\tthrow Error(\"Your session has expired. Please login again.\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tconsole.log(`Error: ${response.statusText} StatusCode: ${response.status} Type: ${response.type} Url: ${response.url}`);\r\n\t\t\t\t\tthrow Error(\"We're sorry. We run into a problem completing your request. Please try that again in a few minutes.\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn response.json();\r\n\t\t})).then(responseData => {\r\n\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\tif (IsProxyErrorDetailActive == \"1\") {\r\n\t\t\t\t\tif (responseData.StackTrace != null) {\r\n\t\t\t\t\t\twindow.console.error(responseData.StackTrace);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\twindow.console.error(\"An API Error Occured. Check logs.\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (!responseData.IsSucceeded && responseData.ErrorCode) {\r\n\t\t\t\tif (responseData.ErrorList && responseData.ErrorList.length > 0) {\r\n\t\t\t\t\tresponseData.ErrorDescription = responseData.ErrorList.map(x =>\r\n\t\t\t\t\t\t(x.ParameterList != null && x.ParameterList.length > 0) ?\r\n\t\t\t\t\t\t\tStringHelper.Format(ResourceHelper.Get(x.ErrorCode), x.ParameterList) :\r\n\t\t\t\t\t\t\tResourceHelper.Get(x.ErrorCode)\r\n\t\t\t\t\t).join(\" - \");\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tif (responseData.ParameterList != null && responseData.ParameterList.length > 0)\r\n\t\t\t\t\t\tresponseData.ErrorDescription = StringHelper.Format(ResourceHelper.Get(responseData.ErrorCode), responseData.ParameterList);\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tresponseData.ErrorDescription = ResourceHelper.Get(responseData.ErrorDescription);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (callback != null) {\r\n\t\t\t\tcallback(responseData);\r\n\r\n\t\t\t\treturn Promise.resolve(responseData);\r\n\t\t\t}\r\n\t\t}).catch(error => {\r\n\t\t\tif (IsProxyErrorDetailActive == \"1\") {\r\n\t\t\t\twindow.console.error(error);\r\n\t\t\t}\r\n\t\t\tif (errorCallback != null && error.message != \"Session expired.\") {\r\n\t\t\t\tif (error.message == \"Failed to fetch\") {\r\n\t\t\t\t\terrorCallback(\"We're sorry. Please try that again later.\");\r\n\r\n\t\t\t\t\treturn Promise.resolve(\"We're sorry. Please try that again later.\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\terrorCallback(ToErrorString(error));\r\n\r\n\t\t\t\t\treturn Promise.resolve(ToErrorString(error));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\treturn result;\r\n\t},\r\n\tFileUpload: (URL, Data, callback = null, errorCallback = null) => {\r\n\t\tvar result = fetch(GetEnvironmentUrl(URL), {\r\n\t\t\tmethod: \"POST\",\r\n\t\t\theaders: {\r\n\t\t\t\t\"Authorization\": \"Bearer \" + getSessionId(),\r\n\t\t\t\t\"UtcOffset\": UtcOffset\r\n\t\t\t},\r\n\t\t\tbody: Data\r\n\t\t}).then(response => {\r\n\t\t\tif (!response.ok) {\r\n\t\t\t\tconsole.log(`Error: ${response.statusText} StatusCode: ${response.status} Type: ${response.type} Url: ${response.url}`);\r\n\t\t\t\tthrow Error(\"We're sorry. We run into a problem completing your request. Please try that again in a few minutes.\");\r\n\t\t\t}\r\n\t\t\treturn response.json();\r\n\t\t}).then(responseData => {\r\n\t\t\tif (!responseData.IsSucceeded && responseData.StackTrace)\r\n\t\t\t\twindow.console.error(IsProxyErrorDetailActive == \"1\" ? responseData.StackTrace : \"An API Error Occured. Check logs.\");\r\n\r\n\t\t\tif (!responseData.IsSucceeded && responseData.ErrorCode) {\r\n\t\t\t\tif (responseData.ErrorList && responseData.ErrorList.length > 0) {\r\n\t\t\t\t\tresponseData.ErrorDescription = responseData.ErrorList.map(x =>\r\n\t\t\t\t\t\t(x.ParameterList != null && x.ParameterList.length > 0) ?\r\n\t\t\t\t\t\t\tStringHelper.Format(ResourceHelper.Get(x.ErrorCode), x.ParameterList) :\r\n\t\t\t\t\t\t\tResourceHelper.Get(x.ErrorCode)\r\n\t\t\t\t\t).join(\" - \");\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tif (responseData.ParameterList != null && responseData.ParameterList.length > 0)\r\n\t\t\t\t\t\tresponseData.ErrorDescription = StringHelper.Format(ResourceHelper.Get(responseData.ErrorCode), responseData.ParameterList);\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tresponseData.ErrorDescription = ResourceHelper.Get(responseData.ErrorCode);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (callback != null) {\r\n\t\t\t\tcallback(responseData);\r\n\r\n\t\t\t\treturn Promise.resolve(responseData);\r\n\t\t\t}\r\n\t\t}).catch(error => {\r\n\t\t\tif (IsProxyErrorDetailActive == \"1\") {\r\n\t\t\t\twindow.console.error(error);\r\n\t\t\t}\r\n\t\t\tif (errorCallback != null && error.message != \"Session expired.\") {\r\n\t\t\t\tif (error.message == \"Failed to fetch\") {\r\n\t\t\t\t\terrorCallback(\"We're sorry. Please try that again later.\");\r\n\r\n\t\t\t\t\treturn Promise.resolve(\"We're sorry. Please try that again later.\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\terrorCallback(ToErrorString(error));\r\n\r\n\t\t\t\t\treturn Promise.resolve(ToErrorString(error));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\treturn result;\r\n\t},\r\n\tFileDownload: (FileUrl, FileName, FileExtension, Params, Callback = null, ErrorCallback = null) => {\r\n\t\treturn fetch(GetEnvironmentUrl(FileUrl), {\r\n\t\t\tmethod: \"POST\",\r\n\t\t\theaders: {\r\n\t\t\t\t\"Content-Type\": \"application/json\",\r\n\t\t\t\t\"Authorization\": \"Bearer \" + getSessionId(),\r\n\t\t\t\t\"UtcOffset\": UtcOffset\r\n\t\t\t},\r\n\t\t\tbody: JSON.stringify(Params)\r\n\t\t}).then(response => response.blob()).then(blob => {\r\n\t\t\tvar aElement = document.createElement(\"a\");\r\n\t\t\tdocument.body.appendChild(aElement);\r\n\t\t\tvar url = URL.createObjectURL(blob);\r\n\t\t\taElement.href = url;\r\n\t\t\taElement.download = FileName + \".\" + FileExtension;\r\n\t\t\taElement.click();\r\n\t\t\tURL.revokeObjectURL(url);\r\n\r\n\t\t\tif (Callback != null) {\r\n\t\t\t\tCallback();\r\n\t\t\t}\r\n\t\t}).catch(error => {\r\n\t\t\tif (ErrorCallback != null) {\r\n\t\t\t\tif (error.message == \"Failed to fetch\") {\r\n\t\t\t\t\tErrorCallback(\"We're sorry. Please try that again later.\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tErrorCallback(ToErrorString(error));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t},\r\n\tFileDownloadWithGenericResponse: (FileUrl, FileName, FileExtension, Params, Callback = null, ErrorCallback = null) => {\r\n\t\tvar result = timeout(ProxyTimeOut, URL, fetch(GetEnvironmentUrl(FileUrl), {\r\n\t\t\tmethod: \"POST\",\r\n\t\t\theaders: {\r\n\t\t\t\t\"Content-Type\": \"application/json\",\r\n\t\t\t\t\"Authorization\": \"Bearer \" + getSessionId(),\r\n\t\t\t\t\"UtcOffset\": UtcOffset\r\n\t\t\t},\r\n\t\t\tbody: JSON.stringify(Params)\r\n\t\t}).then(response => {\r\n\t\t\tif (!response.ok) {\r\n\t\t\t\tconsole.log(response);\r\n\r\n\t\t\t\tif (response.status == 401 || response.status == 403) {\r\n\t\t\t\t\tlocalStorage.removeItem(\"user\");\r\n\t\t\t\t\twindow.location.reload();\r\n\t\t\t\t\tthrow Error(\"Your session has expired. Please login again.\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tconsole.log(`Error: ${response.statusText} StatusCode: ${response.status} Type: ${response.type} Url: ${response.url}`);\r\n\t\t\t\t\tthrow Error(\"We're sorry. We run into a problem completing your request. Please try that again in a few minutes.\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn response.json();\r\n\t\t})).then(responseData => {\r\n\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\tif (IsProxyErrorDetailActive == \"1\") {\r\n\t\t\t\t\tif (responseData.StackTrace != null) {\r\n\t\t\t\t\t\twindow.console.error(responseData.StackTrace);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\twindow.console.error(\"An API Error Occured. Check logs.\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (responseData.ErrorCode) {\r\n\t\t\t\t\tif (responseData.ErrorList && responseData.ErrorList.length > 0) {\r\n\t\t\t\t\t\tresponseData.ErrorDescription = responseData.ErrorList.map(x =>\r\n\t\t\t\t\t\t\t(x.ParameterList != null && x.ParameterList.length > 0) ?\r\n\t\t\t\t\t\t\t\tStringHelper.Format(ResourceHelper.Get(x.ErrorCode), x.ParameterList) :\r\n\t\t\t\t\t\t\t\tResourceHelper.Get(x.ErrorCode)\r\n\t\t\t\t\t\t).join(\" - \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tif (responseData.ParameterList != null && responseData.ParameterList.length > 0)\r\n\t\t\t\t\t\t\tresponseData.ErrorDescription = StringHelper.Format(ResourceHelper.Get(responseData.ErrorCode), responseData.ParameterList);\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tresponseData.ErrorDescription = ResourceHelper.Get(responseData.ErrorCode);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (Callback != null) {\r\n\t\t\t\t\tCallback(responseData);\r\n\r\n\t\t\t\t\treturn Promise.resolve(responseData);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tvar binary = atob(responseData.Item);\r\n\t\t\t\tvar array = [];\r\n\r\n\t\t\t\tfor (var i = 0; i < binary.length; i++) {\r\n\t\t\t\t\tarray.push(binary.charCodeAt(i));\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvar file = new Blob([new Uint8Array(array)]);\r\n\t\t\t\tvar aElement = document.createElement(\"a\");\r\n\t\t\t\tdocument.body.appendChild(aElement);\r\n\t\t\t\tvar url = URL.createObjectURL(file);\r\n\t\t\t\taElement.href = url;\r\n\t\t\t\taElement.download = FileName + \".\" + FileExtension;\r\n\t\t\t\taElement.click();\r\n\t\t\t\tURL.revokeObjectURL(url);\r\n\r\n\t\t\t\tif (Callback != null) {\r\n\t\t\t\t\tCallback(responseData);\r\n\r\n\t\t\t\t\treturn Promise.resolve(responseData);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}).catch(error => {\r\n\t\t\tif (IsProxyErrorDetailActive == \"1\") {\r\n\t\t\t\twindow.console.error(error);\r\n\t\t\t}\r\n\t\t\tif (ErrorCallback != null) {\r\n\t\t\t\tif (error.message == \"Failed to fetch\") {\r\n\t\t\t\t\tErrorCallback(\"We're sorry. Please try that again later.\");\r\n\r\n\t\t\t\t\treturn Promise.resolve(\"We're sorry. Please try that again later.\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tErrorCallback(ToErrorString(error));\r\n\r\n\t\t\t\t\treturn Promise.resolve(ToErrorString(error));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\treturn result;\r\n\t},\r\n\tExecuteGeneral,\r\n\tDownloadGeneratedFile,\r\n\tGetEnvironmentUrl\r\n};\r\n\r\nfunction GetEnvironmentUrl(URL) {\r\n\tvar BaseUrl = ProxyUrl;\r\n\r\n\tif (window.location.href != null && window.location.href.includes(\"epuat.dcbank.ca\")) {\r\n\t\tBaseUrl = ProxyUrl2;\r\n\t}\r\n\r\n\treturn BaseUrl + URL;\r\n}\r\n\r\nfunction getSessionId(accessToken = null) {\r\n\tif (accessToken != null)\r\n\t\treturn accessToken;\r\n\r\n\tvar user = ClientHelper.GetUser();\r\n\r\n\tif (!user || !user.SessionId)\r\n\t\treturn null;\r\n\treturn user.SessionId;\r\n}\r\n\r\nfunction ToErrorString(obj) {\r\n\tif (obj == null) return \"\";\r\n\tif (typeof obj == \"string\")\r\n\t\treturn IsProxyErrorDetailActive == \"1\" ? String(obj) : \"An API Error Occured.\";\r\n\r\n\tif (typeof obj == \"object\") {\r\n\t\tif (obj.message != null)\r\n\t\t\treturn IsProxyErrorDetailActive == \"1\" ? String(obj.message) : \"An API Error Occured.\";\r\n\t\tif (obj instanceof TypeError)\r\n\t\t\treturn \"Unknown Type Error Occured\";\r\n\t\telse\r\n\t\t\treturn \"Unknown API Error Occured\";\r\n\t}\r\n\r\n\treturn String(obj);\r\n}\r\n\r\nfunction ExecuteGeneral(page, method, url, request, action) {\r\n\tif (method == \"POST\") {\r\n\t\tProxy.POST(\r\n\t\t\turl, request,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tpage.setState({ isLoading: false }, () => {\r\n\t\t\t\t\t\tif (page.ShowMessage) {\r\n\t\t\t\t\t\t\tpage.ShowMessage(\"error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tpage.setState({ isLoading: false }, () => { action(responseData); });\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tpage.setState({ isLoading: false }, () => {\r\n\t\t\t\t\tif (page.ShowMessage) {\r\n\t\t\t\t\t\tpage.ShowMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t);\r\n\t} else if (method == \"GET\") {\r\n\t\tProxy.GET(\r\n\t\t\turl,\r\n\t\t\t(responseData) => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tpage.setState({ isLoading: false }, () => {\r\n\t\t\t\t\t\tif (page.ShowMessage) {\r\n\t\t\t\t\t\t\tpage.ShowMessage(\"error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tpage.setState({ isLoading: false }, () => { action(responseData); });\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tpage.setState({ isLoading: false }, () => {\r\n\t\t\t\t\tif (page.ShowMessage) {\r\n\t\t\t\t\t\tpage.ShowMessage(\"error\", \"An error occurred while requesting data\", error.message);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n}\r\n\r\nfunction DownloadGeneratedFile(URL, Params, callback = null, errorCallback = null, alertFunc) {\r\n\tvar newSuccessCallback = responseData => {\r\n\t\tcallback(responseData);\r\n\t\tif (responseData.IsSucceeded ) {\r\n\t\t\tif (responseData.Item.IsPooled)\r\n\t\t\t\talertFunc(\"success\", \"Success\", `Report request has been added to the queue. When the rendering process is done, the file will be downloadable from the \"Download Report\" menu.`);\r\n\t\t\telse\r\n\t\t\t\twindow.location.href = GetEnvironmentUrl(\"/coreapi/v1.0/File/DownloadGeneratedFile\") + \"?Guid=\" + responseData.Item.FileGuid;\r\n\t\t}\r\n\t};\r\n\treturn Proxy.POST(URL, Params, newSuccessCallback, errorCallback, null, null, window.DownloadFileTimeout);\r\n}\r\n\r\nexport default Proxy;","import { Tooltip, withStyles, Zoom } from \"@material-ui/core\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\n\r\nclass ToolbarButton extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\ttooltipOpen: false\r\n\t\t};\r\n\t}\r\n\r\n\thandleOpen(value) {\r\n\t\tthis.setState({ tooltipOpen: value });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { tooltip, onClick, onMouseEnter, onMouseLeave, placement, ...rest } = this.props;\r\n\t\tconst { tooltipOpen } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nToolbarButton.propTypes = {\r\n\ttooltip: PropTypes.string,\r\n\tplacement: PropTypes.oneOf([\r\n\t\t\"bottom-end\", \"bottom-start\", \"bottom\", \"left-end\",\r\n\t\t\"left-start\", \"left\", \"right-end\", \"right-start\",\r\n\t\t\"right\", \"top-end\", \"top-start\", \"top\"]),\r\n\tonClick: PropTypes.func,\r\n\tonMouseEnter: PropTypes.func,\r\n\tonMouseLeave: PropTypes.func,\r\n\tclasses: PropTypes.object.isRequired,\r\n\tchildren: PropTypes.node,\r\n\tcolor: PropTypes.oneOf([\r\n\t\t\"primary\",\r\n\t\t\"black\",\r\n\t\t\"info\",\r\n\t\t\"success\",\r\n\t\t\"warning\",\r\n\t\t\"danger\",\r\n\t\t\"rose\",\r\n\t\t\"white\",\r\n\t\t\"twitter\",\r\n\t\t\"facebook\",\r\n\t\t\"google\",\r\n\t\t\"linkedin\",\r\n\t\t\"pinterest\",\r\n\t\t\"youtube\",\r\n\t\t\"tumblr\",\r\n\t\t\"github\",\r\n\t\t\"behance\",\r\n\t\t\"dribbble\",\r\n\t\t\"reddit\",\r\n\t\t\"transparent\"\r\n\t]),\r\n\tsize: PropTypes.oneOf([\"sm\", \"lg\"]),\r\n\tsimple: PropTypes.bool,\r\n\tround: PropTypes.bool,\r\n\tfullWidth: PropTypes.bool,\r\n\tdisabled: PropTypes.bool,\r\n\tblock: PropTypes.bool,\r\n\tlink: PropTypes.bool,\r\n\tjustIcon: PropTypes.bool,\r\n\tclassName: PropTypes.string,\r\n\tmuiClasses: PropTypes.object\r\n};\r\n\r\nexport default withStyles({})(ToolbarButton);","import { withStyles } from \"@material-ui/core/styles\";\r\nimport ErrorBoundary from \"error/ErrorBoundary\";\r\nimport React from \"react\";\r\nimport { connect } from \"react-redux\";\r\n\r\nexport default function withRedux(HocComponent, styles) {\r\n\tfunction Hoc(props) {\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n\r\n\tfunction mapStateToProps(state) {\r\n\t\treturn state;\r\n\t}\r\n\r\n\tconst connectedPage = connect(mapStateToProps)(Hoc);\r\n\treturn withStyles(styles)(connectedPage);\r\n}","export * from \"./SecureCardDetails\";\r\nexport * from \"./LocDetails\";\r\nexport * from \"./LoanDetails\";","export * from \"./CreateReport\";\r\nexport * from \"./ReportDownload\";","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport createReportStyle from \"assets/jss/material-dashboard-pro-react/views/createReportStyle.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { DeleteIcon, EditIcon } from \"core/Icons\";\r\nimport ResourceHelper from \"core/ResourceHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport DualListBox from \"react-dual-listbox\";\r\nimport ReactTable from \"react-table\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericCheckInput, GenericDateInput, GenericDialog, GenericDialogActions, GenericEmailInput, GenericGrid, GenericLabel, GenericRadioInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { DocumentType, DynamicReportType, MenuCodes, ProgramCodes } from \"views/Constants/Constant.js\";\r\n\r\nclass CreateReport extends Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.isClient = ClientHelper.IsClient();\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tReportDataModelDefinitionId: 0,\r\n\t\t\tTitle: \"\",\r\n\t\t\tSubtitle: \"\",\r\n\t\t\tColumnProperty: [],\r\n\t\t\tFilterProperty: [],\r\n\t\t\tProgramId: -1,\r\n\t\t\tFilterColumnId: 0,\r\n\t\t\tEmailMapList: [],\r\n\t\t\tIsBackoffice: ClientHelper.IsBackOffice(),\r\n\t\t\tUniqueClientId: this.isClient ? ClientHelper.GetClientRowId() : undefined,\r\n\t\t\tIsSchedule: true\r\n\t\t};\r\n\r\n\t\tthis.initialEmailModel = {\r\n\t\t\tIsRecordValid: true,\r\n\t\t\tIsValid: false\r\n\t\t};\r\n\r\n\t\tthis.emptyObject = {};\r\n\r\n\t\tthis.maxLength30 = { maxLength: 30 };\r\n\t\tthis.maxLength64 = { maxLength: 64 };\r\n\r\n\t\tthis.state = {\r\n\t\t\tdata: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tvModel: {},\r\n\t\t\temailModel: { ...this.initialEmailModel },\r\n\t\t\tparameterListBoxOption: [],\r\n\t\t\tparameterListBoxSelected: [],\r\n\t\t\tcolumnListBoxOption: [],\r\n\t\t\tcolumnListBoxSelected: [],\r\n\t\t\tindex: -1,\r\n\t\t\talert: null,\r\n\t\t\tpropertyList: [],\r\n\t\t\tisEmailDialogOpen: false\r\n\t\t};\r\n\t\t// preserve the initial state in a new object\r\n\t\tthis.baseState = this.state;\r\n\r\n\t\tthis.parameterReportDataModelDefinition = {};\r\n\r\n\t\tthis.parameterScheduleType = {\r\n\t\t\tParameterCode: \"ScheduleType\"\r\n\t\t};\r\n\r\n\t\tthis.parameterDocumentType = {\r\n\t\t\tParameterCode: \"DocumentType\"\r\n\t\t};\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: this.isClient ? ClientHelper.GetClientId() : undefined\r\n\t\t};\r\n\r\n\t\tthis.renderItemUniqueClient = {};\r\n\r\n\t\tthis.sortedDescription = { Member: \"Description\" };\r\n\t\tthis.sortedDefinitionName = { Member: \"DefinitionName\" };\r\n\t\tthis.sortedParameters = { Member: \"ParameterDesc\" };\r\n\r\n\t\tthis.Columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"actions\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t this.HandleOperationType(\"Update\", row.original)} />\r\n\r\n\t\t\t\t\t\t this.HandleOperationType(\"Delete\", row.original)} />\r\n\t\t\t\t\t
\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\twidth: 65\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Program\",\r\n\t\t\t\taccessor: \"ReportDataModelDefinition.Program.Description\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Definition Name\",\r\n\t\t\t\taccessor: \"ReportDataModelDefinition.DefinitionName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Title\",\r\n\t\t\t\taccessor: \"Title\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Sub Title\",\r\n\t\t\t\taccessor: \"Subtitle\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Report Type\",\r\n\t\t\t\taccessor: \"ReportType\",\r\n\t\t\t\tCell: row => {\r\n\t\t\t\t\tvar type = DynamicReportType.filter(x => x.Value == row.value);\r\n\t\t\t\t\treturn
{type && type.length > 0 ? type[0].Text : \"-\"}
;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client\",\r\n\t\t\t\taccessor: \"UniqueClient.ClientName\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t
{row.value ? row.value : \"All\"}
\r\n\t\t\t\t)\r\n\t\t\t}\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\r\n\t\tthis.props.setAppCenterTitle(\"REPORTS\");\r\n\r\n\t\tif (this.props.MenuCode == MenuCodes.Reports_CreateReport) {\r\n\t\t\tthis.props.setAppLeftTitle(\"Create Reports\");\r\n\t\t} else {\r\n\t\t\tthis.props.setAppLeftTitle(\"Report Generator\");\r\n\t\t}\r\n\t\tif (!model.IsBackoffice) {\r\n\t\t\tvar Program = undefined;\r\n\r\n\t\t\tswitch (this.props.MenuCode) {\r\n\t\t\t\tcase MenuCodes.EFTAdHocReports:\r\n\t\t\t\t\tProgram = ProgramCodes.Bank_Programs_EFT;\r\n\t\t\t\t\tthis.props.setAppLeftTitle(\"Ad Hoc Reports\");\r\n\t\t\t\t\tthis.props.setAppCenterTitle(\"EFT SYSTEM\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase MenuCodes.ETransferAdHocReports:\r\n\t\t\t\t\tProgram = ProgramCodes.Bank_Programs_e_Transfer;\r\n\t\t\t\t\tthis.props.setAppLeftTitle(\"Ad Hoc Reports\");\r\n\t\t\t\t\tthis.props.setAppCenterTitle(\"INTERAC E-TRANSFER\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase MenuCodes.DDTAdHocReports:\r\n\t\t\t\t\tProgram = ProgramCodes.Bank_Programs_DDT;\r\n\t\t\t\t\tthis.props.setAppLeftTitle(\"Ad Hoc Reports\");\r\n\t\t\t\t\tthis.props.setAppCenterTitle(\"DDT MANAGEMENT\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase MenuCodes.LMSAdHocReports:\r\n\t\t\t\t\tProgram = ProgramCodes.Lender;\r\n\t\t\t\t\tthis.props.setAppLeftTitle(\"Ad Hoc Reports\");\r\n\t\t\t\t\tthis.props.setAppCenterTitle(\"LOAN MANAGEMENT SYSTEM\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase MenuCodes.LOSAdHocReports:\r\n\t\t\t\t\tProgram = ProgramCodes.Lender;\r\n\t\t\t\t\tthis.props.setAppLeftTitle(\"Ad Hoc Reports\");\r\n\t\t\t\t\tthis.props.setAppCenterTitle(\"LOAN ORIGINATOR SYSTEM\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase MenuCodes.BillPaymentAdHocReports:\r\n\t\t\t\t\tProgram = ProgramCodes.BillPayment;\r\n\t\t\t\t\tthis.props.setAppLeftTitle(\"Ad Hoc Reports\");\r\n\t\t\t\t\tthis.props.setAppCenterTitle(\"BILL PAYMENT\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase MenuCodes.BankingAdHocReports:\r\n\t\t\t\t\tProgram = ProgramCodes.Bank_Programs_Bank_Account;\r\n\t\t\t\t\tthis.props.setAppLeftTitle(\"Ad Hoc Reports\");\r\n\t\t\t\t\tthis.props.setAppCenterTitle(\"BANKING\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase MenuCodes.PrepaidAdHocReports:\r\n\t\t\t\t\tProgram = ProgramCodes.Prepaid;\r\n\t\t\t\t\tthis.props.setAppLeftTitle(\"Ad Hoc Reports\");\r\n\t\t\t\t\tthis.props.setAppCenterTitle(\"CARD MANAGEMENT SYSTEM\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\tif (Program) {\r\n\t\t\t\tthis.setState({ isLoading: true });\r\n\t\t\t\tProxy.POST(\"/coreapi/v1.0/dynamic/do\",\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\toperation: \"GetByParameter\",\r\n\t\t\t\t\t\tdataModel: \"Bank.Program\",\r\n\t\t\t\t\t\tvalue: {\r\n\t\t\t\t\t\t\tProgramCode: Program\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\tdisableLike: [\r\n\t\t\t\t\t\t\t\"ProgramCode\"\r\n\t\t\t\t\t\t]\r\n\t\t\t\t\t},\r\n\t\t\t\t\tresponseData => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while fetching data\", responseData.ErrorDescription);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (responseData.Item !== null && responseData.Item) {\r\n\t\t\t\t\t\t\tif (responseData.Item.length > 0) {\r\n\t\t\t\t\t\t\t\tmodel.ProgramId = responseData.Item[0].Id;\r\n\t\t\t\t\t\t\t\tmodel.ProgramCode = responseData.Item[0].ProgramCode;\r\n\t\t\t\t\t\t\t\tthis.baseState.model.ProgramId = responseData.Item[0].Id;\r\n\t\t\t\t\t\t\t\tthis.baseState.model.ProgramCode = responseData.Item[0].ProgramCode;\r\n\t\t\t\t\t\t\t\tthis.setState({ model });\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\te => {\r\n\t\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while fetching data\", typeof e == \"object\" ? JSON.stringify(e || \"\") : e || \"\");\r\n\t\t\t\t\t}\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/coreapi/v1.0/Report/SearchReportDefinition\",\r\n\t\t\t{\r\n\t\t\t\tIsBackoffice: model.IsBackoffice,\r\n\t\t\t\tProgramId: model.ProgramId,\r\n\t\t\t\tMenuCode: this.props.MenuCode,\r\n\t\t\t\tReportDataModelDefinitionId: model.ReportDataModelDefinitionId,\r\n\t\t\t\tReportType: model.ReportType\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while fetching data\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item !== null && responseData.Item) {\r\n\t\t\t\t\tthis.setState({ data: responseData.Item, isLoading: false });\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ data: [], isLoading: false });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\te => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while fetching data\", typeof e == \"object\" ? JSON.stringify(e || \"\") : e || \"\");\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageWithCallback = (type, title, message, callback, args) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: null })} OnConfirm={() => callback(args)} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageAndRefresh = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlertAndRefresh()} />\r\n\t\t});\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\r\n\t\tif (name == \"ReportDataModelDefinitionId\") {\r\n\t\t\tmodel.FilterColumnId = 0;\r\n\t\t\tthis.GetProperties(newValue);\r\n\t\t}\r\n\t\tif (name === \"DocumentTypeId\") {\r\n\t\t\tmodel.DocumentType = data;\r\n\t\t}\r\n\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null\r\n\t\t});\r\n\t}\r\n\r\n\thideAlertAndRefresh = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null\r\n\t\t});\r\n\t\tlocalStorage.removeItem(\"MenuData\");\r\n\t\twindow.location.reload(true);\r\n\t}\r\n\r\n\tcolumnListBoxOnChange = (selected) => {\r\n\t\tthis.setState({\r\n\t\t\tcolumnListBoxSelected: selected\r\n\t\t});\r\n\t}\r\n\r\n\tparameterListBoxOnChange = (selected) => {\r\n\t\tthis.setState({\r\n\t\t\tparameterListBoxSelected: selected\r\n\t\t});\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState(function (state) {\r\n\t\t\tstate = this.baseState;\r\n\t\t\treturn state;\r\n\t\t});\r\n\t}\r\n\r\n\tHandleChangeEmail = (name, newValue, data) => {\r\n\t\tconst emailModel = { ...this.state.emailModel };\r\n\t\temailModel[name] = newValue;\r\n\t\temailModel.IsValid = data.IsValid;\r\n\t\tthis.setState({ emailModel });\r\n\t}\r\n\r\n\tHandleToggleEmail = (n, v, x) => {\r\n\t\tlet { model } = this.state;\r\n\t\tvar sel = model.EmailMapList.find(c => c === x);\r\n\t\tif (sel === undefined)\r\n\t\t\treturn;\r\n\t\tsel[n] = v;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleAddEmail = () => {\r\n\t\tconst { emailModel } = this.state;\r\n\t\tvar emailList = this.state.model.EmailMapList;\r\n\t\tvar isExist = emailList.find(x => x.Email === emailModel.Email) !== undefined;\r\n\t\tif (!isExist) {\r\n\t\t\temailList.push(emailModel);\r\n\t\t\tthis.setState({ emailModel: { ...this.initialEmailModel } });\r\n\t\t}\r\n\t}\r\n\r\n\tHandleDelete = (args) => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/coreapi/v1.0/Report/DeleteReportDefinition\", { \"Id\": args.itemId },\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while fetching data\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.ShowMessageAndRefresh(\"success\", \"Deleted\", \"Selected item deleted.\")\r\n\t\t\t},\r\n\t\t\te => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while fetching data\", typeof e == \"object\" ? JSON.stringify(e || \"\") : e || \"\");\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleOperationType = (operation, selectedItem) => {\r\n\t\tif (operation == \"Delete\") {\r\n\t\t\tthis.ShowMessageWithCallback(\"warning\", \"Are your sure?\", \"The selected item will be deleted, are you sure?\", this.HandleDelete, { itemId: selectedItem.Id, screenId: selectedItem.ScreenId })\r\n\t\t}\r\n\t}\r\n\r\n\tGetProperties = (ReportDataModelDefinitionId, filterList, columnList) => {\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tProxy.POST(\"/coreapi/v1.0/Report/GetDefinedDataModelProperyById\",\r\n\t\t\t{\r\n\t\t\t\t\"ReportDataModelDefinitionId\": ReportDataModelDefinitionId\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while fetching data\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvar data = responseData.Item;\r\n\r\n\t\t\t\tvar newListBoxOptionColumn = [];\r\n\t\t\t\tvar newListBoxOptionColumnSelected = [];\r\n\t\t\t\tvar newListBoxOptionFilter = [];\r\n\t\t\t\tvar newListBoxOptionFilterSelected = [];\r\n\r\n\t\t\t\tdata.forEach(function (element) {\r\n\t\t\t\t\tif (element.IsFilter)\r\n\t\t\t\t\t\tnewListBoxOptionFilter.push({ \"value\": element.Id.toString(), \"label\": element.DisplayName });\r\n\t\t\t\t\tif (element.IsColumn)\r\n\t\t\t\t\t\tnewListBoxOptionColumn.push({ \"value\": element.Id.toString(), \"label\": element.DisplayName });\r\n\t\t\t\t});\r\n\r\n\t\t\t\tif (filterList != undefined) {\r\n\t\t\t\t\tfilterList.forEach(function (element) {\r\n\t\t\t\t\t\tnewListBoxOptionFilterSelected.push(element.toString());\r\n\t\t\t\t\t});\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tparameterListBoxSelected: newListBoxOptionFilterSelected\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (columnList != undefined) {\r\n\t\t\t\t\tcolumnList.forEach(function (element) {\r\n\t\t\t\t\t\tnewListBoxOptionColumnSelected.push(element.toString());\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tcolumnListBoxSelected: newListBoxOptionColumnSelected\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tpropertyList: data,\r\n\t\t\t\t\tcolumnListBoxOption: newListBoxOptionColumn,\r\n\t\t\t\t\tparameterListBoxOption: newListBoxOptionFilter\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\te => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while fetching data\", typeof e == \"object\" ? JSON.stringify(e || \"\") : e || \"\");\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleSubmit = () => {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tProxy.POST(\"/coreapi/v1.0/Report/InsertOrUpdateReportDefinitionInfo\",\r\n\t\t\t{ ...model, ...{ MenuCode: this.props.MenuCode } },\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while fetching data\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tvar newModel = Object.assign({}, model);\r\n\t\t\t\tnewModel.Id = responseData.Item.Id;\r\n\t\t\t\tthis.setState({ model: newModel });\r\n\t\t\t\tResourceHelper.SetLanguage(null); // Default English will be set\r\n\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Success\", \"Report request added queue. When render operation is done you can download on Report Download menu.\");\r\n\t\t\t},\r\n\t\t\te => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while fetching data\", typeof e == \"object\" ? JSON.stringify(e || \"\") : e || \"\");\r\n\t\t\t}\r\n\t\t);\r\n\r\n\t\t// //update show column, show filter in ReportProperty table\r\n\t\t// //inser to core.screen\r\n\t}\r\n\r\n\tRowSelected = (index) => {\r\n\t\tlet { model, data } = this.state;\r\n\t\tvar selectedItemId = data[index].Id;\r\n\r\n\t\tthis.setState({ index, isLoading: true });\r\n\r\n\t\tProxy.GET(\"/coreapi/v1.0/Report/GetReportDefinitionById/Id?Id=\" + selectedItemId,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while fetching data\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tmodel = responseData.Item[0];\r\n\t\t\t\tif (!model.UniqueClientId)\r\n\t\t\t\t\tmodel.UniqueClientId = -1;\r\n\t\t\t\tif (model.ReportDataModelDefinition.ProgramId > 0) {\r\n\t\t\t\t\tmodel.ProgramId = model.ReportDataModelDefinition.ProgramId;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tmodel.BeginDate = DateHelper.ToDateInputValue(model.BeginDate);\r\n\t\t\t\tmodel.EndDate = DateHelper.ToDateInputValue(model.EndDate);\r\n\t\t\t\tmodel.IsBackoffice = this.initialModel.IsBackoffice;\r\n\r\n\t\t\t\tthis.GetProperties(model.ReportDataModelDefinitionId, model.DefinedFilterColumn, model.DefinedColumn);\r\n\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tisLoading: false,\r\n\t\t\t\t\tmodel\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\te => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while fetching data\", typeof e == \"object\" ? JSON.stringify(e || \"\") : e || \"\");\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tGetReportDataModelDefinitionParameter = () => {\r\n\t\tconst { model } = this.state;\r\n\t\tthis.parameterReportDataModelDefinition.ProgramId = model.ProgramId;\r\n\t\tthis.parameterReportDataModelDefinition.MenuCode = this.props.MenuCode;\r\n\t\tthis.parameterReportDataModelDefinition.UniqueClientId = model.UniqueClientId;\r\n\t\treturn this.parameterReportDataModelDefinition;\r\n\t}\r\n\r\n\tValidate() {\r\n\t\tconst { model, vModel } = this.state;\r\n\r\n\t\tmodel.ColumnProperty = this.state.columnListBoxSelected;\r\n\t\tmodel.FilterProperty = this.state.parameterListBoxSelected;\r\n\r\n\t\tif (model.ReportType === \"0\") {\r\n\t\t\tmodel.BeginDate = DateHelper.GetDate();\r\n\t\t}\r\n\r\n\t\tvar messages = [];\r\n\r\n\t\tvModel.ProgramId = model.ProgramId == null || model.ProgramId == 0;\r\n\t\tif (vModel.ProgramId) messages.push(\"Program must be selected\");\r\n\r\n\t\tvModel.ReportDataModelDefinitionId = model.ReportDataModelDefinitionId == null || model.ReportDataModelDefinitionId == 0;\r\n\t\tif (vModel.ReportDataModelDefinitionId) messages.push(\"Data Model must be selected\");\r\n\r\n\t\tvModel.FilterColumnId = model.FilterColumnId == null || model.FilterColumnId == 0;\r\n\t\tif (vModel.FilterColumnId) messages.push(\"Filter Column must be selected\");\r\n\r\n\t\tvModel.ReportType = model.ReportType == null || model.ReportType === undefined;\r\n\t\tif (vModel.ReportType) messages.push(\"Report Type must be selected\");\r\n\r\n\t\tvModel.UniqueClientId = model.UniqueClientId == null || model.UniqueClientId == 0;\r\n\t\tif (vModel.UniqueClientId) messages.push(\"Client must be selected\");\r\n\r\n\t\tif (model.ColumnProperty.length == undefined || model.ColumnProperty.length == 0) {\r\n\t\t\tmessages.push(\"At least one column must be selected\");\r\n\t\t}\r\n\r\n\t\tvModel.Title = model.Title == null || model.Title == \"\";\r\n\t\tif (vModel.Title) messages.push(\"Title must be entered\");\r\n\r\n\t\tif (model.Title) {\r\n\t\t\tvModel.Title = model.Title.length < 6;\r\n\t\t\tif (vModel.Title) messages.push(\"Title is too short\");\r\n\t\t}\r\n\r\n\t\tvModel.EmailMapList = model.EmailMapList === undefined || (model.EmailMapList != null && model.EmailMapList.filter(x => x.IsRecordValid == true).length == 0);\r\n\t\tif (vModel.EmailMapList) messages.push(\"At least one e-mail must be entered\");\r\n\r\n\t\tvModel.BeginDate = (typeof model.BeginDate != \"object\" || model.BeginDate == \"\" || model.BeginDate == null) && model.ReportType === \"2\";\r\n\t\tif (vModel.BeginDate) messages.push(\"Begin Date must be selected\");\r\n\r\n\t\tvModel.EndDate = typeof model.EndDate != \"object\" || model.BeginDate == \"\" || model.BeginDate == null;\r\n\t\tif (vModel.EndDate) messages.push(\"End Date must be selected\");\r\n\r\n\t\tvModel.DocumentTypeId = model.DocumentTypeId == null || model.DocumentTypeId == 0;\r\n\t\tif (vModel.DocumentTypeId) messages.push(\"Document Type must be selected\");\r\n\r\n\t\tif (model.DocumentType && model.DocumentType.ParameterValue === DocumentType.PDF.toString()) {\r\n\t\t\tif (model.ColumnProperty.length > 15) {\r\n\t\t\t\tthis.props.showMessageNode(\"warning\", \"Required fields\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (model.BeginDate > model.EndDate) {\r\n\t\t\tvModel.BeginDate = true;\r\n\t\t\tvModel.EndDate = true;\r\n\t\t\tthis.ShowMessage(\"warning\", \"Request is invalid!\", \"Begin Date cannot be bigger than End Date\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.props.showMessageNode(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.setState({ vModel });\r\n\t\treturn true;\r\n\t}\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, vModel, emailModel, isLoading, alert, columnListBoxOption, columnListBoxSelected, data, propertyList, isEmailDialogOpen } = this.state;\r\n\r\n\t\tconst filterColumnList = propertyList.filter(x => x.PropertyType.includes(\"date\") && x.IsFilter);\r\n\r\n\t\tconst { classes } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tAdd\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t (row.original != null &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t x == row.original) && model.EmailMapList.find(x => x === row.original).IsRecordValid}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tValueChanged={(n, v) => this.HandleToggleEmail(n, v, row.original)} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\tdefaultPageSize={50}\r\n\t\t\t\t\t\t\t\t\tshowPaginationTop={false}\r\n\t\t\t\t\t\t\t\t\tshowPaginationBottom={Object.keys(model.EmailMapList || []).length > 0}\r\n\t\t\t\t\t\t\t\t\tminRows={2}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\t{alert}\r\n\t\t\t\t 0 },\r\n\t\t\t\t\t{ Code: \"Update\", OnClick: this.HandleSubmit, Disabled: model.Id === 0 },\r\n\t\t\t\t\t{ Code: \"Clear\", OnClick: this.HandleClear }\r\n\t\t\t\t]} menuId={this.props.menuId} />\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t

Report Data Model

\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t x.Value === 0 || x.Value === 2)}\r\n\t\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"Value\"\r\n\t\t\t\t\t\t\t\t\t\t\tTextValueMember=\"Text\"\r\n\t\t\t\t\t\t\t\t\t\t\tValue={model.ReportType}\r\n\t\t\t\t\t\t\t\t\t\t\tValueChanged={this.HandleChange} />\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{(model.ReportType || \"\").toString() === \"2\" &&\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\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
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t this.columnListBoxOnChange(selected)}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t{/* \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t

Filter Panel Parameter Selection for Screen

\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t this.parameterListBoxOnChange(selected)} />\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
*/}\r\n\t\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCreateReport.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tmodel: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(CreateReport, createReportStyle);","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { DownloadIcon } from \"core/Icons\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDateFilterInput, GenericExpansionPanel, GenericGrid, GenericSelectInput } from \"views/Components/Generic\";\r\nimport GridButton from \"views/Components/GridButton\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass ReportDownload extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.isClient = ClientHelper.IsClient();\r\n\r\n\t\tthis.initialModel = {\r\n\t\t\tDateFilter: {\r\n\t\t\t\tBeginDate: DateHelper.GetLocalDateAsUtc(),\r\n\t\t\t\tEndDate: DateHelper.GetLocalDateAsUtc()\r\n\t\t\t},\r\n\t\t\tUniqueClientId: this.isClient ? ClientHelper.GetClientRowId() : undefined\r\n\t\t};\r\n\r\n\t\tthis.gridSortParameter = [{ id: \"CreatedDate\", desc: true }];\r\n\r\n\t\tthis.state = {\r\n\t\t\tlist: [],\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tvModel: {},\r\n\t\t\tisLoading: false,\r\n\t\t\tselected: -1,\r\n\t\t\tclients : []\r\n\t\t};\r\n\r\n\t\tthis.parameterUniqueClientId = {\r\n\t\t\tUniqueClientId: this.isClient ? ClientHelper.GetClientId() : undefined\r\n\t\t};\r\n\r\n\t\tthis.ColumnsData = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Actions\",\r\n\t\t\t\taccessor: \"AP\",\r\n\t\t\t\tCell: d => (\r\n\t\t\t\t\t { this.DownloadIcon(d.original); }}\r\n\t\t\t\t\t\tDisabled={d.original.FileName === \"\"} />\r\n\t\t\t\t),\r\n\t\t\t\tsortable: false,\r\n\t\t\t\tfilterable: false,\r\n\t\t\t\twidth: 100\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Created Date\",\r\n\t\t\t\taccessor: \"CreatedDate\",\r\n\t\t\t\ttype: GridColumnType.DateTimeUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Client Name\",\r\n\t\t\t\taccessor: \"ClientName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Requested By\",\r\n\t\t\t\taccessor: \"RequestedBy\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Report Name\",\r\n\t\t\t\taccessor: \"ReportName\"\r\n\t\t\t},\r\n\t\t\t\r\n\t\t\t{\r\n\t\t\t\tHeader: \"File Name\",\r\n\t\t\t\taccessor: \"FileGuid\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Document Type\",\r\n\t\t\t\taccessor: \"DocumentType\",\r\n\t\t\t\twidth: 200\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Report Type\",\r\n\t\t\t\taccessor: \"ReportType\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Begin Date\",\r\n\t\t\t\taccessor: \"BeginDate\",\r\n\t\t\t\ttype: GridColumnType.DateTimeUtc\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"End Date\",\r\n\t\t\t\taccessor: \"EndDate\",\r\n\t\t\t\ttype: GridColumnType.DateTimeUtc\r\n\t\t\t}\r\n\t\t];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Download Report\");\r\n\t\tthis.props.setAppCenterTitle(\"Reports\");\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/BankCustomer/Search\",\r\n\t\t\tthis.parameterUniqueClientId,\r\n\t\t\t(responseData) =>{\r\n\t\t\t\tif(!responseData.IsSucceeded){\r\n\t\t\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Cannot fetch client data\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif(!this.isClient){\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tclients: [{Id : 0, Name: \"Backoffice\", UniqueClientId: 0} ,...responseData.Item]\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tconst modelTmp = { ...this.state.model };\r\n\t\t\t\t\tconst selectedClient = responseData.Item[0];\r\n\t\t\t\t\tmodelTmp.UniqueClientId = selectedClient.Id;\r\n\t\t\t\t\tthis.setState({\r\n\t\t\t\t\t\tclients: responseData.Item,\r\n\t\t\t\t\t\tmodel : modelTmp\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t(error) =>{\r\n\t\t\t\tthis.props.showMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, selected: -1 });\r\n\t}\r\n\r\n\tHandleSearch = () => {\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/ScheduleReportProcess/GetAll\",\r\n\t\t\tthis.state.model,\r\n\t\t\tthis.SuccessListCallback,\r\n\t\t\tthis.ErrorListCallback\r\n\t\t);\r\n\t}\r\n\r\n\tSuccessListCallback = (responseData) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (responseData.Item !== null) {\r\n\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t}\r\n\t}\r\n\r\n\tErrorListCallback = (error) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t}\r\n\r\n\tDownloadIcon = (model) => {\r\n\t\twindow.location.href = Proxy.GetEnvironmentUrl(\"/coreapi/v1.0/File/DownloadGeneratedFile\") + \"?Guid=\" + model.FileGuid;\r\n\t}\r\n\r\n\tValidate() {\r\n\t\tconst { model, vModel } = this.state;\r\n\r\n\t\tvar messages = [];\r\n\r\n\t\tif (typeof model.DateFilter.BeginDate != \"object\" && (model.DateFilter.BeginDate == \"\" || model.DateFilter.BeginDate == null)) {\r\n\t\t\tmessages.push(\"Begin Date is invalid!\");\r\n\t\t}\r\n\r\n\t\tif (typeof model.DateFilter.EndDate != \"object\" && (model.DateFilter.EndDate == \"\" || model.DateFilter.EndDate == null)) {\r\n\t\t\tmessages.push(\"End Date is invalid!\");\r\n\t\t}\r\n\r\n\t\tif (model.UniqueClientId == null) {\r\n\t\t\tmessages.push(\"Client must be selected!\");\r\n\t\t\tvModel.UniqueClientId = true;\r\n\t\t} else {\r\n\t\t\tvModel.UniqueClientId = false;\r\n\t\t}\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.setState({ vModel });\r\n\t\treturn true;\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tRenderItemUniqueClient = (d) => {\r\n\t\tthis.renderItemUniqueClient = `${d.UniqueClientId} - ${d.Name}`;\r\n\t\treturn this.renderItemUniqueClient;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { alert, isLoading, model, vModel, list } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t<>\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t{alert}\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nReportDownload.propTypes = {\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(ReportDownload, {});","import Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport withArtifex from \"core/withArtifex\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericAlert, GenericDialog, GenericLabel, GenericRadioInput, GenericDialogActions } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { DocumentType, GetType } from \"views/Constants/Constant\";\r\nimport GenericFormScreen from \"./GenericFormScreen\";\r\nimport GenericListScreen from \"./GenericListScreen\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Select from \"react-select\";\r\nimport Button from \"components/CustomButtons/Button\";\r\n\r\nclass GenericScreen extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialViewData = {\r\n\t\t\tGridColumns: [],\r\n\t\t\tInputs: []\r\n\t\t};\r\n\t\tthis.initialModel = {\r\n\t\t\tId: 0,\r\n\t\t\tDateFilter: {}\r\n\t\t};\r\n\t\tthis.action = null;\r\n\r\n\t\tthis.state = {\r\n\t\t\talert: null,\r\n\t\t\tcheckedValues: [],\r\n\t\t\tisLoading: false,\r\n\t\t\tlist: [],\r\n\t\t\tmodel: { ...this.initialModel },\r\n\t\t\tvModel: {},\r\n\t\t\tselected: null,\r\n\t\t\tviewData: { ...this.initialViewData },\r\n\t\t\tuniqueClientId: null,\r\n\t\t\tisColumnsLoaded: false\r\n\t\t};\r\n\r\n\t\tthis.SetButton = this.SetButton.bind(this);\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tvar user = ClientHelper.GetUser();\r\n\t\tif (user != null) {\r\n\t\t\tthis.setState({ uniqueClientId: user.UniqueClientId });\r\n\t\t}\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Screen/GetById\",\r\n\t\t\t{\r\n\t\t\t\tId: this.props.screenId,\r\n\t\t\t\tMenuId: this.props.menuId\r\n\t\t\t},\r\n\t\t\tthis.ScreenCallback,\r\n\t\t\tthis.ErrorCallback\r\n\t\t);\r\n\t}\r\n\r\n\tValueChanged = (name, newValue) => {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model || {};\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tValueChecked = (e, x) => {\r\n\t\tthis.setState(state => ({\r\n\t\t\tcheckedValues: state.checkedValues.includes(x)\r\n\t\t\t\t? state.checkedValues.filter(c => c !== x)\r\n\t\t\t\t: [...state.checkedValues, x]\r\n\t\t}));\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { model, viewData, vModel } = this.state;\r\n\t\tvar messages = [];\r\n\r\n\t\tviewData.Inputs.map((input, i) => {\r\n\t\t\tif (input.InputType === \"date\" && model[input.Name] != null && model[input.Name] != \"\" && typeof model[input.Name] != \"object\") {\r\n\t\t\t\tmessages.push(
{input.LabelText ? input.LabelText : input.Name} is invalid
);\r\n\t\t\t\tvModel[input.Name] = false;\r\n\t\t\t}\r\n\t\t\tif (input.IsRequired) {\r\n\t\t\t\tif (!model[input.Name]) {\r\n\t\t\t\t\tmessages.push(
{input.LabelText ? input.LabelText : input.Name} cannot be empty
);\r\n\t\t\t\t\tvModel[input.Name] = true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tvModel[input.Name] = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn null;\r\n\t\t});\r\n\r\n\t\tthis.setState({ vModel });\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please fill required fields!\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\tValidateForSearch = () => {\r\n\t\tconst { model, viewData, vModel } = this.state;\r\n\t\tvar messages = [];\r\n\r\n\t\tviewData.Inputs.map((input, i) => {\r\n\t\t\tif (input.InputType === \"date\" && model[input.Name] != null && model[input.Name] != \"\" && typeof model[input.Name] != \"object\") {\r\n\t\t\t\tmessages.push(
{input.LabelText ? input.LabelText : input.Name} is invalid
);\r\n\t\t\t\tvModel[input.Name] = false;\r\n\t\t\t}\r\n\t\t\treturn null;\r\n\t\t});\r\n\r\n\t\tthis.setState({ vModel });\r\n\r\n\t\tif (messages.length > 0) {\r\n\t\t\tthis.ShowMessageNode(\"warning\", \"Please Fill Required Fields\", messages.map((x, i) =>
{x}
));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\tErrorCallback = (error) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tthis.ShowMessage(\"error\", \"Error\", error.message);\r\n\t}\r\n\r\n\tHandleSelectModel = (model, index) => {\r\n\t\tthis.setState({ model, selected: index });\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tthis.setState({ model: { ...this.initialModel }, list: [], selected: null });\r\n\t}\r\n\r\n\tScreenCallback = (responseData) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (responseData.Item != null) {\r\n\t\t\tthis.setState({ viewData: JSON.parse(responseData.Item.Data), isColumnsLoaded: true });\r\n\t\t\tif (this.props.setAppLeftTitle)\r\n\t\t\t\tthis.props.setAppLeftTitle(this.state.viewData.LeftTitle);\r\n\t\t\tif (this.props.setAppCenterTitle)\r\n\t\t\t\tthis.props.setAppCenterTitle(this.state.viewData.CenterTitle);\r\n\r\n\t\t\tthis.state.viewData.Inputs.forEach(input => {\r\n\t\t\t\tif (input.InputType == \"client\") {\r\n\t\t\t\t\tthis.ValueChanged(input.Name, this.state.uniqueClientId);\r\n\t\t\t\t\tthis.initialModel[input.Name] = this.state.uniqueClientId;\r\n\t\t\t\t}\r\n\t\t\t\tif (input.InputType.includes(\"date\") && input.HaveDefaultValue) {\r\n\t\t\t\t\tvar date = input.IncludeTime ? DateHelper.GetDateTime() : DateHelper.GetDate();\r\n\t\t\t\t\tif (input.Utc)\r\n\t\t\t\t\t\tdate = input.IncludeTime ? DateHelper.GetLocalDateTimeAsUtc() : DateHelper.GetLocalDateAsUtc();\r\n\r\n\t\t\t\t\tthis.ValueChanged(input.Name, date);\r\n\t\t\t\t\tthis.initialModel[input.Name] = date;\r\n\t\t\t\t}\r\n\t\t\t\tif (input.DefaultValue !== undefined) {\r\n\t\t\t\t\tthis.ValueChanged(input.Name, input.DefaultValue);\r\n\t\t\t\t\tthis.initialModel[input.Name] = input.DefaultValue;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\tthis.setState({ viewData: this.initialViewData });\r\n\t\t}\r\n\t}\r\n\r\n\tHandleCustomClick = (URL, method, action, value, type = GetType.BYPARAMETER) => {\r\n\t\tif (!this.ValidateForSearch())\r\n\t\t\treturn;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tthis.action = action;\r\n\t\tif (method == \"POST\") {\r\n\t\t\tProxy.POST(\r\n\t\t\t\tURL,\r\n\t\t\t\tvalue ? value : type == GetType.ALL ? this.initialModel : this.state.model,\r\n\t\t\t\tthis.CustomListCallback,\r\n\t\t\t\tthis.ErrorCallback\r\n\t\t\t);\r\n\t\t} else {\r\n\t\t\tProxy.GET(\r\n\t\t\t\tURL,\r\n\t\t\t\tthis.CustomListCallback,\r\n\t\t\t\tthis.ErrorCallback\r\n\t\t\t);\r\n\t\t}\r\n\t}\r\n\r\n\tHandleGetList = (type = GetType.BYPARAMETER) => {\r\n\t\tif (!this.ValidateForSearch())\r\n\t\t\treturn;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/dynamic/do\",\r\n\t\t\t{\r\n\t\t\t\toperation: \"GetByParameter\",\r\n\t\t\t\tscreenId: this.props.screenId,\r\n\t\t\t\tvalue: type == GetType.ALL ? this.initialModel : this.state.model,\r\n\t\t\t\tisReport: this.state.viewData.IsReport\r\n\t\t\t},\r\n\t\t\t(responseData) => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null && responseData.Item.length > 0) {\r\n\t\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\t\tif (this.state.viewData.IsAutoFill)\r\n\t\t\t\t\t\tthis.HandleSelectModel(this.state.list[0], !this.state.viewData.IsNotFillFromGrid ? 0 : null);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ list: [] });\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tthis.ErrorCallback\r\n\t\t);\r\n\t}\r\n\r\n\tCustomListCallback = (responseData) => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (responseData.Item != null && responseData.Item.length > 0) {\r\n\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\tif (this.state.viewData.IsAutoFill)\r\n\t\t\t\tthis.HandleSelectModel(this.state.list[0], !this.state.viewData.IsNotFillFromGrid ? 0 : null);\r\n\t\t} else {\r\n\t\t\tthis.setState({ list: [] });\r\n\t\t\tif (!this.state.viewData.IsReport && this.action !== \"Search\")\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Operation is successfully!\");\r\n\t\t}\r\n\t}\r\n\r\n\tHandleInsert = (workflowId, after, accessToken) => {\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/dynamic/do\",\r\n\t\t\t{\r\n\t\t\t\toperation: \"Insert\",\r\n\t\t\t\tscreenId: this.props.screenId,\r\n\t\t\t\tvalue: this.state.model\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.setState({ model: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t\tif (after) after();\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Added successfully!\");\r\n\t\t\t},\r\n\t\t\tthis.ErrorCallback,\r\n\t\t\tworkflowId,\r\n\t\t\taccessToken\r\n\t\t);\r\n\t}\r\n\r\n\tHandleUpdate = (workflowId, after, accessToken) => {\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/dynamic/do\",\r\n\t\t\t{\r\n\t\t\t\toperation: \"Update\",\r\n\t\t\t\tscreenId: this.props.screenId,\r\n\t\t\t\tvalue: this.state.model\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.setState({ model: responseData.Item });\r\n\t\t\t\t}\r\n\t\t\t\tif (after) after();\r\n\t\t\t\tthis.ShowMessage(\"success\", \"Updated successfully!\");\r\n\t\t\t},\r\n\t\t\tthis.ErrorCallback,\r\n\t\t\tworkflowId,\r\n\t\t\taccessToken\r\n\t\t);\r\n\t}\r\n\r\n\tHandleDelete = (workflowId, after, accessToken) => {\r\n\t\tthis.ShowConfirmMessage(\"warning\", \"Delete\", \"Are you sure to delete this record?\", () => {\r\n\t\t\tthis.setState({ isLoading: true, alert: \"\" });\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/coreapi/v1.0/dynamic/do\",\r\n\t\t\t\t{\r\n\t\t\t\t\toperation: \"Delete\",\r\n\t\t\t\t\tscreenId: this.props.screenId,\r\n\t\t\t\t\tvalue: { Id: this.state.model.Id }\r\n\t\t\t\t},\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (after) after();\r\n\t\t\t\t\tvar { list } = this.state;\r\n\t\t\t\t\tvar index = list.findIndex(x => x.Id == this.state.model.Id);\r\n\t\t\t\t\tif (index > -1) {\r\n\t\t\t\t\t\tlist.splice(index, 1);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.setState({ model: { ...this.initialModel }, list, selected: null });\r\n\t\t\t\t\tthis.ShowMessage(\"success\", \"Deleted successfully!\");\r\n\t\t\t\t},\r\n\t\t\t\tthis.ErrorCallback,\r\n\t\t\t\tworkflowId,\r\n\t\t\t\taccessToken\r\n\t\t\t);\r\n\t\t});\r\n\t}\r\n\r\n\tGetElementValue = (root, name) => {\r\n\t\tif (name.includes(\".\")) {\r\n\t\t\tvar res = name.split(\".\");\r\n\t\t\tvar firtRoot = res[0];\r\n\t\t\tname = name.substring(firtRoot.length + 1, name.length);\r\n\t\t\treturn this.GetElementValue(root[firtRoot], name);\r\n\t\t}\r\n\t\treturn root == null || root[name] == null ? \"\" : root[name];\r\n\r\n\t}\r\n\r\n\tHandleGetDocument = (type) => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tconst { list, viewData } = this.state;\r\n\t\tvar keyvalueList = [];\r\n\r\n\t\tlist.forEach(function (listElement) {\r\n\t\t\tvar keyValueObject = {};\r\n\t\t\tviewData.GridColumns.forEach(function (gridColumnElement) {\r\n\t\t\t\tvar valueItem = this.GetElementValue(listElement, gridColumnElement.ColumnName);\r\n\t\t\t\tkeyValueObject[gridColumnElement.ColumnName] = { value: valueItem, title: gridColumnElement.Title };\r\n\t\t\t}, this);\r\n\t\t\tkeyvalueList.push(keyValueObject);\r\n\t\t}, this);\r\n\r\n\t\tvar format = \"PDF\";\r\n\t\tif (type == DocumentType.Excel)\r\n\t\t\tformat = \"EXCEL\";\r\n\t\telse if (type == DocumentType.CSV)\r\n\t\t\tformat = \"CSV\";\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/report/CreateFileFromData\",\r\n\t\t\t{\r\n\t\t\t\tjsonFile: {\r\n\t\t\t\t\t\"title\": this.state.viewData.CenterTitle,\r\n\t\t\t\t\t\"screenId\": this.props.screenId,\r\n\t\t\t\t\t\"table\": keyvalueList,\r\n\t\t\t\t\t\"format\": format,\r\n\t\t\t\t\tvalue: type == GetType.ALL ? this.initialModel : this.state.model\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tthis.DocumentCallback,\r\n\t\t\tthis.ErrorCallback\r\n\t\t);\r\n\t}\r\n\r\n\tDocumentCallback = (response) => {\r\n\t\tif (!response.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", \"An error occurred while load file information\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isLoading: false });\r\n\t\tlet a = document.createElement(\"a\");\r\n\t\ta.style.display = \"none\";\r\n\t\tdocument.body.appendChild(a);\r\n\t\ta.href = \"data:application/octet-stream;base64,\" + response.Item.value;\r\n\t\tif (response.Item.format == \"PDF\")\r\n\t\t\ta.download = \"report.pdf\";\r\n\t\telse if (response.Item.format == \"EXCEL\")\r\n\t\t\ta.download = \"report.xlsx\";\r\n\t\telse if (response.Item.format == \"CSV\")\r\n\t\t\ta.download = \"report.csv\";\r\n\t\ta.click();\r\n\t}\r\n\r\n\tCancelClick = () => {\r\n\r\n\t}\r\n\r\n\tGetButtonList = () => {\r\n\t\tconst { model, viewData, checkedValues } = this.state;\r\n\t\tconst { Disabled } = this.props;\r\n\t\tvar searchButton = (viewData && viewData.ButtonOverrides) ? viewData.ButtonOverrides.find(k => k.Code === \"Search\") : null;\r\n\t\tconst list = [\r\n\t\t\t{\r\n\t\t\t\tCode: \"Search\", OnClick: this.HandleGetList, Disabled: Disabled || model.Id > 0, ModelFunction: () => model, FillDataFromModel: model => this.setState({ model }),\r\n\t\t\t\tValidationFunction: () => {\r\n\t\t\t\t\tif (searchButton && searchButton.IsInputRequired) {\r\n\t\t\t\t\t\treturn this.Validate();\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t{ Code: \"Clear\", OnClick: this.HandleClear, Disabled: Disabled },\r\n\t\t\t{ Code: \"Submit\", OnClick: this.HandleInsert, Disabled: Disabled || model.Id > 0, ModelFunction: () => model, FillDataFromModel: model => this.setState({ model }), ValidationFunction: this.Validate },\r\n\t\t\t{ Code: \"Update\", OnClick: this.HandleUpdate, Disabled: Disabled || model.Id === 0, ModelFunction: () => model, FillDataFromModel: model => this.setState({ model }), ValidationFunction: this.Validate },\r\n\t\t\t{ Code: \"Delete\", OnClick: this.HandleDelete, Disabled: Disabled || model.Id === 0, ModelFunction: () => model, FillDataFromModel: model => this.setState({ model }), ValidationFunction: this.Validate }\r\n\t\t];\r\n\r\n\t\tif (viewData.ButtonOverrides) {\r\n\t\t\tviewData.ButtonOverrides.filter(o => !list.find(o2 => o.Code === o2.Code)).map(d => {\r\n\t\t\t\tlist.push({\r\n\t\t\t\t\tCode: d.Code,\r\n\t\t\t\t\tOnClick: d.IsBulkOperation\r\n\t\t\t\t\t\t? () =>\r\n\t\t\t\t\t\t\tcheckedValues.forEach((val) => {\r\n\t\t\t\t\t\t\t\tthis.HandleCustomClick(d.URL, d.Method, d.Code, val);\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t: () => this.HandleCustomClick(d.URL, d.Method, d.Code),\r\n\t\t\t\t\tDisabled:\r\n\t\t\t\t\t\tDisabled || d.IsBulkOperation\r\n\t\t\t\t\t\t\t? Object.keys(checkedValues).length <= 0\r\n\t\t\t\t\t\t\t: false,\r\n\t\t\t\t});\r\n\t\t\t\treturn null;\r\n\t\t\t});\r\n\r\n\t\t\tthis.SetButton(viewData, list, \"Search\");\r\n\t\t\tthis.SetButton(viewData, list, \"Submit\");\r\n\t\t\tthis.SetButton(viewData, list, \"Update\");\r\n\t\t\tthis.SetButton(viewData, list, \"Delete\");\r\n\t\t\tthis.SetButton(viewData, list, \"Export\");\r\n\t\t}\r\n\t\treturn list;\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: \"\" })} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\r\n\tSetButton(viewData, list, buttonCode) {\r\n\t\tvar ButtonObj = viewData.ButtonOverrides.find(x => x.Code == buttonCode);\r\n\t\tif (ButtonObj) {\r\n\t\t\tvar index = list.findIndex(x => x.Code == buttonCode);\r\n\t\t\tif (ButtonObj.Hidden) {\r\n\t\t\t\tif (index > -1) {\r\n\t\t\t\t\tlist.splice(index, 1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (buttonCode === \"Export\" && ButtonObj.URL && ButtonObj.Method) {\r\n\t\t\t\tlist[index].OnClick = () => this.HandleExport();\r\n\t\t\t}\r\n\t\t\telse if (ButtonObj.URL && ButtonObj.Method) {\r\n\t\t\t\tlist[index].OnClick = () => this.HandleCustomClick(ButtonObj.URL, ButtonObj.Method, buttonCode);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn index;\r\n\t}\r\n\r\n\tValueChangedForReportType = (name, value) => {\r\n\t\tthis.setState({ [name]: value });\r\n\t}\r\n\r\n\tHandleExport = () => {\r\n\t\tconst { viewData } = this.state;\r\n\t\tvar genericColumns = [];\r\n\t\tviewData.GridColumns.forEach(c => {\r\n\t\t\tif (c.accessor != \"Actions\" && (c.show == undefined || c.show)) {\r\n\t\t\t\tgenericColumns.push({ value: c.ColumnName, title: c.Title, columntype: c.ColumnType, type: c.Type });\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: true, GridKeyValueList: genericColumns, ExportSelectedColumns: genericColumns });\r\n\t}\r\n\r\n\tExcelDownload = () => {\r\n\t\tconst { viewData } = this.state;\r\n\t\tlet exportDataURL = \"\";\r\n\t\tif (viewData.ButtonOverrides) {\r\n\t\t\tviewData.ButtonOverrides.map(d => {\r\n\t\t\t\tif (d.Code == \"Export\") {\r\n\t\t\t\t\texportDataURL = d.URL;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\tif (!this.state.ExportReportType) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Export Report Type not selected\", \"Select Export Report Type to continue\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.state.ExportReportType == \"PDF\" && this.state.ExportSelectedColumns.length > 15) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"PDF document cannot exceed 15 columns\", \"PDF document cannot exceed 15 columns\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setState({ isDownloadDialogOpen: false });\r\n\r\n\t\tif (!this.Validate())\r\n\t\t\treturn;\r\n\r\n\t\tconst temp = { ...this.state.model };\r\n\r\n\t\tvar jsonColList = [];\r\n\r\n\t\tvar genericColumns = {};\r\n\t\tthis.state.ExportSelectedColumns.map(c => {\r\n\t\t\tgenericColumns[c.value] = { value: c.value, title: c.title, columntype: c.columntype, type: c.type };\r\n\t\t});\r\n\t\tjsonColList.push(genericColumns);\r\n\r\n\t\tvar mytitle = this.state.viewData.LeftTitle;\r\n\r\n\t\ttemp.jsonFile = {\r\n\t\t\tcolmns: jsonColList,\r\n\t\t\tformat: this.state.ExportReportType,\r\n\t\t\ttitle: mytitle\r\n\t\t};\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.DownloadGeneratedFile(\r\n\t\t\texportDataURL,\r\n\t\t\ttemp,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terrorMessage => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", errorMessage);\r\n\t\t\t},\r\n\t\t\tthis.props.showMessage\r\n\t\t);\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { alert, isLoading, viewData } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ ExportSelectedColumns: value })}\r\n\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\tname=\"columns\"\r\n\t\t\t\t\t\t\t\tgetOptionLabel={d => d.title}\r\n\t\t\t\t\t\t\t\toptions={this.state.GridKeyValueList}\r\n\t\t\t\t\t\t\t\tclassName=\"basic-multi-select\"\r\n\t\t\t\t\t\t\t\tclassNamePrefix=\"select\"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{!this.state.viewData.IsFilterPanelHidden &&\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t{viewData.GridColumns &&\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nGenericScreen.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tscreenId: PropTypes.number,\r\n\tsetAppLeftTitle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func\r\n};\r\n\r\nexport default withArtifex(GenericScreen, {});","import {\r\n\tcardBoxShadow\r\n} from \"assets/jss/material-dashboard-pro-react.jsx\";\r\n\r\nconst cardStyle = {\r\n\tcard: {\r\n\t\tborder: \"0\",\r\n\t\t// marginBottom: \"30px\",\r\n\t\tmarginBottom: \"10px\",\r\n\t\t// marginTop: \"30px\",\r\n\t\tmarginTop: \"10px\",\r\n\t\tborderRadius: \"6px\",\r\n\t\tcolor: \"rgba(0, 0, 0, 1)\",\r\n\t\tbackground: \"#fff\",\r\n\t\twidth: \"100%\",\r\n\t\tboxShadow: \"0 1px 4px 0 rgba(0, 0, 0, 0.14)\",\r\n\t\tposition: \"relative\",\r\n\t\tdisplay: \"flex\",\r\n\t\tflexDirection: \"column\",\r\n\t\tminWidth: \"0\",\r\n\t\twordWrap: \"break-word\",\r\n\t\tfontSize: \".875rem\",\r\n\t\t...cardBoxShadow\r\n\t},\r\n\tcardPlain: {\r\n\t\tbackground: \"transparent\",\r\n\t\tboxShadow: \"none\"\r\n\t},\r\n\tcardProfile: {\r\n\t\tmarginTop: \"30px\",\r\n\t\ttextAlign: \"center\"\r\n\t},\r\n\tcardBlog: {\r\n\t\tmarginTop: \"60px\"\r\n\t},\r\n\tcardRaised: {\r\n\t\tboxShadow:\r\n\t\t\t\"0 16px 38px -12px rgba(0, 0, 0, 0.56), 0 4px 25px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2)\"\r\n\t},\r\n\tcardBackground: {\r\n\t\tbackgroundPosition: \"center center\",\r\n\t\tbackgroundSize: \"cover\",\r\n\t\ttextAlign: \"center\",\r\n\t\t\"&:after\": {\r\n\t\t\tposition: \"absolute\",\r\n\t\t\tzIndex: \"1\",\r\n\t\t\twidth: \"100%\",\r\n\t\t\theight: \"100%\",\r\n\t\t\tdisplay: \"block\",\r\n\t\t\tleft: \"0\",\r\n\t\t\ttop: \"0\",\r\n\t\t\tcontent: \"\\\"\\\"\",\r\n\t\t\tbackgroundColor: \"rgba(0, 0, 0, 0.56)\",\r\n\t\t\tborderRadius: \"6px\"\r\n\t\t},\r\n\t\t\"& small\": {\r\n\t\t\tcolor: \"rgba(255, 255, 255, 0.7) !important\"\r\n\t\t}\r\n\t},\r\n\tcardPricing: {\r\n\t\ttextAlign: \"center\",\r\n\t\t\"&:after\": {\r\n\t\t\tbackgroundColor: \"rgba(0, 0, 0, 0.7) !important\"\r\n\t\t},\r\n\t\t\"& ul\": {\r\n\t\t\tlistStyle: \"none\",\r\n\t\t\tpadding: 0,\r\n\t\t\tmaxWidth: \"240px\",\r\n\t\t\tmargin: \"10px auto\"\r\n\t\t},\r\n\t\t\"& ul li\": {\r\n\t\t\tcolor: \"#999999\",\r\n\t\t\ttextAlign: \"center\",\r\n\t\t\tpadding: \"12px 0px\",\r\n\t\t\tborderBottom: \"1px solid rgba(153,153,153,0.3)\"\r\n\t\t},\r\n\t\t\"& ul li:last-child\": {\r\n\t\t\tborder: 0\r\n\t\t},\r\n\t\t\"& ul li b\": {\r\n\t\t\tcolor: \"#3c4858\"\r\n\t\t},\r\n\t\t\"& h1\": {\r\n\t\t\tmarginTop: \"30px\"\r\n\t\t},\r\n\t\t\"& h1 small\": {\r\n\t\t\tdisplay: \"inline-flex\",\r\n\t\t\theight: 0,\r\n\t\t\tfontSize: \"18px\"\r\n\t\t},\r\n\t\t\"& h1 small:first-child\": {\r\n\t\t\tposition: \"relative\",\r\n\t\t\ttop: \"-17px\",\r\n\t\t\tfontSize: \"26px\"\r\n\t\t},\r\n\t\t\"& ul li svg, & ul li .fab,& ul li .fas,& ul li .far,& ul li .fal,& ul li .material-icons\": {\r\n\t\t\tposition: \"relative\",\r\n\t\t\ttop: \"7px\"\r\n\t\t}\r\n\t},\r\n\tcardPricingColor: {\r\n\t\t\"& ul li\": {\r\n\t\t\tcolor: \"#fff\",\r\n\t\t\tborderColor: \"rgba(255,255,255,0.3)\",\r\n\t\t\t\"& b, & svg,& .fab,& .fas,& .far,& .fal,& .material-icons\": {\r\n\t\t\t\tcolor: \"#fff\",\r\n\t\t\t\tfontWeight: \"700\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\tcardProduct: {\r\n\t\tmarginTop: \"30px\"\r\n\t},\r\n\tprimary: {\r\n\t\tbackground: \"linear-gradient(60deg,#ab47bc,#7b1fa2)\",\r\n\t\t\"& h1 small\": {\r\n\t\t\tcolor: \"rgba(255, 255, 255, 0.8)\"\r\n\t\t},\r\n\t\tcolor: \"#FFFFFF\"\r\n\t},\r\n\tinfo: {\r\n\t\tbackground: \"linear-gradient(60deg,#26c6da,#0097a7)\",\r\n\t\t\"& h1 small\": {\r\n\t\t\tcolor: \"rgba(255, 255, 255, 0.8)\"\r\n\t\t},\r\n\t\tcolor: \"#FFFFFF\"\r\n\t},\r\n\tsuccess: {\r\n\t\tbackground: \"linear-gradient(60deg,#66bb6a,#388e3c)\",\r\n\t\t\"& h1 small\": {\r\n\t\t\tcolor: \"rgba(255, 255, 255, 0.8)\"\r\n\t\t},\r\n\t\tcolor: \"#FFFFFF\"\r\n\t},\r\n\twarning: {\r\n\t\tbackground: \"linear-gradient(60deg,#ffa726,#f57c00)\",\r\n\t\t\"& h1 small\": {\r\n\t\t\tcolor: \"rgba(255, 255, 255, 0.8)\"\r\n\t\t},\r\n\t\tcolor: \"#FFFFFF\"\r\n\t},\r\n\tdanger: {\r\n\t\tbackground: \"linear-gradient(60deg,#ef5350,#d32f2f)\",\r\n\t\t\"& h1 small\": {\r\n\t\t\tcolor: \"rgba(255, 255, 255, 0.8)\"\r\n\t\t},\r\n\t\tcolor: \"#FFFFFF\"\r\n\t},\r\n\trose: {\r\n\t\tbackground: \"linear-gradient(60deg,#ec407a,#c2185b)\",\r\n\t\t\"& h1 small\": {\r\n\t\t\tcolor: \"rgba(255, 255, 255, 0.8)\"\r\n\t\t},\r\n\t\tcolor: \"#FFFFFF\"\r\n\t},\r\n\tcardChart: {\r\n\t\t\"& p\": {\r\n\t\t\tmarginTop: \"0px\",\r\n\t\t\tpaddingTop: \"0px\"\r\n\t\t}\r\n\t},\r\n\tcardLogin: {\r\n\t\ttransform: \"translate3d(0, 0, 0)\",\r\n\t\ttransition: \"all 300ms linear\"\r\n\t}\r\n};\r\n\r\nexport default cardStyle;\r\n","const cardBodyStyle = {\r\n\tcardBody: {\r\n\t\t// PRIMEFOR padding: \"0.9375rem 20px\",\r\n\t\tpadding: \"4px 4px 8px 4px\",\r\n\t\tflex: \"1 1 auto\",\r\n\t\tWebkitBoxFlex: \"1\",\r\n\t\tposition: \"relative\"\r\n\t},\r\n\tcardBodyBackground: {\r\n\t\tposition: \"relative\",\r\n\t\tzIndex: \"2\",\r\n\t\tminHeight: \"280px\",\r\n\t\tpaddingTop: \"40px\",\r\n\t\tpaddingBottom: \"40px\",\r\n\t\tmaxWidth: \"440px\",\r\n\t\tmargin: \"0 auto\"\r\n\t},\r\n\tcardBodyPlain: {\r\n\t\tpaddingLeft: \"5px\",\r\n\t\tpaddingRight: \"5px\"\r\n\t},\r\n\tcardBodyFormHorizontal: {\r\n\t\tpaddingLeft: \"15px\",\r\n\t\tpaddingRight: \"15px\",\r\n\t\t\"& form\": {\r\n\t\t\tmargin: \"0\"\r\n\t\t}\r\n\t},\r\n\tcardPricing: {\r\n\t\tpadding: \"15px!important\",\r\n\t\tmargin: \"0px!important\"\r\n\t},\r\n\tcardSignup: {\r\n\t\tpadding: \"0px 30px 0px 30px\"\r\n\t},\r\n\tcardBodyColor: {\r\n\t\tborderRadius: \"6px\",\r\n\t\t\"&\": {\r\n\t\t\t\"h1, h2, h3\": {\r\n\t\t\t\t\"& small\": {\r\n\t\t\t\t\tcolor: \"rgba(255, 255, 255, 0.8)\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\tcardBodyProfile: {\r\n\t\tmarginTop: \"15px\"\r\n\t},\r\n\tcardBodyCalendar: {\r\n\t\tpadding: \"0px !important\"\r\n\t}\r\n};\r\n\r\nexport default cardBodyStyle;\r\n","import { ContentState, convertToRaw, EditorState } from \"draft-js\";\r\nimport draftToHtml from \"draftjs-to-html\";\r\nimport htmlToDraft from \"html-to-draftjs\";\r\nimport { Parser as HtmlToReactParser } from \"html-to-react\";\r\n\r\n/**\r\n * @param {string} htmlInput\r\n */\r\nfunction HtmlContentToReact(htmlInput) {\r\n\tvar htmlToReactParser = HtmlToReactParser();\r\n\tvar reactElement = htmlToReactParser.parse(htmlInput);\r\n\r\n\treturn reactElement;\r\n}\r\n\r\nfunction EmptyEditorContent() {\r\n\tconst html = \"

\";\r\n\tvar contentBlock = htmlToDraft(html);\r\n\tvar contentState = ContentState.createFromBlockArray(contentBlock.contentBlocks);\r\n\tconst editorState = EditorState.createWithContent(contentState);\r\n\treturn editorState;\r\n}\r\n\r\n/**\r\n * @param {object} model\r\n */\r\nfunction EditorContentToHtml(model) {\r\n\treturn draftToHtml(convertToRaw(model.getCurrentContent()));\r\n}\r\n\r\n/**\r\n * @param {object} model\r\n */\r\nfunction EditorContentToText(model) {\r\n\tvar html = draftToHtml(convertToRaw(model.getCurrentContent()));\r\n\t//\tvar str = html.replace(/<\\/?[^>]+>/ig, \" \");\r\n\t//\tstr = str.replace(\" \", \" \");\r\n\t//\treturn str;\r\n\tvar tmp = document.createElement(\"DIV\");\r\n\ttmp.innerHTML = html;\r\n\treturn tmp.textContent || tmp.innerText || \"\";\r\n}\r\n\r\n/**\r\n * @param {string} html\r\n */\r\nfunction HtmlToEditorContent(html) {\r\n\tvar contentBlock = htmlToDraft(html);\r\n\tvar contentState = ContentState.createFromBlockArray(contentBlock.contentBlocks);\r\n\tconst editorState = EditorState.createWithContent(contentState);\r\n\treturn editorState;\r\n}\r\n\r\nconst HtmlEditorHelper = {\r\n\tHtmlContentToReact,\r\n\tEmptyEditorContent,\r\n\tEditorContentToHtml,\r\n\tEditorContentToText,\r\n\tHtmlToEditorContent\r\n};\r\n\r\nexport default HtmlEditorHelper;","import GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport AlertHelper from \"core/AlertHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport { Link } from \"react-router-dom\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ToolbarButton from \"views/Components/ToolbarButton\";\r\n\r\nclass ErrorPage extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tisLoading: false,\r\n\t\t\talert: null\r\n\t\t};\r\n\r\n\t\tthis.ReportClick = this.ReportClick.bind(this);\r\n\r\n\t\tthis.ShowMessage = this.ShowMessage.bind(this);\r\n\t\tthis.hideAlert = this.hideAlert.bind(this);\r\n\r\n\t\tthis.cardMediaStyle = {\r\n\t\t\theight: \"76px\", marginLeft: \"auto\", marginRight: \"auto\", marginTop: 50,\r\n\t\t\tbackgroundSize: \"100% 100%\", objectFit: \"contain\"\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidCatch(error, info) {\r\n\t\tconsole.error(\"error: \" + error.message);\r\n\t\tconsole.error(\"errorInfo: \" + info.componentStack);\r\n\t}\r\n\r\n\tReportClick() {\r\n\r\n\t\tconst { errorMessage, componentStack, url } = this.props;\r\n\r\n\t\tvar request = {\r\n\t\t\tDescription: errorMessage,\r\n\t\t\tDetail: componentStack,\r\n\t\t\tUrl: url\r\n\t\t};\r\n\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\"/coreapi/v1.0/ErrorReport/Report\",\r\n\t\t\trequest,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.ShowMessage(\"info\", \"Info\", \"Error reported.\");\r\n\t\t\t},\r\n\t\t\te => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"An error occurred while load file information\", typeof e == \"object\" ? JSON.stringify(e) : e);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tShowMessage(type, title, message) {\r\n\t\tthis.setState({ alert: AlertHelper.CreateAlert(title, message, type, this.hideAlert) });\r\n\t}\r\n\r\n\thideAlert() {\r\n\t\tthis.setState({ alert: null });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { isLoading, alert } = this.state;\r\n\t\tconst logo = require(\"assets/img/\" + window.MainLogo);\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\"logo\"\r\n\t\t\t\t\t\t

We're here to help.

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t

Sorry, we're looking to what happened.

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tHome\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t     \r\n\t\t\t\t\t\tReport\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t Create EFT \r\n\t\t\t\t\t\t Create e-Transfer \r\n\t\t\t\t\t\t Create Wire Transfer \r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nErrorPage.defaultProps = {\r\n\terrorMessage: \"Unknown Error Occured\",\r\n\tcomponentStack: \"\",\r\n\turl: \"/Unknown\"\r\n};\r\n\r\nErrorPage.propTypes = {\r\n\terrorMessage: PropTypes.string,\r\n\tcomponentStack: PropTypes.string,\r\n\turl: PropTypes.string\r\n};\r\n\r\nexport default ErrorPage;","import buttonStyle from \"./buttonStyle.jsx\";\r\n\r\nconst genericAlertStyle = {\r\n\tcardTitle: {\r\n\t\tmarginTop: \"0\",\r\n\t\tmarginBottom: \"3px\",\r\n\t\tcolor: \"#3C4858\",\r\n\t\tfontSize: \"18px\"\r\n\t},\r\n\tcenter: {\r\n\t\ttextAlign: \"center\"\r\n\t},\r\n\tright: {\r\n\t\ttextAlign: \"right\"\r\n\t},\r\n\tleft: {\r\n\t\ttextAlign: \"left\"\r\n\t},\r\n\t...buttonStyle,\r\n\tmain: {\r\n\t\tdisplay: \"block\",\r\n\t\tborder: \"solid 2px #f57f29\"\r\n\t},\r\n\tcontent: {\r\n\t\tfontSize: \"20px\",\r\n\t\tlineHeight: \"22px\"\r\n\t},\r\n\tdialogTitle: {\r\n\t\tpadding: \"5px 5px 5px\"\r\n\t},\r\n\tdialogTitleText: {\r\n\t\tmaxWidth: \"89%\"\r\n\t},\r\n\tdialogContent: {\r\n\t\tfontSize: 14,\r\n\t\tpadding: \"0 15px 5px\"\r\n\t},\r\n\talertButton:{\r\n\t\tpadding: \"12px 30px !important\", \r\n\t\tbackgroundColor: \"gray !important\" \r\n\t}\r\n};\r\n\r\nexport default genericAlertStyle;","// ##############################\r\n// // // Button styles\r\n// #############################\r\n\r\nimport {\r\n\tgrayColor,\r\n\troseColor,\r\n\tprimaryColor,\r\n\tinfoColor,\r\n\tsuccessColor,\r\n\twarningColor,\r\n\tdangerColor\r\n} from \"./default.jsx\";\r\n\r\nimport {\r\n\tblackColor\r\n} from \"assets/jss/material-dashboard-pro-react.jsx\";\r\n\r\n\r\nconst buttonStyle = {\r\n\tbutton: {\r\n\t\tminHeight: \"auto\",\r\n\t\tminWidth: \"auto\",\r\n\t\tbackgroundColor: grayColor,\r\n\t\tcolor: \"#FFFFFF\",\r\n\t\tboxShadow:\r\n\t\t\t\"0 2px 2px 0 rgba(153, 153, 153, 0.14), 0 3px 1px -2px rgba(153, 153, 153, 0.2), 0 1px 5px 0 rgba(153, 153, 153, 0.12)\",\r\n\t\tborder: \"none\",\r\n\t\tborderRadius: \"3px\",\r\n\t\tposition: \"relative\",\r\n\t\tpadding: \"12px 30px\",\r\n\t\tmargin: \".3125rem 1px\",\r\n\t\tfontSize: \"12px\",\r\n\t\tfontWeight: \"400\",\r\n\t\ttextTransform: \"uppercase\",\r\n\t\tletterSpacing: \"0\",\r\n\t\twillChange: \"box-shadow, transform\",\r\n\t\ttransition:\r\n\t\t\t\"box-shadow 0.2s cubic-bezier(0.4, 0, 1, 1), background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1)\",\r\n\t\tlineHeight: \"1.42857143\",\r\n\t\ttextAlign: \"center\",\r\n\t\twhiteSpace: \"nowrap\",\r\n\t\tverticalAlign: \"middle\",\r\n\t\ttouchAction: \"manipulation\",\r\n\t\tcursor: \"pointer\",\r\n\t\t\"&:hover,&:focus\": {\r\n\t\t\tcolor: \"#FFFFFF\",\r\n\t\t\tbackgroundColor: grayColor,\r\n\t\t\tboxShadow:\r\n\t\t\t\t\"0 14px 26px -12px rgba(153, 153, 153, 0.42), 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(153, 153, 153, 0.2)\"\r\n\t\t},\r\n\t\t\"& .fab,& .fas,& .far,& .fal,& .material-icons\": {\r\n\t\t\tposition: \"relative\",\r\n\t\t\tdisplay: \"inline-block\",\r\n\t\t\ttop: \"0\",\r\n\t\t\tmarginTop: \"-1em\",\r\n\t\t\tmarginBottom: \"-1em\",\r\n\t\t\tfontSize: \"1.1rem\",\r\n\t\t\tmarginRight: \"4px\",\r\n\t\t\tverticalAlign: \"middle\"\r\n\t\t},\r\n\t\t\"& svg\": {\r\n\t\t\tposition: \"relative\",\r\n\t\t\tdisplay: \"inline-block\",\r\n\t\t\ttop: \"0\",\r\n\t\t\twidth: \"18px\",\r\n\t\t\theight: \"18px\",\r\n\t\t\tmarginRight: \"4px\",\r\n\t\t\tverticalAlign: \"middle\"\r\n\t\t},\r\n\t\t\"&$justIcon\": {\r\n\t\t\t\"& .fab,& .fas,& .far,& .fal,& .material-icons\": {\r\n\t\t\t\tmarginTop: \"0px\",\r\n\t\t\t\tposition: \"absolute\",\r\n\t\t\t\twidth: \"100%\",\r\n\t\t\t\ttransform: \"none\",\r\n\t\t\t\tleft: \"0px\",\r\n\t\t\t\ttop: \"0px\",\r\n\t\t\t\theight: \"100%\",\r\n\t\t\t\tlineHeight: \"41px\",\r\n\t\t\t\tfontSize: \"20px\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\tfullWidth: {\r\n\t\twidth: \"100%\"\r\n\t},\r\n\tprimary: {\r\n\t\tbackgroundColor: primaryColor,\r\n\t\tboxShadow:\r\n\t\t\t\"0 2px 2px 0 rgba(156, 39, 176, 0.14), 0 3px 1px -2px rgba(156, 39, 176, 0.2), 0 1px 5px 0 rgba(156, 39, 176, 0.12)\",\r\n\t\t\"&:hover,&:focus\": {\r\n\t\t\tbackgroundColor: primaryColor,\r\n\t\t\tboxShadow:\r\n\t\t\t\t\"0 14px 26px -12px rgba(156, 39, 176, 0.42), 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(156, 39, 176, 0.2)\"\r\n\t\t}\r\n\t},\r\n\tinfo: {\r\n\t\tbackgroundColor: infoColor,\r\n\t\tboxShadow:\r\n\t\t\t\"0 2px 2px 0 rgba(0, 188, 212, 0.14), 0 3px 1px -2px rgba(0, 188, 212, 0.2), 0 1px 5px 0 rgba(0, 188, 212, 0.12)\",\r\n\t\t\"&:hover,&:focus\": {\r\n\t\t\tbackgroundColor: infoColor,\r\n\t\t\tboxShadow:\r\n\t\t\t\t\"0 14px 26px -12px rgba(0, 188, 212, 0.42), 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 188, 212, 0.2)\"\r\n\t\t}\r\n\t},\r\n\tsuccess: {\r\n\t\tbackgroundColor: successColor,\r\n\t\tboxShadow:\r\n\t\t\t\"0 2px 2px 0 rgba(76, 175, 80, 0.14), 0 3px 1px -2px rgba(76, 175, 80, 0.2), 0 1px 5px 0 rgba(76, 175, 80, 0.12)\",\r\n\t\t\"&:hover,&:focus\": {\r\n\t\t\tbackgroundColor: successColor,\r\n\t\t\tboxShadow:\r\n\t\t\t\t\"0 14px 26px -12px rgba(76, 175, 80, 0.42), 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(76, 175, 80, 0.2)\"\r\n\t\t}\r\n\t},\r\n\twarning: {\r\n\t\tbackgroundColor: warningColor,\r\n\t\tboxShadow:\r\n\t\t\t\"0 2px 2px 0 rgba(255, 152, 0, 0.14), 0 3px 1px -2px rgba(255, 152, 0, 0.2), 0 1px 5px 0 rgba(255, 152, 0, 0.12)\",\r\n\t\t\"&:hover,&:focus\": {\r\n\t\t\tbackgroundColor: warningColor,\r\n\t\t\tboxShadow:\r\n\t\t\t\t\"0 14px 26px -12px rgba(255, 152, 0, 0.42), 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(255, 152, 0, 0.2)\"\r\n\t\t}\r\n\t},\r\n\tdanger: {\r\n\t\tbackgroundColor: dangerColor,\r\n\t\tboxShadow:\r\n\t\t\t\"0 2px 2px 0 rgba(244, 67, 54, 0.14), 0 3px 1px -2px rgba(244, 67, 54, 0.2), 0 1px 5px 0 rgba(244, 67, 54, 0.12)\",\r\n\t\t\"&:hover,&:focus\": {\r\n\t\t\tbackgroundColor: dangerColor,\r\n\t\t\tboxShadow:\r\n\t\t\t\t\"0 14px 26px -12px rgba(244, 67, 54, 0.42), 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(244, 67, 54, 0.2)\"\r\n\t\t}\r\n\t},\r\n\trose: {\r\n\t\tbackgroundColor: roseColor,\r\n\t\tboxShadow:\r\n\t\t\t\"0 2px 2px 0 rgba(233, 30, 99, 0.14), 0 3px 1px -2px rgba(233, 30, 99, 0.2), 0 1px 5px 0 rgba(233, 30, 99, 0.12)\",\r\n\t\t\"&:hover,&:focus\": {\r\n\t\t\tbackgroundColor: roseColor,\r\n\t\t\tboxShadow:\r\n\t\t\t\t\"0 14px 26px -12px rgba(233, 30, 99, 0.42), 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(233, 30, 99, 0.2)\"\r\n\t\t}\r\n\t},\r\n\twhite: {\r\n\t\t\"&,&:focus,&:hover\": {\r\n\t\t\tbackgroundColor: \"#FFFFFF\",\r\n\t\t\tcolor: grayColor\r\n\t\t}\r\n\t},\r\n\ttwitter: {\r\n\t\tbackgroundColor: \"#55acee\",\r\n\t\tcolor: \"#fff\",\r\n\t\tboxShadow:\r\n\t\t\t\"0 2px 2px 0 rgba(85, 172, 238, 0.14), 0 3px 1px -2px rgba(85, 172, 238, 0.2), 0 1px 5px 0 rgba(85, 172, 238, 0.12)\",\r\n\t\t\"&:hover,&:focus,&:visited\": {\r\n\t\t\tbackgroundColor: \"#55acee\",\r\n\t\t\tcolor: \"#fff\",\r\n\t\t\tboxShadow:\r\n\t\t\t\t\"0 14px 26px -12px rgba(85, 172, 238, 0.42), 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(85, 172, 238, 0.2)\"\r\n\t\t}\r\n\t},\r\n\tfacebook: {\r\n\t\tbackgroundColor: \"#3b5998\",\r\n\t\tcolor: \"#fff\",\r\n\t\tboxShadow:\r\n\t\t\t\"0 2px 2px 0 rgba(59, 89, 152, 0.14), 0 3px 1px -2px rgba(59, 89, 152, 0.2), 0 1px 5px 0 rgba(59, 89, 152, 0.12)\",\r\n\t\t\"&:hover,&:focus\": {\r\n\t\t\tbackgroundColor: \"#3b5998\",\r\n\t\t\tcolor: \"#fff\",\r\n\t\t\tboxShadow:\r\n\t\t\t\t\"0 14px 26px -12px rgba(59, 89, 152, 0.42), 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(59, 89, 152, 0.2)\"\r\n\t\t}\r\n\t},\r\n\tgoogle: {\r\n\t\tbackgroundColor: \"#dd4b39\",\r\n\t\tcolor: \"#fff\",\r\n\t\tboxShadow:\r\n\t\t\t\"0 2px 2px 0 rgba(221, 75, 57, 0.14), 0 3px 1px -2px rgba(221, 75, 57, 0.2), 0 1px 5px 0 rgba(221, 75, 57, 0.12)\",\r\n\t\t\"&:hover,&:focus\": {\r\n\t\t\tbackgroundColor: \"#dd4b39\",\r\n\t\t\tcolor: \"#fff\",\r\n\t\t\tboxShadow:\r\n\t\t\t\t\"0 14px 26px -12px rgba(221, 75, 57, 0.42), 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(221, 75, 57, 0.2)\"\r\n\t\t}\r\n\t},\r\n\tlinkedin: {\r\n\t\tbackgroundColor: \"#0976b4\",\r\n\t\tcolor: \"#fff\",\r\n\t\tboxShadow:\r\n\t\t\t\"0 2px 2px 0 rgba(9, 118, 180, 0.14), 0 3px 1px -2px rgba(9, 118, 180, 0.2), 0 1px 5px 0 rgba(9, 118, 180, 0.12)\",\r\n\t\t\"&:hover,&:focus\": {\r\n\t\t\tbackgroundColor: \"#0976b4\",\r\n\t\t\tcolor: \"#fff\",\r\n\t\t\tboxShadow:\r\n\t\t\t\t\"0 14px 26px -12px rgba(9, 118, 180, 0.42), 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(9, 118, 180, 0.2)\"\r\n\t\t}\r\n\t},\r\n\tpinterest: {\r\n\t\tbackgroundColor: \"#cc2127\",\r\n\t\tcolor: \"#fff\",\r\n\t\tboxShadow:\r\n\t\t\t\"0 2px 2px 0 rgba(204, 33, 39, 0.14), 0 3px 1px -2px rgba(204, 33, 39, 0.2), 0 1px 5px 0 rgba(204, 33, 39, 0.12)\",\r\n\t\t\"&:hover,&:focus\": {\r\n\t\t\tbackgroundColor: \"#cc2127\",\r\n\t\t\tcolor: \"#fff\",\r\n\t\t\tboxShadow:\r\n\t\t\t\t\"0 14px 26px -12px rgba(204, 33, 39, 0.42), 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(204, 33, 39, 0.2)\"\r\n\t\t}\r\n\t},\r\n\tyoutube: {\r\n\t\tbackgroundColor: \"#e52d27\",\r\n\t\tcolor: \"#fff\",\r\n\t\tboxShadow:\r\n\t\t\t\"0 2px 2px 0 rgba(229, 45, 39, 0.14), 0 3px 1px -2px rgba(229, 45, 39, 0.2), 0 1px 5px 0 rgba(229, 45, 39, 0.12)\",\r\n\t\t\"&:hover,&:focus\": {\r\n\t\t\tbackgroundColor: \"#e52d27\",\r\n\t\t\tcolor: \"#fff\",\r\n\t\t\tboxShadow:\r\n\t\t\t\t\"0 14px 26px -12px rgba(229, 45, 39, 0.42), 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(229, 45, 39, 0.2)\"\r\n\t\t}\r\n\t},\r\n\ttumblr: {\r\n\t\tbackgroundColor: \"#35465c\",\r\n\t\tcolor: \"#fff\",\r\n\t\tboxShadow:\r\n\t\t\t\"0 2px 2px 0 rgba(53, 70, 92, 0.14), 0 3px 1px -2px rgba(53, 70, 92, 0.2), 0 1px 5px 0 rgba(53, 70, 92, 0.12)\",\r\n\t\t\"&:hover,&:focus\": {\r\n\t\t\tbackgroundColor: \"#35465c\",\r\n\t\t\tcolor: \"#fff\",\r\n\t\t\tboxShadow:\r\n\t\t\t\t\"0 14px 26px -12px rgba(53, 70, 92, 0.42), 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(53, 70, 92, 0.2)\"\r\n\t\t}\r\n\t},\r\n\tgithub: {\r\n\t\tbackgroundColor: \"#333333\",\r\n\t\tcolor: \"#fff\",\r\n\t\tboxShadow:\r\n\t\t\t\"0 2px 2px 0 rgba(51, 51, 51, 0.14), 0 3px 1px -2px rgba(51, 51, 51, 0.2), 0 1px 5px 0 rgba(51, 51, 51, 0.12)\",\r\n\t\t\"&:hover,&:focus\": {\r\n\t\t\tbackgroundColor: \"#333333\",\r\n\t\t\tcolor: \"#fff\",\r\n\t\t\tboxShadow:\r\n\t\t\t\t\"0 14px 26px -12px rgba(51, 51, 51, 0.42), 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(51, 51, 51, 0.2)\"\r\n\t\t}\r\n\t},\r\n\tbehance: {\r\n\t\tbackgroundColor: \"#1769ff\",\r\n\t\tcolor: \"#fff\",\r\n\t\tboxShadow:\r\n\t\t\t\"0 2px 2px 0 rgba(23, 105, 255, 0.14), 0 3px 1px -2px rgba(23, 105, 255, 0.2), 0 1px 5px 0 rgba(23, 105, 255, 0.12)\",\r\n\t\t\"&:hover,&:focus\": {\r\n\t\t\tbackgroundColor: \"#1769ff\",\r\n\t\t\tcolor: \"#fff\",\r\n\t\t\tboxShadow:\r\n\t\t\t\t\"0 14px 26px -12px rgba(23, 105, 255, 0.42), 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(23, 105, 255, 0.2)\"\r\n\t\t}\r\n\t},\r\n\tdribbble: {\r\n\t\tbackgroundColor: \"#ea4c89\",\r\n\t\tcolor: \"#fff\",\r\n\t\tboxShadow:\r\n\t\t\t\"0 2px 2px 0 rgba(234, 76, 137, 0.14), 0 3px 1px -2px rgba(234, 76, 137, 0.2), 0 1px 5px 0 rgba(234, 76, 137, 0.12)\",\r\n\t\t\"&:hover,&:focus\": {\r\n\t\t\tbackgroundColor: \"#ea4c89\",\r\n\t\t\tcolor: \"#fff\",\r\n\t\t\tboxShadow:\r\n\t\t\t\t\"0 14px 26px -12px rgba(234, 76, 137, 0.42), 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(234, 76, 137, 0.2)\"\r\n\t\t}\r\n\t},\r\n\treddit: {\r\n\t\tbackgroundColor: \"#ff4500\",\r\n\t\tcolor: \" #fff\",\r\n\t\tboxShadow:\r\n\t\t\t\"0 2px 2px 0 rgba(255, 69, 0, 0.14), 0 3px 1px -2px rgba(255, 69, 0, 0.2), 0 1px 5px 0 rgba(255, 69, 0, 0.12)\",\r\n\t\t\"&:hover,&:focus\": {\r\n\t\t\tbackgroundColor: \"#ff4500\",\r\n\t\t\tcolor: \" #fff\",\r\n\t\t\tboxShadow:\r\n\t\t\t\t\"0 14px 26px -12px rgba(255, 69, 0, 0.42), 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(255, 69, 0, 0.2)\"\r\n\t\t}\r\n\t},\r\n\tsimple: {\r\n\t\t\"&,&:focus,&:hover\": {\r\n\t\t\tcolor: \"#FFFFFF\",\r\n\t\t\tbackground: \"transparent\",\r\n\t\t\tboxShadow: \"none\"\r\n\t\t},\r\n\t\t\"&$primary\": {\r\n\t\t\t\"&,&:focus,&:hover,&:visited\": {\r\n\t\t\t\tcolor: blackColor\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"&$info\": {\r\n\t\t\t\"&,&:focus,&:hover,&:visited\": {\r\n\t\t\t\tcolor: infoColor\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"&$success\": {\r\n\t\t\t\"&,&:focus,&:hover,&:visited\": {\r\n\t\t\t\tcolor: successColor\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"&$warning\": {\r\n\t\t\t\"&,&:focus,&:hover,&:visited\": {\r\n\t\t\t\tcolor: warningColor\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"&$rose\": {\r\n\t\t\t\"&,&:focus,&:hover,&:visited\": {\r\n\t\t\t\tcolor: roseColor\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"&$danger\": {\r\n\t\t\t\"&,&:focus,&:hover,&:visited\": {\r\n\t\t\t\tcolor: dangerColor\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"&$twitter\": {\r\n\t\t\t\"&,&:focus,&:hover,&:visited\": {\r\n\t\t\t\tcolor: \"#55acee\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"&$facebook\": {\r\n\t\t\t\"&,&:focus,&:hover,&:visited\": {\r\n\t\t\t\tcolor: \"#3b5998\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"&$google\": {\r\n\t\t\t\"&,&:focus,&:hover,&:visited\": {\r\n\t\t\t\tcolor: \"#dd4b39\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"&$linkedin\": {\r\n\t\t\t\"&,&:focus,&:hover,&:visited\": {\r\n\t\t\t\tcolor: \"#0976b4\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"&$pinterest\": {\r\n\t\t\t\"&,&:focus,&:hover,&:visited\": {\r\n\t\t\t\tcolor: \"#cc2127\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"&$youtube\": {\r\n\t\t\t\"&,&:focus,&:hover,&:visited\": {\r\n\t\t\t\tcolor: \"#e52d27\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"&$tumblr\": {\r\n\t\t\t\"&,&:focus,&:hover,&:visited\": {\r\n\t\t\t\tcolor: \"#35465c\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"&$github\": {\r\n\t\t\t\"&,&:focus,&:hover,&:visited\": {\r\n\t\t\t\tcolor: \"#333333\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"&$behance\": {\r\n\t\t\t\"&,&:focus,&:hover,&:visited\": {\r\n\t\t\t\tcolor: \"#1769ff\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"&$dribbble\": {\r\n\t\t\t\"&,&:focus,&:hover,&:visited\": {\r\n\t\t\t\tcolor: \"#ea4c89\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"&$reddit\": {\r\n\t\t\t\"&,&:focus,&:hover,&:visited\": {\r\n\t\t\t\tcolor: \"#ff4500\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\ttransparent: {\r\n\t\t\"&,&:focus,&:hover\": {\r\n\t\t\tcolor: \"inherit\",\r\n\t\t\tbackground: \"transparent\",\r\n\t\t\tboxShadow: \"none\"\r\n\t\t}\r\n\t},\r\n\tdisabled: {\r\n\t\topacity: \"0.65\",\r\n\t\tpointerEvents: \"none\"\r\n\t},\r\n\tlg: {\r\n\t\tpadding: \"1.125rem 2.25rem\",\r\n\t\tfontSize: \"0.875rem\",\r\n\t\tlineHeight: \"1.333333\",\r\n\t\tborderRadius: \"0.2rem\"\r\n\t},\r\n\tsm: {\r\n\t\tpadding: \"0.40625rem 1.25rem\",\r\n\t\tfontSize: \"0.6875rem\",\r\n\t\tlineHeight: \"1.5\",\r\n\t\tborderRadius: \"0.2rem\"\r\n\t},\r\n\tround: {\r\n\t\tborderRadius: \"30px\"\r\n\t},\r\n\tblock: {\r\n\t\twidth: \"100% !important\"\r\n\t},\r\n\tlink: {\r\n\t\t\"&,&:hover,&:focus\": {\r\n\t\t\tbackgroundColor: \"transparent\",\r\n\t\t\tcolor: \"#999999\",\r\n\t\t\tboxShadow: \"none\"\r\n\t\t}\r\n\t},\r\n\tjustIcon: {\r\n\t\tpaddingLeft: \"12px\",\r\n\t\tpaddingRight: \"12px\",\r\n\t\tfontSize: \"20px\",\r\n\t\theight: \"41px\",\r\n\t\tminWidth: \"41px\",\r\n\t\twidth: \"41px\",\r\n\t\t\"& .fab,& .fas,& .far,& .fal,& svg,& .material-icons\": {\r\n\t\t\tmarginRight: \"0px\"\r\n\t\t},\r\n\t\t\"&$lg\": {\r\n\t\t\theight: \"57px\",\r\n\t\t\tminWidth: \"57px\",\r\n\t\t\twidth: \"57px\",\r\n\t\t\tlineHeight: \"56px\",\r\n\t\t\t\"& .fab,& .fas,& .far,& .fal,& .material-icons\": {\r\n\t\t\t\tfontSize: \"32px\",\r\n\t\t\t\tlineHeight: \"56px\"\r\n\t\t\t},\r\n\t\t\t\"& svg\": {\r\n\t\t\t\twidth: \"32px\",\r\n\t\t\t\theight: \"32px\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"&$sm\": {\r\n\t\t\theight: \"12px\",\r\n\t\t\tminWidth: \"12px\",\r\n\t\t\twidth: \"12px\",\r\n\t\t\t\"& .fab,& .fas,& .far,& .fal,& .material-icons\": {\r\n\t\t\t\tfontSize: \"17px\",\r\n\t\t\t\tlineHeight: \"29px\"\r\n\t\t\t},\r\n\t\t\t\"& svg\": {\r\n\t\t\t\t// width: \"12px !important\",\r\n\t\t\t\t// height: \"12px !important\"\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\n\r\nexport default buttonStyle;\r\n","import {\r\n\tprimaryColor, grayColor\r\n} from \"assets/jss/material-dashboard-pro-react.jsx\";\r\n\r\nconst genericCheckInputStyle = {\r\n\tchecked: {\r\n\t\tcolor: primaryColor + \"!important\"\r\n\t},\r\n\tdisabled: {\r\n\t\tcolor: grayColor + \"!important\"\r\n\t},\r\n\tcheckedIcon: {\r\n\t\twidth: \"18px\",\r\n\t\theight: \"18px\",\r\n\t\tborder: \"1px solid rgba(0, 0, 0, .54)\",\r\n\t\tborderRadius: \"3px\"\r\n\t},\r\n\tuncheckedIcon: {\r\n\t\twidth: \"0px\",\r\n\t\theight: \"0px\",\r\n\t\tpadding: \"8px\",\r\n\t\tborder: \"1px solid rgba(0, 0, 0, .54)\",\r\n\t\tborderRadius: \"3px\"\r\n\t},\r\n\tlabel: {\r\n\t\tcolor: \"#000\",\r\n\t\tcursor: \"pointer\",\r\n\t\tpaddingLeft: \"0\",\r\n\t\tfontSize: \"12px\",\r\n\t\tlineHeight: \"1.428571429\",\r\n\t\tfontWeight: \"400\",\r\n\t\tdisplay: \"inline-flex\",\r\n\t\ttransition: \"0.3s ease all\"\r\n\t},\r\n\tlabelBold: {\r\n\t\tfontWeight: \"bold !important\",\r\n\t\tcolor: \"#000\",\r\n\t\tpaddingLeft: \"5px\",\r\n\t\tcursor: \"pointer\",\r\n\t\tpaddingTop : \"2px\",\r\n\t\tfontSize: \"12px\",\r\n\t\tlineHeight: \"1.428571429\",\r\n\t\tdisplay: \"inline-flex\",\r\n\t\ttransition: \"0.3s ease all\"\r\n\t},\r\n};\r\n\r\nexport default genericCheckInputStyle;\r\n","const genericDateInputStyle = {\r\n\troot: {\r\n\t\tborder: '1px solid #e9eaec',\r\n\t\t\"&:before\": {\r\n\t\t\tborder: 'unset !important'\r\n\t\t},\r\n\t\t\"&:after\": {\r\n\t\t\ttransition: 'unset',\r\n\t\t\theight: 22,\r\n\t\t\tborder: '1px solid gray !important',\r\n\t\t}\r\n\t},\r\n\tlabel: {\r\n\t\tcursor: \"pointer\",\r\n\t\tpaddingLeft: \"0\",\r\n\t\tcolor: \"#888888\",\r\n\t\tfontSize: \"16px\",\r\n\t\tlineHeight: \"1.428571429\",\r\n\t\tfontWeight: \"400\",\r\n\t\tdisplay: \"inline-flex\",\r\n\t\ttransition: \"0.3s ease all\",\t\t\r\n\t}\r\n};\r\n\r\nexport default genericDateInputStyle;","import { primaryColor } from \"assets/jss/material-dashboard-pro-react\";\r\n\r\nconst genericDialogStyle = {\r\n\tdialog: {\r\n\t\tborder: \"solid \" + primaryColor + \" 3px\",\r\n\t\tpadding: \"3px\"\r\n\t},\r\n\toverflowVisible: {\r\n\t\toverflow: \"visible\"\r\n\t}\r\n};\r\n\r\nexport default genericDialogStyle;","import { dangerColor, defaultFont, successColor } from \"assets/jss/material-dashboard-pro-react.jsx\";\r\n\r\nconst customInputStyle = {\r\n\tdisabled: {\r\n\t\topacity: \"0.7 !important\",\r\n\t\t\"&:before\": {\r\n\t\t\tborderColor: \"transparent !important\",\r\n\t\t\tborderBottom: \"unset\"\r\n\t\t}\r\n\t},\r\n\tunderline: {\r\n\t\t\"&:hover:not($disabled):before,&:before\": {\r\n\t\t\tborderBottom: \"unset !important\"\r\n\t\t},\r\n\t\t\"&:after\": {\r\n\t\t\ttransition: \"unset\",\r\n\t\t\theight: \"100%\",\r\n\t\t\tborder: \"1px solid gray !important\",\r\n\t\t}\r\n\t},\r\n\tunderlineError: {\r\n\t\t\"&:after\": {\r\n\t\t\tborderColor: dangerColor\r\n\t\t}\r\n\t},\r\n\tunderlineSuccess: {\r\n\t\t\"&:after\": {\r\n\t\t\tborderColor: successColor\r\n\t\t}\r\n\t},\r\n\tlabelRoot: {\r\n\t\t...defaultFont,\r\n\t\tcolor: \"#000 !important\",\r\n\t\tfontWeight: \"normal\",\r\n\t\tfontSize: \"12px\",\r\n\t\tlineHeight: \"1.42857\",\r\n\t\t// top: \"10px\",\r\n\t\tposition: \"static\",\r\n\t\t\"& + $underline\": {\r\n\t\t\tmarginTop: \"0px\"\r\n\t\t}\r\n\t},\r\n\tlabelRootError: {\r\n\t\tcolor: dangerColor + \" !important\"\r\n\t},\r\n\tlabelRootSuccess: {\r\n\t\tcolor: successColor + \" !important\"\r\n\t},\r\n\tlabelRootDisabled: {\r\n\t\topacity: \"0.6 !important\"\r\n\t},\r\n\tformControl: {\r\n\t\tmargin: \"0 0 0px 0\",\r\n\t\tpaddingTop: \"0px\",\r\n\t\tposition: \"relative\",\r\n\t\t\"& svg,& .fab,& .far,& .fal,& .fas,& .material-icons\": {\r\n\t\t\tcolor: \"#495057\"\r\n\t\t}\r\n\t},\r\n\twhiteUnderline: {\r\n\t\t\"&:hover:not($disabled):before,&:before\": {\r\n\t\t\tbackgroundColor: \"#FFFFFF\"\r\n\t\t},\r\n\t\t\"&:after\": {\r\n\t\t\tbackgroundColor: \"#FFFFFF\"\r\n\t\t}\r\n\t},\r\n\tinput: {\r\n\t\tpadding: \"3px\",\r\n\t\t//border: '1px rgba(0, 0, 0, 0.42) solid',\r\n\t\tbackground: \"unset\",\r\n\t\t//boxShadow: 'inset 0 0 2px rgba(0, 0, 0, 0.42)',\r\n\t\tcolor: \"#000\",\r\n\t\t\"&,&::placeholder\": {\r\n\t\t\tfontSize: \"12px\",\r\n\t\t\tfontFamily: \"\\\"Roboto\\\", \\\"Helvetica\\\", \\\"Arial\\\", sans-serif\",\r\n\t\t\tfontWeight: \"400\",\r\n\t\t\tlineHeight: \"1.42857\",\r\n\t\t\topacity: \"1\"\r\n\t\t},\r\n\t\t\"&::placeholder\": {\r\n\t\t\tcolor: \"#888888\"\r\n\t\t}\r\n\t},\r\n\twhiteInput: {\r\n\t\t\"&,&::placeholder\": {\r\n\t\t\tcolor: \"#FFFFFF\",\r\n\t\t\topacity: \"1\"\r\n\t\t}\r\n\t}\r\n};\r\n\r\nexport default customInputStyle;\r\n","import {\r\n\twarningCardHeader,\r\n\tsuccessCardHeader,\r\n\tdangerCardHeader,\r\n\tinfoCardHeader,\r\n\tprimaryCardHeader,\r\n\troseCardHeader,\r\n\twhiteCardHeader,\r\n\tblackCardHeader\r\n} from \"assets/jss/material-dashboard-pro-react.jsx\";\r\n\r\nconst cardHeaderStyle = {\r\n\tcardHeader: {\r\n\t\tpadding: \"4px\",\r\n\t\tmarginBottom: \"0\",\r\n\t\tborderBottom: \"none\",\r\n\t\tbackground: \"transparent\",\r\n\t\t// zIndex: \"3 !important\",\r\n\t\t\"&$cardHeaderPlain,&$cardHeaderImage,&$cardHeaderContact,&$cardHeaderSignup,&$cardHeaderIcon,&$cardHeaderStats,&$warningCardHeader,&$successCardHeader,&$dangerCardHeader,&$infoCardHeader,&$primaryCardHeader,&$roseCardHeader,&$whiteCardHeader,&$blackCardHeader\": {\r\n\t\t\tmargin: \"0 15px\",\r\n\t\t\tpadding: \"0\",\r\n\t\t\tposition: \"relative\",\r\n\t\t\tcolor: \"#FFFFFF\"\r\n\t\t},\r\n\t\t\"&:first-child\": {\r\n\t\t\tborderRadius: \"calc(.25rem - 1px) calc(.25rem - 1px) 0 0\"\r\n\t\t},\r\n\t\t\"&$warningCardHeader,&$successCardHeader,&$dangerCardHeader,&$infoCardHeader,&$primaryCardHeader,&$roseCardHeader,&$whiteCardHeader,&$blackCardHeader\": {\r\n\t\t\t\"&:not($cardHeaderIcon):not($cardHeaderImage):not($cardHeaderText)\": {\r\n\t\t\t\tborderRadius: \"3px\",\r\n\t\t\t\tmarginTop: \"-15px\", // #PRIMEFOR -20px\r\n\t\t\t\t// padding: \"15px\" #PRIMEFOR\r\n\t\t\t\tpadding: \"10px\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"&$cardHeaderStats svg\": {\r\n\t\t\tfontSize: \"36px\",\r\n\t\t\tlineHeight: \"56px\",\r\n\t\t\ttextAlign: \"center\",\r\n\t\t\twidth: \"36px\",\r\n\t\t\theight: \"36px\",\r\n\t\t\tmargin: \"10px 10px 4px\"\r\n\t\t},\r\n\t\t\"&$cardHeaderStats .fab,&$cardHeaderStats .fas,&$cardHeaderStats .far,&$cardHeaderStats .fal,&$cardHeaderStats .material-icons\": {\r\n\t\t\tfontSize: \"36px\",\r\n\t\t\tlineHeight: \"56px\",\r\n\t\t\twidth: \"56px\",\r\n\t\t\theight: \"56px\",\r\n\t\t\ttextAlign: \"center\",\r\n\t\t\toverflow: \"unset\",\r\n\t\t\tmarginBottom: \"1px\"\r\n\t\t},\r\n\t\t\"&$cardHeaderStats$cardHeaderIcon\": {\r\n\t\t\ttextAlign: \"right\"\r\n\t\t},\r\n\t\t\"&$cardHeaderImage\": {\r\n\t\t\tmarginLeft: \"15px\",\r\n\t\t\tmarginRight: \"15px\",\r\n\t\t\tmarginTop: \"-30px\",\r\n\t\t\tborderRadius: \"6px\"\r\n\t\t},\r\n\t\t\"&$cardHeaderText\": {\r\n\t\t\tdisplay: \"inline-block\"\r\n\t\t}\r\n\t},\r\n\tcardHeaderPlain: {\r\n\t\tmarginLeft: \"0px\",\r\n\t\tmarginRight: \"0px\",\r\n\t\t\"&$cardHeaderImage\": {\r\n\t\t\tmargin: \"0 !important\"\r\n\t\t}\r\n\t},\r\n\tcardHeaderImage: {\r\n\t\tposition: \"relative\",\r\n\t\tpadding: \"0\",\r\n\t\tzIndex: \"1\",\r\n\t\t\"& img\": {\r\n\t\t\twidth: \"100%\",\r\n\t\t\tborderRadius: \"6px\",\r\n\t\t\tpointerEvents: \"none\",\r\n\t\t\tboxShadow:\r\n\t\t\t\t\"0 5px 15px -8px rgba(0, 0, 0, 0.24), 0 8px 10px -5px rgba(0, 0, 0, 0.2)\"\r\n\t\t},\r\n\t\t\"& a\": {\r\n\t\t\tdisplay: \"block\"\r\n\t\t}\r\n\t},\r\n\tcardHeaderContact: {\r\n\t\tmargin: \"0 15px\",\r\n\t\tmarginTop: \"-20px\"\r\n\t},\r\n\tcardHeaderSignup: {\r\n\t\tmarginLeft: \"20px\",\r\n\t\tmarginRight: \"20px\",\r\n\t\tmarginTop: \"-40px\",\r\n\t\tpadding: \"20px 0\",\r\n\t\twidth: \"100%\",\r\n\t\tmarginBottom: \"15px\"\r\n\t},\r\n\tcardHeaderStats: {\r\n\t\t\"& $cardHeaderIcon\": {\r\n\t\t\ttextAlign: \"right\"\r\n\t\t},\r\n\t\t\"& h1,& h2,& h3,& h4,& h5,& h6\": {\r\n\t\t\tmargin: \"0 !important\"\r\n\t\t}\r\n\t},\r\n\tcardHeaderIcon: {\r\n\t\t\"&$warningCardHeader,&$successCardHeader,&$dangerCardHeader,&$infoCardHeader,&$primaryCardHeader,&$roseCardHeader,&$whiteCardHeader\": {\r\n\t\t\tbackground: \"transparent\",\r\n\t\t\tboxShadow: \"none\"\r\n\t\t},\r\n\t\t\"& .fab,& .fas,& .far,& .fal,& .material-icons\": {\r\n\t\t\twidth: \"33px\",\r\n\t\t\theight: \"33px\",\r\n\t\t\ttextAlign: \"center\",\r\n\t\t\tlineHeight: \"33px\"\r\n\t\t},\r\n\t\t\"& svg\": {\r\n\t\t\twidth: \"24px\",\r\n\t\t\theight: \"24px\",\r\n\t\t\ttextAlign: \"center\",\r\n\t\t\tlineHeight: \"33px\",\r\n\t\t\tmargin: \"5px 4px 0px\"\r\n\t\t}\r\n\t},\r\n\tcardHeaderText: {},\r\n\twarningCardHeader: {\r\n\t\tcolor: \"#FFFFFF\",\r\n\t\t\"&:not($cardHeaderText):not($cardHeaderIcon)\": {\r\n\t\t\t...warningCardHeader\r\n\t\t}\r\n\t},\r\n\tsuccessCardHeader: {\r\n\t\tcolor: \"#FFFFFF\",\r\n\t\t\"&:not($cardHeaderText):not($cardHeaderIcon)\": {\r\n\t\t\t...successCardHeader\r\n\t\t}\r\n\t},\r\n\tdangerCardHeader: {\r\n\t\tcolor: \"#FFFFFF\",\r\n\t\t\"&:not($cardHeaderText):not($cardHeaderIcon)\": {\r\n\t\t\t...dangerCardHeader\r\n\t\t}\r\n\t},\r\n\tinfoCardHeader: {\r\n\t\tcolor: \"#FFFFFF\",\r\n\t\t\"&:not($cardHeaderText):not($cardHeaderIcon)\": {\r\n\t\t\t...infoCardHeader\r\n\t\t}\r\n\t},\r\n\tprimaryCardHeader: {\r\n\t\tcolor: \"#FFFFFF\",\r\n\t\t\"&:not($cardHeaderText):not($cardHeaderIcon)\": {\r\n\t\t\t...primaryCardHeader\r\n\t\t}\r\n\t},\r\n\troseCardHeader: {\r\n\t\tcolor: \"#FFFFFF\",\r\n\t\t\"&:not($cardHeaderText):not($cardHeaderIcon)\": {\r\n\t\t\t...roseCardHeader\r\n\t\t}\r\n\t},\r\n\twhiteCardHeader: {\r\n\t\tcolor: \"#FFFFFF\",\r\n\t\t\"&:not($cardHeaderText):not($cardHeaderIcon)\": {\r\n\t\t\t...whiteCardHeader\r\n\t\t}\r\n\t},\r\n\tblackCardHeader: {\r\n\t\tcolor: \"#FFFFFF\",\r\n\t\t\"&:not($cardHeaderText):not($cardHeaderIcon)\": {\r\n\t\t\t...blackCardHeader\r\n\t\t}\r\n\t}\r\n};\r\n\r\nexport default cardHeaderStyle;\r\n","import DashboardHelper from \"core/DashboardHelper\";\r\n\r\nclass MenuAuthorityRightHelper {\r\n\tconstructor() {\r\n\t\tthis.dashboardHelper = new DashboardHelper();\r\n\t\tthis.ExecuteApiPost = this.dashboardHelper.ExecuteApiPost;\r\n\t}\r\n\r\n\t/**\r\n\t * @param {string} menuCode\r\n\t * @param {string} menuAuthorityDefinitionCode\r\n\t * @returns {Promise}\r\n\t */\r\n\tasync RightCheck(menuCode, menuAuthorityDefinitionCode) {\r\n\t\tvar result = await this.ExecuteApiPost(\"/coreapi/v1.0/MenuAuthorityRight/GetRight\", { MenuCode: menuCode, MenuAuthorityDefinitionCode: menuAuthorityDefinitionCode });\r\n\r\n\t\treturn result;\r\n\t}\r\n\r\n\t/**\r\n\t * @param {string} menuCode\r\n\t * @param {Array} menuAuthorityDefinitionCodes\r\n\t * @returns {Promise>}\r\n\t */\r\n\tasync RightCheckList(menuCode, menuAuthorityDefinitionCodes) {\r\n\t\tvar result = await this.ExecuteApiPost(\"/coreapi/v1.0/MenuAuthorityRight/ListRight\", { MenuCode: menuCode, MenuAuthorityDefinitionCodes: menuAuthorityDefinitionCodes });\r\n\r\n\t\treturn result;\r\n\t}\r\n}\r\n\r\nexport default MenuAuthorityRightHelper;","const genericGridStyle = {\r\n\t\r\n};\r\n\r\nexport default genericGridStyle;","import PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport { GenericSelectInput } from \"views/Components/Generic\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\n\r\nclass CustomerStoreComponent extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t}\r\n\r\n\tRenderStore(d) {\r\n\t\tconst storeName = d.StoreName;\r\n\t\tif (d.StoreCode == null){\r\n\t\t\treturn `${storeName}`;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn `${storeName}(${d.StoreCode})`;\r\n\t\t}\r\n\t}\r\n\r\n\trender() {\r\n\t\tvar { Model, ValueChanged } = this.props;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{ClientHelper.IsBackOffice() &&\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\r\n\t\t\t\t{!ClientHelper.IsBackOffice() &&\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCustomerStoreComponent.propTypes = {\r\n\tModel: PropTypes.object,\r\n\tValueChanged: PropTypes.func.isRequired\r\n};\r\n\r\nexport default CustomerStoreComponent;","const Formats = {\r\n\tPhone:\"(###) ### ####\"\r\n};\r\n\r\nexport {Formats};","\r\nimport React, { PureComponent } from \"react\";\r\nimport { List } from \"react-virtualized\";\r\nconst NoOptionsMessage = () => {\r\n\treturn (\r\n\t\t
No Options
\r\n\t);\r\n}\r\nconst MenuListStyle = { width: \"100%\" };\r\n\r\n\r\n\r\nclass GenericVirtualizedMenuList extends PureComponent {\r\n\trender() {\r\n\t\tconst props = this.props;\r\n\t\tconst listCompProps = props.children[0]?.props;\r\n\t\tconst rows = [...(listCompProps?.children || [])];\r\n\t\tvar selectOneLabelComp = listCompProps?.label;\r\n\t\tconst rowHeight = 30;\r\n\r\n\t\tconst groupStyle = listCompProps ? listCompProps.getStyles(\"group\", props) : null;\r\n\t\tconst groupHeadingStyle = listCompProps ? listCompProps.getStyles(\"groupHeading\", props) : null;\r\n\r\n\t\tif (rows?.length === 0) {\r\n\t\t\trows.push(NoOptionsMessage());\r\n\t\t} else {\r\n\t\t\trows.unshift(\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{selectOneLabelComp}\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t);\r\n\t\t}\r\n\t\tconst rowRenderer = ({ key, parent, index, isScrolling, isVisible, style }) => {\r\n\t\t\tvar content = rows[index];\r\n\r\n\t\t\treturn (
{content}
);\r\n\t\t};\r\n\t\tconst getHeight = () => rows?.length === 1 ? (rowHeight + 12) : rows?.length < 10 && rows?.length > 0 ? rows.length * rowHeight : 300;\r\n\r\n\t\treturn (\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\nexport default GenericVirtualizedMenuList;\r\n","const genericLabelStyle = {\r\n\tlabel: {\r\n\t\tpaddingLeft: \"0\",\r\n\t\tcolor: \"#888888\",\r\n\t\tfontSize: \"16px\",\r\n\t\tlineHeight: \"1.428571429\",\r\n\t\tfontWeight: \"400\",\r\n\t\tdisplay: \"inline-flex\",\r\n\t\ttransition: \"0.3s ease all\"\r\n\t}\r\n};\r\n\r\nexport default genericLabelStyle;","import { primaryColor } from \"assets/jss/material-dashboard-pro-react.jsx\";\r\n\r\n\r\nconst genericMultipleSelectInputStyle = {\r\n\troot: {\r\n\t\tborder: \"1px solid #e9eaec\",\r\n\t\t\"&:before\": {\r\n\t\t\tborder: \"unset !important\"\r\n\t\t},\r\n\t\t\"&:after\": {\r\n\t\t\ttransition: \"unset\",\r\n\t\t\theight: 22,\r\n\t\t\tborder: \"1px solid gray !important\",\r\n\t\t}\r\n\t},\r\n\tselectWidth: {\r\n\t\t\"& > div > button\": {\r\n\t\t\twidth:\"100%\",\r\n\t\t\tpadding: \"0px 0px 0px 0px\"\r\n\t\t}\r\n\t},\r\n\tselectFormControl: {\r\n\t\tdisplay: 'block',\r\n\t\tmarginBottom : \"1px !important\",\r\n\t\tmargintop : \"1px !important\",\r\n\t\tpaddingRight :\"2px !important\",\r\n\t\t\"& > div\": {\r\n\t\t\t\"&:before\": {\r\n\t\t\t\tborderBottomWidth: \"1px !important\",\r\n\t\t\t\tborderBottomColor: \"#D2D2D2 !important\"\r\n\t\t\t},\r\n\t\t\tmarginTop: \"4.2px\",\r\n\t\t\tfontSize: \"0.6rem\",\r\n\t\t\t\"&:after\": {\r\n\t\t\t\tborderBottomColor: primaryColor + \"!important\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\tselectLabel: {\r\n\t\tfontSize: \"12px\",\r\n\t\tposition: \"static\",\r\n\t\tcolor: \"#000 !important\",\r\n\t\tmarginRight: 5\r\n\r\n\t},\r\n\tselectLabelBold: {\r\n\t\tfontSize: \"12px\",\r\n\t\tposition: \"static\",\r\n\t\tcolor: \"#000 !important\",\r\n\t\tmarginRight: 5,\r\n\t\tfontWeight : \"bold !important\"\r\n\r\n\t},\r\n\tmenuItem: {\r\n\t\tfontSize: \"12px\",\r\n\t\tpaddingTop: \"3px\",\r\n\t\tpaddingBottom: \"3px\",\r\n\t}\r\n};\r\n\r\nexport default genericMultipleSelectInputStyle;\r\n","const genericMapSearchboxStyle = (theme) => ({\r\n\tinput: {\r\n\t\tboxSizing: \"border-box\",\r\n\t\tborder: \"1px solid transparent\",\r\n\t\twidth: \"100%\",\r\n\t\theight: \"30px\",\r\n\t\tpadding: \"0 12px\",\r\n\t\tborderRadius: \"3px\",\r\n\t\tboxShadow: \"0 2px 6px rgba(0, 0, 0, 0.3)\",\r\n\t\tfontSize: \"14px\",\r\n\t\toutline: \"none\",\r\n\t\ttextOverflow: \"ellipses\",\r\n\t\tmarginTop: 7\r\n\t}\r\n});\r\n\r\n\r\nexport default genericMapSearchboxStyle;","\r\nconst genericCardMediaStyle = {\r\n\tcontainer: {\r\n\t\tdisplay:\"flex\"\r\n\t},\r\n\trotateButton:{\r\n\t\tmarginLeft:\"auto\",\r\n\t\tmarginTop:\"auto\",\r\n\t\tcolor: \"black\"\r\n\t}\r\n};\r\n\r\nexport default genericCardMediaStyle;","import DynamicComponent from \"./DynamicComponent\";\r\nimport PrivateRoute from \"./PrivateRoute\";\r\nimport Proxy from \"./Proxy\";\r\nimport withArtifex from \"./withArtifex\";\r\nimport withRedux from \"./withRedux\";\r\n\r\nexport { Proxy, withArtifex, withRedux, DynamicComponent, PrivateRoute };\r\n\r\n","const genericVerificationComponentStyle = {\r\n\tverificationBase: {\r\n\t\tmargin: \"2px auto -2px auto\",\r\n\t\tborderRadius: 50,\r\n\t\tpadding: 10,\r\n\t\tfontSize: 26,\r\n\t\tcolor: \"white\",\r\n\t\twidth: 46\r\n\t},\r\n\tverificationTrue: {\r\n\t\tbackgroundColor: \"green\"\r\n\t},\r\n\tverificationFalse: {\r\n\t\tbackgroundColor: \"red\"\r\n\t},\r\n\tverificationEmpty: {\r\n\t\tbackgroundColor: \"black\"\r\n\t},\r\n\tverificationWarning: {\r\n\t\tbackgroundColor: \"orange\"\r\n\t}\r\n};\r\n\r\nexport default genericVerificationComponentStyle;","module.exports = __webpack_public_path__ + \"static/media/baseline-notifications_none-24px.3d195e25.svg\";","module.exports = __webpack_public_path__ + \"static/media/logo-white.ec2b34aa.svg\";","module.exports = __webpack_public_path__ + \"static/media/los-scorecard-value-table.bcff3966.png\";","import GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport { GenericExpansionPanel, GenericInput } from \"views/Components/Generic\";\r\n\r\nclass GenericFormScreen extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, vModel, viewData } = this.props;\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tviewData.Inputs.map((view, i) =>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t 0 && view.IsUpdate === false)}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nGenericFormScreen.propTypes = {\r\n\tcheckedValues: PropTypes.array,\r\n\tmodel: PropTypes.object.isRequired,\r\n\tvModel: PropTypes.object,\r\n\thandleChange: PropTypes.func,\r\n\tviewData: PropTypes.object.isRequired,\r\n\tdisabled: PropTypes.bool,\r\n};\r\n\r\nexport default GenericFormScreen;\r\n","import GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport { GenericGrid, GenericTitle } from \"views/Components/Generic\";\r\nimport { GridColumnType } from \"views/Constants/Constant\";\r\n\r\nclass GenericListScreen extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.ColumnDefinitions = props.viewData.GridColumns.map(obj => {\r\n\t\t\tif(obj?.Title?.toLowerCase().includes(\"date\")) {\r\n\t\t\t\treturn {\r\n\t\t\t\t\tHeader: obj.Title,\r\n\t\t\t\t\taccessor: obj.ColumnName,\r\n\t\t\t\t\ttype: GridColumnType.DateTimeUtc,\r\n\t\t\t\t\tresizable: obj.Resizable,\r\n\t\t\t\t\tsortable: obj.Sortable,\r\n\t\t\t\t\tfilterable: obj.Filterable,\r\n\t\t\t\t\twidth: obj.Width,\r\n\t\t\t\t\tColumnType: obj.ColumnType\r\n\t\t\t\t};\r\n\t\t\t}\r\n\t\t\treturn {\r\n\t\t\t\tHeader: obj.Title,\r\n\t\t\t\taccessor: obj.ColumnName,\r\n\t\t\t\ttype: obj.Type,\r\n\t\t\t\tresizable: obj.Resizable,\r\n\t\t\t\tsortable: obj.Sortable,\r\n\t\t\t\tfilterable: obj.Filterable,\r\n\t\t\t\twidth: obj.Width,\r\n\t\t\t\tColumnType: obj.ColumnType\r\n\t\t\t};\r\n\t\t});\r\n\t}\r\n\r\n\tRowSelected = index => {\r\n\t\tconst { list, viewData, handleSelectModel } = this.props;\r\n\t\tif (!viewData.IsNotFillFromGrid) {\r\n\t\t\tconst model = { ...list[index] };\r\n\t\t\thandleSelectModel(model, index);\r\n\t\t}\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { list, viewData, model } = this.props;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\t\t\tid: obj.ColumnName || obj.id,\r\n\t\t\t\t\t\t\t\t\tdesc: obj.Desc || obj.desc\r\n\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nGenericListScreen.propTypes = {\r\n\tlist: PropTypes.array.isRequired,\r\n\tselected: PropTypes.number,\r\n\thandleSelectModel: PropTypes.func,\r\n\thandleDocument: PropTypes.func,\r\n\tviewData: PropTypes.object.isRequired,\r\n\tmodel: PropTypes.object,\r\n};\r\n\r\nexport default GenericListScreen;\r\n","import { createMuiTheme, MuiThemeProvider } from \"@material-ui/core\";\r\n// import whyDidYouRender from \"@welldone-software/why-did-you-render/dist/no-classes-transpile/umd/whyDidYouRender.min.js\";\r\nimport samplePageStyles from \"assets/jss/material-dashboard-pro-react/views/regularFormsStyle\";\r\nimport { PrivateRoute, withRedux } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport React from \"react\";\r\nimport { HashRouter, Route, Switch } from \"react-router-dom\";\r\nimport indexRoutes from \"routes/index.jsx\";\r\n\r\nclass App extends React.Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tDate.prototype.toJSON = function () { return DateHelper.ToMoment(this).format(); };\r\n\t\t// if (process.env.NODE_ENV !== \"production\") {\r\n\t\t// \twhyDidYouRender(React);\r\n\t\t// \t// whyDidYouRender(React, { include: [/^Generic/] }); // All components starts with Generic\r\n\t\t// }\r\n\t\tdocument.title = window.Title;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst theme = createMuiTheme({\r\n\t\t\tpalette: { primary: { main: window.PageMainColor } },\r\n\t\t\ttypography: { useNextVariants: true }\r\n\t\t});\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{indexRoutes.map((prop, key) => {\r\n\t\t\t\t\t\t\t\tif (prop.private) {\r\n\t\t\t\t\t\t\t\t\treturn ;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\treturn ;\r\n\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nexport default withRedux(App, samplePageStyles);","// ##############################\r\n// // // RegularForms view styles\r\n// #############################\r\n\r\nimport {\r\n cardTitle,\r\n successColor,\r\n dangerColor\r\n} from \"assets/jss/material-dashboard-pro-react.jsx\";\r\nimport customCheckboxRadioSwitch from \"assets/jss/material-dashboard-pro-react/customCheckboxRadioSwitch.jsx\";\r\n\r\nconst regularFormsStyle = {\r\n ...customCheckboxRadioSwitch,\r\n cardIconTitle: {\r\n ...cardTitle,\r\n marginTop: \"15px\",\r\n marginBottom: \"0px\"\r\n },\r\n staticFormGroup: {\r\n marginLeft: \"0\",\r\n marginRight: \"0\",\r\n paddingBottom: \"10px\",\r\n margin: \"8px 0 0 0\",\r\n position: \"relative\",\r\n \"&:before,&:after\": {\r\n display: \"table\",\r\n content: '\" \"'\r\n },\r\n \"&:after\": {\r\n clear: \"both\"\r\n }\r\n },\r\n staticFormControl: {\r\n marginBottom: \"0\",\r\n paddingTop: \"8px\",\r\n paddingBottom: \"8px\",\r\n minHeight: \"34px\"\r\n },\r\n inputAdornment: {\r\n marginRight: \"8px\",\r\n position: \"relative\"\r\n },\r\n inputAdornmentIconSuccess: {\r\n color: successColor + \"!important\"\r\n },\r\n inputAdornmentIconError: {\r\n color: dangerColor + \"!important\"\r\n }\r\n};\r\n\r\nexport default regularFormsStyle;\r\n","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport { drawerWidth } from \"assets/jss/material-dashboard-pro-react.jsx\";\r\nimport appStyle from \"assets/jss/material-dashboard-pro-react/layouts/dashboardStyle.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport Footer from \"components/Footer/Footer.jsx\";\r\nimport Header from \"components/Header/Header.jsx\";\r\nimport Sidebar from \"components/Sidebar/Sidebar.jsx\";\r\nimport { PrivateRoute, Proxy, withRedux } from \"core\";\r\nimport AlertHelper from \"core/AlertHelper\";\r\nimport ArrayHelper from \"core/ArrayHelper\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport { Redirect, Switch } from \"react-router-dom\";\r\nimport { UserConstants } from \"store\";\r\nimport AppTitleBar from \"views/Components/AppTitleBar\";\r\nimport { GenericDialog, GenericDialogActions, GenericLabel, GenericSelectInput } from \"views/Components/Generic\";\r\nimport IdleComponent from \"views/Components/IdleComponent\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport MenuBar from \"views/Components/MenuBar\";\r\nimport { MenuCodes, InteracRedirectURL } from \"views/Constants/Constant\";\r\nimport Portal from \"views/Dashboard/Portal\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport { TaskPool } from \"core/TaskPool\";\r\nimport DashboardHelper from \"core/DashboardHelper\";\r\n\r\nclass Dashboard extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tflatRoutes: [],\r\n\t\t\tsearchMenuList: [],\r\n\t\t\tdashboardRoutes: [],\r\n\t\t\tAppLeftTitle: \"\",\r\n\t\t\tAppCenterTitle: \"\",\r\n\t\t\tPortal: \"\",\r\n\t\t\theaderMenuRightList: [],\r\n\t\t\tmodel: {\r\n\t\t\t\tClientUserId: 0\r\n\t\t\t},\r\n\t\t\tisChangeUserDialogOpen: false,\r\n\t\t\topacity: 1,\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t\tLogInDisabled: false\r\n\t\t};\r\n\r\n\t\tthis.userName = \"\";\r\n\r\n\t\tthis.mainPanelRef = React.createRef();\r\n\r\n\t\tthis.setAppLeftTitle = this.setAppLeftTitle.bind(this);\r\n\t\tthis.setAppCenterTitle = this.setAppCenterTitle.bind(this);\r\n\t\tthis.setPortal = this.setPortal.bind(this);\r\n\t\tthis.handleLogout = this.handleLogout.bind(this);\r\n\t\tthis.ChangeOpacity = this.ChangeOpacity.bind(this);\r\n\r\n\t\tthis.ValueChanged = this.ValueChanged.bind(this);\r\n\t\tthis.MenuValueChanged = this.MenuValueChanged.bind(this);\r\n\t\tthis.LoginCallback = this.LoginCallback.bind(this);\r\n\t\tthis.SetUser = this.SetUser.bind(this);\r\n\t\tthis.OnChangeUserClick = this.OnChangeUserClick.bind(this);\r\n\t\tthis.LoadMenu = this.LoadMenu.bind(this);\r\n\t\tthis.LoadMenuProcess = this.LoadMenuProcess.bind(this);\r\n\t\tthis.GetMenuRightByParentMenuCode = this.GetMenuRightByParentMenuCode.bind(this);\r\n\t\tthis.GetSearchMenuList = this.GetSearchMenuList.bind(this);\r\n\t\tthis.GetIsMenuFavorited = this.GetIsMenuFavorited.bind(this);\r\n\r\n\t\tthis.handleLoadTaskPoolCompleted = this.handleLoadTaskPoolCompleted.bind(this);\r\n\t\tthis.handleLoadTaskPoolAppend = this.handleLoadTaskPoolAppend.bind(this);\r\n\t\tthis.handleAlertChange = this.handleAlertChange.bind(this);\r\n\r\n\t\tthis.loadTaskPool = new TaskPool(this.handleLoadTaskPoolAppend, this.handleLoadTaskPoolCompleted);\r\n\t\tthis.dashboardHelper = new DashboardHelper(this.handleAlertChange, this.loadTaskPool);\r\n\r\n\t\tthis.ExecuteApiGet = this.dashboardHelper.ExecuteApiGet;\r\n\t\tthis.ExecuteApiPost = this.dashboardHelper.ExecuteApiPost;\r\n\t\tthis.ExecuteApiFileUpload = this.dashboardHelper.ExecuteApiFileUpload;\r\n\t\tthis.ExecuteApiImageUpload = this.dashboardHelper.ExecuteApiImageUpload;\r\n\t\tthis.ExecuteApiFileDownload = this.dashboardHelper.ExecuteApiFileDownload;\r\n\t\tthis.ExecuteApiFileDownloadWithGenericResponse = this.dashboardHelper.ExecuteApiFileDownloadWithGenericResponse;\r\n\t\tthis.ShowMessage = this.dashboardHelper.ShowMessage;\r\n\t\tthis.ShowMessageNode = this.dashboardHelper.ShowMessage;\r\n\t\tthis.ShowConfirmMessage = this.dashboardHelper.ShowConfirmMessage;\r\n\t\tthis.ShowValidationErrors = this.dashboardHelper.ShowValidationErrors;\r\n\t\tthis.ShowMessageAfterOperation = this.dashboardHelper.ShowMessageAfterOperation;\r\n\t\tthis.ShowConfirmMessageInDelete = this.dashboardHelper.ShowConfirmMessageInDelete;\r\n\t}\r\n\r\n\thandleAlertChange(alert) {\r\n\t\tthis.setState({ alert });\r\n\t}\r\n\r\n\thandleLoadTaskPoolCompleted() {\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\thandleLoadTaskPoolAppend() {\r\n\t\tthis.setState({ isLoading: true });\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\tthis.LoadMenu();\r\n\t\tthis.GetMenuRightByParentMenuCode();\r\n\r\n\t\tconst Parent = this;\r\n\t\tvar userInfo = ClientHelper.GetUser();\r\n\r\n\t\tif (userInfo !== null) {\r\n\t\t\tthis.userName = userInfo.UserEmail;\r\n\t\t}\r\n\r\n\t\twindow.addEventListener(\"storage\", function (e) {\r\n\t\t\tif (e.key == \"user\" && document.visibilityState == \"hidden\") {\r\n\t\t\t\tvar userInfo = ClientHelper.GetUser();\r\n\t\t\t\tif (userInfo !== null) {\r\n\t\t\t\t\tif (userInfo.UserEmail != Parent.userName) {\r\n\t\t\t\t\t\tParent.props.history.replace(\"/acc/login\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\r\n\t\t// if user comes from interac approve page \r\n\t\tvar intData = JSON.parse(localStorage.getItem(InteracRedirectURL.LocalStorageKey));\r\n\t\tif (intData != null && intData.IsValidUrl == true) {\r\n\t\t\tRouteHelper.Push(this.props.history, \"/InteracApprovalRequest\");\r\n\t\t}\r\n\t}\r\n\r\n\tLoadMenu() {\r\n\t\tvar menuData = localStorage.getItem(\"MenuData\");\r\n\t\tvar menuDataJson = menuData\r\n\t\t\t? JSON.parse(menuData)\r\n\t\t\t: null;\r\n\r\n\t\tif (menuDataJson == null) {\r\n\t\t\tProxy.GET(\"/coreapi/v1.0/Menu/GetMenuList\",\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded)\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tflatRoutes = responseData.FlatRoutes;\r\n\t\t\t\t\t\tdashboardRoutes = responseData.MenuList;\r\n\t\t\t\t\t\tsearchMenuList = this.GetSearchMenuList(flatRoutes);\r\n\r\n\t\t\t\t\t\tlocalStorage.setItem(\"MenuData\", JSON.stringify({ flatRoutes, searchMenuList, dashboardRoutes }));\r\n\t\t\t\t\t\tthis.LoadMenuProcess(flatRoutes, dashboardRoutes, searchMenuList);\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\terrorMessage => {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Menu error\", errorMessage);\r\n\t\t\t\t});\r\n\t\t} else {\r\n\t\t\tvar flatRoutes = menuDataJson.flatRoutes;\r\n\t\t\tvar dashboardRoutes = menuDataJson.dashboardRoutes;\r\n\t\t\tvar searchMenuList = menuDataJson.searchMenuList;\r\n\r\n\t\t\tthis.LoadMenuProcess(flatRoutes, dashboardRoutes, searchMenuList);\r\n\t\t}\r\n\t}\r\n\r\n\tLoadMenuProcess(flatRoutes, dashboardRoutes, searchMenuList) {\r\n\t\tflatRoutes.push({ Path: \"/Dashboard\", component: Portal, Name: \"Dashboard\" });\r\n\t\tflatRoutes.push({ redirect: true, Path: \"/\", pathTo: \"/Dashboard\", Name: \"Dashboard\" });\r\n\t\tdashboardRoutes.unshift({ Path: \"/\", Name: \"Menu_Home\", Id: -1 });\r\n\r\n\t\tthis.setState({ flatRoutes, searchMenuList, dashboardRoutes });\r\n\t}\r\n\r\n\tasync GetMenuRightByParentMenuCode() {\r\n\t\tvar result = await this.ExecuteApiPost(\"/coreapi/v1.0/MenuRight/GetByParentMenuCode\", { MenuCode: MenuCodes.Header }, null, null, null, null, null);\r\n\r\n\t\tthis.setState({ headerMenuRightList: result || [] });\r\n\t}\r\n\r\n\tGetSearchMenuList(flatRoutes) {\r\n\t\tvar searchMenuList = [];\r\n\r\n\t\tflatRoutes\r\n\t\t\t.filter(x => x.ShowInMenu)\r\n\t\t\t.map(x => {\r\n\t\t\t\tvar menu = {};\r\n\r\n\t\t\t\tmenu.Path = x.Path;\r\n\t\t\t\tmenu.FullPath = x.FullPath;\r\n\r\n\t\t\t\tsearchMenuList.push(menu);\r\n\r\n\t\t\t\treturn null;\r\n\t\t\t});\r\n\r\n\t\tArrayHelper.SortArray(searchMenuList, \"FullPath\");\r\n\r\n\t\treturn searchMenuList;\r\n\t}\r\n\r\n\tcomponentDidUpdate(e) {\r\n\t\tvar userInfo = ClientHelper.GetUser();\r\n\t\tif (userInfo == null)\r\n\t\t\treturn;\r\n\r\n\t\tif (e.history.location.pathname !== e.location.pathname) {\r\n\t\t\tthis.mainPanelRef.current.scrollTop = 0;\r\n\r\n\t\t\tthis.setState({ AppLeftTitle: \"\", AppCenterTitle: \"\", Portal: \"\" });\r\n\t\t\tthis.GetIsMenuFavorited(e.history.location.pathname);\r\n\t\t}\r\n\r\n\t\tthis.userName = userInfo.UserEmail;\r\n\t}\r\n\r\n\thandleLogout() {\r\n\t\tthis.setState({ open2: false });\r\n\r\n\t\tlocalStorage.removeItem(\"user\");\r\n\r\n\t\tconst { dispatch } = this.props;\r\n\t\tdispatch({ type: UserConstants.LOGOUT });\r\n\t}\r\n\r\n\tsetAppLeftTitle(val) {\r\n\t\tthis.setState({ AppLeftTitle: val });\r\n\t}\r\n\r\n\tsetAppCenterTitle(val) {\r\n\t\tthis.setState({ AppCenterTitle: val });\r\n\t}\r\n\r\n\tsetPortal(val) {\r\n\t\tthis.setState({ Portal: val });\r\n\t}\r\n\r\n\tValueChanged(name, newValue) {\r\n\t\tthis.setState(state => {\r\n\t\t\tvar model = state.model || {};\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tMenuValueChanged(name, value) {\r\n\t\tconst { history } = this.props;\r\n\t\thistory.push(value);\r\n\t}\r\n\t\r\n\tLoginCallback() {\r\n\t\tconst { model } = this.state;\r\n\t\tthis.setState({ LogInDisabled: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Authentication/ShadowLogin\",\r\n\t\t\t{\r\n\t\t\t\tClientUserId: model.ClientUserId\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isChangeUserDialogOpen: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tconst user = {\r\n\t\t\t\t\tEmail: this.state.model.Email, SessionId: responseData.DCBankAccessToken, ForceTwoFactorAuth: responseData.ForceTwoFactorAuth,\r\n\t\t\t\t\tSessionStatus: responseData.SessionStatus, MustChangePwd: responseData.MustChangePwd, CanBeClient: responseData.CanBeClient\r\n\t\t\t\t};\r\n\r\n\t\t\t\tlocalStorage.removeItem(\"MenuData\");\r\n\t\t\t\tlocalStorage.setItem(\"user\", JSON.stringify(user));\r\n\r\n\t\t\t\tconst { dispatch } = this.props;\r\n\t\t\t\tdispatch({ type: UserConstants.LOGIN_SUCCESS, user });\r\n\r\n\t\t\t\tthis.SetUser(responseData);\r\n\t\t\t\tthis.setState({ LogInDisabled: false });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ LogInDisabled: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\tSetUser(response) {\r\n\t\tvar promise =\r\n\t\t\tProxy.POST(\r\n\t\t\t\t\"/coreapi/v1.0/User/GetUserByEmailWithClientInfo\",\r\n\t\t\t\t{ Email: response.UserEmail },\r\n\t\t\t\tresponseData => {\r\n\t\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tvar user = ClientHelper.GetUser();\r\n\r\n\t\t\t\t\tvar userInfo = responseData.User;\r\n\t\t\t\t\tuserInfo.SessionId = user.SessionId;\r\n\t\t\t\t\tuserInfo.ShadowLogin = true;\r\n\r\n\t\t\t\t\tlocalStorage.setItem(\"user\", JSON.stringify(userInfo));\r\n\r\n\t\t\t\t\tconst { dispatch } = this.props;\r\n\t\t\t\t\tdispatch({ type: UserConstants.LOGIN_SUCCESS, user });\r\n\r\n\t\t\t\t\twindow.open(\"/\", \"_self\");\r\n\t\t\t\t},\r\n\t\t\t\terror => {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Login failed\", error);\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\tthis.loadTaskPool.AppendTask(promise);\r\n\t}\r\n\r\n\tasync GetIsMenuFavorited(menuUrl) {\r\n\t\tvar result = await this.ExecuteApiPost(\"/coreapi/v1.0/UserFavoriteMenuMap/GetByMenuUrl\", { MenuUrl: menuUrl }, null, null, null, null, null);\r\n\r\n\t\tthis.setState({ isFavorited: result || false });\r\n\t}\r\n\r\n\tChangeOpacity(opacity) {\r\n\t\tthis.setState({ opacity });\r\n\t}\r\n\r\n\tOnChangeUserClick() {\r\n\t\tthis.setState({ isChangeUserDialogOpen: true });\r\n\t}\r\n\trender() {\r\n\t\tconst { classes, ...rest } = this.props;\r\n\t\tconst { history } = this.props;\r\n\t\tconst { isChangeUserDialogOpen, model, opacity, isLoading, LogInDisabled } = this.state;\r\n\t\tconst isLeftMenu = window.MenuBar === \"left\";\r\n\t\tconst mainPanel = classes.mainPanel;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t `${d.ClientUser.UserEmail}`}\r\n\t\t\t\t\t\t\t\tValue={model.ClientUserId}\r\n\t\t\t\t\t\t\t\tValueChanged={this.ValueChanged} />\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{isLeftMenu &&\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t{!isLeftMenu &&\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{this.state.flatRoutes.map((prop, key) => {\r\n\t\t\t\t\t\t\t\t\tif (prop.redirect)\r\n\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nDashboard.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tdispatch: PropTypes.func,\r\n\thistory: PropTypes.object\r\n};\r\n\r\nexport default withRedux(Dashboard, appStyle);","// ##############################\r\n// // // App styles\r\n// #############################\r\n\r\nimport {\r\n\tdrawerWidth,\r\n\tdrawerMiniWidth,\r\n\ttransition,\r\n\tcontainerFluid\r\n} from \"assets/jss/material-dashboard-pro-react.jsx\";\r\n\r\nconst appStyle = theme => ({\r\n\twrapper: {\r\n\t\tposition: \"relative\",\r\n\t\ttop: \"0\",\r\n\t\theight: \"100vh\",\r\n\t\t\"&:after\": {\r\n\t\t\tdisplay: \"table\",\r\n\t\t\tclear: \"both\",\r\n\t\t\tcontent: \"\\\" \\\"\"\r\n\t\t}\r\n\t},\r\n\tmainPanel: {\r\n\t\ttransitionProperty: \"top, bottom, width\",\r\n\t\ttransitionDuration: \".2s, .2s, .35s\",\r\n\t\ttransitionTimingFunction: \"linear, linear, ease\",\r\n\t\twidth: `calc(100% - ${drawerWidth}px)`,\r\n\t\toverflow: \"auto\",\r\n\t\tposition: \"relative\",\r\n\t\tfloat: \"right\",\r\n\t\t...transition,\r\n\t\tmaxHeight: \"100%\",\r\n\t\toverflowScrolling: \"touch\"\r\n\t},\r\n\tcontent: {\r\n\t\tmarginTop: \"50px\",\r\n\t\t// PRIMEFOR padding: \"30px 15px\",\r\n\t\tminHeight: \"calc(100vh - 102px)\",\r\n\t\tbackgroundColor: \"white\",\r\n\t\t// borderLeft: \"10px solid black\",\t\r\n\t\t// borderRight: \"10px solid black\"\r\n\t},\r\n\tcontainer: { ...containerFluid },\r\n\tmap: {\r\n\t\tmarginTop: \"70px\"\r\n\t},\r\n\tmainPanelSidebarMini: {\r\n\t\t[theme.breakpoints.up(\"md\")]: {\r\n\t\t\twidth: `calc(100% - ${drawerMiniWidth}px)`\r\n\t\t}\r\n\t},\r\n\tmainPanelWithPerfectScrollbar: {\r\n\t\toverflow: \"hidden !important\"\r\n\t}\r\n});\r\n\r\nexport default appStyle;\r\n","import withStyles from \"@material-ui/core/styles/withStyles\";\r\nimport footerStyle from \"assets/jss/material-dashboard-pro-react/components/footerStyle\";\r\nimport cx from \"classnames\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\n\r\nfunction Footer({ ...props }) {\r\n\tconst { classes, fluid, white } = props;\r\n\r\n\tvar container = cx({\r\n\t\t[classes.container]: !fluid,\r\n\t\t[classes.containerFluid]: fluid,\r\n\t\t[classes.whiteColor]: white\r\n\t});\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t

\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n}\r\n\r\nFooter.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tfluid: PropTypes.bool,\r\n\twhite: PropTypes.bool\r\n};\r\n\r\nexport default withStyles(footerStyle)(Footer);\r\n","// ##############################\r\n// // // Footer styles\r\n// #############################\r\n\r\nimport {\r\n\tdefaultFont,\r\n\tcontainer,\r\n\tcontainerFluid,\r\n\tprimaryColor\r\n} from \"assets/jss/material-dashboard-pro-react.jsx\";\r\n\r\nconst footerStyle = {\r\n\tblock: {},\r\n\tleft: {\r\n\t\tfloat: \"left!important\",\r\n\t\tdisplay: \"block\"\r\n\t},\r\n\tright: {\r\n\t\tmargin: \"0\",\r\n\t\tfontSize: \"14px\",\r\n\t\tfloat: \"right!important\",\r\n\t\tpadding: \"15px\"\r\n\t},\r\n\tfooter: {\r\n\t\tbottom: \"0\",\r\n\t\tborderTop: \"1px solid #e7e7e7\",\r\n\t\tpadding: \"15px 0\",\r\n\t\t...defaultFont,\r\n\t\tzIndex: 4,\r\n\t\tbackgroundColor: \"black\",\r\n\t\tmarginRight: \"3px\",\r\n\t\tminWidth: \"1600px\"\r\n\t},\r\n\tcontainer: {\r\n\t\tzIndex: 3,\r\n\t\t...container,\r\n\t\tposition: \"relative\"\r\n\t},\r\n\tcontainerFluid: {\r\n\t\tzIndex: 3,\r\n\t\t...containerFluid,\r\n\t\tposition: \"relative\"\r\n\t},\r\n\ta: {\r\n\t\tcolor: primaryColor,\r\n\t\ttextDecoration: \"none\",\r\n\t\tbackgroundColor: \"transparent\"\r\n\t},\r\n\tlist: {\r\n\t\tmarginBottom: \"0\",\r\n\t\tpadding: \"0\",\r\n\t\tmarginTop: \"0\"\r\n\t},\r\n\tinlineBlock: {\r\n\t\tdisplay: \"inline-block\",\r\n\t\tpadding: \"0\",\r\n\t\twidth: \"auto\"\r\n\t},\r\n\twhiteColor: {\r\n\t\t\"&,&:hover,&:focus\": {\r\n\t\t\tcolor: \"#FFFFFF\"\r\n\t\t}\r\n\t}\r\n};\r\nexport default footerStyle;\r\n","import { AppBar, Hidden, Icon, Toolbar } from \"@material-ui/core\";\r\nimport headerStyle from \"assets/jss/material-dashboard-pro-react/components/headerStyle.jsx\";\r\nimport cx from \"classnames\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport { Link } from \"react-router-dom\";\r\nimport { GenericSelectInput } from \"views/Components/Generic\";\r\nimport { MenuCodes } from \"views/Constants/Constant\";\r\n\r\nfunction Header({ ...props }) {\r\n\tconst { classes, color, headerMenuRightList, menuList} = props;\r\n\r\n\tvar userInfo = ClientHelper.GetUser();\r\n\r\n\tvar FullName = userInfo ? `${userInfo.FirstName ?? \"\"} ${userInfo.LastName ?? \"\"}` : \"\";\r\n\r\n\tvar Date = DateHelper.GetDateTimeLocal().format(\"MMMM Do YYYY\");\r\n\tvar Timezone = DateHelper.GetDateTimeLocal().format(\"[GMT] Z\");\r\n\tvar MstTimezone = DateHelper.GetDateTimeMst().format(\"[MST] Z\");\r\n\tvar EstTimeZone = DateHelper.GetDateTimeEst().format(\"[EST] Z\");\r\n\r\n\tvar CustomerNumber = ClientHelper.GetClientId();\r\n\tvar ClientName = userInfo?.ClientName ?? \"\";\r\n\r\n\tvar isBackoffice = ClientHelper.IsBackOffice();\r\n\r\n\tvar storeCode = userInfo?.CustomerStore?.StoreCode ?? \"\";\r\n\tvar storeName = userInfo?.CustomerStore?.StoreName ?? \"\";\r\n\tvar storeArea = storeCode ? storeCode + \" \" + storeName : \"\";\r\n \r\n\tconst appBarClasses = cx({\r\n\t\t[\" \" + classes[color]]: color\r\n\t});\r\n\r\n\tconst logoClasses =\r\n\t\tclasses.logo +\r\n\t\t\" \" +\r\n\t\tcx({\r\n\t\t\t[classes.whiteAfter]: true\r\n\t\t});\r\n\r\n\tconst mainLogo = require(\"assets/img/\" + window.MainLogo);\r\n\tvar brand = (\r\n\t\t
\r\n\t\t\t\r\n\t\t\t\t\"logo\"\r\n\t\t\t\r\n\t\t
\r\n\t);\r\n\r\n\tif (headerMenuRightList !== undefined) {\r\n\t\tvar myProfileHeaderIsShow = false,\r\n\t\t\tapiSandBoxIsShow = false;\r\n\t\tfor (var headerMenuRight of headerMenuRightList) {\r\n\t\t\tif (headerMenuRight.MenuCode == MenuCodes.Header_MyProfileHeader) {\r\n\t\t\t\tmyProfileHeaderIsShow = headerMenuRight.HasAuthority;\r\n\t\t\t} else if (headerMenuRight.MenuCode == MenuCodes.Header_ApiSandBox) {\r\n\t\t\t\tapiSandBoxIsShow = headerMenuRight.HasAuthority;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\treturn (\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\t\t{brand}\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\tWelcome back {FullName}
\r\n\t\t\t\t\t\t{CustomerNumber} {ClientName}
\r\n\t\t\t\t\t\t{storeArea}\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tdate_range\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{Date}\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t{Timezone}\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t {EstTimeZone}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\t{\r\n\t\t\t\t\tuserInfo && userInfo.CanBeClient\r\n\t\t\t\t\t&&\r\n\t\t\t\t\t(\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tswap_vert\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tChange User\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t\t{\r\n\t\t\t\t\t!isBackoffice && myProfileHeaderIsShow !== undefined\r\n\t\t\t\t\t\t&& myProfileHeaderIsShow\r\n\t\t\t\t\t\t?\r\n\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tperson\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tMy Profile\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t)\r\n\t\t\t\t\t\t:\r\n\t\t\t\t\t\t(
)\r\n\t\t\t\t}\r\n\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tSign-out\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n}\r\n\r\nHeader.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tcolor: PropTypes.oneOf([\"primary\", \"info\", \"success\", \"warning\", \"danger\"]),\r\n\theaderMenuRightList: PropTypes.array,\r\n\tmenuList: PropTypes.array,\r\n\tonChangeUserClick: PropTypes.func,\r\n\tMenuValueChanged: PropTypes.func\r\n};\r\n\r\nexport default withArtifex(Header, headerStyle);","// ##############################\r\n// // // Header styles\r\n// #############################\r\n\r\nimport {\r\n\tcontainerFluid,\r\n\tdefaultFont,\r\n\tprimaryColor,\r\n\tdefaultBoxShadow,\r\n\tinfoColor,\r\n\tsuccessColor,\r\n\twarningColor,\r\n\tdangerColor\r\n} from \"assets/jss/material-dashboard-pro-react.jsx\";\r\n\r\nconst smallFont = {\r\n\tfontSize: \"12px\"\r\n};\r\n\r\nconst headerStyle = theme => ({\r\n\tappBar: {\r\n\t\tbackgroundColor: window.BackgroundColor,\r\n\t\tboxShadow: \"none\",\r\n\t\tborderBottom: \"0\",\r\n\t\tmarginBottom: \"0\",\r\n\t\t//width: \"100%\",\r\n\t\tminWidth: \"960px\",\r\n\t\tzIndex: \"1029\",\r\n\t\tcolor: \"white\",\r\n\t\tborder: \"0\",\r\n\t\tborderRadius: \"0px\",\r\n\t\ttransition: \"all 150ms ease 0s\",\r\n\t\tminHeight: \"50px\",\r\n\t\tdisplay: \"block\",\r\n\t\tposition: \"absolute\",\r\n\t\t[theme.breakpoints.down(\"md\")]: {\r\n\t\t\tposition: \"fixed\",\r\n\t\t\tminWidth: \"unset\"\r\n\t\t}\r\n\t},\r\n\tcontainer: {\r\n\t\t...containerFluid,\r\n\t\tminHeight: \"50px\"\r\n\t},\r\n\tflex: {\r\n\t\tflex: 1\r\n\t},\r\n\ttitle: {\r\n\t\t...defaultFont,\r\n\t\tlineHeight: \"30px\",\r\n\t\tfontSize: \"18px\",\r\n\t\tborderRadius: \"3px\",\r\n\t\ttextTransform: \"none\",\r\n\t\tcolor: \"white\",\r\n\t\tpaddingTop: \"0.625rem\",\r\n\t\tpaddingBottom: \"0.625rem\",\r\n\t\tmargin: \"0 !important\",\r\n\t\t\"&:hover,&:focus\": {\r\n\t\t\tbackground: \"transparent\"\r\n\t\t}\r\n\t},\r\n\tprimary: {\r\n\t\tbackgroundColor: primaryColor,\r\n\t\tcolor: \"#FFFFFF\",\r\n\t\t...defaultBoxShadow\r\n\t},\r\n\tinfo: {\r\n\t\tbackgroundColor: infoColor,\r\n\t\tcolor: \"#FFFFFF\",\r\n\t\t...defaultBoxShadow\r\n\t},\r\n\tsuccess: {\r\n\t\tbackgroundColor: successColor,\r\n\t\tcolor: \"#FFFFFF\",\r\n\t\t...defaultBoxShadow\r\n\t},\r\n\twarning: {\r\n\t\tbackgroundColor: warningColor,\r\n\t\tcolor: \"#FFFFFF\",\r\n\t\t...defaultBoxShadow\r\n\t},\r\n\tdanger: {\r\n\t\tbackgroundColor: dangerColor,\r\n\t\tcolor: \"#FFFFFF\",\r\n\t\t...defaultBoxShadow\r\n\t},\r\n\tsidebarMinimize: {\r\n\t\tfloat: \"left\",\r\n\t\tpadding: \"0 0 0 15px\",\r\n\t\tdisplay: \"block\",\r\n\t\tcolor: \"#555555\"\r\n\t},\r\n\tsidebarMinimizeRTL: {\r\n\t\tpadding: \"0 15px 0 0 !important\"\r\n\t},\r\n\tsidebarMiniIcon: {\r\n\t\twidth: \"12px !important\",\r\n\t\theight: \"12px !important\",\r\n\t\tcolor: primaryColor\r\n\t},\r\n\tminimizeButton: {\r\n\t\tpaddingTop: \"7px\",\r\n\t\theight: \"24px\",\r\n\t\twidth: \"24px\",\r\n\t\tminWidth: \"24px\"\r\n\t},\r\n\theaderText: {\r\n\t\tmarginLeft: \"10px\",\r\n\t\t...smallFont\r\n\t},\r\n\thelp: {\r\n\t\tpaddingRight: \"20px\",\r\n\t\t...smallFont\r\n\t},\r\n\tsmallFont: {\r\n\t\t...smallFont\r\n\t},\r\n\tgridItem: {\r\n\t\tpadding: \"2px !important\"\r\n\t},\r\n\tlogo: {\r\n\t\tpaddingTop: \"5px\",\r\n\t\tpaddingLeft: \"5px\",\r\n\t\tpaddingRight: \"5px\",\r\n\t\tbackground: \"white\",\r\n\t\tborderRadius: \"5px\",\r\n\t\tmargin: \"5px\",\r\n\t\tdisplay: \"block\",\r\n\t\tposition: \"relative\",\r\n\t\tzIndex: \"4\",\r\n\t\t\"&:after\": {\r\n\t\t\tcontent: \"\\\"\\\"\",\r\n\t\t\tposition: \"absolute\",\r\n\t\t\tbottom: \"0\",\r\n\t\t\theight: \"1px\",\r\n\t\t\tright: \"15px\",\r\n\t\t\twidth: \"calc(100% - 30px)\",\r\n\t\t\tbackgroundColor: \"hsla(0,0%,100%,.3)\"\r\n\t\t}\r\n\t},\r\n\tlogoMini: {\r\n\t\ttransition: \"all 300ms linear\",\r\n\t\topacity: 1,\r\n\t\tfloat: \"left\",\r\n\t\ttextAlign: \"center\",\r\n\t\twidth: \"30px\",\r\n\t\tdisplay: \"inline-block\",\r\n\t\tmaxHeight: \"30px\",\r\n\t\t// marginLeft: \"22px\",\r\n\t\t// marginRight: \"18px\",\r\n\t\t// marginTop: \"7px\",\r\n\t\tcolor: \"inherit\"\r\n\t},\r\n\tlogoMiniRTL: {\r\n\t\tfloat: \"right\",\r\n\t\tmarginRight: \"30px\",\r\n\t\tmarginLeft: \"26px\"\r\n\t},\r\n\tlogoNormal: {\r\n\t\t...defaultFont,\r\n\t\ttransition: \"all 300ms linear\",\r\n\t\tdisplay: \"block\",\r\n\t\topacity: \"1\",\r\n\t\ttransform: \"translate3d(0px, 0, 0)\",\r\n\t\ttextTransform: \"uppercase\",\r\n\t\tfontSize: \"18px\",\r\n\t\twhiteSpace: \"nowrap\",\r\n\t\tfontWeight: \"400\",\r\n\t\tlineHeight: \"30px\",\r\n\t\toverflow: \"hidden\",\r\n\t\t\"&,&:hover,&:focus\": {\r\n\t\t\tcolor: \"white\"\r\n\t\t}\r\n\t},\r\n\tlogoNormalRTL: {\r\n\t\ttextAlign: \"right\"\r\n\t},\r\n\tlogoNormalSidebarMini: {\r\n\t\topacity: \"0\",\r\n\t\ttransform: \"translate3d(-25px, 0, 0)\"\r\n\t},\r\n\tlogoNormalSidebarMiniRTL: {\r\n\t\ttransform: \"translate3d(25px, 0, 0)\"\r\n\t},\r\n});\r\n\r\nexport default headerStyle;","import Collapse from \"@material-ui/core/Collapse\";\r\nimport Drawer from \"@material-ui/core/Drawer\";\r\nimport List from \"@material-ui/core/List\";\r\nimport ListItem from \"@material-ui/core/ListItem\";\r\nimport ListItemText from \"@material-ui/core/ListItemText\";\r\nimport ExpandLess from \"@material-ui/icons/ExpandLess\";\r\nimport ExpandMore from \"@material-ui/icons/ExpandMore\";\r\nimport sidebarStyle from \"assets/jss/material-dashboard-pro-react/components/sidebarStyle.jsx\";\r\nimport cx from \"classnames\";\r\nimport { withArtifex } from \"core\";\r\nimport ResourceHelper from \"core/ResourceHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport { NavLink } from \"react-router-dom\";\r\n\r\nclass Sidebar extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {};\r\n\t}\r\n\t// verifies if routeName is the one active (in browser input)\r\n\tactiveRoute(routeName) {\r\n\t\treturn this.props.location.pathname === routeName;\r\n\t}\r\n\t// this method sets the current state of a menu item i.e whether it is in expanded or collapsed or a collapsed state\r\n\thandleClick(item) {\r\n\t\tthis.setState(prevState => (\r\n\t\t\t{ [item.Name]: !prevState[item.Name] }\r\n\t\t));\r\n\t}\r\n\t// if the menu item doesn't have any child, this method simply returns a clickable menu item that redirects to any location and if there is no child this method uses recursion to go until the last level of routes and then returns the item by the first condition.\r\n\thandler(routes) {\r\n\t\tconst { classes, color, rtlActive } = this.props;\r\n\t\tconst { state } = this;\r\n\r\n\t\tif (routes == null) return null;\r\n\r\n\t\treturn routes.map((prop, key) => {\r\n\t\t\tif (prop.redirect) {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\tif (prop.Collapse) {\r\n\t\t\t\tconst itemText =\r\n\t\t\t\t\tclasses.itemText +\r\n\t\t\t\t\t\" \" +\r\n\t\t\t\t\tcx({\r\n\t\t\t\t\t\t[classes.itemTextMini]:\r\n\t\t\t\t\t\t\tthis.props.miniActive && this.state.miniActive,\r\n\t\t\t\t\t\t[classes.itemTextMiniRTL]:\r\n\t\t\t\t\t\t\trtlActive && this.props.miniActive && this.state.miniActive,\r\n\t\t\t\t\t\t[classes.itemTextRTL]: rtlActive\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\treturn (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t this.handleClick(prop)}>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{state[prop.Name] ?\r\n\t\t\t\t\t\t\t\t :\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{this.handler(prop.Views)}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t);\r\n\t\t\t}\r\n\r\n\t\t\tconst navLinkClasses =\r\n\t\t\t\tclasses.itemLink +\r\n\t\t\t\t\" \" +\r\n\t\t\t\tcx({\r\n\t\t\t\t\t[\" \" + classes[color]]: this.activeRoute(prop.Path)\r\n\t\t\t\t});\r\n\r\n\t\t\tconst itemText =\r\n\t\t\t\tclasses.itemText +\r\n\t\t\t\t\" \" +\r\n\t\t\t\tcx({\r\n\t\t\t\t\t[classes.itemTextMini]:\r\n\t\t\t\t\t\tthis.props.miniActive && this.state.miniActive,\r\n\t\t\t\t\t[classes.itemTextMiniRTL]:\r\n\t\t\t\t\t\trtlActive && this.props.miniActive && this.state.miniActive,\r\n\t\t\t\t\t[classes.itemTextRTL]: rtlActive\r\n\t\t\t\t});\r\n\r\n\t\t\treturn (\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t);\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes, bgColor, routes, rtlActive } = this.props;\r\n\r\n\t\tconst drawerPaper =\r\n\t\t\tclasses.drawerPaper +\r\n\t\t\t\" \" +\r\n\t\t\tcx({\r\n\t\t\t\t[classes.drawerPaperMini]:\r\n\t\t\t\t\tthis.props.miniActive && this.state.miniActive,\r\n\t\t\t\t[classes.drawerPaperRTL]: rtlActive\r\n\t\t\t});\r\n\r\n\t\tconst sidebarWrapper =\r\n\t\t\tclasses.sidebarWrapper +\r\n\t\t\t\" \" +\r\n\t\t\tcx({\r\n\t\t\t\t[classes.drawerPaperMini]:\r\n\t\t\t\t\tthis.props.miniActive && this.state.miniActive,\r\n\t\t\t});\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{this.handler(routes)}\r\n\t\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nSidebar.defaultProps = {\r\n\tbgColor: \"blue\"\r\n};\r\n\r\nSidebar.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tbgColor: PropTypes.oneOf([\"white\", \"black\", \"blue\"]),\r\n\trtlActive: PropTypes.bool,\r\n\tcolor: PropTypes.oneOf([\r\n\t\t\"white\",\r\n\t\t\"red\",\r\n\t\t\"orange\",\r\n\t\t\"green\",\r\n\t\t\"blue\",\r\n\t\t\"purple\",\r\n\t\t\"rose\"\r\n\t]),\r\n\troutes: PropTypes.arrayOf(PropTypes.object),\r\n\thistory: PropTypes.any\r\n};\r\n\r\nexport default withArtifex(Sidebar, sidebarStyle);","// ##############################\r\n// // // Sidebar styles\r\n// #############################\r\n\r\nimport {\r\n\ttransition,\r\n\tboxShadow,\r\n\tdefaultFont,\r\n\tprimaryColor,\r\n\tprimaryBoxShadow,\r\n\tinfoColor,\r\n\tsuccessColor,\r\n\twarningColor,\r\n\tdangerColor,\r\n\troseColor\r\n} from \"assets/jss/material-dashboard-pro-react.jsx\";\r\n\r\nconst drawerWidth = \"30vh\";\r\nconst drawerMiniWidth = \"24vh\";\r\n\r\nconst sidebarStyle = theme => ({\r\n\tdrawerPaperRTL: {\r\n\t\t[theme.breakpoints.up(\"md\")]: {\r\n\t\t\tleft: \"auto !important\",\r\n\t\t\tright: \"0 !important\"\r\n\t\t},\r\n\t\t[theme.breakpoints.down(\"sm\")]: {\r\n\t\t\tleft: \"0 !important\",\r\n\t\t\tright: \"auto !important\"\r\n\t\t}\r\n\t},\r\n\tdrawerPaper: {\r\n\t\tborder: \"none\",\r\n\t\tposition: \"fixed\",\r\n\t\ttop: \"50px\",\r\n\t\tbottom: \"0\",\r\n\t\tleft: \"initial !important\",\r\n\t\tzIndex: \"1032\",\r\n\t\ttransitionProperty: \"top, bottom, width\",\r\n\t\ttransitionDuration: \".2s, .2s, .35s\",\r\n\t\ttransitionTimingFunction: \"linear, linear, ease\",\r\n\t\t// overflow: 'auto',\r\n\t\t...boxShadow,\r\n\t\twidth: drawerWidth,\r\n\t\t[theme.breakpoints.up(\"md\")]: {\r\n\t\t\twidth: drawerWidth,\r\n\t\t\tposition: \"fixed\",\r\n\t\t\theight: \"100%\"\r\n\t\t},\r\n\t\t[theme.breakpoints.down(\"sm\")]: {\r\n\t\t\twidth: drawerWidth,\r\n\t\t\t...boxShadow,\r\n\t\t\tposition: \"fixed\",\r\n\t\t\tdisplay: \"block\",\r\n\t\t\ttop: \"0\",\r\n\t\t\theight: \"100vh\",\r\n\t\t\tright: \"0\",\r\n\t\t\tleft: \"auto\",\r\n\t\t\tzIndex: \"1032\",\r\n\t\t\tvisibility: \"visible\",\r\n\t\t\toverflowY: \"visible\",\r\n\t\t\tborderTop: \"none\",\r\n\t\t\ttextAlign: \"left\",\r\n\t\t\tpaddingRight: \"0px\",\r\n\t\t\tpaddingLeft: \"0\",\r\n\t\t\ttransform: `translate3d(${drawerWidth}px, 0, 0)`,\r\n\t\t\t...transition\r\n\t\t},\r\n\t\t\"&:before,&:after\": {\r\n\t\t\tposition: \"absolute\",\r\n\t\t\tzIndex: \"3\",\r\n\t\t\twidth: \"100%\",\r\n\t\t\theight: \"100%\",\r\n\t\t\tcontent: \"\",\r\n\t\t\tdisplay: \"block\",\r\n\t\t\ttop: \"0\"\r\n\t\t}\r\n\t},\r\n\tblackBackground: {\r\n\t\tcolor: \"#FFFFFF\",\r\n\t\tbackground: \"#000\",\r\n\t\t\"&:after\": {\r\n\t\t\topacity: \".8\"\r\n\t\t}\r\n\t},\r\n\tblueBackground: {\r\n\t\tcolor: \"#FFFFFF\",\r\n\t\t\"&:after\": {\r\n\t\t\tbackground: \"#00acc1\",\r\n\t\t\topacity: \".93\"\r\n\t\t}\r\n\t},\r\n\twhiteBackground: {\r\n\t\tcolor: \"#3C4858\",\r\n\t\t\"&:after\": {\r\n\t\t\tbackground: \"#FFFFFF\",\r\n\t\t\topacity: \".93\"\r\n\t\t}\r\n\t},\r\n\twhiteAfter: {\r\n\t\t\"&:after\": {\r\n\t\t\tbackgroundColor: \"hsla(0,0%,71%,.3) !important\"\r\n\t\t}\r\n\t},\r\n\tdrawerPaperMini: {\r\n\t\twidth: drawerMiniWidth + \"px!important\"\r\n\t},\r\n\tlogo: {\r\n\t\tpadding: \"15px 0px\",\r\n\t\tmargin: \"0\",\r\n\t\tdisplay: \"block\",\r\n\t\tposition: \"relative\",\r\n\t\tzIndex: \"4\",\r\n\t\t\"&:after\": {\r\n\t\t\tcontent: \"\",\r\n\t\t\tposition: \"absolute\",\r\n\t\t\tbottom: \"0\",\r\n\t\t\theight: \"1px\",\r\n\t\t\tright: \"15px\",\r\n\t\t\twidth: \"calc(100% - 30px)\",\r\n\t\t\tbackgroundColor: \"hsla(0,0%,100%,.3)\"\r\n\t\t}\r\n\t},\r\n\tlogoMini: {\r\n\t\ttransition: \"all 300ms linear\",\r\n\t\topacity: 1,\r\n\t\tfloat: \"left\",\r\n\t\ttextAlign: \"center\",\r\n\t\twidth: \"30px\",\r\n\t\tdisplay: \"inline-block\",\r\n\t\tmaxHeight: \"30px\",\r\n\t\tmarginLeft: \"22px\",\r\n\t\tmarginRight: \"18px\",\r\n\t\tmarginTop: \"7px\",\r\n\t\tcolor: \"inherit\"\r\n\t},\r\n\tlogoMiniRTL: {\r\n\t\tfloat: \"right\",\r\n\t\tmarginRight: \"30px\",\r\n\t\tmarginLeft: \"26px\"\r\n\t},\r\n\tlogoNormal: {\r\n\t\t...defaultFont,\r\n\t\ttransition: \"all 300ms linear\",\r\n\t\tdisplay: \"block\",\r\n\t\topacity: \"1\",\r\n\t\ttransform: \"translate3d(0px, 0, 0)\",\r\n\t\ttextTransform: \"uppercase\",\r\n\t\tpadding: \"5px 0px\",\r\n\t\tfontSize: \"18px\",\r\n\t\twhiteSpace: \"nowrap\",\r\n\t\tfontWeight: \"400\",\r\n\t\tlineHeight: \"30px\",\r\n\t\toverflow: \"hidden\",\r\n\t\t\"&,&:hover,&:focus\": {\r\n\t\t\tcolor: \"inherit\"\r\n\t\t}\r\n\t},\r\n\tlogoNormalRTL: {\r\n\t\ttextAlign: \"right\"\r\n\t},\r\n\tlogoNormalSidebarMini: {\r\n\t\topacity: \"0\",\r\n\t\ttransform: \"translate3d(-25px, 0, 0)\"\r\n\t},\r\n\tlogoNormalSidebarMiniRTL: {\r\n\t\ttransform: \"translate3d(25px, 0, 0)\"\r\n\t},\r\n\timg: {\r\n\t\twidth: \"35px\",\r\n\t\tverticalAlign: \"middle\",\r\n\t\tborder: \"0\"\r\n\t},\r\n\tbackground: {\r\n\t\tposition: \"absolute\",\r\n\t\tzIndex: \"1\",\r\n\t\theight: \"100%\",\r\n\t\twidth: \"100%\",\r\n\t\tdisplay: \"block\",\r\n\t\ttop: \"0\",\r\n\t\tleft: \"0\",\r\n\t\tbackgroundSize: \"cover\",\r\n\t\tbackgroundPosition: \"center center\",\r\n\t\ttransition: \"all 300ms linear\"\r\n\t},\r\n\tlist: {\r\n\t\tmarginTop: \"15px\",\r\n\t\tpaddingLeft: \"0\",\r\n\t\tpaddingTop: \"0\",\r\n\t\tpaddingBottom: \"0\",\r\n\t\tmarginBottom: \"0\",\r\n\t\tlistStyle: \"none\",\r\n\t\tcolor: \"inherit\",\r\n\t\t\"&:before,&:after\": {\r\n\t\t\tdisplay: \"table\",\r\n\t\t\tcontent: \"\"\r\n\t\t},\r\n\t\t\"&:after\": {\r\n\t\t\tclear: \"both\"\r\n\t\t}\r\n\t},\r\n\titem: {\r\n\t\tcolor: \"inherit\",\r\n\t\tposition: \"relative\",\r\n\t\tdisplay: \"block\",\r\n\t\ttextDecoration: \"none\",\r\n\t\tmargin: \"0\",\r\n\t\tpadding: \"0\"\r\n\t},\r\n\tuserItem: {\r\n\t\t\"&:last-child\": {\r\n\t\t\tpaddingBottom: \"0px\"\r\n\t\t}\r\n\t},\r\n\titemLink: {\r\n\t\tpaddingLeft: \"10px\",\r\n\t\tpaddingRight: \"10px\",\r\n\t\ttransition: \"all 300ms linear\",\r\n\t\tmargin: \"10px 15px 0\",\r\n\t\tborderRadius: \"3px\",\r\n\t\tposition: \"relative\",\r\n\t\tdisplay: \"block\",\r\n\t\tpadding: \"10px 15px\",\r\n\t\tbackgroundColor: \"transparent\",\r\n\t\t...defaultFont,\r\n\t\twidth: \"auto\",\r\n\t\t\"&:hover\": {\r\n\t\t\toutline: \"none\",\r\n\t\t\tbackgroundColor: \"rgba(200, 200, 200, 0.2)\",\r\n\t\t\tboxShadow: \"none\"\r\n\t\t},\r\n\t\t\"&,&:hover,&:focus\": {\r\n\t\t\tcolor: \"inherit\"\r\n\t\t}\r\n\t},\r\n\titemIcon: {\r\n\t\tcolor: \"inherit\",\r\n\t\twidth: \"30px\",\r\n\t\theight: \"24px\",\r\n\t\tfloat: \"left\",\r\n\t\tposition: \"inherit\",\r\n\t\ttop: \"3px\",\r\n\t\tmarginRight: \"15px\",\r\n\t\ttextAlign: \"center\",\r\n\t\tverticalAlign: \"middle\",\r\n\t\topacity: \"0.8\"\r\n\t},\r\n\titemIconRTL: {\r\n\t\tfloat: \"right\",\r\n\t\tmarginLeft: \"15px\",\r\n\t\tmarginRight: \"1px\"\r\n\t},\r\n\titemText: {\r\n\t\tcolor: \"inherit\",\r\n\t\t...defaultFont,\r\n\t\tmargin: \"0\",\r\n\t\tlineHeight: \"30px\",\r\n\t\tfontSize: \"14px\",\r\n\t\ttransform: \"translate3d(0px, 0, 0)\",\r\n\t\topacity: \"1\",\r\n\t\ttransition: \"transform 300ms ease 0s, opacity 300ms ease 0s\",\r\n\t\tposition: \"relative\",\r\n\t\tdisplay: \"block\",\r\n\t\theight: \"auto\",\r\n\t\twhiteSpace: \"nowrap\"\r\n\t},\r\n\tuserItemText: {\r\n\t\tlineHeight: \"22px\"\r\n\t},\r\n\titemTextRTL: {\r\n\t\tmarginRight: \"45px\",\r\n\t\ttextAlign: \"right\"\r\n\t},\r\n\titemTextMini: {\r\n\t\ttransform: \"translate3d(-25px, 0, 0)\",\r\n\t\topacity: \"0\"\r\n\t},\r\n\titemTextMiniRTL: {\r\n\t\ttransform: \"translate3d(25px, 0, 0) !important\"\r\n\t},\r\n\tcollapseList: {\r\n\t\tmarginTop: \"0\"\r\n\t},\r\n\tcollapseItem: {\r\n\t\tposition: \"relative\",\r\n\t\tdisplay: \"block\",\r\n\t\ttextDecoration: \"none\",\r\n\t\tmargin: \"10px 0 0 0\",\r\n\t\tpadding: \"0\"\r\n\t},\r\n\tcollapseActive: {\r\n\t\toutline: \"none\",\r\n\t\tbackgroundColor: \"rgba(200, 200, 200, 0.2)\",\r\n\t\tboxShadow: \"none\"\r\n\t},\r\n\tcollapseItemLink: {\r\n\t\ttransition: \"all 300ms linear\",\r\n\t\tmargin: \"0 15px\",\r\n\t\tborderRadius: \"3px\",\r\n\t\tposition: \"relative\",\r\n\t\tdisplay: \"block\",\r\n\t\tpadding: \"10px\",\r\n\t\tbackgroundColor: \"transparent\",\r\n\t\t...defaultFont,\r\n\t\twidth: \"auto\",\r\n\t\t\"&:hover\": {\r\n\t\t\toutline: \"none\",\r\n\t\t\tbackgroundColor: \"rgba(200, 200, 200, 0.2)\",\r\n\t\t\tboxShadow: \"none\"\r\n\t\t},\r\n\t\t\"&,&:hover,&:focus\": {\r\n\t\t\tcolor: \"inherit\"\r\n\t\t}\r\n\t},\r\n\tcollapseItemMini: {\r\n\t\tcolor: \"inherit\",\r\n\t\t...defaultFont,\r\n\t\ttextTransform: \"uppercase\",\r\n\t\twidth: \"30px\",\r\n\t\tmarginRight: \"15px\",\r\n\t\ttextAlign: \"center\",\r\n\t\tletterSpacing: \"1px\",\r\n\t\tposition: \"relative\",\r\n\t\tfloat: \"left\",\r\n\t\tdisplay: \"inherit\",\r\n\t\ttransition: \"transform 300ms ease 0s, opacity 300ms ease 0s\",\r\n\t\tfontSize: \"14px\"\r\n\t},\r\n\tcollapseItemMiniRTL: {\r\n\t\tfloat: \"right\",\r\n\t\tmarginLeft: \"30px\",\r\n\t\tmarginRight: \"1px\"\r\n\t},\r\n\tcollapseItemText: {\r\n\t\tcolor: \"inherit\",\r\n\t\t...defaultFont,\r\n\t\tmargin: \"0\",\r\n\t\tposition: \"relative\",\r\n\t\ttransform: \"translateX(0px)\",\r\n\t\topacity: \"1\",\r\n\t\twhiteSpace: \"nowrap\",\r\n\t\tdisplay: \"block\",\r\n\t\ttransition: \"transform 300ms ease 0s, opacity 300ms ease 0s\",\r\n\t\tfontSize: \"14px\"\r\n\t},\r\n\tcollapseItemTextRTL: {\r\n\t\ttextAlign: \"right\"\r\n\t},\r\n\tcollapseItemTextMiniRTL: {\r\n\t\ttransform: \"translate3d(25px, 0, 0) !important\"\r\n\t},\r\n\tcollapseItemTextMini: {\r\n\t\ttransform: \"translate3d(-25px, 0, 0)\",\r\n\t\topacity: \"0\"\r\n\t},\r\n\tcaret: {\r\n\t\tmarginTop: \"13px\",\r\n\t\tposition: \"absolute\",\r\n\t\tright: \"18px\",\r\n\t\ttransition: \"all 150ms ease-in\",\r\n\t\tdisplay: \"inline-block\",\r\n\t\twidth: \"0\",\r\n\t\theight: \"0\",\r\n\t\tmarginLeft: \"2px\",\r\n\t\tverticalAlign: \"middle\",\r\n\t\tborderTop: \"4px solid\",\r\n\t\tborderRight: \"4px solid transparent\",\r\n\t\tborderLeft: \"4px solid transparent\"\r\n\t},\r\n\tuserCaret: {\r\n\t\tmarginTop: \"10px\"\r\n\t},\r\n\tcaretRTL: {\r\n\t\tleft: \"11px\",\r\n\t\tright: \"auto\"\r\n\t},\r\n\tcaretActive: {\r\n\t\ttransform: \"rotate(180deg)\"\r\n\t},\r\n\tprimary: {\r\n\t\t\"&,&:hover,&:focus\": {\r\n\t\t\tcolor: \"#FFFFFF\",\r\n\t\t\tbackgroundColor: primaryColor,\r\n\t\t\t...primaryBoxShadow\r\n\t\t}\r\n\t},\r\n\tblue: {\r\n\t\t\"&,&:hover,&:focus\": {\r\n\t\t\tcolor: \"#FFFFFF\",\r\n\t\t\tbackgroundColor: infoColor,\r\n\t\t\tboxShadow:\r\n\t\t\t\t\"0 12px 20px -10px rgba(0,188,212,.28), 0 4px 20px 0 rgba(0,0,0,.12), 0 7px 8px -5px rgba(0,188,212,.2)\"\r\n\t\t}\r\n\t},\r\n\tgreen: {\r\n\t\t\"&,&:hover,&:focus\": {\r\n\t\t\tcolor: \"#FFFFFF\",\r\n\t\t\tbackgroundColor: successColor,\r\n\t\t\tboxShadow:\r\n\t\t\t\t\"0 12px 20px -10px rgba(76,175,80,.28), 0 4px 20px 0 rgba(0,0,0,.12), 0 7px 8px -5px rgba(76,175,80,.2)\"\r\n\t\t}\r\n\t},\r\n\torange: {\r\n\t\t\"&,&:hover,&:focus\": {\r\n\t\t\tcolor: \"#FFFFFF\",\r\n\t\t\tbackgroundColor: warningColor,\r\n\t\t\tboxShadow:\r\n\t\t\t\t\"0 12px 20px -10px rgba(255,152,0,.28), 0 4px 20px 0 rgba(0,0,0,.12), 0 7px 8px -5px rgba(255,152,0,.2)\"\r\n\t\t}\r\n\t},\r\n\tred: {\r\n\t\t\"&,&:hover,&:focus\": {\r\n\t\t\tcolor: \"#FFFFFF\",\r\n\t\t\tbackgroundColor: dangerColor,\r\n\t\t\tboxShadow:\r\n\t\t\t\t\"0 12px 20px -10px rgba(244,67,54,.28), 0 4px 20px 0 rgba(0,0,0,.12), 0 7px 8px -5px rgba(244,67,54,.2)\"\r\n\t\t}\r\n\t},\r\n\twhite: {\r\n\t\t\"&,&:hover,&:focus\": {\r\n\t\t\tcolor: \"#3C4858\",\r\n\t\t\tbackgroundColor: \"#FFFFFF\",\r\n\t\t\tboxShadow:\r\n\t\t\t\t\"0 4px 20px 0 rgba(0,0,0,.14), 0 7px 10px -5px rgba(60,72,88,.4)\"\r\n\t\t}\r\n\t},\r\n\trose: {\r\n\t\t\"&,&:hover,&:focus\": {\r\n\t\t\tcolor: \"#FFFFFF\",\r\n\t\t\tbackgroundColor: roseColor,\r\n\t\t\tboxShadow:\r\n\t\t\t\t\"0 4px 20px 0 rgba(0,0,0,.14), 0 7px 10px -5px rgba(233,30,99,.4)\"\r\n\t\t}\r\n\t},\r\n\tsidebarWrapper: {\r\n\t\tposition: \"relative\",\r\n\t\theight: \"calc(100vh - 50px)\",\r\n\t\toverflow: \"auto\",\r\n\t\twidth: \"100%\",\r\n\t\tzIndex: \"4\",\r\n\t\toverflowScrolling: \"touch\",\r\n\t\ttransitionProperty: \"top, bottom, width\",\r\n\t\ttransitionDuration: \".2s, .2s, .35s\",\r\n\t\ttransitionTimingFunction: \"linear, linear, ease\",\r\n\t\tcolor: \"inherit\",\r\n\t\tpaddingBottom: \"50px\"\r\n\t},\r\n\tsidebarWrapperWithPerfectScrollbar: {\r\n\t\toverflow: \"hidden !important\"\r\n\t},\r\n\tuser: {\r\n\t\tpaddingBottom: \"20px\",\r\n\t\tmargin: \"20px auto 0\",\r\n\t\tposition: \"relative\",\r\n\t\t\"&:after\": {\r\n\t\t\tcontent: \"\",\r\n\t\t\tposition: \"absolute\",\r\n\t\t\tbottom: \"0\",\r\n\t\t\tright: \"15px\",\r\n\t\t\theight: \"1px\",\r\n\t\t\twidth: \"calc(100% - 30px)\",\r\n\t\t\tbackgroundColor: \"hsla(0,0%,100%,.3)\"\r\n\t\t}\r\n\t},\r\n\tphoto: {\r\n\t\ttransition: \"all 300ms linear\",\r\n\t\twidth: \"34px\",\r\n\t\theight: \"34px\",\r\n\t\toverflow: \"hidden\",\r\n\t\tfloat: \"left\",\r\n\t\tzIndex: \"5\",\r\n\t\tmarginRight: \"11px\",\r\n\t\tborderRadius: \"50%\",\r\n\t\tmarginLeft: \"23px\",\r\n\t\t...boxShadow\r\n\t},\r\n\tphotoRTL: {\r\n\t\tfloat: \"right\",\r\n\t\tmarginLeft: \"12px\",\r\n\t\tmarginRight: \"24px\"\r\n\t},\r\n\tavatarImg: {\r\n\t\twidth: \"100%\",\r\n\t\tverticalAlign: \"middle\",\r\n\t\tborder: \"0\"\r\n\t},\r\n\tuserCollapseButton: {\r\n\t\tmargin: \"0\",\r\n\t\tpadding: \"6px 15px\",\r\n\t\t\"&:hover\": {\r\n\t\t\tbackground: \"none\"\r\n\t\t}\r\n\t},\r\n\tuserCollapseLinks: {\r\n\t\tmarginTop: \"-4px\",\r\n\t\t\"&:hover,&:focus\": {\r\n\t\t\tcolor: \"#FFFFFF\"\r\n\t\t}\r\n\t}\r\n});\r\n\r\nexport default sidebarStyle;\r\n","import { ClickAwayListener, DialogContent, DialogTitle, Grow, Hidden, Icon, MenuItem, MenuList, Paper, Popper, withStyles } from \"@material-ui/core\";\r\nimport appTitleBarStyle from \"assets/jss/material-dashboard-pro-react/views/appTitleBarStyle.jsx\";\r\nimport classNames from \"classnames\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport { GenericDialog, GenericDialogActions, GenericLabel } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ToolbarButton from \"views/Components/ToolbarButton\";\r\nimport { FileCode, MenuCodes, ViewSourceType } from \"views/Constants/Constant\";\r\n\r\nclass AppTitleBar extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.initialListNotification = [\r\n\t\t\t{\r\n\t\t\t\tId: 0,\r\n\t\t\t\tMessage: \"You have no notification!\",\r\n\t\t\t\tRead: false\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.initialListAnnouncement = [\r\n\t\t\t{\r\n\t\t\t\tId: 0,\r\n\t\t\t\tMessage: \"You have no announcement!\",\r\n\t\t\t\tRead: false\r\n\t\t\t}\r\n\t\t];\r\n\r\n\t\tthis.state = {\r\n\t\t\tviewSourceTypeIds: {},\r\n\t\t\tlistHeaderMenuRight: [],\r\n\t\t\tlistLegal: [],\r\n\t\t\tlistFee: [],\r\n\t\t\tlistNotification: this.initialListNotification,\r\n\t\t\tlistAnnouncement: this.initialListAnnouncement,\r\n\t\t\topenLegal: false,\r\n\t\t\topenFee: false,\r\n\t\t\topenNotification: false,\r\n\t\t\topenAnnouncement: false,\r\n\t\t\tisLoading: false,\r\n\t\t\tisHelpDialogOpen: false,\r\n\t\t\thelpContent: null\r\n\t\t};\r\n\t\tthis.blackColor = { color:\"#000000\" };\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tconst { GetIsMenuFavorited } = this.props, { pathname } = this.props.history.location;\r\n\r\n\t\tGetIsMenuFavorited(pathname);\r\n\t\tthis.GetMenuRightByParentMenuCode();\r\n\t\tthis.GetLegalList();\r\n\t\tthis.GetFeeList();\r\n\t\tthis.GetNotificationList();\r\n\t\tthis.GetAnnouncementList();\r\n\t}\r\n\r\n\tLegalClick = () => {\r\n\t\tconst { openLegal } = this.state;\r\n\r\n\t\tthis.props.ChangeOpacity(openLegal ? 1 : 0.2);\r\n\t\tthis.setState({ openLegal: !openLegal });\r\n\t};\r\n\r\n\tLegalClose = () => {\r\n\t\tthis.props.ChangeOpacity(1);\r\n\t\tthis.setState({ openLegal: false });\r\n\t};\r\n\r\n\tFeeClick = () => {\r\n\t\tconst { openFee } = this.state;\r\n\r\n\t\tthis.props.ChangeOpacity(openFee ? 1 : 0.2);\r\n\t\tthis.setState({ openFee: !openFee });\r\n\t};\r\n\r\n\tFeeClose = () => {\r\n\t\tthis.props.ChangeOpacity(1);\r\n\t\tthis.setState({ openFee: false });\r\n\t};\r\n\r\n\tNotificationClick = () => {\r\n\t\tconst { listNotification, openNotification } = this.state;\r\n\r\n\t\tthis.props.ChangeOpacity(openNotification ? 1 : 0.2);\r\n\t\tthis.setState({ openNotification: !openNotification });\r\n\r\n\t\tif (listNotification != this.initialListNotification) {\r\n\t\t\tconst { ExecuteApiPost } = this.props;\r\n\r\n\t\t\tExecuteApiPost(\"/bankapi/v1.0/CustomerNotificationView/InsertOrUpdate\"\r\n\t\t\t\t, {\r\n\t\t\t\t\tItem: listNotification.filter(d => !d.Read).map(i => {\r\n\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\tSourceId: i.Id,\r\n\t\t\t\t\t\t\tSourceTypeId: i.SourceTypeId\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t})\r\n\t\t\t\t});\r\n\t\t}\r\n\t};\r\n\r\n\tNotificationClose = () => {\r\n\t\tconst { listNotification } = this.state;\r\n\r\n\t\tthis.props.ChangeOpacity(1);\r\n\t\tthis.setState({ openNotification: false });\r\n\r\n\t\tif (listNotification.filter(d => !d.Read).length > 0) {\r\n\t\t\tthis.GetNotificationList();\r\n\t\t}\r\n\t};\r\n\r\n\tAnnouncementClick = () => {\r\n\t\tconst { listAnnouncement, openAnnouncement } = this.state;\r\n\r\n\t\tthis.props.ChangeOpacity(openAnnouncement ? 1 : 0.2);\r\n\t\tthis.setState({ openAnnouncement: !openAnnouncement });\r\n\r\n\t\tif (listAnnouncement != this.initialListAnnouncement) {\r\n\t\t\tconst { ExecuteApiPost } = this.props;\r\n\r\n\t\t\tExecuteApiPost(\"/bankapi/v1.0/CustomerAnnouncement/UpdateForRead\"\r\n\t\t\t\t, listAnnouncement\r\n\t\t\t\t\t.filter(x => !x.Read && !x.IsRead)\r\n\t\t\t\t\t.map(x => {\r\n\t\t\t\t\t\treturn x.Id;\r\n\t\t\t\t\t}));\r\n\t\t}\r\n\t};\r\n\r\n\tAnnouncementClose = () => {\r\n\t\tconst { listAnnouncement } = this.state;\r\n\r\n\t\tthis.props.ChangeOpacity(1);\r\n\t\tthis.setState({ openAnnouncement: false });\r\n\r\n\t\tif (listAnnouncement.filter(d => !d.Read).length > 0) {\r\n\t\t\tthis.GetAnnouncementList();\r\n\t\t}\r\n\t};\r\n\r\n\tFavoriteClick = async () => {\r\n\t\tconst { ExecuteApiPost, GetIsMenuFavorited } = this.props, { pathname } = this.props.history.location;\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/UserFavoriteMenuMap/InsertOrUpdate\", { MenuUrl: pathname });\r\n\r\n\t\tif (result != null) {\r\n\t\t\tvar user = ClientHelper.GetUser();\r\n\r\n\t\t\tuser.IsFavorite = true;\r\n\t\t\tlocalStorage.setItem(\"user\", JSON.stringify(user));\r\n\t\t\tlocalStorage.removeItem(\"MenuData\");\r\n\r\n\t\t\twindow.location.reload(true);\r\n\t\t\tGetIsMenuFavorited(pathname);\r\n\t\t}\r\n\t}\r\n\r\n\tGetMenuRightByParentMenuCode = async () => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/MenuRight/GetByParentMenuCode\", { MenuCode: MenuCodes.AppTitleBar }, null, null, null, null, null);\r\n\r\n\r\n\r\n\t\tthis.setState({ listHeaderMenuRight: result || [] });\r\n\t}\r\n\r\n\tGetLegalList = async () => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/File/Search\", { FileCode: FileCode.Legal });\r\n\r\n\t\tthis.setState({ listLegal: result || [] });\r\n\t}\r\n\r\n\tGetFeeList = async () => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/bankapi/v1.0/FeeManage/Search\", {});\r\n\t\t\r\n\t\tthis.setState({ listFee: result || [] });\r\n\t}\r\n\r\n\tGetNotificationList = async () => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/bankapi/v1.0/CustomerNotificationView/GetAll\", { ViewSourceType: ViewSourceType.All });\r\n\t\t\r\n\t\tthis.setState({ listNotification: result == null || result.filter(x => !x.Read).length == 0 ? this.initialListNotification : result });\r\n\t}\r\n\r\n\tGetAnnouncementList = async () => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/bankapi/v1.0/CustomerNotificationView/GetAll\", { ViewSourceType: ViewSourceType.Announcement });\r\n\t\t\r\n\t\tthis.setState({ listAnnouncement: result == null || result.filter(x => !x.Read).length == 0 ? this.initialListAnnouncement : result });\r\n\t}\r\n\r\n\topenHelpDialog = () => {\r\n\t\tthis.setState({\r\n\t\t\thelpContent: this.props.history.location,\r\n\t\t isHelpDialogOpen: true,\r\n\t\t});\r\n\t};\r\n\t\r\n\t closeHelpDialog = () => {\r\n\t\tthis.setState({\r\n\t\t isHelpDialogOpen: false,\r\n\t\t});\r\n\t};\r\n\r\n\trender() {\r\n\t\tconst { listHeaderMenuRight, listLegal, listFee, listNotification, listAnnouncement, openLegal, openFee, openNotification, openAnnouncement, isHelpDialogOpen, helpContent } = this.state;\r\n\t\tconst { classes, LeftTitle, CenterTitle, IsFavorited, ExecuteApiFileDownloadWithGenericResponse } = this.props;\r\n\r\n\t\tconst dropdownItem = classNames(\r\n\t\t\tclasses.dropdownItem,\r\n\t\t\tclasses.primaryHover\r\n\t\t);\r\n\t\tconst managerClasses = classNames({\r\n\t\t\t[classes.managerClasses]: true\r\n\t\t});\r\n\r\n\t\tif (listHeaderMenuRight != null) {\r\n\r\n\t\t\tvar favoriteIsShow = true,\r\n\t\t\t\tgavelIsShow = false,\r\n\t\t\t\tattachMoneyIsShow = false,\r\n\t\t\t\tnotificationsIsShow = false,\r\n\t\t\t\tvolumeUpIsShow = false;\r\n\r\n\t\t\tfor (var headerMenuRight of listHeaderMenuRight) {\r\n\t\t\t\tif (headerMenuRight.MenuCode == MenuCodes.AppTitleBar_Gavel) {\r\n\t\t\t\t\tgavelIsShow = headerMenuRight.HasAuthority;\r\n\t\t\t\t} else if (headerMenuRight.MenuCode == MenuCodes.AppTitleBar_AttachMoney) {\r\n\t\t\t\t\tattachMoneyIsShow = headerMenuRight.HasAuthority;\r\n\t\t\t\t} else if (headerMenuRight.MenuCode == MenuCodes.AppTitleBar_Notifications) {\r\n\t\t\t\t\tnotificationsIsShow = headerMenuRight.HasAuthority;\r\n\t\t\t\t} else if (headerMenuRight.MenuCode == MenuCodes.AppTitleBar_VolumeUp) {\r\n\t\t\t\t\tvolumeUpIsShow = headerMenuRight.HasAuthority;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tvar isFavorited = IsFavorited;\r\n\t\t\tvar favoriteIcon = isFavorited\r\n\t\t\t\t? \"fas fa-star\"\r\n\t\t\t\t: \"far fa-star\";\r\n\t\t}\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{LeftTitle}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{CenterTitle}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tfavoriteIsShow !== undefined\r\n\t\t\t\t\t\t\t\t\t&& favoriteIsShow\r\n\t\t\t\t\t\t\t\t\t?\r\n\t\t\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\t\t\t this.openHelpDialog()} >\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tfavoriteIsShow !== undefined\r\n\t\t\t\t\t\t\t\t\t&& favoriteIsShow\r\n\t\t\t\t\t\t\t\t\t&& this.props.history.location.pathname != \"/Dashboard\"\r\n\t\t\t\t\t\t\t\t\t&& this.props.history.location.pathname != \"/CryptoDashboard\"\r\n\t\t\t\t\t\t\t\t\t?\r\n\t\t\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\t\t\t this.FavoriteClick()} >\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tgavelIsShow !== undefined\r\n\t\t\t\t\t\t\t\t\t&& gavelIsShow\r\n\t\t\t\t\t\t\t\t\t?\r\n\t\t\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tthis.anchorEl = node;\r\n\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t\t\tgavel\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tlistLegal.length > 0\r\n\t\t\t\t\t\t\t\t\t\t\t\t&& \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{({ TransitionProps }) => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{listLegal.map(x => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t ExecuteApiFileDownloadWithGenericResponse(\"/coreapi/v1.0/File/DownloadFileFromBinary\", { FileId: x.FileId }, x.FileName, x.FileExtension)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tclassName={dropdownItem} >\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{Formatter.FormatDate(x.InsertDateTime) + \" \" + x.FileName}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\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t\t\t\t\t ExecuteApiFileDownloadWithGenericResponse(\"/coreapi/v1.0/File/DownloadFileFromBinary\", { FileId: x.FileId }, x.FileName, x.FileExtension)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tclassName={dropdownItem} >\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{Formatter.FormatDate(x.InsertDateTime) + \" \" + x.ProgramDescription + \" \" + x.FileName}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tnotificationsIsShow !== undefined\r\n\t\t\t\t\t\t\t\t\t&& notificationsIsShow\r\n\t\t\t\t\t\t\t\t\t?\r\n\t\t\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tthis.anchorEl = node;\r\n\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t\t\tnotifications\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tlistNotification != this.initialListNotification\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t&& listNotification.filter(d => !d.Read).length > 0\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t&& {listNotification.filter(d => !d.Read).length}\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tlistNotification.filter(d => !d.Read).length > 0\r\n\t\t\t\t\t\t\t\t\t\t\t\t&& \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{({ TransitionProps }) => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{listNotification.filter(d => !d.Read).map(x => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 0 && x.Id === listNotification.filter(d => !d.Read).map(x => { return x.Id; })[0] ? \"none\" : \"1px solid lightgray\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tborderBottom: listNotification.length > 0 && x.Id === listNotification.filter(d => !d.Read).map(x => { return x.Id; })[listNotification.filter(d => !d.Read).length - 1] ? \"none\" : \"1px solid lightgray\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpadding: \"6px 0\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}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t\t\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tvolumeUpIsShow !== undefined\r\n\t\t\t\t\t\t\t\t\t&& volumeUpIsShow\r\n\t\t\t\t\t\t\t\t\t?\r\n\t\t\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tthis.anchorEl = node;\r\n\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t\t\tvolume_up\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tlistAnnouncement != this.initialListAnnouncement\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t&& listAnnouncement.filter(d => !d.Read).length > 0\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t&& {listAnnouncement.filter(d => !d.Read).length}\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tlistAnnouncement.length > 0\r\n\t\t\t\t\t\t\t\t\t\t\t\t&& \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{({ TransitionProps }) => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{listAnnouncement.filter(d => !d.Read).map(x => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 0 && x.Id === listAnnouncement.filter(d => !d.Read).map(x => { return x.Id; })[0] ? \"none\" : \"1px solid lightgray\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tborderBottom: listAnnouncement.length > 0 && x.Id === listAnnouncement.filter(d => !d.Read).map(x => { return x.Id; })[listAnnouncement.filter(d => !d.Read).length - 1] ? \"none\" : \"1px solid lightgray\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpadding: \"6px 0\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{DateHelper.ToMoment(x.DateTime).format(\"D MMMM\")}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t

Help For - {this.props.history.location.pathname}

\r\n\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\tLorem ipsum dolor sit amet consectetur, adipisicing elit. Explicabo nulla, reiciendis cum eius maxime molestias minima modi voluptate iusto! Numquam itaque tempora unde in voluptate libero aperiam dolores eius non?\r\n\t\t\t\t\t\t\t

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nAppTitleBar.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tLeftTitle: PropTypes.string,\r\n\tCenterTitle: PropTypes.string,\r\n\thistory: PropTypes.object,\r\n\tChangeOpacity: PropTypes.func,\r\n\tGetIsMenuFavorited: PropTypes.func,\r\n\tIsFavorited: PropTypes.bool\r\n};\r\n\r\nexport default withStyles(appTitleBarStyle)(AppTitleBar);","import { dangerColor, defaultFont, primaryColor, cardBoxShadow, primaryBoxShadow } from \"assets/jss/material-dashboard-pro-react.jsx\";\r\n\r\nimport customDropdownStyle from \"assets/jss/material-dashboard-pro-react/components/customDropdownStyle.jsx\";\r\n\r\nconst appTitleBarStyle = theme => ({\r\n\tmain: {\r\n\t\t...cardBoxShadow,\r\n\t\tbackgroundColor: \"#e4e4e4\",\r\n\t\tfontWeight: \"bold\",\r\n\t\ttextTransform: \"uppercase\",\r\n\t\tborderRadius: \"6px\",\r\n\t\tmarginTop: \"8px\"\r\n\t},\r\n\ticon: {\r\n\t\tbackgroundColor: primaryColor,\r\n\t\tcolor: \"white\",\r\n\t\tborderRadius: \"6px\"\r\n\t},\r\n\t...customDropdownStyle(theme),\r\n\tlinkText: {\r\n\t\tzIndex: \"4\",\r\n\t\t...defaultFont,\r\n\t\tfontSize: \"14px\",\r\n\t\tmargin: \"0!important\",\r\n\t\ttextTransform: \"none\"\r\n\t},\r\n\ttop: {\r\n\t\tzIndex: \"4\"\r\n\t},\r\n\tlinks: {\r\n\t\twidth: \"20px\",\r\n\t\theight: \"20px\",\r\n\t\tzIndex: \"4\",\r\n\t\t[theme.breakpoints.down(\"sm\")]: {\r\n\t\t\tdisplay: \"block\",\r\n\t\t\twidth: \"30px\",\r\n\t\t\theight: \"30px\",\r\n\t\t\tcolor: \"inherit\",\r\n\t\t\topacity: \"0.8\",\r\n\t\t\tmarginRight: \"16px\",\r\n\t\t\tmarginLeft: \"-5px\"\r\n\t\t}\r\n\t},\r\n\tlegals: {\r\n\t\tzIndex: \"4\",\r\n\t\t[theme.breakpoints.up(\"md\")]: {\r\n\t\t\tposition: \"absolute\",\r\n\t\t\ttop: \"0px\",\r\n\t\t\tborder: \"1px solid \" + primaryColor,\r\n\t\t\tright: \"0px\",\r\n\t\t\tfontSize: \"9px\",\r\n\t\t\tbackground: dangerColor,\r\n\t\t\tcolor: \"#FFFFFF\",\r\n\t\t\tminWidth: \"16px\",\r\n\t\t\theight: \"16px\",\r\n\t\t\tborderRadius: \"10px\",\r\n\t\t\ttextAlign: \"center\",\r\n\t\t\tlineHeight: \"14px\",\r\n\t\t\tverticalAlign: \"middle\",\r\n\t\t\tdisplay: \"block\"\r\n\t\t},\r\n\t\t[theme.breakpoints.down(\"sm\")]: {\r\n\t\t\t...defaultFont,\r\n\t\t\tfontSize: \"14px\",\r\n\t\t\tmarginRight: \"8px\"\r\n\t\t}\r\n\t},\r\n\tfees: {\r\n\t\tzIndex: \"4\",\r\n\t\t[theme.breakpoints.up(\"md\")]: {\r\n\t\t\tposition: \"absolute\",\r\n\t\t\ttop: \"0px\",\r\n\t\t\tborder: \"1px solid \" + primaryColor,\r\n\t\t\tright: \"0px\",\r\n\t\t\tfontSize: \"9px\",\r\n\t\t\tbackground: dangerColor,\r\n\t\t\tcolor: \"#FFFFFF\",\r\n\t\t\tminWidth: \"16px\",\r\n\t\t\theight: \"16px\",\r\n\t\t\tborderRadius: \"10px\",\r\n\t\t\ttextAlign: \"center\",\r\n\t\t\tlineHeight: \"14px\",\r\n\t\t\tverticalAlign: \"middle\",\r\n\t\t\tdisplay: \"block\"\r\n\t\t},\r\n\t\t[theme.breakpoints.down(\"sm\")]: {\r\n\t\t\t...defaultFont,\r\n\t\t\tfontSize: \"14px\",\r\n\t\t\tmarginRight: \"8px\"\r\n\t\t}\r\n\t},\r\n\tnotifications: {\r\n\t\tzIndex: \"4\",\r\n\t\t[theme.breakpoints.up(\"md\")]: {\r\n\t\t\tposition: \"absolute\",\r\n\t\t\ttop: \"0px\",\r\n\t\t\tborder: \"1px solid \" + primaryColor,\r\n\t\t\tright: \"0px\",\r\n\t\t\tfontSize: \"9px\",\r\n\t\t\tbackground: dangerColor,\r\n\t\t\tcolor: \"#FFFFFF\",\r\n\t\t\tminWidth: \"16px\",\r\n\t\t\theight: \"16px\",\r\n\t\t\tborderRadius: \"10px\",\r\n\t\t\ttextAlign: \"center\",\r\n\t\t\tlineHeight: \"14px\",\r\n\t\t\tverticalAlign: \"middle\",\r\n\t\t\tdisplay: \"block\"\r\n\t\t},\r\n\t\t[theme.breakpoints.down(\"sm\")]: {\r\n\t\t\t...defaultFont,\r\n\t\t\tfontSize: \"14px\",\r\n\t\t\tmarginRight: \"8px\"\r\n\t\t}\r\n\t},\r\n\tannouncements: {\r\n\t\tzIndex: \"4\",\r\n\t\t[theme.breakpoints.up(\"md\")]: {\r\n\t\t\tposition: \"absolute\",\r\n\t\t\ttop: \"0px\",\r\n\t\t\tborder: \"1px solid \" + primaryColor,\r\n\t\t\tright: \"0px\",\r\n\t\t\tfontSize: \"9px\",\r\n\t\t\tbackground: dangerColor,\r\n\t\t\tcolor: \"#FFFFFF\",\r\n\t\t\tminWidth: \"16px\",\r\n\t\t\theight: \"16px\",\r\n\t\t\tborderRadius: \"10px\",\r\n\t\t\ttextAlign: \"center\",\r\n\t\t\tlineHeight: \"14px\",\r\n\t\t\tverticalAlign: \"middle\",\r\n\t\t\tdisplay: \"block\"\r\n\t\t},\r\n\t\t[theme.breakpoints.down(\"sm\")]: {\r\n\t\t\t...defaultFont,\r\n\t\t\tfontSize: \"14px\",\r\n\t\t\tmarginRight: \"8px\"\r\n\t\t}\r\n\t},\r\n\tmanagerClasses: {\r\n\t\tdisplay: \"inline-block\"\r\n\t},\r\n\tstats: {\r\n\t\t\"& svg\": {\r\n\t\t\tposition: \"relative\",\r\n\t\t\ttop: \"4px\",\r\n\t\t\theight: \"16px\"\r\n\t\t},\r\n\t\t\"& .fab,& .fas,& .far,& .fal,& .material-icons\": {\r\n\t\t\tposition: \"relative\",\r\n\t\t\ttop: \"4px\",\r\n\t\t\tfontSize: \"16px\",\r\n\t\t\tmarginRight: \"3px\"\r\n\t\t}\r\n\t},\r\n\t// primaryHover: {\r\n\t// \t\"&:hover\": {\r\n\t// \t\tbackgroundColor: primaryColor,\r\n\t// \t\tcolor: \"#FFFFFF\",\r\n\t// \t\t...primaryBoxShadow\r\n\t// \t}\r\n\t// }\r\n});\r\n\r\nexport default appTitleBarStyle;\r\n","import {\r\n\tdefaultFont,\r\n\tprimaryColor,\r\n\tprimaryBoxShadow\r\n} from \"assets/jss/material-dashboard-pro-react.jsx\";\r\n\r\nconst customDropdownStyle = theme => ({\r\n\tpopperClose: {\r\n\t\tpointerEvents: \"none\",\r\n\t\tdisplay: \"none !important\"\r\n\t},\r\n\tdropdown: {\r\n\t\tborderRadius: \"3px\",\r\n\t\tborder: \"0\",\r\n\t\tboxShadow: \"0 2px 5px 0 rgba(0, 0, 0, 0.26)\",\r\n\t\ttop: \"100%\",\r\n\t\tzIndex: \"1000\",\r\n\t\tminWidth: \"160px\",\r\n\t\tpadding: \"5px 0\",\r\n\t\tmargin: \"2px 0 0\",\r\n\t\tfontSize: \"14px\",\r\n\t\ttextAlign: \"left\",\r\n\t\tlistStyle: \"none\",\r\n\t\tbackgroundColor: \"#fff\",\r\n\t\tbackgroundClip: \"padding-box\"\r\n\t},\r\n\tmenuList: {\r\n\t\tpadding: \"0\"\r\n\t},\r\n\tpooperResponsive: {\r\n\t\tzIndex: \"10\",\r\n\t\tleft: '-40px !important',\r\n\t\t[theme.breakpoints.down(\"sm\")]: {\r\n\t\t\tzIndex: \"1640\",\r\n\t\t\tposition: \"static\",\r\n\t\t\tfloat: \"none\",\r\n\t\t\twidth: \"auto\",\r\n\t\t\tmarginTop: \"0\",\r\n\t\t\tbackgroundColor: \"transparent\",\r\n\t\t\tborder: \"0\",\r\n\t\t\tboxShadow: \"none\",\r\n\t\t\tcolor: \"black\"\r\n\t\t}\r\n\t},\r\n\tpooperNav: {\r\n\t\t[theme.breakpoints.down(\"sm\")]: {\r\n\t\t\tcolor: \"inherit\",\r\n\t\t\tposition: \"static !important\",\r\n\t\t\tleft: \"unset !important\",\r\n\t\t\ttop: \"unset !important\",\r\n\t\t\ttransform: \"none !important\",\r\n\t\t\twillChange: \"unset !important\",\r\n\t\t\tboxShadow: \"none !important\",\r\n\t\t\t\"& > div\": {\r\n\t\t\t\tboxShadow: \"none !important\",\r\n\t\t\t\tmarginLeft: \"0\",\r\n\t\t\t\tmarginRight: \"0\",\r\n\t\t\t\ttransition: \"none !important\",\r\n\t\t\t\tmarginTop: \"0px !important\",\r\n\t\t\t\tmarginBottom: \"5px !important\",\r\n\t\t\t\tpadding: \"0px !important\",\r\n\t\t\t\tbackgroundColor: \"transparent !important\",\r\n\t\t\t\t\"& > ul li\": {\r\n\t\t\t\t\tcolor: \"inherit\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\tdropdownItem: {\r\n\t\t...defaultFont,\r\n\t\tfontSize: \"13px\",\r\n\t\tpadding: \"10px 20px\",\r\n\t\tmargin: \"0 5px\",\r\n\t\tborderRadius: \"2px\",\r\n\t\tposition: \"relative\",\r\n\t\ttransition: \"all 150ms linear\",\r\n\t\tdisplay: \"block\",\r\n\t\tclear: \"both\",\r\n\t\tfontWeight: \"400\",\r\n\t\theight: \"fit-content\",\r\n\t\tcolor: \"#333\",\r\n\t\twhiteSpace: \"nowrap\",\r\n\t\ttextTransform: \"none\"\r\n\t},\r\n\tcircleText: {\r\n\t\tdisplay: \"grid\",\r\n\t\theight: \"36px\",\r\n\t\twidth: \"36px\",\r\n\t\ttextAlign: \"center\",\r\n\t\tverticalAlign: \"middle\",\r\n\t\tborderRadius: \"50%\",\r\n\t\tbackground: \"#f7d524\",\r\n\t\tcolor: \"#fff\",\r\n\t\tfontSize: \"18px\",\r\n\t\tfontWeight: \"400\",\r\n\t\tmargin: \"0 auto\",\r\n\t\talignItems: \"center\"\r\n\t},\r\n\tcircleAfterText: {\r\n\t\tmarginTop: 4,\r\n\t\ttextTransform: \"uppercase\",\r\n\t\tfontWeight: \"bold\"\r\n\t},\r\n\tdropdownItemRTL: {\r\n\t\ttextAlign: \"right !important\"\r\n\t},\r\n\tblackHover: {\r\n\t\t\"&:hover\": {\r\n\t\t\tboxShadow:\r\n\t\t\t\t\"0 4px 20px 0px rgba(0, 0, 0, 0.14), 0 7px 10px -5px rgba(33, 33, 33, 0.4)\",\r\n\t\t\tbackgroundColor: \"#212121\",\r\n\t\t\tcolor: \"#fff\"\r\n\t\t}\r\n\t},\r\n\tprimaryHover: {\r\n\t\t\"&:hover\": {\r\n\t\t\tbackgroundColor: primaryColor,\r\n\t\t\tcolor: \"#FFFFFF\",\r\n\t\t\t...primaryBoxShadow\r\n\t\t}\r\n\t},\r\n\tdropdownDividerItem: {\r\n\t\tmargin: \"5px 0\",\r\n\t\tbackgroundColor: \"rgba(0, 0, 0, 0.12)\",\r\n\t\theight: \"1px\",\r\n\t\toverflow: \"hidden\"\r\n\t},\r\n\tbuttonIcon: {\r\n\t\twidth: \"20px\",\r\n\t\theight: \"20px\"\r\n\t},\r\n\tcaret: {\r\n\t\ttransition: \"all 150ms ease-in\",\r\n\t\tdisplay: \"inline-block\",\r\n\t\twidth: \"0\",\r\n\t\theight: \"0\",\r\n\t\tmarginLeft: \"4px\",\r\n\t\tverticalAlign: \"middle\",\r\n\t\tborderTop: \"4px solid\",\r\n\t\tborderRight: \"4px solid transparent\",\r\n\t\tborderLeft: \"4px solid transparent\"\r\n\t},\r\n\tcaretActive: {\r\n\t\ttransform: \"rotate(180deg)\"\r\n\t},\r\n\tcaretDropup: {\r\n\t\ttransform: \"rotate(180deg)\"\r\n\t},\r\n\tcaretRTL: {\r\n\t\tmarginRight: \"4px\"\r\n\t},\r\n\tdropdownHeader: {\r\n\t\tdisplay: \"block\",\r\n\t\tpadding: \"0.1875rem 1.25rem\",\r\n\t\tfontSize: \"0.75rem\",\r\n\t\tlineHeight: \"1.428571\",\r\n\t\tcolor: \"#777\",\r\n\t\twhiteSpace: \"nowrap\",\r\n\t\tfontWeight: \"inherit\",\r\n\t\tmarginTop: \"10px\",\r\n\t\t\"&:hover,&:focus\": {\r\n\t\t\tbackgroundColor: \"transparent\",\r\n\t\t\tcursor: \"auto\"\r\n\t\t}\r\n\t}\r\n});\r\n\r\nexport default customDropdownStyle;\r\n","import { DialogContent, DialogTitle } from \"@material-ui/core\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport { withArtifex } from \"core\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport IdleTimer from \"react-idle-timer\";\r\nimport { GenericDialog, GenericDialogActions, GenericLabel } from \"views/Components/Generic\";\r\n\r\nclass IdleComponent extends React.Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tisDialogOpen: false,\r\n\t\t\tcurrentCount: window.IdleTimeOutCountDownSecond\r\n\t\t};\r\n\r\n\t\tthis.intervalHandle = null;\r\n\r\n\t\tthis.OnAction = this.OnAction.bind(this);\r\n\t\tthis.OnActive = this.OnActive.bind(this);\r\n\t\tthis.OnIdle = this.OnIdle.bind(this);\r\n\t\tthis.CountBack = this.CountBack.bind(this);\r\n\t\tthis.Logout = this.Logout.bind(this);\r\n\t\tthis.CloseDialog = this.CloseDialog.bind(this);\r\n\t\tthis.UpdateUserLastActiveDate = this.UpdateUserLastActiveDate.bind(this);\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tvar lastActiveDateIso = localStorage.getItem(\"LastActiveDate\");\r\n\t\tif (lastActiveDateIso != null) {\r\n\t\t\tvar lastActiveDate = DateHelper.ToMoment(lastActiveDateIso);\r\n\t\t\tif (DateHelper.GetDateTime().diff(lastActiveDate, \"milliseconds\") > window.IdleTimeOutMilliSecond) {\r\n\t\t\t\tthis.Logout();\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tOnAction() {\r\n\t\tlocalStorage.setItem(\"LastActiveDate\", DateHelper.GetDateTime().toISOString());\r\n\t}\r\n\r\n\tOnActive() {\r\n\t\tif (this.intervalHandle) {\r\n\t\t\tclearInterval(this.intervalHandle);\r\n\t\t\tthis.intervalHandle = null;\r\n\t\t\tthis.UpdateUserLastActiveDate();\r\n\t\t}\r\n\r\n\t\tthis.setState(state => {\r\n\t\t\tstate.isDialogOpen = false;\r\n\t\t\tstate.currentCount = window.IdleTimeOutCountDownSecond;\r\n\t\t\treturn state;\r\n\t\t});\r\n\t}\r\n\r\n\tOnIdle() {\r\n\t\tthis.setState({ isDialogOpen: true });\r\n\t\tthis.intervalHandle = setInterval(this.CountBack, 1000);\r\n\t}\r\n\r\n\tCountBack() {\r\n\t\tthis.setState(state => {\r\n\t\t\tif (state.currentCount <= 0)\r\n\t\t\t\tthis.Logout();\r\n\t\t\telse\r\n\t\t\t\tstate.currentCount--;\r\n\r\n\t\t\treturn state;\r\n\t\t});\r\n\t}\r\n\r\n\tLogout() {\r\n\t\tlocalStorage.removeItem(\"user\");\r\n\t\twindow.open(\"/#/acc/login\", \"_self\");\r\n\t}\r\n\r\n\tCloseDialog() {\r\n\t\tthis.setState({ isDialogOpen: false });\r\n\t}\r\n\r\n\tcomponentWillUnmount() {\r\n\t\tif (this.intervalHandle) {\r\n\t\t\tclearInterval(this.intervalHandle);\r\n\t\t\tthis.intervalHandle = null;\r\n\t\t}\r\n\t}\r\n\r\n\tasync UpdateUserLastActiveDate() {\r\n\t\tconst { ExecuteApiGet } = this.props;\r\n\r\n\t\tawait ExecuteApiGet(\"/coreapi/v1.0/User/UpdateLastActiveDate\");\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { isDialogOpen } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t<>\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nIdleComponent.propTypes = {\r\n\tExecuteApiGet: PropTypes.func\r\n};\r\n\r\nexport default withArtifex(IdleComponent, {});","import menuBarStyle from \"assets/jss/material-dashboard-pro-react/views/menuBarStyle.jsx\";\r\nimport { withArtifex } from \"core\";\r\nimport ResourceHelper from \"core/ResourceHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport Menu, { MenuItem, SubMenu } from \"rc-menu\";\r\nimport React from \"react\";\r\n\r\nconst fullWidth = { width: \"100%\" };\r\nclass MenuBar extends React.PureComponent {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.PopulateMenu = this.PopulateMenu.bind(this);\r\n\t}\r\n\r\n\tPopulateMenu(routes) {\r\n\t\tconst { classes, history } = this.props;\r\n\r\n\t\tif (routes == null) return null;\r\n\r\n\t\treturn routes.map(x => {\r\n\t\t\tif (x.redirect) {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\r\n\t\t\tvar menuName = ResourceHelper.GetForMenu(x.Name) || \"! \" + x.Name;\r\n\r\n\t\t\tif (x.Collapse) {\r\n\t\t\t\treturn (\r\n\t\t\t\t\t{menuName}}>\r\n\t\t\t\t\t\t{this.PopulateMenu(x.Views)}\r\n\t\t\t\t\t\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\treturn (\r\n\t\t\t\t\t history.push(x.Path)}>\r\n\t\t\t\t\t\t{menuName}\r\n\t\t\t\t\t\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes, routes } = this.props;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\tMORE {\">>\"}}\r\n\t\t\t\t\tclassName={classes.menu}\r\n\t\t\t\t\tselectable={false}\r\n\t\t\t\t>\r\n\t\t\t\t\t{this.PopulateMenu(routes)}\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nMenuBar.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\troutes: PropTypes.array\r\n};\r\n\r\nexport default withArtifex(MenuBar, menuBarStyle);","import { primaryColor } from \"assets/jss/material-dashboard-pro-react.jsx\";\r\n\r\nconst menuBarStyle = {\r\n\tmenu: {\r\n\t\tcursor: \"pointer\",\r\n\t\tfontWeight: \"bold\",\r\n\t\ttextTransform: \"UPPERCASE\",\r\n\t\tborderTop: \"4px solid white\",\r\n\t\tpadding: \"10px 40px 5px 40px\",\r\n\t\t\"& > li\": {\r\n\t\t\tbackground: primaryColor,\r\n\t\t\tcolor: \"white\"\r\n\t\t},\r\n\t\t\"& > li:hover\": {\r\n\t\t\tbackground: \"black\",\r\n\t\t\tcolor: \"white\",\r\n\t\t\tborderBottom: \"2px solid transparent\"\r\n\t\t}\r\n\t},\r\n\tsubMenu: {\r\n\t\tborderLeft: \"1px solid gray\",\r\n\t\tborderRight: \"1px solid gray\",\r\n\t\tborderTop: \"2px solid gray\",\r\n\t\tborderBottom: \"2px solid gray\",\r\n\t\t\"& > div:hover\": {\r\n\t\t\tbackground: \"black\",\r\n\t\t\tcolor: \"white\"\r\n\t\t}\r\n\t},\r\n\tmenuItem: {\r\n\t\tborderLeft: \"1px solid white\",\r\n\t\tborderRight: \"1px solid white\",\r\n\t\t\"&:hover\": {\r\n\t\t\tbackground: \"black\",\r\n\t\t\tcolor: \"white\",\r\n\t\t\tborderBottom: \"2px solid transparent\"\r\n\t\t}\r\n\t},\r\n\tpopupMenu: {\r\n\t\tzIndex: \"9999999\",\r\n\t\t\"& > ul li\": {\r\n\t\t\tbackground: \"black\",\r\n\t\t\tcolor: \"white\",\r\n\t\t\tcursor: \"pointer\",\r\n\t\t\tborder: \"1px solid\"\r\n\t\t},\r\n\t\t\"& > ul li:hover\": {\r\n\t\t\tbackground: primaryColor,\r\n\t\t\tcolor: \"white\"\r\n\t\t}\r\n\t}\r\n};\r\n\r\nexport default menuBarStyle;\r\n","import ExpansionPanel from \"@material-ui/core/ExpansionPanel\";\r\nimport ExpansionPanelDetails from \"@material-ui/core/ExpansionPanelDetails\";\r\nimport ExpansionPanelSummary from \"@material-ui/core/ExpansionPanelSummary\";\r\nimport { AccountBalance, CheckBox, ExpandMore, List, Timeline } from \"@material-ui/icons\";\r\nimport dashboardStyle from \"assets/jss/material-dashboard-pro-react/views/dashboardStyle\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport CardIcon from \"components/Card/CardIcon.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport { TaskPool } from \"core/TaskPool\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport { Line as LineChart, Pie as PieChart } from \"react-chartjs-2\";\r\nimport ReactTable from \"react-table\";\r\nimport { GenericAlert, GenericLabel, GenericNumberInput, GenericSelectInput, GenericGrid } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { DateFilter, ProgramCodes, GridColumnType, EndOfDayPageFilter } from \"views/Constants/Constant\";\r\nimport { Doughnut as DoughnutChart, Chart } from \"react-chartjs-2\";\r\nimport { chartGradientColors } from \"assets/jss/material-dashboard-pro-react\";\r\n\r\nclass Portal extends React.Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.chartColors = {\r\n\t\t\tred: \"rgb(255, 99, 132)\",\r\n\t\t\torange: \"rgb(255, 159, 64)\",\r\n\t\t\tyellow: \"rgb(255, 205, 86)\",\r\n\t\t\tgreen: \"rgb(75, 192, 192)\",\r\n\t\t\tblue: \"rgb(54, 162, 235)\",\r\n\t\t\tpurple: \"rgb(153, 102, 255)\",\r\n\t\t\tgrey: \"rgb(201, 203, 207)\"\r\n\t\t};\r\n\r\n\t\tthis.columns = [\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Date\",\r\n\t\t\t\taccessor: \"TransactionDate\",\r\n\t\t\t\ttype: GridColumnType.DateTime,\r\n\t\t\t\tstyle: this.RenderStyle()\r\n\t\t\t},\r\n\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Amount\",\r\n\t\t\t\taccessor: \"Amount\",\r\n\t\t\t\ttype: GridColumnType.Money,\r\n\t\t\t\tColumnType: GridColumnType.Money,\r\n\t\t\t\tstyle: this.BalanceRenderStyle(),\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Program Type\",\r\n\t\t\t\taccessor: \"ChannelType\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Received/Sent\",\r\n\t\t\t\taccessor: \"TransactionType\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t)\r\n\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Currency\",\r\n\t\t\t\taccessor: \"SourceCurrencyCode\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"From Account No\",\r\n\t\t\t\taccessor: \"SourceAccountNumber\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"To Account No\",\r\n\t\t\t\taccessor: \"DestinationAccountNumber\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Reference No\",\r\n\t\t\t\taccessor: \"ReferenceNumber\",\r\n\t\t\t\tCell: row => (\r\n\t\t\t\t\t

{row.value}

\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t];\r\n\t\tconst chartGradientColors = [\r\n\t\t\t{ begin: \"#F57F29\", end: \"#339900\" },\r\n\t\t\t{ begin: \"#F57F29\", end: \"#339900\" },\r\n\t\t\t{ begin: \"#F57F29\", end: \"#339900\" },\r\n\t\t\t{ begin: \"#ceae18\", end: \"#74A764\" },\r\n\t\t\t{ begin: \"#e6ab05\", end: \"#74A764\" },\r\n\t\t\t{ begin: \"#f1a900\", end: \"#74A764\" },\r\n\t\t\t{ begin: \"#ffa600\", end: \"#C9CBCF\" }\r\n\t\t];\r\n\t\tthis.txnCountChartData = {\r\n\t\t\tlabels: [\"Transactions\"],\r\n\t\t\tdatasets: [{\r\n\t\t\t\tdata: [100],\r\n\t\t\t\tbackgroundColor: \"rgb(255, 99, 132)\",\r\n\t\t\t\thoverBackgroundColor: \"rgb(255, 99, 132)\"\r\n\t\t\t}],\r\n\t\t\ttext: \"\\t $ 0\"\r\n\t\t};\r\n\t\tthis.typeChartData = {\r\n\t\t\tlabels: [\"Transactions\"],\r\n\t\t\tdatasets: [{\r\n\t\t\t\tdata: [100],\r\n\t\t\t\tbackgroundColor: \"rgb(255, 99, 132)\",\r\n\t\t\t\thoverBackgroundColor: \"rgb(255, 99, 132)\"\r\n\t\t\t}],\r\n\t\t\ttext: \"\\t 0\"\r\n\t\t};\r\n\t\tthis.doughnutHeight = 280;\r\n\t\tthis.doughnutWidth = 240;\r\n\t\tthis.isBackOffice = ClientHelper.IsBackOffice();\r\n\t\tthis.sortedName = { Member: \"Name\" };\r\n\t\tthis.state = {\r\n\t\t\tgridUniqueClientId: {},\r\n\t\t\ttotalMonthly: {},\r\n\t\t\tamountOfCreditTransaction: { ...this.txnCountChartData },\r\n\t\t\tnumberOfDebitTransaction: { ...this.typeChartData },\r\n\t\t\tnumberOfCreditTransaction: { ...this.typeChartData },\r\n\t\t\tamountOfDebitTransaction: { ...this.txnCountChartData },\r\n\t\t\ttxnCountChartData1: JSON.parse(JSON.stringify(this.txnCountChartData)),\r\n\t\t\tpanel1Active: false,\r\n\t\t\tpanel2Active: false,\r\n\t\t\taccountModel: { ...this.txnCountChartData },\r\n\t\t\ttotalBalance: { ...this.txnCountChartData },\r\n\t\t\tpendingbalance: { ...this.txnCountChartData },\r\n\t\t\tlimitModel: {},\r\n\t\t\ttransactionModel: {},\r\n\t\t\ttransactions: [],\r\n\t\t\tchartModel: {\r\n\t\t\t\tDateFilterId: 2\r\n\t\t\t},\r\n\t\t\tchartListModel: {\r\n\t\t\t\tDateFilterId: 2\r\n\t\t\t},\r\n\t\t\tchartList: [],\r\n\t\t\tsettlementModel: {\r\n\t\t\t\tDateFilterId: 0\r\n\t\t\t},\r\n\t\t\tsettlementSummaryList: [],\r\n\t\t\tlineChartData: {\r\n\t\t\t\tlabels: [],\r\n\t\t\t\tdatasets: []\r\n\t\t\t},\r\n\t\t\tpieChartData: {\r\n\t\t\t\tlabels: [],\r\n\t\t\t\tdatasets: []\r\n\t\t\t},\r\n\t\t\tisFetchingAccount: false,\r\n\t\t\tisFetchingLimit: false,\r\n\t\t\tisFetchingTransactionDetail: false,\r\n\t\t\tisFetchingSettlementSummary: false,\r\n\t\t\tisFetchingLineChart: false,\r\n\t\t\tisFetchingPieChart: false,\r\n\t\t\tisLoading: false,\r\n\t\t\tselectedSettled: null,\r\n\t\t\tpromisePool: []\r\n\t\t};\r\n\r\n\t\tthis.lineChartOptions = {\r\n\t\t\tresponsive: true,\r\n\t\t\ttitle: {\r\n\t\t\t\tdisplay: false,\r\n\t\t\t\ttext: \"Chart.js Line Chart\"\r\n\t\t\t},\r\n\t\t\thover: {\r\n\t\t\t\tmode: \"dataset\"\r\n\t\t\t},\r\n\t\t\ttooltips: {\r\n\t\t\t\tdisplayColors: true,\r\n\t\t\t\tbackgroundColor: \"black\",\r\n\t\t\t\tenabled: true,\r\n\t\t\t\tmode: \"label\",\r\n\t\t\t\tbodyFontSize: 13,\r\n\t\t\t\t// bodyFontFamily: \"Gamja Flower\",\r\n\t\t\t\tbodyFontColor: \"white\",\r\n\t\t\t\tyPadding: 5,\r\n\t\t\t\txPadding: 15,\r\n\t\t\t\tcornerRadius: 4,\r\n\t\t\t\tbodyFontStyle: \"bold\"\r\n\t\t\t},\r\n\t\t\tlegend: {\r\n\t\t\t\tdisplay: true,\r\n\t\t\t\tposition: \"bottom\",\r\n\t\t\t\tfullWidth: true,\r\n\t\t\t},\r\n\t\t\tlayout: {\r\n\t\t\t\tpadding: {\r\n\t\t\t\t\tleft: 8,\r\n\t\t\t\t\tright: 16,\r\n\t\t\t\t\ttop: 36,\r\n\t\t\t\t\tbottom: 0\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tscales: {\r\n\t\t\t\txAxes: [\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdisplay: true,\r\n\t\t\t\t\t\tscaleLabel: {\r\n\t\t\t\t\t\t\tshow: true\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t],\r\n\t\t\t\tyAxes: [\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdisplay: true,\r\n\t\t\t\t\t\tscaleLabel: {\r\n\t\t\t\t\t\t\tshow: true,\r\n\t\t\t\t\t\t\tlabelString: \"Value\"\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\tticks: {\r\n\t\t\t\t\t\t\tbeginAtZero: true,\r\n\t\t\t\t\t\t\tmin: 0\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t};\r\n\t\tthis.chartOptions = {\r\n\t\t\tmaintainAspectRatio: false,\r\n\t\t\tresponsive: false,\r\n\t\t\tlegend: {\r\n\t\t\t\tdisplay: false\r\n\t\t\t},\r\n\t\t\tcutoutPercentage: 90,\r\n\t\t\tanimation: {\r\n\t\t\t\tduration: 2000\r\n\t\t\t},\r\n\t\t\t//tooltips: { enabled: true }\r\n\t\t};\r\n\t\tthis.pieChartOptions = {\r\n\t\t\tmaintainAspectRatio: false,\r\n\t\t\tresponsive: false,\r\n\t\t\tlegend: {\r\n\t\t\t\thorizontalAlign: \"left\",\r\n\t\t\t\tverticalAlign: \"center\",\r\n\t\t\t\tlabels: {\r\n\t\t\t\t\tboxWidth: 10\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tlayout: {\r\n\t\t\t\tpadding: {\r\n\t\t\t\t\tleft: 24\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tthis.FromDate = DateHelper.GetDate();\r\n\t\tthis.ToDate = DateHelper.GetDate().add(1, \"days\");\r\n\r\n\t\tthis.loadTaskPool = new TaskPool(this.handleLoadTaskPoolAppend, this.handleLoadTaskPoolCompleted);\r\n\t\tthis.emptyObject = {};\r\n\t}\r\n\r\n\thandleLoadTaskPoolCompleted = () => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tRenderStyle = () => {\r\n\t\treturn {\r\n\t\t\tcolumn: \"TransactionType\",\r\n\t\t\tcondition: \"Received\",\r\n\t\t\tstyle: { fontWeight: \"600\" },\r\n\t\t\tprefix: [\"+\", \"\"]\r\n\t\t};\r\n\t}\r\n\tBalanceRenderStyle = () => {\r\n\t\treturn {\r\n\t\t\tcolumn: \"TransactionType\",\r\n\t\t\tcondition: \"Received\",\r\n\t\t\tstyle: { fontWeight: \"600\" },\r\n\t\t\tprefix: [\"\", \"\"]\r\n\t\t};\r\n\t}\r\n\r\n\thandleLoadTaskPoolAppend = () => {\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\t//this.getAllProgramTransactionSum();\r\n\r\n\t\tif (this.props.setAppCenterTitle)\r\n\t\t\tthis.props.setAppCenterTitle(\"MAIN PORTAL\");\r\n\t\tthis.HandleGetAccount(-1);\r\n\t\tthis.HandleGetSettlementSummaryList(this.state.settlementModel);\r\n\t\t// if (process.env.NODE_ENV !== \"development\") {\r\n\t\t// \tthis.HandleChangeSettlement(\"DateFilterId\", 2);\r\n\t\t// \tthis.HandleGetAccount(this.state.accountModel);\r\n\t\t// \tthis.HandleGetLimit(this.state.limitModel);\r\n\t\t// \tthis.HandleGetTransactionDetail(this.state.transactionModel);\r\n\t\t// }\r\n\t\tconst accountModel = { ...this.state.accountModel };\r\n\t\tvar originalDoughnutDraw = Chart.controllers.doughnut.prototype.draw;\r\n\t\tChart.helpers.extend(Chart.controllers.doughnut.prototype, {\r\n\t\t\tdraw: function () {\r\n\t\t\t\toriginalDoughnutDraw.apply(this, arguments);\r\n\r\n\t\t\t\tvar chart = this.chart;\r\n\t\t\t\tvar width = chart.chart.width,\r\n\t\t\t\t\theight = chart.chart.height,\r\n\t\t\t\t\tctx = chart.chart.ctx;\r\n\r\n\t\t\t\tvar fontSize = 1.5;\r\n\t\t\t\tctx.font = fontSize + \"em sans-serif\";\r\n\t\t\t\tctx.textBaseline = \"middle\";\r\n\t\t\t\tctx.fillStyle = \"#000\";\r\n\r\n\t\t\t\tvar text = chart.config.data.text,\r\n\t\t\t\t\ttextX = Math.round((width - ctx.measureText(text).width) / 2),\r\n\t\t\t\t\ttextY = height / 2;\r\n\r\n\t\t\t\tctx.fillText(text, textX, textY);\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tthis.setState({ loadingCompleted: true });\r\n\t}\r\n\r\n\tHandleChangeFilterPanel = panel => (event, expanded) => {\r\n\t\tconst { lineChartData, chartList } = this.state;\r\n\t\tif (panel == \"panel1\") {\r\n\t\t\tthis.setState({ panel1Active: expanded ? true : false });\r\n\t\t\tif (expanded && lineChartData.datasets.length == 0) {\r\n\t\t\t\tthis.HandleGetChart(this.state.chartModel);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tthis.setState({ panel2Active: expanded ? true : false });\r\n\t\t\tif (expanded && chartList.length == 0) {\r\n\t\t\t\tthis.HandleGetChartList(this.state.chartListModel);\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\r\n\tHandleChangeAccount = (name, value) => {\r\n\t\tconst accountModel = { ...this.state.accountModel };\r\n\t\taccountModel[name] = value;\r\n\t\tthis.setState({ accountModel });\r\n\t\tif (name == \"AccountId\") {\r\n\t\t\tthis.HandleGetAccount(accountModel);\r\n\t\t}\r\n\t\tif (name == \"UniqueClientId\") {\r\n\t\t\tthis.HandleGetAccount(accountModel);\r\n\t\t}\r\n\t}\r\n\r\n\tHandleChangeLimit = (name, value) => {\r\n\t\tconst limitModel = { ...this.state.limitModel };\r\n\t\tlimitModel[name] = value;\r\n\t\tthis.setState({ limitModel });\r\n\t\tif (name == \"ProgramId\") {\r\n\t\t\tthis.HandleGetLimit(limitModel);\r\n\t\t}\r\n\t}\r\n\r\n\tHandleChangeTransaction = (name, value) => {\r\n\t\tconst transactionModel = { ...this.state.transactionModel };\r\n\t\ttransactionModel[name] = value;\r\n\t\tthis.setState({ transactionModel });\r\n\t\tif (name == \"StatusId\") {\r\n\t\t\tthis.HandleGetTransactionDetail(transactionModel);\r\n\t\t}\r\n\t}\r\n\tHandleChangeGrid = (name, value) => {\r\n\t\tconst gridUniqueClientId = { ...this.state.gridUniqueClientId };\r\n\t\tgridUniqueClientId[name] = value;\r\n\t\tthis.setState({ gridUniqueClientId });\r\n\t\tthis.handleSearch();\r\n\t}\r\n\tHandleChangeSettlement = (name, value) => {\r\n\t\tconst settlementModel = { ...this.state.settlementModel };\r\n\t\tsettlementModel[name] = value;\r\n\t\tthis.setState({ settlementModel });\r\n\t\tthis.HandleGetSettlementSummaryList(settlementModel);\r\n\t}\r\n\tgetGradientList(dataList) {\r\n\t\tvar gradientList = undefined;\r\n\t\tif (document.getElementById(\"canvas\") != null) {\r\n\t\t\tvar ctx = document.getElementById(\"canvas\").getContext(\"2d\");\r\n\t\t\tgradientList = [];\r\n\t\t\tif (dataList.datasets != undefined) {\r\n\t\t\t\tvar i;\r\n\t\t\t\tfor (i = 0; i < dataList.datasets[0].data.length; i++) {\r\n\t\t\t\t\tvar gradient = ctx.createLinearGradient(0, 0, 0, 400);\r\n\t\t\t\t\tif (chartGradientColors[i] == undefined) {\r\n\t\t\t\t\t\tgradient.addColorStop(0, chartGradientColors[0].begin);\r\n\t\t\t\t\t\tgradient.addColorStop(1, chartGradientColors[0].end);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tgradient.addColorStop(0, chartGradientColors[i].begin);\r\n\t\t\t\t\t\tgradient.addColorStop(1, chartGradientColors[i].end);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tgradientList.push(gradient);\r\n\t\t\t\t}\r\n\t\t\t\treturn gradientList;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn gradientList;\r\n\r\n\t}\r\n\tHandleChangeChart = (name, value) => {\r\n\t\tconst chartModel = { ...this.state.chartModel };\r\n\t\tchartModel[name] = value;\r\n\t\tthis.setState({ chartModel });\r\n\t\tif (name == \"ProgramId\" || name == \"StoreId\" || name == \"DateFilterId\") {\r\n\t\t\tthis.HandleGetChart(chartModel);\r\n\t\t}\r\n\t}\r\n\r\n\tHandleChangeChartList = (name, value) => {\r\n\t\tconst chartListModel = { ...this.state.chartListModel };\r\n\t\tchartListModel[name] = value;\r\n\t\tthis.setState({ chartListModel });\r\n\t\tif (name == \"StatusId\" || name == \"StoreId\" || name == \"DateFilterId\") {\r\n\t\t\tthis.HandleGetChartList(chartListModel);\r\n\t\t}\r\n\t}\r\n\r\n\tHandleGetAccount = (model) => {\r\n\t\tvar URL = \"/bankapi/v1.0/Portal/GetAccountForClient\";\r\n\t\tif (this.isBackOffice) {\r\n\t\t\tURL = \"/bankapi/v1.0/Portal/GetAccountForBackOffice\";\r\n\t\t}\r\n\r\n\t\tProxy.POST(\r\n\t\t\tURL,\r\n\t\t\t{\r\n\t\t\t\tAccountId: model.AccountId,\r\n\t\t\t\tUniqueClientId: model.UniqueClientId\r\n\t\t\t},\r\n\t\t\tthis.SuccessAccountCallback,\r\n\t\t\tthis.ErrorAccountCallback\r\n\t\t);\r\n\t}\r\n\r\n\tSuccessAccountCallback = (responseData) => {\r\n\t\tvar accountModel = { ...this.state.accountModel };\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (responseData.Item !== null) {\r\n\t\t\tvar totalBalance = this.GenerateDoughnutData(responseData.Item.TotalBalance, false, responseData.Item.CountTotal, (!this.isBackOffice ? \"Total Balance\" : \"All Client Balance\"));\r\n\t\t\tvar pendingbalance = this.GenerateDoughnutData(responseData.Item.PendingBalance, false, responseData.Item.CountPending, (!this.isBackOffice ? \"Pending Balance\" : \"All Clients Pending Balance\"));\r\n\t\t\t// accountModel.Balance = responseData.Item.Balance;\r\n\t\t\t// accountModel.TotalBalance = responseData.Item.TotalBalance;\r\n\t\t\t// accountModel.SecureBalance = responseData.Item.SecureBalance;\r\n\t\t\t// accountModel.SubAccountBalance = responseData.Item.SubAccountBalance;\r\n\t\t\tthis.setState({ accountModel, totalBalance, pendingbalance });\r\n\t\t}\r\n\t}\r\n\tGenerateDoughnutData = (statisticData, bool, count, label) => {\r\n\t\t// var arrayData = [];\r\n\t\t// var arrayLabel = [];\r\n\t\t// var arrayColor = [];\r\n\r\n\t\t// var colorName = \"\";\r\n\t\t// var newColor = \"\";\r\n\r\n\t\t// var colorNames = Object.keys(this.chartColors);\r\n\t\t// colorName = colorNames[0];\r\n\t\t// newColor = this.chartColors[colorName];\r\n\t\t// arrayColor.push(newColor);\r\n\t\tvar trxChartObj = {\r\n\t\t\tlabels: [label],\r\n\t\t\tdatasets: [{\r\n\t\t\t\tdata: [count == 0 ? 1 : count],\r\n\t\t\t\t// hoverBackgroundColor: arrayColor,\r\n\t\t\t\t// backgroundColor: arrayColor\r\n\t\t\t}],\r\n\t\t\ttext: statisticData != null ? this.GetChartText(bool, statisticData) : bool ? 0 : \"0 \\t $ \"\r\n\t\t};\r\n\t\treturn trxChartObj;\r\n\t}\r\n\tGetChartText = (item1, item2) => {\r\n\t\treturn item1 ? item2.toString()\r\n\t\t\t.replace(/(\\d)(?=(\\d{3})+(?!\\d))/g, \"$1,\") : \" \\t $ \" + item2\r\n\t\t\t\t.toString()\r\n\t\t\t\t.replace(/(\\d)(?=(\\d{3})+(?!\\d))/g, \"$1,\");\r\n\t}\r\n\r\n\r\n\tErrorAccountCallback = (error) => {\r\n\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t}\r\n\r\n\tHandleGetLimit = (model) => {\r\n\t\tvar URL = \"/bankapi/v1.0/Portal/GetAccountLimitForClient\";\r\n\t\tif (this.isBackOffice) {\r\n\t\t\tURL = \"/bankapi/v1.0/Portal/GetAccountLimitForBackOffice\";\r\n\t\t}\r\n\t\tthis.loadTaskPool.AppendTask(\r\n\t\t\tProxy.POST(\r\n\t\t\t\tURL,\r\n\t\t\t\t{\r\n\t\t\t\t\tProgramId: model.ProgramId\r\n\t\t\t\t},\r\n\t\t\t\tthis.SuccessLimitCallback,\r\n\t\t\t\tthis.ErrorLimitCallback\r\n\t\t\t));\r\n\t}\r\n\r\n\tSuccessLimitCallback = (responseData) => {\r\n\t\tvar limitModel = { ...this.state.limitModel };\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (responseData.Item !== null) {\r\n\t\t\tlimitModel.AvailableLimit = responseData.Item.AvailableLimit;\r\n\t\t\tlimitModel.TotalAvailableLimit = responseData.Item.TotalAvailableLimit;\r\n\t\t\tthis.setState({ limitModel });\r\n\t\t}\r\n\t}\r\n\r\n\tErrorLimitCallback = (error) => {\r\n\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t}\r\n\r\n\tHandleGetTransactionDetail = (model) => {\r\n\t\tvar URL = \"/bankapi/v1.0/Portal/GetTransactionDetailForClient\";\r\n\t\tif (this.isBackOffice) {\r\n\t\t\tURL = \"/bankapi/v1.0/Portal/GetTransactionDetailForBackOffice\";\r\n\t\t}\r\n\t\tthis.loadTaskPool.AppendTask(\r\n\t\t\tProxy.POST(\r\n\t\t\t\tURL,\r\n\t\t\t\t{\r\n\t\t\t\t\tStatusId: model.StatusId\r\n\t\t\t\t},\r\n\t\t\t\tthis.SuccessTransactionDetailCallback,\r\n\t\t\t\tthis.ErrorTransactionDetailCallback\r\n\t\t\t));\r\n\t}\r\n\r\n\tSuccessTransactionDetailCallback = (responseData) => {\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (responseData.Item !== null) {\r\n\t\t\tthis.setState({ transactions: responseData.Item });\r\n\t\t}\r\n\t}\r\n\r\n\tErrorTransactionDetailCallback = (error) => {\r\n\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t}\r\n\r\n\thandleSearch = async () => {\r\n\t\tthis.setState(state => ({ trxGridToken: !state.trxGridToken }));\r\n\t}\r\n\r\n\tgetAllProgramTransactionSum = async () => {\r\n\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar totalMonthly = { ...this.state.totalMonthly };\r\n\t\tvar responseData = await ExecuteApiPost(\"/bankapi/v1.0/Portal/AllProgramCountTransactionsForBackOffice\", {}, null, null, null, null, null);\r\n\t\tif (responseData != null) {\r\n\r\n\t\t\ttotalMonthly.Eft = responseData.EFT;\r\n\t\t\ttotalMonthly.Etransfer = responseData.Etransfer;\r\n\t\t\ttotalMonthly.DDT = responseData.DDT;\r\n\t\t\ttotalMonthly.Prepaid = responseData.Prepaid;\r\n\t\t\ttotalMonthly.Lending = responseData.Lending;\r\n\t\t\ttotalMonthly.Wire = responseData.Wire;\r\n\t\t\ttotalMonthly.BillPayment = responseData.BillPayment;\r\n\t\t\ttotalMonthly.MoneyTransfer = responseData.MoneyTransfer;\r\n\t\t\tthis.setState({ isLoading: false, totalMonthly });\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.setState({ isLoading: false, totalMonthly });\r\n\t\t}\r\n\t}\r\n\r\n\r\n\tHandleGetSettlementSummaryList = (model) => {\r\n\t\tvar URL = \"/bankapi/v1.0/Portal/GetSettlementSummaryForClient\";\r\n\t\tif (this.isBackOffice) {\r\n\t\t\tURL = \"/bankapi/v1.0/Portal/GetSettlementSummaryForBackOffice\";\r\n\t\t}\r\n\t\tthis.loadTaskPool.AppendTask(\r\n\t\t\tProxy.POST(\r\n\t\t\t\tURL,\r\n\t\t\t\t{\r\n\t\t\t\t\tDateFilterId: model.DateFilterId,\r\n\t\t\t\t\tProgramId: model.ProgramId,\r\n\t\t\t\t\tUniqueClientId: model.UniqueClientId\r\n\t\t\t\t},\r\n\t\t\t\tthis.SuccessSettlementSummaryListCallback,\r\n\t\t\t\tthis.ErrorSettlementSummaryListCallback\r\n\t\t\t));\r\n\t}\r\n\r\n\tSuccessSettlementSummaryListCallback = (responseData) => {\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tvar totalMonthly = { ...this.state.totalMonthly };\r\n\t\tif (responseData.Item !== null) {\r\n\t\t\tvar numberOfDebitTransaction = this.GenerateDoughnutData(responseData.Item?.NumberOfDebitTransaction, true, 0, \"Number Of Debit\");\r\n\t\t\tvar numberOfCreditTransaction = this.GenerateDoughnutData(responseData.Item?.NumberOfCreditTransaction, true, 0, \"Number Of Credit\");\r\n\t\t\tvar amountOfDebitTransaction = this.GenerateDoughnutData(responseData.Item?.AmountOfDebitTransaction, false, 0, \"Amount Of Debit\");\r\n\t\t\tvar amountOfCreditTransaction = this.GenerateDoughnutData(responseData.Item?.AmountOfCreditTransaction, false, 0, \"Amount Of Credit\");\r\n\t\t\ttotalMonthly.Eft = responseData.Item?.EFT;\r\n\t\t\ttotalMonthly.Etransfer = responseData.Item?.Etransfer;\r\n\t\t\ttotalMonthly.DDT = responseData.Item?.DDT;\r\n\t\t\ttotalMonthly.Prepaid = responseData.Item?.Prepaid;\r\n\t\t\ttotalMonthly.Lending = responseData.Item?.Lending;\r\n\t\t\ttotalMonthly.Wire = responseData.Item?.Wire;\r\n\t\t\ttotalMonthly.BillPayment = responseData.Item?.BillPayment;\r\n\t\t\ttotalMonthly.MoneyTransfer = responseData.Item?.MoneyTransfer;\r\n\t\t\tthis.setState({ numberOfDebitTransaction, numberOfCreditTransaction, amountOfDebitTransaction, amountOfCreditTransaction, totalMonthly });\r\n\t\t}\r\n\t}\r\n\r\n\tErrorSettlementSummaryListCallback = (error) => {\r\n\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t}\r\n\r\n\tHandleGetChart = (model) => {\r\n\t\tvar URL = \"/bankapi/v1.0/Portal/GetChartTransactionsForClient\";\r\n\t\tif (this.isBackOffice) {\r\n\t\t\tURL = \"/bankapi/v1.0/Portal/GetChartTransactionsForBackOffice\";\r\n\t\t}\r\n\t\tthis.loadTaskPool.AppendTask(\r\n\t\t\tProxy.POST(\r\n\t\t\t\tURL,\r\n\t\t\t\t{\r\n\t\t\t\t\tProgramId: model.ProgramId,\r\n\t\t\t\t\tStoreId: model.StoreId,\r\n\t\t\t\t\tDateFilterId: model.DateFilterId\r\n\t\t\t\t},\r\n\t\t\t\tthis.SuccessChartCallback,\r\n\t\t\t\tthis.ErrorChartCallback\r\n\t\t\t));\r\n\t}\r\n\r\n\tSuccessChartCallback = (responseData) => {\r\n\t\tconst { lineChartData } = this.state;\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (responseData.Item !== null) {\r\n\t\t\tvar obj = [];\r\n\t\t\tvar colorNames = Object.keys(this.chartColors);\r\n\t\t\tvar i = 0;\r\n\t\t\tfor (var index in responseData.Item) {\r\n\t\t\t\tvar item = responseData.Item[index];\r\n\t\t\t\tvar colorName = colorNames[i % colorNames.length];\r\n\t\t\t\tvar newColor = this.chartColors[colorName];\r\n\t\t\t\tobj.push(\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlabel: index,\r\n\t\t\t\t\t\tfill: false,\r\n\t\t\t\t\t\tbackgroundColor: newColor,\r\n\t\t\t\t\t\tborderColor: newColor,\r\n\t\t\t\t\t\tdata: item\r\n\t\t\t\t\t}\r\n\t\t\t\t);\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\tlineChartData.datasets = obj;\r\n\t\t\tthis.setState({ lineChartData });\r\n\t\t}\r\n\t}\r\n\r\n\tErrorChartCallback = (error) => {\r\n\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t}\r\n\r\n\tHandleGetChartList = (model) => {\r\n\t\tvar URL = \"/bankapi/v1.0/Portal/GetChartListTransactionsForClient\";\r\n\t\tif (this.isBackOffice) {\r\n\t\t\tURL = \"/bankapi/v1.0/Portal/GetChartListTransactionsForBackOffice\";\r\n\t\t}\r\n\t\tthis.loadTaskPool.AppendTask(\r\n\t\t\tProxy.POST(\r\n\t\t\t\tURL,\r\n\t\t\t\t{\r\n\t\t\t\t\tStatusId: model.StatusId,\r\n\t\t\t\t\tStoreId: model.StoreId,\r\n\t\t\t\t\tDateFilterId: model.DateFilterId\r\n\t\t\t\t},\r\n\t\t\t\tthis.SuccessChartListCallback,\r\n\t\t\t\tthis.ErrorChartListCallback\r\n\t\t\t)\r\n\t\t);\r\n\t}\r\n\r\n\tSuccessChartListCallback = (responseData) => {\r\n\t\tif (!responseData.IsSucceeded) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (responseData.Item !== null) {\r\n\t\t\tvar pieChartObj = {\r\n\t\t\t\tlabels: [],\r\n\t\t\t\tdatasets: []\r\n\t\t\t};\r\n\t\t\tvar obj = {\r\n\t\t\t\tdata: [],\r\n\t\t\t\tbackgroundColor: [],\r\n\t\t\t\thoverBackgroundColor: []\r\n\t\t\t};\r\n\t\t\tvar colorNames = Object.keys(this.chartColors);\r\n\t\t\tvar i = 0;\r\n\t\t\tfor (var item of responseData.Item.PieChartData) {\r\n\t\t\t\tvar colorName = colorNames[i % colorNames.length];\r\n\t\t\t\tvar newColor = this.chartColors[colorName];\r\n\t\t\t\tpieChartObj.labels.push(item[\"ProgramName\"]);\r\n\t\t\t\tobj.data.push(item[\"TransactionCount\"]);\r\n\t\t\t\tobj.backgroundColor.push(newColor);\r\n\t\t\t\tobj.hoverBackgroundColor.push(newColor);\r\n\t\t\t\tpieChartObj.datasets = [obj];\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\tthis.setState({ chartList: responseData.Item.TransactionList, pieChartData: pieChartObj });\r\n\t\t}\r\n\t}\r\n\r\n\tErrorChartListCallback = (error) => {\r\n\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t}\r\n\r\n\tReturnRoutes = (ProgramCode) => {\r\n\t\tvar arr = [{\r\n\t\t\tProgramCode: ProgramCodes.Bank_Programs_EFT,\r\n\t\t\tPath: \"/EFTTransactionSearch\",\r\n\t\t\tName: \"EFTTransactionSearch_Date\"\r\n\t\t},\r\n\t\t{\r\n\t\t\tProgramCode: ProgramCodes.Bank_Programs_e_Transfer,\r\n\t\t\tPath: \"/eTransferTransactionSearch\",\r\n\t\t\tName: \"eTransferTransactionSearch_Date\"\r\n\t\t},\r\n\t\t{\r\n\t\t\tProgramCode: ProgramCodes.Bank_Programs_DDT,\r\n\t\t\tPath: \"/DDTTransactionSearch\",\r\n\t\t\tName: \"DDTTransactionSearch_Date\"\r\n\t\t},\r\n\t\t{\r\n\t\t\tProgramCode: ProgramCodes.Bank_Programs_CDIC,\r\n\t\t\tPath: \"/CDICTransactionSearch\",\r\n\t\t\tName: \"CDICTransactionSearch_Date\"\r\n\t\t}];\r\n\r\n\t\treturn arr.filter(item => item.ProgramCode == ProgramCode)[0];\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: \r\n\t\t\t\tthis.setState({ alert: \"\" })} />\r\n\t\t});\r\n\t}\r\n\r\n\tShowConfirmMessage = (type, title, message, onConfirm) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.setState({ alert: \"\" })} OnConfirm={onConfirm} />\r\n\t\t});\r\n\t}\r\n\tGetRenderItemUniqueClient = (x) => {\r\n\t\tvar render = `${x.Name} - ${x.UniqueClientId}`;\r\n\r\n\t\treturn render;\r\n\t}\r\n\r\n\tRenderAccountLimitProgram = (item) => {\r\n\t\treturn `${item.Description} ${this.isBackOffice ? \"Program\" : item.Description == \"Bank Account\" ? \"\" : \"Account\"}`;\r\n\t}\r\n\r\n\tValidate = () => {\r\n\t\tconst { gridUniqueClientId } = this.state;\r\n\r\n\t\tif (this.isBackOffice && (gridUniqueClientId == null || gridUniqueClientId < 1)) {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", \"Client Can Not Be Null!\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes } = this.props;\r\n\t\tconst { alert, accountModel, limitModel, transactionModel, transactions, settlementModel, gridUniqueClientId, settlementSummaryList, totalMonthly, lineChartData, pieChartData, chartModel, chartListModel, chartList, amountOfDebitTransaction, numberOfCreditTransaction, numberOfDebitTransaction, txnCountChartData1, amountOfCreditTransaction, totalBalance, pendingbalance } = this.state;\r\n\t\tconst { isLoading } = this.state;\r\n\t\tvar totalGradient = this.getGradientList(totalBalance);\r\n\t\tvar totalBackground = totalBalance;\r\n\t\tif (totalGradient != undefined) {\r\n\t\t\ttotalBackground.datasets[0].backgroundColor = totalGradient;\r\n\t\t\ttotalBackground.datasets[0].hoverBackgroundColor = totalGradient;\r\n\t\t}\r\n\t\tvar Gradientpending = this.getGradientList(pendingbalance);\r\n\t\tvar pendingBackground = pendingbalance;\r\n\t\tif (Gradientpending != undefined) {\r\n\t\t\tpendingBackground.datasets[0].backgroundColor = Gradientpending;\r\n\t\t\tpendingBackground.datasets[0].hoverBackgroundColor = Gradientpending;\r\n\t\t}\r\n\r\n\t\tvar GradientnumberOfDebit = this.getGradientList(numberOfDebitTransaction);\r\n\t\tvar numberOfDebitBackground = numberOfDebitTransaction;\r\n\t\tif (GradientnumberOfDebit != undefined) {\r\n\t\t\tnumberOfDebitBackground.datasets[0].backgroundColor = GradientnumberOfDebit;\r\n\t\t\tnumberOfDebitBackground.datasets[0].hoverBackgroundColor = GradientnumberOfDebit;\r\n\t\t}\r\n\r\n\r\n\t\tvar GradientnumberOfCredit = this.getGradientList(numberOfCreditTransaction);\r\n\t\tvar numberOfCreditBackground = numberOfCreditTransaction;\r\n\t\tif (GradientnumberOfCredit != undefined) {\r\n\t\t\tnumberOfCreditBackground.datasets[0].backgroundColor = GradientnumberOfCredit;\r\n\t\t\tnumberOfCreditBackground.datasets[0].hoverBackgroundColor = GradientnumberOfCredit;\r\n\t\t}\r\n\t\tvar amountdebit = this.getGradientList(amountOfDebitTransaction);\r\n\t\tvar backamountdebit = amountOfDebitTransaction;\r\n\t\tif (amountdebit != undefined) {\r\n\t\t\tbackamountdebit.datasets[0].backgroundColor = amountdebit;\r\n\t\t\tbackamountdebit.datasets[0].hoverBackgroundColor = amountdebit;\r\n\t\t}\r\n\t\tvar amountcredit = this.getGradientList(amountOfCreditTransaction);\r\n\t\tvar backamountcredit = amountOfCreditTransaction;\r\n\t\tif (amountcredit != undefined) {\r\n\t\t\tbackamountcredit.datasets[0].backgroundColor = amountcredit;\r\n\t\t\tbackamountcredit.datasets[0].hoverBackgroundColor = amountcredit;\r\n\t\t}\r\n\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t\tAccount & Balance\r\n\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t{this.isBackOffice ?\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{this.isBackOffice ?

All Client Balance

:

Total Balance

}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t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\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

Amount of Credit Trx.

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{this.isBackOffice &&\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tconst { gridUniqueClientId } = this.state;\r\n\r\n\t\t\t\t\t\t\t\t\t\tvar UniqueClientId = gridUniqueClientId == null ? null : gridUniqueClientId.UniqueClientId;\r\n\t\t\t\t\t\t\t\t\t\tvar request = { UniqueClientId: UniqueClientId };\r\n\t\t\t\t\t\t\t\t\t\treturn request;\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\tRequestUrl=\"/bankapi/v1.0/Portal/GetListTransactionsForClientPaged\"\r\n\t\t\t\t\t\t\t\t\tRequestMethod=\"POST\"\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\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t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t{transactions.map(d => (\r\n\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\tvar route = this.ReturnRoutes(d.ProgramCode);\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (route) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tRouteHelper.Push(this.props.history, route.Path, route.Name, { FromDate: this.FromDate, ToDate: this.ToDate });\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\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owInfo.index });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (settlementModel.DateFilterId === 1)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.FromDate = DateHelper.GetDate().add(-3, \"days\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\telse if (settlementModel.DateFilterId === 2)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.FromDate = DateHelper.GetDate().add(-7, \"days\");\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar page = \"/\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (rowInfo.row.ProgramName === ProgramCodes.Bank_Programs_EFT)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpage = \"/EFTTransactionSearch\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (rowInfo.row.ProgramName === ProgramCodes.Bank_Programs_e_Transfer)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpage = \"/eTransferTransactionSearch\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (rowInfo.row.ProgramName === ProgramCodes.Bank_Programs_CDIC || rowInfo.row.Program === ProgramCodes.Bank_Programs_DDT)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpage = \"/CDICTransactionSearch\";\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tRouteHelper.Push(this.props.history, page, page.substring(1, page.length - 1) + \"_Date\", { FromDate: this.FromDate, ToDate: this.ToDate, IsSettled: true });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tstyle: {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbackground:\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\trowInfo.index === this.state.selectedSettled\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? \"rgba(0, 0, 0, 0.1)\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: \"\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcursor: \"pointer\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn {};\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tclasses={{\r\n\t\t\t\t\t\t\t\t\t\troot: classes.expansionPanelSummary,\r\n\t\t\t\t\t\t\t\t\t\texpanded: classes.expansionPanelSummaryExpaned,\r\n\t\t\t\t\t\t\t\t\t\tcontent: classes.expansionPanelSummaryContent,\r\n\t\t\t\t\t\t\t\t\t\texpandIcon: classes.expansionPanelSummaryExpandIcon\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tclasses={{\r\n\t\t\t\t\t\t\t\t\t\troot: classes.expansionPanelSummary,\r\n\t\t\t\t\t\t\t\t\t\texpanded: classes.expansionPanelSummaryExpaned,\r\n\t\t\t\t\t\t\t\t\t\tcontent: classes.expansionPanelSummaryContent,\r\n\t\t\t\t\t\t\t\t\t\texpandIcon: classes.expansionPanelSummaryExpandIcon\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t */}\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nPortal.propTypes = {\r\n\tclasses: PropTypes.object.isRequired\r\n};\r\n\r\nexport default withArtifex(Portal, dashboardStyle);","import { cardBoxShadow } from \"assets/jss/material-dashboard-pro-react.jsx\";\r\n\r\nconst dashboardStyle = {\r\n\tmain: {\r\n\t\tbackgroundColor: \"#e4e4e4\",\r\n\t\t...cardBoxShadow\r\n\t},\r\n\tcardBackGround: {\r\n\t\tbackgroundColor: \"#e4e4e4\"\r\n\t},\r\n\texpansionPanelSummaryExpaned: {\r\n\t\t// marginTop: \"-1px !important\",\r\n\t\t// marginLeft: \"-12px !important\"\r\n\t},\r\n\texpansionPanelSummaryContent: {\r\n\t\tmarginTop: \"-1px !important\",\r\n\t\tmarginLeft: \"-24px !important\"\r\n\t},\r\n\texpansionPanelDetails: {\r\n\t\tpadding: \"8px 0px 24px !important\"\r\n\t},\r\n\tcircleBoxGrid: {\r\n\t\twidth: \"100%\",\r\n\t\ttextAlign: \"center\"\r\n\t},\r\n\tcircleBox: {\r\n\t\tdisplay: \"inline-block\",\r\n\t\tmarginTop: \"24px\",\r\n\t\tmarginLeft: \"auto\",\r\n\t\tmarginRight: \"auto\",\r\n\t\tmarginBottom: \"24px\"\r\n\t}\r\n};\r\n\r\nexport default dashboardStyle;\r\n","const MaxLength6 = {\r\n\tmaxLength: 6\r\n};\r\n\r\nconst MaxLength10 = {\r\n\tmaxLength: 10\r\n};\r\n\r\nconst MaxLength20 = {\r\n\tmaxLength: 20\r\n};\r\n\r\nconst MaxLength30 = {\r\n\tmaxLength: 30\r\n};\r\n\r\nconst MaxLength50 = {\r\n\tmaxLength: 50\r\n};\r\n\r\nconst MaxLength128 = {\r\n\tmaxLength: 128\r\n};\r\n\r\nconst MaxLength150 = {\r\n\tmaxLength: 150\r\n};\r\n\r\nconst MaxLength500 = {\r\n\tmaxLength: 500\r\n};\r\n\r\nexport {\r\n\tMaxLength6,\r\n\tMaxLength10,\r\n\tMaxLength20,\r\n\tMaxLength30,\r\n\tMaxLength50,\r\n\tMaxLength128,\r\n\tMaxLength150,\r\n\tMaxLength500\r\n};\r\n","import {\r\n warningCardHeader,\r\n successCardHeader,\r\n dangerCardHeader,\r\n infoCardHeader,\r\n primaryCardHeader,\r\n roseCardHeader,\r\n blackCardHeader\r\n} from \"assets/jss/material-dashboard-pro-react.jsx\";\r\nconst cardIconStyle = {\r\n cardIcon: {\r\n \"&$warningCardHeader,&$successCardHeader,&$dangerCardHeader,&$infoCardHeader,&$primaryCardHeader,&$roseCardHeader,&$blackCardHeader\": {\r\n borderRadius: \"3px\",\r\n backgroundColor: \"#999\",\r\n padding: \"15px\",\r\n marginTop: \"-20px\",\r\n marginRight: \"15px\",\r\n float: \"left\"\r\n }\r\n },\r\n warningCardHeader,\r\n successCardHeader,\r\n dangerCardHeader,\r\n infoCardHeader,\r\n primaryCardHeader,\r\n roseCardHeader,\r\n blackCardHeader\r\n};\r\n\r\nexport default cardIconStyle;\r\n","import CanadaPostTest from \"views/ExternalPages/CanadaPostTest\";\r\nimport ApiModelTest from \"views/ExternalPages/ApiModelTest\";\r\nimport ApiRequestTest from \"views/ExternalPages/ApiRequestTest\";\r\nimport CardDesign from \"views/AmlKyc/ManualKycApplication/CardDesign\";\r\n\r\nimport AtmLocator from \"views/Atm/Location/AtmLocator.jsx\";\r\n\r\n\r\nimport InteracRedirectPage from \"views/InteracConfirm/InteracRedirectPage\";\r\nimport KycPhotoUpload from \"views/AmlKyc/ManualKycApplication/KycPhotoUpload\";\r\nimport InteracCardHolderPage from \"views/InteracConfirm/InteracCardHolderPage\";\r\nimport KycAccountVerification from \"views/AmlKyc/ManualKycApplication/KycAccountVerification\";\r\nimport InteracInboundLogin from \"views/InteracConfirm/InteracInboundLogin\";\r\nimport InteracInboundPage from \"views/InteracConfirm/InteracInboundPage\";\r\n\r\nimport VisaDirectThirdPartyIframe from \"views/VisaDirect/VisaDirectThirdPartyIframe\";\r\nimport VirtualCardIframe from \"views/VisaDirect/VirtualCardIframe\";\r\n\r\nconst externalPageRoutes = [\r\n\t{\r\n\t\tpath: \"/VirtualCard/VirtualCardIframe\",\r\n\t\tname: \"VirtualCardIframe\",\r\n\t\tcomponent: VirtualCardIframe\r\n\t},\r\n\t{\r\n\t\tpath: \"/VisaDirect/VisaDirectThirdPartyIframe\",\r\n\t\tname: \"VisaDirectThirdPartyIframe\",\r\n\t\tcomponent: VisaDirectThirdPartyIframe\r\n\t},\r\n\t{\r\n\t\tpath: \"/InteracConfirm/InboundLogin\",\r\n\t\tname: \"InteracInboundLogin\",\r\n\t\tcomponent: InteracInboundLogin\r\n\t},\r\n\t{\r\n\t\tpath: \"/InteracConfirm/InboundPage\",\r\n\t\tname: \"InteracInboundPage\",\r\n\t\tcomponent: InteracInboundPage\r\n\t},\r\n\t{\r\n\t\tpath: \"/InteracConfirm/CardHolder\",\r\n\t\tname: \"InteracCardHolderPage\",\r\n\t\tcomponent: InteracCardHolderPage\r\n\t},\r\n\t{\r\n\t\tpath: \"/InteracConfirm/Redirect\",\r\n\t\tname: \"InteracRecirectPage\",\r\n\t\tcomponent: InteracRedirectPage\r\n\t},\r\n\t{\r\n\t\tpath: \"/out/ATMLocator\",\r\n\t\tname: \"ATM Locator\",\r\n\t\tcomponent: AtmLocator\r\n\t},\r\n\t{\r\n\t\tpath: \"/out/KycPhotoUpload/:key?\",\r\n\t\tname: \"Kyc Photo Upload\",\r\n\t\tcomponent: KycPhotoUpload\r\n\t},\r\n\t{\r\n\t\tpath: \"/out/KycAccountVerification/:key?\",\r\n\t\tname: \"Kyc Account Verification\",\r\n\t\tcomponent: KycAccountVerification\r\n\t},\r\n\t{\r\n\t\tpath: \"/out/ApiTest\",\r\n\t\tname: \"ApiTest\",\r\n\t\tcomponent: ApiModelTest\r\n\t},\r\n\t{\r\n\t\tpath: \"/out/RequestTest\",\r\n\t\tname: \"RequestTest\",\r\n\t\tcomponent: ApiRequestTest\r\n\t},\r\n\t{\r\n\t\tpath: \"/out/CardDesign/:key?\",\r\n\t\tname: \"CardDesign\",\r\n\t\tcomponent: CardDesign\r\n\t},\r\n\t{\r\n\t\tpath: \"/out/CanadaPostTest\",\r\n\t\tname: \"Canada\",\r\n\t\tcomponent: CanadaPostTest\r\n\t},\r\n\t{\r\n\t\tpath: \"/out/404\",\r\n\t\tname: \"notFound\"\r\n\t},\r\n\t{\r\n\t\tredirect: true,\r\n\t\tpath: \"/out\",\r\n\t\tpathTo: \"/out/404\",\r\n\t\tname: \"404 Page\"\r\n\t} \r\n];\r\n\r\nexport default externalPageRoutes;\r\n","import React from \"react\";\r\n\r\n// core components\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport Heading from \"components/Heading/Heading.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport { GenericTextInput, GenericSelectInput,GenericDateInput } from \"views/Components/Generic\";\r\n\r\nimport { Proxy } from \"core\";\r\nimport moment from \"moment\";\r\n\r\nclass ulli extends React.Component {\r\n\trender() {\r\n\t return (\r\n\t\t
    \r\n\t\t\t
  • Apple
  • \r\n\t\t\t
  • Orange
  • \r\n\t\t\t
  • Blueberry
  • \r\n\t\t\t
  • Cherry
  • \r\n\t\t
\r\n\t )\r\n\t}\r\n } \r\n\r\n\r\nclass CanadaPostTest extends React.Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tmodel: {}\r\n\t\t};\r\n\r\n\t\tthis.handleChange = this.handleChange.bind(this);\r\n\t\tthis.click = this.click.bind(this);\r\n\t\t//this.ListItem = this.ListItem.bind(this);\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\r\n\r\n\t}\r\n\r\n\tclick()\r\n\t{\r\n\t\tconst model = { ...this.state.model };\r\n\t\tvar dt = moment.utc().toDate();\r\n\t\tmodel.UtcDate = dt;\r\n\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/User/UtcDate\",\r\n\t\t\t{ UtcDateValue: model.UtcDate },\r\n\t\t\tresponseData =>{\r\n\t\t\t\tmodel[\"UtcResponseDate\"] = responseData.UtcResponseDate;\r\n\t\t\t\tthis.handleChange(\"UtcResponseDateList\", responseData.UtcResponseDateList);\r\n\t\t\t}\r\n\t\t);\r\n\r\n\r\n\t}\r\n\r\n\thandleChange(name, newValue) {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model: model }, \t\t\t() => console.log(\"state \", this.state));\r\n\t}\r\n\r\n\r\n\trender() {\r\n\t\tconst { model } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\tCanada Post Test\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\r\n\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\tPost me\r\n\t\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\tUtc response is {\r\n\t\t\t\t\t\t\t\t\t\t\tmoment.utc(model.UtcResponseDate).local().format('YYYY-MM-DD HH:mm:ss')\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmodel.UtcResponseDateList? model.UtcResponseDateList.map(d => (\r\n\t\t\t\t\t\t\t\t\t\t
{moment.utc(d).local().format('YYYY-MM-DD HH:mm:ss')}
\r\n\t\t\t\t\t\t\t\t\t)) : ''\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nexport default CanadaPostTest;\r\n","// ##############################\r\n// // // Heading component styles\r\n// #############################\r\n\r\nconst headingStyle = {\r\n heading: {\r\n marginBottom: \"30px\"\r\n },\r\n rightTextAlign: {\r\n textAlign: \"right\"\r\n },\r\n leftTextAlign: {\r\n textAlign: \"left\"\r\n },\r\n centerTextAlign: {\r\n textAlign: \"center\"\r\n },\r\n title: {\r\n marginTop: \"10px\",\r\n color: \"#3C4858\",\r\n textDecoration: \"none\"\r\n },\r\n category: {\r\n margin: \"0 0 10px\"\r\n }\r\n};\r\n\r\nexport default headingStyle;\r\n","import Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport React from \"react\";\r\nimport { GenericAlert } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\nclass ApiModelTest extends React.Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tlist: [],\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t\ttempList: []\r\n\t\t};\r\n\r\n\t}\r\n\tFetchData = () => {\r\n\t\tthis.setState({ list: [] });\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.GET(\r\n\t\t\t\"/coreapi/v1.0/ApiModelTest/Test\",\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.setState({ list: responseData.Item });\r\n\t\t\t\tthis.setState({ tempList: responseData.Item });\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tFilterErrors = () => {\r\n\t\tif (this.state.list != null) {\r\n\t\t\tvar temp = this.state.list.filter(x => x.Status == \"Error\");\r\n\t\t\tthis.setState({ tempList: temp });\r\n\t\t}\r\n\t}\r\n\tFilterSuccess = () => {\r\n\t\tif (this.state.list != null) {\r\n\t\t\tvar temp = this.state.list.filter(x => x.Status == \"Success\");\r\n\t\t\tthis.setState({ tempList: temp });\r\n\t\t}\r\n\t}\r\n\tFilterWarning = () => {\r\n\t\tif (this.state.list != null) {\r\n\t\t\tvar temp = this.state.list.filter(x => x.Status == \"Warning\");\r\n\t\t\tthis.setState({ tempList: temp });\r\n\t\t}\r\n\t}\r\n\tFilterAll = () => {\r\n\t\tthis.setState({ tempList: this.state.list });\r\n\t}\r\n\r\n\tShowMessage = (type, title, message) => {\r\n\t\t// type:-success->warning->info->error\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\tGridRowCount = (count) => {\r\n\t\treturn ++count;\r\n\t}\r\n\tGetColor = (type) => {\r\n\t\tif (type == \"Error\")\r\n\t\t\treturn \"#f44242\";\r\n\t\telse if (type == \"Warning\")\r\n\t\t\treturn \"#ba9100\";\r\n\t\telse\r\n\t\t\treturn \"#191819\";\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { tempList } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\t\t\t\tApi Model Test\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t


\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t

Name

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t

Namespace

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t

TableName

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t

Status

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t

Error

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t

ErrorDetail

\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t{tempList != null && tempList.map((item, index) => (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t

{this.GridRowCount(index)} - {item.Name}

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t

{item.Namespace}

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t

{item.TableName}

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t

{item.Status}

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t

{item.Error}

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t

{item.ErrorDetail}

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t))}\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nexport default ApiModelTest;\r\n","import Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy } from \"core\";\r\nimport React from \"react\";\r\nimport { GenericAlert } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport axios from \"axios\";\r\n\r\n\r\nclass ApiRequestTest extends React.Component {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t\tdata: \"\"\r\n\r\n\t\t};\r\n\t}\r\n\r\n\r\n\tFetchDataProxyGet = () => {\r\n\t\tProxy.GET(\r\n\t\t\t\"/coreapi/v1.0/HeartBeat/Check\",\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tconsole.log(responseData);\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tFetchDataProxyPost = () => {\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/HeartBeat/CheckPost\",\r\n\t\t\t\"test post proxy\",\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tconsole.log(responseData);\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\r\n\r\n\r\n\tVogConnectApiTestLogin = () => {\r\n\t\tProxy.POST(\r\n\t\t\t\"/customerintegrationapi/v1.0/Authentication/Login\",\r\n\t\t\t{\r\n\t\t\t\t\"Email\": \"DCBankEndUserAPIs@dcbank.ca\",\r\n\t\t\t\t\"Password\": \"Abc123.\"\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tconsole.log(responseData);\r\n\t\t\t\tthis.setState({data : responseData.DCBankAccessToken});\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tVogConnectApiTestOtp = () => {\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/TwoFactorAuth/VerifyAuthenticatorOtp\",\r\n\t\t\t{\r\n\t\t\t\t\"Otp\": \"123456\",\r\n\t\t\t\t\"Email\": \"DCBankEndUserAPIs@dcbank.ca\"\r\n\t\t\t},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tconsole.log(responseData);\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\r\n\r\n\r\n\tFetchDataAxiosGet = () => {\r\n\t\tvar url = window.ProxyUrl;\r\n\t\turl += \"/coreapi/v1.0/HeartBeat/Check\";\r\n\t\taxios.get(url)\r\n\t\t\t.then(function (response) {\r\n\t\t\t\tconsole.log(response);\r\n\t\t\t})\r\n\t\t\t.catch(function (error) {\r\n\t\t\t\tconsole.log(error);\r\n\t\t\t})\r\n\t\t\t.finally(function () {\r\n\t\t\t});\r\n\t}\r\n\r\n\tFetchDataAxiosPost = () => {\r\n\t\tvar url = window.ProxyUrl;\r\n\t\turl += \"/coreapi/v1.0/HeartBeat/CheckPost\";\r\n\t\taxios.post(url,\r\n\t\t\t{ \"request\": \"test axios post\" }\r\n\t\t)\r\n\t\t\t.then(function (response) {\r\n\t\t\t\tconsole.log(response);\r\n\t\t\t})\r\n\t\t\t.catch(function (error) {\r\n\t\t\t\tconsole.log(error);\r\n\t\t\t});\r\n\t}\r\n\r\n\tLanguageFetchDataProxyPost = () => {\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Resource/GetByLanguageId\",\r\n\t\t\t{},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tconsole.log(responseData);\t\t\t\t\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\tLanguageFetchDataAxiosPost = () => {\r\n\t\tvar url = window.ProxyUrl;\r\n\t\turl += \"/coreapi/v1.0/Resource/GetByLanguageId\";\r\n\t\taxios.post(url,\r\n\t\t\t{}\r\n\t\t)\r\n\t\t\t.then(function (response) {\r\n\t\t\t\tconsole.log(response);\r\n\t\t\t})\r\n\t\t\t.catch(function (error) {\r\n\t\t\t\tconsole.log(error);\r\n\t\t\t});\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\t// type:-success->warning->info->error\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { tempList } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t{this.state.alert}\r\n\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\t

Heart Beat Test

\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t
\r\n\r\n\r\n\r\n\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nexport default ApiRequestTest;\r\n","import Card from \"components/Card/Card.jsx\";\r\nimport kycManualPhotoDefinitionStyle from \"assets/jss/material-dashboard-pro-react/views/kycManualPhotoDefinitionStyle.jsx\";\r\nimport { withStyles } from \"@material-ui/core\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport cx from \"classnames\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport React from \"react\";\r\nimport PropTypes from \"prop-types\";\r\n\r\nimport ClientHelper from \"core/ClientHelper\";\r\nimport { GenericExpansionPanel, GenericSelectInput, GenericTextInput, GenericCardMedia, GenericLabel } from \"views/Components/Generic\";\r\nimport ExternalContainer from \"layouts/ExternalContainer\";\r\nimport { CrudType, FileType } from \"views/Constants/Constant\";\r\nimport FileHelper from \"core/FileHelper\";\r\nimport ImageHelper from \"core/ImageHelper\";\r\n\r\nconst galerydefault = require(\"assets/img/galerydefault-image.png\");\r\n\r\n\r\nclass CardDesign extends React.PureComponent {\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\talert: null,\r\n\t\t\tlist: [],\r\n\t\t\tmodel: {\r\n\t\t\t\tUniqueClientId: ClientHelper.IsClient()\r\n\t\t\t\t\t? ClientHelper.GetClientRowId()\r\n\t\t\t\t\t: undefined,\r\n\t\t\t\timage: \"\",\r\n\t\t\t},\r\n\t\t\tdata: [],\r\n\t\t\tisLoading: false,\r\n\t\t\trowIndex: -1,\r\n\t\t\tmodelList: [],\r\n\t\t\tphotoBase64: null,\r\n\t\t\topenDialog: false,\r\n\t\t\tcameraLabel: null,\r\n\t\t\timgSrc: null,\r\n\t\t\tisOpenkycUploadWindow: null\r\n\t\t};\r\n\t\tthis.ParameterCardBrand = { ParameterCode: \"Brand\" };\r\n\t\tthis.ParameterCardChipType = { ParameterCode: \"CardChipType\" };\r\n\t\tthis.ParameterCardContactless = { ParameterCode: \"CardContactlessColorType\" };\r\n\t\tthis.BackgroundColor = { ParameterCode: \"BackgroundColor\" };\r\n\t\tthis.CardImageCodeType = { ParameterCode: \"CardImageCodeType\" };\r\n\t\tthis.isBackOffice = ClientHelper.IsBackOffice();\r\n\t\tthis.fileInputRef1 = React.createRef();\r\n\t\tthis.maxLength5 = { maxLength: 5 };\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tif (this.props.setAppLeftTitle) {\r\n\t\t\tthis.props.setAppLeftTitle(\"Card Design\");\r\n\t\t}\r\n\t\tif (this.props.setAppCenterTitle) {\r\n\t\t\tthis.props.setAppCenterTitle(\"Card Design\");\r\n\t\t}\r\n\t\tvar routedModel = JSON.parse(localStorage.getItem(\"CardDesign\"));\r\n\t\tvar model = { ...this.state.model };\r\n\t\tmodel = routedModel;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\r\n\tshowDesign = () => {\r\n\r\n\t\tif (localStorage.getItem('CardImage1') === \"null\" || localStorage.getItem('CardImage2') === \"null\") {\r\n\t\t\tthis.setState({ imgSrc: localStorage.getItem('CardImage') });\r\n\t\t} else {\r\n\t\t\tthis.setState({ imgSrc: localStorage.getItem('CardImage1') + localStorage.getItem('CardImage2') });\r\n\t\t}\r\n\t}\r\n\r\n\tHandleFileSelect = async (e) => {\r\n\r\n\t\tconst { model } = this.state;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\r\n\t\te.preventDefault();\r\n\t\tvar file1 = e.target.files[0];\r\n\t\tif (!file1) return;\r\n\t\tthis.setState({ isLoading: true });\r\n\r\n\t\tif (((file1.size || 0) / 1024 / 1024) > 10) {\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Photo file size cannot be larger than 10mb\");\r\n\t\t\tthis.setState({ isLoading: false });\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar blob = await ImageHelper.CompressImage(file1);//Start Compression if over 500kb\r\n\t\tvar compressedBase64 = await FileHelper.BlobToBase64(blob);\r\n\t\tvar compressedFile = FileHelper.DataURLtoFile(compressedBase64, file1.name);\r\n\r\n\t\tcompressedBase64 = await ExecuteApiPost(\"/coreapi/v1.0/Image/ImageResize\", { ImageBase64: compressedBase64 });\r\n\r\n\t\tvar imageObj = await ImageHelper.GetImageObjectFromBase64(compressedBase64);\r\n\t\tconsole.log(imageObj.width);\r\n\t\tconsole.log(imageObj.height);\r\n\t\tif (imageObj?.width < 100 || imageObj?.height < 100) {\r\n\t\t\tawait this.props.showMessage(\"error\", \"Error\", \"Any dimension of the image cannot be under 100 pixel\");\r\n\t\t\tthis.setState({ isLoading: false });\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tmodel.TempFileId = model.UserPhotoId || 0;\r\n\t\tmodel.File = compressedFile;\r\n\t\tmodel.FileName = file1.name;\r\n\t\tmodel.FileSelect = true;\r\n\r\n\t\tvar cardNumber2 = document.getElementById(\"cardNumber2\").textContent = \"5032 9334 3764 9846\";\r\n\t\tcardNumber2 = document.getElementById(\"cardNumber2\").style.position = \"absolute\";\r\n\t\tcardNumber2 = document.getElementById(\"cardNumber2\").style.left = \"20px\";\r\n\t\tcardNumber2 = document.getElementById(\"cardNumber2\").style.bottom = \"55px\";\r\n\t\tcardNumber2 = document.getElementById(\"cardNumber2\").style.color = \"white\";\r\n\t\tcardNumber2 = document.getElementById(\"cardNumber2\").style.fontSize = \"15px\";\r\n\t\tcardNumber2 = document.getElementById(\"cardNumber2\").style.font = \"25px\";\r\n\r\n\t\tvar cardName2 = document.getElementById(\"cardName2\").textContent = \"Alexander Theodore\";\r\n\t\tcardName2 = document.getElementById(\"cardName2\").style.position = \"absolute\";\r\n\t\tcardName2 = document.getElementById(\"cardName2\").style.left = \"20px\";\r\n\t\tcardName2 = document.getElementById(\"cardName2\").style.bottom = \"20px\";\r\n\t\tcardName2 = document.getElementById(\"cardName2\").style.color = \"white\";\r\n\t\tcardName2 = document.getElementById(\"cardName2\").style.fontSize = \"15px\";\r\n\r\n\t\tvar cardDate2 = document.getElementById(\"cardDate2\").textContent = \"09/19\";\r\n\t\tcardDate2 = document.getElementById(\"cardDate2\").style.position = \"absolute\";\r\n\t\tcardDate2 = document.getElementById(\"cardDate2\").style.left = \"160px\";\r\n\t\tcardDate2 = document.getElementById(\"cardDate2\").style.bottom = \"30px\";\r\n\t\tcardDate2 = document.getElementById(\"cardDate2\").style.color = \"white\";\r\n\t\tcardDate2 = document.getElementById(\"cardDate2\").style.fontSize = \"15px\";\r\n\r\n\r\n\t\tthis.setState({ photoBase64: compressedBase64, isLoading: false });\r\n\t}\r\n\r\n\thandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\t\tconsole.log(model.CardBrandId);\r\n\t\t\r\n\t\tif (model.CardChipTypeId == 11100) {\r\n\t\t\tvar documentry = document.getElementById(\"cardChipType2\").style.width = \"50px\";\r\n\t\t\tdocumentry = document.getElementById(\"cardChipType2\").style.height = \"40px\";\r\n\t\t\tdocumentry = document.getElementById(\"cardChipType2\").style.left = \"20px\";\r\n\t\t\tdocumentry = document.getElementById(\"cardChipType2\").style.bottom = \"80px\";\r\n\t\t\tdocumentry = document.getElementById(\"cardChipType2\").style.position = \"absolute\";\r\n\t\t\tdocumentry = document.getElementById(\"cardChipType2\").style.borderRadius = \"5px\";\r\n\t\t\tdocumentry = document.getElementById(\"cardChipType2\").style.backgroundColor = \"white\";\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvar documentry = document.getElementById(\"cardChipType2\").style.width = \"\";\r\n\t\t\tdocumentry = document.getElementById(\"cardChipType2\").style.height = \"\";\r\n\t\t\tdocumentry = document.getElementById(\"cardChipType2\").style.left = \"\";\r\n\t\t\tdocumentry = document.getElementById(\"cardChipType2\").style.bottom = \"\";\r\n\t\t\tdocumentry = document.getElementById(\"cardChipType2\").style.position = \"\";\r\n\t\t\tdocumentry = document.getElementById(\"cardChipType2\").style.borderRadius = \"\";\r\n\t\t\tdocumentry = document.getElementById(\"cardChipType2\").style.backgroundColor = \"\";\r\n\t\t}\r\n\r\n\t\tif (model.CardBrandId == 3400) {\r\n\t\t\tvar documentry2 = document.getElementById(\"cardBrandId2\").style.width = \"80px\";\r\n\t\t\tdocumentry2 = document.getElementById(\"cardBrandId2\").style.height = \"37px\";\r\n\t\t\tdocumentry2 = document.getElementById(\"cardBrandId2\").style.left = \"235px\";\r\n\t\t\tdocumentry2 = document.getElementById(\"cardBrandId2\").style.bottom = \"15px\";\r\n\t\t\tdocumentry2 = document.getElementById(\"cardBrandId2\").style.position = \"absolute\";\r\n\t\t\tdocumentry2 = document.getElementById(\"cardBrandId2\").style.borderRadius = \"10px\";\r\n\t\t\tdocumentry2 = document.getElementById(\"cardBrandId2\").style.backgroundColor = \"white\";\r\n\t\t}\r\n\t\telse if (model.CardBrandId == 3403) {\r\n\t\t\tvar documentry2 = document.getElementById(\"cardBrandId2\").style.width = \"48px\";\r\n\t\t\tdocumentry2 = document.getElementById(\"cardBrandId2\").style.height = \"48px\";\r\n\t\t\tdocumentry2 = document.getElementById(\"cardBrandId2\").style.left = \"265px\";\r\n\t\t\tdocumentry2 = document.getElementById(\"cardBrandId2\").style.bottom = \"15px\";\r\n\t\t\tdocumentry2 = document.getElementById(\"cardBrandId2\").style.position = \"absolute\";\r\n\t\t\tdocumentry2 = document.getElementById(\"cardBrandId2\").style.borderRadius = \"10px\";\r\n\t\t\tdocumentry2 = document.getElementById(\"cardBrandId2\").style.backgroundColor = \"white\";\r\n\t\t}\r\n\t\telse if (model.CardBrandId == 3401) {\r\n\t\t\tvar documentry2 = document.getElementById(\"cardBrandId2\").style.width = \"80px\";\r\n\t\t\tdocumentry2 = document.getElementById(\"cardBrandId2\").style.height = \"55px\";\r\n\t\t\tdocumentry2 = document.getElementById(\"cardBrandId2\").style.left = \"235px\";\r\n\t\t\tdocumentry2 = document.getElementById(\"cardBrandId2\").style.bottom = \"15px\";\r\n\t\t\tdocumentry2 = document.getElementById(\"cardBrandId2\").style.position = \"absolute\";\r\n\t\t\tdocumentry2 = document.getElementById(\"cardBrandId2\").style.borderRadius = \"30px\";\r\n\t\t\tdocumentry2 = document.getElementById(\"cardBrandId2\").style.backgroundColor = \"white\";\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvar documentry2 = document.getElementById(\"cardBrandId2\").style.width = \"\";\r\n\t\t\tdocumentry2 = document.getElementById(\"cardBrandId2\").style.height = \"\";\r\n\t\t\tdocumentry2 = document.getElementById(\"cardBrandId2\").style.left = \"\";\r\n\t\t\tdocumentry2 = document.getElementById(\"cardBrandId2\").style.bottom = \"\";\r\n\t\t\tdocumentry2 = document.getElementById(\"cardBrandId2\").style.position = \"\";\r\n\t\t\tdocumentry2 = document.getElementById(\"cardBrandId2\").style.borderRadius = \"\";\r\n\t\t\tdocumentry2 = document.getElementById(\"cardBrandId2\").style.backgroundColor = \"\";\r\n\t\t}\r\n\r\n\t\tif (model.CardContactlessColorTypeId == 11102) {\r\n\t\t\tvar documentry3 = document.getElementById(\"cardContactlessColorType2\").style.position = \"absolute\";\r\n\t\t\tdocumentry3 = document.getElementById(\"cardContactlessColorType2\").style.width = \"40px\";\r\n\t\t\tdocumentry3 = document.getElementById(\"cardContactlessColorType2\").style.height = \"40px\";\r\n\t\t\tdocumentry3 = document.getElementById(\"cardContactlessColorType2\").style.left = \"275px\";\r\n\t\t\tdocumentry3 = document.getElementById(\"cardContactlessColorType2\").style.bottom = \"100px\";\r\n\t\t\tdocumentry3 = document.getElementById(\"cardContactlessColorType2\").style.borderRadius = \"40px\";\r\n\t\t\tdocumentry3 = document.getElementById(\"cardContactlessColorType2\").style.backgroundColor = \"black\";\r\n\t\t}\r\n\t\telse if (model.CardContactlessColorTypeId == 11104) {\r\n\t\t\tvar documentry3 = document.getElementById(\"cardContactlessColorType2\").style.position = \"absolute\";\r\n\t\t\tdocumentry3 = document.getElementById(\"cardContactlessColorType2\").style.width = \"40px\";\r\n\t\t\tdocumentry3 = document.getElementById(\"cardContactlessColorType2\").style.height = \"40px\";\r\n\t\t\tdocumentry3 = document.getElementById(\"cardContactlessColorType2\").style.left = \"275px\";\r\n\t\t\tdocumentry3 = document.getElementById(\"cardContactlessColorType2\").style.bottom = \"100px\";\r\n\t\t\tdocumentry3 = document.getElementById(\"cardContactlessColorType2\").style.borderRadius = \"40px\";\r\n\t\t\tdocumentry3 = document.getElementById(\"cardContactlessColorType2\").style.backgroundColor = \"white\";\r\n\t\t}\r\n\t\telse {\r\n\t\t\tvar documentry3 = document.getElementById(\"cardContactlessColorType2\").style.position = \"\";\r\n\t\t\tdocumentry3 = document.getElementById(\"cardContactlessColorType2\").style.width = \"\";\r\n\t\t\tdocumentry3 = document.getElementById(\"cardContactlessColorType2\").style.height = \"\";\r\n\t\t\tdocumentry3 = document.getElementById(\"cardContactlessColorType2\").style.left = \"\";\r\n\t\t\tdocumentry3 = document.getElementById(\"cardContactlessColorType2\").style.bottom = \"\";\r\n\t\t\tdocumentry3 = document.getElementById(\"cardContactlessColorType2\").style.borderRadius = \"\";\r\n\t\t\tdocumentry3 = document.getElementById(\"cardContactlessColorType2\").style.backgroundColor = \"\";\r\n\t\t}\r\n\r\n\t\tif(model.BackgroundColorId == 11105 || model.BackgroundColorId == 11109 || model.BackgroundColorId == 11107){\r\n\t\t\tdocument.getElementById(\"cardName2\").style.color = \"black\";\r\n\t\t\tdocument.getElementById(\"cardNumber2\").style.color = \"black\";\r\n\t\t\tdocument.getElementById(\"cardDate2\").style.color = \"black\";\r\n\t\t}\r\n\t\telse if(model.BackgroundColorId == 11106 || model.BackgroundColorId == 11110 || model.BackgroundColorId == 11108){\r\n\t\t\tdocument.getElementById(\"cardName2\").style.color = \"white\";\r\n\t\t\tdocument.getElementById(\"cardNumber2\").style.color = \"white\";\r\n\t\t\tdocument.getElementById(\"cardDate2\").style.color = \"white\";\r\n\t\t}\r\n\r\n\t\tif(model.CardImageCodeTypeId === \"1\"){\r\n\t\t\tconst characters ='ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';\r\n\t\t\tfunction generateString(length) {\r\n\t\t\t\t let result = '';\r\n\t\t\t\t const charactersLength = characters.length;\r\n\t\t\t\t for ( let i = 0; i < length; i++ ) {\r\n\t\t\t\t\t result += characters.charAt(Math.floor(Math.random() * charactersLength));\r\n\t\t\t\t }\r\n\t\t\t\r\n\t\t\t\t return result;\r\n\t\t\t}\t\t\t\r\n\t\t\tmodel.CardImageCode = generateString(5);\r\n\t\t}\r\n\t\telse{\r\n\t\t\tmodel.CardImageCode = \"\";\r\n\t\t}\r\n\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\thandleCloseTab = async () => {\r\n\t\twindow.close();\r\n\r\n\t}\r\n\tHandleSubmit = async () => {\r\n\t\tconst { ExecuteApiFileUpload, ExecuteApiImageUpload, ExecuteApiPost } = this.props;\r\n\t\tvar { model, modelList, photoBase64 } = this.state;\r\n\t\tif(model.CardContactlessColorTypeId == undefined || model.CardChipTypeId == 922703 || model.CardContactlessColorTypeId == null || model.CardContactlessColorTypeId == 0) {\r\n\t\t\tmodel.CardContactlessColorTypeId = 11103;\r\n\t\t}\r\n\r\n\t\tif ((model.CardImageCode == null || model.CardImageCode == undefined) ||\r\n\t\t\t(model.CardBrandId == null || model.CardBrandId == undefined) ||\r\n\t\t\t(model.CardChipTypeId == null || model.CardChipTypeId == undefined) ||\r\n\t\t\t(model.BackgroundColorId == null || model.BackgroundColorId == undefined) ||\r\n\t\t\t(model.CardImageCodeTypeId == null || model.CardImageCodeTypeId == undefined || model.CardImageCodeTypeId === \"\")){\r\n\t\t\tthis.props.showMessage(\"warning\", \"Please fill required fields!\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar formData = new FormData();\r\n\t\tformData.append(\"file\", model.File, model.FileName);\r\n\t\tformData.append(\"UniqueClientId\", model.UniqueClientId);\r\n\t\tformData.append(\"CardImageCode\", model.CardImageCode);\r\n\t\tformData.append(\"CardBrandId\", model.CardBrandId);\r\n\t\tformData.append(\"CardContactlessColorTypeId\", model.CardContactlessColorTypeId);\r\n\t\tformData.append(\"CardChipTypeId\", model.CardChipTypeId);\r\n\t\tformData.append(\"BackgroundColorId\", model.BackgroundColorId);\r\n\t\tformData.append(\"PhotoBase64\", photoBase64);\r\n\t\tformData.append(\"isBinaryOrBase64\", FileType.Base64);\r\n\t\tformData.append(\"isInsertOrUpdate\", CrudType.Insert);\r\n\t\tformData.append(\"PlasticName\", model.PlasticName);\r\n\t\tmodel.UserPhotoId = null;\r\n\t\tthis.setState({ model });\r\n\t\tvar result = await ExecuteApiImageUpload(\"/coreapi/v1.0/File/UploadImage\", formData);\r\n\t\tif (result.IsSuccessed == false) {\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", result.ErrorDescription);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\telse if (result.IsSucceeded == true) {\r\n\t\t\tthis.props.showMessage(\"success\", \"Success\", \"Image Uploaded Successfully\");\r\n\t\t}\r\n\r\n\t\tthis.HandleClear();\r\n\t}\r\n\r\n\tOpenFileSelectDialog = () => {\r\n\t\tthis.fileInputRef1.current.click();\r\n\t}\r\n\r\n\tHandleClear = () => {\r\n\t\tconst nModel={...this.state.model};\r\n\r\n\t\tthis.setState({ model: {\r\n\t\t\tId : 0,\r\n\t\t\tBackgroundColorId : 0,\r\n\t\t\tCardBrandId : 0,\r\n\t\t\tCardChipTypeId : 0,\r\n\t\t\tCardContactlessColorTypeId : 0,\r\n\t\t\tCardImageCode : \"\",\r\n\t\t\tCardImageCodeTypeId : \"\",\r\n\t\t\tUniqueClientId : nModel.UniqueClientId,\r\n\t\t\tFile : {},\r\n\t\t\tFileName : \"\",\r\n\t\t\tFileSelect : false,\r\n\t\t\tTempFileId: 0,\r\n\t\t\tUserPhotoId: null,\r\n\t\t\timage: \"\",\r\n\t\t\tclassses: {},\r\n\t\t\tPlasticName : \"\"\r\n\t\t}, rowIndex: -1, isEdit: false, index: -1, photoBase64: null });\r\n\r\n\t\tvar documentry = document.getElementById(\"cardChipType2\").style.width = \"\";\r\n\t\tdocumentry = document.getElementById(\"cardChipType2\").style.height = \"\";\r\n\t\tdocumentry = document.getElementById(\"cardChipType2\").style.left = \"\";\r\n\t\tdocumentry = document.getElementById(\"cardChipType2\").style.bottom = \"\";\r\n\t\tdocumentry = document.getElementById(\"cardChipType2\").style.position = \"\";\r\n\t\tdocumentry = document.getElementById(\"cardChipType2\").style.borderRadius = \"\";\r\n\t\tdocumentry = document.getElementById(\"cardChipType2\").style.backgroundColor = \"\";\r\n\r\n\t\tvar documentry2 = document.getElementById(\"cardBrandId2\").style.width = \"\";\r\n\t\tdocumentry2 = document.getElementById(\"cardBrandId2\").style.height = \"\";\r\n\t\tdocumentry2 = document.getElementById(\"cardBrandId2\").style.left = \"\";\r\n\t\tdocumentry2 = document.getElementById(\"cardBrandId2\").style.bottom = \"\";\r\n\t\tdocumentry2 = document.getElementById(\"cardBrandId2\").style.position = \"\";\r\n\t\tdocumentry2 = document.getElementById(\"cardBrandId2\").style.borderRadius = \"\";\r\n\t\tdocumentry2 = document.getElementById(\"cardBrandId2\").style.backgroundColor = \"\";\r\n\r\n\t\tvar documentry3 = document.getElementById(\"cardContactlessColorType2\").style.position = \"\";\r\n\t\tdocumentry3 = document.getElementById(\"cardContactlessColorType2\").style.width = \"\";\r\n\t\tdocumentry3 = document.getElementById(\"cardContactlessColorType2\").style.height = \"\";\r\n\t\tdocumentry3 = document.getElementById(\"cardContactlessColorType2\").style.left = \"\";\r\n\t\tdocumentry3 = document.getElementById(\"cardContactlessColorType2\").style.bottom = \"\";\r\n\t\tdocumentry3 = document.getElementById(\"cardContactlessColorType2\").style.borderRadius = \"\";\r\n\t\tdocumentry3 = document.getElementById(\"cardContactlessColorType2\").style.backgroundColor = \"\";\r\n\r\n\t\tvar cardNumber2 = document.getElementById(\"cardNumber2\").textContent = \"\";\r\n\t\tcardNumber2 = document.getElementById(\"cardNumber2\").style.position = \"\";\r\n\t\tcardNumber2 = document.getElementById(\"cardNumber2\").style.left = \"\";\r\n\t\tcardNumber2 = document.getElementById(\"cardNumber2\").style.bottom = \"\";\r\n\t\tcardNumber2 = document.getElementById(\"cardNumber2\").style.color = \"\";\r\n\t\tcardNumber2 = document.getElementById(\"cardNumber2\").style.fontSize = \"\";\r\n\t\tcardNumber2 = document.getElementById(\"cardNumber2\").style.font = \"\";\r\n\r\n\t\tvar cardName2 = document.getElementById(\"cardName2\").textContent = \"\";\r\n\t\tcardName2 = document.getElementById(\"cardName2\").style.position = \"\";\r\n\t\tcardName2 = document.getElementById(\"cardName2\").style.left = \"\";\r\n\t\tcardName2 = document.getElementById(\"cardName2\").style.bottom = \"\";\r\n\t\tcardName2 = document.getElementById(\"cardName2\").style.color = \"\";\r\n\t\tcardName2 = document.getElementById(\"cardName2\").style.fontSize = \"\";\r\n\r\n\t\tvar cardDate2 = document.getElementById(\"cardDate2\").textContent = \"\";\r\n\t\tcardDate2 = document.getElementById(\"cardDate2\").style.position = \"\";\r\n\t\tcardDate2 = document.getElementById(\"cardDate2\").style.left = \"\";\r\n\t\tcardDate2 = document.getElementById(\"cardDate2\").style.bottom = \"\";\r\n\t\tcardDate2 = document.getElementById(\"cardDate2\").style.color = \"\";\r\n\t\tcardDate2 = document.getElementById(\"cardDate2\").style.fontSize = \"\";\r\n\r\n\t\tconsole.log(nModel);\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { model, photoBase64, isLoading } = this.state;\r\n\t\tconst { classes, ExecuteApiPost } = this.props;\r\n\t\tconst mainLogo = require(\"assets/img/\" + window.MainLogo);\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t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ropTypes.any,\r\n\tApprovalData: PropTypes.any,\r\n\tExecuteApiFileUpload: PropTypes.func,\r\n\tExecuteApiImageUpload: PropTypes.func,\r\n\tAfter: PropTypes.any\r\n};\r\nexport default withStyles(kycManualPhotoDefinitionStyle)(CardDesign);\r\n","import { Hidden } from \"@material-ui/core\";\r\nimport atmLocatorStyle from \"assets/jss/material-dashboard-pro-react/views/atmLocatorStyle.jsx\";\r\nimport cx from \"classnames\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withArtifex } from \"core\";\r\nimport ExternalContainer from \"layouts/ExternalContainer\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport { GenericMapContainer, GenericMapMarker, GenericMapSearchbox } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\n\r\n\r\n\r\nconst AtmComponent = React.memo((props) => {\r\n\r\n\tconst { item, rowIndex, classes, OnClick } = props;\r\n\tconst comp = \r\n\t\t
\r\n\t\t\t\r\n\t\t\t\t{item.Address}\r\n\t\t\t\r\n\t\t
\r\n\t\t
\r\n\t\t\t\r\n\t\t\t\tDistance: {Number(item.Distance).toFixed(2)}km\r\n\t\t\t\t\t \r\n\t\t\t
\r\n\t\t\t{item.SiteName}\r\n\t\t\t
\r\n\t\t\t{item.PostCode}\r\n\t\t\t
\r\n\t\t
\r\n\t
;\r\n\treturn (comp);\r\n}, (prev, next) => {\r\n\tvar itemDiff = prev.item.Id == next.item.Id;\r\n\tvar rowIndexDiff = next.item.Id != next.rowIndex + 1;\r\n\tvar oldRowIndexDiff = prev.item.Id != prev.rowIndex + 1;\r\n\treturn itemDiff && rowIndexDiff && oldRowIndexDiff;\r\n});\r\n\r\nconst AtmListComponent = React.memo((props) => {\r\n\tconst { classes, tempData, rowIndex, OnClick } = props;\r\n\tconst comp =
\r\n\t\t{tempData.map((item, index) => {\r\n\t\t\treturn (\r\n\t\t\t\t);\r\n\t\t})}\r\n\t
;\r\n\treturn (comp);\r\n}, (prev, next) => {\r\n\tvar itemDiff = prev.tempData == next.tempData;\r\n\treturn itemDiff;\r\n});\r\nconst MapMarkerPopupComponent = React.memo(({ AtmCode, SiteName, Address, City, Province, PostCode, infoBoxTitleClassName }) => {\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t{SiteName}\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t\t

\r\n\t\t\t\t{Address}, {City}, {Province}\r\n\t\t\t

\r\n\t\t\t

{PostCode}

\r\n\t\t
\r\n\t);\r\n}, (prev, next) => {\r\n\treturn prev.AtmCode == next.AtmCode;\r\n});\r\n\r\nclass AtmLocator extends React.PureComponent {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tsearchedViewport: null,\r\n\t\t\tgoogleApiKey: window.GoogleMapApiKey,\r\n\t\t\tisFirstSearch: false,\r\n\t\t\tdisableSearch: true,\r\n\t\t\tdata: [],\r\n\t\t\thasSearched: false,\r\n\t\t\ttempData: [],\r\n\t\t\tfilterModel: {},\r\n\t\t\tmodel: {},\r\n\t\t\tisLoading: false,\r\n\t\t\trowIndex: null,\r\n\t\t\tfocusedLocation: {\r\n\t\t\t\tlat: 60.736176,\r\n\t\t\t\tlng: -102.11977\r\n\t\t\t},\r\n\t\t\tmapZoom: 4,\r\n\t\t\tmobileOpen: false,\r\n\t\t\tmyLocation: null\r\n\t\t};\r\n\t\tthis.markerRef = React.createRef();\r\n\t\tthis.googleMapRef = React.createRef();\r\n\t\tthis.mapSearchboxRef = React.createRef();\r\n\t\tthis.defaultMapOptions = {\r\n\t\t\tscrollwheel: true,\r\n\t\t\tzoomControl: true\r\n\t\t};\r\n\t\tthis.mapPlaceholderComponent =
;\r\n\t\tthis.mapContainerComponent = ;\r\n\r\n\t\tthis.genericMapSearchboxInputProps = {\r\n\t\t\tonChange: () => {\r\n\t\t\t\tthis.setState({ disableSearch: true });\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tthis.markerLatLngList = {};\r\n\r\n\t\tthis.handleMarkerClickList = {};\r\n\t\tthis.markerInfoWindowProps = {\r\n\t\t\tonCloseClick: this.handleMapClick\r\n\t\t};\r\n\r\n\t\tthis.atmListComponentClasses = {};\r\n\t\tthis.emptyObject = {};\r\n\t\tthis.externalContainerRef = React.createRef();\r\n\t}\r\n\tsetLocation = (location) => {\r\n\t\tvar filterModel = { ...this.state.filterModel };\r\n\t\tfilterModel.Latitude = location.coords.latitude;\r\n\t\tfilterModel.Longitude = location.coords.longitude;\r\n\t\tthis.setState({ myLocation: location, filterModel });\r\n\t\tthis.Search({ filterModel });\r\n\t}\r\n\tcomponentDidMount() {\r\n\t\t//this.loadGoogleApiKey();\r\n\t\tthis.getClientLocation();\r\n\t}\r\n\tloadGoogleApiKey = () => {\r\n\t\tProxy.POST(\r\n\t\t\t\"/coreapi/v1.0/Parameter/GoogleApiKey\",\r\n\t\t\t{},\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded || !responseData.Item || responseData.Item.length == 0) {\r\n\t\t\t\t\tconsole.log(\"Canada Post Api key not fetched !\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tvar apikey = responseData.Item;\r\n\t\t\t\tconsole.log(\"KEY Google \", apikey);\r\n\t\t\t\tthis.setState({ googleApiKey: apikey });\r\n\t\t\t},\r\n\t\t\te => {\r\n\t\t\t\tconsole.log(\"Google Api key not fetched !\");\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\tgetClientLocation = () => {\r\n\t\tvar setLocation = this.setLocation;\r\n\t\tif (navigator.geolocation) {\r\n\t\t\twindow.navigator.geolocation.getCurrentPosition(function (position) {\r\n\t\t\t\tsetLocation(position);\r\n\t\t\t});\r\n\t\t}\r\n\t\telse {\r\n\t\t\tconsole.log(\"Browser is not supporting geolocation api\");\r\n\t\t}\r\n\t}\r\n\r\n\tatmListComponent = () => {\r\n\r\n\t};\r\n\r\n\tgetMapZoom = (zoomLevel) => {\r\n\t\tconst rand = Math.random();\r\n\t\treturn parseFloat(zoomLevel + \".000\" + rand.toString().substr(2, 3));\r\n\t}\r\n\tSearch = (model) => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tvar requestModel = (model && model.filterModel) || this.state.filterModel;\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/Atm/SearchAtmLocator\",\r\n\t\t\trequestModel,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tconsole.log(\"Error!\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (responseData.Item != null) {\r\n\r\n\t\t\t\t\tvar data = responseData.Item || [];\r\n\t\t\t\t\tvar locations = data.Locations.map((item, index) => {\r\n\t\t\t\t\t\titem.Id = index + 1;\r\n\t\t\t\t\t\tif (index == 0) {\r\n\t\t\t\t\t\t\titem.IsOpen = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\treturn item;\r\n\t\t\t\t\t});\r\n\t\t\t\t\tvar rowIndex = -1;\r\n\t\t\t\t\tif (locations && locations.length > 0) {\r\n\t\t\t\t\t\trowIndex = 0;\r\n\r\n\t\t\t\t\t\tvar atmContainerDiv = document.getElementById(\"AtmContainer\");\r\n\t\t\t\t\t\tvar atmContainerMobileDiv = document.getElementById(\"AtmContainerMobile\");\r\n\r\n\t\t\t\t\t\tif (atmContainerDiv) atmContainerDiv.scrollTop = 0;\r\n\t\t\t\t\t\tif (atmContainerMobileDiv) atmContainerMobileDiv.scrollTop = 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tconst filterModel = { ...requestModel };\r\n\r\n\r\n\t\t\t\t\tvar state = {\r\n\t\t\t\t\t\tdata: locations,\r\n\t\t\t\t\t\ttempData: locations,\r\n\t\t\t\t\t\thasSearched: true,\r\n\t\t\t\t\t\t//mapZoom: this.getMapZoom(15),\r\n\t\t\t\t\t\trowIndex,\r\n\t\t\t\t\t\tfilterModel\r\n\t\t\t\t\t};\r\n\r\n\t\t\t\t\tconst googleMap = this.googleMapRef.current;\r\n\t\t\t\t\tif (this.state.searchedViewport && googleMap) {\r\n\t\t\t\t\t\tgoogleMap.fitBounds(this.state.searchedViewport);\r\n\t\t\t\t\t} else if (locations[0]) {\r\n\t\t\t\t\t\tstate.focusedLocation = {\r\n\t\t\t\t\t\t\tlat: locations[0].Latitude,\r\n\t\t\t\t\t\t\tlng: locations[0].Longitude\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t\tstate.mapZoom = this.getMapZoom(17);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (data.FocusLocation) {\r\n\t\t\t\t\t\tstate.focusedLocation = {\r\n\t\t\t\t\t\t\tlat: data.FocusLocation && data.FocusLocation.X || null,\r\n\t\t\t\t\t\t\tlng: data.FocusLocation && data.FocusLocation.Y || null\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.setState(state);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\te => {\r\n\t\t\t\tconsole.log(\"Error!\");\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\thandleChangeFilter = (name, newValue, data) => {\r\n\t\tconst temp = { ...this.state.filterModel };\r\n\t\ttemp[name] = newValue;\r\n\t\tthis.setState({ filterModel: temp });\r\n\t};\r\n\r\n\tgetHandleMarkerClick = (id) => {\r\n\t\tvar handler = this.handleMarkerClickList[id];\r\n\t\tif (!handler) {\r\n\t\t\tthis.handleMarkerClickList[id] = (e) => this.handleMarkerClick(e, id);\r\n\t\t}\r\n\t\treturn this.handleMarkerClickList[id];\r\n\t}\r\n\thandleMarkerClick = (e, id) => {\r\n\t\tconst temp = [...this.state.tempData];\r\n\t\tvar markedIndex = -1;\r\n\t\tvar modifiedData = temp.map((item, index) => {\r\n\t\t\titem.IsOpen = false;\r\n\t\t\tif (item.Id == id) {\r\n\t\t\t\titem.IsOpen = true;\r\n\t\t\t\tmarkedIndex = index;\r\n\t\t\t}\r\n\t\t\treturn item;\r\n\t\t});\r\n\t\tvar selected = temp.find(a => a.Id == id);\r\n\t\tvar hasMobileOpen = this.state.mobileOpen;\r\n\t\tvar ref = this.externalContainerRef && this.externalContainerRef.current;\r\n\t\tref && ref.setDrawerState(false);\r\n\t\tsetTimeout(() => {\r\n\t\t\tthis.setState({\r\n\t\t\t\ttempData: modifiedData,\r\n\t\t\t\tmodel: selected,\r\n\t\t\t\trowIndex: markedIndex,\r\n\t\t\t\tmapZoom: this.getMapZoom(17)\r\n\t\t\t});\r\n\r\n\t\t}, hasMobileOpen ? 250 : 0);\r\n\r\n\r\n\t};\r\n\r\n\thandleMapClick = () => {\r\n\t\tconst temp = [...this.state.tempData];\r\n\t\tvar modifiedData = temp.map((item, index) => {\r\n\t\t\titem.IsOpen = false;\r\n\t\t\treturn item;\r\n\t\t});\r\n\t\tthis.setState({ tempData: modifiedData });\r\n\t};\r\n\r\n\r\n\thandleOnPlacesChanged = () => {\r\n\t\tconst mapSearchbox = this.mapSearchboxRef.current;\r\n\t\tvar places = mapSearchbox.getPlaces();\r\n\t\tif (places && places.length > 0) {\r\n\t\t\tvar firstPlace = places[0];\r\n\t\t\tif (!firstPlace) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tvar bound = new window.google.maps.LatLngBounds();\r\n\t\t\tbound.union(firstPlace.geometry.viewport);\r\n\r\n\t\t\tvar loc = firstPlace.geometry.location;\r\n\t\t\tvar filterModel = { ...this.state.filterModel };\r\n\t\t\tfilterModel.Address = firstPlace.vicinity;\r\n\t\t\tfilterModel.Latitude = loc.lat();\r\n\t\t\tfilterModel.Longitude = loc.lng();\r\n\t\t\tthis.setState({ filterModel, disableSearch: false, searchedViewport: bound });\r\n\t\t}\r\n\r\n\t}\r\n\tgetMarkerPosition = (item) => {\r\n\t\tvar latLngList = this.markerLatLngList[item.Id];\r\n\r\n\t\tif (!latLngList) {\r\n\t\t\tvar newLatLng = {\r\n\t\t\t\tlat: item.Latitude,\r\n\t\t\t\tlng: item.Longitude\r\n\t\t\t};\r\n\t\t\tthis.markerLatLngList[item.Id] = newLatLng;\r\n\t\t\treturn newLatLng;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tlatLngList.lat = item.Latitude;\r\n\t\t\tlatLngList.lng = item.Longitude;\r\n\t\t\treturn latLngList;\r\n\t\t}\r\n\t}\r\n\tgetPopupComponent = (item) => {\r\n\t\tvar latLngList = this.markerLatLngList[item.Id];\r\n\r\n\t\tif (!latLngList) {\r\n\t\t\tvar newLatLng = {\r\n\t\t\t\tlat: item.Latitude,\r\n\t\t\t\tlng: item.Longitude\r\n\t\t\t};\r\n\t\t\tthis.markerLatLngList[item.Id] = newLatLng;\r\n\t\t\treturn newLatLng;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tlatLngList.lat = item.Latitude;\r\n\t\t\tlatLngList.lng = item.Longitude;\r\n\t\t\treturn latLngList;\r\n\t\t}\r\n\t}\r\n\tgenerateMarkerList = () => {\r\n\r\n\t\tconst { tempData } = this.state;\r\n\t\tconst { classes } = this.props;\r\n\t\tconst markerList = tempData.map((item, index, list) => {\r\n\r\n\t\t\tif (index + 1 == list.length) {\r\n\t\t\t\tif (!this.state.isFirstSearch) {\r\n\t\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t\tconst googleMap = this.googleMapRef.current;\r\n\t\t\t\t\t\tthis.state.searchedViewport && googleMap && googleMap.fitBounds(this.state.searchedViewport);\r\n\t\t\t\t\t\tthis.setState({ isFirstSearch: true });\r\n\t\t\t\t\t}, 500);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn (\r\n\t\t\t\t
\r\n\t\t\t\t\t : this.emptyObject}\r\n\t\t\t\t\t/>\r\n\t\t\t\t
\r\n\t\t\t);\r\n\r\n\t\t});\r\n\t\tconst rand = Math.random();\r\n\t\treturn
{markerList}
;\r\n\t}\r\n\r\n\tgetAtmListComponentClasses = (classes) => {\r\n\r\n\t\tvar classesList = [\"distanceStyle\", \"infoBoxDescription\", \"infoBox\", \"locationBoxSelected\", \"locationBox\"];\r\n\t\tclassesList.forEach(item => {\r\n\t\t\tthis.atmListComponentClasses[item] = classes[item];\r\n\t\t});\r\n\t\treturn this.atmListComponentClasses;\r\n\t}\r\n\tLeftSideComponent = () => {\r\n\t\tconst { classes } = this.props;\r\n\t\tconst { tempData, rowIndex } = this.state;\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t
);\r\n\t}\r\n\thandleDrawerChanged = (state) => {\r\n\t\tthis.setState({ mobileOpen: state });\r\n\t}\r\n\trender() {\r\n\t\tconst {\r\n\t\t\tfocusedLocation,\r\n\t\t\tmapZoom,\r\n\t\t\thasSearched,\r\n\t\t\tdisableSearch,\r\n\t\t\tgoogleApiKey,\r\n\t\t\tmyLocation,\r\n\t\t\ttempData,\r\n\t\t\trowIndex\r\n\t\t} = this.state;\r\n\t\tconst { classes } = this.props;\r\n\t\tconst { mobileOpen } = this.state;\r\n\r\n\t\treturn (\r\n\t\t\t<>\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t

ATM locator

\r\n\t\t\t\t\t\t\t\t\t\t\t\tEnter Address\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\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\r\n\tclasses: PropTypes.object\r\n};\r\n\r\nexport default withArtifex(AtmLocator, atmLocatorStyle);\r\n","\r\n\r\n\r\nconst atmLocatorStyle = (theme) => {\r\n\r\n\treturn ({\r\n\r\n\t\r\n\t\ttoolbar: theme.mixins.toolbar,\r\n\t\tinfoBox: {\r\n\t\t\tcolor: \"rgb(122, 135, 142)\",\r\n\t\t\tfontSize: 15.6,\r\n\t\t\tfontWeight: 600\r\n\t\t},\r\n\t\tinfoBoxDescription: {\r\n\t\t\tfontSize: 11.7,\r\n\t\t\tfontWeight: 400,\r\n\t\t\tfontFamily: \"Roboto,sans-serif\",\r\n\t\t\tcolor: \"rgb(122, 135, 142)\"\r\n\t\t},\r\n\t\tinfoBoxTitle: {\r\n\t\t\ttextAlign: \"left\"\r\n\t\t},\r\n\t\tinitialMsg: {\r\n\t\t\ttextAlign: \"center\",\r\n\t\t\twidth: \"100%\"\r\n\t\t},\r\n\t\tcontent: {\r\n\t\t\tflexGrow: 1,\r\n\t\t\tpadding: theme.spacing.unit * (3),\r\n\t\t},\r\n\t\tlocationBoxWrapper: {\r\n\t\t\theight: \"67vh\",\r\n\t\t\toverflow: \"auto\"\r\n\t\t},\r\n\t\tsearchBox: {\r\n\t\t\tmargin: \"5px 0px 5px 20px\",\r\n\t\t\tdisplay: \"flex\",\r\n\t\t\t[theme.breakpoints.down(\"sm\")]: {\r\n\r\n\t\t\t\tmargin: \"5px 0px 5px 5px\",\r\n\t\t\t}\r\n\t\t},\r\n\t\tdistanceStyle: {\r\n\t\t\tcolor: \"#f57f29\",\r\n\t\t},\r\n\t\tsearch: {\r\n\t\t\theight: 32,\r\n\t\t\tpadding: \"9px 20px\",\r\n\t\t\tmarginTop: 6,\r\n\t\t\tborderRadius: 0,\r\n\t\t\tbackgroundColor: \"hsl(0, 0%, 44%)\",\r\n\t\t\tmarginLeft: -4\r\n\t\t},\r\n\t\tinput: {\r\n\t\t\twidth: \"100%\",\r\n\t\t\t\"& > div > div > div > div > input\": {\r\n\t\t\t\theight: 25\r\n\t\t\t}\r\n\t\t},\r\n\t\tlocationBox: {\r\n\t\t\theight: 120,\r\n\t\t\tmargin: \"0px 0px 0px 22px\",\r\n\t\t\tpadding: 20,\r\n\t\t\t[theme.breakpoints.down(\"sm\")]: {\r\n\t\t\t\theight: 140\r\n\t\t\t},\r\n\t\t\t\"&:hover\": {\r\n\t\t\t\tbackgroundColor: \"rgb(222, 222, 222)\",\r\n\t\t\t},\r\n\t\t\t\"&:nth-child(odd)\": {\r\n\t\t\t\tbackgroundColor: \"rgb(233, 233, 233);\"\r\n\t\t\t},\r\n\t\t\t\"&:nth-child(even)\": {\r\n\t\t\t\tbackgroundColor: \"rgb(255, 255, 255)\"\r\n\t\t\t}\r\n\t\t},\r\n\t\tlocationBoxSelected: {\r\n\t\t\tborderWidth: 2,\r\n\t\t\tborderColor: \"#f57f29\",\r\n\t\t\tborderStyle: \"solid\"\r\n\t\t},\r\n\t});\r\n};\r\n\r\nexport default atmLocatorStyle;","import CardMedia from \"@material-ui/core/CardMedia\";\r\nimport loginPageStyle from \"assets/jss/material-dashboard-pro-react/views/loginPageStyle.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withRedux } from \"core\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport { GenericAlert } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport { InteracRedirectURL } from \"views/Constants/Constant\";\r\n\r\nclass InteracRedirectPage extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t\tmodel: {},\r\n\t\t\tDCLogo: {}, HRLogo: {}, CardHolderLogo: {}, EtransferLogo: {}, EPFinancialLogo: {}, DcOldLogo: {},\r\n\t\t\tPTNLogo: {}, PatenoEtransferLogo:{}, DCPLogo:{},\r\n\t\t\tInteracUrlData: {}\r\n\t\t};\r\n\r\n\t\tthis.gridItemCenterStyle = { textAlign: \"left\" };\r\n\t\tthis.imageStyle2 = { width: 150, float: \"right\", marginTop: 30, cursor: \"pointer\" };\r\n\t\tthis.imageStyle1 = { width: 100, float: \"left\", cursor: \"pointer\" };\r\n\t\tthis.cardHeaderStyle = { height: 80, width: \"50%\", marginLeft: \"auto\", marginRight: \"auto\" };\r\n\t\tthis.cardMediaStyle = {\r\n\t\t\theight: \"100%\", width: \"75%\", marginLeft: \"auto\", marginRight: \"auto\", marginTop: 10,\r\n\t\t\tbackgroundSize: \"100% 100%\"\r\n\t\t};\r\n\t\tthis.cardBodyStyle = { marginTop: 62, width: \"83%\", marginLeft: \"auto\", marginRight: \"auto\" };\r\n\t\tthis.buttonStyle = { fontSize: 20, textTransform: \"none\", fontWeight: \"500\" };\r\n\t\tthis.buttonStyleLibertyTax = { fontSize: 20, textTransform: \"none\", fontWeight: \"500\", backgroundColor: \"#f70f41\" };\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.FetchUrl();\r\n\t\tthis.GetDefaultButtons();\r\n\t}\r\n\r\n\tGetParameterByName = (name, url) => {\r\n\t\tname = name.replace(/[\\[\\]]/g, \"\\\\$&\");\r\n\t\tconst regex = new RegExp(\"[?&]\" + name + \"(=([^&#]*)|&|#|$)\"),\r\n\t\t\tresults = regex.exec(url);\r\n\t\tif (!results) return null;\r\n\t\tif (!results[2]) return \"\";\r\n\t\treturn decodeURIComponent(results[2].replace(/\\+/g, \" \"));\r\n\t}\r\n\r\n\r\n\tFetchUrl = () => {\r\n\t\tconst data = {};\r\n\t\tdata.Url = window.location.href;\r\n\t\tdata.ETID = this.GetParameterByName(\"ETID\", data.Url);\r\n\t\tdata.RQETID = this.GetParameterByName(\"RQETID\", data.Url);\r\n\t\tdata.src = this.GetParameterByName(\"src\", data.Url);\r\n\t\tdata.fiID = this.GetParameterByName(\"fiID\", data.Url);\r\n\t\tdata.cuID = this.GetParameterByName(\"cuID\", data.Url);\r\n\t\tdata.lang = this.GetParameterByName(\"lang\", data.Url);\r\n\r\n\t\tconst etid = this.GetParameterByName(\"etid\", data.Url);\r\n\t\tconst rqetid = this.GetParameterByName(\"rqetid\", data.Url);\r\n\r\n\t\tif (etid != null && etid != \"\") {\r\n\t\t\tdata.ETID = etid;\r\n\t\t}\r\n\t\tif (rqetid != null && rqetid != \"\") {\r\n\t\t\tdata.RQETID = rqetid;\r\n\t\t}\r\n\r\n\t\tif (data.ETID != null && data.ETID != \"\") { // money send\r\n\t\t\tdata.IsValidUrl = true;\r\n\t\t\tdata.IsMoneySend = true;\r\n\t\t\tdata.IsMoneyRequest = false;\r\n\t\t}\r\n\t\tif (data.RQETID != null && data.RQETID != \"\") { // money request\r\n\t\t\tdata.IsValidUrl = true;\r\n\t\t\tdata.IsMoneySend = false;\r\n\t\t\tdata.IsMoneyRequest = true;\r\n\t\t}\r\n\r\n\t\tif (data.ETID != null && data.RQETID != null) {\r\n\t\t\tdata.IsValidUrl = false;\r\n\t\t}\r\n\t\tconsole.log(data);\r\n\r\n\t\tthis.setState({ InteracUrlData: data });\r\n\r\n\r\n\t}\r\n\tDefaultImageClick = (url, Redirect) => {\r\n\t\tif (url == null || url == \"\") {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", \"Redirect url must be valid.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tconst urldata = { ...this.state.InteracUrlData };\r\n\t\tif (Redirect) {\r\n\t\t\tlet uri = url + \"?\";\r\n\t\t\tif (urldata.ETID != null && urldata.ETID != \"\") {\r\n\t\t\t\turi += `ETID=${urldata.ETID}`;\r\n\t\t\t}\r\n\t\t\tif (urldata.RQETID != null && urldata.RQETID != \"\") {\r\n\t\t\t\turi += `RQETID=${urldata.RQETID}`;\r\n\t\t\t}\r\n\t\t\tif (urldata.etid != null && urldata.etid != \"\") {\r\n\t\t\t\turi += `ETID=${urldata.ETID}`;\r\n\t\t\t}\r\n\t\t\tif (urldata.rqetid != null && urldata.rqetid != \"\") {\r\n\t\t\t\turi += `RQETID=${urldata.RQETID}`;\r\n\t\t\t}\r\n\t\t\tif (urldata.src != null && urldata.src != \"\") {\r\n\t\t\t\turi += `&src=${urldata.src}`;\r\n\t\t\t}\r\n\t\t\tif (urldata.fiID != null && urldata.fiID != \"\") {\r\n\t\t\t\turi += `&fiID=${urldata.fiID}`;\r\n\t\t\t}\r\n\t\t\tif (urldata.cuID != null && urldata.cuID != \"\") {\r\n\t\t\t\turi += `&cuID=${urldata.cuID}`;\r\n\t\t\t}\r\n\t\t\tif (urldata.lang != null && urldata.lang != \"\") {\r\n\t\t\t\turi += `&lang=${urldata.lang}`;\r\n\t\t\t}\r\n\t\t\twindow.location.href = uri;\r\n\t\t} else {\r\n\t\t\tRouteHelper.Push(this.props.history, url, InteracRedirectURL.LocalStorageKey, urldata);\r\n\t\t}\r\n\t}\r\n\tGetDefaultButtons = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/InteracRedirectUrlMap/GetDefault\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tconst DC = responseData.Item.find(x => x.DefaultName == \"DC\");\r\n\t\t\t\t\tconst HR = responseData.Item.find(x => x.DefaultName == \"HR\");\r\n\t\t\t\t\tconst CH = responseData.Item.find(x => x.DefaultName == \"CH\");\r\n\t\t\t\t\tconst ET = responseData.Item.find(x => x.DefaultName == \"ET\");\r\n\t\t\t\t\tconst EP = responseData.Item.find(x => x.DefaultName == \"EP\");\r\n\t\t\t\t\tconst OL = responseData.Item.find(x => x.DefaultName == \"OL\");\r\n\t\t\t\t\tconst PTN = responseData.Item.find(x => x.DefaultName == \"PTN\");\r\n\t\t\t\t\tconst PET = responseData.Item.find(x => x.DefaultName == \"PET\");\r\n\t\t\t\t\tconst DCP = responseData.Item.find(x => x.DefaultName == \"DCP\");\r\n\t\t\t\t\tconst DCPET = responseData.Item.find(x => x.DefaultName == \"DCPET\");\r\n\t\t\t\t\tconst PrP = responseData.Item.find(x => x.DefaultName == \"PrP\");\r\n\t\t\t\t\tconst PbP = responseData.Item.find(x => x.DefaultName == \"PbP\");\r\n\t\t\t\t\tconst LT = responseData.Item.find(x => x.DefaultName == \"LT\");\r\n\r\n\r\n\t\t\t\t\tthis.setState({ DCLogo: DC || {}, HRLogo: HR || {}, CardHolderLogo: CH || {}, EtransferLogo: ET || {}, EPFinancialLogo: EP || {},DcOldLogo : OL || {}, PTNLogo: PTN || {}, PatenoEtransferLogo: PET || {}, DCPLogo: DCP || {}, DCPEtransferLogo : DCPET || {}, PrepaidPortal: PrP || {}, PersonalBanking: PbP || {}, LibertyTax: LT || {} });\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ DCLogo: {}, HRLogo: {}, CardHolderLogo: {}, EtransferLogo: {}, EPFinancialLogo: {} ,DcOldLogo : {}, PTNLogo: {}, PatenoEtransferLogo: {}, DCPLogo: {}, DCPEtransferLogo: {} });\r\n\t\t\t\t}\r\n\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\thandleChange = (name, newValue) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tconst model = state.model || {};\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\t// type:-success->warning->info->error\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes } = this.props;\r\n\t\tconst { model, isLoading, alert, HRLogo, DCLogo, CardHolderLogo, EtransferLogo, EPFinancialLogo, DcOldLogo, PTNLogo, DCPLogo, PrepaidPortal, PersonalBanking, LibertyTax } = this.state;\r\n\t\tconst logo = require(\"assets/img/\" + window.LoginLogo);\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{DcOldLogo?.IsVisible == true && (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t{DCLogo?.IsVisible == true && (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\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\t
\t
\t
\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nInteracRedirectPage.propTypes = {\r\n\tclasses: PropTypes.object.isRequired\r\n};\r\n\r\nexport default withRedux(InteracRedirectPage, loginPageStyle);","import { DialogContent, DialogTitle, Slide, withStyles } from \"@material-ui/core\";\r\nimport kycPhotoUploadStyle from \"assets/jss/material-dashboard-pro-react/views/kycPhotoUploadStyle\";\r\nimport cx from \"classnames\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer\";\r\nimport GridItem from \"components/Grid/GridItem\";\r\nimport FileHelper from \"core/FileHelper\";\r\nimport ExternalContainer from \"layouts/ExternalContainer\";\r\nimport React, { PureComponent } from \"react\";\r\nimport { GenericCamera, GenericCardMedia, GenericDialog, GenericDialogActions, GenericLabel, GenericStepper, GenericTitle } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport ImageHelper from \"core/ImageHelper\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport { DigitalVerificationAction, DigitalVerificationPopupUploadCode, LinkRequestType } from \"views/Constants/Constant\";\r\n\r\nconst ProfileMale = require(\"assets/img/profile-male.png\");\r\nconst ProfileFemale = require(\"assets/img/profile-female.png\");\r\n\r\nconst IdCardImage = require(\"assets/img/id-card.png\");\r\nconst IdCardBackImage = require(\"assets/img/id-card-back.png\");\r\nconst IdTemplate = require(\"assets/img/id-template.png\");\r\nconst FaceTemplate = require(\"assets/img/face-template.png\");\r\n\r\nconst initialState = {\r\n\r\n\tmodel: {},\r\n\tphotoBase64: {\r\n\t\t0: null,\r\n\t\t1: null,\r\n\t\t2: null\r\n\t},\r\n\topenDialog: false,\r\n\tActiveStep: 0,\r\n\taccessKey: null,\r\n\tcameraLabel: null,\r\n\trotateCounter: 0,\r\n\thasTimeout: false,\r\n\ttimeoutWarn: false,\r\n\tsteps: [],\r\n\tlinkRequestTypeId: 0\r\n};\r\nclass KycPhotoUpload extends PureComponent {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = Object.assign({}, initialState);\r\n\t\tthis.parameterIdentificationMethod = { ParameterCode: \"IdentificationMethod\" };\r\n\t\tthis.emptyObject = {};\r\n\t\tthis.sortName = { Member: \"Name\" };\r\n\t\tthis.gridSortParam = [{ id: \"Status\", desc: false }];\r\n\r\n\t\tthis.fileInputRef1 = React.createRef();\r\n\r\n\t\tthis.fileModifiedStatus = {\r\n\t\t\t0: false,\r\n\t\t\t1: false,\r\n\t\t\t2: false\r\n\t\t};\r\n\t\tthis.timer = null;\r\n\t}\r\n\r\n\tAccessKeyExpireInterval = async () => {\r\n\t\tconst { model, timeoutWarn, hasTimeout } = this.state;\r\n\t\tvar requestDateTime = DateHelper.ToMoment(model.RequestDateTime);\r\n\t\tvar minutesDiff = DateHelper.GetDateTime().diff(requestDateTime, \"seconds\");\r\n\t\tif (!hasTimeout && minutesDiff >= 1800) {\r\n\t\t\tthis.setState({ hasTimeout: true });\r\n\t\t\tthis.timer && clearInterval(this.timer);\r\n\t\t\tawait this.props.showMessage(\"error\", \"Error\", \"Session expired!\");\r\n\t\t\tthis.props.history.push(\"/\");\r\n\t\t}\r\n\t\telse if (!timeoutWarn && minutesDiff >= 1500) {\r\n\t\t\tthis.setState({ timeoutWarn: true });\r\n\t\t\tthis.props.showMessage(\"warning\", \"Warning\", \"Session will expire within 5 minutes!\");\r\n\t\t}\r\n\t}\r\n\tsetStateAsync = (newState) => {\r\n\t\treturn new Promise((resolve) => this.setState(newState, resolve));\r\n\t}\r\n\r\n\tasync componentDidMount() {\r\n\t\tif (this.props.setAppLeftTitle) {\r\n\t\t\tthis.props.setAppLeftTitle(\"Manual KYC Application Photo Definition\");\r\n\t\t}\r\n\t\tif (this.props.setAppCenterTitle) {\r\n\t\t\tthis.props.setAppCenterTitle(\"AML & KYC\");\r\n\t\t}\r\n\r\n\t\tvar steps = [\r\n\t\t\t{ Label: \"Upload Identity Photo\" },\r\n\t\t\t{ Label: \"Upload Identity Back Photo\" },\r\n\t\t\t{ Label: \"Done\" },\r\n\t\t];\r\n\r\n\t\tvar routedModel = JSON.parse(localStorage.getItem(DigitalVerificationAction.PopupUpload));\r\n\t\tvar code = routedModel?.Code ?? DigitalVerificationPopupUploadCode.ManualKycEmailLink;\r\n\t\tif (code != DigitalVerificationPopupUploadCode.IdIntroduction) {\r\n\t\t\tsteps.unshift({ Label: \"Upload Profile Photo\" });\r\n\t\t}\r\n\t\tconst { match } = this.props;\r\n\t\tvar accessKey = match.params && match.params.key;\r\n\t\tif (accessKey) {\r\n\t\t\tlocalStorage.removeItem(DigitalVerificationAction.PopupUpload);\r\n\t\t\tawait this.setStateAsync({ accessKey });\r\n\t\t\tawait this.getKycManualByAccessKey(accessKey);\r\n\t\t}\r\n\t\telse if (code != DigitalVerificationPopupUploadCode.IdIntroduction && (!routedModel?.Id || code != DigitalVerificationPopupUploadCode.ManualKyc)) {\r\n\t\t\tthis.props.history.push(\"/\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel.Code = code;\r\n\t\t!accessKey && this.GetLinkRequestTypeList();\r\n\t\tthis.setState({ steps, model: routedModel || model });\r\n\t}\r\n\r\n\tGetLinkRequestTypeList = async () => {\r\n\t\tvar result = await this.ExecuteApiPost(\"/coreapi/v1.0/Parameter/Search\", { ParameterCode: LinkRequestType.CODE }) || [];\r\n\t\tvar kycLinkRequestTypeId = result.find(a => a.ParameterValue == LinkRequestType.DigitalIdentityVerification)?.Id;\r\n\t\tthis.setState({ linkRequestTypeId: kycLinkRequestTypeId });\r\n\t}\r\n\ttimeout = ms => new Promise(res => setTimeout(res, ms))\r\n\tgetKycManualByAccessKey = async (key) => {\r\n\t\tvar requestModel = {};\r\n\r\n\t\tvar result = await this.ExecuteApiPost(\"/amlkycapi/v1.0/KycManualApplication/GetKycForUploadByAccessKey\", requestModel);\r\n\t\tif (!result) {\r\n\t\t\tawait this.props.showMessage(\"error\", \"Error\", \"Access timed out exceeted\");\r\n\t\t\tthis.props.history.push(\"/\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (!result?.HasUserPhoto) {\r\n\t\t\tthis.fileModifiedStatus[0] = true;\r\n\t\t}\r\n\t\tif (!result?.HasIdentityPhoto) {\r\n\t\t\tthis.fileModifiedStatus[1] = true;\r\n\t\t}\r\n\t\tif (!result?.HasIdentityPhotoBack) {\r\n\t\t\tthis.fileModifiedStatus[2] = true;\r\n\t\t}\r\n\r\n\t\tif (result.RequestDateTime) {\r\n\t\t\tthis.timer = setInterval(this.AccessKeyExpireInterval, 10000);\r\n\t\t}\r\n\r\n\t\tawait this.setStateAsync({ model: result });\r\n\t}\r\n\r\n\thandleTakePhoto = async (dataUri, base64) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tconst { ActiveStep, cameraLabel } = this.state;\r\n\r\n\t\tvar photoBase64 = { ...this.state.photoBase64 };\r\n\r\n\t\tlet name = \"Webcam.png\";\r\n\t\tif (cameraLabel) {\r\n\t\t\tname = cameraLabel.replace(/\\s/g, \"_\").replace(/,/g, \"-\") + \".jpg\";\r\n\t\t}\r\n\t\tvar rawFile = FileHelper.DataURLtoFile(dataUri, name);\r\n\r\n\t\tvar blob = await ImageHelper.CompressImage(rawFile);\r\n\t\tvar compressedBase64 = await FileHelper.BlobToBase64(blob);\r\n\t\tvar compressedFile = FileHelper.DataURLtoFile(compressedBase64, name);\r\n\t\tmodel.File = compressedFile;\r\n\t\tmodel.FileName = name;\r\n\r\n\t\tthis.fileModifiedStatus[ActiveStep] = true;\r\n\t\tphotoBase64[ActiveStep] = base64;\r\n\t\tthis.setState({ photoBase64, model });\r\n\t\tthis.handleClose();\r\n\t}\r\n\r\n\thandleCameraError = (error) => {\r\n\t\tthis.props.showMessage(\"error\", \"Camera Error\", \"Camera access errror!\");\r\n\t}\r\n\r\n\tHandleChange = (name, newValue, data) => {\r\n\t\tconst model = { ...this.state.model };\r\n\t\tmodel[name] = newValue;\r\n\r\n\t\tthis.setState({ model });\r\n\t}\r\n\r\n\r\n\thandleClose = () => {\r\n\t\tthis.setState({\r\n\t\t\topenDialog: false\r\n\t\t});\r\n\t}\r\n\thandleOpenCamera = () => {\r\n\r\n\t\tthis.setState({ openDialog: true });\r\n\t}\r\n\tTransition = (props) => {\r\n\t\treturn ;\r\n\t}\r\n\tOpenFileSelectDialog = () => {\r\n\t\tthis.fileInputRef1.current.click();\r\n\t}\r\n\r\n\r\n\tHandleFileSelect = async (e) => {\r\n\t\tlet closeLoading = () => { this.setState({ isLoading: false }); };\r\n\t\tconst { model } = this.state;\r\n\t\te.preventDefault();\r\n\t\tlet reader1 = new FileReader();\r\n\t\tvar file1 = e.target.files[0];\r\n\t\tif (!file1) return;\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tvar blob = await ImageHelper.CompressImage(file1);\r\n\t\tvar compressedBase64 = await FileHelper.BlobToBase64(blob);\r\n\t\tvar compressedFile = FileHelper.DataURLtoFile(compressedBase64, file1.name);\r\n\t\tfile1 = compressedFile;\r\n\t\tif (((file1.size || 0) / 1024 / 1024) > 10) {\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Photo file size cannot be larger than 10mb\");\r\n\t\t\tthis.setState({ isLoading: false });\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar imageObj = await ImageHelper.GetImageObjectFromBase64(compressedBase64);\r\n\t\tif (imageObj?.width < 100 || imageObj?.height < 100) {\r\n\t\t\tawait this.props.showMessage(\"error\", \"Error\", \"Any dimension of the image cannot be under 100 pixel\");\r\n\t\t\tthis.setState({ isLoading: false });\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tmodel.TempFileId = model.UserPhotoId || 0;\r\n\t\tmodel.File = file1;\r\n\t\tmodel.FileName = file1.name;\r\n\t\tmodel.FileSelect = true;\r\n\t\tconst { ActiveStep } = this.state;\r\n\t\tvar photoBase64 = { ...this.state.photoBase64 };\r\n\r\n\t\treader1.onloadend = () => {\r\n\t\t\tvar rawBase64 = reader1.result.toString().split(',').pop();\r\n\t\t\tif (rawBase64 != photoBase64[ActiveStep]) {\r\n\t\t\t\tphotoBase64[ActiveStep] = rawBase64;\r\n\t\t\t\tthis.fileModifiedStatus[ActiveStep] = true;\r\n\t\t\t}\r\n\t\t\tthis.setState({ photoBase64, isLoading: false });\r\n\r\n\t\t};\r\n\t\treader1.onerror = closeLoading;\r\n\t\treader1.onabort = closeLoading;\r\n\t\treader1.readAsDataURL(file1);\r\n\t}\r\n\r\n\thandleRotateImage = async () => {\r\n\t\tconst { ActiveStep, rotateCounter } = this.state;\r\n\t\tvar photoBase64 = { ...this.state.photoBase64 };\r\n\t\tif (!photoBase64[ActiveStep]) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tvar imageBase64 = ImageHelper.GenerateImageFromRawBase64(photoBase64[ActiveStep]);\r\n\t\tvar rotatedBase64 = await ImageHelper.Rotate(imageBase64, 90);\r\n\t\tphotoBase64[ActiveStep] = FileHelper.RemoveBase64MimeTag(rotatedBase64);\r\n\t\tvar rotatedCount = rotateCounter + 1;\r\n\t\tvar isModifiedStatus = rotatedCount % 4 != 0;//if rotated 360 degrees, disable image update\r\n\t\tthis.fileModifiedStatus[ActiveStep] = this.fileModifiedStatus[ActiveStep] || isModifiedStatus;\r\n\r\n\t\tthis.setState({ photoBase64, isLoading: false, rotateCounter: rotatedCount });\r\n\t}\r\n\r\n\thandlePrevious = async () => {\r\n\t\tconst { ActiveStep, hasTimeout } = this.state;\r\n\t\tif (ActiveStep == 0) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (hasTimeout) {\r\n\t\t\tawait this.props.showMessage(\"error\", \"Error\", \"Session expired!\");\r\n\t\t\tthis.props.history.push(\"/\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({ ActiveStep: ActiveStep - 1, rotateCounter: 0 });\r\n\t}\r\n\tExecuteApiPost = async (url, model) => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tconst { accessKey } = this.state;\r\n\t\tif (accessKey) {\r\n\t\t\tmodel.AccessKey = accessKey;\r\n\t\t}\r\n\t\treturn await ExecuteApiPost(url, model);\r\n\t}\r\n\tExecuteApiPostForImage = async (url, model) => {\r\n\t\tconst { accessKey } = this.state;\r\n\t\treturn await this.ExecuteApiPost(accessKey ? \"/amlkycapi/v1.0/KycManualApplication/KycShowBase64\" : url, model);\r\n\t}\r\n\thandleNext = async () => {\r\n\t\tconst { ActiveStep, photoBase64, model, accessKey, hasTimeout, steps } = this.state;\r\n\t\tif (steps.length - 1 == ActiveStep) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (hasTimeout) {\r\n\t\t\tawait this.props.showMessage(\"error\", \"Error\", \"Session expired!\");\r\n\t\t\tthis.props.history.push(\"/\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar photoId = this.getActivePhotoId();\r\n\r\n\t\tif (this.fileModifiedStatus[ActiveStep] && model.Code == DigitalVerificationPopupUploadCode.ManualKycEmailLink) {\r\n\t\t\tvar fileModel = {\r\n\t\t\t\tId: photoId || 0,\r\n\t\t\t\tFileName: model.FileName || \"\",\r\n\t\t\t\tFileDataBase64: photoBase64[ActiveStep]\r\n\t\t\t};\r\n\t\t\tvar requestModel = {\r\n\t\t\t\tAccessKey: accessKey\r\n\t\t\t};\r\n\t\t\tif (ActiveStep == 0) {\r\n\t\t\t\trequestModel.UserPhoto = fileModel\r\n\t\t\t} else if (ActiveStep == 1) {\r\n\t\t\t\trequestModel.IdentityPhoto = fileModel\r\n\t\t\t} else {\r\n\t\t\t\trequestModel.IdentityPhotoBack = fileModel\r\n\t\t\t}\r\n\r\n\t\t\tvar result = await this.ExecuteApiPost(\"/amlkycapi/v1.0/KycManualApplication/UpdateByAccessKey\", requestModel);\r\n\t\t\tif (result) {\r\n\t\t\t\tthis.fileModifiedStatus[ActiveStep] = false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//var modelList = result || [];\r\n\r\n\t\tthis.setState({ ActiveStep: ActiveStep + 1, rotateCounter: 0 });\r\n\t}\r\n\r\n\tgetPlaceholderImage = () => {\r\n\t\tconst { ActiveStep, model } = this.state;\r\n\r\n\t\tvar step = ActiveStep;\r\n\t\tif (model.Code == DigitalVerificationPopupUploadCode.IdIntroduction) {\r\n\t\t\tstep++;\r\n\t\t}\r\n\t\tif (step == 0) {\r\n\t\t\treturn model.GenderValue == \"F\" ? ProfileFemale : ProfileMale;\r\n\t\t}\r\n\t\telse if (step == 1) {\r\n\t\t\treturn IdCardImage;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn IdCardBackImage\r\n\t\t}\r\n\t}\r\n\tgetActivePhotoId = (customActiveStep) => {\r\n\t\tconst { model, ActiveStep } = this.state;\r\n\t\tvar userPhotoId = model.Image && model.Image.UserPhotoId || model?.UserPhotoId;\r\n\t\tvar identityPhotoId = model.Image && model.Image.IdentityPhotoId || model?.IdentityPhotoId;\r\n\t\tvar identityPhotoBackId = model.Image && model.Image.IdentityPhotoBackId || model?.IdentityPhotoBackId;\r\n\r\n\t\tvar activePhotoId = null;\r\n\t\tvar step = customActiveStep || ActiveStep;\r\n\t\tif (model.Code == DigitalVerificationPopupUploadCode.IdIntroduction) {\r\n\t\t\tstep++;\r\n\t\t}\r\n\t\tswitch (step) {\r\n\t\t\tcase 0:\r\n\t\t\t\tactivePhotoId = userPhotoId;\r\n\t\t\t\tbreak;\r\n\t\t\tcase 1:\r\n\t\t\t\tactivePhotoId = identityPhotoId;\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2:\r\n\t\t\t\tactivePhotoId = identityPhotoBackId;\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tactivePhotoId = null;\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\treturn activePhotoId;\r\n\t}\r\n\thandleMediaLoaded = (name, base64) => {\r\n\t\tconst { photoBase64, ActiveStep } = this.state;\r\n\t\tvar rawBase64 = base64.split(',').pop();\r\n\t\tphotoBase64[ActiveStep] = rawBase64;\r\n\t\tthis.setState({ photoBase64 });\r\n\t}\r\n\tOnCameraStart = (stream, cameraLabel) => {\r\n\t\tthis.setState({ cameraLabel });\r\n\r\n\t}\r\n\r\n\thandleCloseTab = async () => {\r\n\t\tconst { model } = this.state;\r\n\t\tvar hasAnyModifiedImage = Object.keys((this.fileModifiedStatus || {})).map(index => this.fileModifiedStatus[index]).find(a => a == true);\r\n\r\n\t\tif (hasAnyModifiedImage) {\r\n\t\t\tif (model.Code == DigitalVerificationPopupUploadCode.ManualKyc) {\r\n\t\t\t\tawait this.UploadForManualKyc();\r\n\t\t\t}\r\n\t\t\telse if (model.Code == DigitalVerificationPopupUploadCode.IdIntroduction) {\r\n\t\t\t\tawait this.UploadForIdIntroduction();\r\n\t\t\t}\r\n\t\t}\r\n\t\twindow.close();\r\n\t}\r\n\r\n\r\n\tUploadForManualKyc = async () => {\r\n\t\tconst { model, photoBase64, linkRequestTypeId } = this.state;\r\n\t\tvar result = await this.ExecuteApiPost(\"/amlkycapi/v1.0/KycManualApplication/CreateAccessKey\", {\r\n\t\t\tKycManualId: model?.Id,\r\n\t\t\tLinkRequestTypeId: linkRequestTypeId\r\n\t\t});\r\n\t\tif (!result?.Id) {\r\n\t\t\tawait this.props.showMessage(\"error\", \"Error\", \"Photo upload error. Session timeout!\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tlocalStorage.setItem(DigitalVerificationAction.PopupUpload, result.Id);\r\n\r\n\t\tfor (let index = 0; index < 3; index++) {\r\n\r\n\t\t\tvar photoId = this.getActivePhotoId(index);\r\n\r\n\t\t\tvar fileModel = {\r\n\t\t\t\tId: photoId || 0,\r\n\t\t\t\tFileName: model.FileName || \"\",\r\n\t\t\t\tFileDataBase64: photoBase64[index]\r\n\t\t\t};\r\n\r\n\t\t\tvar requestModel = {\r\n\t\t\t\tAccessKey: result.AccessKey\r\n\t\t\t};\r\n\r\n\t\t\tswitch (index) {\r\n\t\t\t\tcase 0:\r\n\t\t\t\t\trequestModel.UserPhoto = fileModel;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\trequestModel.IdentityPhoto = fileModel;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\trequestModel.IdentityPhotoBack = fileModel;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\tvar uploadResult = await this.ExecuteApiPost(\"/amlkycapi/v1.0/KycManualApplication/UpdateByAccessKey\", requestModel);\r\n\t\t\tif (uploadResult) {\r\n\t\t\t\tthis.fileModifiedStatus[index] = false;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}\r\n\r\n\tUploadForIdIntroduction = async () => {\r\n\t\tconst { model, photoBase64 } = this.state;\r\n\r\n\t\tvar requestModel = {\r\n\t\t\tDigitalIdentityVerificationIdentityTypeId: model.DigitalIdentityVerificationIdentityTypeId\r\n\t\t};\r\n\r\n\r\n\t\trequestModel.IdentityPhoto = {\r\n\t\t\tId: this.getActivePhotoId(1) || 0,\r\n\t\t\tFileName: model.FileName || \"\",\r\n\t\t\tFileDataBase64: photoBase64[0]\r\n\t\t};\r\n\r\n\t\trequestModel.IdentityPhotoBack = {\r\n\t\t\tId: this.getActivePhotoId(2) || 0,\r\n\t\t\tFileName: model.FileName || \"\",\r\n\t\t\tFileDataBase64: photoBase64[1]\r\n\t\t};\r\n\r\n\r\n\t\tvar uploadResult = await this.ExecuteApiPost(\"/amlkycapi/v1.0/DigitalIdentityVerificationIdIntroduction/UploadImage\", requestModel);\r\n\t\tif (uploadResult) {\r\n\t\t\tthis.fileModifiedStatus[1] = false;\r\n\t\t\tthis.fileModifiedStatus[2] = false;\r\n\t\t\tlocalStorage.setItem(DigitalVerificationAction.PopupUpload, JSON.stringify(uploadResult));\r\n\t\t}\r\n\t\telse {\r\n\t\t\tawait this.props.showMessage(\"error\", \"Error\", \"An error occurred during image upload \")\r\n\t\t}\r\n\t}\r\n\trender() {\r\n\t\tconst { model, openDialog, isLoading, ActiveStep, photoBase64, steps } = this.state;\r\n\t\tconst { classes } = this.props;\r\n\t\tvar facingMode = ActiveStep == 0 ? \"front\" : \"back\";\r\n\t\tvar activeBase64 = photoBase64[ActiveStep];\r\n\t\tvar activePhotoId = this.getActivePhotoId();\r\n\r\n\t\tvar modifiedStep = ActiveStep;\r\n\t\tif (model.Code == DigitalVerificationPopupUploadCode.IdIntroduction) {\r\n\t\t\tmodifiedStep++;\r\n\t\t}\r\n\t\tvar mediaClassNames = cx({\r\n\t\t\t[classes.mediaProfile]: modifiedStep == 0,\r\n\t\t\t[classes.mediaCard]: (modifiedStep > 0),\r\n\t\t\t[classes.mediaCardPlaceholder]: !(activeBase64 || activePhotoId) && (modifiedStep > 0)\r\n\t\t});\r\n\r\n\t\tvar isProfile = this.state.ActiveStep == 0;\r\n\t\tvar imgRatio = isProfile ? 0.5 : 0.95;\r\n\t\tvar activeOverlay = isProfile ? FaceTemplate : IdTemplate;\r\n\r\n\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t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\n\t\t\t\t
\r\n\t\t\t
\r\n\r\n\t\t);\r\n\t}\r\n}\r\n\r\nexport default withStyles(kycPhotoUploadStyle)(KycPhotoUpload);","\r\nconst kycPhotoUploadStyle = theme => ({\r\n\r\n\tprofileHeader: {\r\n\t\tmargin: \"0px 0px 5px 40px\"\r\n\t},\r\n\tmediaProfile: {\r\n\t\t// width: \"70%\",\r\n\t\twidth: \"200px\",\r\n\t\t// margin: \"auto\",\r\n\t\theight: 200,\r\n\t\tborderRadius: 20,\r\n\t\tborderColor: \"rgb(179, 179, 179)\",\r\n\t\tborderWidth: 2,\r\n\t},\r\n\tmediaCard: {\r\n\t\twidth: \"400px\",\r\n\t\tmargin: \"auto\",\r\n\t\theight: 200,\r\n\t\tborderRadius: 25,\r\n\t\tborderColor: \"rgb(179, 179, 179)\",\r\n\t\t// backgroundSize: \"100%\",\r\n\t\tborderWidth: 2,\r\n\t\t[theme.breakpoints.down(\"sm\")]: {\r\n\t\t\twidth: \"350px\",\r\n\t\t},\r\n\t\t[theme.breakpoints.down(\"xs\")]: {\r\n\t\t\twidth: \"300px\",\r\n\t\t}\r\n\t},\r\n\tinnerContainer: {\r\n\t\tdisplay: \"flex\",\r\n\t\t[theme.breakpoints.down(\"sm\")]: {\r\n\t\t\talignItems: \"center\",\r\n\t\t\tflexDirection: \"column\"\r\n\t\t}\r\n\t},\r\n\tbuttonContainer: {\r\n\t\tmargin: \"0px 10px\",\r\n\t\t[theme.breakpoints.down(\"sm\")]: {\r\n\t\t\talignItems: \"center\",\r\n\t\t}\r\n\t},\r\n\tstepper: {\r\n\t\tbackground: \"#f2f2f2\"\r\n\t},\r\n\tbutton: {\r\n\t\t[theme.breakpoints.down(\"sm\")]: {\r\n\t\t\twidth:\"100%\"\r\n\t\t}\r\n\t},\r\n\tmediaCardPlaceholder: {\r\n\t\tbackgroundSize: \"contain !important\",\r\n\t},\r\n\tpreviewTitle: {\r\n\t\tmarginLeft: 5\r\n\t}\r\n});\r\n\r\nexport default kycPhotoUploadStyle;","import CardMedia from \"@material-ui/core/CardMedia\";\r\nimport loginPageStyle from \"assets/jss/material-dashboard-pro-react/views/loginPageStyle.jsx\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader.jsx\";\r\nimport Button from \"components/CustomButtons/Button.jsx\";\r\nimport GridContainer from \"components/Grid/GridContainer.jsx\";\r\nimport GridItem from \"components/Grid/GridItem.jsx\";\r\nimport { Proxy, withRedux } from \"core\";\r\nimport PropTypes from \"prop-types\";\r\nimport React from \"react\";\r\nimport { GenericAlert, GenericLabel, GenericNumberInput } from \"views/Components/Generic\";\r\nimport LoadingComponent from \"views/Components/LoadingComponent\";\r\nimport RouteHelper from \"core/RouteHelper\";\r\nimport { InteracRedirectURL } from \"views/Constants/Constant\";\r\n\r\nclass InteracCardHolderPage extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false,\r\n\t\t\tmodel: {}, vModel: {},\r\n\t\t\tDCLogo: {}, HRLogo: {},\r\n\t\t\tInteracUrlData: {}\r\n\t\t};\r\n\r\n\t\tthis.cardHeaderStyle = { height: 80, width: \"50%\", marginLeft: \"auto\", marginRight: \"auto\" };\r\n\t\tthis.cardMediaStyle = {\r\n\t\t\theight: \"100%\", width: \"75%\", marginLeft: \"auto\", marginRight: \"auto\", marginTop: 10,\r\n\t\t\tbackgroundSize: \"100% 100%\"\r\n\t\t};\r\n\t\tthis.cardBodyStyle = { marginTop: 62, width: \"83%\", marginLeft: \"auto\", marginRight: \"auto\" };\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\r\n\t}\r\n\r\n\tDefaultImageClick = (url, Redirect) => {\r\n\t\tif (url == null || url == \"\") {\r\n\t\t\tthis.ShowMessage(\"error\", \"Error\", \"Redirect url must be valid.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tvar urldata = RouteHelper.Read(InteracRedirectURL.LocalStorageKey) || {};\r\n\r\n\t\tif (Redirect) {\r\n\t\t\tvar uri = url + \"?\";\r\n\t\t\tif (urldata.ETID != null && urldata.ETID != \"\") {\r\n\t\t\t\turi += `ETID=${urldata.ETID}`;\r\n\t\t\t}\r\n\t\t\tif (urldata.RQETID != null && urldata.RQETID != \"\") {\r\n\t\t\t\turi += `RQETID=${urldata.RQETID}`;\r\n\t\t\t}\r\n\t\t\tif (urldata.src != null && urldata.src != \"\") {\r\n\t\t\t\turi += `&src=${urldata.src}`;\r\n\t\t\t}\r\n\t\t\tif (urldata.fiID != null && urldata.fiID != \"\") {\r\n\t\t\t\turi += `&fiID=${urldata.fiID}`;\r\n\t\t\t}\r\n\t\t\tif (urldata.cuID != null && urldata.cuID != \"\") {\r\n\t\t\t\turi += `&cuID=${urldata.cuID}`;\r\n\t\t\t}\r\n\t\t\tif (urldata.lang != null && urldata.lang != \"\") {\r\n\t\t\t\turi += `&lang=${urldata.lang}`;\r\n\t\t\t}\r\n\t\t\twindow.location.href = uri;\r\n\t\t} else {\r\n\t\t\tRouteHelper.Push(this.props.history, url, InteracRedirectURL.LocalStorageKey, urldata);\r\n\t\t}\r\n\t}\r\n\tValidate = () => {\r\n\t\tlet { vModel, model } = this.state;\r\n\t\tvModel.CustomerNumber = model.CustomerNumber == null || model.CustomerNumber == \"\";\r\n\t\tif (vModel.CustomerNumber) {\r\n\t\t\tthis.ShowMessage(\"warning\", \"Warning\", \"Customer Number cannot be null\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\tPerformSubmitAction = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tif (!this.Validate()) return;\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/InteracRedirectUrlMap/GetClientUrl\",\r\n\t\t\tthis.state.model,\r\n\t\t\tresponseData => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\r\n\t\t\t\tif (!responseData.IsSucceeded) {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", responseData.ErrorDescription);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (responseData.Item != null) {\r\n\t\t\t\t\tthis.DefaultImageClick(responseData.Item.RedirectUrl, true);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.ShowMessage(\"error\", \"Error\", \"Defined URL for the Customer not found!\");\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror => {\r\n\t\t\t\tthis.setState({ isLoading: false });\r\n\t\t\t\tthis.ShowMessage(\"error\", \"Error\", error);\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n\thandleChange = (name, newValue) => {\r\n\t\tthis.setState(function (state, props) {\r\n\t\t\tvar model = state.model || {};\r\n\t\t\tmodel[name] = newValue;\r\n\t\t\treturn { model };\r\n\t\t});\r\n\t}\r\n\r\n\tShowMessageNode = (type, title, message) => {\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\tShowMessage = (type, title, message) => {\r\n\t\t// type:-success->warning->info->error\r\n\t\tthis.setState({\r\n\t\t\talert: this.hideAlert()} />\r\n\t\t});\r\n\t\tthis.setState({ isLoading: false });\r\n\t}\r\n\thideAlert = () => {\r\n\t\tthis.setState({\r\n\t\t\talert: null,\r\n\t\t\tisLoading: false\r\n\t\t});\r\n\t}\r\n\thandleKeyPress = (e) => {\r\n\t\tif (e.key == \"Enter\") {\r\n\t\t\tthis.PerformSubmitAction();\r\n\t\t}\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { classes } = this.props;\r\n\t\tconst { model, isLoading, alert, vModel } = this.state;\r\n\t\tconst logo = require(\"assets/img/\" + window.LoginLogo);\r\n\r\n\r\n\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alert}\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nInteracCardHolderPage.propTypes = {\r\n\tclasses: PropTypes.object.isRequired\r\n};\r\n\r\nexport default withRedux(InteracCardHolderPage, loginPageStyle);","import { withStyles } from \"@material-ui/core\";\r\nimport Card from \"components/Card/Card.jsx\";\r\nimport CardBody from \"components/Card/CardBody.jsx\";\r\nimport CardHeader from \"components/Card/CardHeader\";\r\nimport Button from \"components/CustomButtons/Button\";\r\nimport GridContainer from \"components/Grid/GridContainer\";\r\nimport GridItem from \"components/Grid/GridItem\";\r\nimport DateHelper from \"core/DateHelper\";\r\nimport Formatter from \"core/Formatter\";\r\nimport ExternalContainer from \"layouts/ExternalContainer\";\r\nimport React, { PureComponent } from \"react\";\r\nimport FlinksAccountPreviewCard from \"views/BankAccount/LinkedAccounts/FlinksAccountPreviewCard\";\r\nimport { GenericExpansionPanel, GenericGrid, GenericLabel, GenericTitle } from \"views/Components/Generic\";\r\nimport { ProgramCodes } from \"views/Constants/Constant\";\r\n\r\n\r\nconst initialState = {\r\n\tmodel: {},\r\n\topenDialog: false,\r\n\taccessKey: null,\r\n\thasTimeout: false,\r\n\ttimeoutWarn: false,\r\n\tlinkRequestTypeId: 0,\r\n\tisFinished: false,\r\n\tflinksAccounts: [],\r\n\tflinksAccountModel: {},\r\n\tisSandbox: false\r\n};\r\nconst demoFlinksUrl = \"https://toolbox-iframe.private.fin.ag/?desktopLayout=true&demo=true&consentEnable=true\";\r\n\r\nclass KycPhotoUpload extends PureComponent {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = Object.assign({}, initialState);\r\n\t\tthis.emptyObject = {};\r\n\t\tthis.timer = null;\r\n\t\tthis.iFrameStyle = {\r\n\t\t\twidth: \"100%\",\r\n\t\t\theight: \"calc(90vh - 185px)\"\r\n\t\t};\r\n\r\n\t}\r\n\r\n\tAccessKeyExpireInterval = async () => {\r\n\t\tconst { model, timeoutWarn, hasTimeout } = this.state;\r\n\t\tvar requestDateTime = DateHelper.ToMoment(model.RequestDateTime);\r\n\t\tvar minutesDiff = DateHelper.GetDateTime().diff(requestDateTime, \"seconds\");\r\n\t\tif (!hasTimeout && minutesDiff >= 1800) {\r\n\t\t\tthis.setState({ hasTimeout: true });\r\n\t\t\tthis.timer && clearInterval(this.timer);\r\n\t\t\tawait this.props.showMessage(\"error\", \"Error\", \"Session expired!\");\r\n\t\t\tthis.props.history.push(\"/\");\r\n\t\t}\r\n\t\telse if (!timeoutWarn && minutesDiff >= 1500) {\r\n\t\t\tthis.setState({ timeoutWarn: true });\r\n\t\t\tthis.props.showMessage(\"warning\", \"Warning\", \"Session will expire within 5 minutes!\");\r\n\t\t}\r\n\t}\r\n\tsetStateAsync = (newState) => {\r\n\t\treturn new Promise((resolve) => this.setState(newState, resolve));\r\n\t}\r\n\r\n\tasync componentDidMount() {\r\n\t\tif (this.props.setAppLeftTitle) {\r\n\t\t\tthis.props.setAppLeftTitle(\"Manual KYC Application Linked Account\");\r\n\t\t}\r\n\t\tif (this.props.setAppCenterTitle) {\r\n\t\t\tthis.props.setAppCenterTitle(\"AML & KYC\");\r\n\t\t}\r\n\t\tvar flinksHandle = this.HandleFlinksIframeResponse;\r\n\t\twindow.addEventListener(\"message\", function (e) {\r\n\t\t\tflinksHandle(e.data);\r\n\t\t});\r\n\t\tvar thiz = this;\r\n\t\twindow.addEventListener(\"kycAccountSandbox\", function (e) {//Switch test mode with => window.dispatchEvent(new Event(\"kycAccountSandbox\"))\r\n\t\t\tthiz.setState({ isSandbox: !thiz.state.isSandbox });\r\n\t\t\tthiz.forceUpdate();\r\n\t\t});\r\n\r\n\t\tconst { match } = this.props;\r\n\t\tif (match.params && match.params.key) {\r\n\t\t\tawait this.setStateAsync({ accessKey: match.params.key });\r\n\t\t\tawait this.getKycManualByAccessKey(match.params.key);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.props.history.push(\"/\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\r\n\t\t//this.GetLinkRequestTypeList();\r\n\t}\r\n\r\n\t// GetLinkRequestTypeList = () => {\r\n\t// \tvar result = this.ExecuteApiPost(\"/coreapi/v1.0/Parameter/Search\", { ParameterCode: LinkRequestType.CODE });\r\n\t// \tvar kycLinkRequestTypeId = (result || []).find(a => a.ParameterValue == LinkRequestType.DigitalIdentityVerification);\r\n\t// \tthis.setState({ linkRequestTypeId: kycLinkRequestTypeId });\r\n\t// }\r\n\tHandleFlinksIframeResponse = (data) => {\r\n\t\tif (data != null) {\r\n\t\t\tif (data.institution != null && data.loginId != null && data.requestId != null) {\r\n\t\t\t\tthis.setState({ flinksLoginModel: data });\r\n\t\t\t}\r\n\t\t\tif (data.step == \"REDIRECT\") {\r\n\t\t\t\tthis.setState({ isFlinksLoginDialog: false });\r\n\t\t\t\tthis.FlinksAccountSummaryRequest();\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\tFlinksAccountSummaryRequest = async () => {\r\n\r\n\t\tthis.state.flinksLoginModel.IsSandbox = this.state.isSandbox;\r\n\t\tvar result = await this.ExecuteApiPost(\"/amlkycapi/v1.0/KycManualApplication/GetFlinksAccountSummaryByAccessKey\", this.state.flinksLoginModel);\r\n\t\tif (result) {\r\n\t\t\tthis.setState({\r\n\t\t\t\tflinksAccounts: result.Accounts ?? [],\r\n\t\t\t\tflinksResponse: result\r\n\t\t\t});\r\n\t\t}\r\n\r\n\r\n\t}\r\n\r\n\tgetKycManualByAccessKey = async (key) => {\r\n\r\n\t\tvar result = await this.ExecuteApiPost(\"/amlkycapi/v1.0/KycManualApplication/GetKycForVerificationByAccessKey\", {});\r\n\t\tif (!result) {\r\n\t\t\tawait this.props.showMessage(\"error\", \"Error\", \"Access timed out exceeted\");\r\n\t\t\tthis.props.history.push(\"/\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (result.RequestDateTime) {\r\n\t\t\tthis.timer = setInterval(this.AccessKeyExpireInterval, 10000);\r\n\t\t}\r\n\t\tawait this.setStateAsync({ model: result });\r\n\t}\r\n\r\n\r\n\r\n\tExecuteApiPost = async (url, requestModel) => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tconst { accessKey } = this.state;\r\n\t\trequestModel.AccessKey = accessKey;\r\n\t\treturn await ExecuteApiPost(url, requestModel);\r\n\t}\r\n\r\n\tFlinksDataModelParse = (model) => {\r\n\t\tvar temp = {};\r\n\t\tconst flinks = { ...this.state.flinksResponse };\r\n\t\tif (flinks != null) {\r\n\t\t\ttemp.HttpStatusCode = flinks.HttpStatusCode;\r\n\t\t\ttemp.Institution = flinks.Institution;\r\n\t\t\ttemp.RequestId = flinks.RequestId; // RequestId\r\n\t\t\ttemp.Tag = flinks.Tag;\r\n\t\t}\r\n\t\tif (flinks != null && flinks.Login != null) {\r\n\t\t\ttemp.Username = flinks.Login.Username;\r\n\t\t\ttemp.LastRefresh = flinks.Login.LastRefresh;\r\n\t\t\ttemp.Type = flinks.Login.Type;\r\n\t\t\ttemp.LoginId = flinks.Login.Id; // LoginId\r\n\t\t}\r\n\t\tif (model != null) {\r\n\t\t\ttemp.Title = model.Title;\r\n\t\t\ttemp.AccountNumber = model.AccountNumber;\r\n\t\t\ttemp.Category = model.Category;\r\n\t\t\ttemp.Currency = model.Currency;\r\n\t\t\ttemp.AccountId = model.Id; // AccountId\t\t\t\r\n\t\t\ttemp.TransitNumber = model.TransitNumber;\r\n\t\t\ttemp.InstitutionNumber = model.InstitutionNumber;\r\n\t\t}\r\n\t\tif (model != null && model.Balance != null) {\r\n\t\t\ttemp.AvailableBalance = model.Balance.Available;\r\n\t\t\ttemp.CurrentBalance = model.Balance.Current;\r\n\t\t\ttemp.Limit = model.Balance.Limit;\r\n\t\t}\r\n\t\tif (model != null && model.Holder != null) {\r\n\t\t\ttemp.Name = model.Holder.Name;\r\n\t\t\ttemp.Email = model.Holder.Email;\r\n\t\t\ttemp.PhoneNumber = model.Holder.PhoneNumber;\r\n\t\t}\r\n\t\tif (model != null && model.Holder != null && model.Holder.Address != null) {\r\n\t\t\ttemp.CivicAddress = model.Holder.Address.CivicAddress;\r\n\t\t\ttemp.City = model.Holder.Address.City;\r\n\t\t\ttemp.Province = model.Holder.Address.Province;\r\n\t\t\ttemp.PostalCode = model.Holder.Address.PostalCode;\r\n\t\t\ttemp.Pobox = model.Holder.Address.POBox;\r\n\t\t\ttemp.Country = model.Holder.Address.Country;\r\n\t\t}\r\n\t\tif (this.state.isSandbox) {\r\n\t\t\ttemp.InstitutionNumber = 1;\r\n\t\t}\r\n\t\treturn temp;\r\n\t}\r\n\tSaveFlinksModel = async () => {\r\n\t\tvar data = this.FlinksDataModelParse(this.state.flinksAccountModel);\r\n\t\tif (data == null || data.AccountId == null || data.AccountId == \"\") {\r\n\t\t\tthis.props.showMessage(\"error\", \"Error\", \"Account must be selected !\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tvar result = await this.ExecuteApiPost(\"/amlkycapi/v1.0/KycManualApplication/InsertOrUpdateFlinksAccountByAccessKey\", data);\r\n\t\tif (result) {\r\n\t\t\t//this.ClearData();\r\n\t\t\tthis.props.showMessage(\"success\", \"Success\", \"Account Verification saved succesfully.You can now close the tab.\");\r\n\t\t\t//this.GetLinkedAccounts();\r\n\t\t\tthis.setState({ isFinished: true });\r\n\t\t}\r\n\t}\r\n\r\n\tHandleCloseTab = async () => {\r\n\r\n\t\tconst { isFinished } = this.state;\r\n\t\tif (!isFinished && !await this.props.showConfirmMessage(\"warning\", \"Warning\", \"Account is not saved yet. Are you sure you want to close the tab?\")) return;\r\n\r\n\t\twindow.close();\r\n\t}\r\n\r\n\tSelectedRowChange = (index) => {\r\n\t\tconst model = this.state.flinksAccounts[index];\r\n\t\tthis.setState({ flinksAccountModel: model });\r\n\t}\r\n\tHandleClickSave = () => {\r\n\t\tthis.SaveFlinksModel();\r\n\t}\r\n\trender() {\r\n\t\tconst { flinksAccounts, flinksAccountModel, isFinished } = this.state;\r\n\t\tvar hasAnyAccount = flinksAccounts?.length > 0;\r\n\r\n\t\tvar flinksUrl = this.state.isSandbox ? demoFlinksUrl : window.FlinksIframeUrl;\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{hasAnyAccount ?\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{row.original.Balance == null ? \"\" : row.original.Balance.Current == null || 0 ? \"\" : Formatter.FormatMoney(row.original.Balance.Current)}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Category\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Category\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Currency\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Currency\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Name\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Holder.Name\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Email\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Holder.Email\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Phone\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Holder.PhoneNumber\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHeader: \"Address\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCell: row => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{row.original.Holder == null ? \"\" : row.original.Holder.Address == null ? \"\" :\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\trow.original.Holder.Address.CivicAddress + \" \" +\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\trow.original.Holder.Address.PostalCode + \" \" +\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\trow.original.Holder.Address.City + \" \" +\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\trow.original.Holder.Address.Country + \" \"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tRowSelected={this.SelectedRowChange}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tProgramCode={ProgramCodes.Bank_Programs_Bank_Account} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t{hasAnyAccount &&\r\n\t\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\t